/* =========================================================
   Design 4 — "Swiggy light": design 2's layout on an off-white /
   beige page with Swiggy orange, white cards and rounded bold type.
   Videos sit as rounded tiles; text over video keeps a dark shade.
   ========================================================= */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f3ece2;
  --line: #ebe2d5;
  --text: #1d1a16;
  --text-soft: #4b453e;
  --muted: #847a6f;
  --hot: #fc8019;
  --hot-deep: #e8650a;
  --hot-tint: #fff0e3;
  --green: #1ba672;
  --red: #e8462c;
  /* Cart actions (ADD, stepper, cart pill, primary buttons): the deeper brand orange, which reads
     better with white text than --hot. For green actions use var(--green) / 27, 166, 114. */
  --action: var(--hot-deep);
  --action-rgb: 232, 101, 10;
  --on-hot: #ffffff;
  --grad: linear-gradient(100deg, #ff9f43 0%, var(--hot) 55%, var(--hot-deep) 100%);
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 6px 20px rgba(60, 35, 10, .08);
  --radius: 22px;
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --offset: 72px; /* sticky tab bar height, set by JS */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Landing ---------- */
/* Landing fits one phone screen: the hub keeps its natural height and the hero video takes what's left */
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* Compact video band with rounded bottom; brand sits on a dark fade over the video */
.hero-media {
  position: relative;
  flex: 1 0 0;
  min-height: 170px;
  max-height: 380px;
  overflow: hidden;
  background: #1d1a16;
  border-radius: 0 0 28px 28px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,.72) 100%);
}
.hero-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 0;
}
.mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--hot); color: var(--on-hot);
  box-shadow: 0 6px 20px rgba(252, 128, 25, .45);
}
.mark svg { width: 23px; height: 23px; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.status b { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.status span { color: var(--text-soft); }
.status.is-open::before { background: var(--green); box-shadow: 0 0 0 3px rgba(27,166,114,.2); animation: pulse 2s infinite; }
.status.is-open b { color: var(--green); }
@keyframes pulse { 50% { opacity: .45; } }

.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 1; color: #fff; }
.kicker {
  margin: 0 0 2px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #ffc28a;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.brand {
  margin: 0;
  font: 800 clamp(38px, 11vw, 54px)/1 var(--font-display);
  letter-spacing: -.025em;
  white-space: nowrap;
  text-shadow: 0 3px 24px rgba(0,0,0,.45);
}
.brand .amp { color: var(--hot); text-shadow: none; }
.tagline { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.86); text-shadow: 0 1px 10px rgba(0,0,0,.6); }

.hub { padding: 14px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }

/* Google review: one full-width row (icon · label · chevron) */
.review-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: background-color .15s;
}
.review-row:active { background: var(--hot-tint); }
@media (hover: hover) { .review-row:hover { background: var(--hot-tint); } }
.tile-icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--hot-tint); color: var(--hot);
}
.tile-label { flex: 1; font-weight: 800; font-size: 15px; line-height: 1.2; }
.tile-label small { display: block; margin-top: 2px; font-weight: 600; font-size: 12px; color: var(--muted); }
.review-row .stars { color: #f5a623; letter-spacing: 2px; }
.tile-go { color: var(--muted); }
.tile-go .icon { width: 18px; height: 18px; }

/* WiFi · Directions · Call: one equal column per tile, so dropping one (no phone set) leaves two */
.quick {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px;
}
.quick-tile {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-weight: 800; font-size: 13px; line-height: 1.2; text-align: center;
  transition: background-color .15s;
}
.quick-tile:active { background: var(--hot-tint); }
@media (hover: hover) { .quick-tile:hover { background: var(--hot-tint); } }

/* Menu button: last action before the socials, so it lands in the thumb zone */
.cta {
  position: relative;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px;
  padding: 0 10px 0 22px;
  border-radius: 20px;
  background: var(--hot);
  color: var(--on-hot);
  box-shadow: 0 10px 28px rgba(252, 128, 25, .35);
  transition: transform .15s, background-color .15s;
}
.cta:active { transform: scale(.98); background: var(--hot-deep); }
.cta-text { font: 800 20px/1.1 var(--font-display); letter-spacing: -.01em; }
.cta-text small { display: block; margin-top: 3px; font: 600 13px/1.2 var(--font-body); letter-spacing: 0; color: rgba(255,255,255,.88); }
.cta-arrow {
  width: 48px; height: 48px; border-radius: 15px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.22); color: #fff;
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateX(4px); } }
/* Two rings ripple out from the button every few seconds to draw the eye */
.cta::before, .cta::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  animation: ripple 3.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.cta::after { animation-delay: .45s; }
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(252, 128, 25, .6); }
  40%, 100% { box-shadow: 0 0 0 16px rgba(252, 128, 25, 0); }
}

.socials { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: color .15s, border-color .15s;
}
.socials a:active, .socials a:hover { color: var(--hot); border-color: var(--hot); }
.socials .icon { width: 20px; height: 20px; } /* same box for every brand glyph */
.fineprint { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
/* "Made by NexWebLab" credit (landing + menu footer): brand orange, the deeper shade for legibility on beige */
.fineprint a, .menu-footer p a { color: var(--hot-deep); font-weight: 700; }
.fineprint a:hover, .menu-footer p a:hover { text-decoration: underline; }

/* ---------- WiFi sheet ---------- */
.sheet {
  width: 100%; max-width: 480px;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--surface); color: var(--text);
  box-shadow: 0 -10px 40px rgba(60,35,10,.18);
}
.sheet::backdrop { background: rgba(29,26,22,.45); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .3s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (min-width: 560px) { .sheet { margin: auto; border-radius: 26px; } }
.sheet-inner { padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet h2 { margin: 0 0 4px; text-align: center; font: 800 26px/1.15 var(--font-display); letter-spacing: -.02em; }
.sheet .sub { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: 14px; }
.field {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 10px;
  border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
}
.field > div { flex: 1; min-width: 0; }
.field .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field .v { font: 700 17px/1.4 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.copy-btn { padding: 9px 16px; border-radius: 12px; background: var(--hot); color: var(--on-hot); font-weight: 800; font-size: 14px; }
.qr-wrap { display: grid; place-items: center; margin: 18px 0 6px; }
.qr { padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.qr img, .qr canvas { width: 168px; height: 168px; }
.hint { margin: 8px 0 16px; text-align: center; color: var(--muted); font-size: 13px; }
.close-btn { width: 100%; padding: 15px; border-radius: 16px; background: var(--surface-2); font-weight: 800; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: #fff;
  font-size: 14px; font-weight: 800;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Menu: edge-to-edge icon tab bar ---------- */
.tabs {
  position: sticky; top: 0; z-index: 30;
  margin: 0;
  padding-top: env(safe-area-inset-top);
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(60,35,10,.05);
}
.tabs-track {
  position: relative;
  display: flex;
  max-width: 760px; margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.tabs-track::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 12px 11px;
  scroll-snap-align: center;
  color: var(--muted);
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
  transition: color .2s;
}
.tab .icon { width: 26px; height: 26px; transition: color .2s, transform .25s cubic-bezier(.3,1.6,.5,1); }
.tab[aria-current="true"] { color: var(--text); font-weight: 800; }
.tab[aria-current="true"] .icon { color: var(--hot); transform: translateY(-1px) scale(1.12); }
.tab-home { color: var(--text); }
.tab-sep { flex: none; width: 1px; margin: 14px 2px; background: var(--line); }
.tab-ink {
  position: absolute; left: 0; bottom: 0;
  height: 3px; width: 0;
  border-radius: 3px 3px 0 0;
  background: var(--hot);
  transition: transform .35s cubic-bezier(.3,.9,.3,1), width .35s cubic-bezier(.3,.9,.3,1);
  pointer-events: none;
}

.menu { max-width: 560px; margin: 0 auto; padding-bottom: 40px; }

.intro { padding: 24px var(--gutter) 4px; }
.intro .kicker { margin-bottom: 4px; color: var(--hot); text-shadow: none; }
.intro h1 { margin: 0; font: 800 44px/1 var(--font-display); letter-spacing: -.03em; }
.intro p { margin: 8px 0 0; color: var(--muted); }

/* Chef's picks reel strip */
.picks { padding: 22px 0 6px; }
.picks-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter) 12px; }
.picks-head h2 { margin: 0; font: 800 21px/1.1 var(--font-display); letter-spacing: -.02em; }
.picks-head span { color: var(--muted); font-size: 12px; font-weight: 700; }
.picks .swiper { padding: 0 var(--gutter) 10px; }
.pick { width: 148px; }
.pick a { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.pick video, .pick img { width: 100%; height: 100%; object-fit: cover; }
.pick video { background-size: cover; background-position: center; }
.pick a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), transparent 55%); }
.pick-label { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; }
.pick-label strong { display: block; font: 700 15px/1.15 var(--font-display); }
.pick-label span {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--hot); color: #fff; font-size: 12px; font-weight: 800;
}

/* Suggestion rails (between categories) */
.rail {
  margin-top: 36px;
  padding: 18px 0 20px;
  background: var(--hot-tint);
  border-top: 1px solid #fde0c6;
  border-bottom: 1px solid #fde0c6;
}
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--gutter) 14px; }
.rail-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hot-deep); }
.rail-head h2 { margin: 2px 0 0; font: 800 22px/1.1 var(--font-display); letter-spacing: -.02em; }
.rail-hint { flex: none; color: var(--muted); font-size: 12px; font-weight: 700; }
.rail .swiper { padding: 0 var(--gutter) 6px; }
.rail-card { width: 144px; }
.rail-card a { display: block; padding: 8px 8px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.rail-img { display: block; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--surface-2); }
.rail-img img { width: 100%; height: 100%; object-fit: cover; }
.rail-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.5em; margin-top: 8px;
  font-size: 14px; font-weight: 800; line-height: 1.25;
}
.rail-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rail-meta b { color: var(--text); font-weight: 800; font-size: 14px; }
.vn-mark { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; flex: none; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); vertical-align: middle; }
.vn-mark.veg { border: 1.5px solid #1fa44c; }
.vn-mark.veg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1fa44c; }
.vn-mark.nonveg { border: 1.5px solid #c1121f; }
.vn-mark.nonveg::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c1121f; }
.rail-go {
  margin-left: auto;
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--hot); color: #fff;
}
.rail-go .icon { width: 15px; height: 15px; }

/* Category */
.cat-section { scroll-margin-top: var(--offset); padding-top: 34px; }
.cat-head { position: relative; padding: 0 var(--gutter) 14px; }
.cat-head .num { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.cat-head h2 {
  margin: 2px 0 0;
  display: flex; align-items: center; gap: 10px;
  font: 800 32px/1.05 var(--font-display); letter-spacing: -.025em;
}
.cat-head h2 .icon { width: 30px; height: 30px; color: var(--hot); }
.cat-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Dish card: rounded video tile + white info panel */
.dishes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 var(--gutter); }
.dish {
  min-width: 0;
  scroll-margin-top: calc(var(--offset) + 12px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 16px;
}
.media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.media .swiper { height: 100%; }
.media .swiper-slide { position: relative; height: 100%; }
.media .swiper-slide img, .media .swiper-slide video { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.media .swiper-slide video { pointer-events: none; -webkit-touch-callout: none; background-size: cover; background-position: center; }
.media-shade {
  position: absolute; inset: auto 0 0 0; height: 42%; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35) 50%, transparent);
  pointer-events: none;
}
.media-title {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; z-index: 2;
  display: flex; align-items: flex-end; gap: 12px;
  color: #fff;
  pointer-events: none;
}
.media-title h3 { flex: 1; margin: 0; font: 800 28px/1.05 var(--font-display); letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.media-title h3 .vn-mark { width: 16px; height: 16px; margin-right: 7px; }
.media-title h3 .vn-mark::after { width: 7px; height: 7px; }
.media-title .price {
  flex: none;
  padding: 7px 13px; border-radius: 12px;
  background: var(--hot); color: var(--on-hot);
  font: 800 18px/1 var(--font-display);
  box-shadow: 0 4px 14px rgba(252,128,25,.4);
}
.flag, .media-count {
  position: absolute; top: 14px; z-index: 2;
  padding: 6px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none;
}
.flag { left: var(--gutter); background: var(--hot); color: #fff; box-shadow: 0 3px 10px rgba(252,128,25,.4); }
.media-count {
  right: var(--gutter);
  background: rgba(255,255,255,.92); color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

.nav-arrow {
  position: absolute; top: 45%; z-index: 3; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: none; place-items: center;
  background: rgba(255,255,255,.95); color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.nav-arrow.prev { left: 12px; }
.nav-arrow.next { right: 12px; }
@media (hover: hover) and (pointer: fine) {
  .media:hover .nav-arrow { display: grid; }
  .media:hover .nav-arrow.swiper-button-disabled { display: none; }
}

/* Instagram-style dots under the reel */
.ig-dots {
  --swiper-pagination-bullet-size: 6px;
  --swiper-pagination-bullet-horizontal-gap: 2px;
  --swiper-pagination-bullet-inactive-color: var(--text);
  --swiper-pagination-bullet-inactive-opacity: .2;
  --swiper-pagination-color: var(--hot);
  position: relative; left: 50%; transform: translateX(-50%);
  height: 6px; margin: 12px 0 0;
  white-space: nowrap; line-height: 0; text-align: center;
}
.ig-dots .swiper-pagination-bullet { transition: transform .2s, left .2s, background-color .2s, opacity .2s; }

.dish-info { padding: 8px var(--gutter) 0; }
.dish-info p { margin: 0; color: var(--text-soft); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.tag {
  padding: 4px 10px; border-radius: 8px;
  background: var(--surface-2);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.tag.veg { color: var(--green); background: rgba(27,166,114,.1); }
.tag.spicy { color: var(--red); background: rgba(232,70,44,.1); }
.tag.chef { color: var(--hot-deep); background: var(--hot-tint); }

.menu-footer {
  max-width: 560px; margin: 0 auto;
  padding: 20px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); font-size: 13px;
}
.menu-footer p { margin: 6px 0; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 12px 20px;
  border-radius: 14px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 800; font-size: 14px;
}

/* ---------- Cart: ADD button / stepper ---------- */
.dish-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.dish-meta { color: var(--muted); font-size: 13px; font-weight: 600; }
.dish-meta b { color: var(--text-soft); font-weight: 800; letter-spacing: .04em; }
.buy-ctl { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.custom-note { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .02em; }

.add-ctl { width: 104px; height: 40px; }
.add-ctl.sm { width: 76px; height: 32px; }
.add-btn {
  width: 100%; height: 100%;
  border-radius: 11px;
  background: var(--surface); color: var(--action);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(60,35,10,.08);
  font-weight: 800; font-size: 15px; letter-spacing: .04em;
}
.add-ctl.sm .add-btn { font-size: 13px; border-radius: 9px; }
.stepper {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: 100%; height: 100%;
  border-radius: 11px;
  background: var(--action); color: #fff;
  box-shadow: 0 3px 10px rgba(var(--action-rgb), .3);
  font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums;
}
.stepper button { height: 100%; font-size: 20px; line-height: 1; }
.stepper button:disabled { opacity: .4; }
.stepper .qty { min-width: 18px; text-align: center; }
.add-ctl.sm .stepper, .stepper.sm { border-radius: 9px; font-size: 14px; }
.add-ctl.sm .stepper button, .stepper.sm button { font-size: 17px; }
.stepper.sm { width: 92px; height: 32px; }
.stepper-lg { flex: none; width: 116px; height: 50px; border-radius: 14px; }

/* "Goes well with" row under the dish just added, and in the cart */
.pairs {
  margin: 16px var(--gutter) 0; padding-top: 14px; border-top: 1px dashed var(--line); animation: pairs-in .28s ease-out;
  scroll-margin: calc(var(--offset) + 8px) 0 calc(96px + env(safe-area-inset-bottom)); /* clear of tabs + cart pill */
}
@keyframes pairs-in { from { opacity: 0; transform: translateY(-6px); } }
.pairs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 800; font-size: 14px; }
.pairs-row {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding-inline: var(--gutter); /* snap tiles to the padding, not the edge */
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px;
}
.pairs-row::-webkit-scrollbar { display: none; }
.pair { flex: none; width: 112px; scroll-snap-align: start; }
.pair-media { position: relative; margin-bottom: 20px; }
.pair-media img { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.pair-media .add-ctl { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); }
.pair-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1.25; }
.pair-name .vn-mark { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
/* Names that wrap: second line lines up with the text, not with the veg / non-veg mark (hanging indent = mark + gap) */
.pair-name:has(> .vn-mark) { padding-left: 16px; text-indent: -16px; }
.cl-main b:has(> .vn-mark), .sr-text b:has(> .vn-mark), .ro-lines b:has(> .vn-mark) { padding-left: 20px; text-indent: -20px; }
.pair-name .vn-mark::after { width: 5px; height: 5px; }
.pair-details { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.pair-price { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.pair-price small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }

.icon-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .icon { width: 15px; height: 15px; }

/* ---------- Floating cart pill ---------- */
.cart-pill {
  /* Centred with left/right + auto margins (not left: 50%, which caps the width at half the screen) */
  position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px); margin: 0 auto;
  padding: 7px 8px 7px 8px;
  border-radius: 999px;
  background: var(--action); color: #fff;
  box-shadow: 0 10px 28px rgba(var(--action-rgb), .4), 0 2px 6px rgba(0,0,0,.12);
  transform: translateY(calc(100% + 30px));
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.cart-pill.show { transform: none; }
.cart-pill[hidden] { display: none; }
.pill-thumbs { flex: none; display: flex; }
.pill-thumbs img { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: var(--surface-2); }
.pill-thumbs img + img { margin-left: -16px; }
.pill-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding-right: 4px; line-height: 1.2; white-space: nowrap; }
.pill-text b, .pill-text small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill-text b { font: 800 16px/1.2 var(--font-display); }
.pill-text small { font-size: 12px; font-weight: 700; opacity: .92; font-variant-numeric: tabular-nums; }
.pill-go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.pill-go .icon { width: 18px; height: 18px; }
.has-cart .menu-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ---------- Overlays (sheet + full-screen pages) ---------- */
html.ov-open { overflow: hidden; }
/* Keep toasts clear of the cart pill and of overlay footer buttons */
.toast { max-width: calc(100% - 48px); text-align: center; }
.has-cart .toast, .ov-open .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.ov { position: fixed; inset: 0; z-index: 50; }
.ov-backdrop { position: absolute; inset: 0; background: rgba(29,26,22,.5); opacity: 0; transition: opacity .25s; }
.ov.open .ov-backdrop { opacity: 1; }

.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 560px; max-height: 88vh; max-height: 88svh; margin: 0 auto;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(60,35,10,.2);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  outline: none;
}
.ov.open .sheet-panel { transform: none; }
.opt-form { display: contents; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px var(--gutter) 14px; border-bottom: 1px solid var(--line); }
.sheet-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h2 { margin: 0; font: 800 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.sheet-title .vn-mark { margin-right: 6px; vertical-align: 1px; }
.sheet-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 12px; }
.opt-group { border: 0; margin: 16px 0 0; padding: 0; }
.opt-group legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 800; font-size: 15px; }
.opt-group .req { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--action); }
.opt-name { flex: 1; font-weight: 600; font-size: 15px; }
.opt-price { color: var(--text-soft); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.sheet-foot { display: flex; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.primary-btn, .ghost-btn {
  flex: 1; min-height: 50px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; font-weight: 800; font-size: 16px;
}
.primary-btn { background: var(--action); color: #fff; box-shadow: 0 6px 18px rgba(var(--action-rgb), .3); }
.primary-btn:active { transform: scale(.98); }
.ghost-btn { border: 1.5px solid var(--line); background: var(--surface); }
.repeat-card { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.repeat-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.repeat-card div { flex: 1; min-width: 0; }
.repeat-card b { display: block; font-size: 15px; }
.repeat-card small { color: var(--muted); font-size: 13px; font-weight: 600; }

.page-panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  outline: none;
}
.ov.open .page-panel { transform: none; }
.page-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.page-head h2 { margin: 0; font: 800 20px/1.2 var(--font-display); letter-spacing: -.01em; }
.page-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 24px; }
.page-foot {
  display: flex; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(60,35,10,.06);
}
.page-body > *, .page-foot > * { max-width: 560px; }
.page-body > * { margin-left: auto; margin-right: auto; }
.page-foot { justify-content: center; }
.page-foot > .primary-btn:only-child { max-width: 528px; }
.btn-sum { padding: 4px 10px; border-radius: 9px; background: rgba(255,255,255,.2); font-variant-numeric: tabular-nums; }

/* ---------- Cart page ---------- */
.cart-lines, .ro-lines { list-style: none; margin: 0 auto; padding: 4px 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.cart-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cl-main { display: flex; gap: 12px; min-width: 0; }
.cl-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.cl-main b .vn-mark { margin-right: 6px; vertical-align: 1px; }
.cl-main b, .ro-lines b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.cl-main small, .ro-lines small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cl-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-price { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart-sugg h3 { margin: 24px auto 12px; font: 800 17px/1.2 var(--font-display); }
.cart-sugg .pairs-row { margin: 0 calc(-1 * var(--gutter)); }
.table-field {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding: 12px 14px;
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 800; font-size: 15px;
}
.table-field small { color: var(--muted); font-weight: 600; }
.table-field input {
  width: 92px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  font: 700 16px/1.2 var(--font-body); text-align: center; color: var(--text); /* 16px: no iOS zoom on focus */
}
.table-field input:focus { outline: 2px solid var(--action); border-color: transparent; }
.cart-empty { padding: 72px 12px; text-align: center; color: var(--muted); }
.cart-empty-title { margin: 0 0 6px; color: var(--text); font: 800 22px/1.2 var(--font-display); }

/* ---------- Search ---------- */
.tab-search { color: var(--text); }
.page-foot[hidden] { display: none; }
.search-head { gap: 10px; }
.search-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 12px;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.search-field:focus-within { border-color: var(--action); }
.search-field > .icon { width: 20px; height: 20px; color: var(--muted); }
.search-field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  font: 600 16px/1.2 var(--font-body); color: var(--text); /* 16px: no iOS zoom on focus */
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search-clear .icon { width: 16px; height: 16px; }
.search-label { margin: 2px auto 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chip:active { border-color: var(--action); color: var(--action); }
.search-results { list-style: none; margin: 0 auto; padding: 4px 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.sr { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sr:last-child { border-bottom: 0; }
.sr-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.sr-text { min-width: 0; display: flex; flex-direction: column; }
.sr-text b { font-size: 15px; font-weight: 800; line-height: 1.3; }
.sr-text b .vn-mark { margin-right: 6px; vertical-align: 1px; }
.sr-text small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sr-price { margin-top: 2px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.search-empty { padding: 28px 0 14px; text-align: center; color: var(--muted); }
.search-cart { justify-content: space-between; }

/* ---------- Waiter QR + read-only order ---------- */
.qr-card { margin-bottom: 16px; padding: 22px 16px 18px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.qr-box { width: 240px; height: 240px; margin: 0 auto; display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 240px; height: 240px; }
.qr-fail { margin: 0; color: var(--muted); font-size: 14px; }
.order-id { margin: 14px 0 0; font-size: 17px; font-weight: 700; }
.order-id b { font-weight: 800; letter-spacing: .06em; color: var(--hot-deep); }
.qr-card .hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.ro-lines li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ro-lines li:last-child { border-bottom: 0; }
.ro-lines li > div { flex: 1; min-width: 0; }
.ro-lines li > span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.ro-qty { flex: none; min-width: 30px; font-weight: 800; color: var(--hot-deep); }
.ro-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.ro-lines .ro-total { font-size: 17px; }
.ro-lines .ro-total b:first-of-type { flex: 1; }
.ro-lines .ro-total b:last-child { font-variant-numeric: tabular-nums; }
.ro-code { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ro-unknown b { color: var(--red); }
.ro-lines .vn-mark { margin-right: 6px; vertical-align: 1px; }
.load-error { margin: 40px var(--gutter); padding: 16px; border-radius: 16px; background: var(--surface); text-align: center; color: var(--text-soft); font-weight: 600; }

/* index.html#<order>: waiter view replaces the landing page */
.order-view { display: none; }
.order-mode .page { display: none; }
.order-mode .order-view { display: block; max-width: 560px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) var(--gutter) 40px; }
.ov-brand { display: flex; align-items: center; gap: 10px; font: 800 17px/1 var(--font-display); }
.ov-brand .mark { width: 36px; height: 36px; border-radius: 11px; }
.ov-brand .mark svg { width: 20px; height: 20px; }
.ov-title { margin: 22px 0 2px; font: 800 34px/1.05 var(--font-display); letter-spacing: -.02em; }
.ov-title span { color: var(--hot-deep); letter-spacing: .02em; }
.ov-meta { margin: 0 0 16px; color: var(--muted); font-weight: 600; }
.ov-meta b { color: var(--text); }
.ov-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

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