/*
 * True Blue — Jill's Navy Wardrobe
 * Navy isn't safe—it's signature.
 *
 * Every pixel placed with intention.
 * Every shade of navy deliberate.
 * Your color. Every hour.
 *
 * With love, from the shady robot.
 */

/* ═══════════════════════════════════════════════════════════════
   FOUNDATIONS — Navy Palette
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Navy Spectrum — the hero colors */
    --navy-deepest: #0D1B2A;
    --navy-deep: #1B263B;
    --navy-core: #2C3E50;
    --navy-soft: #415A77;
    --navy-mist: #778DA9;
    --navy-pale: #E0E5EC;
    
    /* Warm Neutrals — for balance */
    --cream: #FDF8F3;
    --cream-warm: #FAF5EE;
    --ivory: #FFFEF9;
    --sand: #E8DFD0;
    --bisque: #F0E8DD;
    
    /* Ink & Text */
    --ink: #1B263B;
    --ink-soft: rgba(27, 38, 59, 0.72);
    /* Increased from 0.45 to 0.58 for WCAG AA contrast */
    --ink-faint: rgba(27, 38, 59, 0.58);
    --ink-ghost: rgba(27, 38, 59, 0.12);
    --ink-whisper: rgba(27, 38, 59, 0.06);
    
    /* Accents — Jill's signature colors */
    /* Gold darkened from #C9A962 to #9D7F2A for WCAG AA contrast (4.5:1 on cream) */
    --gold: #9D7F2A;
    --gold-soft: rgba(157, 127, 42, 0.15);
    /* Lighter gold for use on dark backgrounds - WCAG AA compliant (4.68:1 on navy-deep) */
    --gold-light: #AC8B2E;
    --rose-gold: #B4838D;
    --blush: #E0CCC7;
    
    /* Heart & Actions */
    --heart: #E25555;
    --heart-glow: rgba(226, 85, 85, 0.25);
    
    /* Success/Status */
    --success: #4A7C59;
    --warning: #C9A962;
    
    /* Typography Scale — Perfect Fourth (1.333) */
    --text-xs: 0.563rem;
    --text-sm: 0.75rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.333rem;
    --text-2xl: 1.777rem;
    --text-3xl: 2.369rem;
    --text-4xl: 3.157rem;
    --text-5xl: 4.209rem;
    
    /* Font Families */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Spacing — 8px grid */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;
    --space-20: 10rem;
    
    /* Timing — Fibonacci */
    --dur-instant: 89ms;
    --dur-quick: 144ms;
    --dur-normal: 233ms;
    --dur-slow: 377ms;
    --dur-glacial: 610ms;
    --dur-epic: 987ms;
    
    /* Easing */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows — soft navy */
    --shadow-sm: 0 1px 3px rgba(27, 38, 59, 0.08);
    --shadow-md: 0 4px 6px rgba(27, 38, 59, 0.1);
    --shadow-lg: 0 10px 25px rgba(27, 38, 59, 0.12);
    --shadow-xl: 0 20px 40px rgba(27, 38, 59, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
    color: var(--navy-deep);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy-soft);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-whisper);
    padding: var(--space-4) var(--space-6);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 300;
    color: var(--navy-core);
    text-decoration: none;
}

.site-title span {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    gap: var(--space-4);
}

.nav-action {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    /* WCAG 2.1 touch target: min 44x44px */
    min-height: 44px;
    padding: var(--space-2) var(--space-4);
    background: none;
    border: 1px solid var(--ink-ghost);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--ink-soft);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-out);
}

.nav-action:hover {
    border-color: var(--navy-core);
    color: var(--navy-core);
    background: var(--gold-soft);
}

.nav-badge {
    background: var(--heart);
    color: white;
    font-size: var(--text-xs);
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-16) var(--space-6) var(--space-10);
    background: linear-gradient(180deg, var(--navy-pale) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(44, 62, 80, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 169, 98, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy-soft);
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
    font-weight: 200;
    color: var(--navy-deep);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--ink-soft);
    max-width: 500px;
    margin: 0 auto var(--space-6);
}

.hero-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-xl);
    color: var(--navy-soft);
    max-width: 600px;
    margin: var(--space-8) auto 0;
    padding: var(--space-6);
    border-left: 2px solid var(--gold);
}

.hero-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--ink-faint);
    margin-top: var(--space-3);
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════ */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-5) var(--space-4);
    background: var(--navy-deep);
    color: var(--cream);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 300;
    /* Using gold-light for WCAG AA contrast on navy background */
    color: var(--gold-light);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy-pale);
    margin-top: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════
   PHILOSOPHY CARDS
   ═══════════════════════════════════════════════════════════════ */

.philosophy-section {
    padding: var(--space-8) var(--space-6);
    background: var(--cream-warm);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.philosophy-card {
    background: var(--ivory);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--ink-whisper);
    text-align: center;
    transition: all var(--dur-normal) var(--ease-out);
}

.philosophy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.philosophy-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--navy-core);
    margin-bottom: var(--space-2);
}

.philosophy-text {
    font-size: var(--text-sm);
    color: var(--ink-soft);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.category-section {
    padding: var(--space-10) var(--space-6);
}

.category-section:nth-child(even) {
    background: var(--cream-warm);
}

.category-section:first-child {
    padding-top: var(--space-8);
}

.category-header {
    max-width: 1200px;
    margin: 0 auto var(--space-6);
    padding: 0 var(--space-4);
}

.category-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-1);
}

.category-title {
    font-size: var(--text-2xl);
    color: var(--navy-deep);
    margin-bottom: var(--space-1);
}

.category-subtitle {
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════════════════ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: 0;
    }
}

.product-card {
    background: var(--ivory);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--ink-whisper);
    transition: all var(--dur-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 16px 32px rgba(27, 38, 59, 0.1),
        0 6px 12px rgba(27, 38, 59, 0.06);
    border-color: var(--gold);
}

.product-card:active {
    transform: translateY(-2px);
}

.product-card.centerpiece {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .product-card.centerpiece {
        grid-column: span 1;
    }
}

/* Product Image */
.product-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--navy-pale);
}

/* Image loading skeleton */
.product-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--navy-pale) 25%,
        var(--cream) 50%,
        var(--navy-pale) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1597ms infinite;
    z-index: 1;
    opacity: 1;
    transition: opacity var(--dur-normal) var(--ease-out);
}

.product-image-wrap.loaded::before {
    opacity: 0;
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Badge */
.product-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--navy-deep);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
}

.product-badge.her-ask {
    background: var(--gold);
    color: var(--navy-deep);
}

.product-badge.custom-order {
    background: var(--navy-soft);
    color: var(--cream);
}

/* Heart Button — WCAG 2.1 touch target: min 44x44px */
.heart-button {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-normal) var(--ease-spring);
    z-index: 10;
}

.heart-button:hover {
    transform: scale(1.15);
    background: white;
    box-shadow: 
        0 4px 12px rgba(226, 85, 85, 0.25),
        0 2px 4px rgba(27, 38, 59, 0.1);
}

.heart-button:active {
    transform: scale(1.05);
}

.heart-button.active {
    background: var(--heart);
}

.heart-button.active svg {
    fill: white;
    stroke: white;
}

.heart-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--heart);
    stroke-width: 2;
    transition: all var(--dur-normal) var(--ease-spring);
}

/* Product Info */
.product-info {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-soft);
    margin-bottom: 2px;
}

.product-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--navy-deep);
    margin-bottom: var(--space-2);
    line-height: 1.25;
}

.product-description {
    font-size: var(--text-sm);
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--ink-whisper);
    margin-top: auto;
}

.product-price {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--navy-core);
    font-weight: 500;
}

.product-occasion {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--navy-core);
    text-decoration: none;
    transition: color var(--dur-normal) var(--ease-out);
}

.product-link:hover {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   OUTFIT BUILDER
   ═══════════════════════════════════════════════════════════════ */

.outfits-section {
    padding: var(--space-10) var(--space-6);
    background: var(--navy-deep);
    color: var(--cream);
}

.outfits-section .category-header {
    margin-bottom: var(--space-5);
}

.outfits-section .category-eyebrow {
    color: var(--gold);
}

.outfits-section .category-title {
    color: var(--cream);
}

.outfits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (max-width: 1024px) {
    .outfits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .outfits-grid {
        grid-template-columns: 1fr;
    }
}

.outfit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: all var(--dur-normal) var(--ease-out);
    cursor: pointer;
}

.outfit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.outfit-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--cream);
    margin-bottom: var(--space-1);
}

.outfit-description {
    font-size: var(--text-xs);
    color: var(--navy-pale);
    margin-bottom: var(--space-3);
}

.outfit-products {
    display: flex;
    gap: var(--space-2);
}

.outfit-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid transparent;
    transition: all var(--dur-normal) var(--ease-out);
}

.outfit-product-thumb:hover {
    border-color: var(--gold);
    transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    padding: var(--space-8) var(--space-6);
    background: var(--navy-deepest);
    color: var(--navy-pale);
    text-align: center;
}

.footer-message {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--cream);
    margin-bottom: var(--space-3);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-stats {
    margin-top: var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--navy-mist);
}

/* ═══════════════════════════════════════════════════════════════
   DRAWER STYLES
   ═══════════════════════════════════════════════════════════════ */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-normal) var(--ease-out);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--ivory);
    z-index: 201;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(27, 38, 59, 0.1);
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--ink-whisper);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--navy-deep);
}

.drawer-close {
    /* WCAG 2.1 touch target: min 44x44px */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: none;
    border: 1px solid var(--ink-ghost);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-normal) var(--ease-out);
}

.drawer-close:hover {
    background: var(--navy-core);
    border-color: var(--navy-core);
    color: white;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.drawer-empty {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--ink-faint);
}

.drawer-empty::before {
    content: '💙';
    display: block;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.drawer-empty p:first-of-type {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--navy-soft);
    margin-bottom: var(--space-2);
}

.drawer-empty__hint {
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.drawer-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    border: 1px solid var(--ink-whisper);
    transition: all var(--dur-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.drawer-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(157, 127, 42, 0.1),
        transparent
    );
    transition: left var(--dur-slow) var(--ease-out);
}

.drawer-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.drawer-item:hover::after {
    left: 100%;
}

.drawer-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.drawer-item-info {
    flex: 1;
}

.drawer-item-brand {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--navy-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.drawer-item-name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--navy-deep);
    margin: var(--space-1) 0;
}

.drawer-item-price {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   ORDERS DRAWER STYLES
   ═══════════════════════════════════════════════════════════════ */

.orders-group {
    margin-bottom: var(--space-6);
}

.orders-group__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy-soft);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--ink-whisper);
}

.orders-group__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--ink-whisper);
    transition: all var(--dur-normal) var(--ease-out);
}

.order-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.order-card__img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--navy-pale);
}

.order-card__body {
    flex: 1;
    min-width: 0;
}

.order-card__brand {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-soft);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.order-card__name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--navy-deep);
    margin: var(--space-1) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-card__size {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--ink-faint);
}

.order-card__subtitle {
    font-size: var(--text-xs);
    color: var(--ink-faint);
    font-style: italic;
}

.order-card__specs {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--navy-soft);
    margin-top: var(--space-1);
}

.order-card__status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-card__status--confirmed {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-card__status--transit {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-soft);
    color: white;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.order-card__status--pending {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.order-card--custom {
    border-left: 3px solid var(--gold);
}

.order-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.order-card__price {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gold);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   ORDERS SUMMARY
   ═══════════════════════════════════════════════════════════════ */

.orders-summary {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-core));
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    color: var(--cream);
}

.orders-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--navy-pale);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-summary__row:last-child {
    border-bottom: none;
}

.orders-summary__row--total {
    padding-top: var(--space-4);
    margin-top: var(--space-2);
    border-top: 1px solid var(--gold);
    border-bottom: none;
}

.orders-summary__value {
    font-weight: 500;
    color: var(--cream);
}

.orders-summary__value--pending {
    color: var(--gold);
    font-style: italic;
}

.orders-summary__value--total {
    font-size: var(--text-lg);
    color: var(--gold);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero {
        min-height: 40vh;
        padding: var(--space-12) var(--space-4) var(--space-6);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-quote {
        font-size: var(--text-base);
        padding: var(--space-4);
        margin-top: var(--space-5);
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: var(--space-4);
        padding: var(--space-4);
    }
    
    .stat-value {
        font-size: var(--text-xl);
    }
    
    .category-section {
        padding: var(--space-6) var(--space-4);
    }
    
    .header-inner {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .site-header {
        padding: var(--space-3) var(--space-4);
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS & MICRODELIGHTS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes gentleGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0); }
    50% { box-shadow: 0 0 20px 5px rgba(201, 169, 98, 0.15); }
}

/* Product Cards */
.product-card {
    animation: fadeIn var(--dur-slow) var(--ease-out);
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0ms; }
.product-card:nth-child(2) { animation-delay: 89ms; }
.product-card:nth-child(3) { animation-delay: 144ms; }
.product-card:nth-child(4) { animation-delay: 233ms; }
.product-card:nth-child(5) { animation-delay: 377ms; }
.product-card:nth-child(6) { animation-delay: 610ms; }

/* Heart Button Microinteractions */
.heart-button.active {
    animation: heartBeat var(--dur-slow) var(--ease-spring);
}

.heart-button:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px var(--heart-glow));
}

.heart-button svg {
    transition: all var(--dur-normal) var(--ease-spring);
}

/* Badge Shimmer Effect */
.product-badge.her-ask {
    position: relative;
    overflow: hidden;
}

.product-badge.her-ask::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2351ms infinite; /* Fibonacci: 1597 + 610 + 144 */
}

/* Philosophy Cards Float */
.philosophy-card {
    animation: fadeInUp var(--dur-slow) var(--ease-out);
    animation-fill-mode: both;
}

.philosophy-card:hover .philosophy-icon {
    animation: float 1987ms ease-in-out infinite; /* Fibonacci: 987 + 1000 */
}

/* Stats Pulse */
.stat-value {
    transition: all var(--dur-normal) var(--ease-out);
}

.stats-bar:hover .stat-value {
    animation: pulse 2s ease-in-out infinite;
}

/* Drawer Slide Animation */
.drawer.active {
    animation: slideInRight var(--dur-slow) var(--ease-out);
}

/* Order Summary Glow */
.orders-summary {
    transition: all var(--dur-normal) var(--ease-out);
}

.orders-summary:hover {
    animation: gentleGlow 2s ease-in-out infinite;
}

/* Hero Title Highlight Effect */
.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft), var(--gold));
    background-size: 200% 100%;
    animation: shimmer 2351ms ease-in-out infinite; /* Fibonacci: 1597 + 610 + 144 */
    border-radius: 2px;
}

/* Navigation Action Hover */
.nav-action {
    position: relative;
    overflow: hidden;
}

.nav-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-soft),
        transparent
    );
    transition: left var(--dur-slow) var(--ease-out);
}

.nav-action:hover::before {
    left: 100%;
}

/* Outfit Card Hover Enhancement - now in main section */

.outfit-card:hover .outfit-product-thumb:nth-child(1) { transform: translateY(-2px) rotate(-2deg); }
.outfit-card:hover .outfit-product-thumb:nth-child(2) { transform: translateY(-4px); }
.outfit-card:hover .outfit-product-thumb:nth-child(3) { transform: translateY(-2px) rotate(2deg); }

/* Product Link Arrow Animation */
.product-link::after {
    content: ' →';
    display: inline-block;
    transition: transform var(--dur-normal) var(--ease-out);
}

.product-link:hover::after {
    transform: translateX(4px);
}

/* Footer Anchor Animation */
.footer-tagline {
    display: inline-block;
}

.footer-tagline:hover {
    animation: float 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY — Focus States & Skip Link
   ═══════════════════════════════════════════════════════════════ */

/* Visible Focus Indicators (WCAG 2.4.7) */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
.product-card:focus-visible,
.heart-button:focus-visible,
.drawer-close:focus-visible,
.nav-action:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Product card focus styling */
.product-card:focus-visible {
    box-shadow: 0 0 0 4px var(--gold-soft), var(--shadow-xl);
    transform: translateY(-6px);
}

/* Heart button focus */
.heart-button:focus-visible {
    outline-offset: 4px;
    box-shadow: 0 0 0 4px var(--heart-glow);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-6);
    background: var(--navy-deep);
    color: var(--cream);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top var(--dur-normal) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ERROR STATE — When gallery fails to load
   ═══════════════════════════════════════════════════════════════════════════ */

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-8);
    text-align: center;
}

.error-state__icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
    opacity: 0.6;
}

.error-state__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    /* Fixed: was --cream (light on light) */
    color: var(--navy-deep);
    margin-bottom: var(--space-3);
}

.error-state__message {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--ink-faint);
    max-width: 400px;
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.error-state__button {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-3) var(--space-6);
    background: var(--gold);
    color: var(--navy-deep);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-out);
}

.error-state__button:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-state__button:active {
    transform: translateY(0);
}

.error-state__button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING STATE — While gallery is loading
   ═══════════════════════════════════════════════════════════════════════════ */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: var(--space-8);
    text-align: center;
}

.loading-state__icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    animation: float 2s ease-in-out infinite;
}

.loading-state__text {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    color: var(--navy-soft);
    animation: pulse 1.5s ease-in-out infinite;
}

