/*
 * The Curator's Wardrobe — Tim
 * Heritage with humor. Pattern maximalism.
 * British countryside meets Pacific Northwest creative class.
 *
 * Color DNA: Barbour olive, indigo denim, burgundy wine,
 *            walnut leather, Scottish cream wool
 *
 * craft(x) → ∞ always
 */

/* ═══════════════════════════════════════════════════════════════
   FOUNDATIONS — Tim's Heritage Palette
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Aged Paper & Scottish Wool — tactile warmth */
    --linen: #F7F4EF;
    --linen-warm: #F0EBE1;
    --linen-shadow: #E5DFD3;
    --porcelain: #FDFBF7;
    --bisque: #EBE3D5;

    /* Ink & Text — deep, rich, never harsh */
    --ink: #1C2233;
    --ink-soft: rgba(28, 34, 51, 0.75);
    --ink-faint: rgba(28, 34, 51, 0.48);
    --ink-ghost: rgba(28, 34, 51, 0.12);
    --ink-whisper: rgba(28, 34, 51, 0.06);

    /* Heritage Core — Barbour, denim, wine */
    --olive: #4A5D23;
    --olive-dark: #3A4A1C;
    --olive-muted: #5C6B3A;
    --indigo: #2C3E5C;
    --indigo-deep: #1E2D47;
    --burgundy: #6B2D3A;
    --burgundy-soft: #7D3A47;

    /* Supporting Heritage */
    --navy: #1E2D47;
    --navy-soft: #3D5068;
    --walnut: #4A3728;
    --saddle: #7A5230;
    --slate: #5A6475;

    /* Accent Colors */
    --cream: #F5EFE0;
    --oatmeal: #D4CAB8;
    --rust: #B45A3C;

    /* Fair Isle accent — subtle Scottish pop */
    --fairisle-cream: #F0E8D5;
    --fairisle-blue: #5B7A8A;
    --fairisle-rust: #A65D45;

    /* Heart color — matches burgundy */
    --heart: #6B2D3A;
    --heart-glow: rgba(107, 45, 58, 0.25);

    /* 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: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains 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 — organic curves */
    --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);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows — crafted, not harsh */
    --shadow-xs: 0 1px 2px rgba(28, 37, 65, 0.03);
    --shadow-sm: 0 1px 3px rgba(28, 37, 65, 0.04), 0 1px 2px rgba(28, 37, 65, 0.03);
    --shadow-md: 0 4px 6px rgba(28, 37, 65, 0.04), 0 2px 4px rgba(28, 37, 65, 0.03);
    --shadow-lg: 0 10px 15px rgba(28, 37, 65, 0.05), 0 4px 6px rgba(28, 37, 65, 0.03);
    --shadow-xl: 0 20px 25px rgba(28, 37, 65, 0.06), 0 10px 10px rgba(28, 37, 65, 0.03);
    --shadow-2xl: 0 25px 50px rgba(28, 37, 65, 0.12);
    --shadow-inner: inset 0 2px 4px rgba(28, 37, 65, 0.03);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════
   SKIP LINK — Accessibility
   ═══════════════════════════════════════════════════════════════ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--cream);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: 1000;
    transition: top var(--dur-quick) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-4);
    outline: 2px solid var(--indigo);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: var(--linen);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Linen texture — barely there */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.01;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Breathing background — Tim's personality colors */
.breathing-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        /* Barbour olive wash - top left */
        radial-gradient(ellipse 80% 50% at 5% 0%, var(--olive-muted) 0%, transparent 40%),
        /* Indigo denim fade - right side */
        radial-gradient(ellipse 60% 70% at 100% 30%, var(--indigo) 0%, transparent 35%),
        /* Burgundy warmth - bottom */
        radial-gradient(ellipse 90% 40% at 50% 100%, var(--burgundy) 0%, transparent 30%),
        /* Cream wool base */
        var(--linen);
    opacity: 0.12;
    animation: heritage-breathe 45s ease-in-out infinite;
}

@keyframes heritage-breathe {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    33% { opacity: 0.16; transform: scale(1.01); }
    66% { opacity: 0.14; transform: scale(1.02); }
}

::selection {
    background: var(--indigo);
    color: var(--cream);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════════ */

a {
    color: var(--navy);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color var(--dur-quick) var(--ease-out);
}

a:hover {
    color: var(--burgundy);
}

a:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 3px;
    border-radius: 2px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

h1 {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
    font-weight: 400;
    letter-spacing: -0.03em;
}

h1 em {
    font-style: italic;
    color: var(--burgundy);
}

h2 {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
}

h3 {
    font-size: var(--text-xl);
    font-weight: 500;
}

p {
    max-width: 60ch;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — Floating pill
   ═══════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-3) var(--space-6);
    background: rgba(28, 37, 65, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08);
    transition: all var(--dur-normal) var(--ease-out);
}

.nav:hover {
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.12);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

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

.nav-links a {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.87);
    padding: var(--space-3) var(--space-2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-normal) var(--ease-out);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-20) var(--space-4);
    position: relative;
    overflow: hidden;
}

/* Pattern grid — Tim's pattern vocabulary */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vw, 700px);
    height: min(85vw, 700px);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    opacity: 0.15;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(28, 37, 65, 0.02) 20px,
            rgba(28, 37, 65, 0.02) 21px
        );
}

/* Personality color accents */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vw, 700px);
    height: min(85vw, 700px);
    background:
        radial-gradient(circle at 25% 20%, var(--burgundy) 0%, transparent 12%),
        radial-gradient(circle at 50% 15%, var(--indigo) 0%, transparent 10%),
        radial-gradient(circle at 75% 20%, var(--olive) 0%, transparent 12%);
    opacity: 0.4;
    pointer-events: none;
    animation: colorPulse 8s ease-in-out infinite;
}

@keyframes colorPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.08));
    border-radius: var(--radius-full);
    border: 1px solid var(--ink-whisper);
    opacity: 0;
    transform: translateY(16px);
    animation: heroReveal var(--dur-glacial) var(--ease-out) 0.1s forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-title {
    margin-bottom: var(--space-5);
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal var(--dur-glacial) var(--ease-out) 0.25s forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto var(--space-10);
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal var(--dur-glacial) var(--ease-out) 0.4s forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--ink-ghost);
    opacity: 0;
    animation: heroReveal var(--dur-glacial) var(--ease-out) 0.55s forwards;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.philosophy {
    padding: var(--space-16) 0;
    background: var(--navy);
    color: var(--cream);
    border-top: 3px solid var(--burgundy);
}

.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.philosophy h2 {
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--cream);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.philosophy-item {
    background: rgba(255,255,255,0.04);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--dur-slow) var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Stagger — use margin instead of transform to prevent layout shifts */
.philosophy-item:nth-child(1) { margin-top: 0; }
.philosophy-item:nth-child(2) { margin-top: 24px; }
.philosophy-item:nth-child(3) { margin-top: -12px; }
.philosophy-item:nth-child(4) { margin-top: 32px; }

/* Personality color accent on hover */
.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--indigo), var(--olive));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-normal) var(--ease-out);
}

.philosophy-item:hover {
    transform: translateY(-8px) !important;
    background: rgba(255,255,255,0.08);
}

.philosophy-item:hover::before {
    transform: scaleX(1);
}

.philosophy-number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--burgundy);
    display: block;
    margin-bottom: var(--space-3);
}

.philosophy-item h3 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: var(--space-3);
    color: var(--cream);
}

.philosophy-item p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   COLLECTION SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.collection {
    padding: var(--space-16) 0;
}

.collection-alt {
    background:
        radial-gradient(ellipse 50% 30% at 50% 0%, rgba(78, 205, 196, 0.08) 0%, transparent 50%),
        var(--linen-warm);
}

.collection-header {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Decorative flourish under collection titles */
.collection-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy), var(--indigo));
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
    opacity: 0.6;
}

.collection-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    display: block;
    margin-bottom: var(--space-3);
}

.collection-title {
    font-weight: 400;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.collection-subtitle {
    font-size: var(--text-base);
    color: var(--ink-faint);
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-5);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARD — Microdelights
   ═══════════════════════════════════════════════════════════════ */

.product-card {
    background: var(--porcelain);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-whisper);
    transition: all var(--dur-slow) var(--ease-out);
    position: relative;
}

.product-card[data-href] {
    cursor: pointer;
}

.product-card[data-href]:focus-within {
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2), var(--shadow-xl);
}

/* Diagonal stagger — use margin to prevent layout shift / flicker */
.product-card:nth-child(3n+1) { margin-top: 0; }
.product-card:nth-child(3n+2) { margin-top: 20px; }
.product-card:nth-child(3n+3) { margin-top: -10px; }

/* Top shimmer on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--indigo), var(--olive));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-normal) var(--ease-out);
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: var(--shadow-2xl);
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Featured card */
.product-card--featured {
    grid-column: span 2;
}

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

/* Image container */
.product-image-container {
    aspect-ratio: 4/5;
    position: relative;
    background: linear-gradient(145deg, var(--linen-warm) 0%, var(--bisque) 100%);
    overflow: hidden;
}

.product-card--featured .product-image-container {
    aspect-ratio: 16/10;
}

.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.04);
}

/* Vignette */
.product-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.03);
    pointer-events: none;
}

/* Badge */
.product-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--porcelain);
    color: var(--ink-soft);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.product-badge--japanese {
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    color: white;
}

.product-badge--artisan {
    background: linear-gradient(135deg, var(--indigo), #3BA89F);
    color: white;
}

.product-badge--heritage {
    background: linear-gradient(135deg, var(--olive-dark), var(--olive));
    color: white;
}

.product-badge--statement {
    background: linear-gradient(135deg, var(--burgundy), #E85555);
    color: white;
}

.product-badge--limited {
    background: linear-gradient(135deg, var(--burgundy), #8B3A42);
    color: white;
}

.product-badge--design {
    background: linear-gradient(135deg, var(--olive), #E5C85E);
    color: var(--navy);
}

.product-badge--cult {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.product-badge--pnw {
    background: linear-gradient(135deg, #2D5016, #4A7023);
    color: white;
}

.product-badge--military {
    background: linear-gradient(135deg, #4A5D47, #5C6F58);
    color: white;
}

.product-badge--climber {
    background: linear-gradient(135deg, #D4A373, #FAEDCD);
    color: var(--walnut);
}

.product-badge--anniversary {
    background: linear-gradient(135deg, #C9B037, #E5D67B);
    color: var(--walnut);
}

.product-badge--art {
    background: linear-gradient(135deg, #5B3A8C, #7B4FB8);
    color: white;
}

.product-badge--sale {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    animation: pulse-sale 2s ease-in-out infinite;
}

@keyframes pulse-sale {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.product-badge--heirloom {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: var(--cream);
}

.product-badge--signature {
    background: linear-gradient(135deg, #1C2541, #3A506B);
    color: var(--cream);
}

.product-badge--essential {
    background: linear-gradient(135deg, #2D5016, #4A7023);
    color: var(--cream);
}

.product-badge--folk {
    background: linear-gradient(135deg, #722F37, #8B3A42);
    color: var(--cream);
}

/* Product info */
.product-info {
    padding: var(--space-5);
    overflow: hidden;
}

.product-brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-1);
}

.product-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: var(--space-1);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-details {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    margin-bottom: var(--space-4);
}

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

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

.price-sale {
    color: #FF6B6B;
    font-weight: 600;
}

.price-original {
    color: var(--ink-faint);
    text-decoration: line-through;
    font-size: var(--text-sm);
    margin-left: var(--space-2);
}

/* CTA Button */
.product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(28, 37, 65, 0.16);
    transition: transform var(--dur-quick) var(--ease-spring), box-shadow var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out);
}

.product-cta:hover {
    background: linear-gradient(135deg, rgba(28, 37, 65, 0.98), rgba(58, 80, 107, 0.92));
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(28, 37, 65, 0.2);
    color: white;
}

.product-cta:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 2px;
}

.product-cta::after {
    content: '\2197';
    font-weight: 800;
    opacity: 0.92;
    transform: translateY(-0.5px);
}

/* Image fallback */
.image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(145deg, var(--linen-warm), rgba(78, 205, 196, 0.1));
    color: var(--ink-faint);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   OUTFIT BUILDER — Polished & Aligned
   ═══════════════════════════════════════════════════════════════ */

.outfits-section {
    padding: var(--space-16) var(--space-5);
    background:
        radial-gradient(ellipse 70% 40% at 85% 100%, rgba(107, 45, 58, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse 50% 30% at 15% 85%, rgba(44, 62, 92, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse 40% 25% at 50% 50%, rgba(74, 93, 35, 0.04) 0%, transparent 30%),
        linear-gradient(180deg, var(--linen) 0%, var(--linen-warm) 50%, var(--bisque) 100%);
    position: relative;
}

/* Section divider */
.outfits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--indigo), var(--olive));
    border-radius: var(--radius-full);
}

.outfit-builder {
    max-width: 800px;
    margin: 0 auto;
}

.outfit-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

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

@media (max-width: 500px) {
    .outfit-presets {
        grid-template-columns: 1fr;
    }
}

.outfit-preset {
    background: var(--porcelain);
    border: 2px solid var(--ink-whisper);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-out);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.outfit-preset:hover {
    border-color: var(--ink-ghost);
    box-shadow: var(--shadow-lg);
}

.outfit-preset.active {
    border-color: var(--burgundy);
    background: var(--porcelain);
    box-shadow: 0 0 0 3px rgba(107, 45, 58, 0.15), var(--shadow-md);
}

.outfit-preset.active::after {
    content: '✓';
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 20px;
    height: 20px;
    background: var(--burgundy);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.preset-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.2;
}

.preset-desc {
    font-size: 10px;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}

.outfit-display {
    background: var(--porcelain);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--ink-whisper);
}

.outfit-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    min-height: 200px;
}

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

/* Note: .outfit-item styles are injected via JS for dynamic content */

.outfit-summary {
    border-top: 2px solid var(--ink-ghost);
    padding-top: var(--space-5);
    display: flex;
    justify-content: center;
}

.outfit-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.outfit-total span:first-child {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

#outfit-total-price {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--navy);
    line-height: 1;
    transition: transform var(--dur-quick) var(--ease-spring);
}

#outfit-total-price:hover {
    transform: scale(1.05);
}

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

.footer {
    padding: var(--space-12) var(--space-5);
    text-align: center;
    background: var(--navy);
    color: var(--cream);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--indigo), var(--olive));
}

.footer-content {
    max-width: 640px;
    margin: 0 auto;
}

.footer-quote {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    font-weight: 400;
    margin-bottom: var(--space-5);
    opacity: 0.92;
    line-height: 1.6;
}

.footer-quote small {
    display: block;
    font-size: var(--text-base);
    font-style: normal;
    margin-top: var(--space-2);
    opacity: 0.7;
}

.footer-credit {
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.72;
}

.footer-heart {
    display: inline-block;
    color: var(--burgundy);
    animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

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

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

    .philosophy-item:nth-child(n) {
        transform: translateY(0);
    }

    .philosophy-item:nth-child(2n) {
        transform: translateY(16px);
    }
}

@media (max-width: 768px) {
    :root {
        --space-16: 5rem;
        --space-12: 4rem;
    }

    .nav {
        padding: var(--space-2) var(--space-4);
        gap: var(--space-4);
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .philosophy-item:nth-child(n) {
        transform: translateY(0);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card:nth-child(n) {
        transform: translateY(0);
    }
    
    /* Hearts - larger touch targets on mobile */
    .product-heart {
        width: 48px;
        height: 48px;
        top: var(--space-3);
        right: var(--space-3);
    }
    
    .product-heart svg {
        width: 24px;
        height: 24px;
    }
    
    /* Nav hearts - more prominent on mobile */
    .nav-hearts {
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-hearts svg {
        width: 22px;
        height: 22px;
    }
    
    .nav-hearts-count {
        font-size: var(--text-base);
        min-width: 22px;
    }

    .outfit-presets {
        flex-direction: column;
        align-items: center;
    }

    .outfit-preset {
        width: 100%;
        max-width: 280px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */

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

    html {
        scroll-behavior: auto;
    }

    .breathing-bg {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOCUS STATES
   ═══════════════════════════════════════════════════════════════ */

button:focus-visible {
    outline: 2px solid var(--indigo);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--linen);
}

::-webkit-scrollbar-thumb {
    background: var(--slate);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-soft);
}

/* ═══════════════════════════════════════════════════════════════
   HEARTS SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* Heart button on product cards */
.product-heart {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--dur-normal) var(--ease-spring);
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.product-heart svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ink-faint);
    stroke-width: 1.5;
    transition: all var(--dur-normal) var(--ease-out);
}

.product-heart:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.product-heart:hover svg {
    stroke: var(--burgundy);
}

.product-heart.hearted {
    background: var(--burgundy);
}

.product-heart.hearted svg {
    fill: white;
    stroke: white;
    animation: heartPop var(--dur-slow) var(--ease-spring);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Nav hearts counter */
.nav-hearts {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--dur-quick) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.nav-hearts:hover,
.nav-hearts:active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-hearts svg {
    width: 18px;
    height: 18px;
    fill: var(--burgundy);
    stroke: none;
}

.nav-hearts-count {
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    min-width: 18px;
    text-align: center;
    transition: transform var(--dur-quick) var(--ease-spring);
}

/* Panel overlay */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 34, 51, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-normal) var(--ease-out);
    z-index: 200;
}

.panel-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Hearted panel */
.hearted-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: var(--porcelain);
    box-shadow: var(--shadow-2xl);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.hearted-panel.open {
    transform: translateX(0);
}

.hearted-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5);
    border-bottom: 1px solid var(--ink-ghost);
    background: var(--navy);
    color: var(--cream);
}

.hearted-panel-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-lg);
}

.hearted-panel-title svg {
    width: 22px;
    height: 22px;
    fill: var(--burgundy);
}

.hearted-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--dur-quick) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hearted-panel-close:hover,
.hearted-panel-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

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

.hearted-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--ink-faint);
    padding: var(--space-8);
}

.hearted-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--ink-ghost);
    margin-bottom: var(--space-4);
}

.hearted-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--linen-warm);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    transition: all var(--dur-normal) var(--ease-out);
}

.hearted-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bisque);
}

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

.hearted-item-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
}

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

.hearted-item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--ink-faint);
    font-size: var(--text-lg);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--dur-quick) var(--ease-out);
}

.hearted-item-remove:hover {
    background: var(--ink-ghost);
    color: var(--burgundy);
}

.hearted-panel-footer {
    padding: var(--space-5);
    border-top: 1px solid var(--ink-ghost);
    background: var(--linen);
}

.hearted-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hearted-total-label {
    font-size: var(--text-sm);
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hearted-total-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--navy);
}
