/*
 * For Jill — The Curated Wardrobe
 * Museum-quality microinteractions
 *
 * Every pixel placed with intention.
 * Every animation tells a story.
 * Every moment feels like an experience.
 *
 * With love, from the shady robot.
 */

/* ═══════════════════════════════════════════════════════════════
   FOUNDATIONS — Jill's Palette
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Paper & Linen — warm tactile surfaces */
    --linen: #FAF7F2;
    --linen-warm: #F5EDE3;
    --linen-shadow: #EDE5D8;
    --porcelain: #FDFCFA;
    --bisque: #F0E8DD;
    
    /* Ink & Text — warm, never harsh */
    --ink: #3A332A;
    --ink-soft: rgba(58, 51, 42, 0.72);
    --ink-faint: rgba(58, 51, 42, 0.45);
    --ink-ghost: rgba(58, 51, 42, 0.12);
    --ink-whisper: rgba(58, 51, 42, 0.06);
    
    /* Jill's Sapphires — from her Europa ring */
    --sapphire-pink: #E8B4B8;
    --sapphire-blue: #9BB8D3;
    --sapphire-green: #9DC3B7;
    
    /* Signature Colors */
    --blush: #E0CCC7;
    --blush-deep: #C9A9A6;
    --rose-gold: #B4838D;
    --dusty-rose: #D4B5AF;
    --navy: #2C3E50;
    --navy-soft: #3D4F61;
    --chocolate: #4A3728;
    --forest: #3D4A3A;
    --cream: #F5EFE0;
    
    /* Heart color */
    --heart: #E25555;
    --heart-glow: rgba(226, 85, 85, 0.25);
    
    /* Platinum — her ring's metal */
    --platinum: #E5E4E2;
    --platinum-glow: rgba(229, 228, 226, 0.3);
    
    /* Typography Scale — Perfect Fourth (1.333) */
    --text-xs: 0.563rem;   /* 9px */
    --text-sm: 0.75rem;    /* 12px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.333rem;   /* 21px */
    --text-2xl: 1.777rem;  /* 28px */
    --text-3xl: 2.369rem;  /* 38px */
    --text-4xl: 3.157rem;  /* 50px */
    --text-5xl: 4.209rem;  /* 67px */
    
    /* 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;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.5rem;     /* 24px */
    --space-6: 2rem;       /* 32px */
    --space-8: 3rem;       /* 48px */
    --space-10: 4rem;      /* 64px */
    --space-12: 6rem;      /* 96px */
    --space-16: 8rem;      /* 128px */
    --space-20: 10rem;     /* 160px */
    
    /* 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 — soft, cashmere-like */
    --shadow-xs: 0 1px 2px rgba(58, 51, 42, 0.03);
    --shadow-sm: 0 1px 3px rgba(58, 51, 42, 0.04), 0 1px 2px rgba(58, 51, 42, 0.03);
    --shadow-md: 0 4px 6px rgba(58, 51, 42, 0.04), 0 2px 4px rgba(58, 51, 42, 0.03);
    --shadow-lg: 0 10px 15px rgba(58, 51, 42, 0.05), 0 4px 6px rgba(58, 51, 42, 0.03);
    --shadow-xl: 0 20px 25px rgba(58, 51, 42, 0.06), 0 10px 10px rgba(58, 51, 42, 0.03);
    --shadow-2xl: 0 25px 50px rgba(58, 51, 42, 0.12);
    --shadow-inner: inset 0 2px 4px rgba(58, 51, 42, 0.03);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════
   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.012;
    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 — sapphire aurora */
.breathing-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        radial-gradient(ellipse 100% 60% at 15% 0%, var(--sapphire-pink) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 90% 100%, var(--sapphire-blue) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 50%, var(--sapphire-green) 0%, transparent 40%),
        var(--linen);
    opacity: 0.22;
    animation: breathe 30s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.22; transform: scale(1); }
    50% { opacity: 0.32; transform: scale(1.03); }
}

::selection {
    background: var(--blush-deep);
    color: white;
}

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

/* ═══════════════════════════════════════════════════════════════
   LINKS — Precise underlines
   ═══════════════════════════════════════════════════════════════ */

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

a:hover {
    color: var(--rose-gold);
}

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

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY — Perfect rhythm
   ═══════════════════════════════════════════════════════════════ */

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: 300;
    letter-spacing: -0.03em;
}

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

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

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

p {
    max-width: 60ch;
}

/* Eyebrow — precise tracking */
.eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-gold);
    display: block;
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT — 8px grid alignment
   ═══════════════════════════════════════════════════════════════ */

.container {
    width: min(1280px, calc(100% - var(--space-8)));
    margin-inline: auto;
    padding-inline: var(--space-4);
}

.container--narrow {
    width: min(800px, calc(100% - var(--space-8)));
}

section {
    padding-block: var(--space-16);
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   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(250, 247, 242, 0.88);
    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 var(--ink-whisper);
    transition: all var(--dur-normal) var(--ease-out);
}

.nav:hover {
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--ink-ghost);
}

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

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

.nav-links a {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: var(--space-1) 0;
    position: relative;
}

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

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

/* Hearts counter in nav */
.nav-hearts {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--heart-glow);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--heart);
    cursor: pointer;
    transition: all var(--dur-quick) var(--ease-spring);
}

.nav-hearts:hover {
    transform: scale(1.05);
    background: rgba(226, 85, 85, 0.35);
}

.nav-hearts svg {
    width: 14px;
    height: 14px;
    fill: var(--heart);
}

.nav-hearts-count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — The grand entrance
   ═══════════════════════════════════════════════════════════════ */

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

/* Europa ring — platinum circle */
.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(--platinum);
    border-radius: 50%;
    opacity: 0.35;
}

/* Three sapphires */
.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 32% 22%, var(--sapphire-pink) 0%, transparent 10%),
        radial-gradient(circle at 50% 18%, var(--sapphire-blue) 0%, transparent 8%),
        radial-gradient(circle at 68% 22%, var(--sapphire-green) 0%, transparent 10%);
    opacity: 0.5;
    pointer-events: none;
    animation: sapphireGlow 8s ease-in-out infinite;
}

@keyframes sapphireGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

.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: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rose-gold);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, rgba(180, 131, 141, 0.1), rgba(232, 180, 184, 0.12));
    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;
}

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

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

.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 — Staggered cards
   ═══════════════════════════════════════════════════════════════ */

.philosophy {
    padding: var(--space-16) 0;
    background: var(--linen-warm);
    border-top: 1px solid var(--ink-ghost);
    border-bottom: 1px solid var(--ink-ghost);
}

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

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

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

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

/* Stagger */
.philosophy-item:nth-child(1) { transform: translateY(0); }
.philosophy-item:nth-child(2) { transform: translateY(24px); }
.philosophy-item:nth-child(3) { transform: translateY(-12px); }
.philosophy-item:nth-child(4) { transform: translateY(32px); }

/* Sapphire accent */
.philosophy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--sapphire-pink), var(--sapphire-blue), var(--sapphire-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-normal) var(--ease-out);
}

.philosophy-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-xl);
}

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

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

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

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

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

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

.collection-light {
    background: 
        radial-gradient(ellipse 50% 30% at 50% 0%, var(--platinum-glow) 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;
}

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

.collection-title {
    font-weight: 300;
    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(320px, 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;
}

/* Make the entire card feel clickable (without breaking the heart button) */
.product-card[data-href] {
    cursor: pointer;
}

.product-card[data-href]:focus-within {
    box-shadow: 0 0 0 4px rgba(180, 131, 141, 0.14), var(--shadow-xl);
}

/* Diagonal stagger */
.product-card:nth-child(3n+1) { transform: translateY(0); }
.product-card:nth-child(3n+2) { transform: translateY(20px); }
.product-card:nth-child(3n+3) { transform: translateY(-10px); }

/* Top shimmer on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blush), var(--rose-gold), var(--blush));
    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);
}

/* 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-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--artisan {
    background: linear-gradient(135deg, var(--sapphire-green), #7BA697);
    color: white;
}

.product-badge--bespoke {
    background: linear-gradient(135deg, var(--rose-gold), var(--blush-deep));
    color: white;
}

.product-badge--pnw {
    background: linear-gradient(135deg, var(--forest), #4A5D47);
    color: white;
}

/* Heart button */
.product-heart {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--porcelain);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-quick) var(--ease-spring);
    z-index: 5;
}

.product-heart svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--ink-faint);
    stroke-width: 2;
    transition: all var(--dur-quick) var(--ease-spring);
}

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

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

.product-heart.hearted {
    background: var(--heart);
    box-shadow: 0 0 0 4px var(--heart-glow), var(--shadow-md);
}

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

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

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

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

.product-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-1);
    line-height: 1.25;
}

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

.product-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    transition: all var(--dur-quick) var(--ease-out);
}

.product-link:hover {
    color: var(--rose-gold);
    background: var(--ink-whisper);
}

.product-link::after {
    content: '→';
    transition: transform var(--dur-quick) var(--ease-out);
}

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

/* Stronger primary CTA */
.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, rgba(44, 62, 80, 0.92), rgba(44, 62, 80, 0.78));
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.16), 0 0 0 1px rgba(44, 62, 80, 0.06);
    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(44, 62, 80, 0.98), rgba(44, 62, 80, 0.84));
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(44, 62, 80, 0.18), 0 0 0 1px rgba(44, 62, 80, 0.08);
    color: rgba(255, 255, 255, 0.96);
}

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

.product-cta::after {
    content: '↗';
    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), var(--blush));
    color: var(--ink-faint);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
}

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

.outfits-section {
    padding: var(--space-16) var(--space-5);
    background: 
        radial-gradient(ellipse 70% 40% at 85% 100%, var(--sapphire-pink) 0%, transparent 35%),
        radial-gradient(ellipse 50% 30% at 15% 85%, var(--sapphire-blue) 0%, transparent 30%),
        linear-gradient(180deg, var(--linen) 0%, var(--linen-warm) 50%, var(--bisque) 100%);
    position: relative;
}

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

.outfit-presets {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.outfit-preset {
    background: var(--porcelain);
    border: 2px solid transparent;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--dur-normal) var(--ease-out);
    text-align: left;
    box-shadow: var(--shadow-sm);
    min-width: 160px;
}

.outfit-preset:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.outfit-preset.active {
    border-color: var(--rose-gold);
    background: linear-gradient(135deg, rgba(180, 131, 141, 0.06), rgba(232, 180, 184, 0.08));
    box-shadow: 0 0 0 4px rgba(180, 131, 141, 0.1), var(--shadow-md);
}

.preset-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--ink);
    margin-bottom: 2px;
}

.preset-desc {
    font-size: var(--text-xs);
    color: var(--ink-faint);
}

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

.outfit-items {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    min-height: 160px;
}

.outfit-item {
    background: var(--linen-warm);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    min-width: 120px;
    max-width: 140px;
    transition: all var(--dur-normal) var(--ease-spring);
    border: 1px solid var(--ink-whisper);
    cursor: pointer;
}

.outfit-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.outfit-item-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: 0 auto var(--space-3);
    background: var(--blush);
}

.outfit-item-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.outfit-summary {
    border-top: 1px solid var(--ink-ghost);
    padding-top: var(--space-5);
}

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

.outfit-total span:first-child {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--ink-soft);
}

#outfit-total-price {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--navy);
}

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

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sapphire-pink), var(--sapphire-blue), var(--sapphire-green));
}

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

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

.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.5;
}

.footer-heart {
    display: inline-block;
    color: var(--sapphire-pink);
    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); }
}

/* ═══════════════════════════════════════════════════════════════
   HEARTED PANEL
   ═══════════════════════════════════════════════════════════════ */

.hearted-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 90vw);
    height: 100vh;
    background: var(--porcelain);
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    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);
}

.hearted-panel-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

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

.hearted-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--ink-whisper);
    border-radius: 50%;
    cursor: pointer;
    font-size: var(--text-lg);
    color: var(--ink-soft);
    transition: all var(--dur-quick) var(--ease-out);
}

.hearted-panel-close:hover {
    background: var(--ink-ghost);
    color: var(--ink);
}

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

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

.hearted-item:hover {
    background: var(--linen-shadow);
}

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

.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;
    cursor: pointer;
    color: var(--ink-faint);
    font-size: var(--text-lg);
    transition: color var(--dur-quick);
}

.hearted-item-remove:hover {
    color: var(--heart);
}

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

.hearted-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.hearted-total-label {
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

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

.hearted-empty {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    color: var(--ink-faint);
}

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

.hearted-empty p {
    font-size: var(--text-sm);
    max-width: 200px;
    margin: 0 auto;
}

/* Panel overlay */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-normal) var(--ease-out);
}

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

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all var(--dur-glacial) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   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);
    }
    
    .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,
.product-heart:focus-visible {
    outline: 2px solid var(--rose-gold);
    outline-offset: 2px;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--blush-deep);
}
