/* ═══════════════════════════════════════════════════════════════
   Mind Heart Community — Design System
   Luxury skincare ecommerce CSS
   Fonts: Outfit (headings), Work Sans (body)
   Palette: warm cream, gold, rose, rich darks
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Inter:wght@300;400;500;600&family=Alex+Brush&display=swap');

/* ── CSS Custom Properties (Light Mode) ──────────────────────── */
:root {
    /* Colors */
    --color-bg-primary: #111111;
    --color-bg-secondary: #1A1A1A;
    --color-bg-tertiary: #222222;
    --color-bg-card: #1A1A1A;
    --color-bg-overlay: rgba(0, 0, 0, 0.65);

    --color-text-primary: #F0EAE4;
    --color-text-secondary: #BDB5AD;
    --color-text-muted: #7A7470;
    --color-text-inverse: #1A1A1A;

    /* Re-mapping accent colors to spa tones */
    --color-accent-gold: #FF99E6; /* Using bright soft pink instead of gold for accents/buttons */
    --color-accent-gold-light: #FFB3EC;
    --color-accent-rose: #FF99E6; 
    --color-accent-rose-light: #FFD6F5;
    --color-accent-coral: #F0896A;
    --color-accent-mint: #A8FFFB;

    --color-border: #2A2A2A;
    --color-border-light: #222222;

    --color-success: #2ECC71;
    --color-warning: #F39C12;
    --color-error: #E74C3C;
    --color-info: #3498DB;

    --color-btn-primary-bg: #FF99E6;
    --color-btn-primary-text: #111111;
    --color-btn-primary-hover: #FFB3EC;
    --color-btn-secondary-bg: transparent;
    --color-btn-secondary-text: #FF99E6;
    --color-btn-secondary-border: #FF99E6;
    --color-btn-accent-bg: #FF99E6;
    --color-btn-accent-text: #FFFFFF;

    --color-badge-sale: #E74C3C;
    --color-badge-new: #C6983B;
    --color-badge-sold-out: #8A8A8A;

    --color-star: #FDD030;
    --color-star-empty: #E0D6CC;

    --color-simulation-bg: #FFF3CD;
    --color-simulation-text: #856404;
    --color-simulation-border: #FFEEBA;

    /* Footer (always dark in both modes) */
    --footer-bg: #0A0A0A;
    --footer-text: #F0EAE4;
    --footer-text-muted: rgba(240, 234, 228, 0.7);
    --footer-text-faint: rgba(240, 234, 228, 0.55);
    --footer-heading: #FF99E6;
    --footer-link: rgba(240, 234, 228, 0.7);
    --footer-link-hover: #FFFFFF;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-social-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Alex Brush', cursive;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3.5rem;
    --fs-hero: 4.5rem;

    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --lh-tight: 1.15;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    --ls-tight: -0.02em;
    --ls-normal: 0;
    --ls-wide: 0.1em;
    --ls-wider: 0.2em;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --max-width: 1400px;
    --header-height: 72px;
    --sidebar-width: 280px;

    /* Borders & Radius */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 4px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.45);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(198,152,59,0.25);
    --logo-shadow: drop-shadow(-3px -3px 5px #FF99E6) drop-shadow(3px 3px 5px #A8FFFB) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-drawer: 300;
    --z-modal: 400;
    --z-overlay: 500;
    --z-toast: 600;
}




/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-normal);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: var(--site-bg-image, none);
    background-repeat: var(--site-bg-repeat, no-repeat);
    background-size: var(--site-bg-size, cover);
    background-position: center top;
    opacity: var(--site-opacity, 0.2);
    /* Apply gradient mask over background */
    mask-image: var(--site-gradient, linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%));
    -webkit-mask-image: var(--site-gradient, linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%));
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: var(--fs-base);
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-normal);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}

/* ── Utility Classes ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: var(--ls-wide); }

/* ── Simulation Banner ───────────────────────────────────────── */
.simulation-banner {
    background: var(--color-simulation-bg);
    color: var(--color-simulation-text);
    border-bottom: 1px solid var(--color-simulation-border);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    z-index: var(--z-toast);
    position: relative;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .logo {
    transition: transform 0.3s ease, clip-path 0.3s ease;
    clip-path: inset(0 0 1em 0);
}

.site-header.scrolled .logo {
    transform: translateY(1em);
    clip-path: inset(0 0 0.8em 0);
}

.site-header .main-nav {
    transition: transform 0.3s ease;
    transform-origin: top center;
}

.site-header.scrolled.nav-overlaps .main-nav {
    transform: translateY(0.75em) scale(0.85);
}

.header-inner {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) 0 var(--space-xs) 0;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: var(--space-sm);
}

/* Logo */
.logo {
    font-family: var(--font-script);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-normal);
    color: var(--color-text-primary);
    white-space: nowrap;
    text-align: center;
}

.logo span {
    color: inherit;
}

/* Main Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-accent-rose);
}

.nav-link .chevron {
    width: 10px; height: 10px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-accent-rose);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
    z-index: 100;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    color: var(--color-accent-rose);
    background: var(--color-bg-secondary);
    padding-left: calc(var(--space-lg) + 4px);
}

.nav-badge-new {
    background: var(--color-accent-rose);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-wider);
    margin-left: 4px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.header-icon-btn:hover {
    background: var(--color-bg-secondary);
    color: var(--color-accent-gold);
}

.header-icon-btn svg {
    width: 22px; height: 22px;
}

.cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    background: var(--color-accent-gold);
    color: white;
    font-size: 0.65rem;
    font-weight: var(--fw-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: badgePop 300ms var(--transition-spring);
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
    position: relative;
    z-index: 2;
}

.dark-mode-toggle:hover {
    color: var(--color-accent-gold);
}

.dark-mode-toggle svg { width: 20px; height: 20px; }
.dark-mode-toggle .icon-moon { display: none; }
.dark-mode .dark-mode-toggle .icon-sun { display: none; }
.dark-mode .dark-mode-toggle .icon-moon { display: block; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Search Bar ──────────────────────────────────────────────── */
.search-wrapper {
    position: relative;
    flex: 1 1 100px;
    min-width: 150px;
    max-width: 480px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0 var(--space-md);
    height: 42px;
    transition: all var(--transition-base);
    overflow: hidden;
}

.search-bar:focus-within {
    background: var(--color-bg-card);
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(198, 152, 59, 0.15);
}

.search-bar svg {
    width: 18px; height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 var(--space-sm);
    font-size: var(--fs-sm);
    color: var(--color-text-primary);
    outline: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-input::placeholder {
    color: transparent; /* Hide placeholder if we use overlay */
}

/* Search typewriter overlay */
.search-typewriter-overlay {
    position: absolute;
    left: calc(var(--space-md) + 50px); /* account for padding + icon width + gap */
    right: 40px; /* leave space for mic/moon icons */
    top: 0; bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
}

.search-typewriter-text {
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
    white-space: nowrap;
    transition: transform 3s linear;
}

.voice-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.voice-search-btn:hover { color: var(--color-accent-rose); }
.voice-search-btn.listening {
    color: var(--color-error);
    animation: pulse 1.5s infinite;
}

.voice-search-btn svg { width: 18px; height: 18px; }

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: var(--z-dropdown);
}

.search-suggestions.active { display: block; }

.suggestion-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.suggestion-item:hover { background: var(--color-bg-secondary); }

.suggestion-item img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.suggestion-item .suggestion-info {
    flex: 1;
}

.suggestion-item .suggestion-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
}

.suggestion-item .suggestion-type {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

.suggestion-item .suggestion-price {
    font-weight: var(--fw-semibold);
    color: var(--color-accent-gold);
    font-size: var(--fs-sm);
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-accent-rose-light) 50%, var(--color-accent-mint) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: var(--site-opacity, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: var(--space-4xl) var(--space-lg);
    animation: fadeInUp 800ms ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--color-accent-gold-light);
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-light);
    margin-bottom: var(--space-lg);
    line-height: var(--lh-tight);
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
}

.btn-primary {
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
    border-color: var(--color-btn-primary-bg);
}

.btn-primary:hover {
    background: var(--color-btn-primary-hover);
    border-color: var(--color-btn-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-btn-secondary-bg);
    color: var(--color-btn-secondary-text);
    border-color: var(--color-btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
}

.btn-accent {
    background: var(--color-btn-accent-bg);
    color: var(--color-btn-accent-text);
    border-color: var(--color-btn-accent-bg);
}

.btn-accent:hover {
    background: var(--color-accent-gold-light);
    border-color: var(--color-accent-gold-light);
    color: var(--color-text-primary);
}

.btn-sm { padding: 8px 18px; font-size: var(--fs-xs); min-height: 36px; }
.btn-lg { padding: 16px 40px; font-size: var(--fs-base); }
.btn-full { width: 100%; }

/* ── Sections ────────────────────────────────────────────────── */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--color-accent-gold);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-normal);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.section-description {
    font-size: var(--fs-md);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Product Grid ────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* ── Product Card ────────────────────────────────────────────── */
.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    border: 1px solid var(--color-border-light);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Product badges */
.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 10px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.badge-sale {
    background: var(--color-badge-sale);
    color: white;
}

.badge-new {
    background: var(--color-badge-new);
    color: white;
}

.badge-sold-out {
    background: var(--color-badge-sold-out);
    color: white;
}

/* Quick action overlay */
.product-card-actions {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card-actions .btn {
    flex: 1;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
    color: #1a1a1a;
    border-color: transparent;
    font-size: var(--fs-xs);
    padding: 8px 12px;
}

.product-card-actions .btn:hover {
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
}

.wishlist-btn {
    width: 38px; height: 38px;
    min-height: auto;
    padding: 0;
    flex: 0 0 38px;
    border-radius: var(--radius-full);
}

.wishlist-btn.active svg {
    fill: var(--color-accent-rose);
    color: var(--color-accent-rose);
}

/* Product card info */
.product-card-info {
    padding: var(--space-md);
    text-align: center;
}

.product-card-category {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.product-card-name a:hover { color: var(--color-accent-gold); }

.product-card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--fs-base);
}

.price-current {
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
}

.price-compare {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: var(--fs-sm);
}

/* Star rating */
.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.star-rating svg {
    width: 14px; height: 14px;
}

.star-filled { color: var(--color-star); }
.star-empty { color: var(--color-star-empty); }

.review-count {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-left: var(--space-xs);
}

/* ── Category Cards ──────────────────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.category-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover img { transform: scale(1.08); }

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.6));
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
    transition: background var(--transition-base);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.7));
}

.category-card-name {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Cart Drawer ─────────────────────────────────────────────── */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg-overlay);
    z-index: var(--z-drawer);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-bg-card);
    z-index: calc(var(--z-drawer) + 1);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.cart-drawer.active { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
}

.cart-drawer-close {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.cart-drawer-close:hover { background: var(--color-bg-secondary); }
.cart-drawer-close svg { width: 20px; height: 20px; }

/* Free shipping bar */
.free-shipping-bar {
    margin: var(--space-md) var(--space-lg);
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.shipping-progress {
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    margin-top: var(--space-sm);
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-success));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.shipping-text {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

.shipping-text strong { color: var(--color-accent-gold); }

/* Cart items */
.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) var(--space-lg);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cart-item-image {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.cart-item-info { flex: 1; }

.cart-item-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.qty-btn {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    border-color: var(--color-text-primary);
    background: var(--color-bg-secondary);
}

.qty-value {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    transition: color var(--transition-fast);
    margin-top: var(--space-xs);
}

.cart-item-remove:hover { color: var(--color-error); }

/* Cart footer */
.cart-drawer-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
}

.cart-empty {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    color: var(--color-text-muted);
}

.cart-empty svg {
    width: 60px; height: 60px;
    margin: 0 auto var(--space-lg);
    opacity: 0.3;
}

/* ── Product Detail Page ─────────────────────────────────────── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-3xl) 0;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    align-self: start;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: var(--color-bg-secondary);
}

.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
}

.gallery-thumb {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    opacity: 0.7;
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--color-accent-gold);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.product-info {
    padding-top: var(--space-md);
}

.product-info .product-category {
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--color-accent-gold);
    margin-bottom: var(--space-sm);
}

.product-info h1 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-light);
    margin-bottom: var(--space-md);
}

.product-price-detail {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-price-detail .price-current {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
}

.product-price-detail .price-compare {
    font-size: var(--fs-lg);
}

.product-price-detail .discount-tag {
    background: var(--color-badge-sale);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
}

.product-description {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

/* Add to cart form */
.add-to-cart-form {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.quantity-selector button {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.quantity-selector button:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
}

.quantity-selector input {
    width: 48px;
    text-align: center;
    border: none;
    font-weight: var(--fw-medium);
    background: transparent;
    color: var(--color-text-primary);
}

/* Sticky add-to-cart bar */
.sticky-add-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: var(--z-sticky);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    padding: var(--space-sm) 0;
}

.sticky-add-bar.visible { transform: translateY(0); }

.sticky-add-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-add-bar .product-name {
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
}

.sticky-add-bar .price-current {
    font-weight: var(--fw-semibold);
    margin: 0 var(--space-lg);
}

/* ── Reviews Section ─────────────────────────────────────────── */
.reviews-section {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3xl);
    margin-top: var(--space-3xl);
}

.review-summary {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.review-average {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    font-family: var(--font-heading);
}

.review-card {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-author {
    font-weight: var(--fw-medium);
}

.review-date {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
}

.review-title {
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
}

.review-body {
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
}

/* Review form */
.review-form {
    background: var(--color-bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2xl);
}

.review-form h3 {
    margin-bottom: var(--space-lg);
}

/* ── Forms ────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(198, 152, 59, 0.15);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-error {
    font-size: var(--fs-xs);
    color: var(--color-error);
    margin-top: var(--space-xs);
}

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-3xl);
    padding: var(--space-3xl) 0;
}

.order-summary {
    background: var(--color-bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    align-self: start;
}

.order-summary h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: var(--fs-sm);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 2px solid var(--color-border);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}

/* Stripe elements */
#card-element {
    padding: 12px var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    min-height: 44px;
}

#card-errors {
    color: var(--color-error);
    font-size: var(--fs-sm);
    margin-top: var(--space-sm);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    color: var(--footer-text);
    margin-bottom: var(--space-md);
    font-size: var(--fs-2xl);
}

.footer-brand p {
    color: var(--footer-text-muted);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    color: var(--footer-text-muted);
    border: 1px solid var(--footer-social-border);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    border-color: var(--color-accent-gold);
    background: var(--color-accent-gold);
    color: #1A1A1A;
}

.social-links svg { width: 18px; height: 18px; }

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    margin-bottom: var(--space-lg);
    color: var(--footer-heading);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    font-size: var(--fs-sm);
    color: var(--footer-link);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--footer-link-hover);
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-sm);
    color: var(--footer-text-faint);
}

/* ── Recently Viewed ─────────────────────────────────────────── */
.recently-viewed {
    background: var(--color-bg-secondary);
    padding: var(--space-2xl) 0;
}

.recently-viewed-scroll {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
}

.recently-viewed-scroll::-webkit-scrollbar { height: 4px; }
.recently-viewed-scroll::-webkit-scrollbar-track { background: transparent; }
.recently-viewed-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.recently-viewed .product-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

/* ── Quick View Modal ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg-overlay);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--transition-base);
    position: relative;
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-close {
    position: absolute;
    top: var(--space-md); right: var(--space-md);
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    z-index: 2;
    transition: background var(--transition-fast);
}

.modal-close:hover { background: var(--color-border); }

/* ── Mobile Menu Drawer ──────────────────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-bg-overlay);
    z-index: 10001; /* Above header */
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--color-bg-card);
    z-index: 10002; /* Above overlay */
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
}

.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
    position: absolute;
    top: var(--space-md); right: var(--space-md);
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-text-primary);
}

.mobile-nav-item {
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--color-text-primary);
    text-decoration: none;
}

.mobile-nav-children {
    display: none;
    padding-left: var(--space-lg);
    padding-bottom: var(--space-md);
}

.mobile-nav-children.active { display: block; }

.mobile-nav-children a {
    display: block;
    padding: var(--space-sm) 0;
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-2xl) 0;
}

.pagination a, .pagination span {
    min-width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--color-bg-secondary);
}

.pagination .current {
    background: var(--color-btn-primary-bg);
    color: var(--color-btn-primary-text);
}

/* ── Messages/Toasts ─────────────────────────────────────────── */
.messages {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 300ms ease-out;
    max-width: 400px;
}

.message-success { background: var(--color-success); color: white; }
.message-warning { background: var(--color-warning); color: white; }
.message-error { background: var(--color-error); color: white; }
.message-info { background: var(--color-info); color: white; }

/* ── Loading State ───────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-secondary) 25%, var(--color-border-light) 50%, var(--color-bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes badgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Gradient CTA Sections (contrast fix) ────────────────────── */
.cta-gradient-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-accent-rose-light) 50%, var(--color-accent-mint) 100%);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-gradient-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.cta-gradient-section > .container {
    position: relative;
    z-index: 1;
}

.cta-gradient-section .section-subtitle {
    color: var(--color-accent-gold-light);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.cta-gradient-section .section-title {
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cta-gradient-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Small laptop & Tablet (< 1280) */
@media (max-width: 1279px) {
    :root {
        --fs-hero: 3rem;
        --fs-4xl: 2.5rem;
        --fs-3xl: 2rem;
    }

    .main-nav { display: none; }
    .hamburger { display: flex; }

    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }

    .product-gallery {
        position: static;
    }

    .search-wrapper { max-width: 300px; }
}

/* Large phones (480 - 767) */
@media (max-width: 767px) {
    :root {
        --fs-hero: 2.5rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
        --fs-2xl: 1.5rem;
        --header-height: 60px;
    }

    .container { padding: 0 var(--space-md); }

    /* Shrink header elements to fit all icons */
    .header-icon-btn { width: 34px; height: 34px; }
    .header-icon-btn svg { width: 20px; height: 20px; }
    .logo { font-size: 1.25rem; }
    .header-icons { gap: var(--space-xs); }
    .header-inner { gap: var(--space-xs); }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .category-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

    .hero { min-height: 50vh; }

    .search-wrapper {
        position: fixed;
        top: 0; left: 0; right: 0;
        max-width: 100%;
        padding: var(--space-sm);
        background: var(--color-bg-primary);
        z-index: var(--z-dropdown);
        display: none;
    }

    .search-wrapper.mobile-active {
        display: block;
        animation: fadeIn 200ms ease;
    }

    .form-row { grid-template-columns: 1fr; }

    .section { padding: var(--space-2xl) 0; }

    /* Footer accordion on mobile */
    .footer-column h4 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .footer-column ul { display: none; }
    .footer-column.open ul { display: block; }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Full-screen cart on mobile */
    .cart-drawer { width: 100%; max-width: 100%; }
}

/* Small phones (< 480) */
@media (max-width: 479px) {
    :root {
        --fs-hero: 2rem;
    }

    .product-grid { grid-template-columns: 1fr; }
    .add-to-cart-form { flex-direction: column; }
    .add-to-cart-form .btn { width: 100%; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .cart-drawer, .simulation-banner,
    .search-wrapper, .mobile-menu, .sticky-add-bar { display: none !important; }

    body { color: #000; background: #fff; }
}
