/* ═══════════════════════════════════════════════════════════
   Guest ordering — photography led, full-bleed cards.
   Card treatment follows the reference template: image fills the
   frame, type sits on it, everything reveals on scroll.
   ═══════════════════════════════════════════════════════════ */

body{overflow:auto;height:auto;}

/* ══════════════════ HERO ══════════════════ */
.hero{
  position:relative;min-height:100svh;display:flex;flex-direction:column;
  justify-content:flex-end;padding:0 clamp(20px,5vw,56px) clamp(38px,7vh,72px);
  overflow:hidden;
}

.hero-media{position:absolute;inset:0;z-index:0;background:#08080A;}
.hero-poster,
.hero-video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
/* the still holds the frame until the loop is genuinely ready */
.hero-video{opacity:0;transition:opacity 1.1s var(--ease);}
.hero-video.playing{opacity:1;}

/* 35mm grain — stops the gradient from banding on cheap phone panels */
.hero-grain{
  position:absolute;inset:-120%;pointer-events:none;opacity:.16;
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/>\
</filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
  animation:grain 6s steps(6) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0);}      20%{transform:translate(-3%,2%);}
  40%{transform:translate(2%,-3%);}  60%{transform:translate(-2%,-2%);}
  80%{transform:translate(3%,1%);}   100%{transform:translate(0,0);}
}

/* Three stacked layers, none of which reference a theme colour: the hero is
   dark artwork in BOTH themes, so light mode must not bleed a pale gradient
   over it. Separation from the page below is a hard edge, not a fade. */
.hero-veil{
  position:absolute;inset:0;
  background:
    /* 1 — flat black wash, keeps type legible over any frame */
    linear-gradient(rgba(8,8,10,.46),rgba(8,8,10,.46)),
    /* 2 — top and bottom weighting for the nav and the headline */
    linear-gradient(180deg,rgba(6,6,8,.72) 0%,rgba(6,6,8,.10) 30%,
                    rgba(6,6,8,.34) 58%,rgba(6,6,8,.86) 100%),
    /* 3 — brand bloom */
    radial-gradient(115% 70% at 80% 14%,rgba(62,207,142,.13),transparent 60%);
}

/* the hard line the page starts on */
.hero::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:1px;z-index:3;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
  opacity:.55;
}

.hero-top{
  position:absolute;top:0;left:0;right:0;z-index:3;
  display:flex;align-items:center;gap:12px;
  padding:20px clamp(20px,5vw,56px);
}
/* brand mark — the real logo, white artwork with alpha */
.c-mark{display:flex;align-items:center;gap:11px;line-height:1;}
.c-mark img{width:34px;height:34px;object-fit:contain;}
.c-mark span{
  font-family:var(--display);font-size:1.06rem;font-weight:600;
  letter-spacing:.02em;text-transform:uppercase;color:#fff;
}
/* on light surfaces the white mark would vanish, so flip it to ink */
:root[data-theme="light"] .on-surface .c-mark img{filter:invert(1);}
:root[data-theme="light"] .on-surface .c-mark span{color:var(--fg);}

.hero-top .spacer{flex:1;}
/* the hero is dark in both themes, so these stay light-on-dark */
.hero-top .theme-btn{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.22);color:#fff;}
.hero-top .theme-btn:hover{background:rgba(255,255,255,.22);}

.hero-body{position:relative;z-index:2;max-width:940px;}

.hero-kicker{
  color:rgba(255,255,255,.6);margin-bottom:20px;display:flex;align-items:center;gap:11px;
  animation:rise .8s var(--ease) backwards;
}
.hero-kicker::before{
  content:'';width:34px;height:1px;background:var(--accent);flex:none;
}

/* each line masked, then wiped up — the template's reveal */
.hero-title{
  font-size:clamp(2.9rem,8.6vw,6.6rem);line-height:.92;letter-spacing:-.045em;color:#fff;
}
.hero-title .hl{display:block;overflow:hidden;}
.hero-title .hl i{
  display:block;font-style:normal;
  animation:wipe-up 1.15s var(--ease) backwards;
}
.hero-title .hl:nth-child(1) i{animation-delay:.10s;}
.hero-title .hl:nth-child(2) i{animation-delay:.22s;}
.hero-title em{font-style:normal;color:var(--accent);}
@keyframes wipe-up{from{transform:translateY(105%);}}

.hero-lede{
  margin-top:22px;max-width:44ch;color:rgba(255,255,255,.74);
  font-size:clamp(.95rem,1.9vw,1.12rem);line-height:1.62;
  animation:rise .9s .42s var(--ease) backwards;
}

.hero-meta{
  margin-top:28px;display:flex;flex-wrap:wrap;gap:9px;
  animation:rise .9s .56s var(--ease) backwards;
}
.hero-pill{
  padding:9px 16px;border-radius:100px;
  background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);color:rgba(255,255,255,.86);
  font-family:var(--mono);font-size:.58rem;font-weight:500;
  letter-spacing:.1em;text-transform:uppercase;
}
.hero-pill b{color:#fff;font-weight:700;}

.hero-scroll{
  position:absolute;right:clamp(20px,5vw,56px);bottom:clamp(38px,7vh,72px);z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  color:rgba(255,255,255,.6);
  animation:rise .9s .7s var(--ease) backwards;
}
.hero-scroll span{writing-mode:vertical-rl;letter-spacing:.16em;}
.hero-scroll i{
  width:1px;height:46px;background:rgba(255,255,255,.28);position:relative;overflow:hidden;
}
.hero-scroll i::after{
  content:'';position:absolute;inset:0;background:var(--accent);
  animation:trickle 2.1s var(--ease) infinite;
}
@keyframes trickle{
  0%{transform:translateY(-100%);} 60%,100%{transform:translateY(100%);}
}
@media (max-width:720px){ .hero-scroll{display:none;} }

@keyframes rise{from{opacity:0;transform:translateY(28px);}}

@media (prefers-reduced-motion:reduce){
  .hero-grain{animation:none;}
  .hero-scroll i::after{animation:none;}
}

/* ══════════════════ SORTING ══════════════════ */
.sortbar{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb,var(--bg) 90%,transparent);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
  scroll-margin-top:0;
}
.sortbar-inner{
  position:relative;max-width:1240px;margin:0 auto;
  padding:14px clamp(14px,3vw,18px);
  display:grid;grid-template-columns:minmax(180px,300px) 1fr auto;
  align-items:center;gap:14px;
}

.sort-search{
  display:flex;align-items:center;gap:10px;min-width:0;
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:100px;padding:11px 16px;
  transition:border-color var(--tap) var(--ease),background var(--tap) var(--ease);
}
.sort-search:focus-within{border-color:var(--accent);background:var(--surface);}
.sort-search svg{width:16px;height:16px;stroke:var(--fg-3);fill:none;stroke-width:1.9;flex:none;}
.sort-search input{flex:1;min-width:0;font-size:.9rem;}
.sort-search input::placeholder{color:var(--fg-3);}
.sort-clear{
  width:20px;height:20px;border-radius:50%;flex:none;
  display:grid;place-items:center;font-size:.58rem;
  background:var(--surface-3);color:var(--fg-2);
}
.sort-clear:hover{background:var(--danger);color:#fff;}

/* Category chips get the middle column and scroll on their own.
   No edge fade — it dimmed the first chip, which is the one people reach for. */
.sort-cats{
  display:flex;gap:7px;overflow-x:auto;min-width:0;
  scrollbar-width:none;
  padding:2px;                   /* room for the focus ring */
}
.sort-cats::-webkit-scrollbar{display:none;}
.sort-cats button{
  flex:none;padding:9px 15px;border-radius:100px;white-space:nowrap;
  border:1px solid var(--line);background:var(--surface-2);color:var(--fg-2);
  font-size:.8rem;font-weight:500;
  transition:all var(--tap) var(--ease);
}
.sort-cats button:hover{border-color:var(--line-2);color:var(--fg);}
.sort-cats button:active{transform:scale(.95);}
.sort-cats button.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent);}
.sort-cats button i{
  font-style:normal;opacity:.55;margin-left:6px;
  font-family:var(--mono);font-size:.62rem;
}

/* ── sort popover: a real menu, not an OS <select> ── */
.sort-trigger{
  display:flex;align-items:center;gap:9px;flex:none;
  padding:11px 15px;border-radius:100px;
  background:var(--surface-2);border:1px solid var(--line);color:var(--fg);
  font-size:.83rem;font-weight:500;
  transition:all var(--tap) var(--ease);
}
.sort-trigger:hover{border-color:var(--line-2);}
.sort-trigger.open{border-color:var(--accent);background:var(--surface);}
.sort-trigger svg{width:15px;height:15px;stroke:var(--fg-2);fill:none;
  stroke-width:1.9;stroke-linecap:round;flex:none;}
.sort-trigger i{
  width:0;height:0;flex:none;margin-left:2px;
  border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid var(--fg-3);
  transition:transform var(--tap) var(--ease);
}
.sort-trigger.open i{transform:rotate(180deg);}

.sort-menu{
  position:absolute;top:calc(100% - 6px);right:clamp(14px,3vw,18px);z-index:70;
  min-width:250px;padding:7px;border-radius:var(--r);
  background:var(--surface);border:1px solid var(--line-2);
  box-shadow:var(--shadow);
  opacity:0;transform:translateY(-8px) scale(.98);pointer-events:none;
  transition:opacity .2s var(--ease),transform .2s var(--ease);
}
.sort-menu.open{opacity:1;transform:none;pointer-events:auto;}
.sort-menu button{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  padding:11px 13px;border-radius:var(--r-sm);color:var(--fg);
  transition:background var(--tap) var(--ease);
}
.sort-menu button:hover{background:var(--surface-2);}
.sort-menu button span{flex:1;min-width:0;}
.sort-menu button b{display:block;font-size:.87rem;font-weight:600;}
.sort-menu button i{
  display:block;margin-top:2px;font-style:normal;
  font-size:.74rem;color:var(--fg-3);
}
.sort-menu button svg{
  width:16px;height:16px;flex:none;stroke:var(--accent);fill:none;
  stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0;
}
.sort-menu button.on{background:var(--accent-soft);}
.sort-menu button.on svg{opacity:1;}

/* ── active filters ── */
.sort-active{
  max-width:1240px;margin:0 auto;
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:0 clamp(14px,3vw,18px) 14px;
}
.sort-active .mono{color:var(--fg-3);}
.sort-active button{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 12px;border-radius:100px;
  background:var(--accent-soft);border:1px solid var(--accent-line);
  color:var(--accent);font-size:.78rem;font-weight:500;
  transition:all var(--tap) var(--ease);
}
.sort-active button i{font-style:normal;opacity:.7;font-size:.68rem;}
.sort-active button:hover{background:var(--accent);color:var(--accent-ink);}
.sort-active .clear-all{
  background:transparent;border-color:var(--line);color:var(--fg-3);
}
.sort-active .clear-all:hover{background:var(--surface-3);color:var(--fg);}

@media (max-width:860px){
  .sortbar-inner{grid-template-columns:1fr auto;gap:10px;padding:12px 14px;}
  .sort-cats{grid-column:1 / -1;order:3;}
  .sort-menu{left:14px;right:14px;min-width:0;}
  .sort-trigger span{display:none;}      /* icon + caret is enough at this width */
  .sort-trigger{padding:11px 13px;}
  .sort-active{padding:0 14px 12px;}
}

/* ══════ MENU ══════ */
.c-main{max-width:1240px;margin:0 auto;padding:38px 18px 140px;}

.c-sec{margin-bottom:58px;scroll-margin-top:78px;}
.c-sec-head{display:flex;align-items:center;gap:18px;margin-bottom:22px;}
.c-sec-head h2{font-size:clamp(1.7rem,4.6vw,2.5rem);letter-spacing:-.032em;}
.c-sec-head .rule{flex:1;height:1px;background:var(--line);}
.c-sec-head .mono{color:var(--fg-3);}

.c-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));}

/* ── the card: photo on top, everything readable underneath.
      Type over photography was pretty but fought every bright image. ── */
.c-card{
  position:relative;display:flex;flex-direction:column;text-align:left;width:100%;
  border-radius:var(--r-lg);overflow:hidden;
  background:var(--surface);border:1px solid var(--line);
  transition:transform .4s var(--ease),border-color .4s var(--ease),
             box-shadow .4s var(--ease);
}

.c-card-img{
  position:relative;aspect-ratio:4 / 3;overflow:hidden;
  background:var(--surface-2);flex:none;
}
.c-card-img img{
  width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.03);
  transition:opacity .6s var(--ease),transform .7s var(--ease);
}
.c-card-img img.ready{opacity:1;transform:scale(1);}

.c-kcal{
  position:absolute;top:10px;right:10px;z-index:2;
  padding:5px 9px;border-radius:100px;
  background:rgba(8,8,10,.6);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.16);color:#fff;
  font-family:var(--mono);font-size:.52rem;font-weight:500;letter-spacing:.08em;
}

.c-card-body{
  flex:1;padding:15px 16px 16px;display:flex;flex-direction:column;gap:6px;
}
.c-card h3{
  font-size:1.06rem;line-height:1.2;letter-spacing:-.022em;color:var(--fg);
}
.c-card .c-recipe{
  color:var(--fg-3);font-size:.79rem;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.c-card-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px;}
.c-meta-pill{
  padding:4px 9px;border-radius:100px;
  background:var(--surface-2);border:1px solid var(--line);
  color:var(--fg-3);font-family:var(--mono);font-size:.5rem;
  font-weight:500;letter-spacing:.08em;text-transform:uppercase;
}

.c-card-foot{
  display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:12px;
}
.c-price{
  display:flex;align-items:baseline;gap:5px;
  font-family:var(--display);font-size:1.2rem;font-weight:600;
  letter-spacing:-.028em;color:var(--fg);
}
.c-price small{
  font-family:var(--mono);font-size:.55rem;font-weight:400;
  letter-spacing:.09em;color:var(--fg-3);
}
.c-add{
  margin-left:auto;width:38px;height:38px;border-radius:50%;flex:none;
  background:var(--accent);color:var(--accent-ink);
  display:grid;place-items:center;
  transition:transform var(--tap) var(--ease),filter var(--tap) var(--ease);
}
.c-add svg{width:17px;height:17px;stroke:currentColor;fill:none;
  stroke-width:2.6;stroke-linecap:round;}
.c-add:active{transform:scale(.85);}

/* still used by the item panel header */
.c-tag{
  padding:5px 10px;border-radius:100px;
  background:rgba(8,8,9,.62);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.16);color:#fff;
  font-family:var(--mono);font-size:.53rem;font-weight:500;letter-spacing:.09em;
  text-transform:uppercase;
}

@media (hover:hover){
  .c-card:hover{transform:translateY(-4px);border-color:var(--accent-line);box-shadow:var(--shadow);}
  .c-card:hover .c-card-img img{transform:scale(1.06);}
  .c-add:hover{filter:brightness(1.08);}
}

/* The choice chips, .c-opt rows and .i-qty stepper live in app.css — both
   this page and the counter till use them, and duplicating them here once
   left the back office rendering bare unstyled text. */

/* required / optional flag on a question */
.i-block > .mono .req,
.i-block > .mono .opt{
  font-style:normal;margin-left:9px;padding:2px 7px;border-radius:100px;
  font-size:.52rem;letter-spacing:.09em;
}
.i-block > .mono .req{background:var(--accent-soft);color:var(--accent);}
.i-block > .mono .opt{background:var(--surface-3);color:var(--fg-3);}

/* scroll reveal */
.c-card{opacity:0;transform:translateY(26px);}
.c-card.in{opacity:1;transform:none;
  transition:opacity .7s var(--ease),transform .7s var(--ease),
             border-color .45s var(--ease),box-shadow .45s var(--ease);}
@media (prefers-reduced-motion:reduce){.c-card{opacity:1;transform:none;}}

/* ══════ BASKET BAR ══════ */
.c-bar{
  position:fixed;left:50%;bottom:20px;transform:translate(-50%,180%);
  z-index:200;width:min(560px,calc(100% - 32px));
  padding:12px 12px 12px 22px;border-radius:100px;
  background:var(--surface);border:1px solid var(--line-2);
  display:flex;align-items:center;gap:16px;
  box-shadow:var(--shadow);
  transition:transform .48s var(--ease);
}
.c-bar.up{transform:translate(-50%,0);}
.c-bar-info b{display:block;font-size:1.05rem;font-weight:600;font-variant-numeric:tabular-nums;}
.c-bar-info span{color:var(--fg-3);font-family:var(--mono);font-size:.55rem;letter-spacing:.1em;}
.c-bar .btn{margin-left:auto;}

/* ══════ SHEET ══════ */
.c-sheet-back{
  position:fixed;inset:0;z-index:300;background:var(--scrim);
  display:flex;align-items:flex-end;justify-content:center;
  backdrop-filter:blur(5px);animation:fade .26s var(--ease);
}
.c-sheet{
  width:100%;max-width:580px;max-height:92dvh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--line-2);border-bottom:none;
  border-radius:var(--r-xl) var(--r-xl) 0 0;
  padding:22px 22px calc(26px + env(safe-area-inset-bottom));
  animation:sheet-up .44s var(--ease);
}
@keyframes sheet-up{from{transform:translateY(100%);}}
.c-sheet-grip{width:40px;height:4px;border-radius:2px;background:var(--line-2);
  margin:-8px auto 18px;}
.c-sheet h3{font-size:1.4rem;}
.c-sheet > .mono{color:var(--fg-2);margin-top:4px;}
.c-sheet-body{margin:20px 0;display:flex;flex-direction:column;gap:14px;}

/* step 2 and 3 of checkout — a way back that does not look like Cancel */
.c-back{
  color:var(--fg-3);font:inherit;font-size:.82rem;margin-bottom:6px;
  padding:4px 0;align-self:flex-start;
}
.c-back:hover{color:var(--fg-2);}

/* review step: where it is going, and who is paying — plain fact rows, the
   same shape wherever the till and the reports print one. */
.c-review-where,.c-review-pay{
  display:flex;flex-direction:column;gap:2px;padding:12px 14px;
  background:var(--surface-2);border-radius:var(--r);
}
.c-review-where span,.c-review-pay span{color:var(--fg-3);}
.c-review-where b{font-size:1.02rem;}
.c-review-where i{color:var(--fg-3);font-style:normal;margin-top:2px;}
.c-review-note{color:var(--fg-3);line-height:1.7;}

/* basket lines */
.c-line{display:flex;gap:13px;align-items:flex-start;padding:13px 0;
  border-bottom:1px solid var(--line);}
.c-line:last-of-type{border-bottom:none;}
.c-line-shot{width:58px;height:58px;border-radius:var(--r-sm);flex:none;
  overflow:hidden;background:var(--surface-2);}
.c-line-shot img{width:100%;height:100%;object-fit:cover;}
.c-line-main{flex:1;min-width:0;}
.c-line-main b{font-size:.94rem;font-weight:600;line-height:1.3;display:block;}
.c-line-main .mono{color:var(--fg-3);margin-top:4px;}
.c-line-note{margin-top:4px;color:var(--warn);font-size:.74rem;}
.c-line-right{display:flex;flex-direction:column;align-items:flex-end;gap:9px;}
.c-line-total{font-family:var(--mono);font-size:.88rem;}

.c-qty{display:flex;align-items:center;gap:3px;background:var(--surface-2);
  border-radius:100px;padding:3px;border:1px solid var(--line);}
.c-qty button{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  font-size:1.05rem;line-height:1;color:var(--fg-2);}
.c-qty button:active{background:var(--surface-3);color:var(--fg);}
.c-qty b{min-width:20px;text-align:center;font-family:var(--mono);font-size:.78rem;}

/* ── how they want it: eaten in, collected, or delivered ── */
.c-types{display:flex;gap:9px;}
.c-types .c-opt{flex:1;justify-content:center;min-width:0;}
/* Three across is tight on a small phone; let them wrap rather than squash. */
@media (max-width:380px){
  .c-types{flex-wrap:wrap;}
  .c-types .c-opt{flex:1 1 46%;}
}
.c-deliv-note{
  color:var(--fg-3);line-height:1.7;margin-top:10px;
}
#addrWrap textarea{
  width:100%;resize:vertical;min-height:76px;font:inherit;line-height:1.6;
}
/* an address is long — let it wrap on the confirmation rather than clip */
.c-done-addr{
  display:block;line-height:1.5;word-break:break-word;
  font-size:1rem;margin-top:2px;
}

/* The phone field with its country code is defined in app.css — the guest
   types one at checkout and staff type one at the till, and admin.html (the
   back office) never loads this file. .c-opt lives there for the same reason. */

/* ══════ CONFIRMATION ══════ */
.c-done{text-align:center;padding:12px 0 4px;}
.c-tick{
  width:66px;height:66px;border-radius:50%;margin:0 auto 20px;
  background:var(--accent);display:grid;place-items:center;
  animation:pop .55s var(--ease) backwards;
}
@keyframes pop{from{transform:scale(0) rotate(-25deg);}}
.c-tick svg{width:31px;height:31px;stroke:var(--accent-ink);fill:none;stroke-width:2.8;
  stroke-linecap:round;stroke-linejoin:round;}
.c-done h3{font-size:1.6rem;}
.c-orderno{
  display:inline-block;margin:14px 0 6px;padding:9px 18px;border-radius:100px;
  background:var(--surface-2);border:1px solid var(--line);
  font-family:var(--mono);font-size:.88rem;letter-spacing:.08em;
}
.c-done p{color:var(--fg-2);font-size:.9rem;line-height:1.65;margin-top:16px;}
.c-done p b{color:var(--fg);}

/* where it is going — the thing the guest checks twice */
.c-done-where{
  margin-top:18px;padding:14px 18px;border-radius:var(--r);
  background:var(--accent-soft);border:1px solid var(--accent-line);
}
.c-done-where .mono{display:block;color:var(--accent);opacity:.85;}
.c-done-where b{
  display:block;margin-top:5px;font-family:var(--display);
  font-size:1.5rem;font-weight:600;letter-spacing:-.028em;color:var(--fg);
}

.c-done-total{
  margin-top:14px;padding:14px 18px;border-radius:var(--r);
  background:var(--surface-2);border:1px solid var(--line);
}
.c-done-total .mono{display:block;color:var(--fg-3);}
.c-done-total b{
  display:block;margin-top:5px;font-family:var(--display);
  font-size:1.4rem;font-weight:600;letter-spacing:-.028em;
}
.c-done-total em{
  display:block;margin-top:4px;font-style:normal;
  font-family:var(--mono);font-size:.56rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--fg-3);
}

/* the tax lines read quieter than the items they sit under */
.c-sheet .sums .sum span:first-child{color:var(--fg-2);}
.c-sheet .sums{
  padding:14px 16px;border-radius:var(--r);
  background:var(--surface-2);border:1px solid var(--line);
}
.c-sheet .sums .sum.total{border-top:none;padding-top:0;margin-top:0;}
.bill-note{
  margin-top:9px;padding-top:9px;border-top:1px solid var(--line);
  color:var(--fg-3);line-height:1.7;
}

/* ══════ FOOTER ══════ */
.c-foot{
  border-top:1px solid var(--line);padding:40px 20px 50px;text-align:center;
  color:var(--fg-3);
}
.c-foot .c-mark{justify-content:center;}
.c-foot .c-mark img{width:44px;height:44px;}
.c-foot p{margin-top:14px;line-height:1.9;}

/* ══════════════════ ITEM OVERLAY ══════════════════
   A frosted panel over the menu — never a navigation. Closing it puts the
   guest back exactly where they were, mid-scroll, with the basket intact. */
.i-back-drop{
  position:fixed;inset:0;z-index:400;
  background:rgba(6,6,8,.52);
  backdrop-filter:blur(16px) saturate(.9);
  -webkit-backdrop-filter:blur(16px) saturate(.9);
  display:grid;place-items:center;padding:20px;
  animation:fade .28s var(--ease);
  overscroll-behavior:contain;
}
:root[data-theme="light"] .i-back-drop{background:rgba(20,20,16,.34);}

.i-card{
  position:relative;width:100%;max-width:520px;max-height:88dvh;overflow-y:auto;
  border-radius:var(--r-xl);
  /* frosted, not solid — the menu stays faintly readable behind it */
  background:color-mix(in srgb,var(--surface) 82%,transparent);
  backdrop-filter:blur(26px) saturate(1.5);
  -webkit-backdrop-filter:blur(26px) saturate(1.5);
  border:1px solid color-mix(in srgb,var(--line-2) 70%,transparent);
  box-shadow:0 26px 70px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.07);
  animation:card-up .42s var(--ease);
  overscroll-behavior:contain;
}
@keyframes card-up{from{opacity:0;transform:translateY(24px) scale(.97);}}

.i-close{
  position:absolute;top:14px;right:14px;z-index:5;
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;font-size:.86rem;
  background:rgba(8,8,10,.5);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.18);color:#fff;
  transition:background var(--tap) var(--ease),transform var(--tap) var(--ease);
}
.i-close:hover{background:rgba(8,8,10,.74);}
.i-close:active{transform:scale(.88);}

.i-shot{
  position:relative;height:186px;background:var(--surface-2);overflow:hidden;
}
.i-shot img{width:100%;height:100%;object-fit:cover;opacity:0;
  transition:opacity .7s var(--ease);}
.i-shot img.ready{opacity:1;}
.i-shot::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 46%,rgba(6,6,8,.78));
}
.i-shot-body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:16px 18px;}
.i-shot-body .c-tag{position:static;display:inline-block;margin-bottom:9px;}
.i-shot h1{
  font-size:clamp(1.4rem,4.2vw,1.85rem);line-height:1.1;letter-spacing:-.028em;color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.45);
}

.i-body{padding:20px 18px 22px;}
.i-block{margin-bottom:20px;}
.i-block:last-child{margin-bottom:0;}
.i-block > .mono{color:var(--fg-3);margin-bottom:10px;display:block;}

.i-ings{display:flex;flex-wrap:wrap;gap:7px;}
.i-ing{
  padding:8px 13px;border-radius:100px;
  background:var(--surface-2);border:1px solid var(--line);
  font-size:.82rem;color:var(--fg-2);
}

.i-facts{display:flex;flex-wrap:wrap;gap:9px;}
.i-fact{
  flex:1;min-width:104px;
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:var(--r-sm);padding:13px 14px;
}
.i-fact .mono{color:var(--fg-3);font-size:.53rem;}
.i-fact b{display:block;margin-top:6px;font-family:var(--display);
  font-size:1.2rem;font-weight:600;letter-spacing:-.025em;}
.i-fact b small{font-size:.58rem;font-family:var(--mono);color:var(--fg-3);
  letter-spacing:.08em;margin-left:3px;font-weight:400;}

.i-opts{display:flex;flex-direction:column;gap:8px;}

/* order footer — sticks to the bottom of the panel while the body scrolls */
.i-order{
  position:sticky;bottom:0;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 92%,transparent);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  padding:16px 18px 18px;
}
.i-order-row{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.i-price{display:flex;align-items:baseline;gap:7px;}
.i-price b{font-family:var(--display);font-size:1.75rem;font-weight:600;letter-spacing:-.03em;}
.i-price span{font-family:var(--mono);font-size:.62rem;color:var(--fg-3);letter-spacing:.1em;}
/* .i-qty is defined in app.css; here it just sits to the right */
.i-order-row .i-qty{margin-left:auto;background:var(--surface);}
.i-cta{width:100%;}

.i-more{margin-top:4px;}
.i-more .c-grid{grid-template-columns:repeat(3,1fr);gap:9px;}
.i-more .c-card{aspect-ratio:3 / 4;border-radius:var(--r);}
.i-more .c-card h3{font-size:.82rem;line-height:1.2;}
.i-more .c-card .c-price{font-size:.8rem;}
.i-more .c-card-body{padding:11px;gap:5px;}
.i-more .c-card-foot{margin-top:2px;}

/* ══════════════════ MOBILE ══════════════════ */
@media (max-width:760px){
  /* svh so the hero is not cut off by the browser's own chrome */
  .hero{min-height:88svh;padding:0 18px 34px;}
  .hero-top{padding:16px 18px;}
  .c-mark img{width:30px;height:30px;}
  .c-mark span{font-size:.9rem;}
  .hero-kicker{margin-bottom:16px;}
  .hero-title{font-size:clamp(2.4rem,11vw,3.4rem);}
  .hero-lede{font-size:.92rem;margin-top:16px;}
  .hero-meta{margin-top:20px;gap:7px;}
  .hero-pill{padding:8px 13px;font-size:.52rem;}

  .c-main{padding:24px 14px 132px;}
  .c-sec{margin-bottom:38px;}
  .c-sec-head{gap:12px;margin-bottom:16px;}

  /* two across — one column is too much scrolling for an 82-item menu */
  .c-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .c-card-body{padding:11px 12px 12px;gap:4px;}
  .c-card h3{font-size:.92rem;}
  .c-card .c-recipe{font-size:.72rem;}
  .c-card-meta{display:none;}
  .c-card-foot{padding-top:9px;}
  .c-price{font-size:1rem;}
  .c-add{width:34px;height:34px;}
  .c-add svg{width:15px;height:15px;}
  .c-kcal{top:7px;right:7px;padding:4px 7px;font-size:.46rem;}

  .c-bar{
    left:14px;right:14px;bottom:14px;width:auto;
    transform:translateY(180%);padding:11px 11px 11px 18px;
  }
  .c-bar.up{transform:none;}
  .c-bar-info b{font-size:.98rem;}

  /* the item panel becomes a bottom sheet at this size */
  .i-back-drop{padding:0;align-items:flex-end;}
  .i-card{
    max-width:none;max-height:92svh;
    border-radius:var(--r-xl) var(--r-xl) 0 0;
    animation:card-rise .42s var(--ease);
  }
  @keyframes card-rise{from{transform:translateY(100%);}}
  .i-shot{height:158px;}
  .i-body{padding:18px 16px 20px;}
  .i-order{padding:14px 16px calc(16px + env(safe-area-inset-bottom));}
  .i-more .c-grid{grid-template-columns:repeat(3,1fr);gap:8px;}
  .i-more .c-card h3{font-size:.74rem;}
  .i-more .c-card .c-price{font-size:.72rem;}
  .chip-opt{padding:9px 13px;}

  .c-sheet{max-height:92svh;padding:20px 16px calc(24px + env(safe-area-inset-bottom));}
  .c-line-shot{width:50px;height:50px;}
  .c-foot{padding:30px 18px 40px;}
}

/* very small phones */
@media (max-width:380px){
  .c-grid{grid-template-columns:1fr;}
  .i-more .c-grid{grid-template-columns:repeat(2,1fr);}
}
