:root {
  --bg: #1d1d1f;
  --surface: #2a2a2d;
  --surface-2: #232326;
  --ink: #ffffff;
  --muted: #d4d4d8;
  --accent: #e0211b;
  --accent-ink: #ffffff;
  --accent-light: #ff7770;
  --paper: #ffffff;
  --paper-ink: #1d1d1f;

  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-text: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;

  --step-small: clamp(1rem, 0.97rem + 0.1vw, 1.0625rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(88px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
h1, h2, p, dl, dd, ul, table { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .cta:focus-visible, .visit :focus-visible, .panel-red :focus-visible { outline-color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.h-mid { font: 400 clamp(2rem, 1.4rem + 2.6vw, 3.75rem)/.95 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }

/* Buttons: flat, square, one fill */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--font-text); text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.btn:hover { background: var(--paper); color: var(--accent); }
.btn:active { transform: translateY(2px) scale(.98); }
.btn-paper { background: var(--paper); color: var(--accent); }
.btn-paper:hover { background: var(--paper-ink); color: var(--paper); }
.plain-link { font-weight: 600; }

}

/* ---------- Intro ---------- */

/* ---------- Offer ---------- */
/* loyalty block */

/* ---------- Menu ---------- */
.menu { background: var(--surface); padding-block: var(--gap-section); }

.menu-lead { color: var(--muted); margin-top: 16px; max-width: 46ch; }
.qty { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.qty output { min-width: 2.2ch; text-align: center; font: 600 1.25rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.step { width: 48px; height: 48px; display: grid; place-items: center; background: var(--bg); color: var(--ink); border: 0; border-radius: 0; font: 600 1.5rem/1 var(--font-text); cursor: pointer; transition: background-color .15s, transform .1s; }
.step:hover { background: var(--accent); }
.step:active { transform: scale(.92); }

.order-form { margin-top: clamp(40px, 5vw, 72px); background: var(--bg); padding: clamp(20px, 3vw, 44px); }
.order-total { font-size: var(--step-lead); margin-bottom: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fields label { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 600; }
.fields .wide { grid-column: 1 / -1; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
input, select { font: 400 1.0625rem/1.2 var(--font-text); color: var(--paper-ink); background: var(--paper); border: 2px solid var(--paper); border-radius: 0; min-height: 52px; padding: 0 14px; width: 100%; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--accent); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; }
.form-status { margin-top: 20px; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--paper); }
.form-status.err { color: #ff8a84; }

/* ---------- The smash: one verb at a time ---------- */
.panel { position: relative; min-height: 100svh; }
.panel-dark { background: var(--bg); }
.panel-red { background: var(--accent); color: var(--accent-ink); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 100svh; padding: 0 var(--margin); gap: 24px; }
.panel-copy { position: sticky; top: 0; align-self: start; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.verb { font: 400 clamp(110px, 17vw, 330px)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.panel-line { margin-top: 24px; max-width: 32ch; font-size: var(--step-lead); }
.panel-img { width: 100%; max-height: 72svh; object-fit: contain; }
.panel-img-tall { width: auto; max-width: 100%; max-height: 72svh; justify-self: center; }

/* ---------- Prints dropped on the headline ---------- */

/* ---------- Book ---------- */
.book { padding-block: var(--gap-section); }
.book-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.book .h-mid { font-size: clamp(3rem, 1.2rem + 6.4vw, 7.5rem); }
.book-note { margin-top: 20px; color: var(--muted); max-width: 38ch; }
.book .order-form { margin-top: 0; background: var(--surface); }

/* ---------- Visit ---------- */
.visit { background: var(--surface-2); }
.row { font: 400 clamp(2.5rem, 1rem + 6vw, 5.5rem)/1 var(--font-display); text-transform: uppercase; padding: clamp(36px, 5vw, 64px) var(--margin) 12px; min-height: clamp(120px, 11vw, 170px); display: flex; align-items: flex-end; }
.row:nth-of-type(even) { background: var(--surface); }
.row a { text-decoration: none; transition: color .2s; }
.row a:hover { color: var(--accent); }
.row-hi { background: var(--accent) !important; padding-block: 28px; }
.hi-link { display: flex; align-items: center; gap: 24px; width: 100%; }
.hi-link:hover { color: var(--accent-ink) !important; }
.round { width: .9em; height: .9em; border-radius: 50%; background: var(--paper); color: var(--accent); display: grid; place-items: center; padding: .2em; font-style: normal; transition: transform .25s var(--ease); }
.hi-link:hover .round { transform: rotate(45deg) scale(1.08); }

/* ---------- CTA ---------- */
.cta { position: relative; display: block; background: var(--accent); color: var(--accent-ink); min-height: 60svh; padding: 20px var(--margin) 0; text-decoration: none; overflow: hidden; transition: background-color .15s, color .15s; border-top: 0; }
.cta-line { display: block; max-width: 26ch; font-size: 1.0625rem; font-weight: 600; }
.cta-arrow { position: absolute; top: 20px; inset-inline-end: var(--margin); transition: transform .25s var(--ease); }
.cta-word { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 400 clamp(110px, 38vw, 700px)/.78 var(--font-display); text-transform: uppercase; letter-spacing: -.012em; }
.cta:hover, .cta:focus-visible { background: var(--paper); color: var(--accent); }
.cta:hover .cta-arrow { transform: translate(6px, -6px); }

/* ---------- Footer ---------- */
.foot { background: var(--paper); color: var(--paper-ink); padding: clamp(32px, 4vw, 56px) var(--margin) 24px; }
.foot-name { font: 400 clamp(60px, 22.6vw, 420px)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.012em; text-align: center; white-space: nowrap; color: var(--paper-ink); margin-inline: calc(var(--margin) * -.2); }
.foot-grid { display: grid; grid-template-columns: 5fr 1fr 6fr; margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.foot-places { grid-column: 1; display: grid; gap: 6px; font: 400 clamp(1.5rem, 1rem + 1.4vw, 2.25rem)/1.15 var(--font-display); text-transform: uppercase; }
.foot-places a { color: var(--accent); text-decoration: none; }
.foot-places a:hover { color: var(--paper-ink); }
.foot-links { grid-column: 3; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 32px; font-size: var(--step-small); font-weight: 600; align-content: start; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.legal { display: flex; justify-content: space-between; margin-top: clamp(48px, 6vw, 88px); font-size: var(--step-small); }

/* ---------- Entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-places, .foot-links { grid-column: 1; }
  .panel-grid { grid-template-columns: 1fr; align-content: center; }
  .panel { min-height: 0; }
  .panel-grid { min-height: 0; padding-block: clamp(64px, 14vw, 112px); }
  .panel-copy { position: static; height: auto; }
  .panel-img { max-height: 44svh; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .row { font-size: 9.6vw; min-height: 84px; padding-top: 28px; }
  html[lang="ar"] .row { font-size: 8.4vw; }
  .cta { min-height: 0; padding-bottom: 0; height: 52vw; min-height: 260px; }
  .cta-word { font-size: 40vw; }
  html[lang="ar"] .cta-word { font-size: 34vw; }
  html[lang="ar"] .verb { font-size: 26vw; }
  .foot-name { font-size: 22.6vw; }
  .foot-links { grid-template-columns: repeat(2, auto); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step, .print, .round, .cta-arrow { transition: none; }
}

/* ---------- Language: Arabic (RTL, default) and English ---------- */
html[lang="ar"] .en, html[lang="en"] .ar { display: none !important; }
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.6; }
/* Arabic joins letters: no tracking, no caps, a heavier cut of one Arabic family for display. */
html[lang="ar"] :is(.h-mid, .verb, .facts dt, .menu-table th, .group th, .prints-h, .row, .cta-word, .foot-places, .menu-table .cur, .size, .hero-sub, .btn, .lang-btn) { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; }
html[lang="ar"] :is(.h-mid, .verb, .facts dt, .menu-table th, .group th, .prints-h, .row, .cta-word, .foot-places) { font-weight: 900; line-height: 1.18; }
html[lang="ar"] .h-mid { line-height: 1.12; }
html[lang="ar"] .verb { line-height: 1.05; font-size: clamp(100px, 15vw, 290px); }
html[lang="ar"] .cta-word { font-size: clamp(100px, 30vw, 560px); line-height: .95; bottom: 4px; }
html[lang="ar"] .row { font-size: clamp(2rem, .8rem + 4.6vw, 4.5rem); }
html[lang="ar"] .foot-places { line-height: 1.3; }
html[lang="ar"] .cta-arrow, html[lang="ar"] .round svg { transform: scaleX(-1); }
html[lang="ar"] .cta:hover .cta-arrow { transform: scaleX(-1) translate(6px, -6px); }
html[lang="ar"] .hi-link:hover .round { transform: rotate(-45deg) scale(1.08); }
.foot-name { direction: ltr; unicode-bidi: isolate; }

.lang-btn { background: transparent; color: inherit; border: 0; border-radius: 0; min-height: 44px; min-width: 44px; padding: 0 8px; font: 600 1rem/1 var(--font-text); cursor: pointer; transition: opacity .2s; }
.lang-btn:hover { opacity: .7; }

.hot { color: var(--accent-light); font-weight: 600; }
.panel-red .hot { color: var(--paper); }
.inorder { display: block; color: var(--ink); font-weight: 600; min-height: 0; }
.inorder:empty { display: none; }

.sizes { min-width: 0; }
.size-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.size { min-height: 40px; padding: 0 12px; background: var(--bg); color: var(--ink); border: 0; border-radius: 0; font: 600 .875rem/1 var(--font-text); cursor: pointer; transition: background-color .15s, color .15s, transform .1s; }
.size:hover { background: var(--surface-2); }
.size[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); }
.size:active { transform: scale(.95); }

.fields .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: var(--step-small); }
.check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }

/* ---------- Cart: a bar once something is added, a slide-in cart with the checkout form ---------- */
.cart-bar { position: fixed; inset-inline: var(--margin); bottom: 16px; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 0 20px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; font: 600 1.0625rem/1 var(--font-text); cursor: pointer; max-width: 640px; margin-inline: auto; transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.cart-bar:hover { background: var(--paper); color: var(--accent); }
.cart-bar:active { transform: scale(.985); }
.cart-bar[hidden] { display: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-inline-end: 8px; background: var(--paper); color: var(--accent); font-variant-numeric: tabular-nums; }
.cart-bar:hover .cart-count { background: var(--accent); color: var(--paper); }
.cart-bar-total { font-variant-numeric: tabular-nums; }
body.cart-open { overflow: hidden; }
.cart-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); }
.cart-overlay[hidden] { display: none; }
.cart { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 80; width: min(520px, 100vw); overflow-y: auto; background: var(--surface); color: var(--ink); padding: 20px var(--margin) 32px; visibility: hidden; transform: translateX(calc(100% * var(--dir, 1))); transition: transform .3s var(--ease), visibility 0s linear .3s; }
html[dir="rtl"] { --dir: -1; }
.cart.open { visibility: visible; transform: none; transition: transform .3s var(--ease); }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-title { font: 400 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-display); text-transform: uppercase; }
html[lang="ar"] .cart-title { font-family: var(--font-ar); font-weight: 900; text-transform: none; line-height: 1.2; }
.cart-close { width: 48px; height: 48px; background: var(--bg); color: var(--ink); border: 0; border-radius: 0; font-size: 1.75rem; line-height: 1; cursor: pointer; transition: background-color .15s; }
.cart-close:hover { background: var(--accent); }
.cart-lines { margin-top: 16px; display: grid; gap: 8px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; background: var(--bg); }
.cart-line-name { font: 400 1.25rem/1.15 var(--font-display); text-transform: uppercase; }
html[lang="ar"] .cart-line-name { font-family: var(--font-ar); font-weight: 900; text-transform: none; }
.cart-line-size { color: var(--muted); font-size: var(--step-small); font-weight: 400; font-family: var(--font-text); text-transform: none; }
html[lang="ar"] .cart-line-size { font-family: var(--font-ar); }
.cart-line-price { font: 400 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: end; }
.cart-line .qty { grid-column: 1 / -1; justify-content: space-between; }
.cart-remove { background: transparent; color: var(--muted); border: 0; padding: 8px 0; font: 600 var(--step-small)/1 var(--font-text); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.cart-remove:hover { color: var(--ink); }
.cart-empty { margin-top: 16px; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; font-size: var(--step-lead); }
.cart-total strong { font: 400 2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
html[lang="ar"] .cart-total strong { font-family: var(--font-text); font-weight: 600; }
#cart-form-slot .order-form { margin-top: 20px; padding: 20px; background: var(--bg); }
#cart-form-slot .order-total { display: none; }
#cart-form-slot .fields { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .cart, .cart.open { transition: none; } .cart-bar { transition: none; } }

.coupon-note { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: var(--step-small); }
.coupon-note.ok { color: var(--ok, #5ad17a); }
.coupon-note.err { color: #ff8a84; }

/* =====================================================================
   Ordering-first layout: sticky top bar, offers slider, category discs,
   sticky category chips, menu cards, points band.
   ===================================================================== */
html[lang="ar"] :is(.tag, .mode, .tb-branch, .slide h3, .slide p, .badge small, .cat-name, .menu-nav a, .club-title, .club-cards b, .club-cards span, .club-sub, .club-how) { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; }
html[lang="ar"] :is(.slide h3, .cat-name, .club-title, .tag) { font-weight: 900; line-height: 1.2; }
html { scroll-padding-top: 132px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px 14px; padding: 8px var(--margin); background: var(--bg); }
.tb-logo { margin-inline-end: auto; display: block; flex: none; }
.tb-logo img { width: 48px; height: 48px; }
.tb-modes { display: flex; background: var(--surface); padding: 3px; gap: 3px; }
.mode { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: transparent; color: var(--muted); border: 0; border-radius: 0; font: 600 .9375rem/1 var(--font-text); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.mode svg, .tb-branch svg, .tb-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mode:hover { color: var(--ink); }
.mode[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tb-branch { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); padding-inline: 12px 4px; min-height: 50px; color: var(--ink); }
.tb-branch select { background: transparent; color: inherit; border: 0; min-height: 44px; width: auto; padding: 0 6px; font: 600 .9375rem/1 var(--font-text); cursor: pointer; }
.tb-branch select option { color: var(--paper-ink); }
.topbar .lang-btn { color: var(--ink); }
.tb-cart { position: relative; width: 50px; height: 50px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 0; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tb-cart:hover { background: var(--paper); color: var(--accent); }
.tb-cart b { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; background: var(--paper); color: var(--accent); font: 700 .8125rem/1 var(--font-text); }
.tb-cart b[hidden] { display: none; }


/* Section tag, like a label sitting on the heading */
.tag { display: inline-block; background: var(--paper); color: var(--paper-ink); padding: 8px 18px; font: 400 clamp(1.125rem, 1rem + .5vw, 1.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.offers { padding-top: clamp(40px, 5vw, 72px); }
.cats, .club { padding-top: clamp(48px, 6vw, 88px); }

/* Offers slider */
.slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 20px; padding-inline: var(--margin); scroll-padding-inline: var(--margin); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(88%, 880px); scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: clamp(260px, 30vw, 380px); padding: clamp(20px, 3vw, 44px); overflow: hidden; position: relative; }
.s-red { background: var(--accent); color: var(--accent-ink); }
.s-dark { background: var(--surface); color: var(--ink); }
.s-paper { background: var(--paper); color: var(--paper-ink); }
.slide h3 { font: 400 clamp(2rem, 1.2rem + 3.2vw, 4rem)/.95 var(--font-display); text-transform: uppercase; }
.slide p { margin: 12px 0 20px; max-width: 28ch; font-weight: 600; }
.s-paper .btn:hover { background: var(--paper-ink); color: var(--paper); }
.s-dark .btn:hover { background: var(--paper); color: var(--accent); }
.slide-art { position: relative; display: grid; place-items: center; align-self: stretch; }
.slide-art img { width: 100%; max-height: 300px; object-fit: contain; }
.slide-art .art-fries { position: absolute; width: 32%; inset-inline-start: 0; bottom: -6%; max-height: 80%; }
.badge { position: absolute; top: 0; inset-inline-end: 0; display: grid; place-items: center; width: clamp(72px, 9vw, 110px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--accent); font: 400 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/.9 var(--font-display); text-align: center; transform: rotate(-8deg); }
.badge small { display: block; font: 600 .6em/1 var(--font-text); text-transform: uppercase; }
.s-paper .badge, .s-dark .badge { background: var(--accent); color: var(--accent-ink); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff55; transition: width .3s var(--ease), background-color .3s; cursor: pointer; }
.dots i.on { width: 28px; border-radius: 4px; background: var(--accent); }

/* Category discs */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: 24px; max-width: 1180px; }
.cat-grid a { display: grid; justify-items: center; text-decoration: none; }
.cat-disc { display: block; width: 100%; max-width: 190px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat-disc img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { margin-top: -22px; position: relative; z-index: 1; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; font: 400 1.125rem/1 var(--font-display); text-transform: uppercase; text-align: center; min-width: 70%; transition: background-color .2s, color .2s; }
.cat-grid a:hover .cat-disc { transform: translateY(-6px); box-shadow: 0 14px 0 -6px var(--accent); }
.cat-grid a:hover .cat-name { background: var(--paper); color: var(--accent); }

/* Points band */
.club-box { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(20px, 3vw, 48px); align-items: center; background: var(--accent); color: var(--accent-ink); padding: clamp(24px, 4vw, 56px); max-width: 1680px; width: calc(100% - 2 * var(--margin)); }
.club-title { margin: 14px 0 8px; font: 400 clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem)/.92 var(--font-display); text-transform: uppercase; }
.club-sub { max-width: 34ch; margin-bottom: 20px; font-weight: 600; }
.club-box .btn { background: var(--paper); color: var(--accent); }
.club-box .btn:hover { background: var(--paper-ink); color: var(--paper); }
.club-how { margin-top: 14px; font-size: var(--step-small); max-width: 42ch; opacity: .9; }
.club-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.club-cards li { background: var(--paper); color: var(--paper-ink); padding: 20px 16px; display: grid; gap: 10px; align-content: start; min-height: 150px; }
.club-cards b { font: 400 clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem)/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.club-cards span { font-size: var(--step-small); line-height: 1.35; }

/* Menu: sticky chips + card grid */
.menu { padding-block: clamp(48px, 6vw, 96px); }
.menu .h-mid { font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem); }
.menu-nav { position: sticky; top: 66px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 24px calc(var(--margin) * -1) 0; padding: 10px var(--margin); background: var(--surface); }
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a { flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; background: var(--bg); color: var(--ink); text-decoration: none; font: 400 1.0625rem/1 var(--font-display); text-transform: uppercase; transition: background-color .2s, color .2s; }
.menu-nav a:hover { background: #3a3a3e; }
.menu-nav a.on { background: var(--accent); color: var(--accent-ink); }
.menu-table, .menu-table tbody, .menu-table tr, .menu-table th, .menu-table td, .menu-table caption { display: block; }
.menu-table { margin-top: 8px; }
.menu-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; padding-top: clamp(28px, 4vw, 56px); }
.menu-table tr.group { grid-column: 1 / -1; padding: 0; }
.menu-table .group th { text-align: start; font: 400 clamp(2rem, 1.4rem + 2.6vw, 3.75rem)/.95 var(--font-display); text-transform: uppercase; color: var(--ink); border-inline-start: 8px solid var(--accent); padding-inline-start: 14px; }
.menu-table tr[data-id] { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "thumb thumb" "name price" "desc desc" "sizes sizes" "qty qty"; align-content: start; gap: 8px 12px; padding: 0 0 16px; background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.menu-table tr[data-id]:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent); }
.menu-table .thumb { grid-area: thumb; background: var(--paper); aspect-ratio: 4 / 3; overflow: hidden; }
.menu-table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-table th[scope="row"] { grid-area: name; text-align: start; padding: 4px 0 0 16px; padding-inline: 16px 0; font: 400 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1.05 var(--font-display); text-transform: uppercase; }
.menu-table .price { grid-area: price; padding: 4px 16px 0 0; padding-inline: 0 16px; font: 400 clamp(1.375rem, 1.1rem + .8vw, 1.75rem)/1.05 var(--font-display); color: var(--accent-light); text-align: end; white-space: nowrap; }
.menu-table .desc { grid-area: desc; padding-inline: 16px; font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.menu-table .sizes { grid-area: sizes; padding-inline: 16px; }
.menu-table .sizes:empty { display: none; }
.menu-table .qty { grid-area: qty; padding-inline: 16px; justify-content: space-between; margin-top: 4px; }
.menu-table tr.has-qty { box-shadow: 0 0 0 2px var(--accent); }
.menu-table tr.has-qty .price, .menu-table tr.has-qty th[scope="row"] { color: var(--accent-light); }
.step { background: var(--surface); }
.menu-table .step[data-d="1"] { background: var(--accent); }
.menu-table .step[data-d="1"]:hover { background: var(--paper); color: var(--accent); }
html[lang="ar"] .menu-table th[scope="row"], html[lang="ar"] .menu-table .price { line-height: 1.25; font-family: var(--font-ar); text-transform: none; font-weight: 900; }
html[lang="ar"] .menu-nav a, html[lang="ar"] .menu-table .group th { font-family: var(--font-ar); font-weight: 900; text-transform: none; }

/* Address field only for delivery */
body[data-mode="pickup"] #addr-field, body[data-mode="dinein"] #addr-field { display: none; }

/* Slimmer smash panels now that ordering comes first */
.panel, .panel-grid { min-height: 0; }
.panel-grid { padding-block: clamp(48px, 7vw, 96px); }
.panel-copy { position: static; height: auto; }
.verb { font-size: clamp(80px, 12vw, 220px); }
html[lang="ar"] .verb { font-size: clamp(80px, 11vw, 200px); }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .tb-modes { order: 5; width: 100%; }
  .mode { flex: 1; justify-content: center; padding: 0 8px; }
  .tb-branch { order: 3; }
  .menu-nav { top: 124px; }
  html { scroll-padding-top: 180px; }
  .slide { grid-template-columns: 1fr; flex-basis: 86%; }
  .slide-art { min-height: 160px; }
  .slide-art img { max-height: 190px; }
  .club-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tb-logo img { width: 40px; height: 40px; }
  .tb-branch { padding-inline: 8px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .club-cards { grid-template-columns: 1fr; }
  .club-cards li { min-height: 0; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 14px; }
  .menu-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .menu-table tr[data-id] { grid-template-columns: 1fr; grid-template-areas: "thumb" "name" "price" "desc" "sizes" "qty"; padding-bottom: 12px; }
  .menu-table .price { text-align: start; padding-inline: 12px 0; }
  .menu-table th[scope="row"], .menu-table .desc, .menu-table .sizes, .menu-table .qty { padding-inline: 12px; }
  .menu-table .price { padding-inline: 12px; }
  .menu-table .step { width: 42px; height: 42px; }
  .size { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) { .cat-disc, .menu-table tr[data-id] { transition: none; } .dots i { transition: none; } }
.menu-table .qty { display: flex; align-items: center; gap: 6px; }
.menu-table .qty output { flex: 1; text-align: center; }
.cat-grid { max-width: none; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* Items without a photo yet: a red tile with the logo instead of a white box */
.menu-table .thumb.ph, .cat-disc.ph { background: var(--accent); }
.menu-table .thumb.ph img { object-fit: contain; padding: 14%; }
.cat-disc.ph img { object-fit: contain; padding: 16%; }
.mode { white-space: nowrap; }
@media (max-width: 640px) {
  #g-combo tr[data-id] { grid-column: 1 / -1; }
  .mode { gap: 6px; font-size: .875rem; }
}

/* ---------- Account, address, tracking ---------- */
.tb-acct { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; font: 600 .9375rem/1 var(--font-text); cursor: pointer; transition: background-color .2s; max-width: 150px; }
.tb-acct svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.tb-acct:hover { background: #3a3a3e; }
.tb-acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="ar"] .tb-acct { font-family: var(--font-ar); }



.loc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.loc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--bg); color: var(--ink); border: 2px solid #ffffff33; border-radius: 0; font: 600 .9375rem/1 var(--font-text); cursor: pointer; transition: background-color .2s, border-color .2s; }
.loc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loc-btn:hover { background: var(--accent); border-color: var(--accent); }
.loc-btn:disabled { opacity: .6; cursor: progress; }
.loc-status { font-size: var(--step-small); color: var(--muted); }
.loc-status a { color: var(--accent-light); font-weight: 600; }
.addr-block { display: grid; gap: 12px; }
.addr-block label { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 600; }
.addr-block [hidden], .acct [hidden] { display: none !important; }

.acct { width: min(560px, 100vw); max-height: 100svh; height: 100svh; margin: 0; margin-inline-start: auto; padding: 20px var(--margin) 40px; background: var(--surface); color: var(--ink); border: 0; overflow-y: auto; }
.acct::backdrop { background: rgba(0, 0, 0, .6); }
html[dir="rtl"] .acct { margin-inline-start: 0; margin-inline-end: auto; }
.acct-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.acct-lead { color: var(--muted); margin-bottom: 16px; }
.acct-form { display: grid; gap: 14px; margin-bottom: 16px; }
.acct-form label { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 600; }
.link-btn { background: transparent; border: 0; padding: 8px 0; color: var(--muted); font: 600 var(--step-small)/1 var(--font-text); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; text-align: start; }
.link-btn:hover { color: var(--ink); }
.btn-ghost { background: transparent; border: 2px solid #ffffff33; color: var(--ink); }
.btn-ghost:hover { background: var(--paper); color: var(--accent); }
.acct-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--accent); padding: 18px; margin-bottom: 8px; }
.acct-hi { font: 400 1.75rem/1 var(--font-display); text-transform: uppercase; }
html[lang="ar"] .acct-hi { font-family: var(--font-ar); font-weight: 900; text-transform: none; }
.acct-phone { opacity: .9; font-size: var(--step-small); margin-top: 4px; }
.acct-pts { text-align: center; background: var(--paper); color: var(--accent); padding: 8px 14px; display: grid; }
.acct-pts b { font: 400 2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.acct-pts span, .acct-pts i { font-size: .75rem; font-style: normal; font-weight: 600; color: var(--paper-ink); }
.acct-h3 { margin: 22px 0 10px; font: 400 1.5rem/1 var(--font-display); text-transform: uppercase; color: var(--accent-light); }
html[lang="ar"] .acct-h3 { font-family: var(--font-ar); font-weight: 900; text-transform: none; }
.acct-list { display: grid; gap: 8px; margin-bottom: 14px; }
.acct-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); }
.acct-item-main { display: grid; gap: 4px; min-width: 0; font-size: var(--step-small); }
.acct-item-main span { color: var(--muted); overflow-wrap: anywhere; }
.acct-item-main a { color: var(--accent-light); font-weight: 600; }
.acct-item-act { display: grid; justify-items: end; flex: none; }
.acct-empty { color: var(--muted); padding: 8px 0; font-size: var(--step-small); }
.acct-consent { margin: 16px 0; }
.chip { flex: none; padding: 6px 10px; background: #3a3a3e; font-size: .8125rem; font-weight: 600; }
.chip-new, .chip-confirmed, .chip-preparing, .chip-ready, .chip-out { background: var(--accent); }
.chip-delivered { background: #2f7d4a; }
.chip-cancelled { background: #555; }

/* ---------- Delivery map picker ---------- */
.mapdlg { width: min(720px, 100vw); }
.map-tools { display: grid; gap: 10px; margin-bottom: 10px; }
.map-tools label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 600; }
.map-search { display: flex; gap: 8px; }
.map-search input { flex: 1; min-width: 0; }
.map-search .btn { min-height: 52px; padding: 0 18px; }
.map-results { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; background: var(--bg); padding: 6px 12px; }
.map-results .link-btn { width: 100%; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid #ffffff1a; }
.map-results .link-btn:hover { color: var(--accent-light); }
#map { height: clamp(260px, 42svh, 420px); background: #2a2a2d; margin-bottom: 8px; z-index: 0; }
.map-hint { color: var(--muted); font-size: var(--step-small); margin-bottom: 12px; }
.map-text { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 600; margin-bottom: 12px; }
.mapdlg .btn { width: 100%; }
.leaflet-container { font-family: var(--font-text); }
.mapdlg .map-search .btn { width: auto; flex: none; }

/* Delivery fee lines in the cart */
.cart-fee strong { font-size: 1.5rem; }
.cart-grand { border-top: 2px solid #ffffff22; padding-top: 12px; }
.cart-hint { margin-top: 10px; padding: 10px 12px; background: var(--bg); color: var(--muted); font-size: var(--step-small); }
#addr-zone-wrap[hidden] { display: none; }

/* ---------- Privacy / terms / 404 ---------- */
.docpage { background: var(--bg); }
.doc { max-width: 860px; padding-block: clamp(32px, 5vw, 72px); }
.doc .h-mid { margin-bottom: 24px; }
.doc-sec { margin-bottom: 28px; }
.doc-sec h2 { font: 400 1.5rem/1.1 var(--font-display); text-transform: uppercase; color: var(--accent-light); margin-bottom: 10px; }
html[lang="ar"] .doc-sec h2 { font-family: var(--font-ar); font-weight: 900; text-transform: none; }
.doc-sec p { margin-bottom: 10px; color: var(--muted); max-width: 70ch; }
.doc-foot { padding-top: 24px; }
.doc-foot .legal { margin-top: 0; }

/* Online orders paused */
.closed { position: sticky; top: 66px; z-index: 46; background: #111; color: #fff; border-bottom: 4px solid var(--accent); padding: 12px var(--margin); font-weight: 600; text-align: center; }
.closed[hidden] { display: none; }
@media (max-width: 900px) { .closed { top: 124px; } }

/* Very narrow phones: one menu card per row */
@media (max-width: 380px) { .menu-table tbody { grid-template-columns: minmax(0, 1fr); } .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Let grid children shrink below their content width (date inputs are wide by default) */
.book-grid > *, .fields > *, .order-form { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; }
input[type="datetime-local"] { -webkit-appearance: none; appearance: none; }
body { overflow-x: clip; }
.size { min-width: 44px; min-height: 44px; }

/* ---- Checkout: which branch delivers to the chosen area ---- */
#zone-note { margin: 6px 0 0; font-size: .8125rem; line-height: 1.35; opacity: .8; }

/* ======================= Phone first screen (its own composition, not the desktop one squeezed) ======================= */
.tb-branch-cap { display: none; }
@media (max-width: 640px) {
  /* header: one slim row (logo, branch, language, account, cart) and the order-mode switch under it */
  .topbar { flex-wrap: wrap; gap: 6px; row-gap: 8px; padding: 8px var(--margin) 10px; align-items: center; }
  .tb-logo { order: 1; margin-inline-end: 0; }
  .tb-branch { order: 2; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "pin cap" "pin sel"; column-gap: 6px; align-items: center; min-height: 48px; padding: 0 2px 0 10px; }
  .tb-branch svg { grid-area: pin; width: 18px; height: 18px; }
  .tb-branch-cap { display: block; grid-area: cap; font: 500 .75rem/1 var(--font-text); color: var(--muted); padding-top: 7px; }
  .tb-branch select { grid-area: sel; min-height: 26px; width: 100%; padding: 0; font-size: 1rem; text-overflow: ellipsis; }
  .topbar .lang-btn { order: 3; min-width: 40px; min-height: 44px; padding: 0 4px; }
  .tb-acct { order: 4; width: 42px; height: 44px; padding: 0; justify-content: center; }
  .tb-acct-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tb-cart { order: 5; width: 46px; height: 48px; }
  .tb-modes { order: 6; width: 100%; }
  .mode { min-height: 42px; font-size: .875rem; gap: 6px; }
  .menu-nav { top: 112px; }
  html { scroll-padding-top: 160px; }
}

.acct-invite { margin: 0 0 12px; padding: 12px 14px; background: var(--surface); font-weight: 600; word-break: break-word; }

/* ---------- Thin red scrollbar (the page and every scrolling panel), square like the rest of the design ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }
::-webkit-scrollbar-corner { background: var(--bg); }
@-moz-document url-prefix() { * { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); } }

/* ======================= Hero: pressed flat, piled high (the burger is the picture, bigger than seems reasonable) ======================= */
:root { --accent-deep: #c41913; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; min-height: min(calc(100svh - 92px), 860px); padding: clamp(32px, 6vh, 72px) var(--margin) clamp(40px, 7vh, 80px); background: var(--accent); color: var(--accent-ink); overflow: hidden; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; max-width: 40rem; }
.hero h1 { font: 400 clamp(56px, 7.4vw, 132px)/.9 var(--font-display); text-transform: uppercase; letter-spacing: -.012em; margin: 0 0 clamp(16px, 2.4vh, 26px); }
.hero h1 .ln { display: block; }
.hero-lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.45; font-weight: 600; max-width: 32ch; margin: 0 0 clamp(20px, 3.4vh, 36px); }
.hero-buy { display: grid; gap: 14px; justify-items: start; }
.hero-buy[hidden] { display: none; }
.hero-name { font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .005em; min-height: 1em; }
.hero-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.hsize { min-height: 46px; padding: 0 18px; background: var(--accent-deep); color: var(--accent-ink); border: 0; border-radius: 0; font: 600 .9375rem/1 var(--font-text); cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.hsize:hover { background: var(--paper-ink); }
.hsize[aria-pressed="true"] { background: var(--paper); color: var(--accent); }
.hsize:active { transform: translateY(2px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.hero-actions .btn { min-height: 56px; padding-inline: 28px; display: inline-flex; align-items: center; gap: 10px; }
.hero-actions .btn b { font-weight: 700; }
.hero-link { background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-ink); font: 700 1rem/1 var(--font-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; cursor: pointer; }
.hero-link:hover { text-decoration-color: transparent; }
.hero-fallback { display: none; }
html:not(.js) .hero-fallback { display: inline-flex; }

.hero-art { position: absolute; right: 2vw; bottom: 5vh; width: min(56vw, 920px); height: auto; z-index: 1; overflow: visible; pointer-events: none; }
.hero-art .patty, .hero-art .cheese, .hero-art .bin, .hero-art .crumb, .hero-art #hero-press-in { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-art .bin { transform-origin: 50% 50%; }
.hero-art .bob { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
html[lang="ar"] .hero h1 { font: 900 clamp(40px, 4.3vw, 80px)/1.2 var(--font-ar); text-transform: none; letter-spacing: 0; }
html[lang="ar"] .hero-name, html[lang="ar"] .hsize, html[lang="ar"] .hero-link { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; }
html[lang="ar"] .hero-name { font-weight: 900; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); line-height: 1.2; }
html[lang="ar"] .hero-art { right: auto; left: 3vw; }

@media (max-width: 900px) {
  /* phone and tablet: the title, one line, the burger, then the thing to tap, all on the first screen */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 24px var(--margin) 34px; gap: 0; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: clamp(52px, 15.4vw, 112px); margin-bottom: 12px; }
  html[lang="ar"] .hero h1 { font-size: clamp(38px, 10.4vw, 84px); }
  .hero-lead { order: 2; margin-bottom: 0; max-width: 30ch; font-size: 1.0625rem; }
  .hero-art { order: 3; position: relative; right: auto; bottom: auto; left: auto; width: min(100%, 680px); margin: 8px auto 4px; }
  html[lang="ar"] .hero-art { left: auto; right: auto; }
  .hero-buy { order: 4; width: 100%; gap: 12px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-fallback { order: 4; }
}
@media (max-width: 640px) { .hero-lead .more { display: none; } .hero-art { width: 100%; margin: 22px 0 8px; } }
@media (prefers-reduced-motion: reduce) { .hsize { transition: none; } .hero-art .bob { animation: none; } }
@media (min-width: 901px) and (max-width: 1200px) { .hero-art { width: 50vw; right: 2vw; } html[lang="ar"] .hero-art { left: 2vw; right: auto; } }


/* ======================= Order tracker: slim bar + animated sheet ======================= */
.trk-bar { position: sticky; top: 66px; z-index: 45; display: flex; align-items: stretch; background: var(--paper); color: var(--paper-ink); }
.trk-bar[hidden] { display: none; }
@media (max-width: 900px) { .trk-bar { top: 124px; } }
.trk-open { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px var(--margin) 12px; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.trk-mini { position: relative; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--accent); }
.trk-mini i { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: trkping 1.6s ease-out infinite; }
@keyframes trkping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
.trk-bar[data-final="1"] .trk-mini i { animation: none; }
.trk-bar.cancelled .trk-mini { background: #6b6b70; }
.trk-text { display: grid; gap: 2px; min-width: 0; }
.trk-text b { font: 700 1rem/1.2 var(--font-text); overflow-wrap: anywhere; }
.trk-text small { color: #555; font-size: .8125rem; min-height: 1em; }
.trk-prog { position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: #e8e8ea; }
.trk-prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); transition: width .9s var(--ease); }
.trk-bar.cancelled .trk-prog i { background: #6b6b70; }
.trk-bar .track-x { background: transparent; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; min-width: 52px; cursor: pointer; }

dialog.trk-sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
dialog.trk-sheet::backdrop { background: rgba(0, 0, 0, .62); animation: trkfade .25s ease-out; }
@keyframes trkfade { from { opacity: 0; } }
.trk-card { position: absolute; inset-inline: 0; bottom: 0; max-height: 94dvh; overflow: auto; display: grid; gap: 14px; padding: 18px var(--margin) calc(34px + env(safe-area-inset-bottom, 0px)); background: var(--accent); color: var(--accent-ink); animation: trkup .42s var(--ease); }
@keyframes trkup { from { transform: translateY(48px); opacity: 0; } }
@media (min-width: 720px) {
  .trk-card { inset: auto; left: 50%; top: 50%; width: min(540px, 92vw); transform: translate(-50%, -50%); padding: 24px 28px 28px; animation: trkpop .4s var(--ease); }
  @keyframes trkpop { from { transform: translate(-50%, -46%); opacity: 0; } }
}
.trk-x { justify-self: end; background: rgba(0, 0, 0, .22); border: 0; color: #fff; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.trk-x:hover { background: rgba(0, 0, 0, .4); }
.trk-stage { width: 100%; max-height: 30dvh; aspect-ratio: 16 / 10; margin-top: -6px; }
.trk-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trk-title { font: 400 clamp(2rem, 7vw, 2.75rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; margin: 4px 0 0; min-height: 1em; }
html[lang="ar"] .trk-title { font: 900 clamp(1.6rem, 6vw, 2.25rem)/1.2 var(--font-ar); text-transform: none; }
.trk-desc { font-size: 1.0625rem; line-height: 1.45; font-weight: 600; margin: 0; min-height: 3em; }
.trk-meta { font-size: .9375rem; opacity: .9; margin: 0; }
.trk-note { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 6px 0 0; padding: 12px 14px; background: rgba(0, 0, 0, .2); }
.trk-note:empty { display: none; }
.trk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 10px; }
.trk-card.is-sending .trk-steps, .trk-card.is-sending .trk-meta, .trk-card.is-sending .trk-actions { opacity: 0; pointer-events: none; }
.trk-steps, .trk-meta, .trk-actions { transition: opacity .3s var(--ease); }

/* the progress line */
.trk-steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); margin: 8px 0 2px; padding: 0; list-style: none; text-align: center; font-size: .8125rem; font-weight: 600; }
.trk-line { position: absolute; top: 6px; inset-inline: calc(50% / var(--n, 5)); height: 4px; background: rgba(255, 255, 255, .32); }
.trk-line i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #fff; transition: width .9s var(--ease); }
.trk-step { position: relative; padding-top: 22px; opacity: .8; transition: opacity .4s var(--ease); }
.trk-step::before { content: ""; position: absolute; top: 0; inset-inline-start: 50%; margin-inline-start: -8px; width: 16px; height: 16px; border-radius: 50%; background: #c41913; border: 3px solid rgba(255, 255, 255, .45); transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease); }
.trk-step.done, .trk-step.cur { opacity: 1; }
.trk-step.done::before { background: #fff; border-color: #fff; }
.trk-step.cur::before { background: #fff; border-color: #fff; transform: scale(1.25); animation: trkdot 1.6s ease-out infinite; }
@keyframes trkdot { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
.trk-card[data-stage="delivered"] .trk-step.cur::before, .trk-card[data-stage="cancelled"] .trk-step.cur::before { animation: none; }
.trk-card[data-stage="cancelled"] { background: #3a3a3e; }
.trk-card { transition: background-color .5s var(--ease); }

/* scenes: all drawn, one shown; moving parts only run in the visible one */
.sc { opacity: 0; transform: scale(.94); transform-origin: 50% 60%; transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.trk-card[data-stage="sending"] .sc[data-s="sending"], .trk-card[data-stage="new"] .sc[data-s="new"], .trk-card[data-stage="confirmed"] .sc[data-s="confirmed"], .trk-card[data-stage="preparing"] .sc[data-s="preparing"],
.trk-card[data-stage="ready"] .sc[data-s="ready"], .trk-card[data-stage="out"] .sc[data-s="out"], .trk-card[data-stage="delivered"] .sc[data-s="delivered"], .trk-card[data-stage="cancelled"] .sc[data-s="cancelled"] { opacity: 1; transform: none; }
.s-patty, .p-flip, .p-spat, .r-bag, .r-star, .c-disc, .c-ring, .n-badge, .d-burger, .d-badge, .o-wheel, .o-bike, .o-city, .o-dash { transform-box: fill-box; }
.s-patty { transform-origin: 50% 100%; } .p-flip { transform-origin: 50% 100%; } .p-spat { transform-origin: 50% 100%; } .r-bag { transform-origin: 50% 100%; } .r-star, .c-disc, .c-ring, .n-badge, .d-badge { transform-origin: 50% 50%; } .d-burger { transform-origin: 50% 100%; }
.o-wheel { transform-box: view-box; }

.trk-card[data-stage="sending"] .s-press { animation: spress 1.3s ease-in-out infinite; }
.trk-card[data-stage="sending"] .s-patty { animation: spatty 1.3s ease-in-out infinite; }
@keyframes spress { 0%, 100% { transform: translateY(0); } 34%, 62% { transform: translateY(46px); } }
@keyframes spatty { 0%, 30% { transform: scale(1); } 38%, 62% { transform: scale(1.32, .58); } 100% { transform: scale(1); } }

.trk-card[data-stage="new"] .n-ticket { animation: ticketin .85s cubic-bezier(.2, 1.25, .4, 1) both; }
.trk-card[data-stage="new"] .n-badge { animation: pop .5s .65s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes ticketin { from { transform: translateY(-110px); } }
@keyframes pop { from { transform: scale(0); } }

.trk-card[data-stage="confirmed"] .c-disc { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.trk-card[data-stage="confirmed"] .c-tick { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .5s .25s ease-out forwards; }
.trk-card[data-stage="confirmed"] .c-ring { opacity: 0; animation: ring 1.9s .5s ease-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }

.trk-card[data-stage="preparing"] .p-flip { animation: flip 1.9s ease-in-out infinite; }
.trk-card[data-stage="preparing"] .p-steam { opacity: 0; animation: steam 2.1s ease-in-out infinite; }
.trk-card[data-stage="preparing"] .p-steam.st1 { animation-delay: .6s; } .trk-card[data-stage="preparing"] .p-steam.st2 { animation-delay: 1.2s; }
.trk-card[data-stage="preparing"] .p-spat { animation: spat 1.9s ease-in-out infinite; }
@keyframes flip { 0%, 58% { transform: translateY(0) scaleY(1); } 68% { transform: translateY(-40px) scaleY(.3); } 78% { transform: translateY(-40px) scaleY(1); } 90% { transform: translateY(0) scaleY(.85); } 100% { transform: translateY(0) scaleY(1); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: .85; } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes spat { 0%, 52% { transform: rotate(0); } 62% { transform: rotate(-26deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }

.trk-card[data-stage="ready"] .r-bag { animation: bag 1.4s ease-in-out infinite; }
.trk-card[data-stage="ready"] .r-star { animation: twinkle 1.7s ease-in-out infinite; }
.trk-card[data-stage="ready"] .r-star.k2 { animation-delay: .55s; } .trk-card[data-stage="ready"] .r-star.k3 { animation-delay: 1.1s; }
@keyframes bag { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes twinkle { 0%, 100% { transform: scale(.3); opacity: .2; } 50% { transform: scale(1); opacity: 1; } }

.trk-card[data-stage="out"] .o-city { animation: citymove 9s linear infinite; }
.trk-card[data-stage="out"] .o-dash { animation: dashmove .9s linear infinite; }
.trk-card[data-stage="out"] .o-bike { animation: bikebob .5s ease-in-out infinite; }
.trk-card[data-stage="out"] .o-wheel { animation: spin .6s linear infinite; }
@keyframes citymove { to { transform: translateX(-320px); } }
@keyframes dashmove { to { transform: translateX(-46px); } }
@keyframes bikebob { 50% { transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.trk-card[data-stage="delivered"] .d-burger { animation: dland .85s cubic-bezier(.2, 1.2, .3, 1) both; }
.trk-card[data-stage="delivered"] .d-badge { animation: pop .5s .75s cubic-bezier(.2, 1.7, .4, 1) both; }
.trk-card[data-stage="delivered"] .d-conf { animation: conf 2.1s ease-in both; }
@keyframes dland { from { transform: translateY(-80px) scale(.92, 1.08); } 55% { transform: translateY(0) scale(1.05, .93); } to { transform: none; } }
@keyframes conf { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(230px) rotate(420deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .trk-card, .trk-card *, .trk-bar * { animation: none !important; transition: none !important; }
  .c-tick { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .d-conf, .c-ring { display: none; }
}

/* ---------- Statistics consent (only on a build with a measurement id) ---------- */
.consent { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; max-width: 640px; margin-inline: auto; padding: 14px 16px; background: var(--paper); color: var(--paper-ink); animation: trkup .4s var(--ease); }
.consent p { flex: 1 1 280px; margin: 0; font-size: .9375rem; line-height: 1.4; }
.consent-more { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.consent .btn { min-height: 44px; padding-inline: 22px; background: var(--accent); color: var(--accent-ink); }
.consent .hero-link { color: var(--paper-ink); }
body.cart-open .consent { display: none; }

/* FAQ (answers for search and AI assistants, also useful to people) */
.faq { padding: var(--gap-section) var(--margin) clamp(48px, 7vw, 96px); background: var(--surface-2); }
.faq-h { font: 400 clamp(36px, 5vw, 72px)/.95 var(--font-display); text-transform: uppercase; margin: 0 0 clamp(20px, 3vw, 40px); }
.faq-list { max-width: 56rem; display: grid; gap: 2px; }
.faq-item { background: var(--surface); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: var(--step-body); display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 1.75rem/1 var(--font-display); color: var(--accent-light); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: var(--step-body); line-height: 1.6; max-width: 62ch; }
.faq-item summary:focus-visible { outline: 3px solid var(--accent-light); outline-offset: -3px; }
/* Combo switch on every burger, and the one-tap combo button in the cart */
.combo-toggle { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0 0; min-height: 44px; padding: 6px 12px; border: 2px dashed var(--paper); background: transparent; color: var(--ink); text-align: start; font: 600 .875rem/1.2 var(--font-text); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.combo-toggle:hover { background: var(--surface-2); }
.combo-toggle .ct-box { flex: none; width: 20px; height: 20px; border: 2px solid currentColor; display: grid; place-items: center; }
.combo-toggle .ct-box::after { content: ""; width: 10px; height: 5px; border: solid currentColor; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.combo-toggle .ct-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.combo-toggle .ct-text b { font-weight: 800; }
.combo-toggle .ct-text small { font-size: .75rem; font-weight: 500; opacity: .75; }
.combo-toggle .ct-price { flex: none; padding: 4px 8px; background: var(--paper); color: var(--paper-ink); font-weight: 800; }
.combo-toggle[aria-pressed="true"] { background: var(--accent); border: 2px solid var(--accent); color: var(--accent-ink); }
.combo-toggle[aria-pressed="true"] .ct-box::after { opacity: 1; }
.combo-toggle[aria-pressed="true"] .ct-price { background: var(--accent-ink); color: var(--accent); }
.combo-toggle:active { transform: scale(.98); }
html[lang="ar"] .combo-toggle { font-family: var(--font-ar); }
.cart-combo { grid-column: 1 / -1; justify-self: start; margin-top: 8px; min-height: 40px; padding: 0 14px; border: 2px solid var(--accent); background: transparent; color: var(--ink); font: 700 .9rem/1 var(--font-text); cursor: pointer; }
.cart-combo:active { background: var(--accent); color: var(--accent-ink); }
