/* Gilaneh prototype — "mist, tea, fire". Mobile first. */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f4eee2;
  --paper-2: #ebe2d0;
  --card: #fbf8f1;
  --ink: #1d2a22;
  --ink-soft: #56655b;
  --line: #ddd2bd;
  --tea: #1e3a2c;
  --tea-2: #2b5140;
  --tea-ink: #f1ead9;
  --ember: #c2412d;
  --ember-press: #a6341f;
  --on-ember: #ffffff;
  --gold: #c79a4a;
  --icon: #2b5140;
  --ok: #2f7a4f;
  --warn: #9a6a12;
  --shadow: 0 1px 2px rgb(30 40 30 / .06), 0 8px 24px rgb(30 40 30 / .08);
  --radius: 16px;
  --nav-h: 64px;
  --font: "Vazirmatn", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111a15; --paper-2: #17231c; --card: #1b2921; --ink: #ede6d6; --ink-soft: #a9b3a8;
    --line: #2c3b32; --tea: #0c1611; --tea-2: #1d3428; --tea-ink: #ede6d6;
    --ember: #e05a40; --ember-press: #c74a31; --gold: #d8b06a; --icon: #93bba2; --ok: #6cc08e; --warn: #e2b04f;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111a15; --paper-2: #17231c; --card: #1b2921; --ink: #ede6d6; --ink-soft: #a9b3a8;
  --line: #2c3b32; --tea: #0c1611; --tea-2: #1d3428; --tea-ink: #ede6d6;
  --ember: #e05a40; --ember-press: #c74a31; --gold: #d8b06a; --icon: #93bba2; --ok: #6cc08e; --warn: #e2b04f;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden]:not(.cartbar) { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
  background: var(--paper); color: var(--ink);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 16px; }
.num { font-feature-settings: "tnum"; }

/* Prototype ribbon */
.proto { background: var(--gold); color: #1d1a12; font-size: 12px; text-align: center; padding: 2px 8px; }
.proto-btn { font: inherit; font-weight: 700; background: rgb(0 0 0 / .12); border: 0; border-radius: 6px; padding: 2px 8px; margin: 2px 0; cursor: pointer; color: inherit; min-height: 28px; }

/* Service switched off for the day: a calm notice, never an error */
.off-note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgb(232 163 58 / .16); border: 1px solid rgb(232 163 58 / .45); font-size: 14px; max-width: 46ch; }
.off-note a { font-weight: 700; }
.off-card { margin-bottom: 16px; }
.off-card h2 { font-size: 20px; margin-bottom: 6px; }

/* Rashti-embroidery band, decorative only */
.band {
  height: 14px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14' viewBox='0 0 56 14'%3E%3Cpath d='M0 7c7-7 14-7 21 0s14 7 21 0 14-7 14-7' fill='none' stroke='%23c79a4a' stroke-width='1.4'/%3E%3Ccircle cx='21' cy='7' r='2.2' fill='%23c2412d'/%3E%3Cpath d='M42 7l3-3 3 3-3 3z' fill='%23c79a4a'/%3E%3C/svg%3E") repeat-x center;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--tea) 94%, transparent);
  backdrop-filter: blur(8px); color: var(--tea-ink);
}
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; flex: none; }
.brand-name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-sub { font-size: 12px; opacity: .75; line-height: 1.2; }
.top-links { display: none; gap: 4px; }
.top-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.top-links a[aria-current="page"] { background: rgb(255 255 255 / .12); }
.icon-btn {
  min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .18);
  background: transparent; display: grid; place-items: center; cursor: pointer; color: inherit; text-decoration: none;
  padding-inline: 10px; font-size: 14px; font-weight: 500;
}
.top-call { display: none; }

/* Open / closed pill */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7bd69a; box-shadow: 0 0 0 4px rgb(123 214 154 / .2); }
.status[data-open="false"]::before { background: #e8a33a; box-shadow: 0 0 0 4px rgb(232 163 58 / .2); }

/* ---------- Bottom nav (phone) ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; font-size: 12px; font-weight: 500; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; position: relative;
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar [aria-current="page"] { color: var(--ember); }
.badge {
  position: absolute; top: 6px; inset-inline-start: calc(50% + 4px);
  min-width: 20px; height: 20px; border-radius: 10px; padding-inline: 5px;
  background: var(--ember); color: var(--on-ember); font-size: 12px; line-height: 20px; text-align: center;
}
.badge[hidden] { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .12s, background .12s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ember); color: var(--on-ember); }
.btn-primary:hover { background: var(--ember-press); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--tea); color: var(--tea-ink); overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-top: 36px; padding-bottom: 210px; }
.kicker { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--gold); }
.hero h1 { font-size: clamp(34px, 9vw, 64px); font-weight: 700; margin-top: 8px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { margin-top: 12px; font-size: 17px; max-width: 34ch; opacity: .9; }
.hero-actions { display: grid; gap: 10px; margin-top: 24px; max-width: 420px; }
.hero .status { margin-top: 18px; }
.mist { animation: drift 38s linear infinite alternate; }
.mist.slow { animation-duration: 60s; }
.smoke { animation: rise 6s ease-in-out infinite; transform-origin: bottom; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@keyframes rise { 0%,100% { opacity: .35; transform: translateY(0) scaleY(1); } 50% { opacity: .7; transform: translateY(-6px) scaleY(1.08); } }
@media (prefers-reduced-motion: reduce) { .mist, .smoke { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding-block: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; }
.section-head a { font-weight: 500; color: var(--ember); text-decoration: none; padding: 10px 0; }
.lead { color: var(--ink-soft); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 132px; padding: 16px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.cat svg { width: 46px; height: 46px; color: var(--icon); }
.cat strong { font-size: 17px; }
.cat small { color: var(--ink-soft); font-size: 13px; }
.cat.hot { background: var(--tea); color: var(--tea-ink); border-color: transparent; }
.cat.hot svg { color: var(--gold); }
.cat.hot small { color: var(--tea-ink); opacity: .8; }

/* Trays carousel */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tray { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tray-photo { aspect-ratio: 16 / 10; }
.tray-body { padding: 14px 16px 16px; display: grid; gap: 6px; flex: 1; }
.tray-body h3 { font-size: 18px; }
.tray-meta { color: var(--ink-soft); font-size: 14px; }
.tray-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; font-size: 18px; }
.price small { font-weight: 400; font-size: 13px; color: var(--ink-soft); }

/* Photo slot: stands in for real photos until the restaurant sends them */
.photo { position: relative; background: var(--tea-2); color: var(--tea-ink); display: grid; place-items: center; overflow: hidden; }
.photo svg { width: 70%; height: 70%; opacity: .9; }
.photo::after { content: "جای عکس واقعی"; position: absolute; inset-inline-start: 8px; bottom: 6px; font-size: 11px; opacity: .6; }
.photo.sm::after { content: none; }

/* Places */
.places { display: grid; gap: 12px; }
.place { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.place svg { width: 64px; height: 64px; color: var(--icon); }
.place h3 { font-size: 17px; }
.place p { color: var(--ink-soft); font-size: 14px; }

/* Promise strip */
.promise { background: var(--tea); color: var(--tea-ink); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.promise li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.promise svg { width: 40px; height: 40px; color: var(--gold); }
.promise strong { display: block; font-size: 17px; }
.promise span { opacity: .8; font-size: 14px; }

/* Reviews */
.reviews { display: grid; gap: 12px; }
.review { padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stars { color: var(--gold); letter-spacing: 2px; }
.review p { margin-top: 6px; }
.review footer { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: 14px; }
.avg { display: flex; align-items: center; gap: 12px; }
.avg b { font-size: 34px; }

/* Visit card */
.visit { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.hours { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 15px; }
.hours .today { font-weight: 700; color: var(--ember); }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.route a { min-height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--paper-2); text-decoration: none; font-weight: 500; font-size: 14px; }
.map { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-soft); font-size: 14px; overflow: hidden; }

/* Footer */
.foot { background: var(--tea); color: var(--tea-ink); padding-block: 28px; font-size: 14px; }
.foot .wrap { display: grid; gap: 10px; }
.foot a { text-decoration: none; }

/* ---------- Menu page ---------- */
.menu-head { background: var(--tea); color: var(--tea-ink); padding-block: 18px 14px; }
.menu-head h1 { font-size: 28px; }
.menu-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 6px; font-size: 13px; opacity: .9; }
.search { margin-top: 14px; position: relative; }
.search input {
  width: 100%; height: 48px; border-radius: 14px; border: 0; padding-inline: 44px 14px;
  background: rgb(255 255 255 / .95); color: #1d2a22;
}
.search svg { position: absolute; inset-inline-start: 14px; top: 12px; width: 24px; height: 24px; color: #56655b; pointer-events: none; }
.table-note { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: rgb(255 255 255 / .12); font-size: 14px; }

.chips {
  position: sticky; top: 60px; z-index: 30; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.chips .wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.chip[aria-current="true"] { background: var(--tea); color: var(--tea-ink); border-color: var(--tea); }

.menu-layout { display: grid; gap: 0; }
.menu-side { display: none; }
.menu-sec { scroll-margin-top: 130px; padding-top: 22px; }
.menu-sec h2 { font-size: 21px; display: flex; align-items: baseline; gap: 8px; }
.menu-sec h2 small { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.menu-sec > p { color: var(--ink-soft); font-size: 14px; margin-top: 2px; }
.menu-sec > p.sec-off { color: var(--ember); font-weight: 700; font-size: 15px; background: color-mix(in srgb, var(--ember) 9%, transparent); border-radius: 12px; padding: 10px 12px; margin: 10px 0 4px; }
.menu-sec > p.sec-days { font-size: 13px; }
.items { list-style: none; margin: 10px 0 0; padding: 0; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed var(--line); min-height: 76px;
}
.item-main { cursor: pointer; min-width: 0; }
.item-name { font-weight: 700; font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.item-desc { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; margin-top: 2px; }
.tag { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.tag.hot { background: color-mix(in srgb, var(--ember) 14%, transparent); color: var(--ember); }
.item-side { display: flex; align-items: center; gap: 10px; }
.item-price { text-align: end; font-weight: 700; font-size: 16px; white-space: nowrap; }
.item-price small { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-soft); line-height: 1.3; }
.add {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--ember); color: var(--on-ember); display: grid; place-items: center; flex: none;
}
.add svg { width: 22px; height: 22px; }
.item.out .item-name, .item.out .item-price { opacity: .5; }
.item.out .add { display: none; }
.out-label { font-size: 12px; font-weight: 500; color: var(--warn); }
.stepper { display: inline-flex; align-items: center; border-radius: 12px; background: var(--paper-2); }
.stepper button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; font-weight: 700; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-soft); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.updated { font-size: 13px; color: var(--ink-soft); padding-block: 20px 96px; }

/* Floating cart bar */
.cartbar {
  position: fixed; inset-inline: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 18px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--ember); color: var(--on-ember); font-weight: 700; box-shadow: 0 10px 30px rgb(194 65 45 / .35);
  transform: translateY(0); transition: transform .2s, opacity .2s;
}
.cartbar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.cartbar .count { background: rgb(255 255 255 / .2); border-radius: 8px; padding: 0 8px; }

/* Desktop cart panel */
.cart-panel { display: none; }

/* ---------- Sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgb(10 16 12 / .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 70; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .25s ease-out; box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
}
.sheet.on { transform: translateY(0); }
.grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 14px; }
.sheet h2 { font-size: 22px; }
.sheet-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 22px; }
.sheet .photo { aspect-ratio: 16 / 9; border-radius: 14px; margin-bottom: 14px; }
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 7%, transparent); }
.opt input { accent-color: var(--ember); width: 20px; height: 20px; }
.opt span { flex: 1; font-weight: 500; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label, .field .label { font-weight: 500; font-size: 14px; }
.field input, .field textarea {
  min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--tea-2); }
.field .hint { font-size: 12.5px; color: var(--ink-soft); }
.field .err { font-size: 13px; color: var(--ember); }
.field.bad input { border-color: var(--ember); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.seg label { min-height: 46px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; text-align: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--card); color: var(--ember); box-shadow: var(--shadow); font-weight: 700; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); }
.seg label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.lines { list-style: none; padding: 0; margin: 10px 0 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line-name { font-weight: 500; }
.line-sub { font-size: 13px; color: var(--ink-soft); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 16px; font-size: 15px; }
.totals .grand { font-weight: 700; font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-soft); }
.note.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--ink); }
.sticky-cta { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--card); padding-block: 12px; margin-top: 12px; }

/* Success */
.done { text-align: center; padding: 16px 0 4px; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.done-mark svg { width: 38px; height: 38px; }
.code { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 10px; background: var(--paper-2); font-weight: 700; font-size: 20px; letter-spacing: 2px; direction: ltr; }
.track { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; text-align: start; }
.track li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-bottom: 16px; position: relative; color: var(--ink-soft); }
.track li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); margin: 6px auto 0; z-index: 1; }
.track li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.track li.now { color: var(--ink); font-weight: 700; }
.track li.now::before { background: var(--ok); border-color: var(--ok); }

/* ---------- Reserve page ---------- */
.res-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.res-step { padding-block: 16px; border-bottom: 1px dashed var(--line); }
.res-step:last-of-type { border-bottom: 0; }
.res-step h2 { font-size: 17px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.res-step h2 b { width: 26px; height: 26px; border-radius: 50%; background: var(--tea); color: var(--tea-ink); display: grid; place-items: center; font-size: 13px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day, .slot {
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; text-align: center;
}
.day { min-height: 76px; display: grid; align-content: center; gap: 0; padding: 6px 4px; }
.day small { font-size: 12px; color: var(--ink-soft); }
.day b { font-size: 20px; }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 9%, transparent); color: var(--ember); }
.day:disabled, .slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 46px; font-weight: 500; font-size: 15px; display: grid; place-items: center; line-height: 1.2; }
.slot small { display: block; font-size: 10.5px; font-weight: 400; }
.people { display: flex; align-items: center; justify-content: space-between; }
.people .stepper button { width: 52px; height: 52px; }
.people output { min-width: 40px; font-size: 22px; }
.place-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.place-pick label { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; text-align: center; font-size: 14px; font-weight: 500; }
.place-pick svg { width: 40px; height: 40px; color: var(--icon); }
.place-pick input { position: absolute; opacity: 0; }
.place-pick label:has(input:checked) { border-color: var(--ember); background: color-mix(in srgb, var(--ember) 7%, transparent); color: var(--ember); }
.place-pick label:has(input:checked) svg { color: var(--ember); }
.place-pick label:has(input:focus-visible) { outline: 3px solid var(--gold); }

/* ---------- Tablet & desktop ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top-links { display: flex; }
  .top-call { display: grid; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 24px) / 3); }
  .places { grid-template-columns: repeat(3, 1fr); }
  .place { grid-template-columns: 1fr; text-align: start; }
  .promise ul { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .cartbar { inset-inline: auto 24px; bottom: 24px; min-width: 340px; }
  .sheet { inset-inline: auto; left: 50%; bottom: auto; top: 50%; width: min(560px, 92vw); max-height: 86vh; border-radius: 22px; transform: translate(-50%, -40%) scale(.98); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .grip { display: none; }
  .slots { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 1024px) {
  .hero .wrap { padding-top: 72px; padding-bottom: 120px; display: grid; grid-template-columns: 1.1fr 1fr; }
  .hero-art { inset-inline-start: 48%; -webkit-mask-image: linear-gradient(to left, transparent, #000 18%); mask-image: linear-gradient(to left, transparent, #000 18%); }
  .hero { min-height: 520px; }
  .hero-sub { font-size: 19px; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .cats { grid-template-columns: repeat(6, 1fr); }
  .chips { display: none; }
  .menu-layout { grid-template-columns: 200px 1fr 340px; gap: 32px; align-items: start; }
  .menu-side { display: block; position: sticky; top: 84px; padding-top: 22px; }
  .menu-side a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--ink-soft); }
  .menu-side a[aria-current="true"] { background: var(--tea); color: var(--tea-ink); }
  .cart-panel { display: block; position: sticky; top: 84px; margin-top: 22px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; }
  .cart-panel h2 { font-size: 19px; }
  .cartbar { display: none !important; }
  .items { display: grid; grid-template-columns: 1fr; }
  .res-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
}

/* Star rating input: RTL row, highest first in DOM so :checked ~ lights the lower ones */
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 34px; line-height: 1; color: var(--line); cursor: pointer; padding: 4px; min-width: 44px; text-align: center; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 8px; }

/* ================= Home v3: photo-led ================= */
.hero3 { position: relative; min-height: min(82vh, 720px); display: flex; align-items: flex-end; color: #f6efe2; background: #14110e; overflow: hidden; }
.hero3-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero3-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 17 14 / .1) 0%, rgb(20 17 14 / .45) 32%, rgb(20 17 14 / .86) 55%, rgb(20 17 14 / .96) 100%); }
.hero3-text { position: relative; padding-top: 120px; padding-bottom: 36px; }
.hero3 .kicker { color: #e2b45c; letter-spacing: .02em; }
.hero3 h1 { font-size: clamp(34px, 9.5vw, 72px); font-weight: 700; line-height: 1.22; margin-top: 6px; text-shadow: 0 2px 24px rgb(0 0 0 / .45); }
.hero3 h1 em { font-style: normal; color: #e2b45c; }
.hero3 .hero-sub { margin-top: 12px; font-size: 17px; max-width: 38ch; color: #efe6d6; }
.hero3 .hero-actions { display: grid; gap: 10px; margin-top: 22px; max-width: 420px; }
.hero3 .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .7); background: rgb(0 0 0 / .18); backdrop-filter: blur(4px); }
.hero3 .status { margin-top: 16px; background: rgb(0 0 0 / .35); }
.photo-note { position: absolute; top: 10px; inset-inline-end: 12px; font-size: 11px; color: rgb(255 255 255 / .75); background: rgb(0 0 0 / .35); padding: 2px 8px; border-radius: 6px; }

.ticker { overflow: hidden; background: #1c1712; color: #e2b45c; font-weight: 500; font-size: 14px; white-space: nowrap; border-block: 1px solid rgb(226 180 92 / .25); }
.ticker-run { display: inline-flex; padding-block: 10px; animation: tick 40s linear infinite; }
.ticker-run span { padding-inline: 20px; position: relative; }
.ticker-run span::after { content: "◆"; position: absolute; inset-inline-end: -5px; opacity: .5; font-size: 8px; top: 6px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(var(--lap, 50%)); } }
[dir="ltr"] .ticker-run { animation-name: tick-ltr; }
@keyframes tick-ltr { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--lap, 50%))); } }
@media (prefers-reduced-motion: reduce) { .ticker-run { animation: none; } }

.pcats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pcat { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; background: #2a231c; }
.pcat img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcat:hover img { transform: scale(1.04); }
.pcat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .78)); }
.pcat-txt { position: absolute; inset-inline: 12px; bottom: 10px; z-index: 1; display: grid; line-height: 1.45; }
.pcat-txt b { font-size: 16px; }
.pcat-txt small { font-size: 12px; opacity: .85; }

.pfav { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pfav-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #2a231c; }
.pfav-img img { width: 100%; height: 100%; object-fit: cover; }
.pfav-body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.pfav-body h3 { font-size: 17px; }
.pfav-body p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.pfav-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-sm2 { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

.promise2 { position: relative; color: #f6efe2; background: #14110e; overflow: hidden; }
.promise2-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promise2-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 17 14 / .55), rgb(20 17 14 / .9)); }
[dir="ltr"] .promise2-shade { background: linear-gradient(270deg, rgb(20 17 14 / .55), rgb(20 17 14 / .9)); }
.promise2-body { position: relative; padding-block: 48px; }
.promise2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 520px; }
.promise2 li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.promise2 strong { display: block; font-size: 17px; }
.promise2 li span:not(.promise-n) { opacity: .85; font-size: 14px; }
.promise-title { font-size: 24px; margin-bottom: 20px; color: #e2b45c; }
.promise-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #e2b45c; color: #e2b45c; font-weight: 700; font-size: 17px; }

.scenes { display: grid; gap: 12px; }
.scene { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.scene-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #2a231c; }
.scene-img.scene-logo { object-fit: contain; padding: 18px; background: var(--paper-2); }
.scene-body { padding: 12px 16px 16px; }
.scene-body h3 { font-size: 17px; }
.scene-body p { color: var(--ink-soft); font-size: 14px; }

/* QR band: a photo of a guest scanning the table card beside the explanation; stacked on phones. */
.qr-band { display: grid; grid-template-columns: minmax(0, 340px) 1fr; align-items: center; border-radius: var(--radius); background: #1c1712; color: #f6efe2; overflow: hidden; }
.qr-photo { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.qr-txt { padding: 22px 32px; max-width: 620px; }
.qr-band h2 { font-size: 22px; }
.qr-band p { opacity: .85; font-size: 15px; margin-top: 8px; line-height: 1.9; }
@media (max-width: 759px) {
  .qr-band { grid-template-columns: 1fr; }
  .qr-photo { aspect-ratio: 2 / 1; max-height: 230px; }
  .qr-txt { padding: 18px 18px 20px; }
  .qr-band h2 { font-size: 20px; }
}

.map { display: block; }
.map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-credit { font-size: 11px; color: var(--ink-soft); margin-top: -8px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.foot-logo { border-radius: 50%; background: #fff; padding: 3px; }

/* Menu: photos on every row, section headers set apart from the rows */
.item { grid-template-columns: 64px 1fr auto; }
.item-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--paper-2); cursor: pointer; }
.item.out .item-thumb { filter: grayscale(1); opacity: .6; }
.menu-sec h2 {
  margin-inline: -16px; padding: 12px 16px; background: var(--tea); color: var(--gold);
  font-size: 19px; border-radius: 0;
}
.menu-sec h2 small { color: var(--tea-ink); opacity: .75; }
.menu-sec > p { margin-top: 8px; }
.sheet-photo { position: relative; margin: 0 0 14px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-photo figcaption { position: absolute; bottom: 8px; inset-inline-start: 8px; font-size: 11px; color: #fff; background: rgb(0 0 0 / .45); padding: 2px 8px; border-radius: 6px; }

@media (min-width: 768px) {
  .pcats { grid-template-columns: repeat(4, 1fr); }
  .scenes { grid-template-columns: repeat(var(--n, 3), 1fr); }
  .rail { grid-auto-columns: calc((100% - 24px) / 3); }
  .menu-sec h2 { margin-inline: 0; border-radius: 12px; }
}
@media (min-width: 1024px) {
  .hero3 { min-height: 640px; }
  .hero3-text { padding-bottom: 72px; }
  .hero3 .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .hero3-shade { background: linear-gradient(90deg, rgb(20 17 14 / .1) 0%, rgb(20 17 14 / .55) 50%, rgb(20 17 14 / .9) 100%); }
  [dir="ltr"] .hero3-shade { background: linear-gradient(270deg, rgb(20 17 14 / .1) 0%, rgb(20 17 14 / .55) 50%, rgb(20 17 14 / .9) 100%); }
  .hero3 { align-items: center; }
  .hero3-text { padding-top: 60px; }
}
.item-price .ask { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.item-thumb.none { display: block; background: var(--paper-2) url("img/logo.jpg") center / 60% no-repeat; opacity: .55; border: 1px solid var(--line); }
.sheet-gap { height: 28px; }
/* Odd number of sections: the last tile takes the full row on phones, all fit one row on desktop */
.pcat:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
@media (min-width: 768px) {
  .pcats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .pcat:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Icons (Lucide, ISC) */
.ic { width: 20px; height: 20px; flex: none; }
.top-links a { display: inline-flex; align-items: center; gap: 7px; }
.top-links .ic { width: 18px; height: 18px; opacity: .85; }
.top-links a[aria-current="page"] .ic { opacity: 1; color: var(--gold); }
.tabbar .ic { width: 24px; height: 24px; stroke-width: 1.9; }
.tabbar [aria-current="page"] .ic { stroke-width: 2.4; }

/* Per-dish and per-section reviews */
.menu-sec h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec-rv { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: var(--tea-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.sec-rv .rv-mini { color: var(--gold); margin: 0; }
.sec-rv .rv-mini span { color: var(--tea-ink); }
.rv-mini { display: inline-block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.rv-mini span { font-weight: 400; color: var(--ink-soft); }
.rv-block { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.rv-block h3 { font-size: 17px; }
.rv-block .review { padding: 12px 14px; }
.rv-about { display: inline-block; font-size: 12px; font-weight: 500; color: var(--ink-soft); background: var(--paper-2); border-radius: 999px; padding: 1px 10px; margin-bottom: 4px; }
.rv-form { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: var(--paper-2); }
.rv-form .field input, .rv-form .field textarea { background: var(--card); }
.rv-form .rate label { font-size: 30px; }
.rv-form .err { color: var(--ember); font-size: 13px; }
.rv-form .hint { font-size: 12.5px; color: var(--ink-soft); text-align: center; }

/* Secondary action that must still read as a button on a tinted panel (review forms) */
.btn-dark { background: var(--tea); color: var(--tea-ink); }
.btn-dark:hover { background: var(--tea-2); }
:root[data-theme="dark"] .btn-dark { background: var(--gold); color: #1d1a12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: var(--gold); color: #1d1a12; } }
.rv-form .rate label { color: color-mix(in srgb, var(--ink-soft) 45%, transparent); }
.rv-form .rate label:hover, .rv-form .rate label:hover ~ label, .rv-form .rate input:checked ~ label { color: var(--gold); }
.rv-label { font-weight: 500; font-size: 14px; }

/* Phones: price above the +/− control so the dish name keeps its width */
@media (max-width: 520px) {
  .item { gap: 4px 10px; }
  .item-side { flex-direction: column; align-items: flex-end; gap: 6px; }
  .item-side .stepper button { width: 36px; height: 40px; }
  .item-side .stepper output { min-width: 22px; }
}

/* Reservation days: a grid, all 14 visible, no sideways scrolling */
.days { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); overflow: visible; padding-bottom: 0; }
.day { min-height: 70px; padding: 6px 2px; }
.day small { font-size: 11.5px; line-height: 1.5; white-space: nowrap; }
.day b { font-size: 19px; line-height: 1.3; }

/* Close button always above the dish photo, and readable on top of it */
.sheet-close { z-index: 5; background: rgb(255 255 255 / .92); color: #1d2a22; box-shadow: 0 2px 8px rgb(0 0 0 / .25); font-weight: 700; line-height: 1; }
.sheet-close:hover { background: #fff; }
.sheet-photo .sheet-close { top: 10px; inset-inline-end: 10px; }
.sheet .price small { margin-inline-start: 6px; }

/* Maker's credit: one quiet line at the very end of the footer */
.credit { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; opacity: .8; }
/* Studio credit: the Verna Design mark (V brand yellow, D in the footer's text colour) + name, one link. */
.verna-credit { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; font-weight: 700; }
.verna-credit svg { width: 1.9em; height: auto; flex: none; }
.verna-credit:hover span, .verna-credit:focus-visible span { color: #ffd249; }

/* The name stays on one line; very small phones get it a little smaller. */
.brand-name, .brand-sub { white-space: nowrap; }
@media (max-width: 380px) { .brand-name { font-size: 15px; } .brand-sub { font-size: 11px; } .brand { gap: 8px; } .brand .brand-mark { width: 38px; height: 38px; } }

/* 24-hour time picker (store.js time24) */
.t24 { display: inline-flex; align-items: center; gap: 4px; direction: ltr; }
.t24[hidden] { display: none; }
.t24 select { min-height: 46px; min-width: 64px; padding: 0 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-feature-settings: "tnum"; text-align: center; }
.t24 select:disabled { opacity: .4; }
.t24 b { font-weight: 700; color: var(--ink-soft); }
.t24-l { display: grid; gap: 2px; font-size: 12px; }
#c-time-box { margin-top: 8px; }

/* Menu page, online ordering off: the phone-order card fills the basket's column */
.phone-panel { display: none; }
@media (min-width: 1024px) {
  .menu-layout .phone-panel { display: block; }
  .phone-panel .lead { margin: 6px 0 14px; font-size: 14.5px; }
  .phone-facts { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; gap: 10px; font-size: 14px; }
  .phone-facts li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .phone-facts b { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
  .phone-acts { display: grid; gap: 8px; }
}
@media (max-width: 380px) { html[lang="en"] .brand-name { font-size: 13.5px; } html[lang="en"] .brand .brand-mark { width: 34px; height: 34px; } html[lang="en"] .brand-sub { font-size: 10.5px; } }

/* Tablet widths: the top links lose their icons and some padding, so the longer English
   words still fit beside the name and the buttons. */
@media (min-width: 640px) and (max-width: 1199px) {
  .top-links .ic { display: none; }
  .top-links a { padding: 8px 10px; }
  .top .wrap { gap: 8px; }
  html[lang="en"] .brand-sub { display: none; }
}
