/* ============================================
   OFELIA'S BAKERY — Global Styles v3
   Dynamic, animated, modern
   ============================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #FDF6F0;
    --bg-tertiary: #F5EDE6;
    --bg-dark-section: #141414;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26,26,26,0.6);
    --text-muted: rgba(26,26,26,0.35);
    --text-on-dark: #f0ece8;
    --pink: #E91E8C;
    --pink-light: #FFD6EC;
    --pink-soft: rgba(233,30,140,0.08);
    --accent: #E91E8C;
    --accent-soft: rgba(233,30,140,0.1);
    --border: rgba(26,26,26,0.06);
    --border-strong: rgba(26,26,26,0.14);
    --card-bg: #ffffff;
    --card-shadow: 0 2px 24px rgba(0,0,0,0.05);
    --card-hover-shadow: 0 12px 48px rgba(0,0,0,0.10);
    --navbar-bg: rgba(255,255,255,0.88);
    --navbar-blur: 24px;
    --wa-green: #25D366;
    --cream-gradient: linear-gradient(135deg, #FDF6F0 0%, #F8EDE3 100%);
    --hero-gradient: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.55));
    --transition-speed: 0.4s;
}

[data-theme="dark"] {
    --bg-primary: #0b0b0b;
    --bg-secondary: #131313;
    --bg-tertiary: #1a1a1a;
    --bg-dark-section: #080808;
    --text-primary: #f0ece8;
    --text-secondary: rgba(240,236,232,0.55);
    --text-muted: rgba(240,236,232,0.28);
    --text-on-dark: #f0ece8;
    --pink: #F472B6;
    --pink-light: #F472B6;
    --pink-soft: rgba(244,114,182,0.1);
    --accent: #F472B6;
    --accent-soft: rgba(244,114,182,0.1);
    --border: rgba(255,255,255,0.05);
    --border-strong: rgba(255,255,255,0.1);
    --card-bg: #131313;
    --card-shadow: 0 2px 24px rgba(0,0,0,0.3);
    --card-hover-shadow: 0 12px 48px rgba(0,0,0,0.5);
    --navbar-bg: rgba(11,11,11,0.88);
    --cream-gradient: linear-gradient(135deg, #131313 0%, #1a1a1a 100%);
    --hero-gradient: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.7));
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden; line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }
::selection { background: var(--pink); color: #fff; }

/* ============================================
   FLOATING ROTATING LOGOS
   ============================================ */
.floating-logos {
    position: fixed;
    left: 2.5rem;
    bottom: 2.5rem;
    z-index: 80;
    width: 220px;
    height: 220px;
    pointer-events: none;
    opacity: 0.75;
}

.floating-logo {
    position: absolute;
    inset: 0;
    animation: floatSpin 20s linear infinite;
}

.floating-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.floating-logo:nth-child(1) {
    animation: floatSpin 20s linear infinite, logoCrossfade1 8s ease-in-out infinite;
}
.floating-logo:nth-child(2) {
    animation: floatSpin 20s linear infinite reverse, logoCrossfade2 8s ease-in-out infinite;
}

@keyframes floatSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes logoCrossfade1 {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes logoCrossfade2 {
    0%, 40% { opacity: 0; }
    50%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 768px) {
    .floating-logos {
        width: 150px; height: 150px;
        left: 1.2rem;
        bottom: 1.2rem;
        opacity: 0.65;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100; padding: 1rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled, .navbar.solid {
    background: var(--navbar-bg);
    backdrop-filter: blur(var(--navbar-blur));
    -webkit-backdrop-filter: blur(var(--navbar-blur));
    box-shadow: 0 1px 40px rgba(0,0,0,0.05);
}
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    transition: color 0.3s;
}
.navbar.transparent .nav-logo,
.navbar.transparent .nav-link,
.navbar.transparent .theme-toggle,
.navbar.transparent .menu-btn { color: #fff; }
.navbar.transparent.scrolled .nav-logo,
.navbar.transparent.scrolled .nav-link,
.navbar.transparent.scrolled .theme-toggle,
.navbar.transparent.scrolled .menu-btn { color: var(--text-primary); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-link {
    font-size: 0.65rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-primary);
    transition: color 0.3s; position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--pink);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--pink); }

.theme-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary); transition: all 0.3s;
}
.theme-toggle:hover { background: var(--pink-soft); color: var(--pink); }

.menu-btn {
    display: none; width: 36px; height: 36px;
    align-items: center; justify-content: center;
    color: var(--text-primary); z-index: 110;
}

.mobile-menu {
    position: fixed; inset: 0; background: var(--bg-primary);
    z-index: 105; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
    font-size: 1rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .25s; }

.navbar > div:last-child .theme-toggle { display: none; }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    .navbar { padding: 0.8rem 1.2rem; }
    .navbar > div:last-child .theme-toggle { display: flex; }
}

/* ============================================
   BRANDED HERO (new - replaces slider as main)
   ============================================ */
.brand-hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    transition: background var(--transition-speed);
}

/* Subtle animated bg circles */
.brand-hero-bg {
    position: absolute; inset: 0;
    overflow: hidden; pointer-events: none;
}
.brand-hero-bg .circle {
    position: absolute;
    border-radius: 50%;
    background: var(--pink);
    opacity: 0.08;
    animation: floatCircle 20s ease-in-out infinite;
}
[data-theme="dark"] .brand-hero-bg .circle {
    opacity: 0.03;
}
.brand-hero-bg .circle:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -150px; animation-delay: 0s; }
.brand-hero-bg .circle:nth-child(2) { width: 400px; height: 400px; bottom: -100px; left: -100px; animation-delay: -7s; }
.brand-hero-bg .circle:nth-child(3) { width: 300px; height: 300px; top: 40%; left: 60%; animation-delay: -14s; }

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.brand-hero-content { position: relative; z-index: 2; padding: 2rem; }

.brand-hero h1 {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: heroTextIn 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-hero-sub {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--pink);
    font-weight: 500;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: heroTextIn 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-hero-cta {
    opacity: 0;
    animation: heroTextIn 1s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 0.5rem;
    opacity: 0;
    animation: heroTextIn 1s 1.2s forwards;
}
.scroll-indicator span {
    font-size: 0.6rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--text-secondary);
    font-weight: 500;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--pink), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   MINI SLIDER (smaller, elegant)
   ============================================ */
.mini-slider-section {
    padding: 4rem 1.5rem;
    background: var(--bg-primary);
    transition: background var(--transition-speed);
}

.mini-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 21/9;
    box-shadow: var(--card-hover-shadow);
}

.mini-slider .slider-track {
    display: flex; height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.mini-slider .slide {
    min-width: 100%; height: 100%; position: relative;
}
.mini-slider .slide img {
    width: 100%; height: 100%; object-fit: cover;
}
.mini-slider .slide-overlay { position: absolute; inset: 0; background: var(--hero-gradient); }
.mini-slider .slide-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; color: #fff; z-index: 2; padding: 1.5rem;
}
.mini-slider .slide-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 300; margin-bottom: 0.5rem;
}
.mini-slider .slide-content p {
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 300; letter-spacing: 0.1em;
    max-width: 400px; opacity: 0.85;
}

.mini-slider .slider-dots {
    position: absolute; bottom: 1rem;
    left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; gap: 0.4rem;
}
.mini-slider .slider-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none; cursor: pointer; transition: all 0.3s;
}
.mini-slider .slider-dot.active { background: #fff; width: 22px; border-radius: 3px; }

.mini-slider .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 40px; height: 40px;
    border-radius: 50%; background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; font-size: 1rem;
}
.mini-slider .slider-arrow:hover { background: rgba(255,255,255,0.2); }
.mini-slider .slider-arrow.prev { left: 1rem; }
.mini-slider .slider-arrow.next { right: 1rem; }

@media (max-width: 768px) {
    .mini-slider { aspect-ratio: 16/9; border-radius: 8px; }
}

/* ============================================
   SECTION DIVIDERS (wave/diagonal)
   ============================================ */
.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin-top: -1px;
}
.section-divider svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
}
.section-divider.flip svg { transform: scaleY(-1); }
.section-divider .wave-fill { fill: var(--bg-primary); transition: fill var(--transition-speed); }
.section-divider .wave-fill-alt { fill: var(--bg-secondary); transition: fill var(--transition-speed); }
.section-divider .wave-fill-dark { fill: var(--bg-dark-section); transition: fill var(--transition-speed); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.6rem; padding: 0.9rem 2.2rem;
    font-size: 0.65rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif; border-radius: 3px;
}
.btn-outline { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: #1a1a1a; }
.btn-pink { background: var(--pink); color: #fff; border: 1px solid var(--pink); }
.btn-pink:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(233,30,140,0.25); }
.btn-dark { background: var(--text-primary); color: var(--bg-primary); border: 1px solid var(--text-primary); }
.btn-dark:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text-primary); background: transparent; }
.btn-ghost:hover { background: var(--text-primary); color: var(--bg-primary); }
.btn-white { background: #fff; color: #1a1a1a; border: none; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-whatsapp {
    background: var(--wa-green); color: #fff;
    border-radius: 100px; padding: 1rem 2rem;
    font-weight: 500; letter-spacing: 0.08em;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #20BD5A; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.8rem; font-size: 0.7rem; }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { opacity: 0.88; transform: translateY(-2px); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 5rem 1.5rem; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-dark-section); color: var(--text-on-dark); }
.section-dark .section-title { color: var(--text-on-dark); }
.section-dark .section-subtitle { color: rgba(240,236,232,0.45); }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300; text-align: center;
    margin-bottom: 0.8rem; color: var(--text-primary);
}
.section-subtitle {
    text-align: center; color: var(--text-secondary);
    font-size: 0.8rem; font-weight: 300;
    max-width: 460px; margin: 0 auto 3rem; line-height: 1.9;
}
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }
.container-xs { max-width: 650px; margin: 0 auto; }
.divider { width: 40px; height: 1px; background: var(--pink); margin: 1rem auto; }

@media (min-width: 769px) { .section { padding: 6rem 2.5rem; } }

/* ============================================
   SCROLL ANIMATIONS (advanced)
   ============================================ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* Slide from left */
.reveal-left {
    opacity: 0; transform: translateX(-60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Slide from right */
.reveal-right {
    opacity: 0; transform: translateX(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Scale in */
.reveal-scale {
    opacity: 0; transform: scale(0.85);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Parallax (controlled by JS) */
.parallax { transition: transform 0.1s linear; will-change: transform; }

/* ============================================
   SPLIT SECTION
   ============================================ */
.split {
    display: grid; grid-template-columns: 1fr;
    gap: 2.5rem; align-items: center;
}
@media (min-width: 769px) {
    .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .split.reverse > *:first-child { order: 2; }
    .split.reverse > *:last-child { order: 1; }
}
.split-img {
    position: relative; overflow: hidden;
    border-radius: 6px; aspect-ratio: 4/5;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.split-img:hover img { transform: scale(1.03); }

.split-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400; margin-bottom: 1rem;
    color: var(--text-primary); line-height: 1.2;
}
.split-text p {
    color: var(--text-secondary); font-size: 0.82rem;
    font-weight: 300; line-height: 1.9; margin-bottom: 1.5rem;
}
.section-dark .split-text h2 { color: var(--text-on-dark); }
.section-dark .split-text p { color: rgba(240,236,232,0.45); }

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    overflow: hidden; padding: 1.2rem 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.marquee-inner {
    display: flex; gap: 2.5rem;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-item {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    font-weight: 400; white-space: nowrap;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 1.5rem;
}
.marquee-item::after { content: '✦'; font-size: 0.35rem; color: var(--pink); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 2rem; max-width: 900px; margin: 0 auto;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.process-step { text-align: center; }
.process-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; font-weight: 300;
    color: var(--pink); line-height: 1; margin-bottom: 0.8rem;
}
.process-step h4 { font-size: 1.15rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--text-primary); }
.process-step p { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.8; max-width: 260px; margin: 0 auto; }
.section-dark .process-step h4 { color: var(--text-on-dark); }
.section-dark .process-step p { color: rgba(240,236,232,0.4); }

/* ============================================
   FEATURED CARDS
   ============================================ */
.featured-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.2rem;
}
@media (min-width: 640px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
.featured-card {
    position: relative; overflow: hidden;
    border-radius: 8px; aspect-ratio: 3/4; cursor: pointer;
}
.featured-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card:hover img { transform: scale(1.06); }
.featured-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 1.8rem;
}
.featured-card-title { color: #fff; font-size: 1.4rem; font-weight: 400; }
.featured-card-sub { color: rgba(255,255,255,0.6); font-size: 0.68rem; letter-spacing: 0.1em; margin-top: 0.3rem; font-family: 'Montserrat', sans-serif; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s, filter 0.4s; }
.gallery-item:hover img { transform: scale(1.08); filter: brightness(0.75); }
.gallery-item-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(233,30,140,0.2);
    opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================
   PRODUCT CARDS (Catalog)
   ============================================ */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
    background: var(--card-bg); border-radius: 8px;
    overflow: hidden; box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover-shadow); }
.product-card-img { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
    position: absolute; bottom: 0.8rem; left: 0.8rem;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    color: #fff; padding: 0.3rem 0.8rem; font-size: 0.58rem;
    letter-spacing: 0.15em; text-transform: uppercase; border-radius: 3px;
}
.product-card-body { padding: 1.2rem 1.5rem; }
.product-card-title { font-size: 1.15rem; font-weight: 400; margin-bottom: 0.3rem; color: var(--text-primary); }
.product-card-desc { font-size: 0.72rem; color: var(--text-secondary); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.filter-pill {
    padding: 0.5rem 1.3rem; font-size: 0.6rem;
    letter-spacing: 0.15em; text-transform: uppercase;
    border-radius: 100px; border: 1px solid var(--border-strong);
    color: var(--text-secondary); background: transparent;
    transition: all 0.3s; font-family: 'Montserrat', sans-serif;
    font-weight: 500; cursor: pointer;
}
.filter-pill:hover { border-color: var(--pink); color: var(--pink); }
.filter-pill.active { background: var(--pink); color: #fff; border-color: var(--pink); }

.category-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 0.8rem; }
.category-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; white-space: nowrap; color: var(--text-primary); }
.category-line { flex: 1; height: 1px; background: var(--border); }
.category-sub { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 2rem; }

.rellenos-box { background: var(--cream-gradient); border-radius: 8px; padding: 2rem; margin-top: 2.5rem; }
.rellenos-box h3 { font-size: 1.4rem; margin-bottom: 1.5rem; font-weight: 400; color: var(--text-primary); }
.relleno-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0; }
.relleno-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.relleno-item span { font-size: 0.82rem; color: var(--text-primary); }
.relleno-extra { font-size: 0.62rem !important; color: var(--text-muted) !important; margin-left: 0.3rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 769px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.form-input, .form-textarea {
    width: 100%; padding: 0.9rem 0; background: transparent;
    border: none; border-bottom: 1px solid var(--border-strong);
    color: var(--text-primary); font-size: 0.82rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--pink); }
.form-textarea { resize: none; min-height: 100px; }
.contact-info-block { margin-bottom: 2rem; }
.contact-info-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; }
.social-links { display: flex; gap: 1rem; }
.social-link { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-primary); transition: color 0.3s; }
.social-link:hover { color: var(--pink); }
.social-link svg { width: 18px; height: 18px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 1.5rem; border-top: 1px solid var(--border);
    text-align: center; background: var(--bg-primary);
    transition: background var(--transition-speed);
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
/* Instagram float */
.ig-float {
    position: fixed; bottom: 5.5rem; right: 1.5rem;
    z-index: 90; width: 54px; height: 54px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(225,48,108,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ig-float:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 6px 24px rgba(225,48,108,0.45); }
.ig-float svg { width: 24px; height: 24px; fill: #fff; }

/* WhatsApp float */
.wa-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    z-index: 90; width: 54px; height: 54px;
    background: var(--wa-green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(37,211,102,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.1) translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; fill: #fff; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
    padding: 8rem 1.5rem 3rem; text-align: center;
    background: var(--bg-primary); transition: background var(--transition-speed);
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: var(--text-primary); margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-secondary); font-size: 0.82rem; font-weight: 300; max-width: 420px; margin: 0 auto; line-height: 1.8; }

/* ============================================
   PERSONALIZER
   ============================================ */
.steps-bar { display: flex; align-items: center; max-width: 500px; margin: 0 auto 2rem; }
.step-node {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 600; flex-shrink: 0;
    transition: all 0.4s; font-family: 'Montserrat', sans-serif;
}
.step-node.active { background: var(--pink); color: #fff; box-shadow: 0 0 0 4px var(--pink-soft); }
.step-node.completed { background: var(--text-primary); color: var(--bg-primary); }
.step-node.inactive { background: var(--bg-tertiary); color: var(--text-muted); }

.step-connector { flex: 1; height: 2px; transition: background 0.4s; }
.step-connector.active { background: var(--text-primary); }
.step-connector.inactive { background: var(--bg-tertiary); }

.step-labels { display: flex; justify-content: space-between; max-width: 500px; margin: 0.4rem auto 0; }
.step-label { font-size: 0.48rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); width: 56px; text-align: center; }

.builder-layout { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) {
    .builder-layout { flex-direction: row; gap: 3rem; }
    .builder-form { flex: 1; min-width: 0; }
    .builder-preview { flex: 0 0 360px; }
}

.option-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 540px) { .option-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.option-card {
    position: relative; background: var(--card-bg);
    border: 2px solid var(--border); border-radius: 12px;
    padding: 1.5rem 1rem; text-align: center;
    cursor: pointer; transition: all 0.3s;
}
.option-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.option-card.selected { border-color: var(--pink); background: var(--pink-soft); }
.option-card .card-check {
    position: absolute; top: 0.5rem; right: 0.5rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--pink); display: none;
    align-items: center; justify-content: center;
}
.option-card.selected .card-check { display: flex; }
.option-card .card-check svg { width: 11px; height: 11px; stroke: #fff; fill: none; }

.option-icon {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.8rem; font-size: 1.5rem; transition: background 0.3s;
}
.option-card.selected .option-icon { background: var(--pink-soft); }
.option-title { font-size: 0.95rem; font-weight: 400; margin-bottom: 0.15rem; color: var(--text-primary); }
.option-desc { font-size: 0.65rem; color: var(--text-secondary); }
.option-price { font-size: 0.65rem; color: var(--pink); font-weight: 500; margin-top: 0.3rem; }

.option-card-sm {
    position: relative; background: var(--card-bg);
    border: 2px solid var(--border); border-radius: 10px;
    padding: 1rem 0.8rem; text-align: center;
    cursor: pointer; transition: all 0.3s;
}
.option-card-sm:hover { border-color: var(--pink); }
.option-card-sm.selected { border-color: var(--pink); background: var(--pink-soft); }
.option-card-sm .card-check {
    position: absolute; top: 0.4rem; right: 0.4rem;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--pink); display: none;
    align-items: center; justify-content: center;
}
.option-card-sm.selected .card-check { display: flex; }
.option-card-sm .card-check svg { width: 9px; height: 9px; stroke: #fff; fill: none; }

.step-panel { display: none; animation: panelIn 0.5s ease; }
.step-panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.notes-textarea {
    width: 100%; min-height: 120px; padding: 1rem;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-primary);
    font-size: 0.82rem; font-family: 'Montserrat', sans-serif;
    resize: vertical; outline: none; transition: border-color 0.3s;
}
.notes-textarea:focus { border-color: var(--pink); }

.summary-box { background: var(--cream-gradient); border-radius: 12px; padding: 2rem; }
.summary-item { border-left: 3px solid var(--pink); padding: 0.5rem 0 0.5rem 1rem; margin-bottom: 0.8rem; }
.summary-label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.15rem; }
.summary-value { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--text-primary); }

.builder-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}

/* Cake preview */
.cake-preview-card {
    background: var(--bg-secondary); border-radius: 16px;
    padding: 2rem; position: sticky; top: 110px;
    transition: background var(--transition-speed);
}
.cake-preview-label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); text-align: center; margin-bottom: 1.5rem; }
.cake-scene { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 260px; position: relative; padding-bottom: 10px; }
.cake-plate { width: 190px; height: 12px; background: linear-gradient(180deg, #d4c5b8 0%, #bfb0a3 100%); border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 1; }
[data-theme="dark"] .cake-plate { background: linear-gradient(180deg, #444 0%, #333 100%); }
.cake-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; transition: all 0.6s; }
.cake-layer { border-radius: 10px 10px 6px 6px; position: relative; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); overflow: visible; }
.cake-layer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; border-radius: 10px 10px 0 0; opacity: 0.12; background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%); }
.cake-layer.bizcochuelo-vainilla { background: linear-gradient(180deg, #F5DEB3 0%, #E8C98A 35%, #DCBD70 100%); box-shadow: inset 0 -4px 10px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.1); }
.cake-layer.bizcochuelo-chocolate { background: linear-gradient(180deg, #6B3A1F 0%, #55301A 35%, #3E2510 100%); box-shadow: inset 0 -4px 10px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.15); }
.cake-layer.cheesecake-base { background: linear-gradient(180deg, #FFFDE7 0%, #F5E6C8 60%, #D4A76A 85%, #B8894A 100%); border-radius: 6px; }
.cake-layer.brownie-base { background: linear-gradient(180deg, #3E2510 0%, #2C1A0C 40%, #1F1208 100%); border-radius: 6px; }
.cake-layer.placeholder { background: var(--bg-tertiary); border: 2px dashed var(--border-strong); box-shadow: none; display: flex; align-items: center; justify-content: center; }
.cake-layer.placeholder::after { content: '?'; font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--text-muted); }
.cake-layer.placeholder::before { display: none; }

.cake-filling-stripe { height: 0; opacity: 0; border-radius: 2px; transition: all 0.5s; z-index: 3; margin: -2px auto; }
.cake-filling-stripe.visible { height: 8px; opacity: 1; margin: -1px auto; }
.filling-crema-oreo { background: linear-gradient(90deg, #333 25%, #f5f0e0 25%, #f5f0e0 50%, #333 50%, #333 75%, #f5f0e0 75%); }
.filling-dulce-de-leche { background: #C68B3C; }
.filling-dulce-de-leche-merenguitos { background: linear-gradient(90deg, #C68B3C 50%, #f5f0e0 50%); }
.filling-ganache { background: #2C1A0C; }
.filling-frambuesa { background: linear-gradient(90deg, #C2185B, #E91E63); }
.filling-pistacho { background: linear-gradient(90deg, #7CB342, #8BC34A); }
.filling-crema-bariloche { background: linear-gradient(90deg, #5C3A1E 33%, #F5DEB3 33%, #F5DEB3 66%, #E91E63 66%); }

.cake-drip-container { position: absolute; top: -3px; left: 0; right: 0; height: 35px; z-index: 5; overflow: visible; opacity: 0; transition: opacity 0.5s; }
.cake-drip-container.visible { opacity: 1; }
.drip-drop { position: absolute; top: 0; width: 10px; background: #2C1A0C; border-radius: 0 0 5px 5px; animation: dripAnim 0.8s ease forwards; }
@keyframes dripAnim { from { height: 0; } to { height: var(--h, 16px); } }

/* Old absolute floating toppings — kept empty, no longer used */
.cake-toppings { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: none; }

/* New: toppings sit ON TOP of the cake-stack (inline flex row) */
.cake-toppings-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    margin-bottom: -7px;
    z-index: 5;
    position: relative;
    max-width: 100%;
    padding: 0 6px;
}

.t-shape {
    display: inline-block;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0) translateY(-6px);
    animation: toppingDrop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toppingDrop {
    0%   { opacity: 0; transform: scale(0) translateY(-12px) rotate(-15deg); }
    60%  { opacity: 1; transform: scale(1.15) translateY(2px) rotate(4deg); }
    100% { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}

/* --- Bombón (truffle ball) --- */
.t-bombon {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #7B4424 0%, #4A2912 65%, #2A170A 100%);
    box-shadow:
        0 2px 3px rgba(0,0,0,0.45),
        inset -2px -2px 3px rgba(0,0,0,0.4),
        inset 1.5px 1.5px 2px rgba(255,210,170,0.25);
}

/* --- Chocolate bar --- */
.t-chocobar {
    width: 11px; height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #6B3A1F 0%, #4A2912 60%, #2E190B 100%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.t-chocobar::before {
    content: ''; position: absolute; inset: 1px;
    background:
        repeating-linear-gradient(90deg, transparent 0, transparent 2px, rgba(0,0,0,0.35) 2px, rgba(0,0,0,0.35) 2.5px),
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 30%);
    border-radius: 1px;
}

/* --- Oreo (sandwich cookie, side view) --- */
.t-oreo {
    width: 16px; height: 9px;
    border-radius: 2.5px;
    background:
        linear-gradient(180deg,
            #1a1a1a 0%, #1a1a1a 33%,
            #f0e8d4 33%, #f0e8d4 66%,
            #1a1a1a 66%, #1a1a1a 100%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.45);
    position: relative;
}
.t-oreo::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 33%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
    border-radius: 2.5px 2.5px 0 0;
}

/* --- Dulce de leche dollop --- */
.t-ddl {
    width: 13px; height: 11px;
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    background: radial-gradient(circle at 32% 28%, #F1B36A 0%, #C68B3C 55%, #8E5C20 100%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.35), inset -1px -1px 1.5px rgba(0,0,0,0.25);
    position: relative;
}
.t-ddl::before {
    content: ''; position: absolute; top: 2px; left: 30%; width: 25%; height: 25%;
    background: rgba(255,235,200,0.55); border-radius: 50%;
    filter: blur(0.3px);
}

/* --- Crema swirl --- */
.t-crema {
    width: 12px; height: 14px;
    border-radius: 50% 50% 50% 50% / 75% 75% 25% 25%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #f5f0e8 60%, #d8d0c4 100%);
    box-shadow: 0 2px 3px rgba(0,0,0,0.25), inset -1px -1px 1px rgba(0,0,0,0.08);
    position: relative;
}
.t-crema::before {
    content: ''; position: absolute; top: 2px; left: 30%; width: 30%; height: 30%;
    background: rgba(255,255,255,0.85); border-radius: 50%;
}
.t-crema::after {
    content: ''; position: absolute; bottom: 1px; left: 20%; right: 20%; height: 30%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08));
    border-radius: 50%;
}

.cake-info { text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cake-info-title { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.cake-info-sub { font-size: 0.62rem; color: var(--text-secondary); letter-spacing: 0.08em; }
.cake-info-price { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--pink); margin-top: 0.4rem; font-weight: 500; }
.cake-info-servings { font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }

/* ============================================
   PERSONALIZER — extras / pro touches
   ============================================ */
.steps-bar { cursor: default; }
.step-node[onclick] { transition: all 0.3s, transform 0.2s; }
.step-node.completed[onclick]:hover,
.step-node.active[onclick]:hover { transform: scale(1.08); }

.page-hero-eyebrow {
    display: inline-block;
    font-size: 0.58rem; letter-spacing: 0.32em;
    text-transform: uppercase; color: var(--pink);
    font-weight: 500; margin-bottom: 0.8rem;
}

.btn-reset {
    font-size: 0.55rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
    background: transparent; border: none; padding: 0.5rem 0.8rem;
    transition: color 0.3s;
}
.btn-reset:hover { color: var(--pink); }

.builder-nav { gap: 1rem; }
.builder-nav > * { flex-shrink: 0; }

@media (max-width: 540px) {
    .steps-bar { max-width: 100%; padding: 0 0.5rem; }
    .step-node { width: 32px; height: 32px; font-size: 0.65rem; }
    .step-labels { padding: 0 0.5rem; }
    .step-label { font-size: 0.42rem; width: 44px; }
    .builder-nav { flex-wrap: wrap; }
}

/* Sticky preview on mobile -> compact horizontal strip */
@media (max-width: 1023px) {
    .builder-preview { order: -1; }
    .cake-preview-card { position: sticky; top: 64px; padding: 1.2rem; }
    .cake-scene { min-height: 180px; }
    .cookie-stage { min-height: 180px; }
    .cake-info { margin-top: 1rem; padding-top: 0.8rem; }
}

/* Improved cake: 2-layer bizcochuelo */
.cake-stack {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    position: relative;
    animation: cakeStackIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cakeStackIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cake-half {
    position: relative;
    box-shadow: inset 0 -3px 8px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.10);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cake-half-top::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 50%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 100%);
    pointer-events: none;
}
.cake-half-bottom::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.10) 100%);
    pointer-events: none;
}
.cake-stack .cake-filling-stripe {
    margin: 0 auto;
    border-radius: 1px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
    z-index: 4;
}
.cake-stack .cake-filling-stripe:not(.visible) {
    opacity: 0;
    height: 9px;
    background: rgba(0,0,0,0.05);
}
.cake-filling-gap {
    background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12), rgba(0,0,0,0.06));
    margin: 0 auto;
    border-radius: 1px;
}
/* Filling stripe in 2-layer mode shows full height (not just collapsed) */
.cake-stack .cake-filling-stripe.visible {
    opacity: 1;
    margin: 0 auto;
}

/* ============================================
   COOKIE PERSONALIZER
   ============================================ */
.steps-bar-5 { max-width: 480px; }
.step-labels-5 { max-width: 480px; }
.steps-bar-4 { max-width: 420px; }
.step-labels-4 { max-width: 420px; }

.option-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 540px) { .option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.cookie-badge {
    position: absolute; top: 0.5rem; left: 0.5rem;
    background: var(--pink); color: #fff;
    font-size: 0.5rem; letter-spacing: 0.15em;
    padding: 0.25rem 0.6rem; border-radius: 100px;
    font-weight: 600;
}

.cookie-flavor-card { padding: 1.2rem 0.8rem; }
.mini-cookie-svg {
    width: 70px; height: 70px;
    margin: 0 auto 0.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.cookie-preview-card { padding: 1.8rem 1.5rem; }
.cookie-stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
    padding: 1rem 0;
}
.cookie-svg {
    width: 100%; max-width: 260px;
    height: auto;
    animation: cookieIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cookieIn {
    from { opacity: 0; transform: scale(0.85) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}
.cookie-chip {
    animation: chipPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
@keyframes chipPop {
    from { opacity: 0; transform: scale(0); transform-origin: center; }
    to { opacity: 0.9; transform: scale(1); }
}

/* ============================================
   COOKIE BOX VISUALIZER (right preview)
   ============================================ */
.cookie-box-stage {
    display: flex; align-items: center; justify-content: center;
    min-height: 240px;
    padding: 0.5rem 0;
}
.cookie-box-svg {
    width: 100%; max-width: 280px;
    height: auto;
    animation: boxIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes boxIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.box-cookie {
    animation: cookieDropIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
@keyframes cookieDropIn {
    from { opacity: 0; transform: scale(0.2) translateY(-30px); }
    60%  { opacity: 1; transform: scale(1.12) translateY(2px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cake-info-servings .complete { color: var(--pink); font-weight: 600; }
.cake-info-servings .partial  { color: var(--text-primary); font-weight: 500; }

/* ============================================
   FLAVOR CARDS (multi-select with counters)
   ============================================ */
.flavor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (min-width: 540px) { .flavor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .flavor-grid { grid-template-columns: repeat(3, 1fr); } }

.flavor-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1rem 0.9rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.flavor-card.has-count {
    border-color: var(--pink);
    background: var(--pink-soft);
    box-shadow: 0 6px 20px rgba(244,114,182,0.15);
}
.flavor-card .mini-cookie-svg {
    width: 70px; height: 70px;
    margin: 0 auto 0.5rem;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
}
.flavor-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.flavor-card-desc {
    font-size: 0.62rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 0.8rem;
}
.flavor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.counter-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    user-select: none;
}
.counter-btn:not(:disabled):hover {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
    transform: scale(1.08);
}
.counter-btn:not(:disabled):active { transform: scale(0.95); }
.counter-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.flavor-card.has-count .counter-btn { background: var(--card-bg); }
.counter-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 28px;
    text-align: center;
}
.flavor-card.has-count .counter-value { color: var(--pink); }

/* Progress header */
.cookie-progress {
    display: flex; flex-direction: column; gap: 0.6rem;
    padding: 1rem 1.2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}
.cookie-progress-text {
    display: flex; align-items: baseline; gap: 0.6rem;
}
.cookie-progress-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    transition: color 0.3s;
}
.cookie-progress-count.complete { color: var(--pink); }
.cookie-progress-label {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cookie-progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    overflow: hidden;
}
.cookie-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), #ff85c0);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   NAV DROPDOWN
   ============================================ */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > .nav-link { cursor: pointer; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(2px);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:hover {
    background: var(--pink-soft);
    color: var(--pink);
}
.navbar.transparent .nav-dropdown-menu a { color: var(--text-primary); }

/* ============================================
   COOKIES SECTION (home)
   ============================================ */
.cookies-section {
    padding: 5rem 1.5rem;
    background: var(--bg-primary);
    transition: background var(--transition-speed);
}
.cookies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 640px) { .cookies-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .cookies-grid { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; } }

.cookie-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 1.5rem 1rem 1.3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
    position: relative;
    overflow: hidden;
}
.cookie-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--pink-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.cookie-card:hover { transform: translateY(-8px); box-shadow: var(--card-hover-shadow); }
.cookie-card:hover::before { opacity: 1; }
.cookie-card:hover .cookie-card-svg { transform: rotate(10deg) scale(1.08); }

.cookie-card-svg {
    width: 110px; height: 110px;
    margin: 0 auto 1rem;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}
.cookie-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.2;
}
.cookie-card-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    line-height: 1.5;
}

.cookies-cta {
    text-align: center;
    margin-top: 3rem;
}
