/*
Theme Name: Ecom Theme
Theme URI: https://niaclay.com
Author: BADAR X AFTAB
Author URI: https://niaclay.com
Description: Premium WooCommerce e-commerce theme built for natural clay cookware stores.
Version: 2.8.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naya-clay
Tags: woocommerce, e-commerce, custom-colors, custom-logo, full-width-template
*/

/* =========================================================
   CSS CUSTOM PROPERTIES - DESIGN TOKEN SYSTEM
   ========================================================= */
:root {
  /* Brand Colors */
  --color-primary:      #c34a36;
  --color-primary-dark: #a63628;
  --color-dark:         #111111;
  --color-body:         #333333;
  --color-bg:           #ffffff;
  --color-bg-light:     #f5f5f5;
  --color-border:       #e5e5e5;
  --color-dark-green:   #253230;
  --color-yellow-green: #f3fc81;
  --color-brown:        #9c6540;
  --color-sale-badge:   #844a22;
  --color-new-badge:    #d0473e;
  --color-sold-out:     #666666;
  --color-white:        #ffffff;
  --color-muted:        #666666;

  /* Typography */
  --font-base:          'Instrument Sans', sans-serif;
  --font-size-base:     15px;
  --font-size-sm:       13px;
  --font-size-xs:       11px;
  --line-height-base:   1.714;
  --letter-spacing-heading: -0.034em;

  /* Spacing */
  --section-gap-desktop: 48px;
  --section-gap-mobile:  32px;
  --container-max:       1200px;
  --container-fluid:     1410px;
  --gutter:              20px;

  /* UI Elements */
  --radius-button:  30px;
  --radius-card:    10px;
  --radius-input:   6px;
  --input-height:   5rem;
  --logo-width:     82px;

  /* Transitions */
  --transition-fast:   0.18s ease;
  --transition-base:   0.28s ease;
  --transition-slow:   0.45s ease;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover:  0 8px 40px rgba(0,0,0,0.13);
  --shadow-btn:    0 4px 16px rgba(208,71,62,0.25);
}

/* =========================================================
   PRODUCT CARD PREMIUM
   ========================================================= */

        :root {
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

        

        .product-card {
            width: 280px;
            background: var(--white);
            border-radius: 20px;
            padding: 12px;
            position: relative;
            box-shadow: 0 10px 40px rgba(0,0,0,0.03);
            transition: var(--transition-smooth);
            cursor: pointer;
        }

        .product-card:hover {
            box-shadow: 0 20px 50px rgba(0,0,0,0.08);
            transform: translateY(-5px);
        }

        /* Image Area */
        .card-image-wrapper {
            position: relative;
            width: 100%;
            height: 320px;
            border-radius: 14px;
            overflow: hidden;
            background-color: var(--gray-light);
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .product-card:hover .card-image {
            transform: scale(1.08);
        }

        /* Floating Badges */
        .badges {
            position: absolute;
            top: 12px;
            left: 12px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            z-index: 2;
        }

        .badge {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            color: var(--dark);
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 6px 12px;
            border-radius: 30px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .badge.sale {
            background: var(--primary);
            color: var(--white);
        }

        /* Wishlist Button */
        .btn-wishlist {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark);
            cursor: pointer;
            z-index: 2;
            transition: var(--transition-smooth);
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        }

        .btn-wishlist:hover {
            background: var(--primary);
            color: var(--white);
            transform: scale(1.1);
        }

        /* Hover Action Button (Add to Cart) */
        .hover-action {
            position: absolute;
            bottom: -50px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 24px);
            opacity: 0;
            transition: var(--transition-smooth);
            z-index: 3;
        }

        .product-card:hover .hover-action {
            bottom: 12px;
            opacity: 1;
        }

        .btn-add {
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            color: var(--dark);
            border: 1px solid rgba(0,0,0,0.05);
            padding: 12px 0;
            border-radius: 10px;
            font-family: 'Outfit', sans-serif;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: var(--transition-smooth);
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }

        .btn-add:hover {
            background: var(--dark);
            color: var(--white);
        }

        /* Card Info */
        .card-info {
            padding: 16px 8px 4px 8px;
            text-align: center;
        }

        .category {
            font-size: 11px;
            color: var(--gray-med);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 6px;
            display: block;
            font-weight: 500;
        }

        .title {
            font-size: 17px;
            font-weight: 600;
            color: var(--dark);
            margin: 0 0 10px 0;
            line-height: 1.4;
        }

        .title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.3s;
        }

        .title a:hover {
            color: var(--primary);
        }

        /* Rating Stars */
        .rating {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            margin-bottom: 12px;
        }

        .rating svg {
            width: 12px;
            height: 12px;
            fill: #f59e0b;
        }

        /* Price */
        .price-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .price-wrap ins {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }

        .price-wrap del {
            font-size: 13px;
            color: var(--gray-med);
            font-weight: 400;
        }

/* =========================================================
   AGGRESSIVE CLEANUP (Hide Ghost Lines & Empty Spacing)
   ========================================================= */
.hm-collection-section hr,
.hm-collection-section p:empty,
.hm-collection-section div:empty,
.hm-shop-page hr,
.hm-main hr {
    display: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force remove any invisible borders from the section itself */
.hm-collection-section {
    border: none !important;
    box-shadow: none !important;
}

/* Hide any direct child of main that is totally empty to prevent spacing issues */
main.hm-main > p:empty,
main.hm-main > div:empty {
    display: none !important;
}

    