/* Zaatar & Ember demo website.
   The restaurant's own identity: zaatar green, sumac red, ember orange, charcoal night.
   Mobile first. No framework, no external requests. */

@font-face {
  font-family: "Rakkas";
  src: url("../fonts/Rakkas-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F2E6;
  --paper-2: #E9E8D6;
  --card: #FCFBF5;
  --line: #D3D2BA;
  --field-line: #7B8370;
  --ink: #1B2114;
  --muted: #4D5543;
  --zaatar: #44521B;
  --zaatar-soft: #DDE2BF;
  --sumac: #8A1F3A;
  --ember: #F26B1F;
  --ember-hot: #FF8A3D;
  --night: #161A10;
  --night-2: #232A18;
  --sesame: #EFE6C8;
  --on-night-muted: #C9C8AC;
  --danger: #A3152E;
  --focus: #8A1F3A;

  --display: "Rakkas", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;

  --header-h: 64px;
  --wrap: 1180px;
  --gutter: 20px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2 { line-height: 1.35; }
h1 { font-size: clamp(2.5rem, 8vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
p { max-width: 68ch; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-s);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }

.link { color: var(--sumac); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 3px; }
.big { font-size: 1.25rem; }
.hint, .fineprint { color: var(--muted); font-size: .9375rem; }
.fineprint { font-size: .875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; text-decoration: none; text-align: center; line-height: 1.25;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-ember { background: var(--ember); color: var(--night); }
.btn-ember:hover { background: var(--ember-hot); }
.btn-primary { background: var(--zaatar); color: #fff; }
.btn-primary:hover { background: #343F14; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: var(--sesame); color: var(--sesame); background: transparent; }
.btn-ghost-light:hover { background: var(--sesame); color: var(--night); }
.btn-whatsapp { background: #1C6B43; color: #fff; }
.btn-whatsapp:hover { background: #145234; }
.btn-lg { min-height: 56px; padding-inline: 28px; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; text-decoration: none;
}
.icon-btn:hover { background: var(--paper-2); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; margin-inline-end: auto; }
.brand-name { font-family: var(--display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.mark { flex: none; }
.bar-tools { display: flex; align-items: center; gap: 2px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.lang-switch:hover { background: var(--paper-2); }
.count {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding-inline: 5px;
  border-radius: 999px; background: var(--sumac); color: #fff; font-size: .75rem; font-weight: 600; line-height: 20px; text-align: center;
}
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.when-closed, .when-open { display: inline-flex; }

.main-nav {
  display: none; position: absolute; inset-inline: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
}
.main-nav.is-open { display: block; }
.main-nav a {
  display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 600; font-size: 1.125rem;
  border-bottom: 1px solid var(--line);
}
.main-nav a[aria-current="page"] { color: var(--sumac); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; padding: 0; border: 0; background: none; margin-inline-end: 12px; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a { min-height: 44px; padding-inline: 12px; border: 0; border-radius: 999px; font-size: 1rem; }
  .main-nav a:hover { background: var(--paper-2); }
  .main-nav a[aria-current="page"] { background: var(--zaatar-soft); color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { background: var(--night); color: var(--sesame); --focus: var(--ember-hot); overflow: hidden; }
.hero-grid { display: grid; gap: 8px; padding-block: 40px 0; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.hero h1 { color: #FFF8E3; }
.lede { font-size: 1.1875rem; max-width: 46ch; }
.hero .lede { color: var(--sesame); }
.open-now { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; }
.open-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .55; }
.open-now.is-open::before { background: #8FD05A; opacity: 1; }
.hero-art { margin-inline: -8px; }
.table-svg { display: block; width: 100%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 32px; padding-block: 24px; align-items: center; }
  .hero-art { margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .table-svg > g { animation: plate-in .7s ease-out both; }
  .table-svg > g:nth-of-type(2) { animation-delay: .08s; }
  .table-svg > g:nth-of-type(3) { animation-delay: .16s; }
  .table-svg > g:nth-of-type(4) { animation-delay: .24s; }
  .table-svg > g:nth-of-type(5) { animation-delay: .32s; }
  .table-svg > g:nth-of-type(6) { animation-delay: .4s; }
  .table-svg > g:nth-of-type(7) { animation-delay: .48s; }
  .table-svg > g:nth-of-type(8) { animation-delay: .56s; }
  .table-svg > g:nth-of-type(9) { animation-delay: .64s; }
  .table-svg > circle { animation: ember 5s ease-in-out infinite alternate; }
}
@keyframes plate-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ember { from { opacity: .7; } to { opacity: 1; } }

/* ---------- facts strip ---------- */
.facts { background: var(--zaatar); color: #fff; --focus: #fff; }
.facts-list { display: grid; }
.facts-list > div { padding-block: 18px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.facts-list dd { color: #F1F3E2; font-size: 1rem; }
@media (min-width: 800px) {
  .facts-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .facts-list > div { border-bottom: 0; padding-block: 28px; }
}

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section-tint { background: var(--paper-2); }
.section-night { background: var(--night); color: var(--sesame); --focus: var(--ember-hot); }
.section-night h2 { color: #FFF8E3; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-more { margin-top: 28px; }
.section > .wrap > h2, .narrow > h2 { margin-bottom: 16px; }
.narrow > p + p { margin-top: 16px; }
@media (min-width: 900px) { .section { padding-block: 88px; } }

.split { display: grid; gap: 36px; }
.split > div, .split > section, .duo > div { display: grid; gap: 16px; align-content: start; justify-items: start; }
.duo { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .duo { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* dish drawings sit on a tile */
.dish-art { display: block; flex: none; background: var(--tile, var(--night-2)); border-radius: var(--r-m); padding: 6px; line-height: 0; }
.dish-svg { display: block; width: 100%; height: auto; }

.picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pick { display: grid; gap: 4px; text-decoration: none; padding-bottom: 6px; border-radius: var(--r-m); }
.pick .dish-art { padding: 14px; margin-bottom: 8px; transition: background-color .2s ease; }
.pick:hover .dish-art { background: #33401C; }
.pick-name { font-weight: 600; line-height: 1.3; }
.pick-price { color: var(--muted); }
@media (min-width: 640px) { .picks { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .picks { grid-template-columns: repeat(7, 1fr); } .pick .dish-art { padding: 10px; } }

.steps { display: grid; gap: 0; counter-reset: step; width: 100%; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding-block: 18px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); grid-row: span 2; font-family: var(--display); font-size: 2.75rem; line-height: 1; color: var(--sumac);
}
.steps strong { font-size: 1.125rem; }
.steps span { color: var(--muted); }

/* ---------- hours ---------- */
.hours, .areas { width: 100%; border-collapse: collapse; }
.hours th, .hours td, .areas th, .areas td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: start; font-weight: 400; }
.hours td, .areas td { text-align: end; }
.areas thead th { font-weight: 600; font-size: .9375rem; color: var(--muted); }
.areas thead th:last-child { text-align: end; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; }
.hours tr.is-today th::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 10px; border-radius: 50%; background: var(--ember); }
.areas { max-width: 560px; margin-block: 20px; }

/* ---------- page head ---------- */
.page-head { padding-block: 36px 28px; }
.page-head .wrap { display: grid; gap: 12px; }
.page-head h1 { font-size: clamp(2.25rem, 6.5vw, 3.75rem); }
.page-head .lede { color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .page-head { padding-block: 64px 40px; } }

/* ---------- menu page ---------- */
.cat-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-block: 1px solid var(--line); }
.cat-nav ul { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; white-space: nowrap; background: var(--paper-2);
}
.cat-nav a:hover { background: var(--zaatar-soft); }

.menu-layout { display: grid; gap: 40px; padding-block: 24px 64px; }
.basket-panel { display: none; }
@media (min-width: 900px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 56px; }
  .basket-panel {
    display: block; position: sticky; top: calc(var(--header-h) + 78px); max-height: calc(100dvh - var(--header-h) - 100px); overflow-y: auto;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; scroll-margin-top: 150px;
  }
}

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters legend { float: inline-start; margin-inline-end: 12px; padding-block: 10px; font-weight: 600; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px;
  border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--card); font-size: 1rem;
}
.chip span::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--field-line); border-radius: 3px; }
.chip input:checked + span { background: var(--zaatar); border-color: var(--zaatar); color: #fff; }
.chip input:checked + span::before { background: #fff; border-color: #fff; clip-path: polygon(14% 52%, 0 67%, 40% 100%, 100% 24%, 85% 10%, 38% 68%); border-radius: 0; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.filter-status { min-height: 1.6em; margin-top: 10px; color: var(--muted); font-size: .9375rem; }

.menu-section { padding-top: 28px; }
.menu-section > header { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.menu-section > header p { color: var(--muted); }
#mezze { --tile: #DDE2BF; }
#bakery { --tile: #EAD7AE; }
#grill { --tile: #232A18; }
#mains { --tile: #D8C3A5; }
#desserts { --tile: #EBCDD2; }
#drinks { --tile: #C9DDD6; }

.dish { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; padding-block: 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.dish:target { background: var(--card); box-shadow: 0 0 0 12px var(--card); border-radius: 4px; }
.dish .dish-art { grid-row: span 2; align-self: start; }
.dish-body { display: grid; gap: 6px; align-content: start; }
.dish-body p { color: var(--muted); font-size: 1rem; }
.dish-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price { font-weight: 600; font-size: 1.0625rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn-add { min-height: 44px; padding: 8px 22px; background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn-add:hover { background: var(--ember); border-color: var(--ember); color: var(--night); }
@media (min-width: 640px) {
  .dish { grid-template-columns: 108px minmax(0, 1fr) auto; column-gap: 20px; }
  .dish .dish-art { grid-row: auto; }
  .dish-buy { flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 10px; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.6; background: var(--paper-2); color: var(--ink); }
.tag-v, .tag-vg { background: var(--zaatar-soft); color: #2E3A10; }
.tag-n { background: #F3DCE1; color: #7A1A32; }
.tag-s { background: #FBE1CD; color: #8A3606; }
.allergy { margin-top: 28px; padding: 16px 18px; background: var(--paper-2); border-radius: var(--r-m); font-size: 1rem; }

/* ---------- basket ---------- */
.basket-title { font-size: 1.75rem; margin-bottom: 12px; }
.basket-empty { display: grid; gap: 4px; padding-block: 12px; color: var(--muted); }
.basket-empty strong { color: var(--ink); }
.basket-lines li { display: grid; gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.bl-main { display: grid; gap: 2px; }
.bl-opts, .bl-note, .sl-name small { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.bl-note { font-style: italic; }
html[lang="ar"] .bl-note { font-style: normal; }
.bl-note::before { content: "“"; }
.bl-note::after { content: "”"; }
.bl-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-price, .sl-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--field-line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 1.375rem; line-height: 1; }
.stepper button:hover { background: var(--paper-2); }
.stepper-n { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper-lg button { width: 48px; height: 48px; }

.totals { display: grid; gap: 6px; margin-block: 16px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals dd { font-variant-numeric: tabular-nums; text-align: end; }
.totals-main { font-weight: 600; font-size: 1.1875rem; padding-top: 10px; border-top: 2px solid var(--ink); }
.notice { margin-block: 12px; padding: 12px 14px; border-inline-start: 4px solid var(--ember); background: #FBE9DA; border-radius: 4px; font-size: .9375rem; }
.basket-panel .btn-block, .sheet .btn-block, .summary .btn-block { margin-block: 12px 10px; }

.basket-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
.basket-bar .btn { width: 100%; justify-content: space-between; min-height: 52px; padding-inline: 10px 22px; }
[data-bar-count] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding-inline: 8px;
  border-radius: 999px; background: var(--night); color: #fff; font-variant-numeric: tabular-nums;
}
@media (max-width: 899px) { body.bar-on { padding-bottom: 76px; } }
@media (min-width: 900px) { .basket-bar { display: none; } }

/* ---------- dialogs and sheets ---------- */
dialog.sheet {
  width: 100%; max-width: 560px; max-height: 90dvh; margin: auto auto 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--card); color: var(--ink); overflow-y: auto;
  box-shadow: 0 -12px 48px rgba(22, 26, 16, .35);
}
dialog.sheet::backdrop { background: rgba(22, 26, 16, .62); }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: var(--r-l); padding: 28px; } }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-in .22s ease-out; }
}
@keyframes sheet-in { from { transform: translateY(24px); } to { transform: none; } }
.sheet-close { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--paper-2); }
.sheet-close:hover { background: var(--line); }
.sheet .basket-title, .dd-head h2, .pay-dialog h2 { padding-inline-end: 48px; }

.dd-head { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; margin-bottom: 8px; }
.dd-head h2 { font-size: 1.75rem; margin-bottom: 6px; }
.dd-head p { color: var(--muted); font-size: 1rem; }
.opt-group { margin-top: 20px; }
.opt-group legend { font-weight: 600; padding: 0 0 6px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-block: 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt input { width: 22px; height: 22px; margin: 0; accent-color: var(--zaatar); flex: none; }
.opt-name { flex: 1; }
.opt-price { color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.dish-dialog .field { margin-top: 20px; }
.dd-foot { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.dd-add { flex: 1; justify-content: space-between; padding-inline: 22px; }

.pay-dialog { display: none; }
.pay-dialog[open] { display: grid; gap: 16px; }
.pay-amount { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--paper-2); border-radius: var(--r-s); font-size: 1.1875rem; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .group > legend { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field-line); border-radius: var(--r-s);
  background: #fff; font-size: 1rem;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.err { color: var(--danger); font-weight: 600; font-size: .9375rem; }
.err::before { content: "! "; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }

.stack-form, .checkout-form { display: grid; gap: 22px; }
.stack-form > .btn { justify-self: start; }
.group { display: grid; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.group > legend { float: inline-start; width: 100%; font-family: var(--display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.group > legend + * { clear: both; }
.group-plain { padding: 0; border: 0; background: none; }
.group-plain > legend { font-family: var(--body); font-weight: 600; font-size: 1.0625rem; }
.delivery-fields { display: grid; gap: 16px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices:not(.choices-stack) { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
  border: 1.5px solid var(--field-line); border-radius: var(--r-m); background: #fff; cursor: pointer;
}
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--zaatar); flex: none; }
.choice span { display: grid; }
.choice small { color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--zaatar); border-width: 2.5px; background: #F3F5E3; padding: 9px 13px; }
.choice:has(input:disabled) { opacity: .6; cursor: not-allowed; }

.error-summary { padding: 16px 18px; border: 2px solid var(--danger); border-radius: var(--r-m); background: #FBEAEC; }
.error-summary p { font-weight: 600; }
.error-summary ul { list-style: disc; padding-inline-start: 22px; margin-top: 6px; }
.error-summary a { color: var(--danger); font-weight: 600; }

/* ---------- checkout, order, booking layouts ---------- */
.checkout-layout, .form-layout, .order-layout { display: grid; gap: 32px; padding-bottom: 72px; }
.summary, .side-note { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; align-self: start; }
.summary h2, .side-note h2 { font-size: 1.625rem; margin-bottom: 12px; }
.side-note { display: grid; gap: 14px; }
.side-note h2 { margin-bottom: 0; }
.summary-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.sl-qty { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.summary-lines + p { margin-top: 12px; }
@media (min-width: 900px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
  .checkout-layout .summary { position: sticky; top: calc(var(--header-h) + 24px); }
  .form-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .order-layout { grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: start; }
  .order-layout .confirm { grid-column: 1 / -1; }
}
.form-layout h2 { margin-bottom: 20px; }
.form-layout .side-note h2, .form-layout .confirm h2 { margin-bottom: 0; }

.empty { display: grid; gap: 14px; justify-items: start; padding-block: 24px 48px; }
.plain-list { display: grid; gap: 12px; }
.plain-list li { padding-inline-start: 18px; position: relative; }
.plain-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }

.confirm { display: grid; gap: 12px; justify-items: start; padding: 28px 24px; background: var(--zaatar-soft); border-radius: var(--r-l); }
.confirm-tick { color: var(--zaatar); line-height: 0; }
.confirm h2:focus { outline: none; }
.ref { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ref strong { font-size: 1.75rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.confirm .hint, .confirm .fineprint { color: #3A4230; }

.status, .order-details { display: grid; gap: 16px; align-content: start; }
.status h2, .order-details h2 { font-size: 1.75rem; }
.status-steps { display: grid; }
.status-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; color: var(--muted); }
.status-steps li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.step-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--field-line); background: var(--paper); }
.status-steps .is-done { color: var(--ink); }
.status-steps .is-done .step-dot { background: var(--zaatar); border-color: var(--zaatar); box-shadow: inset 0 0 0 4px var(--zaatar); background-image: none; }
.status-steps .is-done::before { background: var(--zaatar) !important; }
.status-steps .is-current { color: var(--ink); font-weight: 600; font-size: 1.1875rem; }
.status-steps .is-current .step-dot { background: var(--ember); border-color: var(--night); box-shadow: 0 0 0 5px rgba(242, 107, 31, .25); }
.facts-dl { display: grid; gap: 12px; }
.facts-dl dt, .contact-dl dt { font-weight: 600; font-size: .9375rem; color: var(--muted); }

/* ---------- story ---------- */
.prose { display: grid; gap: 40px; padding-bottom: 80px; }
.story-part { display: grid; gap: 20px; align-items: center; }
.story-part .dish-art { width: 150px; padding: 12px; border-radius: 50%; }
.story-part h2 { margin-bottom: 8px; }
@media (min-width: 640px) {
  .story-part { grid-template-columns: 180px 1fr; gap: 36px; }
  .story-part .dish-art { width: 180px; }
  .story-part:nth-of-type(even) { grid-template-columns: 1fr 180px; }
  .story-part:nth-of-type(even) .dish-art { order: 2; }
}

/* ---------- visit, events, contact ---------- */
.visit-top { padding-bottom: 64px; }
.visit-top h2, .contact-list + div h2 { margin-bottom: 4px; }
.map { display: block; width: 100%; border-radius: var(--r-l); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 12px; font-weight: 600; font-size: 1.125rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--sumac); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

.offers { display: grid; gap: 0; padding-bottom: 56px; }
.offers li { display: grid; gap: 8px; padding-block: 24px; border-top: 2px solid var(--ink); }
.offers h2 { font-size: 1.75rem; }
.offers p { color: var(--muted); }
@media (min-width: 800px) { .offers { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.contact-list { display: grid; gap: 14px; align-content: start; }
.contact-dl { display: grid; gap: 18px; margin-top: 12px; }
.contact-dl dd { font-size: 1.1875rem; }
.link-list { display: grid; width: 100%; }
.link-list a { display: grid; gap: 2px; padding-block: 14px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; }
.link-list a:hover strong { color: var(--sumac); text-decoration: underline; text-underline-offset: 4px; }
.link-list span { color: var(--muted); font-size: 1rem; }
.split > div > .hours { margin-bottom: 8px; }
main > .wrap.split { padding-bottom: 72px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); --focus: var(--ember-hot); padding-block: 56px 88px; font-size: 1rem; }
.site-footer a { color: var(--sesame); text-underline-offset: 4px; }
.footer-grid { display: grid; gap: 36px; }
.footer-grid > * { display: grid; gap: 10px; align-content: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #FFF8E3; }
.footer-brand .brand-name { font-size: 1.75rem; }
.site-footer h2 { font-family: var(--body); font-weight: 600; font-size: 1rem; color: #FFF8E3; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; }
.site-footer nav { gap: 2px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 56px; } }
.footer-credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(239, 230, 200, .22);
}
.footer-credit p { font-size: .9375rem; max-width: 56ch; }
.maker { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; }
.maker img { display: block; width: 200px; height: 120px; margin-block: -24px; }
.maker:hover span { text-decoration: underline; }

.demo-tag {
  position: fixed; z-index: 40; inset-inline-start: 10px; bottom: 10px;
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px;
  background: var(--night); color: var(--sesame); border: 1px solid rgba(239, 230, 200, .45);
  font-size: .8125rem; font-weight: 600; text-decoration: none; line-height: 1.3; --focus: var(--ember-hot);
}
.demo-tag::after { content: ""; position: absolute; inset: -6px; }
.demo-tag:hover { background: #000; }
@media (max-width: 899px) { body.bar-on .demo-tag { bottom: 84px; } }

.toast {
  position: fixed; z-index: 60; inset-inline: 16px; bottom: 96px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: var(--r-m); background: var(--night); color: #fff; font-weight: 600; font-size: 1rem;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.toast.is-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .demo-tag, .basket-bar, .cat-nav, .filters, .btn-add, .basket-panel { display: none !important; }
}

.teaser { display: grid; gap: 16px; justify-items: start; }
.teaser p { max-width: 62ch; }

.offers li { align-content: start; }
