/* =========================================================
   Online ordering — customer menu
   Food-delivery-app style: white surfaces, bold red accent.
   Mobile (<768) · Tablet (768–1023) · Desktop (≥1024)
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f5;
  --line: #ebebee;
  --text: #1c1c1f;
  --text-2: #55555c;
  --text-3: #8e8e95;
  --brand: #e5202e;
  --brand-2: #c4121e;
  --brand-soft: #fdecee;
  --ink: #1c1c1f;
  --green: #14a44d;
  --green-soft: #e3f6ea;
  --blue: #2563c9;
  --blue-soft: #e7effc;
  --amber-soft: #fff4dd;
  --red: #d92d20;
  --red-soft: #fdecea;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(16, 16, 20, .06);
  --shadow-2: 0 6px 22px rgba(16, 16, 20, .08);
  --shadow-3: 0 18px 50px rgba(16, 16, 20, .22);
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
  --topnav-h: 72px;
}

/* Always a white, light page (no automatic dark mode). */
:root { color-scheme: light; }

/* ---------- Base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[v-cloak] { display: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
img { display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.noscript { padding: 24px; text-align: center; }
.app { min-height: 100vh; }
.link { color: var(--brand); font-weight: 600; font-size: 13.5px; }
.clear-x { color: var(--text-3); font-size: 16px; padding: 4px; }

.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
  background: linear-gradient(135deg, hsl(var(--h, 10), 70%, 62%), hsl(calc(var(--h, 10) + 30), 65%, 45%));
}

.screen { padding-bottom: calc(var(--tabbar-h) + 90px + var(--safe-bottom)); }
.screen-cart { padding-bottom: calc(110px + var(--safe-bottom)); }
.screen-track { padding-bottom: calc(28px + var(--safe-bottom)); }

/* Hidden until their breakpoint */
.topnav, .promo-strip, .sidebar { display: none; }

/* ---------- Mobile header ---------- */
.m-loc {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-top)) 16px 6px;
  background: var(--surface);
}
.m-loc-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; }
.m-loc-btn > .bi { color: var(--brand); font-size: 22px; }
.m-loc-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.m-loc-text small { color: var(--text-3); font-size: 12px; font-weight: 500; }
.m-loc-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-loc-text strong .bi { font-size: 11px; color: var(--brand); }
.m-loc-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 16px; }
.m-loc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.m-loc-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

.m-sticky {
  position: sticky; top: 0; z-index: 30;
  padding: 8px 16px 10px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.m-search-row { display: flex; gap: 10px; }
.m-search {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-3);
}
.m-search input, .topnav-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text);
}
.m-search input::-webkit-search-cancel-button, .topnav-search input::-webkit-search-cancel-button { display: none; }
.m-heart {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--line);
  color: var(--brand);
  font-size: 19px;
}
.m-heart.on { background: var(--brand-soft); box-shadow: none; }

.chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
}
.chip .bi { font-size: 13px; }
.chip.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.chip-count {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  display: inline-grid; place-items: center;
}

/* ---------- Content ---------- */
.content { padding: 14px 16px 0; min-width: 0; }
.block { margin-top: 22px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.block-head h2 .bi { color: var(--brand); }
.block-count { color: var(--text-3); font-size: 13px; }

/* Quick-pick tiles */
.tiles { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tile-media {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 14px;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(145deg, hsl(var(--h, 10), 78%, 58%), hsl(calc(var(--h, 10) + 25), 72%, 44%));
  color: #fff;
  font-size: 26px;
  box-shadow: var(--shadow-1);
}
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent 55%); }
.tile-label-on {
  position: absolute; top: 6px; left: 6px; right: 6px;
  z-index: 1;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.tile-name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; color: var(--text-2); }

/* Banners */
.banners {
  display: flex;
  gap: 12px;
  margin: 18px -16px 0;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}
.banners::-webkit-scrollbar { display: none; }
.banner {
  position: relative;
  flex: none;
  width: 100%;
  min-height: 132px;
  padding: 18px 20px;
  border-radius: 16px;
  display: flex; align-items: center;
  scroll-snap-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, #e5202e, #ff6a3d);
}
.banner-1 { background: linear-gradient(120deg, #1c1c1f, #48484f); }
.banner-2 { background: linear-gradient(120deg, #14a44d, #0d7a78); }
.banner-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; max-width: 72%; }
.banner-text small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.banner-text strong { font-size: 20px; font-weight: 800; line-height: 1.15; }
.banner-text span { font-size: 13px; opacity: .9; }
.banner-icon { position: absolute; right: -6px; bottom: -14px; font-size: 104px; opacity: .2; }
.banner-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.banner-dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .25s, background .25s; }
.banner-dots span.on { width: 18px; background: var(--brand); }

/* Live order */
.live-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 14px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.live-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 19px; }
.live-card.is-preparing .live-icon { background: var(--brand); }
.live-card.is-pending .live-icon .bi { animation: pulse 1.6s ease-in-out infinite; }
.live-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-text small { color: rgba(255, 255, 255, .65); font-size: 12.5px; }
.live-bar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.live-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ff9a8f, var(--brand)); transition: width .6s ease; }

/* Horizontal scroller (featured) */
.h-scroll { display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .dish-card { flex: none; width: 220px; scroll-snap-align: start; }
.h-scroll .dish-card .dish-media { aspect-ratio: 16 / 10; }

/* Carousel (featured, categories): swipe on touch, arrows and dots everywhere */
.carousel-track { scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 6px; flex: none; }
.carousel-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  transition: background .15s, color .15s, transform .15s;
}
.carousel-nav button:hover { background: var(--brand); color: #fff; }
.carousel-nav button:active { transform: scale(.92); }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.carousel-dots button { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .25s, background .25s; }
.carousel-dots button.on { width: 18px; background: var(--brand); }

/* Dish card */
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dish-card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.dish-card:active { transform: scale(.99); }
.dish-card.in-bag { box-shadow: 0 0 0 1.5px var(--brand); }
/* Image is pinned to the frame so square photos cannot stretch the 4:3 ratio. */
.dish-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.dish-media img, .dish-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.dish-media img { object-fit: cover; transition: transform .35s ease; }
.dish-media .ph { font-size: 26px; }
.dish-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.fav-btn {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92);
  color: #55555c;
  font-size: 13px;
  box-shadow: var(--shadow-1);
}
.fav-btn.on { color: var(--brand); }
.dish-add {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  color: var(--brand);
  font-size: 17px;
  box-shadow: var(--shadow-2);
  transition: transform .15s, background .15s, color .15s;
}
.dish-add:hover { background: var(--brand); color: #fff; }
.dish-add:active { transform: scale(.9); }
.dish-stepper {
  position: absolute; right: 8px; bottom: 8px;
  display: flex; align-items: center;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-2);
}
.dish-stepper button { width: 30px; height: 100%; color: inherit; font-size: 13px; display: grid; place-items: center; }
.dish-stepper span { min-width: 16px; text-align: center; font-weight: 800; font-size: 13px; }
.dish-body { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px 11px; }
.dish-body h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-body p { margin: 0; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.dish-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.dish-price small { font-weight: 500; font-size: 11.5px; color: var(--text-3); }
.dish-cat { display: none; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-bag-tag { align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700; }

/* Order again */
.again-grid { display: grid; gap: 10px; }
.again {
  display: flex; gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
}
.again-media { width: 76px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.again-media img { width: 100%; height: 100%; object-fit: cover; }
.again-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.again-info strong { font-size: 14.5px; }
.again-info small { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.again-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-weight: 700; font-size: 14px; }
.again-foot .link { display: inline-flex; align-items: center; gap: 5px; }

/* Category circles */
.circles { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 2px; }
.circles::-webkit-scrollbar { display: none; }
.circles.carousel-track { scroll-padding: 0 4px; }
.circle { flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 72px; font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: center; }
.circle-media {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h), 70%, 62%), hsl(calc(var(--h) + 30), 65%, 45%));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}
.circle-media img { width: 100%; height: 100%; object-fit: cover; }
.circle:hover .circle-media { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand); }

/* Results */
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.results-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.results-head h2 span { font-weight: 500; color: var(--text-3); }
.active-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.active-tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 4px 4px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}
.active-tag button { width: 22px; height: 22px; border-radius: 50%; color: inherit; font-size: 15px; display: grid; place-items: center; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 40px 24px; color: var(--text-2); }
.empty.full { padding-top: 12vh; }
.empty h3 { margin: 16px 0 6px; font-size: 18px; color: var(--text); }
.empty p { margin: 0 auto 20px; max-width: 300px; font-size: 14px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); font-size: 26px; }
.empty-icon.big { width: 92px; height: 92px; font-size: 38px; background: var(--brand-soft); color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s, background .15s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.outline { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { color: var(--red); }
.btn.grow { flex: 1; }
.spinner { width: 17px; height: 17px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- Floating bag & bottom tabs ---------- */
.cart-float {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 10px + var(--safe-bottom));
  z-index: 40;
  width: min(calc(100% - 24px), 560px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  height: 56px;
  padding: 0 18px 0 10px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(229, 32, 46, .35);
  font-weight: 700;
}
.cart-float.bump { animation: bump .35s ease; }
.cart-float-count { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .18); display: grid; place-items: center; }
.cart-float-label { flex: 1; text-align: left; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabbar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.tabbar > button .bi { font-size: 20px; line-height: 1; }
.tabbar > button.active { color: var(--brand); }
.tab-icon { position: relative; display: inline-flex; }
.tab-badge {
  position: absolute; top: -6px; right: -12px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.tab-badge.bump { animation: badge-bump .35s ease; }
.tab-dot { position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Screen app bar (checkout, orders, tracking) ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 10px 0;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.appbar-title { flex: 1; margin: 0; text-align: center; font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 19px; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn.soft { background: var(--surface-2); width: 36px; height: 36px; font-size: 15px; }
.icon-btn.spinning .bi { animation: spin .8s linear infinite; }
.icon-btn-spacer { width: 42px; flex: none; }
.text-btn { font-weight: 700; color: var(--brand); padding: 8px; font-size: 14px; }

/* ---------- Cards / checkout ---------- */
.checkout, .track { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.checkout-main, .checkout-side, .track-col { display: flex; flex-direction: column; gap: 12px; }
.card { padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.card-title .bi { color: var(--brand); }
.card-title-meta { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field input, .input, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 16px; /* 16px stops iOS from zooming into the field */
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 76px; padding: 12px 14px; resize: none; }
.field input:focus, .input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field.invalid input, .field.invalid .textarea { border-color: var(--red); }
.error { color: var(--red); font-size: 12.5px; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid .field { margin-bottom: 0; }
@media (max-width: 360px) { .field-grid { grid-template-columns: 1fr; } }
.field-address { margin-top: 12px; }

.line { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; padding-top: 2px; }
.line-media { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-media .ph { font-size: 20px; }
.line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-main strong { font-size: 14.5px; }
.line-main small { color: var(--text-3); font-size: 12.5px; }
.line-note { margin-top: 5px; padding: 2px 0; border: 0; border-bottom: 1px dashed transparent; background: transparent; font-size: 13px; color: var(--text-2); outline: 0; min-width: 0; }
.line-note::placeholder { color: var(--brand); opacity: .9; }
.line-note:focus { border-bottom-color: var(--brand); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-total { font-weight: 700; font-size: 14.5px; }
.add-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 6px; padding: 12px; border-radius: 10px; border: 1.5px dashed var(--line); color: var(--brand); font-weight: 700; font-size: 14px; }

.stepper { display: inline-flex; align-items: center; height: 32px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.stepper button { width: 32px; height: 100%; color: var(--brand); font-size: 13px; display: grid; place-items: center; }
.stepper button:active { background: var(--brand-soft); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.stepper.lg { height: 50px; border-radius: 12px; }
.stepper.lg button { width: 44px; font-size: 17px; }
.stepper.lg span { min-width: 28px; font-size: 16px; }

.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--text-2); }
.bill-row.sep { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bill-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--text); }
.fineprint { display: flex; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); color: var(--text-2); font-size: 12.5px; }
.fineprint .bi { color: var(--green); }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 30px rgba(0, 0, 0, .06);
}
.cta-total { display: flex; flex-direction: column; line-height: 1.15; }
.cta-total small { color: var(--text-3); font-size: 12px; font-weight: 600; }
.cta-total strong { font-size: 19px; }
.btn.cta { flex: 1; min-height: 52px; font-size: 16px; }

/* ---------- Orders ---------- */
.orders-list { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.order-card { width: 100%; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); text-align: left; }
.order-card-top { display: flex; align-items: center; gap: 12px; }
.order-card-top > .bi { color: var(--text-3); }
.order-card-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--blue-soft); color: var(--blue); }
.order-card-icon.is-preparing { background: var(--brand-soft); color: var(--brand); }
.order-card-icon.is-completed { background: var(--green-soft); color: var(--green); }
.order-card-icon.is-declined, .order-card-icon.is-cancelled { background: var(--red-soft); color: var(--red); }
.order-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-card-main small { color: var(--text-3); font-size: 12.5px; }
.order-card-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.order-card-items { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { margin-top: 12px; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #ff9a8f, var(--brand)); transition: width .6s ease; }

/* ---------- Tracking ---------- */
.track-hero { text-align: center; padding: 28px 18px 24px; border-radius: 18px; background: var(--blue-soft); }
.track-hero h2 { margin: 16px 0 6px; font-size: 22px; font-weight: 800; }
.track-hero p { margin: 0 auto; max-width: 320px; color: var(--text-2); font-size: 14px; }
.track-icon { position: relative; width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 32px; }
.track-hero.is-pending .track-icon::before,
.track-hero.is-pending .track-icon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--blue); animation: ripple 2s ease-out infinite; }
.track-hero.is-pending .track-icon::after { animation-delay: 1s; }
.track-hero.is-preparing { background: var(--brand-soft); }
.track-hero.is-preparing .track-icon { background: var(--brand); }
.track-hero.is-preparing .track-icon .bi { animation: flicker 1.4s ease-in-out infinite; }
.track-hero.is-completed { background: var(--green-soft); }
.track-hero.is-completed .track-icon { background: var(--green); }
.track-hero.is-declined, .track-hero.is-cancelled { background: var(--red-soft); }
.track-hero.is-declined .track-icon, .track-hero.is-cancelled .track-icon { background: var(--red); }
.track-hero.celebrate .track-icon { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.token-chip { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: var(--surface); font-size: 13px; box-shadow: var(--shadow-1); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; color: var(--text-3); }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.steps li.done:not(:last-child)::before { background: var(--green); }
.step-dot { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 15px; }
.steps li.done .step-dot { background: var(--green); color: #fff; }
.steps li.current .step-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 6px var(--brand-soft); }
.steps li.done, .steps li.current { color: var(--text); }
.steps strong { display: block; font-size: 14.5px; margin-top: 1px; }
.steps small { color: var(--text-3); font-size: 12.5px; }
.receipt-line { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.receipt-qty { min-width: 28px; color: var(--brand); font-weight: 800; }
.receipt-name { flex: 1; }
.receipt-name small { color: var(--text-3); }
.receipt-name em { display: block; font-style: normal; color: var(--text-3); font-size: 12.5px; }
.receipt-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); font-size: 13px; color: var(--text-2); }
.deliver-to { margin: -4px 0 12px; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.deliver-to small { display: block; margin-top: 4px; color: var(--text-3); font-size: 12.5px; }
.track-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.track-actions .btn { flex: 1 1 130px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; }
.f-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-block:first-child { padding-top: 0; }
.f-block:last-child { border-bottom: 0; }
.f-block h4 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.f-head { display: flex; align-items: center; justify-content: space-between; }
.f-radio, .f-check { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-2); cursor: pointer; }
.f-radio input, .f-check input { position: absolute; opacity: 0; pointer-events: none; }
.f-radio-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #c9c9cf; transition: border .15s; }
.f-radio input:checked + .f-radio-dot { border: 6px solid var(--brand); }
.f-box { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 2px solid #c9c9cf; display: grid; place-items: center; color: transparent; font-size: 14px; transition: background .15s, border-color .15s; }
.f-check input:checked + .f-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.f-range { width: 100%; margin: 6px 0 4px; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--line) var(--fill)); outline: 0; }
.f-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: var(--shadow-1); cursor: pointer; }
.f-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
.f-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.f-range-labels strong { color: var(--text); font-size: 12.5px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip { padding: 7px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }
.f-chip.on { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 600; }

/* ---------- Sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 10, 12, .5); }
.sheet { position: relative; width: 100%; max-height: 90vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: var(--shadow-3); overflow: hidden; }
.sheet-grip { position: absolute; top: 8px; left: 50%; z-index: 2; width: 40px; height: 5px; transform: translateX(-50%); border-radius: 5px; background: rgba(160, 160, 170, .6); }
.sheet-hero { height: 200px; flex: none; background: var(--surface-2); }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { overflow-y: auto; padding: 22px 18px 8px; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.sheet-head > div { flex: 1; }
.sheet-head h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.sheet-head p { margin: 0; color: var(--text-3); font-size: 13.5px; }
.sheet-label { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; font-weight: 700; font-size: 15px; }
.required, .optional { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.required { background: var(--brand-soft); color: var(--brand); }
.optional { background: var(--surface-2); color: var(--text-3); }
.options { display: flex; flex-direction: column; margin-bottom: 18px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.option:last-child { border-bottom: 0; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #c9c9cf; transition: border .15s; }
.option.selected .radio { border: 7px solid var(--brand); }
.option-name { flex: 1; font-weight: 600; }
.option-price { font-weight: 700; color: var(--text-2); }
.sheet-foot { display: flex; gap: 12px; padding: 12px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); }

/* ---------- Snackbar ---------- */
.snackbar {
  position: fixed; left: 50%;
  bottom: calc(var(--tabbar-h) + 78px + var(--safe-bottom));
  z-index: 80;
  width: min(calc(100% - 32px), 480px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-3);
}
.snackbar > span { flex: 1; }
.snackbar .bi { font-size: 18px; color: #6fdc98; }
.snackbar.is-info .bi { color: #9cc3ff; }
.snackbar.is-error .bi { color: #ff9d8e; }
.snack-action { color: #ff8b92; font-weight: 700; font-size: 13.5px; padding: 4px 6px; }

/* ---------- Motion ---------- */
.sheet-enter-active, .sheet-leave-active { transition: background .28s ease; }
.sheet-enter-active .sheet, .sheet-leave-active .sheet { transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
.sheet-enter-from, .sheet-leave-to { background: rgba(10, 10, 12, 0); }
.sheet-enter-from .sheet, .sheet-leave-to .sheet { transform: translateY(100%); }
.rise-enter-active, .rise-leave-active { transition: transform .3s cubic-bezier(.2, .9, .25, 1), opacity .25s; }
.rise-enter-from, .rise-leave-to { transform: translate(-50%, 40px); opacity: 0; }
.snack-enter-active, .snack-leave-active { transition: transform .25s ease, opacity .25s ease; }
.snack-enter-from, .snack-leave-to { transform: translate(-50%, 14px); opacity: 0; }
/* Opacity only: a transform here would detach the fixed bars inside a screen. */
.screen { animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(-4deg); } }
@keyframes bump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.05); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes badge-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =========================================================
   Tablet (768px and up)
   ========================================================= */
@media (min-width: 768px) {
  .m-loc, .m-sticky { padding-left: 24px; padding-right: 24px; }
  .content { padding: 18px 24px 0; }
  .banners { margin: 20px -24px 0; padding: 0 24px; scroll-padding: 0 24px; }
  .banner { width: calc(50% - 6px); min-height: 150px; }
  .h-scroll { margin: 0 -24px; padding: 2px 24px 6px; scroll-padding: 0 24px; }
  /* Whole cards per slide: 3 on tablet. */
  .h-scroll .dish-card { width: calc((100% - 2 * 12px) / 3); }
  .tile, .tile-media { width: 92px; }
  .tile-media { height: 92px; }
  .circle { width: 84px; }
  .circle-media { width: 76px; height: 76px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .dish-cat { display: inline; }
  .again-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout, .track, .orders-list { max-width: 760px; margin: 0 auto; padding: 18px 24px 0; }
  .orders-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; }
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { width: min(100%, 520px); max-height: 86vh; border-radius: 20px; }
  .sheet-grip { display: none; }
  .sheet-enter-from .sheet, .sheet-leave-to .sheet { transform: translateY(24px) scale(.97); }
}

/* =========================================================
   Desktop (1024px and up)
   ========================================================= */
@media (min-width: 1024px) {
  .screen { padding-bottom: 56px; }

  .topnav {
    display: block;
    position: sticky; top: 0; z-index: 50;
    height: var(--topnav-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .topnav-inner { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 24px; }

  /* Brand */
  .brand { display: flex; align-items: center; gap: 14px; text-align: left; flex: none; }
  .brand-mark {
    width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
    display: grid; place-items: center;
    background: var(--brand); color: #fff; font-weight: 800; font-size: 20px;
    box-shadow: 0 2px 8px rgba(204,14,26,.3);
  }
  .brand-mark img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
  .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
  .brand-text strong { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
  .brand-text small { font-size: 11.5px; color: var(--text-3); font-weight: 500; }

  /* Search */
  .topnav-search {
    flex: 1; max-width: 560px;
    display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 16px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1.5px solid transparent;
    color: var(--text-3);
    transition: border-color .2s, background .2s, box-shadow .2s;
  }
  .topnav-search:focus-within {
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
    color: var(--text);
  }
  .topnav-search input { font-size: 14.5px; }

  /* Action icons */
  .topnav-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
  .head-icon {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    width: 58px; height: 52px; border-radius: 14px;
    font-size: 22px; color: var(--text-2);
    transition: background .15s, color .15s;
  }
  .head-icon .head-label { font-size: 12px; font-weight: 600; line-height: 1; color: inherit; display: block; }
  .head-icon:hover { background: var(--surface-2); color: var(--text); }
  .head-icon.active { background: var(--brand-soft); color: var(--brand); }
  .head-icon.bump { animation: badge-bump .35s ease; }
  .head-count {
    position: absolute; top: 6px; right: 6px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; background: var(--brand); color: #fff;
    font-size: 10.5px; font-weight: 800;
    display: grid; place-items: center;
    box-shadow: 0 0 0 2px var(--surface);
  }
  .head-dot {
    position: absolute; top: 10px; right: 10px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 2px var(--surface);
    animation: pulse 1.6s ease-in-out infinite;
  }

  /* Promo strip */
  .promo-strip {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 20px;
    background: linear-gradient(90deg, #fff5f5 0%, var(--brand-soft) 50%, #fff5f5 100%);
    border-bottom: 1px solid rgba(204,14,26,.1);
    color: var(--brand);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
  }
  .promo-strip .bi { font-size: 15px; opacity: .8; }

  .m-loc, .m-sticky, .tabbar, .cart-float, .banners, .banner-dots { display: none !important; }

  .menu-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 28px 0;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .sidebar {
    display: flex; flex-direction: column; gap: 0;
    position: sticky; top: calc(var(--topnav-h) + 20px);
    height: calc(100vh - var(--topnav-h) - 40px);
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  /* sidebar এর ভেতরে cards এর নিজস্ব border/shadow নেই */
  .sidebar > .side-card {
    border: none; border-radius: 0; box-shadow: none;
  }
  /* First card (deliver box) — divider নিচে */
  .sidebar > .side-card:first-child {
    flex: none;
    border-bottom: 1px solid var(--line) !important;
    background: #fafafa;
  }
  /* Filter card — takes remaining height, scrolls internally */
  .sidebar > .side-card:last-child {
    flex: 1; display: flex; flex-direction: column;
    overflow: hidden; min-height: 0;
    padding: 0;
  }
  /* Filter title */
  .sidebar > .side-card:last-child .side-card-title {
    flex: none; margin: 18px 18px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  /* Filter panel content scrolls */
  .sidebar > .side-card:last-child .filters {
    flex: 1; overflow-y: auto; min-height: 0;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 0 18px;
  }
  .sidebar > .side-card:last-child .filters::-webkit-scrollbar { display: none; }

  .side-card {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .side-card-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  /* Deliver box */
  .deliver-box { display: flex; gap: 12px; align-items: center; }
  .deliver-icon {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-size: 18px;
  }
  .deliver-box > div { display: flex; flex-direction: column; gap: 1px; }
  .deliver-box small { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
  .deliver-box strong { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .deliver-box .link { text-align: left; font-size: 13px; color: var(--brand); font-weight: 600; }
  /* Sticky action buttons at bottom of filter card */
  .side-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--line);
    flex-shrink: 0; background: var(--surface);
  }
  .side-actions .btn { min-height: 42px; font-size: 14px; border-radius: 10px; }

  .content { padding: 0; }
  .block { margin-top: 30px; }
  .block-head h2 { font-size: 20px; }
  .tiles { gap: 16px; }
  .tile, .tile-media { width: 104px; }
  .tile-media { height: 104px; border-radius: 12px; }
  .tile-label-on { font-size: 10.5px; }
  .tile-name { font-size: 13px; }
  .live-card { max-width: 560px; margin-top: 24px; }
  .h-scroll { margin: 0; padding: 2px 2px 6px; gap: 16px; scroll-padding: 0 2px; }
  .h-scroll .dish-card { width: calc((100% - 3 * 16px) / 4); }
  /* Fill the row with ~200px cards: 4 across next to the filters, 5 on wide screens. */
  .dish-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
  .dish-card:hover .dish-media img { transform: scale(1.04); }
  .dish-body { padding: 10px 12px 12px; }
  .circles { gap: 22px; }
  .circle { width: 92px; font-size: 13px; }
  .circle-media { width: 84px; height: 84px; }

  /* Other screens: the app bar becomes a page header. */
  .appbar { position: static; height: auto; max-width: 1320px; margin: 0 auto; padding: 24px 28px 4px; background: none; box-shadow: none; }
  .appbar-title { flex: none; margin-right: auto; text-align: left; font-size: 26px; font-weight: 800; }
  .checkout {
    max-width: 1320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
    padding: 12px 28px 0;
  }
  .checkout-side { position: sticky; top: calc(var(--topnav-h) + 20px); }
  .cta-bar { position: static; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
  .orders-list { max-width: 1320px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 28px 0; }
  .track { max-width: 1320px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 12px 28px 0; }
  .track-col:last-child { position: sticky; top: calc(var(--topnav-h) + 20px); }
  .empty.full { padding-top: 8vh; }
  .snackbar { bottom: 28px; }
}


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