/* =========================================================================
   PIZZA LAHBIB
   Palette taken from the restaurant's own menu board: charcoal black,
   tomato red (single accent). Green is used only as a "vegetarian" signal.
   Radius rule: cards 20px, inputs 14px, buttons/chips full pill.
   z-index scale: grain 90 > toast 80 > dialogs (top layer) > cartbar 40 > nav 30 > menubar 20
   ========================================================================= */

:root {
  --bg: #121212;
  --bg-2: #181817;
  --surface: #1e1e1d;
  --surface-2: #282826;
  --line: rgb(255 255 255 / .09);
  --line-strong: rgb(255 255 255 / .16);
  --text: #f4f1ec;
  --muted: #aaa49b;
  --accent: #cc3322;
  --accent-hover: #b52a1b;
  --accent-text: #ff7a66;
  --accent-soft: rgb(204 51 34 / .16);
  --on-accent: #fff;
  --veg: #5cb26b;
  --wa: #157a40;
  --shadow: 0 24px 60px -28px rgb(0 0 0 / .75);
  --shadow-sm: 0 8px 24px -14px rgb(0 0 0 / .6);
  --scrim: rgb(8 8 8 / .62);

  --r-card: 20px;
  --r-input: 14px;
  --r-pill: 999px;
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Yellowtail", cursive;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f2ef;
  --bg-2: #ebe9e5;
  --surface: #ffffff;
  --surface-2: #f1efeb;
  --line: rgb(20 18 16 / .09);
  --line-strong: rgb(20 18 16 / .18);
  --text: #171615;
  --muted: #5e5a54;
  --accent-text: #b82d1d;
  --accent-soft: rgb(204 51 34 / .1);
  --shadow: 0 24px 50px -30px rgb(70 30 20 / .35);
  --shadow-sm: 0 8px 20px -14px rgb(70 30 20 / .3);
  --scrim: rgb(20 18 16 / .45);
  --veg: #2c7a3c;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f2ef; --bg-2: #ebe9e5; --surface: #ffffff; --surface-2: #f1efeb;
    --line: rgb(20 18 16 / .09); --line-strong: rgb(20 18 16 / .18);
    --text: #171615; --muted: #5e5a54; --accent-text: #b82d1d; --accent-soft: rgb(204 51 34 / .1);
    --shadow: 0 24px 50px -30px rgb(70 30 20 / .35); --shadow-sm: 0 8px 20px -14px rgb(70 30 20 / .3);
    --scrim: rgb(20 18 16 / .45);
    --veg: #2c7a3c;
    color-scheme: light;
  }
}

/* Arabic typography */
:root[lang="ar"] { --f-display: "Cairo", system-ui, sans-serif; --f-body: "Cairo", system-ui, sans-serif; }

/* ------------------------------ BASE ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 72px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); transition: top .2s; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.flip-rtl { display: inline-block; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.h2 {
  font: 700 clamp(32px, 4.6vw, 56px)/1.04 var(--f-display);
  letter-spacing: -.03em; margin: 0 0 28px; text-wrap: balance;
}
[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.25; }
.h3 { font: 700 20px/1.2 var(--f-display); margin: 0; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 0 28px; }

/* ------------------------------ BUTTONS ------------------------------ */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: scale(.97); }
.btn--primary { --b-bg: var(--accent); --b-fg: var(--on-accent); box-shadow: 0 10px 30px -12px rgb(204 51 34 / .7); }
.btn--primary:hover { --b-bg: var(--accent-hover); }
.btn--ghost { --b-bg: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { --b-bg: var(--surface-2); }
.btn--light { --b-bg: #f6f3ee; --b-fg: #171615; }
.btn--light:hover { --b-bg: #fff; }
.btn--wa { --b-bg: var(--wa); --b-fg: #fff; }
.btn--wa:hover { --b-bg: #116534; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
/* click ripple */
.btn .ripple { position: absolute; border-radius: 50%; background: rgb(255 255 255 / .35); transform: scale(0); animation: ripple .6s var(--ease); pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: 19px;
  transition: background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.linklike { display: inline-flex; align-items: center; gap: 8px; color: inherit; }

/* ------------------------------ NAV ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { height: 50px; width: auto; display: block; flex: none; transition: transform .5s var(--ease-spring); filter: drop-shadow(0 4px 8px rgb(0 0 0 / .25)); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__logo { height: 104px; width: auto; display: block; flex: none; filter: drop-shadow(0 8px 16px rgb(0 0 0 / .3)); }
.brand__word { font: 400 30px/1 var(--f-script); color: var(--text); display: flex; flex-direction: column; }
.brand__word small { font: 600 10px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface); }
.nav__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav__links + .nav__tools { margin-inline-start: 0; }

.lang { display: flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.lang button { min-width: 34px; height: 34px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color .25s var(--ease), color .2s; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang__ar { font-family: "Cairo", sans-serif; font-size: 15px !important; }

.theme-light-icon { display: none; }
:root[data-theme="light"] .theme-dark-icon { display: none; }
:root[data-theme="light"] .theme-light-icon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-dark-icon { display: none; }
  :root:not([data-theme]) .theme-light-icon { display: block; }
}

.cart-btn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 21px; transition: transform .25s var(--ease); }
.cart-btn:active { transform: scale(.94); }
.cart-btn__count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: 12px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* ------------------------------ HERO ------------------------------ */
.hero { position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(204 51 34 / .22), transparent 70%);
}
.hero__inner {
  min-height: min(calc(100dvh - var(--nav-h)), 820px);
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding-block: 40px 56px; position: relative;
}
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--veg); box-shadow: 0 0 0 0 rgb(92 178 107 / .6); animation: pulse 2s infinite; }
.status[data-state="closed"] .status__dot { background: var(--muted); animation: none; }
.status[data-state="closing"] .status__dot { background: #e0a030; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(92 178 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(92 178 107 / 0); } }

.hero__title {
  font: 800 clamp(48px, 7.4vw, 104px)/.95 var(--f-display); letter-spacing: -.045em; margin: 0 0 24px;
}
.hero__title em { font-style: normal; color: var(--accent-text); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -.02em; height: .08em; border-radius: 4px;
  background: currentColor; opacity: .35; transform-origin: left; transform: scaleX(0);
  animation: underline 1s .9s var(--ease) forwards;
}
[dir="rtl"] .hero__title em::after { transform-origin: right; }
[lang="ar"] .hero__title { line-height: 1.2; letter-spacing: 0; font-size: clamp(46px, 6.6vw, 92px); margin-bottom: 32px; }
[lang="ar"] .hero__title em::after { bottom: .14em; }
@keyframes underline { to { transform: scaleX(1); } }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 44ch; margin: 0 0 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.hero__plate {
  position: absolute; inset: 4%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 0 10px var(--surface), 0 0 0 11px var(--line);
}
.hero__pizza { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: scale(1.18) rotate(360deg); } }
.hero__badge { position: absolute; width: 132px; height: 132px; inset-inline-start: -2%; bottom: 4%; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.hero__badge-ring { position: absolute; inset: 0; animation: spin-ring 22s linear infinite; direction: ltr; }
.hero__badge-ring text { font-family: "Geist", sans-serif !important; }
.hero__badge-ring text { font: 600 11.5px var(--f-body); letter-spacing: .18em; text-transform: uppercase; fill: #fff; }
@keyframes spin-ring { to { transform: rotate(360deg); } }
.hero__badge-icon { font-size: 38px; }
.hero__chip {
  position: absolute; top: 8%; inset-inline-end: -2%; padding: 12px 18px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 1.2;
  animation: float 6s ease-in-out infinite;
}
.hero__chip span { display: block; font-size: 13px; color: var(--muted); }
.hero__chip strong { font: 700 17px var(--f-display); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Hero intro choreography */
.hero__copy > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .18s; }
.hero__copy > :nth-child(4) { animation-delay: .28s; }
/* No fade on the hero photo: it is the largest element, and a fade-in delays when browsers (and Google) count the page as loaded. */
.hero__visual { transform: scale(.9) rotate(-12deg); animation: plate-in 1.2s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes plate-in { to { transform: none; } }

/* ------------------------------ FRIDAY ------------------------------ */
.friday {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; margin-bottom: 24px;
  border-radius: var(--r-card); background: var(--accent-soft); border: 1px solid rgb(204 51 34 / .3);
}
.friday i { font-size: 26px; color: var(--accent-text); }
.friday p { margin: 0; font-weight: 600; flex: 1; }

/* ------------------------------ MARQUEE ------------------------------ */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--bg-2); }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font: 600 clamp(20px, 2.4vw, 30px)/1 var(--f-display); white-space: nowrap; letter-spacing: -.01em; }
.marquee__item i { color: var(--accent-text); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ------------------------------ PICKS / BENTO ------------------------------ */
.picks { padding-block: clamp(72px, 10vw, 128px) clamp(48px, 7vw, 96px); }
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  grid-template-areas: "xl xl tall a" "xl xl tall b" ;
}
.bento .tile--xl { grid-area: xl; }
.bento .tile--tall { grid-area: tall; }
.bento .tile:nth-child(3) { grid-area: a; }
.bento .tile:nth-child(4) { grid-area: b; }
.bento .tile--wide { grid-column: 1 / -1; min-height: 220px; }
.bento { grid-template-rows: minmax(250px, auto) minmax(250px, auto) auto; }

.tile {
  position: relative; border-radius: var(--r-card); overflow: hidden; isolation: isolate; min-height: 250px;
  display: flex; align-items: flex-end; background: var(--surface); cursor: pointer;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(10 10 10 / .82) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile__body { padding: 22px; color: #fff; width: 100%; }
.tile__name { font: 700 24px/1.1 var(--f-display); margin: 0 0 6px; letter-spacing: -.02em; }
.tile--xl .tile__name { font-size: clamp(30px, 3.4vw, 46px); }
.tile__body p { margin: 0 0 14px; color: rgb(255 255 255 / .82); font-size: 15px; max-width: 38ch; }
.tile--accent::after { background: linear-gradient(90deg, rgb(150 30 18 / .92) 0%, rgb(150 30 18 / .55) 45%, transparent 75%); }
[dir="rtl"] .tile--accent::after { background: linear-gradient(270deg, rgb(150 30 18 / .92) 0%, rgb(150 30 18 / .55) 45%, transparent 75%); }
.tile--wide { align-items: center; }
.tile--wide .tile__body { max-width: 520px; }

/* ------------------------------ MENU ------------------------------ */
.menu { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 112px); }
.menu__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.menu__head .h2 { margin: 0; }
.menu__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.search {
  display: flex; align-items: center; gap: 10px; width: min(420px, 100%); height: 52px; padding: 0 8px 0 18px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search i { font-size: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search kbd { font: 600 12px var(--f-body); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px 8px; }
@media (hover: none) { .search kbd { display: none; } }

.menu__bar {
  position: sticky; top: var(--nav-h); z-index: 20; padding-block: 14px; margin-top: 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.menu__bar.is-stuck { border-bottom-color: var(--line); }
.menu__bar-inner { display: flex; align-items: center; gap: 16px; }
.chips, .filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.chips { flex: 1; min-width: 0; position: relative; }
.chip, .filter {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; scroll-snap-align: start;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 15px; color: var(--muted);
  transition: background-color .25s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover, .filter:hover { color: var(--text); border-color: var(--line-strong); }
.chip:active, .filter:active { transform: scale(.96); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip i { font-size: 18px; }
.filter.is-on { background: var(--accent-soft); color: var(--accent-text); border-color: rgb(204 51 34 / .4); }
.filter[data-filter="veg"] i { color: var(--veg); }
.filter[data-filter="best"] i { color: #e0a030; }
.filter[data-filter="sea"] i { color: #4f9fd9; }
.menu__note { margin: 18px 0 8px; font-size: 14px; color: var(--muted); }

.cat { padding-top: 40px; }
.cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 24px; }
.cat__title { font: 700 clamp(24px, 2.6vw, 32px)/1.1 var(--f-display); margin: 0; letter-spacing: -.02em; }
.cat__count { color: var(--muted); font-size: 15px; margin-inline-start: auto; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.card {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 12px; align-items: center;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__img { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.08) rotate(-2deg); }
.card__main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__name { font: 700 18px/1.2 var(--f-display); margin: 0; letter-spacing: -.01em; }
.card__desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.price { font: 700 18px/1 var(--f-display); white-space: nowrap; }
.price small { font: 500 12px var(--f-body); color: var(--muted); margin-inline-start: 6px; }
.card__add {
  margin-inline-start: auto; width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 19px; transition: transform .3s var(--ease-spring), background-color .2s; flex: none;
}
.card__add:hover { background: var(--accent-hover); transform: rotate(90deg); }
.card.is-locked { cursor: default; }
.card.is-locked .card__add { background: var(--surface-2); color: var(--muted); }
.card.is-locked .card__add:hover { transform: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); }
.tag--best { color: #e0a030; background: rgb(224 160 48 / .12); }
.tag--veg { color: var(--veg); background: rgb(92 178 107 / .12); }
.tag--sea { color: #4f9fd9; background: rgb(79 159 217 / .12); }
.tag--day { color: var(--accent-text); background: var(--accent-soft); }

.menu__empty { text-align: center; padding: 64px 16px; }
.menu__empty > i { font-size: 48px; color: var(--muted); }
.menu__empty p { margin: 8px 0; }
.menu__empty p:first-of-type { font: 700 22px var(--f-display); }

/* ------------------------------ SURPRISE ------------------------------ */
.surprise { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(72px, 9vw, 120px); }
.surprise__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field__label { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; padding: 0; }
.field__label output { color: var(--accent-text); font-family: var(--f-display); }
.field__help { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--accent-text); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--fill, 40%), var(--surface-2) var(--fill, 40%)); outline: none; }
[dir="rtl"] .range { background: linear-gradient(to left, var(--accent) var(--fill, 40%), var(--surface-2) var(--fill, 40%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); box-shadow: var(--shadow-sm); cursor: grab; transition: transform .2s var(--ease); }
.range::-webkit-slider-thumb:active { transform: scale(1.15); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); cursor: grab; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label > span {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 15px;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.seg label > span:active { transform: scale(.96); }
.seg input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.seg--big { display: grid; grid-template-columns: 1fr 1fr; }
.seg--big label > span { height: 54px; width: 100%; justify-content: center; font-size: 16px; border-radius: var(--r-input); }
.seg--big i { font-size: 20px; }

.slot { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r-card) + 8px); padding: 14px; box-shadow: var(--shadow); }
.slot__window { height: 380px; overflow: hidden; border-radius: var(--r-card); position: relative; background: var(--surface-2); }
.slot__window::before, .slot__window::after { content: ""; position: absolute; inset-inline: 0; height: 60px; z-index: 2; pointer-events: none; }
.slot__window::before { top: 0; background: linear-gradient(var(--surface-2), transparent); }
.slot__window::after { bottom: 0; background: linear-gradient(transparent, var(--surface-2)); }
.slot__reel { will-change: transform; }
.slot__idle { height: 380px; display: grid; place-content: center; text-align: center; color: var(--muted); gap: 8px; }
.slot__idle i { font-size: 54px; margin-inline: auto; animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(14deg); } }
.slot__item { height: 380px; position: relative; display: flex; align-items: flex-end; isolation: isolate; color: #fff; }
.slot__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slot__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 40%, rgb(10 10 10 / .85)); }
.slot__item div { padding: 22px; }
.slot__item h3 { font: 700 30px/1.1 var(--f-display); margin: 0 0 4px; letter-spacing: -.02em; }
.slot__item p { margin: 0; color: rgb(255 255 255 / .8); font-size: 15px; }
.slot__item strong { display: inline-block; margin-top: 10px; font: 700 22px var(--f-display); }
.slot__actions { display: flex; gap: 10px; padding-top: 14px; }
.slot__actions .btn { flex: 1; }
.slot__none { height: 380px; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--muted); }

/* ------------------------------ STORY ------------------------------ */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(80px, 11vw, 140px); }
.story__media { position: relative; }
.story__img--main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
.story__ar {
  position: absolute; bottom: -28px; inset-inline-end: -12px; font: 800 clamp(64px, 9vw, 120px)/1 "Cairo", sans-serif;
  color: var(--accent); text-shadow: 0 10px 40px rgb(0 0 0 / .4); transform: rotate(-6deg);
}
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 0; }
.fact { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.fact dt { font: 800 40px/1 var(--f-display); letter-spacing: -.03em; margin-bottom: 8px; color: var(--accent-text); }
.fact dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------ VISIT ------------------------------ */
.visit { padding-block: clamp(56px, 8vw, 96px); background: var(--bg-2); border-top: 1px solid var(--line); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.4fr; grid-template-areas: "branches map" "hours map"; gap: 14px; }
.branches { grid-area: branches; display: grid; gap: 10px; }
.map { grid-area: map; border-radius: var(--r-card); overflow: hidden; min-height: 440px; background: var(--surface); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
:root[data-theme="dark"] .map iframe, :root:not([data-theme="light"]) .map iframe { filter: grayscale(.25) contrast(.95); }
.hours { grid-area: hours; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.hours__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.hours__list li { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; font-size: 15px; color: var(--muted); }
.hours__list li.is-today { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.hours__list li.is-off span:last-child { color: var(--accent-text); font-weight: 600; }

.branch {
  text-align: start; padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 6px; transition: border-color .25s, box-shadow .25s var(--ease);
}
.branch.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.branch__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.branch__name { font: 700 19px var(--f-display); }
.branch__state { font-size: 13px; font-weight: 600; color: var(--veg); }
.branch__state.is-closed { color: var(--muted); }
.branch__addr { color: var(--muted); font-size: 15px; margin: 0; }
.branch__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ------------------------------ FINAL CTA ------------------------------ */
.final { position: relative; border-radius: calc(var(--r-card) + 8px); overflow: hidden; isolation: isolate; margin-block: clamp(56px, 8vw, 96px); min-height: 360px; display: flex; align-items: center; }
.final__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(140 26 14 / .95), rgb(140 26 14 / .7) 50%, rgb(140 26 14 / .15)); }
[dir="rtl"] .final::after { background: linear-gradient(270deg, rgb(140 26 14 / .95), rgb(140 26 14 / .7) 50%, rgb(140 26 14 / .15)); }
.final__copy { padding: clamp(28px, 5vw, 64px); color: #fff; max-width: 560px; }
.final__copy .h2 { margin-bottom: 12px; }
.final__copy p { margin: 0 0 26px; color: rgb(255 255 255 / .85); font-size: 18px; }

/* ------------------------------ FOOTER ------------------------------ */
.footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a, .footer__links button { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; transition: color .2s; }
.footer__links a:hover, .footer__links button:hover { color: var(--text); }
.footer__fine { grid-column: 1 / -1; font-size: 13px; margin: 0; }
.brand--footer { gap: 14px; }
.brand--footer .brand__word { font-size: 34px; }

/* ------------------------------ CART BAR (mobile) ------------------------------ */
.cartbar {
  position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px; height: 60px; padding: 0 20px 0 10px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 18px 40px -12px rgb(204 51 34 / .7);
  transform: translateY(140%); transition: transform .5s var(--ease-spring);
}
.cartbar.is-visible { transform: none; }
.cartbar__count { min-width: 40px; height: 40px; border-radius: var(--r-pill); display: grid; place-items: center; background: rgb(0 0 0 / .22); font-weight: 700; }
.cartbar strong { margin-inline-start: auto; font: 700 18px var(--f-display); }

/* ------------------------------ DIALOGS ------------------------------ */
dialog { padding: 0; border: 0; color: var(--text); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open] { animation: sheet-in .5s var(--ease); }
dialog[open]::backdrop { animation: fade-in .35s ease; }
dialog.is-closing { animation: sheet-out .28s ease-in forwards; }
dialog.is-closing::backdrop { animation: fade-out .28s ease-in forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
body.has-modal { overflow: hidden; }

.sheet { width: min(520px, 100% - 32px); border-radius: calc(var(--r-card) + 6px); margin: auto; overflow: hidden; box-shadow: var(--shadow); }
.sheet__form { display: flex; flex-direction: column; max-height: min(88dvh, 860px); }
.sheet__media { position: relative; height: 220px; flex: none; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__close { position: absolute; top: 14px; inset-inline-end: 14px; background: rgb(15 15 15 / .55); color: #fff; border-color: rgb(255 255 255 / .2); backdrop-filter: blur(8px); }
.sheet__body { padding: 22px 22px 6px; overflow-y: auto; }
.sheet__tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.sheet__tags:empty { display: none; }
.sheet__title { font: 800 30px/1.1 var(--f-display); margin: 0; letter-spacing: -.02em; }
.sheet__alt { margin: 4px 0 0; color: var(--muted); font-family: "Cairo", sans-serif; font-size: 17px; text-align: left; }
:root[lang="ar"] .sheet__alt { display: none; }
.sheet__desc { color: var(--muted); margin: 10px 0 20px; }
.sheet__foot { display: flex; gap: 12px; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

.opts { display: grid; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.opt > span::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s var(--ease), background-color .2s;
}
.opt input[type="checkbox"] + span::before { border-radius: 6px; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.opt input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); background: var(--accent); }
.opt input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.opt input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.opt__name { flex: 1; }
.opt__price { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.opts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt, .opt > span { min-width: 0; }

/* removable ingredients ("Sans oignons") */
.field__label small { font-weight: 500; font-size: 13px; margin-inline-start: 6px; }
.ings { display: flex; flex-wrap: wrap; gap: 8px; }
.ing { position: relative; }
.ing input { position: absolute; opacity: 0; pointer-events: none; }
.ing > span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.ing > span:active { transform: scale(.95); }
.ing .ph-check { color: var(--veg); }
.ing .ph-x { display: none; }
.ing input:not(:checked) + span { background: transparent; color: var(--muted); border-style: dashed; text-decoration: line-through; }
.ing input:not(:checked) + span .ph-check { display: none; }
.ing input:not(:checked) + span .ph-x { display: inline; color: var(--accent-text); }
.ing input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.opts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts--three .opt > span { justify-content: center; padding-inline: 8px; }
.opts--three .opt > span::before { display: none; }

/* cart suggestions */
.upsell { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.upsell__title { margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.upsell__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; padding-bottom: 4px; }
.upsell__row::-webkit-scrollbar { display: none; }
.upsell__item {
  flex: none; width: 116px; display: grid; gap: 4px; text-align: start; padding: 8px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s;
}
.upsell__item:hover { border-color: var(--accent); }
.upsell__item:active { transform: scale(.96); }
.upsell__item img { width: 100%; height: 72px; object-fit: cover; border-radius: 10px; }
.upsell__name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.upsell__name small { display: block; color: var(--muted); font-weight: 500; }
.upsell__item strong { font: 700 14px var(--f-display); color: var(--accent-text); }
.branch__perks { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.opt__price { flex: none; }
@media (max-width: 420px) { .opt > span { padding: 12px 10px; gap: 8px; font-size: 15px; } .opt > span::before { width: 18px; height: 18px; } }
.sheet__body { overflow-x: hidden; }

.qty { display: flex; align-items: center; border-radius: var(--r-pill); border: 1px solid var(--line-strong); flex: none; }
.qty button { width: 44px; height: 50px; display: grid; place-items: center; font-size: 17px; border-radius: var(--r-pill); }
.qty button:active { transform: scale(.9); }
.qty output { min-width: 24px; text-align: center; font-weight: 700; font-size: 17px; }
.qty--sm button { width: 34px; height: 36px; font-size: 14px; }
.qty--sm output { font-size: 15px; min-width: 18px; }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-input); border: 1px solid var(--line-strong);
  background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
textarea.input { resize: vertical; min-height: 76px; }
.input::placeholder { color: var(--muted); opacity: .85; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input.is-invalid { border-color: var(--accent-text); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23999' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] select.input { background-position: left 14px center; }

.drawer {
  margin: 0; margin-inline-start: auto; height: 100dvh; width: min(460px, 100%);
  flex-direction: column; box-shadow: var(--shadow);
}
.drawer[open] { display: flex; animation: drawer-in .55s var(--ease); }
.drawer.is-closing { animation: drawer-out .3s ease-in forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
[dir="rtl"] .drawer.is-closing { animation-name: drawer-out-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } }
@keyframes drawer-out-rtl { to { transform: translateX(-100%); } }
.drawer form { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex: none; }
.drawer__head .h3 { flex: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.drawer__foot { flex: none; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer__foot p { margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.total-row strong { font: 800 26px var(--f-display); letter-spacing: -.02em; }

.line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
  animation: line-in .45s var(--ease);
}
.line:last-child { border-bottom: 0; }
@keyframes line-in { from { opacity: 0; transform: translateX(16px); } }
.line img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.line__name { font-weight: 600; line-height: 1.25; }
.line__meta { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.line__side { display: grid; justify-items: end; gap: 6px; }
.line__price { font: 700 16px var(--f-display); }
.line.is-removing { animation: line-out .3s ease-in forwards; }
@keyframes line-out { to { opacity: 0; transform: translateX(-24px); height: 0; padding: 0; } }

.cart-empty { text-align: center; padding: 56px 12px; }
.cart-empty i { font-size: 56px; color: var(--muted); }
.cart-empty p { margin: 6px 0; }
.cart-empty p:first-of-type { font: 700 22px var(--f-display); }
.reorder { width: 100%; margin-top: 18px; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-input); background: var(--accent-soft); margin: 0 0 18px; font-size: 14px; }
.notice i { font-size: 20px; color: var(--accent-text); }

/* ------------------------------ TOAST ------------------------------ */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease-spring); max-width: calc(100% - 32px); text-align: center;
  box-shadow: var(--shadow);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Fly-to-cart dot */
.fly { position: fixed; z-index: 85; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: var(--shadow-sm); border: 2px solid #fff; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------ REVEAL ON SCROLL ------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal { transform: translateY(18px) scale(.98); }
.card.reveal.is-in { transform: none; }
.card.reveal.is-in:hover { transform: translateY(-3px); }

/* ------------------------------ PAGES ------------------------------ */
.nav__links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.page { min-height: calc(100dvh - var(--nav-h)); padding-top: clamp(24px, 4vw, 48px); }
.page--home { padding-top: 0; }
.page-head { margin-bottom: 8px; }
.page-title { margin-bottom: 10px; }
.page-lead { margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 52ch; }
.page.menu { padding-bottom: clamp(56px, 8vw, 96px); }
.page.surprise { display: flex; align-items: center; background: transparent; border: 0; padding-block: clamp(24px, 5vw, 64px); }
.page.surprise .surprise__inner { width: min(1240px, 100% - 32px); }
.page .story { padding-block: clamp(24px, 5vw, 56px); }
.page .story__img--main { max-height: calc(100dvh - var(--nav-h) - 110px); min-height: 320px; }
.page.visit { background: transparent; border: 0; padding-bottom: clamp(56px, 8vw, 96px); }
.page.visit .page-head { margin-bottom: 28px; }


/* bottom tab bar (phones and tablets) */
.tabbar {
  position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: none;
  grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color .2s, background-color .2s; -webkit-tap-highlight-color: transparent; }
.tabbar a i { font-size: 23px; transition: transform .35s var(--ease-spring); }
.tabbar a[aria-current="page"] { color: var(--accent-text); }
.tabbar a[aria-current="page"] i { transform: translateY(-1px) scale(1.08); }
.tabbar a:active i { transform: scale(.88); }
.tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ------------------------------ ORDER TRACKING ------------------------------ */
.spin { display: inline-block; animation: spin-icon 1s linear infinite; }
@keyframes spin-icon { to { transform: rotate(360deg); } }
.track__wrap { max-width: 640px; }
.track__card { margin-top: 24px; padding: clamp(18px, 4vw, 28px); border-radius: calc(var(--r-card) + 6px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.track__loading, .track__empty { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px 10px; color: var(--muted); }
.track__loading i { font-size: 34px; }
.track__empty i { font-size: 48px; }
.track__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.track__head p { margin: 0; }
.track__code { font: 800 34px/1 var(--f-display); letter-spacing: -.02em; margin-bottom: 6px !important; }
.track__live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(92 178 107 / .12); color: var(--veg); font-size: 13px; font-weight: 700; white-space: nowrap; }
.track__live span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.track__live.is-off { background: var(--surface-2); color: var(--muted); }
.track__live.is-off span { animation: none; }

.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; position: relative; padding-bottom: 18px; color: var(--muted); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step.is-done::before { background: var(--accent); }
.step__dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); border: 2px solid var(--line-strong); transition: background-color .4s, border-color .4s, color .4s; }
.step.is-done .step__dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.step.is-current { color: var(--text); }
.step.is-current .step__dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); animation: step-pop .6s var(--ease-spring); }
.steps.is-changed .step.is-current .step__dot { animation: step-pop .8s var(--ease-spring) 2; }
@keyframes step-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.step__text { display: grid; gap: 2px; padding-top: 2px; }
.step__text strong { font: 700 17px/1.2 var(--f-display); }
.step__text small { font-size: 14px; color: var(--muted); }
.step:not(.is-current):not(.is-done) .step__text small { display: none; }

.track__items { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.track__item { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.track__item small { display: block; color: var(--muted); font-size: 13px; }
.track__items .total-row { padding-top: 8px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }
.track__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.track__actions .btn { min-width: 0; padding-inline: 12px; white-space: normal; line-height: 1.15; text-align: center; }
.track__list { display: grid; gap: 8px; }
.track__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-input); background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s; }
.track__row:hover { border-color: var(--accent); }
.track__row strong { font: 700 18px var(--f-display); }

.order-pill {
  position: fixed; z-index: 44; inset-inline-start: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap;
  animation: pill-in .6s var(--ease-spring);
}
[dir="rtl"] .order-pill { transform: translateX(50%); }
.order-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--veg); animation: pulse 2s infinite; }
@keyframes pill-in { from { opacity: 0; translate: 0 20px; } }
body.has-cart .order-pill { display: none; }

/* privacy page + spam trap */
.legal { max-width: 760px; padding-bottom: 64px; }
.legal section { padding: 18px 0; border-top: 1px solid var(--line); }
.legal section p { margin: 8px 0 0; color: var(--muted); }
.notice a, .muted a, .legal a { color: var(--accent-text); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* page-to-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
#site-header { view-transition-name: site-header; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vt-out .22s ease-in both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@supports not (view-transition-name: none) {
  .page { animation: vt-in .5s var(--ease) both; }
}

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__tools { margin-inline-start: auto; }
  .tabbar { display: grid; }
  .order-pill { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .grain { display: none; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 28px 48px; min-height: 0; gap: 24px; }
  .hero__visual { order: -1; width: min(78vw, 420px); }
  .hero__copy { text-align: start; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "xl xl" "tall a" "tall b"; grid-template-rows: auto; }
  .bento .tile--xl { min-height: 340px; }
  .surprise__inner, .story { grid-template-columns: 1fr; }
  .story__media { max-width: 520px; }
  .visit__grid { grid-template-columns: 1fr; grid-template-areas: "branches" "map" "hours"; }
  .map, .map iframe { min-height: 320px; }
  .grid { grid-template-columns: 1fr; }
  .chips { margin-inline: -16px; padding-inline: 16px; }
  .menu__tools { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  .menu__tools .filters { width: auto; min-width: 0; }
  .menu__tools .search { width: 100%; }
  .filters { margin-inline: -16px; padding-inline: 16px; }
}
@media (max-width: 767px) {
  :root { --nav-h: 62px; }
  .cartbar { display: flex; bottom: calc(74px + env(safe-area-inset-bottom)); height: 54px; }
  .cartbar__count { min-width: 36px; height: 36px; }
  body.has-cart .footer { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  .page.surprise { align-items: flex-start; }
  .menu__bar, .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu__bar { background: var(--bg); }
  .nav { background: color-mix(in srgb, var(--bg) 96%, transparent); }
  .brand__word { font-size: 26px; }
  .brand__mark { height: 42px; }
  .brand__logo { height: 88px; }
  .lang button { min-width: 30px; height: 32px; font-size: 12px; }
  .icon-btn { width: 38px; height: 38px; }
  .cart-btn { width: 42px; height: 42px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: none; }
  .bento .tile { grid-area: auto !important; min-height: 230px; }
  .bento .tile--xl { min-height: 320px; }
  .hero__chip { inset-inline-end: 0; }
  .hero__badge { width: 104px; height: 104px; }
  .hero__badge-icon { font-size: 30px; }
  .hero__ctas .btn { flex: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .card { grid-template-columns: 88px 1fr; gap: 12px; padding: 10px; }
  .card__img { width: 88px; height: 88px; }
  .card__name { font-size: 17px; }
  .slot__window, .slot__idle, .slot__item, .slot__none { height: 300px; }
  .footer__inner { grid-template-columns: 1fr; }
  .sheet { width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .sheet__form { max-height: 92dvh; }
  .sheet__media { height: 190px; }
  .sheet[open] { animation-name: up-in; }
  .sheet.is-closing { animation-name: up-out; }
  .drawer { width: 100%; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
  .friday { flex-wrap: wrap; }
  .story__ar { inset-inline-end: 0; }
}
@keyframes up-in { from { transform: translateY(100%); } }
@keyframes up-out { to { transform: translateY(100%); } }
@media (max-width: 380px) {
  .lang { display: none; }
}

/* ------------------------------ REFINEMENTS (v12) ------------------------------ */
/* Browser surfaces carry the palette too: scrollbars, caret, native controls, tap flash */
html { scrollbar-color: color-mix(in srgb, var(--text) 24%, transparent) var(--bg); }
dialog, dialog * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--text) 22%, transparent) transparent; }
input, textarea, select { caret-color: var(--accent-text); accent-color: var(--accent); }
a, button, label, summary { -webkit-tap-highlight-color: transparent; }
.price, .line__price, .total-row strong, .cartbar strong, .upsell__item strong, .track__row strong, .fact dt, .sheet__foot .btn { font-variant-numeric: tabular-nums; }
/* The "ع" button uses the phone's own Arabic font, so French visitors don't download Cairo for one letter */
.lang__ar { font-family: system-ui, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", sans-serif; }

/* Hero: each title line rises out of its own mask */
.hero__copy > .hero__title.is-split { opacity: 1; transform: none; animation: none; }
.hero__title .hl { display: block; overflow: hidden; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.hero__title .hl > span { display: inline-block; transform: translateY(108%); animation: line-up 1s var(--ease) forwards; animation-delay: calc(.06s + var(--i, 0) * .11s); }
@keyframes line-up { to { transform: none; } }

.marquee.is-paused .marquee__track { animation-play-state: paused; }

/* Photos fade in when decoded; a soft shimmer holds their place */
.card__img img, .tile img { transition-property: transform, opacity; }
img.is-loading { opacity: 0; }
.card__img:has(img.is-loading), .tile:has(img.is-loading) {
  background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 70%, var(--text) 8%) 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* Touch screens: no sticky hover lifts, a quick press instead */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--line); box-shadow: none; }
  .card:hover .card__img img, .tile:hover img { transform: none; }
  .card { transition: transform .16s var(--ease), border-color .2s; }
  .card:active { transform: scale(.985); }
  .tile:active img { transform: scale(1.03); transition-duration: .3s; }
}

/* Images inside draggable panels must not start the browser's own image drag (it cancels the swipe) */
.sheet__media img, .drawer img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

/* Opening the sheet focuses its title (for screen readers) without drawing a ring on the close button */
.sheet__title:focus { outline: none; }

/* Dish sheet: grab handle on phones */
.sheet__grab { display: none; }
.is-dragging { transition: none !important; animation: none !important; }
.is-dragging::backdrop { opacity: .7; }

/* Phones: favourites become a swipeable row with page dots */
.bento__dots { display: none; }
@media (max-width: 767px) {
  .bento {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 6px; scroll-padding-inline: 16px;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento .tile, .bento .tile--xl, .bento .tile--wide { flex: 0 0 84%; min-height: 420px; scroll-snap-align: center; grid-column: auto; }
  .bento .tile--wide { align-items: flex-end; }
  .bento .tile.reveal { opacity: 1; transform: none; }
  .bento.is-in-view .tile { animation: tile-in .7s var(--ease) both; }
  .bento.is-in-view .tile:nth-child(2) { animation-delay: .08s; }
  .bento__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .bento__dots button { width: 7px; height: 7px; padding: 0; border-radius: var(--r-pill); background: var(--line-strong); transition: width .3s var(--ease), background-color .3s; }
  .bento__dots button.is-on { width: 22px; background: var(--accent); }

  .sheet__grab {
    display: block; position: absolute; z-index: 2; top: 8px; left: 50%; translate: -50% 0;
    width: 40px; height: 5px; border-radius: var(--r-pill); background: rgb(255 255 255 / .75);
    box-shadow: 0 1px 6px rgb(0 0 0 / .35);
  }
  .sheet__media { touch-action: none; cursor: grab; }
  .drawer { touch-action: pan-y; }
}
@keyframes tile-in { from { opacity: 0; transform: translateX(40px); } }
[dir="rtl"] .bento.is-in-view .tile { animation-name: tile-in-rtl; }
@keyframes tile-in-rtl { from { opacity: 0; transform: translateX(-40px); } }

/* ------------------------------ BOLDER (v13) ------------------------------ */
/* Home hero: the script logo, huge, behind everything; the pizza turns as you scroll */
.hero__script {
  position: absolute; z-index: 0; inset-inline: 0; bottom: -.16em; pointer-events: none; user-select: none; text-align: center;
  font: 400 clamp(150px, 30vw, 470px)/1 var(--f-script); color: var(--accent); opacity: .09;
  white-space: nowrap; transform: rotate(-6deg); direction: ltr;
}
@media (max-width: 900px) {
  .hero__script { top: 36%; bottom: auto; font-size: 50vw; opacity: .11; }
}
.hero__inner { z-index: 1; }
@supports (animation-timeline: scroll()) {
  .hero__pizza { animation: pizza-turn linear both; animation-timeline: scroll(root block); animation-range: 0 110vh; }
  .hero__script { animation: script-slide linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
}
@keyframes pizza-turn { from { transform: scale(1.18) rotate(0deg); } to { transform: scale(1.18) rotate(150deg); } }
@keyframes script-slide { from { translate: 0 0; } to { translate: -12% 0; } }

/* Menu: big photo cards */
.grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden;
  border-radius: calc(var(--r-card) + 2px);
}
.card__media { position: relative; }
.card__img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden; background: var(--surface-2); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(10 10 10 / .35) 0%, transparent 32%); }
.card:hover .card__img img { transform: scale(1.06); }
.card__tags { position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; inset-inline-end: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags .tag { background: rgb(15 15 15 / .72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 9px; }
.card__tags .tag--best i { color: #f0b440; }
.card__tags .tag--veg i { color: #7fd08c; }
.card__tags .tag--sea i { color: #7cc0f0; }
.card__tags .tag--day { background: var(--accent); }
.card__add {
  position: absolute; z-index: 2; bottom: -24px; inset-inline-end: 14px; margin: 0; width: 50px; height: 50px; font-size: 22px;
  border: 4px solid var(--surface); box-shadow: 0 10px 22px -10px rgb(150 30 18 / .9);
}
.card__main { padding: 16px 18px 18px; gap: 6px; flex: 1; }
.card__name { font-size: 20px; padding-inline-end: 44px; }
.card__desc { font-size: 14px; }
.card__foot { margin-top: auto; padding-top: 8px; }
.card .price { font-size: 24px; letter-spacing: -.02em; }
.card .price small { display: block; margin: 4px 0 0; font-size: 12px; letter-spacing: 0; }
.card.is-locked .card__img img { filter: grayscale(.75) brightness(.8); }

@media (max-width: 767px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 0; }
  .card__img { width: 100%; height: auto; aspect-ratio: 1; }
  .card__add { width: 42px; height: 42px; font-size: 19px; bottom: -20px; inset-inline-end: 10px; border-width: 3px; }
  .card__main { padding: 12px 12px 14px; gap: 4px; }
  .card__name { font-size: 15.5px; padding-inline-end: 30px; }
  .card__desc { font-size: 12.5px; line-height: 1.4; }
  .card .price { font-size: 19px; }
  .card .price small { font-size: 11px; }
  .card__tags { top: 8px; inset-inline-start: 8px; inset-inline-end: 8px; gap: 4px; }
  .card__tags .tag { font-size: 11px; padding: 3px 7px; }
}

/* ------------------------------ REDUCED MOTION ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__copy > * { opacity: 1; transform: none; }
  .hero__visual { transform: none; }
  .marquee__track { animation: none; }
  .hero__pizza, .hero__script { animation: none !important; }
  .hero__title .hl > span { transform: none; }
  img.is-loading { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
