/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gold Family - Enhanced with depth */
    --gold-primary: #D4AF37;
    --gold-vivid: #E5C34B;
    --gold-dark: #A68B1B;
    --gold-light: #F4E4BC;
    --gold-gradient: linear-gradient(135deg, #F7E7A0 0%, #D4AF37 50%, #A68B1B 100%);
    --gold-gradient-soft: linear-gradient(135deg, #FDF6E3 0%, #F7E7A0 50%, #F4E4BC 100%);

    /* Warm Neutrals (Indian aesthetic) */
    --cream: #FFF8E7;
    --ivory: #FFFFF0;
    --champagne: #F5ECD7;
    --sand: #E8DCC8;

    /* Core Colors */
    --white: #FFFFFF;
    --gray-light: #F8F8F8;
    --gray-medium: #E0E0E0;
    --gray-dark: #666666;

    /* Accent Colors - Festival inspired */
    --accent-burgundy: #722F37;
    --accent-teal: #00a3b4;
    --accent-emerald: #2D6A4F;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;

    /* Text Hierarchy */
    --text-primary: #2C2416;
    --text-secondary: #5C5040;
    --text-muted: #8B8070;
    --text-dark: #333333;
    --text-on-gold: #3D3015;

    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.75);
    --glass-white-strong: rgba(255, 255, 255, 0.9);
    --glass-gold: rgba(212, 175, 55, 0.15);
    --glass-dark: rgba(44, 36, 22, 0.8);

    /* Shadow System - Layered for depth */
    --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 36, 22, 0.1);
    --shadow-lg: 0 8px 30px rgba(44, 36, 22, 0.12);
    --shadow-xl: 0 20px 40px rgba(44, 36, 22, 0.15);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(212, 175, 55, 0.3);

    /* Typography - Font Families */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Typography Scale (1.25 ratio - Major Third) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 231, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.header.compact .header-content {
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    transition: padding var(--transition-base);
}

.logo h1 {
    /* Hidden - using logo image instead */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav {
    display: flex;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-2);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--gold-dark);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active {
    color: var(--text-on-gold);
    background: var(--gold-gradient);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.nav-link.active:hover {
    background: var(--gold-gradient);
    color: var(--text-on-gold);
}

/* Language Switch (extracted - was incorrectly nested) */
.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.language-switch button {
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid var(--gold-primary);
    background: var(--white);
    color: #6b4e00;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch button:hover {
    background: var(--gold-primary);
    color: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--space-20) 0;
    overflow: hidden;
    background: var(--gold-gradient-soft);
}

/* Floating Gradient Orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -20px) scale(1.05);
    }
}

/* Glassmorphic Content Card */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-16);
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        var(--shadow-xl),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    background: var(--gold-gradient);
    color: var(--text-on-gold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--text-on-gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.hero-title span {
    display: block;
    color: var(--gold-dark);
    font-weight: 500;
    font-style: italic;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    letter-spacing: 0.025em;
}

/* Hero Actions */
.hero-actions {
    margin-top: var(--space-8);
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-8);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow var(--transition-base),
                background-color var(--transition-base);
}

/* Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: scale(4);
    opacity: 1;
    transition-duration: 0s;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--text-on-gold);
    padding: var(--space-4) var(--space-10);
    font-size: var(--text-lg);
    box-shadow: var(--shadow-md), 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Shimmer Effect on Hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* WhatsApp Order Button */
.btn-order {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark) 100%);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Gentle Pulse Animation for WhatsApp Button */
@keyframes gentle-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 0 0 8px rgba(37, 211, 102, 0); }
}

.product-card:hover .btn-order {
    animation: gentle-pulse 2s ease-in-out infinite;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--text-primary);
    margin-bottom: var(--space-12);
    text-align: center;
    position: relative;
    padding-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: var(--radius-full);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories {
    padding: var(--space-20) 0;
    background: var(--cream);
    position: relative;
}

.categories-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: var(--space-8) 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.categories-slider {
    display: flex;
    gap: var(--space-8);
    animation: scroll 35s linear infinite;
    width: fit-content;
    will-change: transform;
}

.categories-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.category-card {
    flex: 0 0 200px;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-bounce);
    position: relative;
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.category-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-4);
    border: 3px solid var(--gold-primary);
    position: relative;
    background: var(--white);
    box-shadow:
        0 0 0 6px rgba(212, 175, 55, 0.15),
        var(--shadow-lg);
    transition: all var(--transition-base);
}

.category-card:hover .category-image-wrapper {
    border-color: var(--gold-vivid);
    box-shadow:
        0 0 0 8px rgba(212, 175, 55, 0.25),
        var(--shadow-xl),
        0 0 30px rgba(212, 175, 55, 0.3);
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.15);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.85) 0%,
        rgba(166, 139, 27, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay-text {
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-base);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-name {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-base);
    margin-top: var(--space-2);
}

.category-badge {
    position: absolute;
    top: 0;
    right: 10px;
    background: var(--gold-gradient);
    color: var(--text-on-gold);
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    padding: var(--space-6);
    background: var(--cream);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.15);
    justify-content: space-between;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    padding-left: var(--space-12);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    background: var(--white);
    transition: all var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    transform: scale(1.01);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Search icon */
.search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color var(--transition-base);
    pointer-events: none;
}

.search-box:focus-within::before {
    color: var(--gold-primary);
}

.filter-controls {
    display: flex;
    gap: var(--space-4);
}

.filter-select {
    padding: var(--space-4) var(--space-10) var(--space-4) var(--space-4);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235C5040' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
}

.filter-select:hover {
    border-color: var(--gold-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
}

/* Enhanced Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-bounce);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Gold accent bar on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow:
        var(--shadow-xl),
        0 12px 35px rgba(212, 175, 55, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

/* Product Image Container */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-light);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Quick View Overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 36, 22, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-text {
    padding: var(--space-3) var(--space-6);
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-primary);
    transform: translateY(10px);
    transition: transform var(--transition-base);
}

.product-card:hover .product-overlay-text {
    transform: translateY(0);
}

.product-info {
    padding: var(--space-4) var(--space-6) var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    background: linear-gradient(180deg, var(--white) 0%, var(--champagne) 100%);
}

.product-code {
    font-size: var(--text-xs);
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.product-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    flex-grow: 1;
    line-height: 1.4;
}

.product-price {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: var(--space-3);
    transition: transform var(--transition-base);
    letter-spacing: -0.01em;
}

.product-card:hover .product-price {
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: var(--space-16);
    color: var(--text-muted);
    font-size: var(--text-lg);
}

/* Staggered Card Entrance Animation */
@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: card-entrance 0.5s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 50ms; }
.product-card:nth-child(3) { animation-delay: 100ms; }
.product-card:nth-child(4) { animation-delay: 150ms; }
.product-card:nth-child(5) { animation-delay: 200ms; }
.product-card:nth-child(6) { animation-delay: 250ms; }
.product-card:nth-child(7) { animation-delay: 300ms; }
.product-card:nth-child(8) { animation-delay: 350ms; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Breakpoint */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: var(--space-2);
        padding: var(--space-2) 0;
    }

    .nav-logo {
        height: 45px;
        max-width: 110px;
    }

    .nav {
        gap: var(--space-1);
        padding: var(--space-1);
        border-radius: var(--radius-lg);
    }

    .nav-link {
        padding: var(--space-2) var(--space-2);
        min-height: 40px;
        display: flex;
        align-items: center;
        font-size: var(--text-xs);
        border-radius: var(--radius-md);
    }

    /* Hero adjustments */
    .hero {
        min-height: auto;
        padding: var(--space-12) 0;
    }

    .hero-content {
        padding: var(--space-8) var(--space-6);
        margin: 0 var(--space-4);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-trust {
        flex-direction: column;
        gap: var(--space-3);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    /* Categories */
    .categories-slider {
        gap: var(--space-4);
    }

    .category-card {
        flex: 0 0 150px;
    }

    .category-image-wrapper {
        width: 130px;
        height: 130px;
    }

    /* Controls */
    .controls {
        flex-direction: column;
        padding: var(--space-4);
    }

    .search-box,
    .filter-controls {
        width: 100%;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-select,
    .search-input {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-6);
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-6);
    }

    .modal-image-section {
        position: relative;
    }

    .modal-product-image {
        max-height: 300px;
    }

    .modal-product-name {
        font-size: var(--text-2xl);
    }

    .modal-product-price {
        font-size: var(--text-3xl);
    }

    .modal-close {
        top: var(--space-3);
        right: var(--space-3);
        width: 40px;
        height: 40px;
    }

    /* Footer */
    .footer-container {
        gap: var(--space-8);
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
    /* Mobile header */
    .header-content {
        padding: var(--space-1) 0;
        gap: var(--space-2);
    }

    .nav-logo {
        height: 38px;
        max-width: 95px;
    }

    .nav {
        gap: 2px;
        padding: 3px;
        border-radius: var(--radius-md);
    }

    .nav-link {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
        min-height: 36px;
        border-radius: var(--radius-sm);
    }

    .hero {
        padding: var(--space-10) 0;
    }

    .hero-content {
        padding: var(--space-6) var(--space-4);
        border-radius: var(--radius-xl);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        flex: 0 0 120px;
    }

    .category-image-wrapper {
        width: 100px;
        height: 100px;
    }

    .category-name {
        font-size: var(--text-sm);
    }

    /* Footer responsive */
    .footer-container {
        text-align: center;
        padding: var(--space-6) var(--space-4);
    }

    .footer-brand {
        padding: var(--space-4) var(--space-3);
    }

    .footer-logo-img {
        height: 50px;
        max-width: 130px;
    }

    .footer-column h4 {
        display: block;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-column a:hover {
        transform: translateX(0);
    }
}

/* Touch-Optimized Styles */
@media (hover: none) and (pointer: coarse) {
    /* Minimum touch target sizes (44x44px) */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
    }

    .social-icons a {
        width: 48px;
        height: 48px;
    }

    /* Add tap highlight */
    .btn,
    .product-card,
    .category-card,
    .nav-link,
    .filter-select {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }

    /* Active states for touch feedback */
    .product-card:active {
        transform: scale(0.98);
        transition-duration: 0.1s;
    }

    .category-card:active {
        transform: scale(0.95);
        transition-duration: 0.1s;
    }

    /* Disable hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .category-card:hover {
        transform: none;
    }

    .category-card:active {
        transform: scale(0.95);
    }
}

/* ============================================
   PRODUCT MODAL / POPUP
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 22, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.85) translateY(-30px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity var(--transition-base);
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--cream);
    color: var(--text-primary);
    border: 1px solid var(--sand);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-base);
    line-height: 1;
}

.modal-close:hover {
    background: var(--gold-primary);
    color: var(--white);
    border-color: var(--gold-primary);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-8);
}

.modal-image-section {
    position: sticky;
    top: var(--space-8);
    align-self: start;
}

.modal-product-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    max-height: 500px;
}

/* Image entry animation */
.modal-overlay.active .modal-product-image {
    animation: image-morph-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes image-morph-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Staggered info reveal animation */
.modal-overlay.active .modal-product-code { animation: info-slide-in 0.4s ease 0.1s both; }
.modal-overlay.active .modal-product-name { animation: info-slide-in 0.4s ease 0.15s both; }
.modal-overlay.active .modal-product-category { animation: info-slide-in 0.4s ease 0.2s both; }
.modal-overlay.active .modal-product-price { animation: info-slide-in 0.4s ease 0.25s both; }
.modal-overlay.active .modal-product-description { animation: info-slide-in 0.4s ease 0.3s both; }
.modal-overlay.active .modal-product-usage { animation: info-slide-in 0.4s ease 0.35s both; }
.modal-overlay.active .modal-whatsapp-btn { animation: info-slide-in 0.4s ease 0.4s both; }

@keyframes info-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-product-code {
    font-size: var(--text-sm);
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.modal-product-name {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.modal-product-category {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.modal-product-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.modal-product-price {
    font-family: var(--font-body);
    font-size: var(--text-4xl);
    color: var(--gold-dark);
    font-weight: 700;
    margin: var(--space-2) 0;
    letter-spacing: -0.01em;
}

.modal-product-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--sand);
}

.modal-product-usage {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-style: italic;
    padding: var(--space-4);
    background: var(--cream);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold-primary);
}

.modal-product-usage strong {
    color: var(--text-primary);
    font-style: normal;
}

.modal-whatsapp-btn {
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    text-align: center;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .modal-image-section {
        position: relative;
    }

    .modal-product-image {
        max-height: 300px;
    }

    .modal-product-name {
        font-size: 1.4rem;
    }

    .modal-product-price {
        font-size: 1.6rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Make product cards clickable */
.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--shadow-hover);
}

.product-card .btn-order {
    pointer-events: auto;
    z-index: 1;
    position: relative;
}
/* ============================================
   GOLD DIVIDER
   ============================================ */
.gold-divider {
    width: 100%;
    height: 1px;
    margin: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--sand) 20%,
        var(--gold-primary) 50%,
        var(--sand) 80%,
        transparent 100%
    );
    position: relative;
}

.gold-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--white);
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* CSS scroll-driven animation for modern browsers */
@supports (animation-timeline: scroll()) {
    .scroll-progress-bar {
        animation: progress-fill linear;
        animation-timeline: scroll(root);
        transition: none;
    }

    @keyframes progress-fill {
        from { width: 0%; }
        to { width: 100%; }
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--text-on-gold);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity var(--transition-base),
                visibility var(--transition-base),
                transform var(--transition-bounce),
                background-color var(--transition-base);
    box-shadow: var(--shadow-gold);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(212, 175, 55, 0.4);
}

.back-to-top:active {
    transform: translateY(0) scale(0.95);
}

/* ============================================
   SCROLL-DRIVEN ANIMATIONS
   ============================================ */
@supports (animation-timeline: scroll()) {
    /* Section titles animate on scroll */
    .section-title {
        animation: title-reveal linear both;
        animation-timeline: view();
        animation-range: entry 10% entry 50%;
    }

    @keyframes title-reveal {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Hero elements animate */
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .hero-trust {
        animation: fade-slide-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }

    @keyframes fade-slide-up {
        from {
            opacity: 0;
            transform: translateY(40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Fallback for browsers without scroll timeline */
@supports not (animation-timeline: scroll()) {
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-light) 0%,
        var(--gray-medium) 50%,
        var(--gray-light) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card-skeleton {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-card-skeleton .skeleton-image {
    width: 100%;
    height: 200px;
    background: var(--gray-light);
}

.product-card-skeleton .skeleton-content {
    padding: var(--space-6);
}

.product-card-skeleton .skeleton-code {
    height: 14px;
    width: 60%;
    margin-bottom: var(--space-3);
}

.product-card-skeleton .skeleton-name {
    height: 20px;
    width: 90%;
    margin-bottom: var(--space-4);
}

.product-card-skeleton .skeleton-price {
    height: 24px;
    width: 40%;
    margin-bottom: var(--space-4);
}

.product-card-skeleton .skeleton-button {
    height: 40px;
    width: 100%;
    border-radius: var(--radius-lg);
}
/* The container holding the logo and nav links */
nav {
    display: flex;
    align-items: center; /* Vertically centers the logo and text */
    justify-content: space-between; /* Pushes logo to left and links to right */
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
}

.nav-logo {
    height: 70px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    order: -1;
    transition: transform var(--transition-base);
}

.logo:hover .nav-logo {
    transform: scale(1.05);
}

h1 {
    font-size: 1.5rem;
    margin: 0;
}
/* ============================================
   MODERN FOOTER
   ============================================ */
.footer {
    display: none; /* Hide the old simple footer */
}

.site-footer {
    background: linear-gradient(180deg, var(--cream) 0%, #FFF5E1 100%);
    border-top: 3px solid var(--gold-primary);
    font-family: var(--font-body);
    color: var(--text-primary);
}

/* Footer Brand Section */
.footer-brand {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--sand);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-1);
}

.footer-logo-img {
    height: 70px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: var(--space-2);
    transition: transform var(--transition-base);
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-6);
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-teal);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--gold-primary);
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-column a:hover {
    color: var(--gold-dark);
    transform: translateX(4px);
}

.footer-column a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.footer-column a:hover::before {
    opacity: 1;
}

/* Contact Info */
.footer-column p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.footer-column p strong {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: var(--space-2);
}

/* Social Icons - Enhanced */
.social-icons {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: all var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.social-icons a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.social-icons a::before {
    display: none;
}

.facebook {
    background: linear-gradient(135deg, #4267B2 0%, #2d4373 100%);
}

.instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.youtube {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
}

.whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, var(--whatsapp-dark) 100%);
}

.location {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: var(--space-4);
    background: var(--text-primary);
    color: var(--gold-light);
    font-size: var(--text-xs);
    margin-top: 0;
    border-top: none;
}

.footer-bottom a {
    color: var(--gold-primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
  