/* 
 * AURA HOME & BEAUTY — PREMIUM D2C DESIGN SYSTEM
 * ─────────────────────────────────────────────────────────────────
 * Unified Design Tokens, Editorial Typography & High-End D2C Components
 * Primary BG: #FAF9F7 | Surface: #FFFFFF | Text: #171615 | Border: #E7E2DC
 * Brand Accent: #B96648 | Dark Brand: #8F4936 | Success: #2F6B52
 * ─────────────────────────────────────────────────────────────────
 */

:root {
    /* Color System (Section 2 & 37) */
    --color-bg: #FAF9F7;
    --color-bg-warm: #F5F0E8;
    --color-surface: #FFFFFF;
    --color-text: #171615;
    --color-text-secondary: #6F6A64;
    --color-muted: #6F6A64;
    --color-border: #E7E2DC;
    --color-border-hover: #D8D1C7;
    
    --color-brand: #B96648;
    --color-brand-dark: #8F4936;
    --color-success: #2F6B52;
    --color-warning: #B9892E;

    /* Legacy Alias Tokens */
    --bg-primary: var(--color-bg);
    --bg-secondary: var(--color-bg-warm);
    --bg-card: var(--color-surface);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-secondary);
    --text-muted: var(--color-muted);
    --accent-terracotta: var(--color-brand);
    --accent-terracotta-dark: var(--color-brand-dark);
    --border-light: var(--color-border);
    --border-color: var(--color-border);

    /* Typography System (Apple SF Pro / Inter Typography) */
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
    --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", -apple-system, sans-serif;

    /* Spacing System */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 80px;
    --space-10: 96px;
    --space-11: 120px;

    /* Layout Tokens */
    --max-width: 1280px;
    --max-width-editorial: 1320px;

    /* Apple Precision Radius System */
    --radius-sm: 8px;
    --radius-input: 12px;
    --radius-btn: 12px;
    --radius-card: 18px;
    --radius-lg: 22px;
    --radius-pill: 9999px;

    /* Apple Multi-Layered Elevation System */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-drawer: -12px 0 40px rgba(0, 0, 0, 0.15);
    
    /* Apple Signature Colors */
    --apple-blue: #0071E3;
    --apple-blue-hover: #0077ED;
    --apple-dark: #1D1D1F;
    --apple-gray: #86868B;
    --apple-light-gray: #F5F5F7;
    --apple-border: rgba(0, 0, 0, 0.10);
    --apple-border-focus: #0071E3;

    /* ── ADAPTIVE FPS & HIGH REFRESH RATE TOKENS (60Hz / 90Hz / 120Hz ProMotion) ── */
    --device-fps: 60;
    --frame-budget: 16.66ms;
    --motion-factor: 1.0;
    --anim-duration-fast: calc(160ms * var(--motion-factor, 1));
    --anim-duration-normal: calc(260ms * var(--motion-factor, 1));
    --anim-duration-slow: calc(400ms * var(--motion-factor, 1));
    --ease-apple-gpu: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 90Hz Fluid Refresh Rate Optimization (Pixel, OnePlus, Samsung 90Hz) */
html[data-fps-mode="90"] {
    --anim-duration-fast: 115ms;
    --anim-duration-normal: 195ms;
    --anim-duration-slow: 310ms;
}

/* 120Hz & 144Hz ProMotion / High Refresh OLED Optimization */
html[data-fps-mode="120"],
html[data-fps-mode="144"] {
    --anim-duration-fast: 90ms;
    --anim-duration-normal: 160ms;
    --anim-duration-slow: 240ms;
}

/* ── HARDWARE ACCELERATED GPU COMPOSITING (ZERO JANK PIPELINE) ── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

.product-card,
.category-card,
.admin-card,
.checkout-card,
.virtual-card,
.apple-pay-sheet,
.site-header,
.announcement-bar,
.modal-card,
.toast,
.bottom-nav {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Intelligent GPU Memory Allocation — Activate will-change only on interaction */
.product-card:hover,
.category-card:hover,
.btn-primary:active,
.btn-apple:active,
.virtual-card:hover {
    will-change: transform, opacity;
}

/* Off-screen Content Skipping — Drops layout time to <1ms for 90 FPS */
.product-grid > .product-card,
.products-feed-grid > .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
    contain: layout style paint;
}

/* ── BASE STYLES ────────────────────────────────────────────────── */
body {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    margin: 0;
    padding: 0;
    padding-bottom: 4rem; /* Spacing for mobile bottom nav */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Headings Typography Rules (Section 3 & 4) */
h1, h2, .font-serif, .editorial-heading {
    font-family: var(--font-display) !important;
    color: var(--color-text);
    font-weight: 600;
}

h1 {
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-ui);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    line-height: 1.25;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background-color: var(--color-bg-warm);
}
::-webkit-scrollbar-thumb {
    background-color: var(--color-brand);
    border-radius: var(--radius-pill);
}

/* ══════════════════════════════════════════════════════════════════
 * APPLE-CALIBER GLOBAL FORM CONTROLS & SURFACES
 * Designed to feel like a multi-million-dollar technology company
 * ══════════════════════════════════════════════════════════════════ */

/* Universal Apple Form Inputs */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
select,
textarea,
.form-input,
.input-field,
.apple-input,
.admin-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.4;
    color: var(--apple-dark, #1D1D1F);
    background-color: #FFFFFF;
    border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.12));
    border-radius: var(--radius-input, 12px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):hover,
select:hover,
textarea:hover,
.form-input:hover,
.input-field:hover,
.apple-input:hover {
    border-color: rgba(0, 0, 0, 0.24);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
select:focus,
textarea:focus,
.form-input:focus,
.input-field:focus,
.apple-input:focus,
.admin-input:focus {
    outline: none;
    border-color: var(--apple-blue, #0071E3) !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16) !important;
}

input::placeholder,
textarea::placeholder {
    color: #86868B;
    font-weight: 400;
}

/* Apple Select with custom sleek chevron */
select,
.apple-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    padding-right: 38px;
}

/* Apple Floating & Precision Labels */
label,
.form-label,
.apple-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--apple-dark, #1D1D1F);
    margin-bottom: 6px;
}

/* Apple-Caliber Card Surfaces */
.product-card,
.category-card,
.admin-card,
.checkout-card,
.card-apple,
.glass-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-card, 18px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.product-card:hover,
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 0, 0, 0.12);
}

/* (Button system consolidated in Section 3 below) */

/* Apple Frosted Glass Bar */
.apple-frosted {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ── 1. ANNOUNCEMENT BAR (Section 7) ────────────────────────────── */
.announcement-bar {
    background-color: var(--color-text);
    color: var(--color-bg);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 16px;
    text-align: center;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(231, 226, 220, 0.15);
}

/* ── 2. HEADER & NAVIGATION (Section 7) ─────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    background-color: rgba(250, 249, 247, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header.scrolled {
    background-color: rgba(250, 249, 247, 0.98);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.nav-logo .logo-text {
    font-family: var(--font-display) !important;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.nav-links {
    display: none;
}
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 4px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-brand);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-brand);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    color: var(--color-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-btn:hover {
    color: var(--color-brand);
    background: var(--color-bg-warm);
}

.badge-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--color-brand);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    gap: 12px;
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-bg-warm);
}

/* Mobile Bottom Navigation Bar (Section 26) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 45;
}
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}
.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    gap: 2px;
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
}
.mobile-bottom-item.active, .mobile-bottom-item:hover {
    color: var(--color-brand);
}

/* ── 3. LUXURY APPLE-INSPIRED BUTTON SYSTEM (GLOBAL MASTER) ────── */
button,
input[type="button"],
input[type="submit"],
.btn,
.btn-primary,
.btn-secondary,
.btn-accent,
.btn-apple,
.btn-pay-premium,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    touch-action: manipulation;
    cursor: pointer;
    font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif);
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.2s ease,
                border-color 0.2s ease,
                opacity 0.2s ease;
    will-change: transform;
    position: relative;
    outline: none;
}

button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.32) !important;
}

/* Primary Button (Luxury Obsidian & Apple Finish) */
.btn-primary,
.btn-apple {
    min-height: 46px;
    padding: 12px 26px;
    border-radius: var(--radius-pill, 9999px) !important;
    background: linear-gradient(180deg, #242322 0%, #151413 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px -1px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0.5px rgba(255, 255, 255, 0.22) !important;
}

.btn-primary:hover:not(:disabled),
.btn-apple:hover:not(:disabled) {
    background: linear-gradient(180deg, #343230 0%, #1C1B1A 100%) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.btn-primary:active:not(:disabled),
.btn-apple:active:not(:disabled) {
    transform: scale(0.975) translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition-duration: 0.08s !important;
}

/* Secondary Button (Frosted Oyster Glass Surface) */
.btn-secondary {
    min-height: 46px;
    padding: 12px 24px;
    border-radius: var(--radius-pill, 9999px) !important;
    background: #FFFFFF !important;
    color: #171615 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.btn-secondary:hover:not(:disabled) {
    background: #F7F6F4 !important;
    border-color: rgba(0, 0, 0, 0.24) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 #FFFFFF !important;
}

.btn-secondary:active:not(:disabled) {
    transform: scale(0.98) translateY(0) !important;
    background: #EFECE6 !important;
    transition-duration: 0.08s !important;
}

/* Accent Button (Signature Terracotta / Luxury Highlight) */
.btn-accent {
    min-height: 46px;
    padding: 12px 26px;
    border-radius: var(--radius-pill, 9999px) !important;
    background: linear-gradient(180deg, #C26B4D 0%, #A85437 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(185, 102, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-accent:hover:not(:disabled) {
    background: linear-gradient(180deg, #CF7557 0%, #B55E40 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 24px rgba(185, 102, 72, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-accent:active:not(:disabled) {
    transform: scale(0.975) translateY(0) !important;
    box-shadow: 0 2px 8px rgba(185, 102, 72, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition-duration: 0.08s !important;
}

/* Icon Buttons (Header, Drawer, Modal Close) */
.icon-btn {
    color: var(--color-text, #171615);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px;
    border-radius: var(--radius-pill, 9999px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    will-change: transform;
}

.icon-btn:hover {
    color: var(--color-brand, #B96648);
    background: rgba(0, 0, 0, 0.04);
    transform: scale(1.08);
}

.icon-btn:active {
    transform: scale(0.92);
}

/* Social Icon Buttons */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.04);
    color: #6F6A64;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover {
    background: #171615;
    color: #FFFFFF;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon-btn:active {
    transform: scale(0.94);
}

/* Quantity Adjust Buttons */
.qty-btn,
form button[name="quantity"] {
    transition: all 0.15s ease;
    border-radius: 6px;
    cursor: pointer;
}

form button[name="quantity"]:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.15);
}

form button[name="quantity"]:active:not(:disabled) {
    transform: scale(0.9);
}

/* Disabled State across all buttons */
button:disabled,
.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-accent:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Blue Action Button (Apple Accent) */
.btn-blue {
    min-height: 46px;
    padding: 12px 24px;
    border-radius: var(--radius-pill, 9999px) !important;
    background: linear-gradient(180deg, #0077ED 0%, #0066CC 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    text-decoration: none;
}

.btn-blue:hover:not(:disabled) {
    background: linear-gradient(180deg, #1A85F2 0%, #006EDC 100%) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.45) !important;
}

.btn-blue:active:not(:disabled) {
    transform: scale(0.975) translateY(0) !important;
}

/* Footer Newsletter Button & Input */
.footer-newsletter-form {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 9999px;
    padding: 4px 5px 4px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 380px;
    margin-top: 10px;
}

.footer-newsletter-form:focus-within {
    border-color: #171615;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.footer-newsletter-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #171615;
    flex: 1;
    min-width: 0;
}

.footer-newsletter-btn {
    background: linear-gradient(180deg, #242322 0%, #151413 100%);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    background: linear-gradient(180deg, #343230 0%, #1C1B1A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.footer-newsletter-btn:active {
    transform: scale(0.96);
}

/* ── 4. PRODUCT CARDS — REDESIGN (Section 10 & 11) ───────────────── */
.product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
}

.product-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F6F3EE;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.02);
}

/* Wishlist Button on Product Cards (Section 13) */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover, .wishlist-btn.active {
    color: var(--color-brand);
    border-color: var(--color-brand);
}

/* Badges (Section 12) */
.badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.badge-bestseller { background: var(--color-text); color: #ffffff; }
.badge-trending { background: var(--color-brand); color: #ffffff; }
.badge-new { background: var(--color-success); color: #ffffff; }
.badge-popular { background: var(--color-warning); color: #ffffff; }

/* Product Details inside Card */
.product-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: space-between;
}

.product-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
}

.product-title {
    font-family: var(--font-ui) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    margin: 0;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 5. CATEGORY CARDS — REDESIGN (Section 1 & 2) ─────────────────── */
.category-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    overflow: hidden;
    height: 100%;
    min-height: 310px;
}

@media (max-width: 767px) {
    .category-card {
        padding: 10px;
        min-height: 230px;
        border-radius: 16px;
    }
}

.category-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 8px 30px rgba(23, 22, 21, 0.08);
    transform: translateY(-2px);
}

.category-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background-color: #F5F2ED;
    margin-bottom: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 300ms ease;
}

.category-card:hover .category-card-img {
    transform: scale(1.03);
}

.category-card-info {
    padding: 4px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.category-card-title {
    font-family: var(--font-ui) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    transition: color 200ms ease;
    line-height: 1.25;
    margin: 0;
}

@media (max-width: 767px) {
    .category-card-title {
        font-size: 15px !important;
    }
}

.category-card-desc {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 3px;
    line-clamp: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767px) {
    .category-card-desc {
        font-size: 12px;
    }
}

.category-card-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-brand);
    margin-top: 8px;
    transition: transform 200ms ease;
}

.category-card:hover .category-card-action {
    transform: translateX(4px);
}

/* ── 6. FORMS & INPUTS (Section 20) ─────────────────────────────── */
.form-input {
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    background-color: #ffffff;
    padding: 0 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(185, 102, 72, 0.12);
}

/* ── 7. CART DRAWER (Section 23) ────────────────────────────────── */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(23, 22, 21, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.cart-drawer-overlay.open,
.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background-color: #ffffff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-drawer);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open,
.cart-drawer.active {
    transform: translateX(0);
}

/* ── 8. PREMIUM FOOTER SYSTEM (Section 3–15, 22) ─────────────────── */
.site-footer {
    background-color: #171615;
    color: #ffffff;
    font-family: var(--font-ui);
    position: relative;
    z-index: 10;
    width: 100%;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 32px;
}

@media (max-width: 767px) {
    .footer-container {
        padding: 56px 20px 24px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 36px;
    }
    .footer-column-newsletter {
        grid-column: span 3;
    }
}

@media (max-width: 767px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

/* Footer Brand Lockup */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: var(--color-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1;
}

.footer-tagline {
    font-size: 13px;
    color: #B8B1AA;
    line-height: 1.6;
    margin: 0;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #B8B1AA;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 180ms ease;
}

.social-icon-btn:hover {
    background-color: var(--color-brand);
    border-color: var(--color-brand);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer Navigation Columns */
.footer-column-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-item a {
    font-size: 14px;
    color: #B8B1AA;
    text-decoration: none;
    line-height: 1.7;
    transition: color 150ms ease, transform 150ms ease;
    display: inline-block;
}

.footer-link-item a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

/* Mobile Accordion Style for Navigation Columns */
@media (max-width: 767px) {
    .footer-accordion-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        background: transparent;
        border-top: none;
        border-left: none;
        border-right: none;
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        cursor: pointer;
        text-align: left;
    }
    
    .footer-accordion-icon {
        font-size: 16px;
        color: var(--color-brand);
        transition: transform 200ms ease;
    }
    
    .footer-accordion-body {
        display: none;
        padding: 12px 0 16px;
    }
    
    .footer-accordion-body.open {
        display: flex;
        flex-direction: column;
    }
    
    .footer-brand {
        margin-bottom: 28px;
    }
    
    .footer-column-newsletter {
        margin-top: 20px;
        margin-bottom: 24px;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }
}

/* Newsletter Column & Form */
.footer-column-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter-desc {
    font-size: 13px;
    color: #B8B1AA;
    line-height: 1.5;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

@media (max-width: 767px) {
    .footer-newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
}

.footer-newsletter-input {
    height: 48px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    padding: 0 16px;
    font-family: var(--font-ui);
    font-size: 13px;
    width: 100%;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--color-brand);
    background-color: rgba(255, 255, 255, 0.10);
}

.footer-newsletter-input::placeholder {
    color: #A9A29B;
}

.footer-newsletter-btn {
    height: 48px;
    background-color: #ffffff;
    color: #171615;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 150ms ease;
}

.footer-newsletter-btn:hover {
    background-color: var(--color-brand);
    color: #ffffff;
}

/* Footer Bottom Divider & Legal Row */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin: 48px 0 28px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #B8B1AA;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #B8B1AA;
}

.footer-payment-badge {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal-links a {
    color: #B8B1AA;
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════
 * SKELETON LOADING SYSTEM — AURA PREMIUM D2C
 * High-performance, GPU-accelerated shimmer placeholders & progressive reveal
 * ══════════════════════════════════════════════════════════════════ */

@keyframes auraSkeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes auraPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Base Shimmer Primitive */
.skeleton {
    background: linear-gradient(
        90deg,
        #F0EBE3 0%,
        #F9F6F0 35%,
        #FFFFFF 50%,
        #F9F6F0 65%,
        #F0EBE3 100%
    );
    background-size: 200% 100%;
    animation: auraSkeletonShimmer 1.8s ease-in-out infinite;
    border-radius: var(--radius-sm, 6px);
    display: block;
    position: relative;
    overflow: hidden;
}

.skeleton-dark {
    background: linear-gradient(
        90deg,
        #1E1C1A 0%,
        #2A2724 35%,
        #35312D 50%,
        #2A2724 65%,
        #1E1C1A 100%
    );
    background-size: 200% 100%;
    animation: auraSkeletonShimmer 1.8s ease-in-out infinite;
}

/* Atomic Shapes */
.skeleton-box {
    width: 100%;
    height: 100%;
}

.skeleton-text {
    height: 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-title {
    height: 18px;
    margin-bottom: 12px;
    border-radius: 999px;
    width: 75%;
}

.skeleton-badge {
    height: 16px;
    width: 58px;
    border-radius: 4px;
    display: inline-block;
}

.skeleton-circle {
    border-radius: 50%;
}

.skeleton-btn {
    height: 38px;
    width: 100%;
    border-radius: var(--radius-btn, 10px);
}

/* Progressive Image Skeleton Loader */
.skeleton-image-wrap,
.product-card-img-wrap,
.category-card-img-wrap {
    position: relative;
    overflow: hidden;
    background-color: #FAF8F5;
}

.skeleton-image-wrap::before,
.product-card-img-wrap::before,
.category-card-img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #EDE6DC 0%,
        #F7F4EE 35%,
        #FFFFFF 50%,
        #F7F4EE 65%,
        #EDE6DC 100%
    );
    background-size: 200% 100%;
    animation: auraSkeletonShimmer 1.8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.skeleton-image-wrap img,
.product-card-img-wrap img,
.category-card-img-wrap img {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1), transform 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Once image is fully loaded */
.skeleton-image-wrap.is-loaded::before,
.product-card-img-wrap.is-loaded::before,
.category-card-img-wrap.is-loaded::before {
    opacity: 0;
    animation: none;
}

.skeleton-image-wrap.is-loaded img,
.product-card-img-wrap.is-loaded img,
.category-card-img-wrap.is-loaded img {
    opacity: 1;
}

/* Full Product Card Skeleton */
.skeleton-product-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border, #E7E2DC);
    border-radius: var(--radius-card, 14px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    animation: auraPulse 2.4s ease-in-out infinite;
}

.skeleton-product-media {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: linear-gradient(
        90deg,
        #F0EBE3 0%,
        #FAF7F2 35%,
        #FFFFFF 50%,
        #FAF7F2 65%,
        #F0EBE3 100%
    );
    background-size: 200% 100%;
    animation: auraSkeletonShimmer 1.8s ease-in-out infinite;
    position: relative;
    padding: 16px;
}

.skeleton-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 12px;
}

/* Full Search Result Item Skeleton */
.skeleton-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #FAF9F7;
    border: 1px solid #EFEAE4;
}

/* Full Cart Drawer Item Skeleton */
.skeleton-cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #E8E2D8;
    align-items: center;
}

/* Top Progress Shimmer Bar */
.skeleton-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #B96648 0%,
        #D9886C 50%,
        #8F4936 100%
    );
    background-size: 200% 100%;
    animation: auraSkeletonShimmer 1.2s infinite linear;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.skeleton-progress-bar.active {
    opacity: 1;
}