/* Every value here is overridden from the dashboard's Design tab (see applyDesign in menu.js). */
:root {
  --brand: #8b5e3c;
  --bg: #faf7f4;
  --card: #ffffff;
  --text: #2b2420;
  --muted: #7a6f68;
  --price: #8b5e3c;
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --radius: 16px;
  --header-bg: #8b5e3c;
  --header-text: #ffffff;
  --header-image: none;
  --overlay: .4;
  --footer-bg: transparent;
  --footer-text: var(--muted);
  --font-heading: 'Tajawal', system-ui, sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
  --bg-image: none;
}
/* Dark mode (public/dark.js puts .dk on the page when the shop's rule or the guest's button says so). */
html.dk body {
  --bg: #121212;
  --card: #1e1e1e;
  --text: #f1f1f1;
  --muted: #a3a3a3;
  --footer-bg: #0d0d0d;
  --footer-text: #a3a3a3;
  --price: color-mix(in srgb, var(--brand) 55%, #fff);
}
.hero-dm {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; width: 38px; height: 38px;
  border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; border-radius: 999px; padding: 0;
}
.lang.tr { inset-inline-start: 62px !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg) var(--bg-image) center / cover fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-heading); }

/* ---------- Header ---------- */
.hero {
  position: relative;
  padding: 40px 16px 28px;
  color: var(--header-text);
  background: linear-gradient(160deg, var(--header-bg), color-mix(in srgb, var(--header-bg) 70%, #000));
}
.header-solid .hero { background: var(--header-bg); }
.header-minimal .hero { background: transparent; color: var(--text); }
.header-image .hero {
  background:
    linear-gradient(rgba(0,0,0,var(--overlay)), rgba(0,0,0,var(--overlay))),
    var(--header-image) center / cover, var(--header-bg);
}
.header-compact .hero { padding: 20px 16px 16px; }
.header-tall .hero { min-height: 45vh; display: flex; align-items: center; justify-content: center; }
.header-tall.align-start .hero { justify-content: flex-start; }

.hero-inner { max-width: 760px; margin: 0 auto; width: 100%; text-align: center; }
.align-start .hero-inner { text-align: start; }
.align-start .hero-inner .logo { margin: 0; }
.align-start .hero .socials { justify-content: flex-start; }

.hero h1 { margin: 8px 0 4px; font-size: 1.9rem; font-weight: 800; }
.header-compact .hero h1 { font-size: 1.5rem; }
.tagline { margin: 0; opacity: .9; }

.logo {
  width: var(--logo, 92px); height: var(--logo, 92px); margin: 0 auto;
  object-fit: cover; background: #fff;
  border: 3px solid color-mix(in srgb, var(--header-text) 85%, transparent);
  border-radius: 50%;
}
.logo-small { --logo: 64px; }
.logo-large { --logo: 128px; }
.logo-xlarge { --logo: 176px; }
.logo-rounded .logo { border-radius: 22%; }
.logo-square .logo { border-radius: 0; }
.header-minimal .logo { border-color: var(--line); }
/* No frame: the logo as it is (PNG or SVG with no background shows straight on the header), never cropped. */
.logo-bare .logo { background: transparent; border: 0; object-fit: contain; }
/* No shape: it keeps its own outline and proportions, a wide wordmark stays wide. */
.logo-free .logo { width: auto; height: var(--logo, 92px); max-width: min(100%, 360px); background: transparent; border: 0; border-radius: 0; object-fit: contain; }

/* Where the logo sits */
.logo-pos-side .hero-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; text-align: start; }
.logo-pos-side .hero-inner > .logo { grid-row: 1 / span 6; margin: 0; max-width: 42vw; }
.logo-pos-side .hero-inner > :not(.logo) { grid-column: 2; }
.logo-pos-side .hero .socials, .logo-pos-side .locations { justify-content: flex-start; }
.logo-pos-overlap .hero { margin-bottom: calc(var(--logo, 92px) / 2 + 14px); padding-bottom: calc(var(--logo, 92px) / 2 + 22px); }
.logo-pos-overlap .hero-inner > .logo { position: absolute; z-index: 2; left: 50%; translate: -50% 0; bottom: calc(var(--logo, 92px) / -2); margin: 0; }
.logo-pos-overlap.logo-framed .logo { border-color: var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.logo-pos-overlap.align-start .hero-inner > .logo { left: auto; inset-inline-start: 18px; translate: 0 0; }
.logo-pos-only .hero h1, .logo-pos-only .hero .tagline {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.logo-pos-only .hero-inner > .logo { margin-bottom: 4px; }

.lang {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1;
  border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit; border-radius: 999px; padding: 0; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; cursor: pointer;
}
.lang svg { width: 20px; height: 20px; }

/* ---------- Social buttons ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.socials:empty { display: none; }
.socials a {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; text-decoration: none; font-size: .9rem; font-weight: 500;
  background: color-mix(in srgb, currentColor 14%, transparent);
  padding: 7px 12px; border-radius: 999px;
}
.socials-icons .socials a { padding: 0; width: 40px; height: 40px; justify-content: center; }
.socials-icons .socials a span { display: none; }
.socials i {
  width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ---------- Category tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; color: var(--text);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-weight: 500; white-space: nowrap;
}
.tabs a.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.tabs a { max-width: 80vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs-square .tabs a { border-radius: min(var(--radius), 8px); }
.tabs-underline .tabs { gap: 4px; }
.tabs-underline .tabs a { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 10px; }
.tabs-underline .tabs a.active { background: none; color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }

/* ---------- Items ---------- */
main { max-width: 760px; width: 100%; margin: 0 auto; padding: 16px; flex: 1; }
.search input {
  width: 100%; padding: 12px 16px; font: inherit;
  border: 1px solid var(--line); border-radius: min(var(--radius), 14px);
  background: var(--card); color: var(--text);
}

section { scroll-margin-top: 70px; margin-top: 24px; }
section h2 { font-size: 1.35rem; margin: 0 0 12px; }

.items { display: grid; gap: 10px; }
.item {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; overflow: hidden;
}
.card-shadow .item { border-color: transparent; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.card-flat .item { border-color: transparent; }
/* Glass: frosted cards over a soft glow of the shop's own color (their background photo, if any, shows through instead). */
.card-glass:not(.has-bg-image) { background-image: radial-gradient(60% 40% at 15% 0%, color-mix(in srgb, var(--brand) 36%, transparent), transparent 70%), radial-gradient(50% 40% at 100% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); background-attachment: fixed; }
.card-glass .item { background: color-mix(in srgb, var(--card) 52%, transparent); border-color: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: 0 8px 26px rgba(0,0,0,.08); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.card-glass .sheet { background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.item.off { opacity: .55; }
.item .thumb {
  flex: none; width: 96px; height: 96px; object-fit: cover; cursor: zoom-in;
  background: var(--line); border-radius: calc(var(--radius) * .75);
}
.img-circle .item .thumb { border-radius: 50%; }
.img-square .item .thumb { border-radius: 0; }
.item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.item h3, .item p { overflow-wrap: anywhere; }
.item .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--price); }
.old { text-decoration: line-through; color: var(--muted); font-size: .85rem; }
.badge {
  font-size: .75rem; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--text);
}
.badge.na { background: #d9534f22; color: #c0392b; }

/* Grid: 2 per row, photo on top */
.layout-grid .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .layout-grid .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layout-grid .item { flex-direction: column; padding: 0; gap: 0; }
.layout-grid .item .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.layout-grid .item .body { padding: 10px 12px 12px; }

/* Cards: one per row, big photo */
.layout-cards .item { flex-direction: column; padding: 0; gap: 0; }
.layout-cards .item .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.layout-cards .item .body { padding: 14px 16px 16px; }
.layout-cards .item h3 { font-size: 1.2rem; }

/* Compact: text only, price on the same line */
.layout-compact .items { gap: 0; }
.layout-compact .item { border-radius: 0; border-width: 0 0 1px; border-color: var(--line); background: transparent; box-shadow: none; padding: 12px 0; }
.layout-compact .item .thumb { display: none; }
.layout-compact .item .body { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.layout-compact .item h3 { grid-column: 1; }
.layout-compact .item p { grid-column: 1 / -1; }
.layout-compact .item .foot { grid-column: 2; grid-row: 1; padding-top: 0; margin: 0; justify-content: flex-end; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center; font-size: .9rem; line-height: 1.6;
  padding: 24px 16px calc(84px + env(safe-area-inset-bottom)); margin-top: 24px;
  /* The footer runs to the very bottom of the page; with an order, it makes room inside itself for the buttons floating above it. */
  transition: padding-bottom var(--t-slow) var(--ease);
  background: var(--footer-bg); color: var(--footer-text);
}
.site-footer p { margin: 4px 0; }
.site-footer p:empty { display: none; }
.site-footer .hours { font-weight: 700; }
.site-footer .socials { margin-top: 12px; }

/* ---------- Photo viewer ---------- */
.viewer {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.85);
  display: grid; place-items: center; padding: 16px; cursor: zoom-out;
}
.viewer img { max-height: 90vh; border-radius: 12px; }

/* ---------- Tags, extra fields, table ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag {
  font-size: .72rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--tag, var(--brand)) 14%, transparent);
  color: color-mix(in srgb, var(--tag, var(--brand)) 70%, var(--text));
}
.fields { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.layout-compact .item .fields, .layout-compact .item .tags { grid-column: 1 / -1; }
.tag-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.tag-filter::-webkit-scrollbar { display: none; }
.tag-filter button {
  flex: none; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.tag-filter button.on { background: var(--tag, var(--brand)); border-color: var(--tag, var(--brand)); color: #fff; }
.table-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--text);
}
/* How many are at the table: quiet, next to the table's name. */
.table-people {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: .78rem; color: var(--muted);
  padding-inline-start: 8px; margin-inline-start: 2px; border-inline-start: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.guest-dots { display: inline-flex; }
.guest-dots { gap: 3px; }
.guest-dot {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: .62rem; font-weight: 700;
  color: #fff; background: var(--g); vertical-align: middle; position: relative; top: -1px; margin-inline-end: 6px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.guest-dots .guest-dot { margin-inline-end: 0; }
.guest-dot.me { box-shadow: 0 0 0 1.5px var(--card, #fff), 0 0 0 2.5px var(--g); margin: 0 2px; }
.g1 { --g: #e07a5f; } .g2 { --g: #3d8bfd; } .g3 { --g: #2a9d8f; } .g4 { --g: #b56cd6; }
.g5 { --g: #e9a23b; } .g6 { --g: #d6517d; } .g7 { --g: #5c7cfa; } .g8 { --g: #6c8b3c; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.closed-note { color: var(--muted); font-size: .85rem; margin: -6px 0 10px; }
.item { cursor: pointer; }
.item:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.add-hint {
  margin-inline-start: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.1rem; line-height: 1;
}

/* ---------- Bottom sheets (item details, cart) ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh;
  border-radius: 20px 20px 0 0; background: var(--card); color: var(--text); overflow: auto;
  font-family: var(--font-body);
}
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 20px; } }
/* The page behind an open sheet stays still: public/scrolllock.js (every page). */
.sheet { overscroll-behavior: contain; }
/* How sheets open and close is in ui-base.css. */
.sheet-close {
  position: sticky; top: 10px; float: inline-end; margin: 10px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; cursor: pointer;
}
.sheet-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: -56px; }
.sheet-content { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); clear: both; }
.sheet-content h2 { margin: 0 0 6px; font-size: 1.4rem; }
.sheet .muted { color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.sheet-price { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 1.1rem; }

.opt-group { border: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; margin: 8px 0 0; }
.opt-group legend { font-weight: 700; padding: 0; display: flex; gap: 8px; align-items: baseline; width: 100%; }
.opt-group legend small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.opt span:first-of-type { flex: 1; }
.opt-price { color: var(--muted); font-size: .9rem; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: .9rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); width: 100%; resize: vertical;
}

.sheet-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button {
  width: 40px; height: 40px; border: 0; background: none; color: var(--text); font-size: 1.2rem; cursor: pointer;
}
.qty output { min-width: 24px; text-align: center; font-weight: 700; }
.qty.small button { width: 32px; height: 32px; font-size: 1rem; }
.btn-primary {
  flex: 1; border: 0; border-radius: 999px; padding: 13px 18px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-primary.wide { width: 100%; margin-top: 16px; }
.btn-primary.whatsapp { background: #25d366; color: #fff; }
.btn-primary i {
  width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}

.cart-lines { list-style: none; padding: 0; margin: 8px 0; }
.cart-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-line-main small { color: var(--muted); }
.segmented { display: flex; gap: 6px; margin-top: 14px; background: var(--bg); padding: 4px; border-radius: 12px; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.segmented input:checked + span { background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.12); color: var(--brand); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 16px 0 0; }
.totals dd { margin: 0; text-align: end; }
.warn { color: #c0392b; font-weight: 600; margin: 10px 0 0; }
.small { font-size: .85rem; }

/* ---------- Cart bar and toast ---------- */
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15;
  width: min(520px, calc(100% - 28px)); display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cart-count {
  min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: .85rem;
  background: color-mix(in srgb, var(--on-brand) 22%, transparent);
}
.cart-total { margin-inline-start: auto; }
body.has-cart .site-footer { padding-bottom: calc(156px + env(safe-area-inset-bottom)); }
body:has(.site-footer[hidden]) main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body.has-cart:has(.site-footer[hidden]) main { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.cart-bar:not([hidden]) { animation: bar-in var(--t-slow) var(--ease) backwards; }
.cart-bar.bump .cart-count { animation: bump .36s var(--ease); }
@keyframes bar-in { from { transform: translate(-50%, 140%); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.35); } }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 30; max-width: calc(100% - 32px);
  background: #222; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .9rem; text-align: center;
  /* Undo the browser's popover defaults (centred box with a border). */
  inset: auto auto 90px 50%; margin: 0; border: 0;
  opacity: 0; translate: 0 12px; transition: opacity var(--t) var(--ease-soft), translate var(--t) var(--ease), overlay var(--t) allow-discrete, display var(--t) allow-discrete;
}
.toast:popover-open { opacity: 1; translate: 0; }
@starting-style { .toast:popover-open { opacity: 0; translate: 0 12px; } }
/* Over an open sheet the bottom holds the fields and buttons, so the message goes to the top. */
html:has(dialog.sheet[open]) .toast { inset: calc(16px + env(safe-area-inset-top)) auto auto 50%; }

/* ---------- Deals, branches, order status, waiter calls, ratings ---------- */
.badge.promo { background: #e53e3e1f; color: #c53030; font-weight: 700; }
.locations {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.locations :is(select, .pk-select) { font: inherit; border: 0; background: transparent; color: inherit; padding: 4px; }
.locations option { color: #111; }
.order-status {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand);
}
.order-status.status-ready { border-inline-start-color: #38a169; background: color-mix(in srgb, #38a169 8%, var(--card)); }
.order-status.status-cancelled { opacity: .7; border-inline-start-color: #a0aec0; }
.order-status.live { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.order-status.live .track-no { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.35rem;
  border: 4px solid color-mix(in srgb, var(--brand, #8b5e3c) 25%, transparent); border-top-color: var(--brand, #8b5e3c); animation: track-spin 2.4s linear infinite; }
.order-status.live .track-no b { animation: track-spin 2.4s linear infinite reverse; }
.order-status.live .track-line { font-size: .92rem; color: var(--muted); }
.order-status.live .track-line b { color: var(--text); }
.order-status.live.status-ready .track-no { animation: none; border-color: #38a169; }
.order-status.live.status-ready .track-no b { animation: none; }
@keyframes track-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .order-status.live .track-no, .order-status.live .track-no b { animation: none; } }
.order-status-actions { display: flex; gap: 8px; align-items: center; }
.btn-small {
  font: inherit; font-size: .85rem; font-weight: 700; padding: 9px 14px; min-height: 36px; border-radius: 999px; cursor: pointer;
  border: 0; background: var(--brand); color: var(--on-brand);
}
.btn-link { font: inherit; font-size: .85rem; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; }
.service-btn {
  position: fixed; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 14;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem;
  background: var(--card); box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
body.has-cart .service-btn { bottom: calc(86px + env(safe-area-inset-bottom)); }
#serviceBody .btn-primary { margin-top: 10px; }
.rate-link {
  margin-top: 14px; font: inherit; font-weight: 700; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit;
}
.stars { display: flex; justify-content: center; gap: 6px; margin: 12px 0 4px; }
.stars button { font-size: 2.4rem; line-height: 1; border: 0; background: none; cursor: pointer; color: #d4d4d4; padding: 2px; }
.stars button.on { color: #f6ad55; }
.center { text-align: center; }
.btn-primary.google { text-decoration: none; background: #1a73e8; color: #fff; }

/* ---------- Hot/iced, sold out, seasonal ---------- */
.badge.temp { background: color-mix(in srgb, var(--text) 8%, transparent); }
.badge.season { background: #dd6b201f; color: #9c4221; }
.temp-pick { margin: 12px 0 4px; }
.temp-only { margin: 8px 0; font-weight: 700; }
.opt.sold-out { opacity: .5; }
.sold-tag { font-style: normal; font-size: .75rem; color: #c53030; font-weight: 700; margin-inline-start: 4px; }
.opt-qty { margin-inline-start: 8px; }
.opt-qty button:disabled { opacity: .35; cursor: default; }

/* ---------- Suggestions ---------- */
.up-added { color: #2f855a; font-weight: 700; margin: 0 0 4px; }
.up-list { display: grid; gap: 10px; margin: 12px 0; }
.up-card {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg);
}
.up-card img, .up-ph { width: 56px; height: 56px; border-radius: calc(var(--radius) * .6); object-fit: cover; background: var(--line); flex: none; }
.up-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wide-link { display: block; width: 100%; text-align: center; padding: 10px; }
.cart-upsell { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cart-upsell h3 { margin: 0; font-size: 1rem; }
#addToCart { white-space: nowrap; padding-inline: 14px; }

/* ---------- AI menu assistant ---------- */
.ask-btn {
  position: fixed; inset-inline-start: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 14;
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px 0 11px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .82rem; opacity: .94;
  /* Small and soft, so it never pushes at the page. The brand color with its readable text color, and a thin ring in the page color. */
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 0 0 2px var(--bg), 0 3px 10px rgba(0,0,0,.16);
  transition: transform var(--t) var(--ease), bottom var(--t-slow) var(--ease), box-shadow var(--t) var(--ease-soft), opacity var(--t) var(--ease-soft);
}
.ask-btn:not([hidden]) { animation: pop-in var(--t-slow) var(--ease) .4s backwards; }
.ask-btn .ic { width: 16px; height: 16px; }
.ask-btn:active { transform: scale(.96); }
body.has-cart .ask-btn { bottom: calc(80px + env(safe-area-inset-bottom)); }
.ask-sheet[open] { display: flex; }
.ask-sheet form { display: flex; flex-direction: column; width: 100%; max-height: 88vh; }
.ask-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 18px; border-bottom: 1px solid var(--line); }
.ask-head h2 { margin: 0; font-size: 1.15rem; }
.ask-head .sheet-close { position: static; margin: 4px; float: none; }
.ask-log { flex: 1; overflow-y: auto; padding: 14px 14px 4px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.ask-msg { max-width: 88%; display: flex; flex-direction: column; gap: 8px; }
.ask-msg p { margin: 0; padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; }
.ask-msg.assistant { align-self: flex-start; }
.ask-msg.assistant p { background: color-mix(in srgb, var(--text) 7%, var(--card)); border-end-start-radius: 4px; }
.ask-msg.user { align-self: flex-end; }
.ask-msg.user p { background: var(--brand); color: var(--on-brand); border-end-end-radius: 4px; }
.ask-msg.error p { color: #c0392b; }
.ask-msg.assistant { max-width: 94%; }
.ask-msg .up-card { cursor: default; }
/* Suggested item in the chat: choices on the card, a big button to add */
.ask-card { flex-wrap: wrap; align-items: flex-start; }
.ask-card .up-body { cursor: pointer; }
.ask-card .up-body strong { white-space: normal; overflow: visible; }
.ask-desc { color: var(--muted); font-size: .8rem; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ask-opts { flex: 1 1 100%; display: grid; gap: 8px; }
.ask-group small { display: block; font-weight: 700; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.ask-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chip {
  font: inherit; font-size: .9rem; min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--text); display: inline-flex; align-items: center; gap: 4px;
}
.ask-chip i { font-style: normal; font-size: .8rem; color: var(--muted); }
.ask-chip.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--card)); font-weight: 700; }
.ask-chip:disabled { opacity: .4; cursor: default; text-decoration: line-through; }
.ask-add {
  flex: 1 1 100%; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: inherit; font-weight: 800; font-size: 1rem; background: var(--brand); color: var(--on-brand);
  transition: transform .1s, background .2s;
}
.ask-add:active { transform: scale(.98); }
.ask-add.done { background: #2f855a; color: #fff; }
.ask-add b { font-weight: 800; }
@media (min-width: 520px) {
  .ask-card:not(.has-opts) .ask-add { flex: none; min-width: 120px; }
}
.ask-msg.typing { flex-direction: row; gap: 4px; padding: 14px; background: color-mix(in srgb, var(--text) 7%, var(--card)); border-radius: 16px; }
.ask-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ask-dot 1s infinite; }
.ask-msg.typing span:nth-child(2) { animation-delay: .15s; }
.ask-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 50% { opacity: .3; transform: translateY(-3px); } }
.ask-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 14px; }
.ask-chips .chip { font: inherit; font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.ask-input { display: flex; gap: 8px; padding: 8px 14px; }
.ask-input input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.ask-note { margin: 0; padding: 0 14px calc(10px + env(safe-area-inset-bottom)); font-size: .75rem; color: var(--muted); text-align: center; }

/* ---------- Payments ---------- */
.pay-choice { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pay-title { font-weight: 700; margin: 0 0 8px; }
.pay-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--card)); font-size: .9rem; }
.cliq-box { margin: 10px 0 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.cliq-box p { margin: 0 0 4px; }
.cliq-alias { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.pay-bill { margin-bottom: 12px; }
.pay-state { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fffaf0; color: #7b341e; white-space: nowrap; }
.pay-state.paid { background: #f0fff4; color: #22543d; }

/* ---------- Pager ---------- */
.pager { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); }
.pager[hidden] { display: none; }
.pager-box { background: var(--card); color: var(--text); border-radius: 24px; padding: 28px 22px; width: min(380px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pager-box h2 { margin: 8px 0 6px; font-size: 1.6rem; }
.pager-box p { color: var(--muted); margin: 0 0 18px; }
.pager-bell { font-size: 3.5rem; animation: ring 1s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-18deg); } }
.placed { text-align: center; padding-top: 30px; }
.placed-icon { font-size: 3rem; }
.center { text-align: center; }
.menu-notice { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #fffbeb; color: #744210; border: 1px solid #f6e05e; font-weight: 600; }

/* ---------- Split bill ---------- */
.bill-orders li { align-items: flex-start; gap: 10px; }
.bill-order.mine { background: color-mix(in srgb, var(--brand) 6%, transparent); border-radius: 10px; padding-inline: 8px; }
.bill-order.paid, .bill-order.pending { opacity: .65; }
.bill-order input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; }
.split-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split-mode input { position: absolute; opacity: 0; }
.split-mode span { display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.split-mode input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--brand); }
.share-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.share-row label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }

/* ---------- Wait time, your usual ---------- */
.wait-line { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, var(--card)); font-weight: 600; font-size: .9rem; }
.usual { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--card); border: 1px dashed var(--brand); }
.usual div { display: flex; flex-direction: column; min-width: 0; }
.usual strong { white-space: nowrap; }
.usual small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usual .btn-small { flex: none; }

/* ---------- Allergens ---------- */
.passport-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px;
  border-radius: 12px; background: color-mix(in srgb, #38a169 8%, var(--card)); border: 1px solid color-mix(in srgb, #38a169 30%, var(--line)); font-size: .9rem; }
.passport-actions { display: flex; gap: 10px; align-items: center; }
.badge.allergy { background: #fff5f5; color: #c53030; font-weight: 700; }
.allergen-line { font-size: .85rem; color: var(--muted); margin: 6px 0; }
.allergy-warn { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fff5f5; color: #9b2c2c; font-weight: 700; font-size: .9rem; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.allergen-chip input { position: absolute; opacity: 0; }
.allergen-chip span { display: block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .9rem; }
.allergen-chip input:checked + span { background: #fff5f5; border-color: #fc8181; color: #9b2c2c; }

/* ---------- Gifts ---------- */
.gift-link { margin-top: 10px; font-weight: 700; color: var(--brand); text-decoration: none; }
.gift-code { font: 800 2rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; padding: 14px; border: 2px dashed var(--brand); border-radius: 14px; direction: ltr; }

/* ---------- Smart order, visitor's language ---------- */
.smart-note { margin-bottom: 12px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.lang.tr { inset-inline-end: auto; inset-inline-start: 14px; }

/* ---------- Smart waiter ---------- */
.waiter-hi { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: 0 4px 18px color-mix(in srgb, var(--brand) 10%, transparent); }
.waiter-hi p { margin: 4px 0 10px; }
.waiter-hi .up-card { background: color-mix(in srgb, var(--brand) 5%, var(--bg)); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w-head .btn-link { color: var(--muted); }
.up-card.big { flex-wrap: wrap; }
.up-card.big img, .up-card.big .up-ph { width: 84px; height: 84px; }
.up-desc { color: var(--muted); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-note { color: #2f855a; font-weight: 700; font-size: .8rem; }
.w-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.w-choice { padding: 16px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; }
.w-choice:hover, .w-choice:focus-visible { border-color: var(--brand); }
.w-sub { margin: 16px 0 0; font-size: 1rem; }
.w-hints { display: grid; gap: 8px; margin: 12px 0 4px; }
.w-hint { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: .9rem;
  background: color-mix(in srgb, var(--brand) 9%, var(--card)); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.w-hint span { flex: 1; }
.w-hint small { color: var(--muted); }
.badge.house { background: color-mix(in srgb, #2f855a 14%, var(--card)); color: #276749; }
.badge.hot-today { background: color-mix(in srgb, #dd6b20 14%, var(--card)); color: #9c4221; }
.w-cart { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.w-cart h3 { margin: 0 0 8px; font-size: .95rem; }
.w-goal { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #d69e2e 12%, var(--card)); }
.w-goal p { margin: 0 0 8px; font-weight: 700; }
.w-goal.done { font-weight: 800; color: #276749; background: color-mix(in srgb, #38a169 14%, var(--card)); }
.w-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d69e2e, var(--brand)); }
.totals dd.save { color: #2f855a; font-weight: 700; }
.chat-order { margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.chat-order ul { margin: 6px 0 10px; padding-inline-start: 18px; }
.waiter-extra { padding-bottom: 0; }
.waiter-extra h3 { margin: 0 0 4px; }
@media (prefers-reduced-motion: no-preference) {
  .waiter-hi { animation: w-in .35s ease-out; }
  @keyframes w-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- Smart waiter, level 2 ---------- */
.w-hint.soft { background: color-mix(in srgb, #d69e2e 10%, var(--card)); border-style: solid; border-color: transparent; }
.w-group { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.w-group p { margin: 0; flex: 1 1 180px; }
.track-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; }
.track-link svg { width: 16px; height: 16px; }
.table-bar { margin-bottom: 12px; }
.table-bar p { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); }
.w-table { margin-top: 8px; }
.ask-nudge { position: fixed; inset-inline-start: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; max-width: min(300px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-align: start;
  background: var(--card); color: var(--text); box-shadow: 0 6px 22px rgba(0,0,0,.18); animation: w-in .35s ease-out; }
.ask-mic { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; width: 44px; flex: none; cursor: pointer; font-size: 1.1rem; }
.ask-mic.on { background: #e53e3e; color: #fff; border-color: #e53e3e; }

/* ---------- Icons (one line-icon set instead of emojis) ---------- */
.badge .ic { width: 1em; height: 1em; margin-inline-end: 3px; vertical-align: -0.15em; }
.placed-icon .ic { width: 56px; height: 56px; stroke-width: 1.6; color: var(--brand); }
.pager-bell .ic { width: 64px; height: 64px; stroke-width: 1.6; }
.service-btn .ic { width: 26px; height: 26px; }
.ask-mic .ic { width: 20px; height: 20px; vertical-align: middle; }
.w-choice .ic { display: block; width: 26px; height: 26px; margin: 0 auto 6px; color: var(--brand); stroke-width: 1.8; }
.w-hint > .ic { flex: none; color: var(--brand); }
.locations [data-ic] .ic { color: var(--muted); }
.smart-note .ic, .wait-line .ic, .allergy-warn .ic, .w-goal .ic { color: var(--brand); }
.allergy-warn .ic { color: inherit; }
.service-btn { color: var(--text); display: grid; place-items: center; }

/* ---------- Deals on the whole order ---------- */
.deals-bar { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.deals-bar::-webkit-scrollbar { display: none; }
.deal-chip {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; max-width: 78%; padding: 10px 14px; border-radius: var(--radius);
  color: var(--on-brand); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); animation: fade-up var(--t-slow) var(--ease) backwards;
}
.deal-chip .ic { width: 24px; height: 24px; flex: none; }
.deal-chip div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.deal-chip b { font-size: .98rem; }
.deal-chip span { font-size: .84rem; opacity: .92; }
.deal-hint {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .9rem; font-weight: 600;
  background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--text);
}
.deal-hint .ic { width: 18px; height: 18px; flex: none; color: var(--brand); }

/* ---------- Limited pieces ---------- */
.badge.stock-low { background: #e5393520; color: #c62828; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; animation: stock-pulse 2.4s ease-in-out infinite; }
.badge.stock-low .ic { width: 14px; height: 14px; }
@keyframes stock-pulse { 50% { background: #e5393538; } }
.stock-bar { align-items: center; }
.stock-title { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; color: #c62828; }
.stock-title .ic { width: 18px; height: 18px; }
.stock-chip { border: 0; font: inherit; text-align: start; cursor: pointer; background: var(--card); color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.08); border: 1.5px solid #e5393555; }
.stock-chip img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.stock-chip span { color: #c62828; font-weight: 700; }

/* Small buttons keep a finger-sized touch area without looking bigger. */
.btn-link.small[data-w-hide] { padding: 10px 8px; margin: -10px -8px; }

/* ---------- Every screen: a folded phone's cover, a phone, an open foldable, a tablet, a laptop, a big screen ---------- */
/* The cover screen of a folded phone (about 280 to 340 px): tighter, one column, nothing wider than the screen. */
@media (max-width: 340px) {
  main { padding: 12px 10px; }
  section h2 { font-size: 1.2rem; }
  .item { gap: 10px; padding: 10px; }
  .item .thumb { width: 72px; height: 72px; }
  .layout-grid .items { grid-template-columns: 1fr; }
  .hero { padding-inline: 12px; }
  .hero h1 { font-size: 1.5rem; }
  .cart-bar { width: calc(100% - 16px); padding: 10px 12px; }
  .tabs a { padding: 7px 12px; }
}
/* An open foldable and a tablet held upright: the menu uses the width, two dishes side by side. */
@media (min-width: 700px) {
  main { max-width: 1000px; padding: 20px 28px; }
  .hero-inner { max-width: 1000px; }
  .tabs { padding-inline: max(16px, calc((100% - 1000px) / 2 + 12px)); }
  .layout-list .items, .layout-cards .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .layout-compact .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .layout-grid .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .item .thumb { width: 104px; height: 104px; }
  section h2 { font-size: 1.5rem; }
}
/* A laptop, a tablet held sideways and a big screen: three or four across. */
@media (min-width: 1100px) {
  main { max-width: 1240px; }
  .hero-inner { max-width: 1240px; }
  .tabs { padding-inline: max(16px, calc((100% - 1240px) / 2 + 12px)); }
  .layout-list .items, .layout-cards .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-compact .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-grid .items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1700px) {
  main { max-width: 1480px; }
  .hero-inner { max-width: 1480px; }
  .layout-grid .items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* A short, wide screen (a phone or a foldable on its side): the cover shrinks so the dishes show. */
@media (max-height: 520px) and (orientation: landscape) {
  .header-tall .hero { min-height: 0; }
  .hero { padding-block: 16px 12px; }
  .logo { --logo: 56px; }
}
#svcTableNo { width: 100%; padding: 12px 16px; margin: 4px 0 12px; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; }

/* "Send me offers on WhatsApp" at checkout */
.check.offers { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; font-size: .92rem; color: var(--text); }
.check.offers input { margin-top: 3px; }
