/* ============================================================================
   Le Fabuleux Destin d'Amélie — Style Sheet
   French cinema warmth meets Japanese artisan soul
   ✨ VIBRANT • SHIMMER • REFRACT ✨
   ============================================================================ */

/* === CSS Variables === */
:root {
    /* Amélie Film Palette - VIBRANT */
    --amelie-red: #C41E3A;
    --amelie-red-light: #E63946;
    --amelie-red-vivid: #FF1744;
    --amelie-green: #2D5A27;
    --amelie-green-light: #43A047;
    --amelie-green-vivid: #00E676;
    --amelie-gold: #FFB300;
    --amelie-gold-light: #FFD54F;
    --amelie-gold-vivid: #FFEA00;
    --amelie-cream: #FFF8E7;
    --amelie-cream-warm: #FFFDE7;
    --bistro-brown: #5D4037;
    --bistro-brown-light: #8D6E63;

    /* Prismatic Refraction Colors */
    --prism-violet: #9C27B0;
    --prism-blue: #2196F3;
    --prism-cyan: #00BCD4;
    --prism-teal: #009688;
    --prism-lime: #CDDC39;
    --prism-orange: #FF9800;
    --prism-pink: #E91E63;

    /* Paper & Ink */
    --paper: #FFFDF5;
    --paper-warm: #FFF8E1;
    --paper-dark: #F5ECD7;
    --ink: #1A1612;
    --ink-soft: rgba(26, 22, 18, 0.7);
    --ink-faint: rgba(26, 22, 18, 0.4);

    /* Shimmer Gradients */
    --shimmer-gold: linear-gradient(90deg,
        var(--amelie-gold) 0%,
        var(--amelie-gold-vivid) 25%,
        #FFF 50%,
        var(--amelie-gold-vivid) 75%,
        var(--amelie-gold) 100%);
    --shimmer-rainbow: linear-gradient(90deg,
        var(--prism-violet),
        var(--prism-blue),
        var(--prism-cyan),
        var(--prism-teal),
        var(--amelie-green-vivid),
        var(--prism-lime),
        var(--amelie-gold-vivid),
        var(--prism-orange),
        var(--amelie-red-vivid),
        var(--prism-pink),
        var(--prism-violet));

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;

    /* Spacing (Fibonacci-inspired) */
    --space-xs: 0.5rem;
    --space-sm: 0.875rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6.5rem;

    /* Motion (Fibonacci) */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-quick: 233ms;
    --duration-medium: 377ms;
    --duration-slow: 610ms;

    /* Shadows - Enhanced with color */
    --shadow-soft: 0 2px 20px rgba(42, 37, 32, 0.08);
    --shadow-medium: 0 8px 40px rgba(42, 37, 32, 0.12);
    --shadow-deep: 0 16px 60px rgba(42, 37, 32, 0.16);
    --shadow-glow-gold: 0 0 40px rgba(255, 179, 0, 0.3);
    --shadow-glow-red: 0 0 40px rgba(196, 30, 58, 0.25);
    --shadow-glow-rainbow: 0 0 60px rgba(156, 39, 176, 0.2),
                           0 0 80px rgba(33, 150, 243, 0.15),
                           0 0 100px rgba(255, 152, 0, 0.1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Grain Overlay === */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background:
        linear-gradient(180deg,
            rgba(255, 253, 245, 0) 0%,
            var(--paper) 100%),
        linear-gradient(135deg,
            var(--amelie-cream-warm) 0%,
            var(--paper-warm) 50%,
            var(--amelie-cream) 100%);
    position: relative;
    overflow: hidden;
}

/* Prismatic refraction overlay */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background:
        /* Vibrant color bursts */
        radial-gradient(ellipse at 15% 25%, rgba(255, 179, 0, 0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 20%, rgba(196, 30, 58, 0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 75% 75%, rgba(156, 39, 176, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 80%, rgba(33, 150, 243, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 230, 118, 0.08) 0%, transparent 50%);
    animation: prismShift 20s ease-in-out infinite;
    pointer-events: none;
}

/* Shimmer sparkles overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 234, 0, 0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255, 179, 0, 0.7), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(255, 234, 0, 0.6), transparent),
        radial-gradient(2px 2px at 70% 85%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 30% 45%, rgba(196, 30, 58, 0.4), transparent),
        radial-gradient(2px 2px at 90% 15%, rgba(255, 179, 0, 0.5), transparent);
    background-size: 100% 100%;
    animation: sparkleFloat 15s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.6;
}

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

.hero-subtitle {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amelie-red);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.4s forwards;
    position: relative;
}

/* Shimmer text effect on title */
.hero-title::after {
    content: 'Le Fabuleux Destin d\'Amélie';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 179, 0, 0.4) 40%,
        rgba(255, 234, 0, 0.6) 50%,
        rgba(255, 179, 0, 0.4) 60%,
        transparent 80%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmerText 3s ease-in-out infinite;
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.6s forwards;
}

.hero-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--prism-violet),
        var(--prism-blue),
        var(--prism-cyan),
        var(--amelie-green-vivid),
        var(--amelie-gold-vivid),
        var(--prism-orange),
        var(--amelie-red-vivid),
        var(--prism-pink),
        transparent);
    background-size: 200% 100%;
    margin: var(--space-lg) auto;
    opacity: 0;
    animation:
        fadeIn var(--duration-slow) var(--ease-out) 0.8s forwards,
        rainbowShift 4s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.4),
                0 0 40px rgba(156, 39, 176, 0.2);
}

.hero-quote {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--ink-soft);
    opacity: 0;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 1s forwards;
}

.hero-quote p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.hero-quote cite {
    font-size: 0.9rem;
    color: var(--ink-faint);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--ink-faint);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn var(--duration-slow) var(--ease-out) 1.5s forwards;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--ink-faint), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* === Philosophy Section === */
.philosophy {
    padding: var(--space-2xl) 0;
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 50%, var(--paper) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle prismatic light rays */
.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 45%, rgba(255, 179, 0, 0.05) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(156, 39, 176, 0.03) 50%, transparent 55%);
    pointer-events: none;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.philosophy-card {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 253, 245, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-quick) var(--ease-out),
                box-shadow var(--duration-quick) var(--ease-out);
    border: 1px solid rgba(255, 179, 0, 0.1);
}

.philosophy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium), var(--shadow-glow-gold);
    border-color: rgba(255, 179, 0, 0.3);
}

/* Color-coded cards */
.philosophy-card:nth-child(1):hover {
    border-color: rgba(33, 150, 243, 0.4);
    box-shadow: var(--shadow-medium), 0 0 30px rgba(33, 150, 243, 0.2);
}

.philosophy-card:nth-child(2):hover {
    border-color: rgba(255, 179, 0, 0.4);
    box-shadow: var(--shadow-medium), var(--shadow-glow-gold);
}

.philosophy-card:nth-child(3):hover {
    border-color: rgba(196, 30, 58, 0.4);
    box-shadow: var(--shadow-medium), 0 0 30px rgba(196, 30, 58, 0.2);
}

.philosophy-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.philosophy-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--ink);
}

.philosophy-card p {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* === Navigation === */
.gallery-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 179, 0, 0.15);
    padding: var(--space-md) 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.nav-categories {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    list-style: none;
    flex-wrap: wrap;
}

.nav-categories a {
    font-family: var(--font-accent);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--ink-soft);
    padding: var(--space-xs) var(--space-sm);
    position: relative;
    transition: all var(--duration-quick) var(--ease-out);
}

/* Rainbow underline on hover */
.nav-categories a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--prism-violet),
        var(--prism-blue),
        var(--amelie-green-vivid),
        var(--amelie-gold),
        var(--amelie-red));
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width var(--duration-quick) var(--ease-out),
                left var(--duration-quick) var(--ease-out);
    animation: rainbowShift 3s linear infinite;
}

.nav-categories a:hover,
.nav-categories a.active {
    color: var(--ink);
}

.nav-categories a:hover::after,
.nav-categories a.active::after {
    width: 100%;
    left: 0;
}

/* Hearts Navigation Link */
.nav-hearts {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
}

.nav-hearts #nav-hearts-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    min-width: 1.25em;
    text-align: center;
}

.nav-hearts.has-items {
    color: var(--amelie-red);
}

.nav-hearts.has-items::after {
    background: var(--amelie-red) !important;
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: var(--space-sm);
    color: var(--ink);
    position: relative;
    display: inline-block;
}

/* Subtle underline accent */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg,
        var(--amelie-gold),
        var(--amelie-gold-vivid),
        var(--amelie-gold));
    border-radius: 2px;
    opacity: 0.8;
}

.section-header p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: var(--space-sm);
}

/* === Gallery === */
.gallery {
    padding: var(--space-2xl) 0;
}

.category-section {
    margin-bottom: var(--space-2xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

/* === Product Card === */
.product-card {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--duration-medium) var(--ease-out),
                box-shadow var(--duration-medium) var(--ease-out);
    cursor: pointer;
}

/* Rainbow refraction border on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        var(--prism-violet),
        var(--prism-blue),
        var(--prism-cyan),
        var(--amelie-green-vivid),
        var(--amelie-gold-vivid),
        var(--prism-orange),
        var(--amelie-red-vivid),
        var(--prism-pink));
    background-size: 400% 400%;
    border-radius: calc(var(--radius-md) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--duration-medium) var(--ease-out);
    animation: gradientBorder 8s ease infinite;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep), var(--shadow-glow-rainbow);
}

.product-card:hover::before {
    opacity: 1;
}

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

.product-image-container {
    position: relative;
    padding-top: 120%;
    background: var(--paper-warm);
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--amelie-red), var(--amelie-red-light));
    color: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.4);
}

.product-badge.liked {
    background: linear-gradient(135deg, var(--amelie-gold), var(--amelie-gold-vivid));
    color: var(--ink);
    box-shadow: 0 2px 15px rgba(255, 179, 0, 0.5);
    animation: shimmerBadge 2s ease-in-out infinite;
}

.product-badge.centerpiece-badge {
    background: linear-gradient(135deg, var(--amelie-green), var(--amelie-green-light));
    box-shadow: 0 2px 10px rgba(45, 90, 39, 0.4);
}

.product-heart {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: heartBeat 1.5s ease-in-out infinite;
}

.product-content {
    padding: var(--space-md);
}

.product-brand {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amelie-red);
    margin-bottom: var(--space-xs);
}

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

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

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--paper-dark);
}

.product-price {
    font-family: var(--font-accent);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
}

.product-origin {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--ink-faint);
    font-style: italic;
}

/* === Product Link === */
.product-link {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--amelie-red);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--amelie-red);
    border-radius: var(--radius-sm);
    transition: all var(--duration-quick) var(--ease-out);
    background: transparent;
}

.product-link:hover {
    background: var(--amelie-red);
    color: white;
    transform: translateX(4px);
}

/* === Heart Button === */
.heart-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-quick) var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
}

.product-card:hover .heart-btn {
    opacity: 1;
    transform: scale(1);
}

.heart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.3);
}

.heart-btn.active {
    opacity: 1;
    animation: heartPulse 0.4s ease-out;
}

.heart-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Liked card styling */
.product-card.is-liked {
    border: 2px solid rgba(196, 30, 58, 0.2);
}

.product-card.is-liked:hover {
    box-shadow: var(--shadow-deep), var(--shadow-glow-red);
}

/* Heart burst animation */
@keyframes heartBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform:
            translate(
                calc(cos(var(--angle)) * var(--distance)),
                calc(sin(var(--angle)) * var(--distance))
            )
            scale(0);
        opacity: 0;
    }
}

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

/* === Outfit Formulas === */
.outfit-formulas {
    padding: var(--space-2xl) 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 179, 0, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(156, 39, 176, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--paper-warm), var(--paper));
}

.formulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.formula-card {
    background: linear-gradient(135deg,
        rgba(255, 253, 245, 0.95),
        rgba(255, 248, 225, 0.9));
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transition: all var(--duration-quick) var(--ease-out);
    border: 1px solid rgba(255, 179, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Decorative corner accent */
.formula-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
        transparent 50%,
        rgba(255, 179, 0, 0.1) 50%);
    transition: all var(--duration-quick) var(--ease-out);
}

.formula-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium), 0 0 30px rgba(255, 179, 0, 0.15);
    border-color: rgba(255, 179, 0, 0.3);
}

.formula-card:hover::before {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg,
        transparent 50%,
        rgba(255, 179, 0, 0.2) 50%);
}

.formula-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.formula-description {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: var(--space-md);
}

.formula-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.formula-item {
    padding: var(--space-xs) var(--space-sm);
    background: var(--paper-warm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.formula-mood {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 179, 0, 0.2);
    font-family: var(--font-accent);
    font-size: 0.95rem;
    background: linear-gradient(90deg,
        var(--amelie-gold),
        var(--amelie-gold-vivid),
        var(--prism-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* === Liked Section === */
.liked-section {
    padding: var(--space-2xl) 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 100%, rgba(255, 179, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 179, 0, 0.05) 0%, transparent 50%),
        var(--paper);
    position: relative;
}

/* Heart accent for Jill's picks */
.liked-section .section-header h2::after {
    background: linear-gradient(90deg,
        var(--amelie-red),
        var(--amelie-red-vivid),
        var(--amelie-red));
}

.liked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* Special styling for liked cards */
.liked-grid .product-card {
    border: 1px solid rgba(196, 30, 58, 0.1);
}

.liked-grid .product-card:hover {
    border-color: rgba(196, 30, 58, 0.3);
    box-shadow: var(--shadow-deep), 0 0 40px rgba(196, 30, 58, 0.15);
}

/* === Footer === */
.footer {
    padding: var(--space-2xl) 0;
    background:
        linear-gradient(135deg,
            #1A1612 0%,
            #2D1F1A 25%,
            #1A1612 50%,
            #1F1A2D 75%,
            #1A1612 100%);
    color: var(--paper);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 179, 0, 0.03) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 179, 0, 0.03) 75%,
        transparent 100%);
    animation: footerShimmer 8s linear infinite;
    pointer-events: none;
}

@keyframes footerShimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.footer-message {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg,
        var(--paper),
        rgba(255, 179, 0, 0.8),
        var(--paper));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmerText 4s linear infinite;
}

.footer-details {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: rgba(248, 244, 236, 0.7);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.footer-heart {
    font-size: 2.5rem;
    color: var(--amelie-red-vivid);
    animation: heartBeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 23, 68, 0.5));
    position: relative;
    z-index: 1;
}

/* === Modal === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-medium) var(--ease-out),
                visibility var(--duration-medium);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 37, 32, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--duration-medium) var(--ease-out);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--paper);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
    z-index: 10;
    transition: background var(--duration-quick) var(--ease-out);
}

.modal-close:hover {
    background: var(--paper-dark);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image-container {
    position: relative;
    background: var(--paper-warm);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.modal-details {
    padding: var(--space-xl);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-brand {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amelie-red);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin: var(--space-sm) 0 var(--space-md);
    color: var(--ink);
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: var(--space-lg);
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--paper-dark);
    border-bottom: 1px solid var(--paper-dark);
}

.modal-meta div {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.modal-meta div strong {
    color: var(--ink);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
}

.modal-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ink);
}

.modal-link {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--amelie-red), var(--amelie-red-light));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    transition: all var(--duration-quick) var(--ease-out);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.modal-link:hover {
    background: linear-gradient(135deg, var(--amelie-red-light), var(--amelie-red-vivid));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.5);
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

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

/* Shimmer text animation */
@keyframes shimmerText {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Prismatic color shift */
@keyframes prismShift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(3deg) scale(1.02);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(-3deg) scale(1.02);
    }
}

/* Sparkle floating animation */
@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
        opacity: 0.8;
    }
    66% {
        transform: translateY(5px) rotate(-2deg);
        opacity: 0.5;
    }
}

/* Rainbow gradient shift */
@keyframes rainbowShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Gradient border animation */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer badge animation */
@keyframes shimmerBadge {
    0%, 100% {
        box-shadow: 0 2px 15px rgba(255, 179, 0, 0.5);
    }
    50% {
        box-shadow: 0 2px 25px rgba(255, 234, 0, 0.7),
                    0 0 40px rgba(255, 179, 0, 0.4);
    }
}

/* Glow pulse for buttons */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
    }
    50% {
        box-shadow: 0 0 35px rgba(196, 30, 58, 0.5),
                    0 0 50px rgba(255, 179, 0, 0.2);
    }
}

/* === Responsive === */
@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.centerpiece {
        grid-column: span 1;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image-container {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-categories {
        gap: var(--space-sm);
    }
    
    .nav-categories a {
        font-size: 0.875rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

/* === Loading State === */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--ink-soft);
    font-family: var(--font-accent);
    font-style: italic;
}

/* === Image Frame === */
.image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--paper-warm), var(--paper-dark));
    color: var(--ink-faint);
    font-family: var(--font-display);
    font-size: 3rem;
}

/* ============================================================================
   MOBILE ENHANCEMENTS
   ============================================================================ */

/* === Double-Tap Heart Animation (Instagram-style) === */
.double-tap-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 4rem;
    pointer-events: none;
    z-index: 100;
    animation: doubleTapHeart 1s ease-out forwards;
    filter: drop-shadow(0 4px 20px rgba(196, 30, 58, 0.5));
}

@keyframes doubleTapHeart {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    15% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* === Touch Feedback === */
.product-card.touch-active {
    opacity: 0.9;
    transition: opacity 0.1s ease-out;
}

.product-link.touch-active,
.nav-categories a.touch-active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* === Mobile-specific styles === */
@media (hover: none) and (pointer: coarse) {
    /* DISABLE hover zoom effects on mobile */
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }

    .product-card:hover::before {
        opacity: 0;
    }

    .product-card:hover .product-image {
        transform: none;
    }

    /* Touch devices: always show heart button */
    .heart-btn {
        opacity: 0.9;
        transform: scale(1);
        width: 48px;
        height: 48px;
    }

    .product-link {
        padding: var(--space-sm) var(--space-md);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Prevent text selection on double-tap */
    .product-card {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    /* Hint for double-tap */
    .product-image-container::after {
        content: '📱 Double-tap to ❤️';
        position: absolute;
        bottom: var(--space-sm);
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.7rem;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        padding: 4px 8px;
        border-radius: 4px;
        opacity: 0;
        transition: opacity var(--duration-quick) var(--ease-out);
        pointer-events: none;
    }

    .product-card:first-child .product-image-container::after {
        opacity: 1;
        animation: fadeOutHint 5s ease-out forwards;
    }
}

@keyframes fadeOutHint {
    0%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* === Modal Navigation Hints === */
.modal-nav-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--ink-faint);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--duration-quick) var(--ease-out);
    opacity: 0;
}

.modal:hover .modal-nav-hint {
    opacity: 0.5;
}

.modal-nav-hint:hover {
    opacity: 1;
    color: var(--amelie-red);
}

.modal-nav-hint.prev {
    left: var(--space-sm);
}

.modal-nav-hint.next {
    right: var(--space-sm);
}

/* === Mobile Modal === */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .modal-body {
        height: 100%;
        overflow-y: auto;
    }

    .modal-close {
        position: fixed;
        top: var(--space-sm);
        right: var(--space-sm);
        z-index: 1001;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 44px;
        height: 44px;
    }

    /* Swipe indicator */
    .modal-body::after {
        content: '← Swipe to browse →';
        display: block;
        text-align: center;
        padding: var(--space-md);
        color: var(--ink-faint);
        font-size: 0.8rem;
        font-style: italic;
    }
}

/* === Improved Mobile Grid === */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-quote {
        font-size: 0.9rem;
        padding: var(--space-md);
    }

    .nav-categories {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-categories a {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .product-content {
        padding: var(--space-sm);
    }

    .product-name {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .product-footer {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: flex-start;
    }

    .product-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .footer-details {
        font-size: 0.8rem;
    }
}

/* === Safe Area (iPhone notch) === */
@supports (padding: max(0px)) {
    .hero {
        padding-top: max(var(--space-2xl), env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }

    .modal-content {
        padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .double-tap-heart,
    .heart-particle,
    .reveal,
    .product-card {
        animation: none;
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
