/* GhostMenu — generated stylesheet for مطعم زيد
   Logical properties throughout, so RTL/LTR is a single attribute flip.
   ------------------------------------------------------------------ */

/* ============================ 1. FONTS ============================ */

@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('assets/fonts/kufi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('assets/fonts/kufi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dmsans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+00D7;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dmsans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+00D7;
}


/* ============================ 2. TOKENS =========================== */
:root {
  --primary: #7D5D2C;
  --primary-rgb: 125, 93, 44;
  --secondary: #A9803F;
  --on-primary: #FFFFFF;
  --bg: #EDE6D3;
  --bg-rgb: 237, 230, 211;
  --surface: #E4DBC4;
  --surface-2: #DCD2B8;
  --border: #CFC3A3;
  --text: #241B14;
  --text-rgb: 36, 27, 20;
  --muted: #6B5C48;
  --success: #2ECC71;
  --danger: #E74C3C;

  --rule: rgba(var(--text-rgb), .12);
  --scrim: rgba(0, 0, 0, .62);
  --tint: rgba(var(--primary-rgb), .12);
  --tint-2: rgba(var(--primary-rgb), .22);

  --font-ar: 'Noto Kufi Arabic', 'Segoe UI', system-ui, sans-serif;
  --font-en: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Display vs utility split. The reference menu's presence comes from the
     gap between very large headings and very small tracked labels — not from
     a second typeface. We get the same contrast from one family by pushing
     weight, size and tracking to both extremes.

     IMPORTANT: --track-label is a Latin device only. Arabic is cursive and its
     letters join; adding tracking pulls joined letters apart and makes the
     word harder to read, not more refined. Rules below apply it under
     html[lang="en"] only. */
  --track-label: 0;
  --track-display: -.02em;
  --lh-display: 1.06;

  /* 4px rhythm */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;

  --r: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.28);
  --shadow-2: 0 6px 20px -6px rgba(0,0,0,.45);
  --shadow-3: 0 -12px 40px -8px rgba(0,0,0,.55);

  --wrap: 1120px;
  --hdr-h: 56px;
  --chips-h: 52px;
  --ease: cubic-bezier(.2, .8, .3, 1);
  --dur: 200ms;

  --z-hdr: 60; --z-chips: 55; --z-fab: 50; --z-ovl: 80; --z-sheet: 90; --z-lb: 95;
}


@media (prefers-color-scheme: light) {
  :root {
    --bg: #FBFAF7; --bg-rgb: 251, 250, 247;
    --surface: #FFFFFF; --surface-2: #F2F0EB;
    --border: #E2DED6; --text: #16161A;
    --text-rgb: 22, 22, 26; --muted: #6B6862;
    --scrim: rgba(0,0,0,.45);
    --shadow-2: 0 6px 20px -8px rgba(0,0,0,.18);
    --shadow-3: 0 -12px 40px -10px rgba(0,0,0,.2);
  }
}


/* ============================ 3. BASE ============================= */
*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute only sets `display:none` in the UA sheet, so any
   author rule that sets display on the same element silently defeats it.
   A hidden full-screen overlay that still paints will swallow every tap on
   the page, so this is enforced rather than left to rule ordering. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--hdr-h) + var(--chips-h) + var(--s2));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding-block-end: env(safe-area-inset-bottom);

  /* Printed-receipt grain. Built from --text-rgb rather than a fixed colour so
     it reads as paper on a light theme and as fine texture on a dark one,
     whatever palette the restaurant picked. Costs nothing: no image. */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(var(--text-rgb), .05) 1px, transparent 0);
  background-size: 14px 14px;
  background-attachment: fixed;
}

html[lang="en"] body { font-family: var(--font-en); }
html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] { display: none; }

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-inline-size: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap { inline-size: min(100% - 2 * var(--s4), var(--wrap)); margin-inline: auto; }

.sr {
  position: absolute; inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; inset-block-start: -100px; inset-inline-start: var(--s4);
  z-index: 200; background: var(--primary); color: var(--on-primary);
  padding: var(--s2) var(--s4); border-radius: var(--r-sm); font-weight: 700;
  transition: inset-block-start var(--dur) var(--ease);
}
.skip:focus { inset-block-start: var(--s2); }

svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor;
      stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ 4. HEADER =========================== */
.hdr {
  position: sticky; inset-block-start: 0; z-index: var(--z-hdr);
  background: rgba(var(--bg-rgb), .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-block-end: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hdr.is-stuck { border-block-end-color: var(--border); background: rgba(var(--bg-rgb), .96); }

.hdr__in {
  block-size: var(--hdr-h); display: flex; align-items: center;
  justify-content: space-between; gap: var(--s3);
}
.brand { display: flex; align-items: center; gap: var(--s2); min-inline-size: 0; }
.brand__logo { inline-size: 34px; block-size: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.brand__mark {
  inline-size: 34px; block-size: 34px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 700;
}
.brand__name {
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hdr__act { display: flex; align-items: center; gap: var(--s1); flex: none; }

.icon-btn {
  inline-size: 44px; block-size: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  position: relative; touch-action: manipulation;
  transition: background var(--dur) var(--ease);
}
.icon-btn:hover, .icon-btn:active { background: var(--surface-2); }

.lang-btn {
  min-inline-size: 44px; block-size: 38px; padding-inline: var(--s3);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-pill); font-weight: 700; font-size: .82rem;
  cursor: pointer; touch-action: manipulation;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }

.cart-badge {
  position: absolute; inset-block-start: 4px; inset-inline-end: 4px;
  min-inline-size: 18px; block-size: 18px; padding-inline: 4px;
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-pill); font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* ============================ 5. HERO ============================= */
.hero {
  position: relative; isolation: isolate;
  min-block-size: 34vh; display: grid; align-items: end;
  padding-block: var(--s7) var(--s5);
  background: radial-gradient(120% 90% at 50% 0%, var(--tint), transparent 62%);
  overflow: hidden;
}
/* Phones get a shorter hero on purpose: this is read at the table by someone
   who wants the food now, not a marketing page browsed from the sofa. The
   large type stays; only the empty space goes. */
.hero--img { min-block-size: 42vh; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  inline-size: 100%; block-size: 100%; object-fit: cover;
}
.hero--img::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(var(--bg-rgb), .97) 6%, rgba(var(--bg-rgb), .72) 42%, rgba(var(--bg-rgb), .35) 100%);
}
.hero__title {
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}
.hero__sub {
  color: var(--muted);
  margin-block-start: var(--s3);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: var(--track-label);
  max-inline-size: 42ch;
}
.hero__status {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-block-start: var(--s3); font-size: .85rem; font-weight: 600; color: var(--muted);
}
.hero__status .dot {
  inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--muted); flex: none;
}
.hero__status.is-open .dot { background: var(--success); box-shadow: 0 0 0 4px rgba(46, 204, 113, .18); }
.hero__status.is-open .txt { color: var(--success); }
.hero__status.is-shut .dot { background: var(--danger); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-block-start: var(--s5); }

.hero__special, .hero__table {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-block-start: var(--s3); padding: var(--s2) var(--s4);
  border-radius: 999px; font-size: .88rem; font-weight: 700;
}
.hero__special {
  background: rgba(201, 162, 39, .16); color: var(--primary);
  border: 1px solid rgba(201, 162, 39, .35);
}
/* Inverted pill, table number picked out in the brand colour — the way a
   table marker is stamped on a bill. */
.hero__table {
  background: var(--text); color: var(--bg); border: 0;
}
.hero__table .num,
.hero__table .txt strong { color: var(--primary); font-weight: 800; }
.hero__special-ic, .hero__table-ic { font-size: 1.05rem; line-height: 1; }

/* Numerals line up in columns like a printed bill. Uses the existing family,
   so it costs no extra download. */
.price, .price__n, .hours__t td, .cart__row .price, .hero__table .txt {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-block-size: 46px; padding-inline: var(--s5); border-radius: var(--r-pill);
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  touch-action: manipulation; text-align: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 88%, white); }
.btn--ghost { border-color: var(--border); background: rgba(var(--bg-rgb), .5); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { min-block-size: 40px; padding-inline: var(--s4); font-size: .88rem; }
.btn--wide { inline-size: 100%; }
.btn--text { background: none; border: 0; color: var(--muted); min-block-size: 44px;
             inline-size: 100%; font-size: .88rem; cursor: pointer; }
.btn--text:hover { color: var(--danger); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ======================= 5b. SECTION TABS ======================== */
/* Menu / Info / Hours / Contact. Sticks under the header so a diner deep in
   a long menu can still reach the phone number without scrolling back up. */
.tabs {
  position: sticky; inset-block-start: var(--hdr-h); z-index: var(--z-chips);
  background: rgba(var(--bg-rgb), .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  /* Dashed rather than solid: the perforation line of a printed bill. */
  border-block-end: 1px dashed var(--border);
}
.tabs__row { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tabs__row::-webkit-scrollbar { display: none; }
.tabs__b {
  flex: 1 1 0; min-inline-size: 88px;
  padding: var(--s3) var(--s2);
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 1rem; font-weight: 700;
  white-space: nowrap;
  border-block-end: 3px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tabs__b.is-on { color: var(--text); border-block-end-color: var(--primary); }
.tabs__b:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

.tp[hidden] { display: none; }
/* Switching tabs animates the incoming panel so the change is felt, not just
   seen — the same entrance the cards use, applied to the whole panel. */
.tp.is-swap { animation: tpIn 320ms var(--ease); }
@keyframes tpIn { from { opacity: 0; transform: translateY(10px); } }

.reach__row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.reach__b {
  flex: 1 1 auto; min-inline-size: 44%;
  padding: var(--s4); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  font-weight: 700; font-size: .9rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.reach__b:hover { border-color: var(--primary); background: var(--surface-2); }
.reach__b:active { transform: scale(.985); }

html[lang="en"] { --track-label: .16em; }
/* Uppercase is meaningless in Arabic script, so it too is Latin-only. */
html[lang="en"] .sec-h,
html[lang="en"] .hero__sub { text-transform: uppercase; }

/* ========================= 6. SECTION HEAD ======================== *//* A heavy top rule turns each section into a printed menu block; the gold
   diamond stays as the one decorative motif. Small tracked caps against the
   large hero type is what carries the "printed menu" feel. */
.sec-h {
  display: flex; align-items: center; gap: var(--s3);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: var(--track-label);
  /* Perforation rule — the tear line between courses on a printed bill. */
  border-block-start: 2px dashed var(--border);
  padding-block-start: var(--s3);
  margin-block: var(--s7) var(--s4);
}
.sec-h::before {
  content: ""; inline-size: 7px; block-size: 7px; flex: none;
  background: var(--primary); transform: rotate(45deg);
}
.sec-d { color: var(--muted); font-size: .9rem; margin-block-end: var(--s4); }

/* ============================ 7. OFFERS =========================== */
.offers { padding-block-start: var(--s2); }
.offers__row, .feat__row, .gal__row, .branches__row {
  display: flex; gap: var(--s3); overflow-x: auto; padding-block-end: var(--s3);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.offers__row::-webkit-scrollbar, .feat__row::-webkit-scrollbar,
.gal__row::-webkit-scrollbar, .branches__row::-webkit-scrollbar { block-size: 4px; }
.offers__row::-webkit-scrollbar-thumb, .feat__row::-webkit-scrollbar-thumb,
.gal__row::-webkit-scrollbar-thumb, .branches__row::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: var(--r-pill);
}
.offer {
  flex: 0 0 min(78%, 320px); scroll-snap-align: start;
  padding: var(--s4); border-radius: var(--r);
  background: linear-gradient(140deg, var(--tint-2), var(--surface) 62%);
  border: 1px solid var(--border);
}
.offer__t { font-size: 1rem; }
.offer__d { color: var(--muted); font-size: .88rem; margin-block-start: var(--s1); }
.offer__timer {
  margin-block-start: var(--s2); font-size: .78rem; font-weight: 700;
  color: var(--primary); font-variant-numeric: tabular-nums;
}

/* =========================== 8. CHIPS BAR ========================= */
.chips {
  position: sticky; inset-block-start: var(--hdr-h); z-index: calc(var(--z-chips) - 1);
  background: rgba(var(--bg-rgb), .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border);
}
/* With the section tabs present the chips stack underneath them, not on top. */
body.has-tabs .chips { inset-block-start: calc(var(--hdr-h) + var(--tabs-h, 40px)); }
.chips__scroll {
  display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none;
  padding: var(--s2) max(var(--s4), calc((100% - var(--wrap)) / 2));
  block-size: var(--chips-h); align-items: center;
}
.chips__scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: var(--s2);
  min-block-size: 36px; padding-inline: var(--s4); border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.chip__ico { font-size: 1rem; line-height: 1; }
.chip.is-on {
  background: var(--primary); color: var(--on-primary); border-color: var(--primary);
}

/*!critical-end*/

/* =========================== 9. MENU GRID ========================= */
.sec { scroll-margin-block-start: calc(var(--hdr-h) + var(--chips-h)); }
.sec.is-hidden { display: none; }

.grid {
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.grid--list { grid-template-columns: 1fr; gap: var(--s2); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--tint-2); }
.card:active { transform: scale(.985); }

.card__media {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.card__media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  background-size: cover; background-position: center;
}
.card__ph { font-size: 1.6rem; opacity: .28; }
.card__out {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(var(--bg-rgb), .72); font-size: .82rem; font-weight: 700;
  letter-spacing: .02em; color: var(--text);
}
.card.is-out { opacity: .62; cursor: default; }
.card.is-out:active { transform: none; }

.card__body { padding: var(--s3); display: flex; flex-direction: column; flex: 1; gap: var(--s1); }
.card__name { font-size: .95rem; font-weight: 700; }
.card__desc {
  color: var(--muted); font-size: .8rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot {
  display: flex; align-items: flex-end; gap: var(--s2);
  margin-block-start: auto; padding-block-start: var(--s2);
}

/* --- signature: the dot leader, borrowed from printed bills of fare --- */
.leader {
  flex: 1 1 auto; min-inline-size: 10px; block-size: 2px;
  align-self: flex-end; margin-block-end: 7px;
  background-image: radial-gradient(circle, var(--muted) .9px, transparent 1px);
  background-size: 6px 2px; background-repeat: repeat-x;
  opacity: .5;
}

.price {
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  font-variant-numeric: tabular-nums; display: inline-flex;
  align-items: baseline; gap: 3px;
}
.price__cur { font-style: normal; font-size: .72em; font-weight: 600; color: var(--muted); }
.price--was { font-size: .8rem; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.price--was .price__cur { display: none; }
.price--now { color: var(--primary); }
.price--from i:first-child { font-style: normal; font-size: .7em; color: var(--muted); font-weight: 600; }

/* Wide list rows: image beside the text. */
.grid--list .card { flex-direction: row; align-items: stretch; }
.grid--list .card__media { inline-size: 108px; flex: none; aspect-ratio: 1; }
.grid--list .card__desc { -webkit-line-clamp: 2; line-clamp: 2; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: .64rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  letter-spacing: .01em;
}
.tag--best_seller, .tag--chef_choice { background: var(--tint); color: var(--primary); border-color: transparent; }
.tag--new { background: rgba(46, 204, 113, .16); color: var(--success); border-color: transparent; }
.tag--spicy, .tag--very_spicy { background: rgba(231, 76, 60, .16); color: var(--danger); border-color: transparent; }

/* ========================= 10. FEATURED ROW ======================= */
.feat__card {
  flex: 0 0 min(64%, 240px); scroll-snap-align: start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease);
}
.feat__card:hover { border-color: var(--tint-2); }
.feat__img { inline-size: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.feat__body { padding: var(--s3); display: flex; align-items: center;
              justify-content: space-between; gap: var(--s2); flex: 1; }
.feat__t { font-size: .9rem; font-weight: 700; }

/* =========================== 11. RESULTS ========================== */
.results { padding-block-start: var(--s4); }
.results__meta { color: var(--muted); font-size: .85rem; margin-block-end: var(--s3); }
.empty { color: var(--muted); text-align: center; padding-block: var(--s7); font-size: .95rem; }

/* ====================== 12. GALLERY / ABOUT ======================= */
.gal__it {
  display: block; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--r); overflow: hidden;
}
.gal__row li { flex: 0 0 min(62%, 260px); scroll-snap-align: start; }
.gal__it img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.about__body { color: var(--muted); max-inline-size: 62ch; font-size: .96rem; }
.about__body p + p { margin-block-start: var(--s3); }

.branch {
  flex: 0 0 min(72%, 280px); scroll-snap-align: start; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
}
.branch__t { font-size: 1rem; }
.branch__c { color: var(--muted); font-size: .85rem; margin-block-start: var(--s1); }
.branch__a { display: flex; flex-wrap: wrap; gap: var(--s3); margin-block-start: var(--s3); }
.branch__a a { color: var(--primary); font-size: .85rem; font-weight: 600; }

/* ============================ 13. HOURS =========================== */
.hours__grid { display: grid; gap: var(--s5); }
.hours__t { inline-size: 100%; border-collapse: collapse; font-size: .9rem; }
.hours__t th, .hours__t td { padding-block: var(--s2); text-align: start; font-weight: 500; }
.hours__t td { color: var(--muted); text-align: end; font-variant-numeric: tabular-nums; }
.hours__t tr + tr { border-block-start: 1px solid var(--rule); }
.hours__t tr.is-today th { color: var(--primary); font-weight: 700; }
.hours__t tr.is-today td { color: var(--text); }
.loc__a { color: var(--muted); font-size: .92rem; margin-block-end: var(--s3); }

/* =========================== 14. FOOTER =========================== */
.ftr {
  margin-block-start: var(--s8); padding-block: var(--s6) var(--s5);
  border-block-start: 1px solid var(--border); background: var(--surface);
}
.ftr__in { display: grid; gap: var(--s4); }
.ftr__name { font-weight: 700; }
.ftr__note, .ftr__cr { color: var(--muted); font-size: .82rem; }
.ftr__lnk { display: block; color: var(--muted); font-size: .9rem; padding-block: var(--s1); }
.ftr__lnk:hover { color: var(--primary); }
.ftr__soc { display: flex; gap: var(--s2); }
.ftr__soc a {
  inline-size: 42px; block-size: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; color: var(--muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ftr__soc a:hover { color: var(--primary); border-color: var(--primary); }
.ftr__cr { text-align: center; margin-block-start: var(--s5); }
.ftr__support {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--s2); margin-block-start: var(--s4); padding-block-start: var(--s4);
  border-block-start: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
}
.ftr__support-ic { font-size: .95rem; }
.ftr__support-lnk { color: var(--primary); font-weight: 700; }
.ftr__support-lnk:hover { text-decoration: underline; }

/* ============================= 15. FAB =========================== */
.fab {
  position: fixed; z-index: var(--z-fab);
  inset-block-end: calc(var(--s4) + env(safe-area-inset-bottom));
  inset-inline-end: var(--s4);
  inline-size: 54px; block-size: 54px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-primary);
  background: var(--primary); box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease);
}
.fab:active { transform: scale(.93); }
.fab svg { inline-size: 26px; block-size: 26px; }
body.has-cart .fab { inset-block-end: calc(var(--s8) + var(--s4) + env(safe-area-inset-bottom)); }

/* =========================== 16. SEARCH =========================== */
.ovl {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-ovl);
  background: rgba(var(--bg-rgb), .98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-block-end: 1px solid var(--border);
  padding-block: var(--s2); padding-block-start: env(safe-area-inset-top);
}
.ovl__bar { display: flex; align-items: center; gap: var(--s2); }
.ovl__in {
  flex: 1; min-block-size: 46px; padding-inline: var(--s4);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-pill); color: var(--text); font: inherit; font-size: 1rem;
}
.ovl__in::-webkit-search-cancel-button { filter: invert(.6); }

/* ======================== 17. ITEM SHEET ========================== */
.sheet, .cart { position: fixed; inset: 0; z-index: var(--z-sheet); }
.sheet__scrim, .cart__scrim { position: absolute; inset: 0; background: var(--scrim); border: 0; }

.sheet__panel, .cart__panel {
  position: absolute; inset-block-end: 0; inset-inline: 0;
  max-block-size: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-start-start-radius: calc(var(--r) + 8px);
  border-start-end-radius: calc(var(--r) + 8px);
  box-shadow: var(--shadow-3); padding-block-end: calc(var(--s5) + env(safe-area-inset-bottom));
  animation: rise 260ms var(--ease);
}
@keyframes rise { from { transform: translateY(14%); opacity: .4; } }

.sheet__grab {
  display: block; inline-size: 44px; block-size: 20px; margin: var(--s2) auto 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.sheet__grab::after {
  content: ""; position: absolute; inset-block-start: 8px; inset-inline: 0;
  block-size: 4px; border-radius: var(--r-pill); background: var(--border);
}
.sheet__media img { inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sheet__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.sheet__name { font-size: 1.3rem; }
.sheet__desc { color: var(--muted); font-size: .95rem; }
.sheet__cal, .sheet__alg { color: var(--muted); font-size: .8rem; }
.sheet__alg { padding-block-start: var(--s2); border-block-start: 1px solid var(--rule); }
.sheet__price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

.sheet__opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opt {
  min-block-size: 44px; padding-inline: var(--s4); border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer;
  font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: var(--s2);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.opt.is-on { border-color: var(--primary); background: var(--tint); color: var(--primary); }

.sheet__buy { display: flex; gap: var(--s3); align-items: center; margin-block-start: var(--s2); }

.sheet__note {
  display: block; margin-block: var(--s3) var(--s2);
  font-size: .82rem; color: var(--muted); font-weight: 600;
}
.sheet__note input {
  display: block; inline-size: 100%; margin-block-start: var(--s2);
  padding: var(--s3) var(--s3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--text); font: inherit; font-weight: 400;
}
.sheet__note input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.cart__note-txt {
  display: block; color: var(--primary); font-size: .78rem;
  font-weight: 600; margin-block-start: 2px;
}
.qty {
  display: flex; align-items: center; border: 1px solid var(--border);
  border-radius: var(--r-pill); background: var(--surface-2); flex: none;
}
.qty__b {
  inline-size: 44px; block-size: 46px; background: none; border: 0;
  font-size: 1.2rem; cursor: pointer; border-radius: var(--r-pill);
}
.qty__b:disabled { opacity: .35; cursor: default; }
.qty__n { min-inline-size: 26px; text-align: center; font-weight: 700;
          font-variant-numeric: tabular-nums; }

/* ============================ 18. CART ============================ */
.cart__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4); border-block-end: 1px solid var(--border);
  position: sticky; inset-block-start: 0; background: var(--bg); z-index: 2;
}
.cart__hd h2 { font-size: 1.1rem; }
.cart__list { padding: var(--s2) var(--s4); }
.cart__row {
  display: flex; align-items: center; gap: var(--s3); padding-block: var(--s3);
}
.cart__row + .cart__row { border-block-start: 1px solid var(--rule); }
.cart__nm { flex: 1; min-inline-size: 0; font-size: .92rem; font-weight: 600; }
.cart__nm small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.cart__ft { padding: var(--s4); border-block-start: 1px solid var(--border);
            display: flex; flex-direction: column; gap: var(--s3); }
.cart__note { display: flex; flex-direction: column; gap: var(--s1);
              font-size: .85rem; color: var(--muted); }
.cart__note textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text); font: inherit; font-size: .9rem; padding: var(--s2); resize: vertical;
}
.cart__sum { display: flex; justify-content: space-between; align-items: baseline;
             font-size: 1.05rem; font-weight: 700; }
.cart__sum strong { font-size: 1.25rem; color: var(--primary);
                    font-variant-numeric: tabular-nums; }
.cart__hint { color: var(--muted); font-size: .76rem; text-align: center; }

/* ========================== 19. LIGHTBOX ========================== */
.lb {
  position: fixed; inset: 0; z-index: var(--z-lb);
  background: rgba(0, 0, 0, .94); display: grid; place-items: center;
  grid-template-areas: "prev img next" ". cap .";
  grid-template-columns: 56px 1fr 56px; gap: var(--s3);
  padding: var(--s4); touch-action: pan-y;
}
.lb__img { grid-area: img; max-block-size: 78vh; max-inline-size: 100%;
           object-fit: contain; border-radius: var(--r-sm); }
.lb__cap { grid-area: cap; color: #fff; text-align: center; font-size: .88rem; opacity: .85; }
.lb__nav {
  inline-size: 48px; block-size: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.8rem;
  line-height: 1; cursor: pointer;
}
.lb__nav--prev { grid-area: prev; }
.lb__nav--next { grid-area: next; }
.lb__x {
  position: absolute; inset-block-start: var(--s4); inset-inline-end: var(--s4);
  inline-size: 44px; block-size: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; display: grid;
  place-items: center; cursor: pointer;
}
html[dir="rtl"] .lb__nav--prev { transform: scaleX(-1); }
html[dir="rtl"] .lb__nav--next { transform: scaleX(-1); }

/* ========================== 20. MOTION ============================ */
/* The reference template puts all its life in :hover — which does nothing on
   a phone, and a phone is where this menu is actually read. So the entrance
   animation carries the weight on touch, and hover effects are a desktop
   bonus gated behind (hover: hover). */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 520ms var(--ease) var(--d, 0ms), transform 520ms var(--ease) var(--d, 0ms);
}
body.no-js [data-reveal] { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .card__media img { transition: transform 420ms var(--ease); }
  .card:hover .card__media img { transform: scale(1.05); }
  .card .price { transition: color 200ms var(--ease); }
  .card:hover .price--now, .card:hover .price:not(.price--was) { color: var(--primary); }
  .gal__it img, .offer img { transition: transform 420ms var(--ease); }
  .gal__it:hover img, .offer:hover img { transform: scale(1.04); }
}

/* ========================= 21. BREAKPOINTS ======================== */
@media (min-width: 480px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s4); }
  .ftr__in { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 768px) {
  :root { --hdr-h: 64px; }
  body { font-size: 17px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  .grid--list { grid-template-columns: repeat(2, 1fr); }
  .sec-h { font-size: 1.15rem; }
  .hours__grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .ftr__in { grid-template-columns: 2fr 1fr 1fr; }
  .sheet__panel, .cart__panel {
    inset-block: 0; inset-inline-start: auto; inline-size: min(460px, 100%);
    max-block-size: 100vh; border-radius: 0; animation: slide 260ms var(--ease);
  }
  @keyframes slide { from { transform: translateX(6%); opacity: .5; } }
  html[dir="rtl"] .sheet__panel, html[dir="rtl"] .cart__panel { inset-inline-end: auto; inset-inline-start: 0; }
  .sheet__grab { display: none; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .hero { min-block-size: 48vh; padding-block: var(--s8) var(--s6); }
  .hero--img { min-block-size: 60vh; }
}
@media (min-width: 1280px) {
  .grid--list { grid-template-columns: repeat(3, 1fr); }
}

/* ======================= 22. REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================== 23. PRINT =========================== */
@media print {
  .hdr, .chips, .fab, .ovl, .sheet, .cart, .lb, .hero__cta, .skip { display: none !important; }
  .sec.is-hidden { display: block !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border-color: #ccc; }
}