/* ═══════════════════════════════════════════════════════
   SLICE PIZZA — Blush Cream Editorial Design System
   Forbes / GQ magazine quality. Zero emoji. Zero glass.
   ═══════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
    /* Surface — warm noir, like a dimly-lit Italian lounge */
    --bg: #1A1418;
    --bg-deep: #140F12;
    --card: #241E22;
    --card-elevated: #2C2428;

    /* Ink — warm cream on dark, never stark white */
    --ink: #F2E8E4;
    --ink-secondary: #C8B8B0;
    --ink-muted: #8A7880;
    --ink-light: #5A4E54;

    /* Border — warm burgundy-tinted */
    --border: #3A2E34;
    --border-light: #2E2228;

    /* Accent — muted fuchsia, refined not neon */
    --rose: #C2406A;
    --rose-soft: #D4688A;
    --rose-hot: #E04878;
    --rose-pale: rgba(194, 64, 106, 0.08);
    --rose-border: rgba(194, 64, 106, 0.18);
    --rose-glow: rgba(194, 64, 106, 0.12);

    /* Semantic */
    --success: #5A9E6F;
    --warning: #C47830;
    --error: #C43545;

    /* TMNT */
    --tmnt-green: #2EBD48;
    --tmnt-blue: #3A6EBF;
    --tmnt-orange: #E87830;
    --tmnt-red: #C43545;
    --tmnt-purple: #7B5EA7;

    /* Typography */
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --type-display: clamp(2.4rem, 8vw, 3.6rem);
    --type-h1: clamp(1.8rem, 5vw, 2.4rem);
    --type-h2: clamp(1.4rem, 4vw, 1.8rem);
    --type-h3: clamp(1.1rem, 3vw, 1.3rem);
    --type-body: 0.938rem;
    --type-small: 0.813rem;
    --type-kicker: 0.688rem;

    /* Radius */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 100px;

    /* Shadow */
    --shadow-xs: 0 1px 3px rgba(10, 6, 8, 0.25);
    --shadow-sm: 0 4px 12px rgba(10, 6, 8, 0.35);
    --shadow-md: 0 8px 24px rgba(10, 6, 8, 0.45);
    --shadow-lg: 0 16px 48px rgba(10, 6, 8, 0.55);

    /* Motion */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dur-fast: 150ms;
    --dur-normal: 250ms;
    --dur-slow: 400ms;

    /* Layout */
    --max-w: 540px;
    --pad: 20px;
    --masthead-h: 56px;
    --tab-h: 68px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
    /* Lighter shadows for cream surfaces */
    --shadow-xs: 0 1px 3px rgba(45,34,37,0.08);
    --shadow-sm: 0 4px 12px rgba(45,34,37,0.10);
    --shadow-md: 0 8px 24px rgba(45,34,37,0.14);
    --shadow-lg: 0 16px 48px rgba(45,34,37,0.18);
    --bg: #F8F0F4;
    --bg-deep: #F0E4EA;
    --card: #FFFFFF;
    --card-elevated: #FFFFFF;
    --ink: #1A0A14;
    --ink-secondary: #3A2030;
    --ink-muted: #8A6878;
    --ink-light: #B8A0AA;
    --border: #E8D0DC;
    --border-light: #F0E0EA;
    --rose-pale: rgba(194, 64, 106, 0.06);
    --rose-border: rgba(194, 64, 106, 0.15);
}

/* ── THEME TRANSITION ── */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-top: var(--masthead-h);
    padding-bottom: calc(var(--tab-h) + var(--safe-bottom));
}
a { color: var(--rose); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
    -webkit-appearance: none;
}
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
}
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
.heading { font-family: var(--font-heading); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }

/* Prices: uniform lining tabular numerals — all digits same height, same width */
.product-card-price,
.pd-price,
.cart-item-price,
.search-result-price,
.dc-price,
.dc-old-price {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
}
.heading em, .heading i { font-style: italic; font-weight: 400; }
.kicker {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* ── GLOSSY BUTTON — refined solid ── */
.btn-glossy {
    position: relative;
    padding: 14px 32px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--card-elevated);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast);
}
.btn-glossy:active { transform: scale(0.96); }
.btn-glossy::after {
    display: none;
}

/* ── LIQUID BACKGROUND BLOBS ── */
.liquid-bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); overflow: hidden; }
.liquid-bg::before, .liquid-bg::after { content:''; position:absolute; border-radius:50%; filter:blur(80px); opacity:0.15; will-change:transform; }
.liquid-bg::before { top:-20%; right:-15%; width:60vw; height:60vw; background:radial-gradient(circle, rgba(194,64,106,0.20) 0%, rgba(160,60,90,0.10) 40%, transparent 70%); animation:blob-float-1 8s ease-in-out infinite; }
.liquid-bg::after { bottom:-15%; left:-20%; width:50vw; height:50vw; background:radial-gradient(circle, rgba(160,60,90,0.15) 0%, rgba(194,64,106,0.06) 40%, transparent 70%); animation:blob-float-2 10s ease-in-out infinite; }
@keyframes blob-float-1 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-5%,8%) scale(1.05)} 66%{transform:translate(3%,-5%) scale(0.95)} }
@keyframes blob-float-2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(6%,-4%) scale(1.08)} 66%{transform:translate(-4%,6%) scale(0.92)} }

/* ── LAYOUT ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ═══════════════════════════════════════════════════════
   MASTHEAD
   ═══════════════════════════════════════════════════════ */
.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: var(--masthead-h);
    padding: 0 var(--pad);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--dur-normal) var(--ease), border-color var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease);
}
.masthead.scrolled {
    background: rgba(26, 20, 24, 0.97);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.masthead-brand {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--ink);
    user-select: none;
    cursor: pointer;
    text-align: center;
    justify-self: center;
    transition: opacity var(--dur-normal) var(--ease);
}
.masthead-brand:hover {
    opacity: 0.7;
}

.masthead-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    transition: background var(--dur-fast) var(--ease);
}
.masthead-btn:active { background: var(--rose-pale); }

.masthead-cart { display: none; }

/* Theme toggle — floating pill top-right */
.theme-pill {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.theme-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.theme-pill:active { transform: scale(0.88); }
.theme-pill svg { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.5); transition: color var(--dur-fast); }
.theme-pill:hover svg { color: rgba(255, 255, 255, 0.8); }
[data-theme="light"] .theme-pill {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(194, 64, 106, 0.15);
    box-shadow: 0 2px 12px rgba(26, 10, 20, 0.1);
}
[data-theme="light"] .theme-pill svg { color: var(--rose); }

.cart-badge {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--r-pill);
    background: var(--rose);
    box-shadow: var(--shadow-xs);
    color: #fff;
    font-size: 0.688rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
    animation: badge-pop 0.3s var(--ease-spring);
}
@keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ═══════════════════════════════════════════════════════
   HERO — OVEN FRAME VIDEO
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 0;
    margin: 0;
    margin-top: calc(-1 * var(--masthead-h));
    max-width: none;
    overflow: hidden;
    background: var(--bg);
}

.hero-oven-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

.hero-oven-frame .hero-carousel {
    position: absolute;
    inset: 0;
}

.hero-oven-frame .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-oven-frame .hero-video.active {
    opacity: 1;
    z-index: 1;
}

.hero-oven-frame .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0.15) 60%,
        rgba(0,0,0,0.6) 100%
    );
    pointer-events: none;
}

/* Hero tagline — luxury editorial overlay */
.hero-tagline {
    position: absolute;
    bottom: clamp(80px, 15vw, 120px);
    left: var(--pad);
    right: var(--pad);
    z-index: 3;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-tagline-kicker {
    display: block;
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0;
    margin-bottom: 12px;
}
.hero-tagline-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 7vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    opacity: 0;
}
.hero-tagline-sub {
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 400;
    opacity: 0;
    letter-spacing: 0.1em;
}

.oven-frame-svg {
    display: none;
}

/* Hero carousel dots — premium minimal style */
.hero-carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/* Expand touch target to 44px minimum */
.hero-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
}
.hero-dot.active {
    width: 24px;
    border-radius: 5px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Smooth transition from hero to menu */
.hero::after {
    display: none;
}

/* SEO text (visually hidden) */
.hero-seo-text {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   CATEGORY NAV
   ═══════════════════════════════════════════════════════ */
.category-nav {
    position: sticky;
    top: var(--masthead-h);
    z-index: 90;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    margin-top: 0;
}

.category-scroll {
    display: flex;
    gap: 8px;
    padding: 0 var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    padding: 7px 18px;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border: 1px solid var(--border-light);
    color: var(--ink-muted);
    background: transparent;
    transition: all var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.cat-pill:active { transform: scale(0.96); }

.cat-pill.active {
    background: var(--rose-pale);
    color: var(--ink);
    border-color: var(--rose-border);
    box-shadow: none;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════════ */
.main-content {
    padding: 20px var(--pad) 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ── Product Card — editorial luxury ── */
.product-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--dur-normal) var(--ease-spring),
                box-shadow var(--dur-normal) var(--ease-out),
                border-color var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}
.product-card::before {
    display: none;
}

.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-deep);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--dur-slow) var(--ease);
}
.product-card-img img.loading { opacity: 0.4; }

.product-card-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}
.product-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--card-elevated);
    box-shadow: var(--shadow-xs);
}
.product-tag svg { width: 10px; height: 10px; }
.product-tag--spicy { color: var(--error); }
.product-tag--veg { color: var(--success); }
.product-tag--hit {
    background: var(--card-elevated);
    color: var(--ink-muted);
    border: 1px solid var(--border-light);
    opacity: 0.7;
}
.product-tag--new {
    background: var(--ink);
    color: var(--card-elevated);
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 2px;
}
.product-rating svg {
    color: var(--warning);
    width: 12px;
    height: 12px;
}

.product-card-body {
    padding: 8px 8px 10px;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-weight {
    font-size: 0.65rem;
    color: var(--ink-light);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
}

.product-card-price {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
}

/* Add button */
.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--card-elevated);
    border: none;
    box-shadow: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast);
    -webkit-tap-highlight-color: transparent;
}
.add-btn:active { transform: scale(0.93); }
.add-btn svg { width: 18px; height: 18px; }

/* Quantity controls (replaces add-btn when item in cart) */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--ink);
    border-radius: var(--r-pill);
    padding: 2px;
}
.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--card-elevated);
    transition: opacity var(--dur-fast);
}
.qty-btn:active { opacity: 0.7; }
.qty-btn svg { width: 14px; height: 14px; }
.qty-value {
    min-width: 14px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--card-elevated);
}

/* ═══════════════════════════════════════════════════════
   SKELETON — warm-toned premium loading states
   ═══════════════════════════════════════════════════════ */
.grid-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.skel-card {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-md);
    overflow: hidden;
    animation: skel-card-in 0.5s var(--ease-out) both;
}
.skel-card:nth-child(1) { animation-delay: 0s; }
.skel-card:nth-child(2) { animation-delay: 0.08s; }
.skel-card:nth-child(3) { animation-delay: 0.16s; }
.skel-card:nth-child(4) { animation-delay: 0.24s; }
.skel-card:nth-child(5) { animation-delay: 0.32s; }
.skel-card:nth-child(6) { animation-delay: 0.4s; }

@keyframes skel-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.skeleton {
    background: linear-gradient(
        105deg,
        var(--bg-deep) 0%,
        var(--bg-deep) 30%,
        var(--rose-pale, rgba(194, 64, 106, 0.06)) 50%,
        var(--bg-deep) 70%,
        var(--bg-deep) 100%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 2s var(--ease-default) infinite;
    border-radius: var(--r-sm);
}

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

.skel-img { width: 100%; aspect-ratio: 16/9; border-radius: 0; }
.skel-line { height: 14px; margin: 12px 12px 6px; }
.skel-line.short { width: 50%; height: 12px; margin: 0 12px 12px; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--card-elevated);
    font-size: var(--type-small);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-normal) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:active { transform: scale(0.96); opacity: 1; }
.btn-primary:disabled { opacity: 0.4; pointer-events: none; }

.btn-rose {
    background: var(--rose);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    font-size: var(--type-small);
    font-weight: 500;
    color: var(--ink-secondary);
    transition: all var(--dur-fast) var(--ease);
}
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-ghost:active { background: var(--bg-deep); border-color: var(--border); }

.btn-block {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* ═══════════════════════════════════════════════════════
   MODAL SYSTEM
   ═══════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal[hidden] { display: none !important; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45,34,37,0.4);
    /* animation in animations.css: overlayFadeIn */
}
@keyframes fade-in { from { opacity: 0; } }

.modal-sheet {
    position: relative;
    width: 100%;
    max-width: var(--max-w);
    max-height: 92vh;
    max-height: 92dvh;
    background: var(--bg);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 24px var(--pad) calc(24px + var(--safe-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    /* animation overridden by animations.css: sheetSpringUp */
    animation: sheet-up 0.35s var(--ease-out);
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.12), 0 -1px 6px rgba(0, 0, 0, 0.06);
}
/* Subtle drag handle indicator at top of sheet */
.modal-sheet::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 0 auto 16px;
    opacity: 0.6;
}
.modal-full { max-height: 96vh; max-height: 96dvh; }

@keyframes sheet-up { from { transform: translateY(100%); } }

/* Product detail sheet — dramatic entrance */
.modal-sheet--detail {
    animation: detail-sheet-up 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
    transform-origin: bottom center;
}
@keyframes detail-sheet-up {
    0% {
        transform: translateY(100%) scale(0.85);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Closing animations */
.modal-sheet.modal-closing {
    animation: sheet-down 0.28s var(--ease) forwards;
}
.modal-sheet--detail.modal-closing {
    animation: detail-sheet-down 0.28s var(--ease) forwards;
}
.sidebar.modal-closing {
    animation: sidebar-out-right 0.28s var(--ease) forwards;
}
.overlay-closing {
    animation: fade-out 0.2s var(--ease) forwards;
}

@keyframes sheet-down {
    to { transform: translateY(100%); }
}
@keyframes detail-sheet-down {
    to { transform: translateY(100%) scale(0.96); opacity: 0; }
}
@keyframes sidebar-out-right {
    to { transform: translateX(100%); }
}
@keyframes fade-out {
    to { opacity: 0; }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    min-height: 28px;
    border-bottom: 1px solid var(--border-light);
}

.modal-heading {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border-light);
    margin-left: auto;
    transition: background var(--dur-fast) var(--ease);
}
.modal-close:active { background: var(--bg-deep); }

.modal-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border-light);
    margin-right: 12px;
    transition: background var(--dur-fast) var(--ease);
}
.modal-back:active { background: var(--bg-deep); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR (Cart)
   ═══════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    background: var(--bg);
    z-index: 201;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: sidebar-in-right 0.35s var(--ease-out);
}
.sidebar-right {
    right: 0;
}

@keyframes sidebar-in-right {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@media (max-width: 539px) {
    .sidebar { width: 100%; }
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--pad);
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    min-height: 56px;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 var(--pad);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 16px var(--pad) calc(16px + var(--safe-bottom));
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL — Premium Editorial
   ═══════════════════════════════════════════════════════ */

/* 1. Full-width hero image, rounded bottom corners only */
.pd-img {
    width: calc(100% + var(--pad) * 2);
    margin-left: calc(var(--pad) * -1);
    margin-top: -1px;
    aspect-ratio: 4/3;
    max-height: 320px;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    overflow: hidden;
    background: var(--bg-deep);
    margin-bottom: 28px;
}
.pd-img img { width: 100%; height: 100%; object-fit: cover; }

/* 2. Product name — editorial serif, light weight, subtle tracking */
.pd-name {
    font-family: var(--font-heading);
    font-size: var(--type-display);
    font-weight: 400;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 6px;
}

.pd-weight {
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--ink-light);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

/* 3. Description — light weight, generous line-height */
.pd-desc {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 300;
    color: var(--ink-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.pd-section-title {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

/* 5. Ingredients — refined chips with thin borders */
.pd-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pd-chip {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--ink-secondary);
    letter-spacing: 0.01em;
    transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

/* 6. Allergens — muted, small, uppercase, letter-spacing */
.pd-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pd-allergen {
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
[data-theme="dark"] .pd-allergen {
    border-color: var(--border);
    color: var(--ink-muted);
}

/* Footer — stacked layout for premium feel */
.pd-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* 4. Price — editorial serif, prominent but elegant, ink color */
.pd-price {
    font-family: var(--font-heading);
    font-size: var(--type-h1);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* 7. Add to cart — full-width, solid ink, uppercase with letter-spacing */
.pd-add {
    width: 100%;
    padding: 16px 32px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--card-elevated);
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    border: none;
    transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast);
    -webkit-tap-highlight-color: transparent;
}
.pd-add:active { transform: scale(0.97); }

/* 8. Quantity controls in detail — refined pill, thin borders */
.pd-footer .qty-controls {
    width: 100%;
    justify-content: center;
    gap: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 4px;
}
.pd-footer .qty-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    transition: background var(--dur-fast) var(--ease);
}
.pd-footer .qty-btn:active { background: var(--rose-pale); opacity: 1; }
.pd-footer .qty-value {
    min-width: 48px;
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════
   CART
   ═══════════════════════════════════════════════════════ */
.cart-empty {
    text-align: center;
    padding: 3rem var(--pad);
    color: var(--ink-muted);
}
.cart-empty-icon {
    margin-bottom: 16px;
    color: var(--ink-light);
    opacity: 0.5;
}
.cart-empty-icon svg {
    width: 48px;
    height: 48px;
}
.cart-empty-text {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    color: var(--ink-secondary);
}
.cart-empty-sub {
    font-family: var(--font-body);
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 260px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--r-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-deep);
    box-shadow: var(--shadow-xs);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3px;
    color: var(--ink);
}
.cart-item-price {
    font-family: var(--font-heading);
    font-size: var(--type-small);
    color: var(--ink-muted);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 2px;
}
.cart-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--ink-secondary);
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.cart-qty-btn:active { background: var(--bg-deep); color: var(--ink); }
.cart-qty-btn svg { width: 14px; height: 14px; }
.cart-qty-btn--remove { color: var(--ink-muted); }
.cart-qty-btn--remove:active { color: var(--error); }
.cart-qty {
    min-width: 28px;
    text-align: center;
    font-size: var(--type-small);
    font-weight: 600;
    color: var(--ink);
}

.cart-footer {
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid var(--border-light);
}

.promo-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}
.promo-input { flex: 1; }
.promo-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: transparent;
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-secondary);
    transition: all var(--dur-fast) var(--ease);
    cursor: pointer;
}
.promo-btn:active {
    background: var(--bg-deep);
    border-color: var(--ink-muted);
}
.promo-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-md);
    background: rgba(90,158,111,0.08);
    border: 1px solid rgba(90,158,111,0.15);
    font-size: var(--type-small);
    color: var(--success);
    margin-bottom: 14px;
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.cart-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--type-small);
    color: var(--ink-secondary);
}
.cart-totals-row.total {
    font-size: var(--type-body);
    font-weight: 600;
    color: var(--ink);
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
.cart-totals-row .discount { color: var(--success); }

/* ═══════════════════════════════════════════════════════
   CHECKOUT FORM
   ═══════════════════════════════════════════════════════ */
.checkout-form { padding-bottom: 20px; }

.field { margin-bottom: 18px; }

.field-label {
    display: block;
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--r-md);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: var(--type-body);
    color: var(--ink);
    transition: border-color var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease);
}
.form-input::placeholder { color: var(--ink-light); }
.form-input:focus {
    border-color: var(--ink-muted);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
.form-input.error { border-color: var(--error); }
textarea.form-input { resize: vertical; min-height: 48px; }

.toggle-row {
    display: flex;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-pill);
    padding: 3px;
}
.toggle-btn {
    flex: 1;
    padding: 9px 16px;
    border-radius: var(--r-pill);
    font-size: var(--type-small);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
    transition: all var(--dur-normal) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.toggle-btn.active {
    background: var(--ink);
    color: var(--card-elevated);
    font-weight: 600;
}

.pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pay-card { cursor: pointer; }
.pay-card input { display: none; }
.pay-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--r-md);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: var(--type-kicker);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--ink-secondary);
    transition: all var(--dur-normal) var(--ease);
}
.pay-card input:checked + .pay-card-inner {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--card-elevated);
}
.pay-icon { display: flex; }
.pay-icon svg { width: 22px; height: 22px; }

.checkout-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--type-small);
    color: var(--ink-secondary);
}
.checkout-summary-row.total {
    font-weight: 600;
    color: var(--ink);
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════════
   ORDER TRACKING — Premium Editorial
   ═══════════════════════════════════════════════════════ */
.tracking-body {
    padding: 4px var(--pad) var(--pad);
}
.tracking-order-num {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    color: var(--ink);
}
.tracking-eta {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 28px;
}

.timeline {
    position: relative;
    padding-left: 36px;
    margin-bottom: 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--border);
}

.timeline-step {
    position: relative;
    padding-bottom: 28px;
    transition: opacity var(--dur-normal) var(--ease);
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--card);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all var(--dur-normal) var(--ease-out);
}
.timeline-dot svg {
    width: 11px;
    height: 11px;
    color: var(--ink-light);
    transition: color var(--dur-fast) var(--ease);
}

/* Active step — subtle rose accent ring */
.timeline-step.active .timeline-dot {
    background: var(--rose-pale);
    border-color: var(--rose);
    box-shadow: 0 0 0 3px var(--rose-pale);
}
.timeline-step.active .timeline-dot svg { color: var(--rose); }

/* Completed step — solid ink */
.timeline-step.done .timeline-dot {
    background: var(--ink);
    border-color: var(--ink);
}
.timeline-step.done .timeline-dot svg { color: var(--card); }

.timeline-label {
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.timeline-step.active .timeline-label {
    color: var(--ink);
    font-weight: 600;
}
.timeline-step.done .timeline-label {
    color: var(--ink);
    font-weight: 500;
}

.timeline-time {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    color: var(--ink-muted);
    margin-top: 3px;
    letter-spacing: 0.02em;
}

/* Order summary inside tracking — premium card */
.tracking-body .pd-section-title {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.tracking-body .cart-totals-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--type-small);
    color: var(--ink-secondary);
}
.tracking-body .cart-totals-row:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════
   PROFILE & LOYALTY — Premium Editorial
   ═══════════════════════════════════════════════════════ */
.profile-body {
    padding: 0 var(--pad) var(--pad);
}
.order-history {
    margin-bottom: 24px;
}
.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease-spring);
}
.order-item:active {
    transform: scale(0.98);
}
.order-item:last-child { margin-bottom: 0; }
.order-num {
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.order-date {
    font-size: var(--type-kicker);
    color: var(--ink-muted);
    margin-top: 3px;
    letter-spacing: 0.02em;
}
.order-total {
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}
.order-status {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--success);
    margin-top: 3px;
    text-align: right;
}

/* Profile settings — ghost buttons */
.ninja-profile .btn-primary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}
.ninja-profile .btn-primary:active {
    border-color: var(--rose);
    color: var(--rose);
}

/* ═══════════════════════════════════════════════════════
   SEARCH — Premium Editorial
   ═══════════════════════════════════════════════════════ */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    margin-bottom: 20px;
    transition: border-color var(--dur-normal) var(--ease);
}
.search-bar:focus-within {
    border-bottom-color: var(--rose);
}
.search-ico {
    flex-shrink: 0;
    color: var(--ink-light);
    display: flex;
    align-items: center;
    transition: color var(--dur-normal) var(--ease);
}
.search-bar:focus-within .search-ico {
    color: var(--rose-soft);
}
.search-ico svg { width: 18px; height: 18px; }
.search-input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
    outline: none;
}
.search-input::placeholder {
    color: var(--ink-light);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.filter-chip {
    min-height: 40px;
    padding: 8px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--ink-muted);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: all var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.filter-chip:active { transform: scale(0.96); }
.filter-chip.active {
    background: var(--rose-pale);
    color: var(--ink);
    border-color: var(--rose-border);
    font-weight: 500;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-normal) var(--ease),
                border-color var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.search-result-item:active {
    transform: scale(0.98);
    background: var(--bg-deep);
}
@media (hover: hover) {
    .search-result-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
        border-color: var(--rose-border);
    }
}
.search-result-img {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-deep);
}
.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-normal) var(--ease);
}
.search-result-item:hover .search-result-img img {
    transform: scale(1.06);
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--type-body);
    color: var(--ink);
    letter-spacing: -0.01em;
}
.search-result-price {
    font-family: var(--font-heading);
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* Semantic search */
.semantic-header {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 0 6px;
    border-top: 1px solid var(--border-light);
    margin-top: 12px;
}
.semantic-loading {
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 300;
    color: var(--ink-muted);
    text-align: center;
    padding: 20px 0;
    letter-spacing: 0.02em;
}
.semantic-result-item {
    border-left: 2px solid var(--rose);
}
.semantic-score {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--rose);
    background: var(--rose-pale);
    border: 1px solid var(--rose-border);
    border-radius: var(--r-pill);
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}


/* ── Empty states — premium editorial ── */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem var(--pad);
    color: var(--ink-muted);
}
.search-empty-icon {
    margin-bottom: 20px;
    color: var(--ink-light);
    opacity: 0.3;
}
.search-empty-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 1.2;
}
.search-empty-text {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--ink-secondary);
    line-height: 1.2;
}
.search-empty-sub {
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 300;
    line-height: 1.7;
    color: var(--ink-light);
    max-width: 220px;
    margin: 0 auto;
}

/* Generic empty state (reusable) */
.empty-state {
    text-align: center;
    padding: 3rem var(--pad);
    color: var(--ink-muted);
}
.empty-state-icon {
    margin-bottom: 16px;
    color: var(--ink-light);
    opacity: 0.4;
}
.empty-state-icon svg {
    width: 44px;
    height: 44px;
}
.empty-state-title {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    color: var(--ink-secondary);
}
.empty-state-desc {
    font-family: var(--font-body);
    font-size: var(--type-small);
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 260px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════ */
.toast-wrap {
    position: fixed;
    bottom: calc(var(--tab-h) + var(--safe-bottom) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
    width: calc(100% - 40px);
    max-width: var(--max-w);
}

.toast {
    padding: 14px 24px;
    border-radius: var(--r-md);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    /* toast animation overridden by animations.css: toastSpringIn */
    pointer-events: auto;
    text-align: center;
}
/* toast-out class handled by animations.css: toastFadeOut */

/* Legacy keyframes kept for backwards compat */
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(-10px); opacity: 0; } }

/* ═══════════════════════════════════════════════════════
   SEO FOOTER — premium editorial
   ═══════════════════════════════════════════════════════ */
.site-footer {
    padding: clamp(2rem, 5vw, 3rem) var(--pad);
    padding-bottom: calc(clamp(2rem, 5vw, 3rem) + 80px);
    border-top: 1px solid var(--border-light);
    text-align: left;
}
.footer-seo-text {
    font-family: var(--font-body);
    font-size: var(--type-small);
    line-height: 1.8;
    letter-spacing: 0.01em;
    color: var(--ink-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   TAB BAR
   ═══════════════════════════════════════════════════════ */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    height: var(--tab-h);
    padding-bottom: var(--safe-bottom);
    background: var(--bg);
    border-top: 1px solid var(--border-light);
}

.tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-muted);
    transition: color var(--dur-fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    padding-top: 2px;
}
.tab-item.active { color: var(--ink); }
.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 0 0 2px 2px;
}

.tab-icon { display: flex; }
.tab-icon svg { width: 20px; height: 20px; }

.tab-label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tab-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--rose);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.tab-badge[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════
   WHEEL GAME
   ═══════════════════════════════════════════════════════ */
#fortune-wheel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}
.wheel-canvas {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
}

/* ═══════════════════════════════════════════════════════
   TMNT EASTER EGG
   ═══════════════════════════════════════════════════════ */
body.tmnt-mode {
    --rose: var(--tmnt-green);
    --rose-soft: #5FD97A;
    --rose-pale: rgba(46,189,72,0.08);
    --rose-border: rgba(46,189,72,0.2);
}
body.tmnt-mode .masthead-brand {
    background: linear-gradient(90deg, var(--tmnt-blue), var(--tmnt-green), var(--tmnt-orange), var(--tmnt-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.tmnt-mode .hero-oven-frame {
    border: none;
    box-shadow: none;
}
/* ═══════════════════════════════════════════════════════
   EDITORIAL MENU SECTIONS (horizontal scroll rows)
   ═══════════════════════════════════════════════════════ */
.menu-section {
    margin-bottom: 32px;
    grid-column: 1 / -1;
}

.menu-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 0 14px;
}

.menu-section-title {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.menu-section-count {
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    flex-shrink: 0;
    margin-left: 12px;
}

/* Horizontal scroll row */
.menu-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin: 0 calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
}
.menu-scroll::-webkit-scrollbar { display: none; }

.menu-scroll .product-card {
    flex: 0 0 220px;
    min-width: 0;
    scroll-snap-align: start;
    transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal) var(--ease);
}
.menu-scroll .product-card:last-child {
    margin-right: 0;
}

/* Hover tilt on non-touch */
@media (hover: hover) {
    .menu-scroll .product-card:hover {
        transform: scale(1.03) rotate(-0.5deg);
        box-shadow: var(--shadow-md);
    }
}

.menu-scroll .product-card-img {
    aspect-ratio: 4/3;
}

.menu-scroll .product-card-body {
    padding: 12px 12px 14px;
}

/* Show More button */
.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 24px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-heading);
    font-size: var(--type-body);
    font-weight: 400;
    font-style: italic;
    color: var(--ink-secondary);
    transition: all var(--dur-normal) var(--ease);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.show-more-btn:hover {
    background: var(--rose-pale);
    border-color: var(--border);
    color: var(--rose);
}
.show-more-btn:active {
    transform: scale(0.96);
}

/* Stagger animation for revealed items */
.menu-scroll .product-card.stagger-in {
    opacity: 0;
    transform: translateX(30px) scale(0.92);
    animation: stagger-card-in 0.45s var(--ease-out) forwards;
}

@keyframes stagger-card-in {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Wrap grid mode (for single category view) */
.product-grid--wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.product-grid--wrap .product-card {
    transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal) var(--ease);
}

@media (hover: hover) {
    .product-grid--wrap .product-card:hover {
        transform: scale(1.03) rotate(-0.5deg);
        box-shadow: var(--shadow-md);
    }
}

.product-grid--wrap .product-card.stagger-in {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    animation: stagger-grid-in 0.4s var(--ease-out) forwards;
}

@keyframes stagger-grid-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Section divider line */
.menu-section + .menu-section::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--border-light);
    margin-bottom: 28px;
}

/* Wider cards on desktop — see DESKTOP RESPONSIVE section at end of file */

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════ */
/* .reveal defined in PREMIUM ANIMATIONS section below */

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .btn-glossy::after { animation: none; }
    .liquid-bg::before, .liquid-bg::after { animation: none; }
    .masthead-brand { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.text-rose { color: var(--rose); }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }

/* ── DELIVERY MAP ── */

/* Delivery zone color tokens — warm tones from design system */
:root {
    --zone-free:    #2EBD48;             /* 0-2 km  — bright green      */
    --zone-near:    var(--success);      /* 2-5 km  — warm sage green   */
    --zone-mid:     var(--warning);      /* 5-10 km — warm amber        */
    --zone-far:     var(--rose);         /* 10-15 km — muted fuchsia    */
    --zone-edge:    var(--error);        /* 15-20 km — warm crimson     */
}

/* Map container — clean, contained, editorial */
.delivery-map {
    width: 100%;
    height: 400px;
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    background: var(--bg-deep);
}

/* Modal-specific map container — overrides inline styles */
#delivery-map-container {
    width: 100% !important;
    height: 60vh !important;
    min-height: 350px !important;
    border-radius: var(--r-md) !important;
    overflow: hidden;
    background: var(--bg-deep) !important;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Map modal — premium header */
#map-modal .modal-head {
    padding-bottom: 20px;
    margin-bottom: 24px;
}
#map-modal .modal-heading {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ── MAP LEGEND ── */
.map-legend {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 0 4px;
}

/* Legend header — uppercase kicker */
.map-legend::before {
    content: "DELIVERY ZONES";
    display: block;
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

/* Legend items — elegant list with subtle separators */
.map-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 400;
    color: var(--ink-secondary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.map-legend-item:last-child {
    border-bottom: none;
}

/* Legend color dot — refined, with subtle halo */
.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--rose-pale);
}

/* ── DELIVERY CALCULATOR ── */
.dc-calculator {
    margin-bottom: 16px;
}
.dc-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.dc-input {
    flex: 1;
    min-width: 0;
}
.dc-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: var(--type-small);
    white-space: nowrap;
}
.dc-result {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--card);
    border: 1px solid var(--border);
}
.dc-result--error {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--error);
}
.dc-result--error .dc-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(196, 53, 69, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--error);
}
.dc-result--unavailable {
    text-align: center;
    padding: 20px 16px;
}
.dc-result-title {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--ink);
}
.dc-result-sub {
    font-size: var(--type-small);
    color: var(--ink-muted);
}
.dc-result--ok .dc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}
.dc-result--ok .dc-result-row:last-of-type {
    border-bottom: none;
}
.dc-label {
    font-size: var(--type-small);
    color: var(--ink-muted);
}
.dc-value {
    font-size: var(--type-small);
    font-weight: 600;
    color: var(--ink);
}
.dc-price {
    color: var(--success);
}
.dc-old-price {
    color: var(--ink-light);
    font-weight: 400;
    font-size: var(--type-kicker);
    margin-left: 4px;
    text-decoration: line-through;
}
.dc-result-discount {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: var(--r-sm);
    background: var(--rose-pale);
    border: 1px solid var(--rose-border);
    font-size: var(--type-kicker);
    color: var(--rose-soft);
    text-align: center;
}
.dc-result-hint {
    margin-top: 6px;
    font-size: var(--type-kicker);
    color: var(--ink-muted);
    text-align: center;
}

/* Checkout delivery result — compact variant */
#checkout-dc-result {
    margin-top: 8px;
}
#checkout-dc-result .dc-result {
    padding: 10px 12px;
    margin-top: 0;
}
#checkout-dc-result .dc-result--ok .dc-result-row {
    padding: 4px 0;
}

/* ── MAP MARKER ── */
.slice-map-marker {
    background: var(--rose);
    color: #fff;
    border-radius: var(--r-sm);
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 2px solid #fff;
}

/* ═══════════════════════════════════════════════════════
   FLOATING CART WIDGET
   ═══════════════════════════════════════════════════════ */
/* Legacy cart-float hidden */
.cart-float { display: none; }

/* Floating Cart — disabled */
.floating-cart {
    display: none !important;
}
.floating-cart:active { transform: scale(0.9); }
.floating-cart[hidden] { display: none; }
.floating-cart-count {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-body);
}
/* pulse-pink removed — no pink glow animations per design system */

/* ═══════════════════════════════════════════════════════
   PROMOS VIEW
   ═══════════════════════════════════════════════════════ */
.promos-view { padding-bottom: 20px; }
.promo-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 12px;
}
.promo-card-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--rose-pale);
    color: var(--rose);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}
.promo-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 4px;
}
.promo-card-desc {
    font-size: var(--type-small);
    color: var(--ink-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}
.promo-card-code {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--rose-pale);
    border: 1px solid var(--rose-border);
    font-size: var(--type-kicker);
    font-weight: 600;
    color: var(--rose);
    letter-spacing: 0.08em;
}

/* ── Free delivery progress ── */
.delivery-progress {
    margin: 12px 0;
    padding: 10px 16px;
    background: var(--rose-pale);
    border: 1px solid var(--rose-border);
    border-radius: var(--r-md);
}
.delivery-progress-text {
    font-size: 0.8rem;
    color: var(--ink-secondary);
    margin-bottom: 6px;
}
.delivery-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: var(--r-pill);
    overflow: hidden;
}
.delivery-progress-fill {
    height: 100%;
    background: var(--rose);
    border-radius: var(--r-pill);
    transition: width var(--dur-normal) var(--ease-out);
}

/* ── Cross-sell in cart ── */
.cart-cross-sell {
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
.cart-cross-sell-title {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cart-cross-sell-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cart-cross-sell-items::-webkit-scrollbar { display: none; }
.cart-cross-sell-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--dur-fast) var(--ease);
}
.cart-cross-sell-item:active {
    border-color: var(--border);
}
.cart-cross-sell-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   AI CHAT — Premium Editorial Chat Modal
   ═══════════════════════════════════════════════════════ */
/* ── Modal Title Override ── */
#ai-modal .modal-title,
#ai-modal .modal-heading {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--ink);
}

/* ── Chat Messages Container ── */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 300px;
    max-height: 50vh;
    scroll-behavior: smooth;
}

/* ── Message Base ── */
.ai-message {
    max-width: 82%;
    padding: 14px 18px;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.005em;
}
.ai-message p {
    margin: 0;
}
.ai-message p + p {
    margin-top: 8px;
}

/* ── Bot Message ── */
.ai-message--bot {
    align-self: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
    color: var(--ink);
}

/* ── User Message ── */
.ai-message--user {
    align-self: flex-end;
    background: var(--ink);
    color: var(--card-elevated);
    border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
    border: none;
}

/* ── Welcome Message (first bot message) ── */
.ai-message--bot:first-child {
    background: var(--bg-deep);
    border: 1px solid var(--border-light);
    font-style: italic;
    color: var(--ink-secondary);
}

/* ── Chat Input Area ── */
.ai-chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--card);
}
.ai-chat-input input {
    flex: 1;
    padding: 13px 18px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 400;
    letter-spacing: 0.005em;
    transition: border-color var(--dur-normal) var(--ease),
                box-shadow var(--dur-normal) var(--ease);
    outline: none;
}
.ai-chat-input input:focus {
    border-color: var(--ink-muted);
    box-shadow: 0 0 0 3px rgba(138, 120, 128, 0.12);
}
.ai-chat-input input::placeholder {
    color: var(--ink-muted);
    font-weight: 400;
}

/* ── Send Button ── */
#ai-send {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 20px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--card-elevated);
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring),
                opacity var(--dur-fast) var(--ease);
    flex-shrink: 0;
}
#ai-send:active {
    transform: scale(0.95);
}
#ai-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Typing Indicator ── */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 400;
    font-style: normal;
}
.ai-typing-dots {
    display: inline-flex;
    gap: 4px;
}
.ai-typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-muted);
    opacity: 0.4;
    animation: aiDotPulse 1.4s ease-in-out infinite;
}
.ai-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.ai-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes aiDotPulse {
    0%, 60%, 100% { opacity: 0.25; transform: scale(0.85); }
    30% { opacity: 0.9; transform: scale(1.1); }
}

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

/* Tablet */
@media (min-width: 768px) {
    :root { --max-w: 768px; }

    .menu-scroll .product-card {
        flex: 0 0 260px;
    }
    .product-grid--wrap {
        grid-template-columns: repeat(3, 1fr);
    }
    .cat-pill {
        padding: 10px 22px;
        font-size: var(--type-body);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root { --max-w: 1080px; }

    .hero-oven-frame {
        max-height: 80vh;
    }
    .menu-scroll .product-card {
        flex: 0 0 300px;
    }
    .product-grid--wrap {
        grid-template-columns: repeat(4, 1fr);
    }
    .cat-pill {
        padding: 12px 26px;
        font-size: var(--type-body);
    }
    .tab-bar {
        max-width: var(--max-w);
        margin: 0 auto;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        left: 50%;
        transform: translateX(-50%);
        width: var(--max-w);
    }
    .modal-sheet {
        max-width: 720px;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    :root { --max-w: 1200px; }
}

/* ═══════════════════════════════════════════════════════
   SPLASH LOADER — Premium Editorial
   ═══════════════════════════════════════════════════════ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
    animation: splash-fade-in 0.6s var(--ease-out) both;
}

@keyframes splash-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: splash-content-in 0.8s var(--ease-out) 0.15s both;
}

@keyframes splash-content-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.splash-pizza {
    animation:
        pizza-wobble 8s cubic-bezier(.4, 0, .2, 1) infinite,
        pizza-breathe 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(194, 64, 106, 0.15));
    opacity: 0.9;
    transform-origin: center center;
}

/* Pepperoni subtle pulse — staggered via nth-child */
.splash-pizza .pepperoni {
    animation: pepperoni-pulse 3s ease-in-out infinite;
}
.splash-pizza .pepperoni:nth-child(odd) {
    animation-delay: 0s;
}
.splash-pizza .pepperoni:nth-child(even) {
    animation-delay: 1.5s;
}

/* Steam lines rising and fading */
.splash-pizza .steam {
    animation: steam-rise 3.5s ease-out infinite;
}
.splash-pizza .steam-1 { animation-delay: 0s; }
.splash-pizza .steam-2 { animation-delay: 1.2s; }
.splash-pizza .steam-3 { animation-delay: 2.4s; }

/* ---- Pizza keyframes ---- */

/* Gentle wobble rotation — rocks back and forth, never a full boring 360 */
@keyframes pizza-wobble {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(8deg); }
    30%  { transform: rotate(-5deg); }
    45%  { transform: rotate(6deg); }
    60%  { transform: rotate(-4deg); }
    75%  { transform: rotate(3deg); }
    90%  { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* Subtle scale breathing — "cooking" effect */
@keyframes pizza-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* Pepperoni gently pulse opacity */
@keyframes pepperoni-pulse {
    0%, 100% { opacity: inherit; }
    50%      { opacity: 0.7; }
}

/* Steam curls rise and fade */
@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    15% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.18;
        transform: translateY(-8px);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.splash-brand {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--rose);
    text-shadow: none;
    animation: brand-breathe 3s ease-in-out infinite;
}

@keyframes brand-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.splash-sub {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
    .splash-pizza,
    .splash-pizza .pepperoni,
    .splash-pizza .steam { animation: none; }
    .splash-brand { animation: none; }
    .splash { animation: none; }
    .splash-inner { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   PROMO BANNERS (editorial)
   ═══════════════════════════════════════════════════════ */
.promos-view {
    padding: 0 var(--pad);
}
.promos-heading {
    font-family: var(--font-heading);
    font-size: var(--type-h1);
    font-weight: 400;
    margin-bottom: 4px;
}
.promos-sub {
    font-size: var(--type-small);
    color: var(--ink-muted);
    margin-bottom: 24px;
}
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 14px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}
.promo-banner--rose {
    background: var(--rose);
    color: #fff;
}
.promo-banner--ink {
    background: var(--ink);
    color: #fff;
}
.promo-banner--warm {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--ink);
}
.promo-banner-content {
    flex: 1;
    min-width: 0;
}
.promo-banner-kicker {
    display: block;
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 6px;
}
.promo-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 10px;
}
.promo-banner-desc {
    font-size: var(--type-small);
    opacity: 0.7;
}
.promo-banner-code {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--type-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}
.promo-banner--warm .promo-banner-code {
    background: var(--rose-pale);
    color: var(--rose);
}
.promo-banner-badge {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 700;
    opacity: 0.3;
    margin-left: 16px;
    flex-shrink: 0;
}
.promo-banner-icon {
    margin-left: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}
.promo-loyalty-teaser {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    text-align: center;
    margin-top: 10px;
}
.promo-loyalty-title {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 400;
    color: var(--rose);
    margin-bottom: 6px;
    letter-spacing: 0.1em;
}
.promo-loyalty-desc {
    font-size: var(--type-small);
    color: var(--ink-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   TMNT NINJA PROFILE
   ═══════════════════════════════════════════════════════ */
.ninja-profile {
    padding: 0 var(--pad) var(--pad);
}
.ninja-header {
    text-align: center;
    padding: 28px 0 28px;
}
.ninja-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    line-height: 1;
    position: relative;
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.ninja-avatar svg {
    width: 56px;
    height: 56px;
}
.ninja-avatar--leonardo { background: var(--tmnt-blue); }
.ninja-avatar--raphael { background: var(--tmnt-red); }
.ninja-avatar--donatello { background: var(--tmnt-purple); }
.ninja-avatar--michelangelo { background: var(--tmnt-orange); }
.ninja-avatar--sensei { background: var(--rose); }
.ninja-name {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.ninja-rank {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--rose);
    margin-top: 4px;
}

/* XP Progress */
.ninja-xp {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
}
.ninja-xp-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.ninja-xp-label {
    font-size: var(--type-small);
    font-weight: 600;
    color: var(--ink-secondary);
}
.ninja-xp-value {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 600;
    color: var(--rose);
}
.ninja-xp-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 6px;
}
.ninja-xp-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--rose);
    transition: width 0.8s var(--ease-out);
}
.ninja-xp-next {
    font-size: var(--type-kicker);
    color: var(--ink-muted);
}

/* Stats — editorial grid */
.ninja-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.ninja-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 8px 14px;
    text-align: center;
    transition: border-color var(--dur-fast) var(--ease);
}
.ninja-stat-value {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ninja-stat-label {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 6px;
}

/* Missions */
.ninja-section-title {
    font-family: var(--font-heading);
    font-size: var(--type-h3);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.005em;
    margin: 24px 0 12px;
    color: var(--ink);
}
.ninja-mission {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    transition: border-color var(--dur-fast) var(--ease);
}
.ninja-mission.completed {
    opacity: 0.5;
}
.ninja-mission-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--rose-pale);
    color: var(--rose);
}
.ninja-mission.completed .ninja-mission-icon {
    background: var(--success);
    color: #fff;
}
.ninja-mission-body {
    flex: 1;
    min-width: 0;
}
.ninja-mission-name {
    font-size: var(--type-body);
    font-weight: 500;
}
.ninja-mission-desc {
    font-size: var(--type-kicker);
    color: var(--ink-muted);
    margin-top: 2px;
}
.ninja-mission-xp {
    font-size: var(--type-kicker);
    font-weight: 600;
    color: var(--rose);
    flex-shrink: 0;
}

/* Ranks ladder */
.ninja-ranks {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}
.ninja-rank-card {
    flex-shrink: 0;
    width: 100px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 8px;
    text-align: center;
    opacity: 0.35;
    transition: opacity var(--dur-normal) var(--ease),
                border-color var(--dur-fast) var(--ease);
}
.ninja-rank-card.active {
    opacity: 1;
    border-color: var(--rose);
    box-shadow: 0 0 0 2px var(--rose-pale);
}
.ninja-rank-card.unlocked {
    opacity: 0.65;
}
.ninja-rank-emoji {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
}
.ninja-rank-name {
    font-size: var(--type-kicker);
    font-weight: 600;
}
.ninja-rank-req {
    font-size: 0.625rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   PREMIUM ANIMATIONS — $100K POLISH
   ═══════════════════════════════════════════════════════ */

/* Scroll reveal with stagger */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FIX: Product cards must be visible immediately. ScrollTrigger may not fire
   for cards already in the viewport or inside scroll containers (.menu-scroll).
   The stagger-in class handles its own entrance animation separately. */
.product-card.reveal {
    opacity: 1;
    transform: none;
}

/* Product card premium hover — editorial lift */
.product-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}
.product-card:active {
    transform: scale(0.97);
    transition-duration: 80ms;
}

/* Product image subtle zoom on hover */
.product-card-img img {
    transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

/* Add-to-cart button burst animation */
@keyframes cartBurst {
    0% { transform: scale(1); }
    30% { transform: scale(0.88); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.add-btn.burst {
    animation: cartBurst 0.4s var(--ease-spring);
}

/* Shimmer loading placeholder — warm-toned */
.shimmer {
    background: linear-gradient(
        105deg,
        var(--bg-deep) 0%,
        var(--bg-deep) 30%,
        var(--rose-pale, rgba(194, 64, 106, 0.06)) 50%,
        var(--bg-deep) 70%,
        var(--bg-deep) 100%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 2s var(--ease-default) infinite;
    border-radius: var(--r-md);
}

/* Section title elegant entrance */
.section-header {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}
.section-header.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Category pill scroll indicator fade */
.category-nav::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
}

/* Hero video cinematic vignette enhancement */
.hero-oven-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at 50% 80%, transparent 40%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* Toast premium animation */
@keyframes toastSlide {
    0% { transform: translate(-50%, 20px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}
.toast.visible {
    animation: toastSlide 0.35s var(--ease-spring) forwards;
}

/* Modal backdrop — no backdrop-filter per CLAUDE.md, use solid overlay */

/* Hero masthead text cinematic entrance */
@keyframes mastheadFade {
    0% { opacity: 0; transform: translateY(12px); letter-spacing: 0.5em; }
    100% { opacity: 1; transform: translateY(0); letter-spacing: 0.3em; }
}
.masthead-brand {
    animation: mastheadFade 1.2s 0.3s var(--ease-out) both;
}

/* Smooth scroll snap for category sections */
@media (prefers-reduced-motion: no-preference) {
    .main-content {
        scroll-behavior: smooth;
    }
}

/* Dark theme card — solid background, no backdrop-filter per CLAUDE.md */
[data-theme="dark"] .product-card {
    background: var(--card-elevated);
    box-shadow: var(--shadow-sm);
}

/* AI Chat message entrance */
@keyframes msgSlide {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}
.ai-message {
    animation: msgSlide 0.28s var(--ease-out) forwards;
}

/* Bottom nav premium shadow */
.bottom-nav {
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06), 0 -1px 0 var(--border-light);
}

/* ═══════════════════════════════════════════════════════
   EDITORIAL SECTIONS — Forbes / GQ Magazine Quality
   ═══════════════════════════════════════════════════════ */

/* ── Shared Editorial Tokens ── */
.ed-kicker {
    display: block;
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.ed-rule {
    width: 48px;
    height: 1px;
    background: var(--border);
    margin: clamp(1.5rem, 4vw, 2.5rem) 0;
}

/* ── Section 1: PHILOSOPHY ── */
.ed-philosophy {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--bg-deep);
    overflow: hidden;
}

/* Subtle background texture pattern */
.ed-philosophy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--rose-pale) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--rose-pale) 0%, transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.ed-quote-block {
    position: relative;
    z-index: 1;
}

.ed-quote {
    margin: 0;
    padding: 0;
}

.ed-quote-text {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.ed-columns {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 420px) {
    .ed-columns {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }
}

.ed-body {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
}

.ed-philosophy .ed-kicker {
    position: relative;
    z-index: 1;
    margin-top: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0;
}

/* ── Section 2: CRAFTSMANSHIP ── */
.ed-craft {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--bg);
}

.ed-craft .ed-kicker {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ed-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 7vw, 4rem);
}

/* Sections always visible — GSAP animates children only */
.ed-philosophy,
.ed-craft,
.ed-geo {
    opacity: 1 !important;
    visibility: visible !important;
}

.ed-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    /* Default: visible (no-JS / GSAP-fail fallback) */
    opacity: 1;
    transform: none;
}

/* JS adds .ed-animated to body when GSAP is ready —
   only then hide steps for the reveal animation */
body.ed-animated .ed-step {
    opacity: 0;
    transform: translateY(32px);
}

.ed-step.ed-visible {
    opacity: 1;
    transform: translateY(0);
}

.ed-step-visual {
    position: relative;
}

.ed-step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--rose);
    opacity: 0.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.ed-step-img {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-deep);
    border: 1px solid var(--border);
}

.ed-step-img-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-deep);
    transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) {
    .ed-step-img:hover .ed-step-img-inner {
        transform: scale(1.04);
    }
}

.ed-step-title {
    font-family: var(--font-heading);
    font-size: var(--type-h2);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.ed-step-desc {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-secondary);
}

/* Staggered layout on wider screens */
@media (min-width: 420px) {
    .ed-step {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .ed-step:nth-child(even) .ed-step-visual {
        order: 2;
    }

    .ed-step:nth-child(even) .ed-step-text {
        order: 1;
    }

    .ed-step-num {
        font-size: clamp(3.5rem, 10vw, 5.5rem);
    }
}

/* ── Section 3: GEOGRAPHY ── */
.ed-geo {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: var(--bg-deep);
}

.ed-geo .ed-kicker {
    margin-bottom: 12px;
}

.ed-geo-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 10vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 16px;
}

.ed-geo-address {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-secondary);
    margin-bottom: 4px;
}

.ed-geo-coords {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: var(--type-small);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
}

.ed-geo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 420px) {
    .ed-geo-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }
}

.ed-geo-subtitle {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 16px;
}

.ed-geo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ed-geo-list li {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.ed-geo-list li:last-child {
    border-bottom: none;
}

.ed-hours-grid {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.ed-hours-grid:last-child {
    border-bottom: none;
}

.ed-hours-day {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 400;
    color: var(--ink-secondary);
}

.ed-hours-time {
    font-family: var(--font-body);
    font-size: var(--type-body);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.ed-geo-map {
    width: 100%;
    height: 220px;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    /* Placeholder pattern */
    background-image:
        linear-gradient(135deg, var(--bg-deep) 25%, transparent 25%),
        linear-gradient(225deg, var(--bg-deep) 25%, transparent 25%),
        linear-gradient(315deg, var(--bg-deep) 25%, transparent 25%),
        linear-gradient(45deg, var(--bg-deep) 25%, transparent 25%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 0, 10px -10px, 0px 10px;
}

.ed-geo-map.map-loaded {
    background-image: none;
}

/* Light theme adjustments for editorial sections */
[data-theme="light"] .ed-philosophy::before {
    opacity: 0.4;
}

[data-theme="light"] .ed-step-num {
    opacity: 0.2;
}

.ed-geo-map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: var(--type-small);
}

/* ═══════════════════════════════════════════════════════
   DARK THEME PREMIUM POLISH — Nobu Lounge
   Warm, elevated, intimate. Like an upscale Italian
   restaurant at night.
   ═══════════════════════════════════════════════════════ */

/* ── Tab Bar — premium app bottom bar ── */
[data-theme="dark"] .tab-bar {
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .tab-item.active {
    color: var(--rose);
}

[data-theme="dark"] .tab-item.active::before {
    background: var(--rose);
}

/* ── Category Nav — subtle chip distinction ── */
[data-theme="dark"] .category-nav {
    background: var(--bg);
    border-bottom-color: var(--border-light);
}

[data-theme="dark"] .cat-pill {
    background: transparent;
    border-color: var(--border-light);
    color: var(--ink-muted);
}

[data-theme="dark"] .cat-pill.active {
    background: var(--rose-glow);
    color: var(--ink);
    border-color: var(--rose-border);
}

/* ── Masthead — warm frosted dark ── */
[data-theme="dark"] .masthead.scrolled {
    background: rgba(26, 20, 24, 0.94);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

/* ── Hero overlay — warm vignette for dark ── */
[data-theme="dark"] .hero-oven-frame .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(26, 20, 24, 0.15) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.10) 60%,
        rgba(26, 20, 24, 0.65) 100%
    );
}

[data-theme="dark"] .hero-oven-frame::after {
    background: radial-gradient(ellipse at 50% 80%, transparent 40%, rgba(26, 20, 24, 0.20) 100%);
}

/* ── Product Cards — elevated warm surfaces ── */
[data-theme="dark"] .product-card-img {
    background: var(--bg-deep);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

[data-theme="dark"] .product-tag {
    background: var(--card);
    box-shadow: var(--shadow-xs);
}

/* ── Editorial Philosophy — visible bg-deep against bg ── */
[data-theme="dark"] .ed-philosophy {
    background: var(--bg-deep);
}

[data-theme="dark"] .ed-philosophy::before {
    opacity: 0.3;
}

[data-theme="dark"] .ed-step-num {
    color: var(--rose);
    opacity: 0.18;
}

/* ── Editorial Geography — warm deep section ── */
[data-theme="dark"] .ed-geo {
    background: var(--bg-deep);
}

/* ── Modal sheet — warm dark surface ── */
[data-theme="dark"] .modal-sheet {
    background: var(--bg);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(10, 6, 8, 0.6);
}

/* ── Sidebar (Cart) — warm dark ── */
[data-theme="dark"] .sidebar {
    background: var(--bg);
    box-shadow: var(--shadow-lg);
}

/* ── Toast — warm dark elevated ── */
[data-theme="dark"] .toast {
    background: var(--card-elevated);
    color: var(--ink);
    box-shadow: var(--shadow-md);
}

/* ── Search bar — warm card surface ── */
[data-theme="dark"] .search-bar {
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--border);
}

/* ── Form inputs — warm card bg ── */
[data-theme="dark"] .form-input {
    background: var(--card);
    border-color: var(--border);
}

/* ── Floating cart — warm shadow ── */
[data-theme="dark"] .floating-cart {
    box-shadow: var(--shadow-lg);
}

/* ── Skeleton shimmer — warm tones ── */
[data-theme="dark"] .skeleton,
[data-theme="dark"] .shimmer {
    background: linear-gradient(90deg, var(--bg-deep) 25%, var(--card) 50%, var(--bg-deep) 75%);
    background-size: 400% 100%;
}

/* ── Theme pill — warm dark glass ── */
[data-theme="dark"] .theme-pill {
    background: rgba(44, 36, 40, 0.6);
    border-color: rgba(58, 46, 52, 0.4);
}

[data-theme="dark"] .theme-pill svg {
    color: rgba(242, 232, 228, 0.5);
}

[data-theme="dark"] .theme-pill:hover {
    background: rgba(44, 36, 40, 0.85);
}

[data-theme="dark"] .theme-pill:hover svg {
    color: rgba(242, 232, 228, 0.8);
}

/* ── Promo banners in dark — solid warm surface ── */
[data-theme="dark"] .promo-banner--ink {
    background: var(--card-elevated);
}

/* ── Light theme accent override for theme pill (defined in main theme-pill section) ── */

/* ═══════════════════════════════════════════════════════
   PREMIUM MICRO-INTERACTIONS
   Subtle tactile feedback. Zero layout/color changes.
   ═══════════════════════════════════════════════════════ */

/* 1. Universal button press feedback — subtle scale down on :active */
button:active,
[role="button"]:active {
    transform: scale(0.97);
    transition: transform 80ms var(--ease);
}

/* 2. Card hover (desktop only) — subtle lift + shadow increase */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 36px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    }

    .promo-card:hover,
    .ninja-stat:hover,
    .ninja-mission:hover,
    .search-result-item:hover,
    .cart-cross-sell-item:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
        transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
    }

    .promo-banner:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
    }

    .order-item:hover {
        background: var(--rose-pale);
        transition: background var(--dur-fast) var(--ease);
    }
}

/* 3. Link/text hover — subtle opacity + color transitions */
a {
    transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
a:hover {
    opacity: 0.8;
}
a:active {
    opacity: 0.6;
}

.cat-pill {
    transition: all var(--dur-fast) var(--ease), transform 80ms var(--ease);
}

.filter-chip {
    transition: all var(--dur-fast) var(--ease), transform 80ms var(--ease);
}

.toggle-btn {
    transition: all var(--dur-fast) var(--ease), transform 80ms var(--ease);
}

.pay-card-inner {
    transition: all var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

@media (hover: hover) {
    .cat-pill:hover {
        border-color: var(--rose-border);
        color: var(--ink-secondary);
    }

    .filter-chip:hover {
        border-color: var(--rose-border);
        color: var(--ink);
    }

    .toggle-btn:hover {
        color: var(--ink);
    }

    .pay-card-inner:hover {
        border-color: var(--rose-border);
    }

    .show-more-btn:hover {
        transform: translateY(-1px);
    }

    .promo-banner-code:hover {
        opacity: 0.8;
    }
}

/* 4. Input focus — smooth border-color transition to rose */
.form-input,
.search-input {
    transition: border-color var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease);
}

.form-input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px var(--rose-pale);
}

.search-bar:focus-within {
    border-color: var(--rose-border);
    box-shadow: 0 0 0 3px var(--rose-pale);
    transition: border-color var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease);
}

/* 5. Modal entrance — ensure smooth slide-up (already present, enhance closing) */
.modal-overlay {
    transition: opacity var(--dur-normal) var(--ease);
}

/* 6. Toast animation — overridden by animations.css: toastSpringIn / toastFadeOut */

/* toast-out animation defined in animations.css: toastFadeOut */

/* 7. Category nav scroll — smooth scrolling */
.category-scroll {
    scroll-behavior: smooth;
}
.menu-scroll {
    scroll-behavior: smooth;
}
.ninja-ranks {
    scroll-behavior: smooth;
}
.cart-cross-sell-items {
    scroll-behavior: smooth;
}

/* 8. Image loading — images visible by default, fade-in for lazy-loaded ones */
/* FIX: Removed default opacity:0 — images have src set directly in HTML,
   so hiding them caused blank cards. Images with data-src (true lazy load)
   can use the .loading/.loaded classes instead. */
.product-card-img img,
.pd-img img,
.cart-item-img img,
.search-result-img img,
.ed-step-img-inner {
    opacity: 1;
    transition: opacity var(--dur-slow) var(--ease);
}

.product-card-img img.loaded,
.pd-img img.loaded,
.cart-item-img img.loaded,
.search-result-img img.loaded,
.ed-step-img-inner.loaded {
    opacity: 1;
}

/* Placeholder state for images still loading */
.product-card-img img.loading {
    opacity: 0.4;
}

/* Image hover zoom on desktop — product detail modal */
@media (hover: hover) {
    .pd-img {
        overflow: hidden;
    }
    .pd-img img {
        transition: opacity var(--dur-slow) var(--ease), transform 0.6s var(--ease-out);
    }
    .pd-img:hover img {
        transform: scale(1.04);
    }
}
