

@layer reset, tokens, primitives, components, pages;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  body {
    background: var(--aurora-canvas);
    color: var(--aurora-ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
  }
  a {
    color: var(--aurora-action);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-aurora);
  }
  a:hover {
    color: var(--aurora-action-hover);
  }
  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  ::selection {
    background: var(--aurora-selection);
  }
}

/* ============================================================
   Tokens — the single source of truth.

   Mirrors `Aurora Theme Design System/Aurora Design Language.dc.html`.
   The one deliberate deviation from that document: it specs an `--au-*`
   prefix, this build keeps the established `--aurora-*` / `--radius-*`
   family. Renaming would churn every view for no visual gain.

   If you change a value here, change it in the design language doc too —
   these two drifting apart is what this layer exists to prevent.
   ============================================================ */
@layer tokens {
  :root {
    /* --- Color: one ink, three lights --- */
    --aurora-canvas: oklch(97.5% 0.014 85);
    --aurora-ink: oklch(26% 0.025 55);
    --aurora-ink-muted: oklch(46% 0.03 55);
    --aurora-ink-light: oklch(56% 0.025 55);
    --aurora-action: oklch(62% 0.19 35);
    --aurora-action-hover: oklch(54% 0.19 35);
    --aurora-action-grad: linear-gradient(135deg, oklch(62% 0.19 35), oklch(72% 0.17 60));
    --aurora-selection: oklch(86% 0.09 65 / 0.4);
    --aurora-danger: oklch(58% 0.19 25);

    /* The three aurora hues share lightness/chroma so they blend as one field */
    --aurora-sky: oklch(89% 0.07 55);
    --aurora-lilac: oklch(91% 0.08 90);
    --aurora-mint: oklch(91% 0.06 140);

    /* --- Glass: four sheets. Elevation = fill + blur + shadow, never shadow alone.
           Level is a role, not a size — see the `use` note on each. --- */
    --aurora-glass-0: oklch(100% 0 0 / 0.4);   /* veil  — inline hints, overlays */
    --aurora-glass-1: oklch(100% 0 0 / 0.55);  /* card  — cards, tiles */
    --aurora-glass-2: oklch(100% 0 0 / 0.65);  /* float — nav, popovers, cart */
    --aurora-glass-3: oklch(100% 0 0 / 0.78);  /* sheet — dialogs, checkout sheet */
    --aurora-blur-0: 8px;
    --aurora-blur-1: 16px;
    --aurora-blur-2: 24px;
    --aurora-blur-3: 32px;

    --aurora-shadow-0: 0 1px 2px oklch(28% 0.02 55 / 0.04);
    --aurora-shadow-1: 0 1px 2px oklch(28% 0.02 55 / 0.06), 0 8px 24px oklch(28% 0.02 55 / 0.08);
    --aurora-shadow-2: 0 2px 4px oklch(28% 0.02 55 / 0.05), 0 16px 40px oklch(28% 0.02 55 / 0.1);
    --aurora-shadow-3: 0 4px 8px oklch(28% 0.02 55 / 0.05), 0 32px 80px oklch(28% 0.02 55 / 0.14);

    --aurora-border: oklch(100% 0 0 / 0.75);
    --aurora-border-muted: oklch(90% 0.015 75);

    /* --- Type: characterful grotesk for voice, humanist sans for reading,
           mono for data. Scale is a 1.333 ratio, clamped fluidly. --- */
    --font-display: 'Poppins', 'Schibsted Grotesk', system-ui, sans-serif;
    --font-body: 'Instrument Sans', system-ui, sans-serif;
    --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

    /* `display` is the cover size — sized for one word ("Aurora"). A hero
       headline is a sentence in a ~920px shell, so it gets its own step.
       The 104px cap is measured, not taste: "Dinner that arrives" sets at
       935px @110px — wider than the shell, so the intended two-line break
       collapsed into three above ~1220px viewport. 104px lands at 884px. */
    --text-display: clamp(56px, 9vw, 128px);
    --text-hero: clamp(52px, 9vw, 104px);
    --text-title-1: clamp(32px, 4vw, 44px);
    --text-title-2: clamp(24px, 3vw, 28px);
    --text-title-3: 20px;
    --text-body: 16px;
    --text-caption: 13px;
    --text-mono: 13px;

    --track-display: -0.035em;
    --track-title-1: -0.03em;
    --track-title-2: -0.02em;
    --track-title-3: -0.01em;
    --track-caption: 0.01em;

    /* --- Space: 4px rhythm --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 40px;
    --space-6: 64px;
    --space-7: 104px;

    /* --- Geometry: organic radii. Never below 12 on visible surfaces. --- */
    --radius-ctl: 12px;
    --radius-card: 24px;
    --radius-sheet: 32px;
    --radius-hero: 40px;
    --radius-pill: 999px;

    /* --- Motion: four durations, three easings.
           `--ease-out` and `--ease-spring` were two names for the same curve
           as `--ease-aurora`; they now alias it rather than pretend to differ. --- */
    --ease-aurora: cubic-bezier(0.16, 1, 0.3, 1);  /* buttons, hovers, cards, reveals */
    --ease-soft: cubic-bezier(0.3, 0.8, 0.3, 1);   /* page transitions, ambient light */
    --ease-crisp: cubic-bezier(0, 0, 0.2, 1);      /* toggles, chips, focus rings */

    --duration-instant: 120ms;
    --duration-quick: 240ms;
    --duration-settle: 420ms;
    --duration-drift: 700ms;

    /* Legacy aliases — existing rules and views still reference these.
       Prefer the spec names above in new code. */
    --duration-fast: var(--duration-quick);
    --duration-slow: var(--duration-settle);
    --ease-out: var(--ease-aurora);
    --ease-spring: var(--ease-aurora);
    --radius-sm: var(--radius-ctl);
    --radius-md: var(--radius-card);
    --radius-lg: var(--radius-card);
  }

  /* The spec collapses motion to zero rather than relying on the blanket
     `animation: none` alone — transitions driven by these tokens go still too. */
  @media (prefers-reduced-motion: reduce) {
    :root {
      --duration-instant: 0ms;
      --duration-quick: 0ms;
      --duration-settle: 0ms;
      --duration-drift: 0ms;
    }
  }
}

@layer primitives {
  @keyframes aurora-drift-a {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, 10%) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
  }
  @keyframes aurora-drift-b {
    0% { transform: translate(0, 0) scale(1.1); }
    50% { transform: translate(-8%, -6%) scale(1); }
    100% { transform: translate(0, 0) scale(1.1); }
  }
  @keyframes aurora-drift-c {
    0% { transform: translate(0, 0); }
    50% { transform: translate(5%, -8%) scale(1.2); }
    100% { transform: translate(0, 0); }
  }
  @keyframes aurora-float {
    0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--tilt, 0deg)); }
  }
  @keyframes aurora-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  @keyframes aurora-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }
  @keyframes cart-rise {
    0% { transform: translateY(100%) scale(0.97); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
    }
  }

  .aurora-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .aurora-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 80%;
    background: radial-gradient(ellipse at center, var(--aurora-sky) 55%, transparent 65%);
    filter: blur(40px);
    animation: aurora-drift-a 18s ease-in-out infinite;
  }
  .aurora-glow-2 {
    position: absolute;
    top: 10%;
    right: -15%;
    width: 65%;
    height: 75%;
    background: radial-gradient(ellipse at center, var(--aurora-lilac) 50%, transparent 65%);
    filter: blur(48px);
    animation: aurora-drift-b 22s ease-in-out infinite;
  }
  .aurora-glow-3 {
    position: absolute;
    bottom: -30%;
    left: 25%;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse at center, var(--aurora-mint) 40%, transparent 65%);
    filter: blur(56px);
    animation: aurora-drift-c 26s ease-in-out infinite;
  }

  .shimmer {
    background: linear-gradient(90deg, oklch(94% 0.012 75) 25%, oklch(97% 0.01 80) 50%, oklch(94% 0.012 75) 75%);
    background-size: 200% 100%;
    animation: aurora-shimmer 1.6s linear infinite;
  }
}

@layer components {
  /* Navigation Bar */
  .floating-nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 24px;
  }
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 10px 10px 26px;
    border-radius: var(--radius-pill);
    background: var(--aurora-glass-2);
    backdrop-filter: blur(var(--aurora-blur-2));
    border: 1px solid var(--aurora-border);
    box-shadow: var(--aurora-shadow-2);
    width: 100%;
    max-width: 760px;
  }
  .nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--aurora-ink);
  }
  .nav-links {
    display: flex;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
  }
  .nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: var(--aurora-ink-muted);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-aurora), color var(--duration-fast) var(--ease-aurora);
  }
  .nav-link:hover, .nav-link.active {
    background: oklch(28% 0.02 55 / 0.06);
    color: var(--aurora-ink);
  }

  /* Glass Card */
  .glass-card {
    border-radius: var(--radius-card);
    background: var(--aurora-glass-1);
    backdrop-filter: blur(var(--aurora-blur-1));
    border: 1px solid var(--aurora-border);
    box-shadow: var(--aurora-shadow-1);
    transition: transform var(--duration-settle) var(--ease-aurora), box-shadow var(--duration-settle) var(--ease-aurora);
  }
  .glass-card.interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 2px 4px oklch(28% 0.02 55 / 0.04), 0 20px 44px oklch(62% 0.19 35 / 0.14);
  }

  /* Dynamic Buttons */
  .btn-primary {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: oklch(98.5% 0.006 85);
    background: linear-gradient(135deg, var(--aurora-action), oklch(72% 0.17 60));
    box-shadow: 0 2px 6px oklch(62% 0.19 35 / 0.3), 0 14px 36px oklch(62% 0.19 35 / 0.28);
    transition: box-shadow var(--duration-fast) var(--ease-aurora), transform var(--duration-fast) var(--ease-aurora);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-primary:hover {
    box-shadow: 0 4px 10px oklch(62% 0.19 35 / 0.35), 0 22px 52px oklch(62% 0.19 35 / 0.35);
    transform: translateY(-1px);
  }
  .btn-secondary {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    color: var(--aurora-ink);
    background: var(--aurora-glass-2);
    backdrop-filter: blur(var(--aurora-blur-1));
    border: 1px solid var(--aurora-border);
    transition: transform var(--duration-quick) var(--ease-aurora), border-color var(--duration-quick) var(--ease-aurora);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-secondary:hover {
    transform: translateY(-2px);
    border-color: oklch(76% 0.09 55);
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 20px;
  }
  .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--aurora-ink-muted);
    margin-bottom: 8px;
  }
  .form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-ctl);
    border: 1px solid var(--aurora-border-muted);
    background: var(--aurora-glass-0);
    backdrop-filter: blur(var(--aurora-blur-0));
    color: var(--aurora-ink);
    font-size: 15px;
    transition: border-color var(--duration-quick) var(--ease-aurora),
                background var(--duration-quick) var(--ease-aurora),
                box-shadow var(--duration-quick) var(--ease-aurora);
  }
  /* The spec's soft ring, on the surfaces it was written for */
  .form-input:focus {
    border-color: var(--aurora-action);
    background: var(--aurora-glass-2);
    box-shadow: 0 0 0 4px oklch(68% 0.15 45 / 0.18);
  }
  /* The border + halo already read as focus; the global ring would double it */
  .form-input:focus-visible {
    outline: none;
  }

  /* Modals */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: oklch(28% 0.02 55 / 0.4);
    backdrop-filter: blur(8px);
    /* Above the cart sheet (90) and its scrim (89) */
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-aurora);
  }
  .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-sheet {
    background: var(--aurora-glass-3);
    backdrop-filter: blur(var(--aurora-blur-3));
    border: 1px solid var(--aurora-border);
    border-radius: var(--radius-sheet);
    box-shadow: var(--aurora-shadow-3);
    width: 100%;
    max-width: 600px;
    padding: var(--space-5);
    transform: scale(0.95);
    transition: transform var(--duration-quick) var(--ease-aurora);
  }
  .modal-overlay.active .modal-sheet {
    transform: scale(1);
  }
}

@layer pages {
  /* Homepage Hero */
  .hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px clamp(24px, 8vw, 120px) 80px;
    overflow: hidden;
  }
  .hero-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 56px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
  }
  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: var(--aurora-glass-0);
    backdrop-filter: blur(var(--aurora-blur-0));
    border: 1px solid var(--aurora-border);
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--aurora-ink-muted);
  }
  .hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: oklch(65% 0.14 160);
    display: inline-block;
  }
  .hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: var(--track-display);
    line-height: 1;
    margin: 26px auto 0;
    background: linear-gradient(135deg, var(--aurora-ink) 30%, oklch(56% 0.12 45));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-desc {
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.5;
    color: var(--aurora-ink-muted);
    max-width: 600px;
    margin: 24px auto 0;
  }
  .hero-widget-wrapper {
    perspective: 1400px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    will-change: transform;
  }
  .hero-widget-inner {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
  }
  .animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-aurora) forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
    align-items: center;
  }

  /* Grid Layouts */
  .section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 0;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: var(--text-title-1);
    font-weight: 600;
    letter-spacing: var(--track-title-1);
    margin: 0;
  }
  /* auto-FIT: the home page shows at most 4 categories, and auto-fill was
     reserving empty tracks for the ones that don't exist — 6 tracks for 4
     tiles at 1400px, squeezing them to 167px against a gap of dead space.
     Collapsing the empty tracks lets the tiles fill the row. */
  .grid-categories {
    --cat-min: 160px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--cat-min), 1fr));
    gap: var(--space-3);
  }
  /* A phone leaves ~328px of content width: two 160px tracks don't fit, so
     the tiles collapsed into four full-width bars. A smaller floor keeps
     them a 2-up grid, which is what a tile is for. */
  @media (max-width: 480px) {
    .grid-categories { --cat-min: 132px; }
  }
  /* Dishes stay auto-FILL on purpose: a filter that returns one dish should
     leave a 280px card, not stretch it across the whole row. */
  .grid-dishes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
  }

  /* Booking Visual Picker Grid */
  .booking-picker-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .datepicker {
    width: 100%;
    font-family: var(--font-body);
  }
  .datepicker table {
    width: 100%;
  }
  .datepicker table tr td, .datepicker table tr th {
    text-align: center;
    padding: 6px;
    border-radius: 8px;
  }
  .datepicker table tr td.day:hover {
    background: var(--aurora-glass-1);
    cursor: pointer;
  }
  .datepicker table tr td.active, .datepicker table tr td.active:hover {
    background: var(--aurora-action) !important;
    color: #fff !important;
    border-radius: 8px;
  }

  /* Dish cards, the menu-browser grid and the cart drawer used to live here.
     They were replaced by .dish-card / .menu-page / .cart-box in the components
     layer — and had to go, because `pages` outranks `components`, so the old
     .dish-card would have overridden the new one. */
  .sidebar-link {
    padding: 12px 18px;
    border-radius: var(--radius-ctl);
    color: var(--aurora-ink-muted);
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-aurora);
    cursor: pointer;
  }
  .sidebar-link:hover, .sidebar-link.active {
    background: oklch(100% 0 0 / 0.6);
    color: var(--aurora-ink);
    border-left: 2px solid var(--aurora-action);
  }

  /* Footer Section */
  footer {
    background: oklch(24% 0.02 55);
    color: oklch(88% 0.02 280);
    padding: 72px clamp(24px, 8vw, 120px) 48px;
    position: relative;
    overflow: hidden;
  }

  /* Responsive Rules */
  @media (max-width: 767px) {
    .floating-nav {
      padding: 0 10px;
    }

    .hero-container {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 40px;
    }
    .hero-actions {
      justify-content: center;
    }

    .modal-sheet {
      padding: 24px 16px;
      margin: 16px;
      max-width: 100%;
    }

    .booking-picker-grid {
      grid-template-columns: 1fr;
      gap: 20px !important;
    }
  }
}

/* ===== Responsive layout helpers (unlayered so !important reliably wins over inline grids) ===== */
[x-cloak] { display: none !important; }

/* Two-column splits (sidebar + content, form + summary) collapse on tablets & phones */
@media (max-width: 900px) {
  .aurora-stack-md { grid-template-columns: 1fr !important; }
  .aurora-stack-md > aside { order: 2; }
}

/* Paired form fields collapse on phones */
@media (max-width: 640px) {
  .aurora-stack-sm { grid-template-columns: 1fr !important; }
  .aurora-stack-md { grid-template-columns: 1fr !important; }
  .section-container { padding-left: 20px; padding-right: 20px; }
  footer { padding-left: 24px; padding-right: 24px; }
}

/* ============================================================
   Aurora 2026 — motion, depth & micro-interaction layer

   The `:root` block that used to sit here redefined --ease-spring and
   --ease-out. Being unlayered, it outranked @layer tokens and silently
   won — so the token layer was decorative. Both curves now live in
   tokens as aliases of --ease-aurora.
   ============================================================ */

/* Content entrance on load & SPA navigation */
#page-wrapper { animation: aurora-page-enter 0.7s var(--ease-spring) both; }
@keyframes aurora-page-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Scroll reveal — progressive enhancement. Content only hides once
   JS confirms it can bring it back (`html.js-reveal`), so a JS failure
   leaves a readable page rather than a blank one.

   Variants: (default) rise · scale · left · right · clip · blur
   Stagger:  put [data-reveal-stagger] on a parent; children step in.
   ============================================================ */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease-aurora), transform 0.75s var(--ease-aurora),
              clip-path 0.9s var(--ease-aurora), filter 0.75s var(--ease-aurora);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  filter: none;
}
/* will-change is a promise, not a decoration — release it once landed */
html.js-reveal [data-reveal].is-settled { will-change: auto; }

html.js-reveal [data-reveal="scale"] { transform: translateY(30px) scale(0.96); }
html.js-reveal [data-reveal="left"]  { transform: translate3d(-48px, 0, 0); }
html.js-reveal [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
html.js-reveal [data-reveal="blur"]  { filter: blur(12px); transform: translateY(20px); }

/* Curtain: the element is born from its top edge downward */
html.js-reveal [data-reveal="clip"] {
  clip-path: inset(0 0 100% 0);
  transform: none;
  opacity: 1;
}

/* Children of a staggered parent step in on a rhythm. The index is set by JS
   so the cascade survives Livewire re-renders reordering the DOM. */
html.js-reveal [data-reveal-stagger] > * {
  --reveal-delay: calc(var(--stagger-i, 0) * var(--stagger-step, 70ms));
}

/* Floating nav condenses & solidifies on scroll */
.floating-nav { transition: top 0.45s var(--ease-spring); }
.floating-nav.scrolled { top: 10px; }
.nav-container {
  transition: padding 0.45s var(--ease-spring), background 0.45s var(--ease-spring),
              box-shadow 0.45s var(--ease-spring), max-width 0.45s var(--ease-spring),
              border-color 0.45s var(--ease-spring);
}
.floating-nav.scrolled .nav-container {
  padding: 7px 7px 7px 22px;
  background: var(--aurora-glass-3);
  box-shadow: 0 2px 6px oklch(28% 0.02 55 / 0.08), 0 18px 44px oklch(28% 0.02 55 / 0.16);
}

/* Magnetic pull rides on `translate` so the :hover/:active `transform`
   below still composes on top of it rather than being clobbered. */
[data-aurora-magnetic] {
  translate: var(--mag-x, 0) var(--mag-y, 0);
  transition: translate 0.5s var(--ease-spring);
}
[data-aurora-magnetic].is-magnetised { transition: none; }

/* Buttons — light sheen sweep + tactile press */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 28%, oklch(100% 0 0 / 0.32) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:active { transform: translateY(1px) scale(0.99); }
.btn-secondary:active { transform: translateY(0) scale(0.99); }

/* Dish cards — lift on hover, tactile press. The image zoom lives with
   .dish-card__media in the components layer. */
.dish-card {
  will-change: transform;
  transition: transform var(--duration-slow) var(--ease-aurora), box-shadow var(--duration-slow) var(--ease-aurora);
  box-shadow: 0 1px 3px oklch(28% 0.02 55 / 0.06), 0 12px 32px oklch(28% 0.02 55 / 0.08);
}
.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px oklch(28% 0.02 55 / 0.05), 0 28px 56px oklch(62% 0.19 35 / 0.16);
}
.dish-card.is-unavailable:hover { transform: none; }
.dish-card:active { transform: translateY(-2px) scale(0.996); }
.glass-card.interactive { will-change: transform; }
.glass-card.interactive:hover { border-color: oklch(83% 0.06 65); }

/* Hero — animated gradient text + decorative parallax orbs */
.hero-title {
  background: linear-gradient(100deg,
    var(--aurora-ink) 18%, oklch(60% 0.18 40) 42%,
    oklch(70% 0.16 70) 58%, var(--aurora-ink) 84%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora-hero-sheen 9s linear infinite;
}
@keyframes aurora-hero-sheen { to { background-position: 220% center; } }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  will-change: transform;
}
.hero-orb-1 {
  width: 320px; height: 320px; top: 8%; left: -60px;
  background: radial-gradient(circle at 35% 35%, oklch(88% 0.09 60 / 0.9), transparent 70%);
}
.hero-orb-2 {
  width: 260px; height: 260px; bottom: 6%; right: -40px;
  background: radial-gradient(circle at 60% 40%, oklch(90% 0.08 130 / 0.85), transparent 70%);
}
/* Drift is written to `translate` so it composes with the depth classes'
   `transform: scale()` instead of overwriting it. */
[data-parallax] { will-change: translate; }

/* Skip link — offscreen until focused, never display:none (that would take it
   out of the tab order and defeat the point). Sits above the floating nav. */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50% -120%;
  z-index: 300;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-ctl) var(--radius-ctl);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: oklch(98.5% 0.006 85);
  background: var(--aurora-action);
  box-shadow: var(--aurora-shadow-2);
  transition: translate var(--duration-quick) var(--ease-aurora);
}
.skip-link:focus-visible {
  translate: -50% 0;
  color: oklch(98.5% 0.006 85);
  outline-offset: -4px;
}

/* `main` takes focus from the skip link but is not an interactive control —
   the ring would be noise. */
#main-content:focus { outline: none; }

/* Refined scrollbar */
* { scrollbar-width: thin; scrollbar-color: oklch(83% 0.03 75) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: oklch(87% 0.02 75); border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: oklch(78% 0.05 75); background-clip: content-box; }

/* Focus — the Aurora ring, never the UA default.
   The spec's 4px soft halo alone sits at 0.15 alpha and cannot carry WCAG's
   3:1 focus-indicator contrast on its own, so it rides on a solid 2px ring
   that can. `outline` (not box-shadow) so it survives forced-colors mode. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--aurora-action);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Order-history rows */
.table-row-hover { transition: background 0.24s var(--ease-out); }
.table-row-hover:hover { background: oklch(100% 0 0 / 0.55); }

/* Honour reduced-motion everywhere.
   Every reveal variant must be neutralised here — a variant that only resets
   `transform` would leave a clip- or blur-revealed element permanently hidden. */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  #page-wrapper { animation: none; }
  .hero-title { animation: none; }
  .hero-orb { display: none; }
  [data-parallax] { translate: none !important; }
  [data-aurora-magnetic] { translate: none !important; }
  /* Lit text resolves to plain readable ink */
  [data-lit-text] .lit-word { color: var(--aurora-ink) !important; opacity: 1 !important; }
}

/* ============================================================
   Cart — desktop rail, mobile bottom sheet
   Single instance: the same markup is a sticky column above
   991px and a Deliveroo-style sheet below it.
   ============================================================ */
/* ============================================================
   Navigation — inline pill on desktop, hamburger drawer on mobile
   ============================================================ */
@layer components {
  .nav-logo img {
    height: 32px;
    width: auto;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-cta {
    padding: 10px 22px;
    font-size: 14px;
    gap: 8px;
    white-space: nowrap;
  }

  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--duration-fast) var(--ease-out);
  }
  .nav-burger:hover { background: oklch(28% 0.02 55 / 0.06); }
  .nav-burger__bar {
    display: block;
    width: 17px;
    height: 2px;
    margin: 0 auto;
    border-radius: var(--radius-pill);
    background: var(--aurora-ink);
    transition: transform var(--duration-fast) var(--ease-spring);
  }
  /* Two bars fold into an X */
  .nav-burger__bar.is-open:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-burger__bar.is-open:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 860px) {
  .nav-burger { display: flex; }

  /* The link row detaches into a panel under the pill */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius-card);
    /* A popover, not a sheet — glass-2 per the spec's `use` note */
    background: var(--aurora-glass-2);
    backdrop-filter: blur(var(--aurora-blur-2));
    border: 1px solid var(--aurora-border);
    box-shadow: var(--aurora-shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-spring),
                visibility var(--duration-fast);
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-ctl);
  }

  .nav-container {
    position: relative;
    gap: 10px;
    padding: 8px 8px 8px 20px;
  }
  .nav-logo { font-size: 16px; }
  .nav-logo img { height: 26px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
}

/* Below this the cart bar carries the total, so the nav CTA is noise */
@media (max-width: 480px) {
  .nav-cta__sep, .nav-cta i { display: none; }
  .nav-cta { padding: 9px 14px; }
}

/* ============================================================
   Order bar — order type + timeslot picker
   ============================================================ */
@layer components {
  .order-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: var(--radius-pill);
    background: var(--aurora-glass-2);
    backdrop-filter: blur(var(--aurora-blur-2));
    border: 1px solid var(--aurora-border);
    box-shadow: var(--aurora-shadow-1);
  }
  .order-bar__group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: oklch(28% 0.02 55 / 0.05);
  }

  .order-seg {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--aurora-ink-muted);
    white-space: nowrap;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  }
  .order-seg:hover { color: var(--aurora-ink); }
  .order-seg.is-active {
    background: oklch(100% 0 0 / 0.95);
    color: var(--aurora-ink);
    box-shadow: 0 1px 2px oklch(28% 0.02 55 / 0.08), 0 4px 10px oklch(28% 0.02 55 / 0.06);
  }
  .order-seg__hint {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--aurora-ink-light);
  }

  .order-later {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--aurora-ink-muted);
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  }
  .order-later:hover { color: var(--aurora-ink); }
  .order-later.is-active {
    background: oklch(100% 0 0 / 0.95);
    color: var(--aurora-ink);
    box-shadow: 0 1px 2px oklch(28% 0.02 55 / 0.08), 0 4px 10px oklch(28% 0.02 55 / 0.06);
  }
  .order-later select {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    max-width: 150px;
  }
  .order-bar__spinner {
    padding: 0 8px;
    font-size: 12px;
    color: var(--aurora-ink-light);
  }

  .order-bar__notice {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: oklch(58% 0.19 25);
  }

  @media (max-width: 600px) {
    .order-bar {
      border-radius: var(--radius-card);
      gap: var(--space-2);
    }
    .order-bar__group { flex: 1 1 100%; }
    .order-seg, .order-later { flex: 1 1 0; justify-content: center; }
    .order-seg__hint, .order-later__label { display: none; }
  }
}

/* ============================================================
   Menu browser — search, category jump chips, dish grid
   ============================================================ */
@layer components {
  .menu-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  .menu-search__input {
    width: 100%;
    padding: 15px 46px 15px 46px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--aurora-border);
    background: var(--aurora-glass-2);
    backdrop-filter: blur(var(--aurora-blur-2));
    box-shadow: var(--aurora-shadow-1);
    font-size: 15px;
    color: var(--aurora-ink);
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  }
  .menu-search__input::placeholder { color: var(--aurora-ink-light); }
  .menu-search__input:focus {
    border-color: var(--aurora-action);
    box-shadow: 0 1px 2px oklch(28% 0.02 55 / 0.04), 0 10px 30px oklch(62% 0.19 35 / 0.14);
  }
  /* The native clear affordance would sit on top of ours */
  .menu-search__input::-webkit-search-cancel-button { display: none; }
  .menu-search__icon {
    position: absolute;
    left: 18px;
    font-size: 14px;
    color: var(--aurora-ink-light);
    pointer-events: none;
  }
  .menu-search__clear, .menu-search__spinner {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    color: var(--aurora-ink-muted);
  }
  .menu-search__clear { cursor: pointer; }
  .menu-search__clear:hover { background: oklch(28% 0.02 55 / 0.06); }

  .menu-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--aurora-border-muted);
    scrollbar-width: none;
  }
  .menu-cats::-webkit-scrollbar { display: none; }
  .menu-cat {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: oklch(100% 0 0 / 0.5);
    border: 1px solid var(--aurora-border-muted);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--aurora-ink-muted);
    white-space: nowrap;
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
  }
  .menu-cat:hover {
    background: var(--aurora-action);
    border-color: var(--aurora-action);
    color: oklch(98.5% 0.006 85);
  }

  .menu-group__item { margin-bottom: 52px; }
  .menu-group__item:last-child { margin-bottom: 0; }
  .menu-group__head { margin-bottom: 20px; scroll-margin-top: 110px; }
  .menu-group__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--aurora-ink);
    margin: 0;
  }
  .menu-group__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--aurora-ink-muted);
    margin: 6px 0 0;
  }
  .menu-group__banner {
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--aurora-border);
  }
  .menu-group__banner img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }

  .menu-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
  }

  .menu-empty {
    text-align: center;
    padding: 56px 16px;
    color: var(--aurora-ink-light);
    grid-column: 1 / -1;
  }
  .menu-empty i {
    font-size: 30px;
    opacity: 0.35;
    margin-bottom: 14px;
    display: block;
  }
  .menu-empty__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--aurora-ink-muted);
    margin: 0 0 4px;
  }
  .menu-empty__hint {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
  }

  [wire\:loading].is-busy, .is-busy {
    transition: opacity var(--duration-fast) var(--ease-out);
  }

  /* --- Dish card --- */
  .dish-card {
    display: flex;
    flex-direction: column;
    background: var(--aurora-glass-1);
    backdrop-filter: blur(var(--aurora-blur-1));
    border: 1px solid var(--aurora-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
  }
  .dish-card.is-unavailable {
    opacity: 0.55;
    cursor: not-allowed;
  }
  .dish-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, oklch(94% 0.02 75), oklch(89% 0.035 60));
  }
  .dish-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-out);
  }
  .dish-card:hover .dish-card__media img { transform: scale(1.06); }
  .dish-card__media-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: oklch(100% 0 0 / 0.55);
  }

  .dish-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: oklch(98.5% 0.006 85);
  }
  .dish-badge--special { background: oklch(58% 0.19 25); }
  .dish-badge--min {
    background: oklch(28% 0.02 55 / 0.72);
    backdrop-filter: blur(8px);
  }
  /* Sits under the deal badge when a dish carries both */
  .dish-badge--special + .dish-badge--min { top: 44px; }

  /* Sits flush until hover, then lifts — the card itself is the button */
  .dish-card__add {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    color: oklch(98.5% 0.006 85);
    background: var(--aurora-action);
    box-shadow: 0 2px 8px oklch(62% 0.19 35 / 0.35);
    opacity: 0;
    transform: translateY(6px) scale(0.9);
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-spring);
  }
  .dish-card:hover .dish-card__add,
  .dish-card:focus-visible .dish-card__add {
    opacity: 1;
    transform: none;
  }
  .dish-card:active .dish-card__add { transform: scale(0.88); }

  .dish-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  .dish-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .dish-card__name {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--aurora-ink);
    margin: 0;
  }
  .dish-card__price {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--aurora-ink);
    white-space: nowrap;
  }
  .dish-card__price-was {
    font-size: 12px;
    font-weight: 400;
    color: var(--aurora-ink-light);
    text-decoration: line-through;
    margin-right: 5px;
  }
  .dish-card__desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--aurora-ink-muted);
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .dish-card__note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: oklch(58% 0.19 25);
  }

  .menu-page {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 24px 60px;
  }
  .menu-page__main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cart-aside {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 108px;
  }

  .cart-box {
    --cart-pad: var(--space-4);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sheet);
    background: var(--aurora-glass-3);
    backdrop-filter: blur(var(--aurora-blur-3));
    border: 1px solid var(--aurora-border);
    box-shadow: var(--aurora-shadow-3);
    padding: var(--cart-pad);
    max-height: calc(100vh - 132px);
  }

  .cart-box__grabber { display: none; }
  .cart-box__close { display: none; }

  .cart-box__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .cart-box__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--aurora-ink);
    margin: 0;
  }
  .cart-box__count {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    background: var(--aurora-action);
    color: oklch(98.5% 0.006 85);
  }

  .cart-box__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--aurora-border-muted);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--aurora-ink-light);
  }
  .cart-box__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  /* The scroll region keeps the checkout button pinned in view */
  .cart-box__scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 calc(var(--cart-pad) * -1);
    padding: 18px var(--cart-pad) 0;
  }
  .cart-box__section {
    padding-top: 16px;
    border-top: 1px solid var(--aurora-border-muted);
  }
  .cart-box__foot {
    flex: 0 0 auto;
    padding-top: 18px;
    margin-top: 4px;
    border-top: 1px solid var(--aurora-border-muted);
  }

  /* --- Items --- */
  .cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity var(--duration-fast) var(--ease-out);
  }
  .cart-items.is-busy { opacity: 0.55; }

  .cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    animation: cart-item-in 0.42s var(--ease-spring) both;
  }
  @keyframes cart-item-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
  }
  .cart-item__thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-ctl);
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, oklch(94% 0.02 75), oklch(89% 0.035 60));
  }
  .cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cart-item__body {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cart-item__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
  }
  .cart-item__name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--aurora-ink);
  }
  .cart-item__price {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--aurora-ink);
    white-space: nowrap;
  }
  .cart-item__note {
    font-size: 12px;
    line-height: 1.45;
    color: var(--aurora-ink-light);
    margin: 4px 0 0;
  }
  .cart-item__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }
  .cart-item__remove {
    font-size: 12px;
    font-weight: 500;
    color: var(--aurora-ink-light);
    cursor: pointer;
    padding: 4px 2px;
    transition: color var(--duration-fast) var(--ease-out);
  }
  .cart-item__remove:hover { color: oklch(58% 0.19 25); }

  /* --- Quantity stepper --- */
  .qty-stepper {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--aurora-border-muted);
    background: oklch(100% 0 0 / 0.5);
    overflow: hidden;
  }
  .qty-stepper__btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    color: var(--aurora-ink-muted);
    transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
  }
  .qty-stepper__btn:hover {
    background: var(--aurora-action);
    color: oklch(98.5% 0.006 85);
  }
  .qty-stepper__btn:active { transform: scale(0.92); }
  /* At the minimum, "minus" drops the whole item — colour it like it means it */
  .qty-stepper__btn.is-destructive:hover {
    background: oklch(58% 0.19 25);
    color: oklch(98.5% 0.006 85);
  }
  .qty-stepper__value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--aurora-ink);
    min-width: 26px;
    text-align: center;
  }
  .qty-stepper__step {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--aurora-ink-light);
    padding-right: 6px;
    margin-left: -4px;
  }

  /* --- Totals --- */
  .cart-totals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
  }
  .cart-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .cart-totals__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--aurora-ink-light);
  }
  .cart-totals__value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--aurora-ink);
  }
  .cart-totals__remove {
    cursor: pointer;
    font-size: 10px;
    color: oklch(58% 0.19 25);
    padding: 2px;
  }

  /* --- Coupon --- */
  .coupon-form { margin-top: 14px; }
  .coupon-form__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--aurora-action);
    cursor: pointer;
    padding: 4px 0;
  }
  .coupon-form__toggle:hover { color: var(--aurora-action-hover); }
  .coupon-form__field {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .coupon-form__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    font-size: 13px;
  }
  .coupon-form__submit {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: var(--radius-ctl);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: oklch(98.5% 0.006 85);
    background: var(--aurora-action);
    transition: background var(--duration-fast) var(--ease-out);
  }
  .coupon-form__submit:hover { background: var(--aurora-action-hover); }
  .coupon-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }

  .cart-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
  }
  .cart-grand-total__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--aurora-ink-muted);
  }
  .cart-grand-total__value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--aurora-ink);
  }

  .cart-checkout-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 15px;
    gap: 8px;
  }
  .cart-checkout-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }
  .cart-checkout-btn:disabled::after { display: none; }

  .cart-notice {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: oklch(58% 0.19 25);
    margin: 10px 0 0;
  }

  /* --- Empty state --- */
  .cart-empty {
    text-align: center;
    padding: 44px 12px;
    color: var(--aurora-ink-light);
  }
  .cart-empty i {
    font-size: 30px;
    opacity: 0.35;
    margin-bottom: 14px;
    display: block;
  }
  .cart-empty__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--aurora-ink-muted);
    margin: 0 0 4px;
  }
  .cart-empty__hint {
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0;
  }

  /* --- Mobile-only chrome, hidden on desktop --- */
  .cart-fab { display: none; }
  .cart-scrim { display: none; }
}

@media (max-width: 991px) {
  .menu-page {
    display: block;
    padding: 104px 18px 0;
  }
  /* Clear the sticky cart bar so the last dish stays reachable */
  .menu-page__main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .cart-aside {
    position: static;
    width: auto;
  }

  /* The rail becomes a sheet docked to the bottom edge */
  .cart-box {
    --cart-pad: 20px;
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    padding: 8px var(--cart-pad) calc(var(--cart-pad) + env(safe-area-inset-bottom));
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    border-bottom: none;
    box-shadow: 0 -8px 24px oklch(28% 0.02 55 / 0.1), 0 -32px 80px oklch(28% 0.02 55 / 0.14);
    transform: translateY(101%);
    visibility: hidden;
    transition: transform var(--duration-slow) var(--ease-spring), visibility var(--duration-slow);
  }
  .cart-box.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .cart-box__grabber {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--aurora-border-muted);
    margin: 4px auto 12px;
    cursor: grab;
    flex-shrink: 0;
  }
  .cart-box__close {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: oklch(28% 0.02 55 / 0.06);
    color: var(--aurora-ink-muted);
    cursor: pointer;
    font-size: 13px;
  }

  .cart-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89;
    background: oklch(28% 0.02 55 / 0.4);
    backdrop-filter: blur(6px);
  }

  /* Sticky summary bar — the only cart affordance until tapped */
  .cart-fab {
    display: flex;
    position: fixed;
    z-index: 88;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: oklch(98.5% 0.006 85);
    background: linear-gradient(135deg, var(--aurora-action), oklch(72% 0.17 60));
    box-shadow: 0 2px 6px oklch(62% 0.19 35 / 0.3), 0 14px 36px oklch(62% 0.19 35 / 0.3);
    animation: cart-fab-in 0.42s var(--ease-spring) both;
  }
  @keyframes cart-fab-in {
    from { opacity: 0; transform: translateY(90%); }
    to   { opacity: 1; transform: none; }
  }
  .cart-fab:active { transform: scale(0.985); }
  .cart-fab__badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: oklch(100% 0 0 / 0.22);
  }
  .cart-fab__label { flex: 1 1 auto; text-align: left; }
  .cart-fab__total { font-family: var(--font-mono); font-weight: 700; }

  /* Freeze the page behind the sheet */
  body.cart-sheet-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .cart-item, .cart-fab { animation: none; }
  .cart-box { transition: none; }
}

/* ============================================================
   Livewire-safe entrances.

   These lists re-render on every keystroke (menu search) or cart change.
   The [data-reveal] system is JS-class driven and Livewire's morph syncs
   attributes back to the server's markup — it would strip `.is-visible`
   and re-hide every card mid-search. A CSS animation survives morph:
   reused elements keep their finished state, genuinely new elements play.
   Same reasoning as the existing .cart-item entrance.
   ============================================================ */
@keyframes dish-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.grid-dishes > * {
  animation: dish-in 0.5s var(--ease-aurora) both;
  animation-delay: calc(var(--dish-i, 0) * 45ms);
}
/* The cascade is capped: past ~10 cards the delay reads as lag, not rhythm */
.grid-dishes > *:nth-child(1)  { --dish-i: 0; }
.grid-dishes > *:nth-child(2)  { --dish-i: 1; }
.grid-dishes > *:nth-child(3)  { --dish-i: 2; }
.grid-dishes > *:nth-child(4)  { --dish-i: 3; }
.grid-dishes > *:nth-child(5)  { --dish-i: 4; }
.grid-dishes > *:nth-child(6)  { --dish-i: 5; }
.grid-dishes > *:nth-child(7)  { --dish-i: 6; }
.grid-dishes > *:nth-child(8)  { --dish-i: 7; }
.grid-dishes > *:nth-child(n+9) { --dish-i: 8; }

@keyframes checkout-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.checkout-shell {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-5);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.checkout-shell > * { animation: checkout-in 0.55s var(--ease-aurora) both; }
.checkout-shell > *:nth-child(2) { animation-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
  .grid-dishes > *, .checkout-shell > * { animation: none; }
}

/* ============================================================
   Depth — the 2.5D layer model. Parallax factor and atmospheric
   blur/scale both derive from depth, so a layer's distance is
   declared once and everything follows from it.

   0 far background · 1 glow · 2 mid decor · 3 subject · 4 UI/text · 5 fg FX
   ============================================================ */
.scene { position: relative; overflow: hidden; }
.scene > .layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Text and controls must stay clickable; decor layers must not eat clicks */
.scene > .layer.depth-4,
.scene > .layer.depth-4 * { pointer-events: auto; }

.depth-0 { --depth-speed: 0.10; filter: blur(8px); transform: scale(0.70); z-index: 0; }
.depth-1 { --depth-speed: 0.25; filter: blur(4px); transform: scale(0.85); z-index: 1; }
.depth-2 { --depth-speed: 0.50; z-index: 2; }
.depth-3 { --depth-speed: 0.80; transform: scale(1.05); z-index: 3; }
.depth-4 { --depth-speed: 1.00; z-index: 4; }
.depth-5 { --depth-speed: 1.20; transform: scale(1.10); z-index: 5; }

@media (prefers-reduced-motion: reduce) {
  .depth-0, .depth-1, .depth-5 { filter: none; transform: none; }
}

/* ============================================================
   Word-by-word scroll lighting — the line resolves from faint to
   ink as it crosses the viewport. Progress is driven by JS on
   --lit-progress (0→1); each word lights when the wave reaches it.
   ============================================================ */
[data-lit-text] {
  --lit-progress: 0;
}
[data-lit-text] .lit-word {
  color: oklch(28% 0.02 55 / 0.18);
  transition: color 0.5s var(--ease-aurora), opacity 0.5s var(--ease-aurora);
}
[data-lit-text] .lit-word.is-lit {
  color: var(--aurora-ink);
}

/* ============================================================
   Typography utilities — the spec's type scale as classes.
   These exist so views stop hand-rolling `font-size: 13.5px`.
   ============================================================ */
@layer components {
  .u-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aurora-action);
  }
  .u-title-1 {
    font-family: var(--font-display);
    font-size: var(--text-title-1);
    font-weight: 700;
    letter-spacing: var(--track-title-1);
    line-height: 1.1;
    color: var(--aurora-ink);
    margin: 0;
  }
  .u-title-2 {
    font-family: var(--font-display);
    font-size: var(--text-title-2);
    font-weight: 600;
    letter-spacing: var(--track-title-2);
    line-height: 1.15;
    color: var(--aurora-ink);
    margin: 0;
  }
  .u-title-3 {
    font-family: var(--font-display);
    font-size: var(--text-title-3);
    font-weight: 600;
    letter-spacing: var(--track-title-3);
    color: var(--aurora-ink);
    margin: 0;
  }
  .u-body {
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--aurora-ink-muted);
    margin: 0;
  }
  .u-caption {
    font-size: var(--text-caption);
    font-weight: 500;
    letter-spacing: var(--track-caption);
    color: var(--aurora-ink-light);
  }
  .u-mono {
    font-family: var(--font-mono);
    font-size: var(--text-mono);
    color: var(--aurora-ink-light);
  }

  /* Section title + trailing link, the pattern every page repeats */
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
  }
  .section-head__link {
    flex-shrink: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--aurora-action);
  }
  @media (max-width: 480px) {
    .section-head {
      flex-direction: column;
      align-items: flex-start;
      gap: var(--space-2);
    }
  }
}

/* ============================================================
   Footer — the one surface the light-first system inverts.
   Its own scale, because ink-on-dark needs different steps than
   the canvas tokens provide.
   ============================================================ */
@layer components {
  .footer {
    --footer-ink: oklch(98.5% 0.006 85);
    --footer-ink-muted: oklch(76% 0.015 70);
    --footer-ink-faint: oklch(66% 0.015 70);
    --footer-hairline: oklch(37% 0.02 55);
  }

  .footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
    position: relative;
  }
  .footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-title-3);
    letter-spacing: var(--track-title-2);
    color: var(--footer-ink);
    margin-bottom: var(--space-3);
  }
  .footer-blurb {
    font-size: 14px;
    line-height: 1.5;
    color: var(--footer-ink-muted);
    max-width: 240px;
    margin: 0;
  }
  .footer-head {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--footer-ink);
    margin: 0 0 var(--space-4);
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
  }
  .footer-links a, .footer-social a {
    color: var(--footer-ink-muted);
    transition: color var(--duration-quick) var(--ease-aurora);
  }
  .footer-links a:hover, .footer-social a:hover { color: var(--footer-ink); }
  .footer-social {
    display: flex;
    gap: var(--space-3);
    font-size: 18px;
  }
  /* Icon-only links need a real tap target even though the glyph is 18px */
  .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -13px;
  }

  .footer-bottom {
    max-width: 1240px;
    margin: var(--space-5) auto 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--footer-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-caption);
    color: var(--footer-ink-faint);
    flex-wrap: wrap;
    gap: var(--space-3);
  }
}

/* ============================================================
   Category tiles — the home page's "browse the kitchen" grid
   ============================================================ */
@layer components {
  .cat-card {
    padding: 22px 20px;
    display: block;
    text-decoration: none;
  }
  .cat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin-bottom: var(--space-3);
    position: relative;
    overflow: hidden;
    /* Hue is set per-tile from the view; fall back to lilac rather than
       resolve to an invalid color and paint nothing. */
    background: radial-gradient(circle at 30% 30%,
      oklch(88% 0.07 var(--cat-hue, 55) / 0.9),
      oklch(82% 0.09 var(--cat-hue, 55) / 0.5));
  }
  .cat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    mix-blend-mode: overlay;
  }
  .cat-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-body);
    color: var(--aurora-ink);
  }
  .cat-card__count {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--aurora-ink-light);
    margin-top: var(--space-1);
  }
  .cat-empty {
    grid-column: 1 / -1;
    padding: var(--space-5);
    text-align: center;
    color: var(--aurora-ink-light);
  }
}

/* ============================================================
   Account — sidebar + panel
   ============================================================ */
@layer components {
  .account-page {
    padding-top: 140px;
    min-height: 80vh;
  }
  /* Login / register / reset: a single card, centred in the viewport */
  .account-page--center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .account-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-5);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-4);
  }
  /* Order & reservation detail carry more content per row */
  .account-shell--wide { max-width: 1100px; }
  .account-panel {
    padding: var(--space-5);
    background: var(--aurora-glass-3);
    backdrop-filter: blur(var(--aurora-blur-3));
    border: 1px solid var(--aurora-border);
  }
  .account-panel__title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: var(--track-title-2);
    margin: 0 0 var(--space-5);
    color: var(--aurora-ink);
  }
  /* The sidebar rides above the panel once they stack */
  @media (max-width: 900px) {
    .account-shell {
      grid-template-columns: 1fr;
      gap: var(--space-4);
    }
    .account-page { padding-top: 116px; }
    .account-panel { padding: var(--space-4); }
  }
}

/* ============================================================
   Aurora shell — pillow sidebar (desktop) / bottom bar (mobile)

   Rebuilt on the token system: glass sheets, oklch ink, spec motion.
   Z-order contract: content < pillow(70) < cart fab(88) < cart scrim(89)
   < cart sheet(90) < modal overlay(200) < skip link(300).
   The old z-index:1000 put the nav above modals and the cart sheet.
   ============================================================ */

@media (min-width: 992px) {
  .sidebar-layout-main {
    padding-left: 260px;
    padding-top: 0;
    padding-bottom: 0;
  }
  /* The footer is a sibling of <main>, so it must clear the rail itself */
  footer.footer { margin-left: 260px; }
}
@media (max-width: 991px) {
  .sidebar-layout-main {
    padding-left: 0;
    padding-top: 0;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

.sidebar-pillow {
  position: fixed;
  z-index: 70;
  background: var(--aurora-glass-3);
  backdrop-filter: blur(var(--aurora-blur-3));
  -webkit-backdrop-filter: blur(var(--aurora-blur-3));
  border-right: 1px solid var(--aurora-border);
  box-shadow: var(--aurora-shadow-1);
}

.sidebar-pillow__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-pillow__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: var(--track-title-3);
  color: var(--aurora-ink);
}
.sidebar-pillow__logo img {
  height: 38px;
  border-radius: 12px;
}

.sidebar-pillow__menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
  flex: 1;
}

.sidebar-pillow__item, .sidebar-pillow__cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--aurora-ink-muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: background var(--duration-quick) var(--ease-aurora),
              color var(--duration-quick) var(--ease-aurora),
              transform var(--duration-quick) var(--ease-aurora),
              box-shadow var(--duration-quick) var(--ease-aurora);
}
.sidebar-pillow__item i, .sidebar-pillow__cart i {
  font-size: 17px;
  width: 22px;
  text-align: center;
}
.sidebar-pillow__item:hover, .sidebar-pillow__cart:hover {
  background: oklch(28% 0.02 55 / 0.05);
  color: var(--aurora-ink);
  transform: translateX(3px);
}
.sidebar-pillow__item.is-active, .sidebar-pillow__cart.is-active {
  background: var(--aurora-action-grad);
  color: oklch(98.5% 0.006 85);
  box-shadow: 0 2px 6px oklch(62% 0.19 35 / 0.25), 0 10px 24px -6px oklch(62% 0.19 35 / 0.45);
}
.sidebar-pillow__item.is-active:hover, .sidebar-pillow__cart.is-active:hover {
  transform: translateX(3px);
  color: oklch(98.5% 0.006 85);
}

.sidebar-pillow__cart-wrapper { padding: 20px 16px 24px; }
.sidebar-pillow__cart {
  border: 1px solid var(--aurora-border);
  background: oklch(100% 0 0 / 0.5);
}
.sidebar-pillow__cart .cart-details {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  min-width: 0;
}
.sidebar-pillow__cart .cart-details .cart-sep { opacity: 0.45; }
.sidebar-pillow__cart .cart-details .cart-total { font-family: var(--font-mono); }

/* Count bubble — the compact cart signal for the icon-only bottom bar */
.sidebar-pillow__cart-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: oklch(98.5% 0.006 85);
  background: oklch(58% 0.19 25);
  box-shadow: 0 1px 3px oklch(28% 0.02 55 / 0.25);
}
/* Desktop already prints "N items · total" inline — the bubble would repeat it */
@media (min-width: 992px) {
  .sidebar-pillow__cart-badge { display: none; }
}

/* Desktop rail */
@media (min-width: 992px) {
  .sidebar-pillow {
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    height: 100dvh;
  }
}

/* Mobile bottom bar — glass, labelled icons, safe-area aware */
@media (max-width: 991px) {
  .sidebar-pillow {
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-top: 1px solid var(--aurora-border);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 18px oklch(28% 0.02 55 / 0.06), 0 -24px 60px oklch(28% 0.02 55 / 0.08);
  }
  .sidebar-pillow__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px 6px;
    height: auto;
  }
  .sidebar-pillow__logo { display: none; }
  .sidebar-pillow__menu {
    flex-direction: row;
    gap: 2px;
    padding: 0;
    align-items: stretch;
    justify-content: space-around;
    width: 100%;
  }
  .sidebar-pillow__item, .sidebar-pillow__cart {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
  }
  .sidebar-pillow__item i, .sidebar-pillow__cart i { font-size: 18px; width: auto; }
  .sidebar-pillow__item .item-text { display: block; }
  /* The long "N items · total" string can't fit under an icon */
  .sidebar-pillow__cart .item-text, .sidebar-pillow__cart .cart-details { display: none; }
  .sidebar-pillow__item:hover, .sidebar-pillow__cart:hover,
  .sidebar-pillow__item.is-active, .sidebar-pillow__cart.is-active {
    transform: translateY(-3px);
  }
  .sidebar-pillow__cart-wrapper { padding: 0; flex: 1 1 0; display: flex; }
  .sidebar-pillow__cart { width: 100%; border: none; background: none; }
  .sidebar-pillow__cart.is-active { background: var(--aurora-action-grad); }
}

/* ============================================================
   Dish cards — glass surfaces on the token system.
   The flat-white draft lacked states the view emits: special/min
   badges, was-price, unavailable. All defined here.
   ============================================================ */
.new-dish-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: var(--aurora-glass-1);
  backdrop-filter: blur(var(--aurora-blur-1));
  -webkit-backdrop-filter: blur(var(--aurora-blur-1));
  border: 1px solid var(--aurora-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 3px oklch(28% 0.02 55 / 0.06), 0 12px 32px oklch(28% 0.02 55 / 0.08);
  transition: transform var(--duration-settle) var(--ease-aurora),
              box-shadow var(--duration-settle) var(--ease-aurora),
              border-color var(--duration-settle) var(--ease-aurora);
}
.new-dish-card:hover {
  transform: translateY(-6px);
  border-color: oklch(83% 0.06 65);
  box-shadow: 0 2px 4px oklch(28% 0.02 55 / 0.05), 0 28px 56px oklch(62% 0.19 35 / 0.16);
}
.new-dish-card:active { transform: translateY(-2px) scale(0.996); }

.new-dish-card.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}
.new-dish-card.is-unavailable:hover { transform: none; }
.new-dish-card.is-unavailable .new-dish-card__media { filter: grayscale(0.7); }

.new-dish-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, oklch(94% 0.02 75), oklch(89% 0.035 60));
}
.new-dish-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-aurora);
}
.new-dish-card:hover .new-dish-card__media img { transform: scale(1.06); }
.new-dish-card__media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: oklch(100% 0 0 / 0.6);
}

/* The + chip is the card's add-to-cart affordance — always visible so
   touch users get the signal too (the whole card is the button). */
.new-dish-card__add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: oklch(98.5% 0.006 85);
  background: var(--aurora-action);
  box-shadow: 0 2px 8px oklch(62% 0.19 35 / 0.4);
  transition: transform var(--duration-quick) var(--ease-aurora),
              background var(--duration-quick) var(--ease-aurora);
  z-index: 2;
}
.new-dish-card:hover .new-dish-card__add {
  transform: scale(1.1);
  background: var(--aurora-action-hover);
}
.new-dish-card:active .new-dish-card__add { transform: scale(0.92); }

.new-dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: oklch(98.5% 0.006 85);
  background: var(--aurora-action);
  z-index: 2;
}
.new-dish-badge--special { background: oklch(58% 0.19 25); }
.new-dish-badge--min {
  background: oklch(28% 0.02 55 / 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Stack under the deal badge when a dish carries both */
.new-dish-badge--special + .new-dish-badge--min { top: 44px; }

.new-dish-card__body {
  padding: 16px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}
.new-dish-card__info { flex: 1; min-width: 0; }
.new-dish-card__name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 5px;
  color: var(--aurora-ink);
}
.new-dish-card__desc {
  font-size: 13px;
  color: var(--aurora-ink-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.new-dish-card__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: oklch(58% 0.19 25);
}
.new-dish-card__price {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--aurora-ink);
  white-space: nowrap;
}
.new-dish-card__price-was {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 400;
  color: var(--aurora-ink-light);
  text-decoration: line-through;
}

/* ============================================================
   Post-rail layout corrections — every 120–140px top pad below
   was sized for the floating top nav, which the rail replaced.
   ============================================================ */
.menu-page { padding: 48px 24px 60px; }
.menu-group__head { scroll-margin-top: 24px; }
.account-page { padding-top: clamp(40px, 8vh, 88px); }

@media (max-width: 991px) {
  .menu-page { padding: 20px 18px 0; }
  /* Clear the bottom bar + cart fab so the last dish stays reachable */
  .menu-page__main { padding-bottom: calc(184px + env(safe-area-inset-bottom)); }
  /* The fab rides above the bottom bar, not behind it */
  .cart-fab {
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 88;
  }
  .cart-box { max-height: 82vh; }
}
@media (max-width: 900px) {
  .account-page { padding-top: 32px; }
}

/* ============================================================
   Dark-hero button — the secondary CTA for night surfaces where
   the light-glass .btn-secondary would glow grey.
   ============================================================ */
.btn-secondary--dark {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: oklch(98.5% 0.006 85);
  background: oklch(100% 0 0 / 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid oklch(100% 0 0 / 0.22);
  transition: transform var(--duration-quick) var(--ease-aurora),
              border-color var(--duration-quick) var(--ease-aurora),
              background var(--duration-quick) var(--ease-aurora);
}
.btn-secondary--dark:hover {
  transform: translateY(-2px);
  border-color: oklch(100% 0 0 / 0.45);
  background: oklch(100% 0 0 / 0.16);
  color: oklch(98.5% 0.006 85);
}
.btn-secondary--dark:active { transform: translateY(0) scale(0.99); }

/* ============================================================
   Home value strip — three quiet proof points under the kitchen
   ============================================================ */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.perk-card { padding: 28px 26px; }
.perk-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 17px;
  color: var(--aurora-action);
  background: radial-gradient(circle at 30% 30%,
    oklch(92% 0.05 var(--perk-hue, 275) / 0.9),
    oklch(86% 0.07 var(--perk-hue, 275) / 0.5));
  margin-bottom: var(--space-3);
}
.perk-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--aurora-ink);
  margin: 0 0 6px;
}
.perk-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--aurora-ink-muted);
  margin: 0;
}


/* ============================================================
   Menu page v2 — editorial header, sticky category chips,
   solid-white dish cards with a price + add footer.
   ============================================================ */
.menu-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--aurora-canvas);
}
.menu-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.menu-bg__blob--1 {
  top: -22%;
  right: -14%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle at 40% 40%, oklch(91% 0.08 55 / 0.5), transparent 65%);
}
.menu-bg__blob--2 {
  bottom: -26%;
  left: -16%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle at 55% 45%, oklch(93% 0.06 95 / 0.45), transparent 65%);
}

.menu-hero { padding: 10px 4px 30px; }
.menu-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aurora-action);
  margin-bottom: 8px;
}
.menu-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--aurora-ink);
  margin: 0;
}
.menu-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--aurora-ink-muted);
  max-width: 560px;
  margin: 10px 0 0;
}

/* Category chips detach into a sticky glass rail while browsing */
.menu-cats {
  position: sticky;
  top: 10px;
  z-index: 40;
  border-bottom: none;
  padding: 8px;
  margin-bottom: 26px;
  border-radius: var(--radius-pill);
  background: var(--aurora-glass-2);
  backdrop-filter: blur(var(--aurora-blur-2));
  -webkit-backdrop-filter: blur(var(--aurora-blur-2));
  border: 1px solid var(--aurora-border);
  box-shadow: var(--aurora-shadow-1);
}
.menu-cat {
  background: oklch(100% 0 0 / 0.55);
}

/* Group titles carry a small coral marker instead of floating loose */
.menu-group__title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-group__title::before {
  content: '';
  width: 22px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--aurora-action-grad);
  flex-shrink: 0;
}

/* --- Dish card v2 --- */
.dish2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: oklch(100% 0 0 / 0.95);
  border: 1px solid var(--aurora-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 3px oklch(28% 0.02 55 / 0.05), 0 10px 28px -6px oklch(28% 0.02 55 / 0.08);
  transition: transform var(--duration-settle) var(--ease-aurora),
              box-shadow var(--duration-settle) var(--ease-aurora),
              border-color var(--duration-settle) var(--ease-aurora);
}
.dish2:hover {
  transform: translateY(-4px);
  border-color: oklch(85% 0.08 55);
  box-shadow: 0 2px 4px oklch(28% 0.02 55 / 0.05), 0 24px 48px -8px oklch(62% 0.19 35 / 0.18);
}
.dish2:active { transform: translateY(-1px) scale(0.997); }

.dish2.is-unavailable { opacity: 0.55; cursor: not-allowed; }
.dish2.is-unavailable:hover { transform: none; }
.dish2.is-unavailable .dish2__media { filter: grayscale(0.7); }

.dish2__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, oklch(94% 0.02 75), oklch(89% 0.035 60));
}
.dish2__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-aurora);
}
.dish2:hover .dish2__media img { transform: scale(1.05); }
.dish2__media-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: oklch(100% 0 0 / 0.7);
}

.dish2__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: oklch(98.5% 0.006 85);
  z-index: 2;
}
.dish2__badge--special { background: oklch(58% 0.19 25); }
.dish2__badge--min {
  background: oklch(28% 0.02 55 / 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dish2__badge--special + .dish2__badge--min { top: 44px; }

.dish2__body {
  padding: 15px 17px 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dish2__name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--aurora-ink);
  margin: 0;
}
.dish2__desc {
  font-size: 13px;
  color: var(--aurora-ink-muted);
  line-height: 1.5;
  margin: 5px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish2__note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: oklch(58% 0.19 25);
}
.dish2__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dish2__price {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--aurora-action);
}
.dish2__price-was {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--aurora-ink-light);
  text-decoration: line-through;
  margin-right: 6px;
}
.dish2__add {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
  color: oklch(98.5% 0.006 85);
  background: var(--aurora-action);
  box-shadow: 0 2px 8px oklch(62% 0.19 35 / 0.35);
  transition: transform var(--duration-quick) var(--ease-aurora),
              background var(--duration-quick) var(--ease-aurora);
}
.dish2:hover .dish2__add {
  transform: scale(1.1);
  background: var(--aurora-action-hover);
}
.dish2:active .dish2__add { transform: scale(0.92); }
