@font-face { font-family: "Vazirmatn"; src: url("/fonts/Vazirmatn.woff2?v=4") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url("/fonts/Lalezar-arabic.woff2?v=4") format("woff2"); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Lalezar"; src: url("/fonts/Lalezar-latin.woff2?v=4") format("woff2"); font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: "Yesteryear"; src: url("/fonts/Yesteryear-Regular.woff2?v=4") format("woff2"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.woff2?v=4") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }

:root {
  --paper: #fbf4e6;
  --paper-2: #f6ecd9;
  --card: #fffbf3;
  --ink: #3b2a22;
  --ink-2: #7a6556;
  --ink-3: #a8968a;
  --berry: #d8434b;
  --berry-d: #b5262e;
  --berry-soft: #fbe3df;
  --mint: #2f8c78;
  --mint-soft: #dcefe7;
  --sun: #f2c94c;
  --line: #eadfcd;
  --surface: #ffffff;
  --chip-hover: #f1e4cc;
  --solid: #3b2a22;
  --on-solid: #ffffff;
  --glow-page: #fffaf0;
  --special-bg: linear-gradient(120deg, #fff6ee 0%, #fbd9d5 70%, #f7c6c2 100%);
  --panel-bg: linear-gradient(160deg, #fffdf8 0%, #fffbf3 60%, #fdf1ea 100%);
  --art-bg: linear-gradient(180deg, #fdf3ea, #f8e6dc);
  --tile-1: linear-gradient(180deg, #f4f8ec 0%, #dbedc6 100%);
  --tile-2: linear-gradient(180deg, #fff3ea, #fbd9d5);
  --tile-3: linear-gradient(180deg, #fdf6e1, #f7e2a8);
  --tile-4: linear-gradient(180deg, #eef6f3, #cfe7df);
  --tag-bg: #fff7f4;
  --tag-line: #ecb3ae;
  --map-label: #9a8a7c;
  --bld-shadow: rgba(120, 72, 40, .14);
  --b-stone: #ecdfc6; --b-stone-2: #e0cfb0; --b-stone-line: #d6c3a2; --b-stone-hi: #f6ecd9; --b-stone-lo: #d9c6a5; --b-black-hi: #3a3430; --b-side: #0f0d0c; --b-curb-lo: #8f7f69; --b-black: #24201e; --b-black-2: #312b28;
  --b-glass: #cfe0e2; --b-warm-top: #f7e2b6; --b-warm-bot: #e9c98e; --b-shelf: #fff1cf;
  --b-pave: #e6ddcf; --b-pave-line: #d3c7b4; --b-curb: #b5a58e;
  --m-bg: #eaf1df; --m-median: #cfe6b0; --m-tree: #c4e29a; --m-road: #fffaf1; --m-hwy: #f6dcc8; --m-dash: #e2d8c6;
  --b-glow-op: .35; --b-night-op: 0; --b-day-op: 1; --b-pool-op: 0; --b-tree: none;
  color-scheme: light;
  --shadow: 0 1px 0 rgba(59, 42, 34, .04), 0 10px 30px -14px rgba(120, 72, 40, .28);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --hdr: 84px;
  --ftr: 74px;
  --display: "Lalezar", "Vazirmatn", system-ui, sans-serif;
  --body: "Vazirmatn", Tahoma, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --paper: #17120f;
  --paper-2: #2a211b;
  --card: #221a15;
  --ink: #f4e8d8;
  --ink-2: #c4ae9a;
  --ink-3: #8c7868;
  --berry: #e5575f;
  --berry-d: #f27c82;
  --berry-soft: #3b2224;
  --mint: #5cc0a7;
  --mint-soft: #1d3530;
  --line: #3a2e26;
  --surface: #2b221c;
  --chip-hover: #382c24;
  --solid: #f4e8d8;
  --on-solid: #17120f;
  --glow-page: #2a1f17;
  --special-bg: linear-gradient(120deg, #2d211c 0%, #47252a 70%, #5a2a30 100%);
  --panel-bg: linear-gradient(160deg, #261d18 0%, #221a15 60%, #2a1d1b 100%);
  --art-bg: linear-gradient(180deg, #33271f, #3a2a25);
  --tile-1: linear-gradient(180deg, #24291d 0%, #2f3b22 100%);
  --tile-2: linear-gradient(180deg, #2f2220, #45272a);
  --tile-3: linear-gradient(180deg, #2f291b, #45391d);
  --tile-4: linear-gradient(180deg, #1f2a27, #22392f);
  --tag-bg: #33201f;
  --tag-line: #7a3c3e;
  --map-label: #a8968a;
  --bld-shadow: rgba(255, 190, 110, .10);
  --b-stone: #5d5042; --b-stone-2: #4b4035; --b-stone-line: #6d5e4d; --b-stone-hi: #6c5e4e; --b-stone-lo: #43392f; --b-black-hi: #24201d; --b-side: #070606; --b-curb-lo: #1c1815; --b-black: #121010; --b-black-2: #1d1917;
  --b-glass: #2a2733; --b-warm-top: #ffd98f; --b-warm-bot: #f0a748; --b-shelf: #fff0c4;
  --b-pave: #3d342d; --b-pave-line: #241e1a; --b-curb: #2a2420;
  --m-bg: #1e261d; --m-median: #2a3a25; --m-tree: #33492b; --m-road: #3b322b; --m-hwy: #4a3427; --m-dash: #574a3f;
  --b-glow-op: 1; --b-night-op: 1; --b-day-op: 0; --b-pool-op: .22; --b-tree: brightness(.6) saturate(.85);
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #17120f;
  --paper-2: #2a211b;
  --card: #221a15;
  --ink: #f4e8d8;
  --ink-2: #c4ae9a;
  --ink-3: #8c7868;
  --berry: #e5575f;
  --berry-d: #f27c82;
  --berry-soft: #3b2224;
  --mint: #5cc0a7;
  --mint-soft: #1d3530;
  --line: #3a2e26;
  --surface: #2b221c;
  --chip-hover: #382c24;
  --solid: #f4e8d8;
  --on-solid: #17120f;
  --glow-page: #2a1f17;
  --special-bg: linear-gradient(120deg, #2d211c 0%, #47252a 70%, #5a2a30 100%);
  --panel-bg: linear-gradient(160deg, #261d18 0%, #221a15 60%, #2a1d1b 100%);
  --art-bg: linear-gradient(180deg, #33271f, #3a2a25);
  --tile-1: linear-gradient(180deg, #24291d 0%, #2f3b22 100%);
  --tile-2: linear-gradient(180deg, #2f2220, #45272a);
  --tile-3: linear-gradient(180deg, #2f291b, #45391d);
  --tile-4: linear-gradient(180deg, #1f2a27, #22392f);
  --tag-bg: #33201f;
  --tag-line: #7a3c3e;
  --map-label: #a8968a;
  --bld-shadow: rgba(255, 190, 110, .10);
  --b-stone: #5d5042; --b-stone-2: #4b4035; --b-stone-line: #6d5e4d; --b-stone-hi: #6c5e4e; --b-stone-lo: #43392f; --b-black-hi: #24201d; --b-side: #070606; --b-curb-lo: #1c1815; --b-black: #121010; --b-black-2: #1d1917;
  --b-glass: #2a2733; --b-warm-top: #ffd98f; --b-warm-bot: #f0a748; --b-shelf: #fff0c4;
  --b-pave: #3d342d; --b-pave-line: #241e1a; --b-curb: #2a2420;
  --m-bg: #1e261d; --m-median: #2a3a25; --m-tree: #33492b; --m-road: #3b322b; --m-hwy: #4a3427; --m-dash: #574a3f;
  --b-glow-op: 1; --b-night-op: 1; --b-day-op: 0; --b-pool-op: .22; --b-tree: brightness(.6) saturate(.85);
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 14px 34px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% 40%, var(--glow-page) 0%, transparent 60%),
    radial-gradient(circle at 15% 80%, rgba(216, 67, 75, .05), transparent 40%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(59, 42, 34, .05) 1px, transparent 1px);
  background-size: 4px 4px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--solid); color: var(--on-solid); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { top: 12px; }

/* ---------------- header ---------------- */
.top {
  position: relative; z-index: 5;
  height: var(--hdr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand-logo { width: 48px; height: 48px; display: block; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-logo--sm { width: 34px; height: 34px; }
.brand-name { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; color: var(--ink); }
.brand-sub { display: block; font-size: 11px; letter-spacing: .28em; color: var(--ink-2); direction: ltr; text-align: end; }
.brand:hover .brand-logo { animation: wobble .7s var(--spring); }

.top-nav { display: flex; gap: clamp(14px, 3vw, 40px); }
.top-nav a { position: relative; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 2px; transition: color .25s; }
.top-nav a::after {
  content: ""; position: absolute; inset-inline: 20%; bottom: -2px; height: 2.5px; border-radius: 2px;
  background: var(--berry); transform: scaleX(0); transition: transform .35s var(--ease);
}
.top-nav a:hover { color: var(--ink); }
.top-nav a.is-active { color: var(--ink); }
.top-nav a.is-active::after { transform: scaleX(1); }

.top-chips { display: flex; gap: 10px; justify-self: end; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  background: var(--paper-2); border: 0; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform .25s var(--spring), background .25s;
}
.chip svg { width: 20px; height: 20px; }
.chip--bag svg, .chip--icon svg { color: var(--ink); }
.chip--fav svg { color: var(--berry); }
.chip--icon { width: 40px; padding: 0; justify-content: center; }
.theme-btn { border: 0; color: var(--ink); overflow: hidden; }
.theme-btn svg { transition: transform .5s var(--spring), opacity .3s; }
.theme-btn .i-moon { position: absolute; }
.theme-btn { position: relative; }
.theme-btn .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 1; transform: none; }
html.theme-anim, html.theme-anim body, html.theme-anim .card, html.theme-anim .panel-card, html.theme-anim .menu-panel, html.theme-anim .bottom { transition: background-color .5s, color .5s, background .5s; }
.chip:hover { transform: translateY(-2px); background: var(--chip-hover); }
.chip.bump { animation: bump .5s var(--spring); }

/* ---------------- stage & views ---------------- */
.stage {
  position: relative; z-index: 1;
  min-height: calc(100vh - var(--hdr) - var(--ftr) - 24px);
  padding: 0 clamp(16px, 4vw, 56px) 18px;
}
.view { display: none; }
.view.is-active { display: grid; }

.script-title {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  font-size: clamp(40px, 4.4vw, 64px); line-height: 1.12; margin: 0;
  transform: rotate(-3deg); transform-origin: right center;
  text-wrap: balance;
}
.script-title--menu { font-size: clamp(44px, 4.6vw, 70px); }
.meta-line { margin: 18px 0 6px; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); }
.meta-line span { color: var(--berry); margin-inline-end: 4px; }
.squiggle { width: 110px; color: var(--ink-3); margin-bottom: 26px; }

/* ---------------- home ---------------- */
.view--home {
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  min-height: calc(100vh - var(--hdr) - var(--ftr) - 40px);
}
.home-side { align-self: center; }
.side-nav { display: grid; gap: 10px; margin-bottom: 22px; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  height: 50px; padding: 0 18px; border: 0; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow);
  font-size: 14.5px; font-weight: 700; text-align: start;
  transition: transform .3s var(--spring), background .25s, color .25s, box-shadow .3s;
}
.side-nav svg { width: 20px; height: 20px; flex: none; }
.side-nav span { flex: 1; }
.side-nav b { font-weight: 400; color: var(--ink-3); font-size: 20px; transition: transform .3s var(--ease); }
.side-nav a:hover, .side-nav button:hover { transform: translateX(-6px); }
.side-nav a:hover b, .side-nav button:hover b { transform: translateX(-4px); }
.side-nav .is-active { background: linear-gradient(180deg, #e2545b, var(--berry-d)); color: #fff; box-shadow: 0 10px 24px -10px rgba(181, 38, 46, .7); }
.side-nav .is-active b { color: #fff; }

.note-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.note-card p { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.4; color: var(--ink); }
.note-art { width: 72px; height: 72px; flex: none; }
.note-pin { position: absolute; top: -8px; inset-inline-end: 22px; width: 14px; height: 26px; border-radius: 4px; background: rgba(242, 201, 76, .7); transform: rotate(8deg); }

.home-building { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 420px; }
.home-building .bld { width: min(100%, 640px); height: auto; max-height: calc(100vh - var(--hdr) - var(--ftr) - 30px); filter: drop-shadow(0 30px 30px var(--bld-shadow)); }
.you-are-here {
  position: absolute; top: 8%; inset-inline-start: 8%;
  font-family: var(--display); color: var(--berry); font-size: 20px; transform: rotate(-8deg);
  display: inline-flex; flex-direction: column; align-items: center; z-index: 2;
}
.you-are-here svg { width: 34px; height: 34px; }

.home-cards { display: grid; gap: 16px; align-self: center; }
.special-card {
  position: relative; display: grid; align-content: start; gap: 6px; min-height: 196px;
  padding: 22px 24px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--special-bg);
  box-shadow: var(--shadow); isolation: isolate;
  transition: transform .4s var(--spring), box-shadow .4s;
}
.special-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 22px 40px -18px rgba(181, 38, 46, .45); }
.special-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.special-title { font-family: var(--display); font-weight: 400; color: var(--berry-d); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.15; max-width: 58%; }
.special-text { font-size: 13px; color: var(--ink-2); max-width: 52%; line-height: 1.6; }
.special-card .btn { justify-self: start; margin-top: 8px; }
.special-art { position: absolute; inset-inline-end: -6px; bottom: -6px; width: 46%; max-width: 200px; z-index: -1; animation: float 5s ease-in-out infinite; }
.special-hand { position: absolute; top: 14px; inset-inline-end: 18px; font-family: var(--display); color: var(--berry); opacity: .55; font-size: 14px; line-height: 1.2; transform: rotate(8deg); text-align: center; }

.panel-card { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px 18px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.panel-head h2 svg { width: 18px; height: 18px; color: var(--mint); }
.panel-head a { font-size: 13px; font-weight: 700; color: var(--ink-2); transition: color .2s; }
.panel-head a:hover { color: var(--berry); }

.best-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.best { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; text-align: center; border: 0; background: none; padding: 0; min-width: 0; }
.best-art { aspect-ratio: 1; width: 100%; min-width: 0; overflow: hidden; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; padding: 8%; transition: transform .35s var(--spring), background .3s; }
.best-art svg, .best-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.best:hover .best-art { transform: translateY(-4px) rotate(-3deg); background: var(--berry-soft); }
.best-name { font-size: 12.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 3em; align-self: start; }
.best-price { font-size: 12px; color: var(--ink-2); align-self: end; white-space: nowrap; }

.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-tile {
  position: relative; display: grid; place-items: center; gap: 2px; aspect-ratio: 1 / 1.05; padding: 10px 6px 8px;
  border-radius: 14px; background: var(--tile-1); border: 0; overflow: hidden;
  transition: transform .35s var(--spring);
}
.cat-tile svg { width: 76%; height: auto; transition: transform .45s var(--spring); }
.cat-tile span { font-size: 12px; font-weight: 800; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile:hover svg { transform: scale(1.1) rotate(-6deg); }
.cat-tile:nth-child(4n+2) { background: var(--tile-2); }
.cat-tile:nth-child(4n+3) { background: var(--tile-3); }
.cat-tile:nth-child(4n+4) { background: var(--tile-4); }

/* ---------------- menu ---------------- */
.view--menu, .view--contact {
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
  align-items: stretch;
  min-height: calc(100vh - var(--hdr) - var(--ftr) - 40px);
}
.menu-side { display: flex; flex-direction: column; padding-top: 10px; position: sticky; top: 8px; align-self: start; height: calc(100vh - var(--hdr) - var(--ftr) - 40px); min-height: 520px; }
.back-link { display: inline-flex; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ink-2); background: none; border: 0; padding: 4px 0; margin-bottom: 14px; transition: color .2s, transform .3s var(--ease); }
.back-link:hover { color: var(--berry); transform: translateX(4px); }
.menu-building { position: relative; margin-top: auto; padding-top: 40px; }
.menu-building .bld { width: 100%; height: auto; filter: drop-shadow(0 20px 20px var(--bld-shadow)); }
.menu-building .you-are-here { top: 0; inset-inline-start: auto; inset-inline-end: 22%; font-size: 17px; }

.menu-panel {
  position: relative; background: var(--panel-bg);
  border-radius: 30px; box-shadow: var(--shadow); padding: clamp(16px, 2.2vw, 30px); overflow: hidden;
  display: flex; flex-direction: column; min-height: 560px;
}
.mp-list { display: flex; flex-direction: column; min-height: 0; }
.mp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; scroll-snap-type: x proximity; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; scroll-snap-align: start; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--spring);
}
.tab:hover { border-color: var(--berry); color: var(--berry-d); }
.tab[aria-selected="true"] { background: var(--berry); border-color: var(--berry); color: #fff; box-shadow: 0 8px 18px -8px rgba(216, 67, 75, .8); }
.tab:active { transform: scale(.95); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--paper-2); min-width: 200px; flex: 0 1 260px; }
.search svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.search input { border: 0; background: none; outline: 0; font: inherit; font-size: 14px; width: 100%; color: var(--ink); }
.search:focus-within { outline: 3px solid rgba(216, 67, 75, .35); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(10px, 1.4vw, 18px); overflow-y: auto; padding: 4px; margin: -4px; }
.card {
  position: relative; display: grid; gap: 4px; padding: 10px 10px 12px; border-radius: 18px; border: 0;
  background: var(--surface); text-align: start; box-shadow: 0 1px 0 rgba(59, 42, 34, .04), 0 6px 18px -12px rgba(120, 72, 40, .35);
  transition: transform .35s var(--spring), box-shadow .35s;
  animation: cardIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 30px -16px rgba(120, 72, 40, .45); }
.card-art { aspect-ratio: 1.15; border-radius: 13px; background: var(--art-bg); display: grid; place-items: center; overflow: hidden; }
.card-art svg { width: 78%; transition: transform .5s var(--spring); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-art svg { transform: scale(1.08) rotate(-4deg) translateY(-3px); }
.card:hover .card-art img { transform: scale(1.06); }
.card-name { font-size: 14px; font-weight: 800; margin-top: 6px; line-height: 1.45; }
.card-row { display: flex; justify-content: space-between; align-items: center; }
.card-price { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.card-plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--berry); color: #fff; font-size: 18px; line-height: 1; transition: transform .3s var(--spring); }
.card:hover .card-plus { transform: rotate(90deg) scale(1.1); }
.card.is-out { opacity: .6; }
.card.is-out .card-plus { background: var(--ink-3); }
.card .badge { position: absolute; top: 16px; inset-inline-start: 16px; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--sun); color: var(--ink); }
.card.is-out .badge { background: var(--solid); color: var(--on-solid); }
.empty { color: var(--ink-2); text-align: center; padding: 40px 10px; }

/* detail */
.mp-detail {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto;
  gap: 10px 30px; flex: 1; min-height: 0;
}
.d-stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.d-art-wrap { position: relative; width: min(100%, 420px); aspect-ratio: 1; perspective: 900px; cursor: grab; touch-action: pan-y; user-select: none; }
.d-art-wrap:active { cursor: grabbing; }
.d-art { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--spring); will-change: transform; }
.d-art svg { width: 100%; height: 100%; }
.d-art img { width: 82%; height: 82%; margin: 9%; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 40px -24px rgba(59, 42, 34, .5); pointer-events: none; }
.d-art.is-dragging { transition: none; }
.d-art.enter { animation: artIn .7s var(--spring) both; }
.d-art.leave { animation: artOut .28s var(--ease) both; }
.d-shadow { position: absolute; bottom: 4%; left: 20%; right: 20%; height: 18px; border-radius: 50%; background: radial-gradient(rgba(59, 42, 34, .18), transparent 70%); z-index: -1; }
.d-hint { position: absolute; bottom: -2px; font-family: var(--display); color: var(--ink-3); font-size: 15px; margin: 0; animation: nudge 2.4s ease-in-out infinite; }

.d-info { align-self: center; padding-block: 10px; }
.d-info > * { animation: infoIn .55s var(--ease) both; }
.d-info > :nth-child(2) { animation-delay: .04s; } .d-info > :nth-child(3) { animation-delay: .08s; }
.d-info > :nth-child(4) { animation-delay: .12s; } .d-info > :nth-child(5) { animation-delay: .16s; }
.d-info > :nth-child(6) { animation-delay: .2s; } .d-info > :nth-child(7) { animation-delay: .24s; }
.d-cat { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--mint); }
.d-name { margin: 2px 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.15; color: var(--berry-d); }
.d-price { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.d-price.is-out { color: var(--ink-3); }
.d-desc { margin: 0 0 14px; color: var(--ink-2); max-width: 40ch; line-height: 1.9; }
.d-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.d-tags li { font-size: 12px; font-weight: 700; color: var(--berry-d); border: 1.5px dashed var(--tag-line); border-radius: 999px; padding: 2px 12px; background: var(--tag-bg); }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stepper { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.stepper button { width: 40px; height: 100%; border: 0; background: none; font-size: 20px; color: var(--ink-2); border-radius: 999px; }
.stepper button:hover { color: var(--berry); }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.fav-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: transform .3s var(--spring); }
.fav-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--berry); stroke-width: 2; transition: fill .2s; }
.fav-btn[aria-pressed="true"] svg { fill: var(--berry); }
.fav-btn[aria-pressed="true"] { animation: bump .5s var(--spring); }

.d-thumbs { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; border-top: 1.5px solid var(--line); padding-top: 14px; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px; flex: 1; justify-content: safe center; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 70px; height: 70px; border-radius: 14px; border: 2px solid transparent; background: var(--paper-2); padding: 6px; transition: transform .3s var(--spring), border-color .25s, background .25s; }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.thumb:hover { transform: translateY(-3px); }
.thumb[aria-current="true"] { border-color: var(--berry); background: var(--berry-soft); }
.thumb-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 20px; color: var(--ink-2); }
.thumb-arrow:hover { background: var(--berry-soft); color: var(--berry); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px;
  border-radius: 999px; border: 0; font-weight: 800; font-size: 14px; white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s, background .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn--red { background: linear-gradient(180deg, #e2545b, var(--berry-d)); color: #fff; box-shadow: 0 10px 22px -10px rgba(181, 38, 46, .8); }
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -12px rgba(181, 38, 46, .85); }
.btn--red:active { transform: scale(.96); }
.btn--red.is-done { background: linear-gradient(180deg, #3fa58d, var(--mint)); box-shadow: 0 10px 22px -10px rgba(47, 140, 120, .8); }
.btn--red:disabled { background: var(--ink-3); box-shadow: none; cursor: not-allowed; transform: none; }
.btn--ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--berry); color: var(--berry-d); transform: translateY(-2px); }

/* ---------------- contact ---------------- */
.contact-panel { background: var(--card); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 34px); display: grid; gap: 22px; align-content: start; }
.map-art { display: block; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .4s var(--spring); }
.map-art:hover { transform: translateY(-3px); }
.map-art svg { width: 100%; height: auto; }
.map-art rect[fill="#eaf1df"] { fill: var(--m-bg); }
.map-art path[fill="#cfe6b0"] { fill: var(--m-median); }
.map-art circle[fill="#c4e29a"] { fill: var(--m-tree); }
.map-art g[stroke="#fffaf1"] { stroke: var(--m-road); }
.map-art path[stroke="#f6dcc8"] { stroke: var(--m-hwy); }
.map-art g[stroke="#e2d8c6"] { stroke: var(--m-dash); }
.map-tag rect { fill: var(--card); }
.map-label { font-family: var(--body); font-size: 22px; font-weight: 700; fill: var(--map-label); }
.map-label .map-label--sm, .map-label--sm { font-size: 17px; }
.map-tag-text { font-family: var(--display); font-size: 26px; fill: var(--berry-d); }
.map-pin { animation: pin 2.2s var(--ease) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.map-pin-shadow { animation: pinShadow 2.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.map-tag { animation: pin 2.2s var(--ease) infinite; }
.map-pulse { animation: pulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.info-list div { background: var(--paper-2); border-radius: var(--r-md); padding: 14px 16px; }
.info-list dt { font-size: 12.5px; font-weight: 800; color: var(--mint); }
.info-list dd { margin: 4px 0 0; font-weight: 600; }
.info-list a:hover { color: var(--berry); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- footer ---------------- */
.bottom {
  position: relative; z-index: 4;
  margin: 0 clamp(16px, 4vw, 56px) 18px; min-height: var(--ftr);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px;
  background: var(--card); border-radius: 22px; padding: 10px 22px; box-shadow: var(--shadow);
}
.bottom-brand { display: flex; align-items: center; gap: 10px; }
.bottom-brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.1; }
.bottom-brand small { display: block; font-size: 10px; letter-spacing: .24em; color: var(--ink-2); direction: ltr; text-align: end; }
.bottom-tag { margin: 0; text-align: center; font-family: var(--display); font-size: 19px; color: var(--ink); }
.insta-chip { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 12px; transition: border-color .25s, transform .3s var(--spring); }
.insta-chip svg { width: 26px; height: 26px; color: #fff; background: linear-gradient(135deg, #f2c94c, var(--berry) 55%, #8a3ab9); border-radius: 8px; padding: 3px; }
.insta-chip small { display: block; font-size: 10.5px; color: var(--ink-2); line-height: 1.2; }
.insta-chip b { display: block; font-size: 13px; line-height: 1.3; }
.insta-chip:hover { border-color: var(--berry); transform: translateY(-2px); }
.tabbar { display: flex; gap: 6px; border-inline-start: 1.5px solid var(--line); padding-inline-start: 16px; }
.tabbar a, .tabbar button { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--ink-2); transition: color .2s, background .2s, transform .3s var(--spring); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar span { display: none; }
.tabbar a:hover, .tabbar button:hover { color: var(--berry); background: var(--berry-soft); transform: translateY(-2px); }
.tabbar .is-active { color: var(--berry); }
.dot-count { position: absolute; top: 3px; inset-inline-end: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--berry); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.dot-count.is-zero { display: none; }

/* ---------------- drawer & toast ---------------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(59, 42, 34, .35); backdrop-filter: blur(3px); animation: fade .3s both; }
.drawer-panel {
  position: absolute; top: 12px; bottom: 12px; inset-inline-start: 12px; width: min(400px, calc(100% - 24px));
  background: var(--card); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(59, 42, 34, .5);
  animation: drawerIn .5s var(--spring) both;
}
.drawer.is-closing .drawer-panel { animation: drawerOut .3s var(--ease) both; }
.drawer.is-closing .drawer-backdrop { animation: fade .3s reverse both; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--berry-d); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper-2); }
.icon-btn:hover { background: var(--berry-soft); color: var(--berry); }
.drawer-note { margin: 4px 0 14px; font-size: 13px; color: var(--ink-2); }
.bag-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.bag-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 8px 10px; animation: infoIn .4s var(--ease) both; }
.bag-item .art { width: 54px; height: 54px; border-radius: 12px; background: var(--paper-2); padding: 4px; }
.bag-item .art svg, .bag-item .art img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.bag-item b { display: block; font-size: 14px; }
.bag-item small { color: var(--ink-2); }
.bag-item .stepper { height: 36px; }
.bag-item .stepper button { width: 32px; font-size: 17px; }
.drawer-foot { border-top: 1.5px dashed var(--line); padding-top: 14px; margin-top: 12px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total b { font-size: 22px; font-weight: 900; color: var(--berry-d); }

.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--solid); color: var(--on-solid); padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: opacity .3s, transform .45s var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.fly-dot { position: fixed; z-index: 70; width: 22px; height: 22px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 4px rgba(216, 67, 75, .25); pointer-events: none; }

/* ---------------- floating beans ---------------- */
.beans { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.beans i { position: absolute; width: 10px; height: 14px; border-radius: 50%; background: #c9a27f; opacity: .35; animation: drift 18s linear infinite; }
.beans i::after { content: ""; position: absolute; inset: 2px 4px; border-left: 1.5px solid rgba(59, 42, 34, .5); border-radius: 50%; }
.beans i:nth-child(1) { left: 8%; top: 70%; animation-duration: 20s; }
.beans i:nth-child(2) { left: 30%; top: 90%; animation-duration: 24s; animation-delay: -6s; }
.beans i:nth-child(3) { left: 52%; top: 80%; animation-duration: 19s; animation-delay: -12s; transform: scale(.8); }
.beans i:nth-child(4) { left: 72%; top: 95%; animation-duration: 26s; animation-delay: -3s; }
.beans i:nth-child(5) { left: 88%; top: 75%; animation-duration: 22s; animation-delay: -15s; }
.beans i:nth-child(6) { left: 42%; top: 60%; animation-duration: 28s; animation-delay: -9s; background: var(--berry); opacity: .2; width: 8px; height: 8px; }

/* ---------------- building animation ---------------- */
.bld .bld-ground { animation: groundIn .9s var(--ease) both; transform-origin: 330px 480px; }
.bld .bld-body { animation: rise 1s var(--spring) .15s both; transform-origin: 326px 470px; }
.bld .bld-cup { animation: drop 1s var(--spring) .7s both; transform-origin: 323px 328px; transform-box: view-box; cursor: pointer; }
.bld .bld-cup.wiggle { animation: cupWiggle .8s var(--spring); }
.bld .bld-tree { animation: pop .9s var(--spring) .45s both; transform-box: fill-box; transform-origin: 50% 100%; }
.bld .bld-tree--r { animation-delay: .55s; }
.bld .bld-tree circle { animation: rustle 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.bld .bld-lamp, .bld .bld-board, .bld .bld-table, .bld .bld-bushes { animation: pop .7s var(--spring) .9s both; transform-box: fill-box; transform-origin: 50% 100%; }
.bld .bld-lamp-glow { animation: glow 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bld .bld-steam path { animation: steam 3s ease-in-out infinite; }
.bld .bld-steam path:nth-child(2) { animation-delay: -1s; }
.bld .bld-steam path:nth-child(3) { animation-delay: -2s; }
.bld .bld-awning { animation: sway 5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.bld .bld-basket { animation: swing 3.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.bld .bld-bird { animation: fly 14s linear infinite; }
.bld .bld-bird--2 { animation-duration: 18s; animation-delay: -7s; }
.bld .bld-sign { animation: pop .6s var(--spring) 1.1s both; transform-box: fill-box; transform-origin: center; }

.art-steam path { animation: steam 3s ease-in-out infinite; }
.art-steam path:nth-child(2) { animation-delay: -1s; }
.art-steam path:nth-child(3) { animation-delay: -2s; }

/* building theming */
.bld .s-stone-hi { stop-color: var(--b-stone-hi); }
.bld .s-stone { stop-color: var(--b-stone); }
.bld .s-stone-lo { stop-color: var(--b-stone-lo); }
.bld .s-black-hi { stop-color: var(--b-black-hi); }
.bld .s-black { stop-color: var(--b-black); }
.bld .s-side { stop-color: var(--b-side); }
.bld .s-curb { stop-color: var(--b-curb); }
.bld .s-curb-lo { stop-color: var(--b-curb-lo); }
.bld .b-day { opacity: var(--b-day-op); transition: opacity .8s; }
.bld .b-cloud { animation: cloud 30s ease-in-out infinite alternate; }
.bld .b-cloud--2 { animation-duration: 24s; animation-direction: alternate-reverse; }
.bld .b-reflect { opacity: calc(.18 + var(--b-day-op) * .3); }
.bld .b-stone-2 { fill: var(--b-stone-lo); }
.bld .b-stone-line { stroke: var(--b-stone-line); }
.bld .b-black { fill: var(--b-black); }
.bld .b-black-2 { fill: var(--b-black-2); }
.bld .b-glass { fill: var(--b-glass); transition: fill .6s; }

.bld .b-warm-top { stop-color: var(--b-warm-top); }
.bld .b-warm-bot { stop-color: var(--b-warm-bot); }
.bld .b-shelf { fill: var(--b-shelf); }
.bld .b-pave { fill: var(--b-pave); }
.bld .b-pave-line { stroke: var(--b-pave-line); fill: var(--b-pave-line); }
.bld .b-curb { fill: var(--b-curb-lo); }
.bld .b-glow { opacity: var(--b-glow-op); transition: opacity .8s; }
.bld .b-glow--big { animation: glow 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bld .b-bulb { animation: flicker 4s steps(1) infinite; }
.bld .b-night { opacity: var(--b-night-op); transition: opacity .8s; }
.bld .b-night circle:not([fill^="url"]):not(.b-moon-cut) { animation: twinkle 3s ease-in-out infinite; }
.bld .b-night circle:nth-child(2n) { animation-delay: -1.5s; }
.bld .b-moon-cut { fill: var(--paper); }
.bld .b-light-pool { opacity: var(--b-pool-op); }
.bld .bld-bird { opacity: var(--b-day-op); }
.bld .bld-tree { filter: var(--b-tree); }
.bld .bld-lamp-glow { opacity: var(--b-glow-op); }

.bld .pz-slice { animation: slice 3.2s ease-in-out infinite; }
.bld .pz-strings { animation: strings 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }

/* page load sequence */
.view.is-active .home-side > *, .view.is-active .home-cards > *, .view.is-active .menu-side > :not(.menu-building) {
  animation: infoIn .7s var(--ease) both;
}
.view.is-active .home-side > :nth-child(2), .view.is-active .home-cards > :nth-child(2) { animation-delay: .1s; }
.view.is-active .home-side > :nth-child(3), .view.is-active .home-cards > :nth-child(3) { animation-delay: .2s; }
.view.is-active .home-side > :nth-child(4) { animation-delay: .3s; }
.view.is-active .home-side > :nth-child(5) { animation-delay: .4s; }
.view.is-active .menu-panel, .view.is-active .contact-panel { animation: panelIn .8s var(--spring) both; }

@keyframes infoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes artIn { 0% { opacity: 0; transform: rotateY(-70deg) scale(.7) translateY(20px); } 100% { opacity: 1; transform: none; } }
@keyframes artOut { to { opacity: 0; transform: rotateY(60deg) scale(.8); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); opacity: .7; } 50% { transform: translateX(-10px); opacity: 1; } }
@keyframes drift { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(-110vh) rotate(540deg); } }
@keyframes groundIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(80px) scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-120px) rotate(-20deg); } 100% { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes rustle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04) translateY(-2px); } }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes sway { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-2deg); } }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes fly { 0% { transform: translate(640px, 180px); } 100% { transform: translate(-60px, 60px); } }
@keyframes cupWiggle { 0%, 100% { transform: none; } 20% { transform: translateY(-24px) rotate(-8deg); } 45% { transform: translateY(0) rotate(6deg); } 70% { transform: rotate(-3deg); } }
@keyframes cloud { from { transform: translateX(-24px); } to { transform: translateX(30px); } }
@keyframes slice { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes strings { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.45); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .55; } 49% { opacity: 1; } 83% { opacity: .8; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes pin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes pulse { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes pinShadow { 0%, 100% { transform: scale(1); opacity: .2; } 50% { transform: scale(.6); opacity: .1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawerIn { from { transform: translateX(110%); } to { transform: none; } }
@keyframes drawerOut { to { transform: translateX(110%); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .view--home { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .home-cards { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .bottom { grid-template-columns: auto 1fr auto; }
  .insta-chip { display: none; }
}

@media (max-width: 900px) {
  :root { --hdr: 68px; }
  .top { grid-template-columns: 1fr auto; }
  .top-nav { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 23px; }
  .view--home { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-side { display: contents; }
  .home-side .script-title { order: 1; text-align: center; transform: rotate(-2deg); transform-origin: center; }
  .home-side .meta-line { order: 2; text-align: center; margin-top: 6px; }
  .home-side .squiggle { display: none; }
  .home-building { order: 3; min-height: 0; }
  .home-building .bld { width: min(92%, 460px); max-height: none; }
  .side-nav { order: 4; grid-template-columns: 1fr 1fr; margin: 0; }
  .side-nav a, .side-nav button { height: 48px; padding: 0 14px; font-size: 13.5px; }
  .side-nav b { display: none; }
  .note-card { display: none; }
  .home-cards { order: 5; grid-template-columns: 1fr 1fr; }
  .special-card { grid-column: 1 / -1; }

  .view--menu, .view--contact { grid-template-columns: minmax(0, 1fr); }
  .menu-side { position: static; height: auto; min-height: 0; padding-top: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .menu-side .back-link { flex-basis: 100%; margin-bottom: 0; }
  .menu-side .meta-line { margin: 0; }
  .menu-building { display: none; }
  .script-title--menu { font-size: 44px; }
  .menu-panel { min-height: 0; }

  .bottom { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 22px 22px 0 0; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); grid-template-columns: 1fr; min-height: 0; box-shadow: 0 -10px 30px -16px rgba(120, 72, 40, .4); }
  .bottom-brand, .bottom-tag { display: none; }
  .tabbar { border: 0; padding: 0; justify-content: space-around; }
  .tabbar a, .tabbar button { width: auto; flex: 1; height: 54px; gap: 0; align-content: center; }
  .tabbar span { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.2; }
  .stage { padding-bottom: 96px; }
  .toast { bottom: 96px; }
}

@media (max-width: 720px) {
  .mp-detail { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 6px; }
  .d-stage { min-height: 0; }
  .d-art-wrap { width: min(78%, 300px); }
  .d-info { text-align: center; padding: 0; }
  .d-info .back-link { position: absolute; top: 14px; inset-inline-start: 18px; margin: 0; z-index: 2; }
  .d-desc { margin-inline: auto; }
  .d-tags, .d-actions { justify-content: center; }
  .thumb { width: 60px; height: 60px; }
  .mp-toolbar { flex-direction: column; align-items: stretch; }
  .search { flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .menu-panel { border-radius: 24px; padding: 14px; }
}

@media (max-width: 560px) {
  .chip--fav { display: none; }
  .home-cards { grid-template-columns: 1fr; }
  .special-title { max-width: 62%; }
  .special-text { max-width: 58%; }
  .best-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .best-name { font-size: 11.5px; }
  .card-name { font-size: 13px; }
  .card { padding: 8px 8px 10px; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .side-nav > :last-child { grid-column: auto; }
  .contact-actions .btn { flex: 1 1 100%; }
}

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

/* keep scrollers from stretching grids */
.menu-panel, .mp-list, .mp-detail, .d-thumbs, .thumbs, .tabs, .d-info, .d-stage { min-width: 0; }
@media (max-width: 420px) {
  .d-actions { flex-wrap: nowrap; gap: 8px; }
  .d-actions .btn { padding: 0 16px; }
  .d-actions .btn svg { display: none; }
  .stepper button { width: 34px; }
}

/* ================= 3D scenes ================= */
.has-3d { position: relative; }
.home-building.has-3d, .menu-building.has-3d { min-height: 0; }
.has-3d > .bld { visibility: hidden; }
.scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; animation: fade .8s ease both; }
.scene3d.is-grab { cursor: grabbing; }
.menu-building.has-3d .scene3d { inset: 0 -10% 0 -10%; width: 120%; }

.d-art-wrap.has-3d { perspective: none; cursor: default; overflow: visible; }
.d-art-wrap.has-3d .d-art, .d-art-wrap.has-3d .d-shadow { visibility: hidden; }
.item3d { position: absolute; inset: -12%; width: 124%; height: 124%; display: block; cursor: grab; touch-action: pan-y; outline: none; }
.d-art-wrap.is-grab .item3d { cursor: grabbing; }

/* layer callouts on the 3D cake */
.layer-tags { position: absolute; inset: -12%; pointer-events: none; opacity: 0; transition: opacity .4s; }
.layer-tags.is-on { opacity: 1; }
.layer-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; direction: rtl; will-change: transform; transition: opacity .25s; }
.layer-tag i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--ink-3); flex: none; margin-inline-start: -4.5px; }
.layer-tag::after { content: ""; order: -1; width: 46px; height: 1.5px; background: var(--ink-3); opacity: .7; }
.layer-tag b { order: -2; font-size: 12px; font-weight: 800; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.layer-tag.is-hidden { opacity: 0; }
.layer-tag { flex-direction: row-reverse; }
.layer-tag { transform-origin: 0 50%; }
.layer-tags .layer-tag { margin-top: -10px; }

/* layers list & pairings */
.d-sub { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.d-layers { margin: 0 0 18px; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-inline-start: 2px dashed var(--line); padding-inline-start: 12px; }
.layer-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; padding: 3px 0; }
.layer-list i { width: 26px; height: 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.d-pair { margin-top: 20px; }
.pair-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pair {
  display: grid; grid-template-columns: 48px auto 26px; align-items: center; gap: 10px; padding: 6px 8px 6px 10px;
  border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line);
  transition: transform .3s var(--spring), border-color .25s, box-shadow .3s;
}
.pair:hover { transform: translateY(-3px); border-color: var(--berry); box-shadow: var(--shadow); }
.pair-art { width: 48px; height: 48px; border-radius: 12px; background: var(--art-bg); padding: 3px; }
.pair-art svg, .pair-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.pair-txt b { display: block; font-size: 13px; line-height: 1.4; }
.pair-txt small { font-size: 12px; color: var(--ink-2); }
.pair-go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--berry-soft); color: var(--berry-d); font-weight: 900; transition: background .25s, color .25s, transform .3s var(--spring); }
.pair:hover .pair-go { background: var(--berry); color: #fff; transform: rotate(90deg); }

/* drag hint */
.d-hint { display: inline-flex; align-items: center; gap: 6px; font-family: var(--body); font-size: 12.5px; font-weight: 700; background: var(--card); padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow); z-index: 2; }
.d-hint svg { width: 16px; height: 16px; }

/* close button */
.close-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--ink-2);
  transition: transform .35s var(--spring), color .2s, border-color .2s, background .2s;
}
.close-btn svg { width: 18px; height: 18px; }
.close-btn:hover { color: var(--berry-d); border-color: var(--berry); background: var(--berry-soft); transform: rotate(90deg); }
.drawer-head { padding-bottom: 6px; }

/* thumbnail strip */
.d-thumbs { gap: 12px; border-top: 0; padding-top: 8px; position: relative; }
.d-thumbs::before { content: ""; position: absolute; top: 0; inset-inline: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.thumbs { gap: 8px; padding: 8px 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.thumb { width: 60px; height: 60px; border-radius: 16px; border: 0; background: var(--paper-2); padding: 5px; box-shadow: inset 0 0 0 1.5px transparent; transition: transform .35s var(--spring), box-shadow .25s, background .25s; }
.thumb:hover { transform: translateY(-3px) scale(1.04); }
.thumb[aria-current="true"] { background: var(--berry-soft); box-shadow: inset 0 0 0 2px var(--berry), 0 10px 18px -10px rgba(216, 67, 75, .7); transform: translateY(-2px); }
.thumb-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow); font-size: 0;
  transition: transform .3s var(--spring), border-color .2s, color .2s, background .2s;
}
.thumb-arrow svg { width: 18px; height: 18px; }
.thumb-arrow:hover { border-color: var(--berry); color: #fff; background: var(--berry); transform: scale(1.08); }
.thumb-arrow:active { transform: scale(.94); }

@media (max-width: 720px) {
  .item3d, .layer-tags { inset: -8%; width: 116%; height: 116%; }
  .layer-tag b { font-size: 11px; padding: 2px 8px; }
  .layer-tag::after { width: 24px; }
  .pair-list { justify-content: center; }
  .thumb { width: 52px; height: 52px; }
  .thumb-arrow { width: 34px; height: 34px; }
}
.layer-tags .layer-tag { direction: ltr; flex-direction: row-reverse; }
.layer-tags .layer-tag.is-left { flex-direction: row; }
.layer-tags .layer-tag.is-left i { margin-inline-start: 0; margin-inline-end: -4.5px; }
.layer-tags .layer-tag::after { width: 54px; }
.layer-tags .layer-tag { margin-top: 0; translate: 0 -50%; }
.layer-tags .layer-tag i { width: 10px; height: 10px; box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0,0,0,.35); }

/* 3D building: let the container size the canvas, not the hidden SVG */
.home-building.has-3d > .bld, .menu-building.has-3d > .bld { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-building.has-3d { min-height: 460px; }
@media (max-width: 900px) {
  .home-building.has-3d { min-height: 0; aspect-ratio: 1 / .9; width: 100%; }
  .home-building .you-are-here { top: 2%; inset-inline-start: 6%; font-size: 17px; }
}
@media (max-width: 720px) {
  .d-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
  .d-hint { position: static; margin: 0; }
}
@media (min-width: 561px) and (max-width: 900px) {
  .home-building.has-3d { aspect-ratio: 4 / 3; }
}

/* 3D item stage: responsive sizing */
.d-art-wrap { width: min(100%, 460px); }
.d-art-wrap.has-3d { cursor: grab; }
.d-art-wrap.has-layers::after { content: "برای دیدن لایه‌ها و مواد، روی آیتم بزن"; position: absolute; top: -6%; inset-inline: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); pointer-events: none; }
@media (min-width: 721px) and (max-width: 1180px) {
  .mp-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; }
  .d-art-wrap { width: min(100%, 380px); }
  .d-name { font-size: clamp(32px, 4.4vw, 46px); }
}
@media (max-width: 720px) {
  .d-art-wrap { width: min(92%, 360px); }
  .item3d, .layer-tags { inset: -6%; width: 112%; height: 112%; }
  .d-art-wrap.has-layers::after { top: -2%; font-size: 11px; }
  .mp-detail { padding-top: 34px; }
}

/* layer callouts v2: dot on the layer, leader line, pill stacked without overlap */
.layer-tags .lt-dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0, 0, 0, .35); transition: opacity .25s; }
.layer-tags .lt-line { position: absolute; left: 0; top: 0; height: 1.5px; margin-top: -.75px; background: var(--ink-3); transform-origin: 0 50%; opacity: .8; transition: opacity .25s; }
.layer-tags .lt-pill { position: absolute; left: 0; top: 0; margin-top: -12px; height: 24px; line-height: 24px; padding: 0 11px; white-space: nowrap; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: var(--shadow); transition: opacity .25s; }
.layer-tags .is-hidden { opacity: 0; }
@media (max-width: 720px) { .layer-tags .lt-pill { font-size: 11px; height: 22px; line-height: 22px; margin-top: -11px; padding: 0 9px; } }

/* hide every scrollbar; scrolling still works (wheel, touch, keyboard) */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------------- order form (cart drawer) ---------------- */
.drawer-panel { overflow-y: auto; overscroll-behavior: contain; }
.drawer-panel .bag-list { flex: 0 0 auto; overflow: visible; }
.drawer-panel .empty { flex: 1; }
.order-form { display: grid; gap: 10px; }
.order-form[hidden] { display: none; }
.of-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.of-field { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.of-field i { color: var(--berry); font-style: normal; }
.of-field input, .of-field textarea {
  width: 100%; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: none; transition: border-color .2s, box-shadow .2s;
}
.of-field input::placeholder, .of-field textarea::placeholder { color: var(--ink-3); }
.of-field input:focus, .of-field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px var(--berry-soft); }
.of-field input[aria-invalid="true"] { border-color: var(--berry); }
.of-field input[dir="ltr"] { text-align: right; }
.of-err { margin: 0; min-height: 0; font-size: 13px; font-weight: 700; color: var(--berry-d); }
.of-err:empty { display: none; }
.of-submit { width: 100%; justify-content: center; }
.of-submit.is-busy { opacity: .7; pointer-events: none; }
.order-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 6px 10px; animation: infoIn .45s var(--spring) both; }
.order-done[hidden] { display: none; }
.order-done h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); }
.order-done p { margin: 0; }
.order-done b { font-size: 22px; color: var(--berry-d); letter-spacing: .04em; }
.order-done .muted { color: var(--ink-2); font-size: 13px; }
.order-done .btn { margin-top: 10px; }
.od-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #3fa58d, var(--mint)); box-shadow: 0 12px 24px -10px rgba(47, 140, 120, .8); animation: odPop .6s var(--spring) both; }
.od-check svg { width: 34px; height: 34px; }
@keyframes odPop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) { .of-row { grid-template-columns: 1fr 1fr; } }
.drawer-foot[hidden] { display: none; }

/* ---------------- weather (set in the admin panel) ---------------- */
.wx-host { position: relative; }
.wx { position: absolute; inset: -4% -2% 0; pointer-events: none; overflow: hidden; z-index: 2; border-radius: 28px;
  --wx-cloud: rgba(255, 255, 255, .92); --wx-cloud-2: rgba(236, 240, 246, .9); --wx-drop: rgba(110, 160, 220, .85); --wx-flake: #fff; }
:root[data-theme="dark"] .wx { --wx-cloud: rgba(98, 104, 122, .75); --wx-cloud-2: rgba(70, 76, 92, .7); --wx-drop: rgba(170, 200, 240, .7); }
.wx--rainy { --wx-cloud: rgba(150, 160, 176, .92); --wx-cloud-2: rgba(124, 134, 152, .9); }
:root[data-theme="dark"] .wx--rainy { --wx-cloud: rgba(84, 92, 110, .85); --wx-cloud-2: rgba(64, 70, 86, .85); }

.wx-cloud { position: absolute; top: calc(4% + var(--i) * 8%); left: -40%; width: 34%; aspect-ratio: 3 / 1; border-radius: 999px; background: var(--wx-cloud);
  filter: drop-shadow(0 6px 10px rgba(40, 50, 70, .12)); animation: wxDrift calc(46s + var(--i) * 14s) linear calc(var(--i) * -17s) infinite; opacity: .95; }
.wx-cloud::before, .wx-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.wx-cloud::before { width: 46%; aspect-ratio: 1; left: 16%; bottom: 34%; }
.wx-cloud::after { width: 34%; aspect-ratio: 1; right: 16%; bottom: 40%; background: var(--wx-cloud-2); }
.wx-cloud:nth-child(2) { width: 26%; }
.wx-cloud:nth-child(3) { width: 20%; opacity: .8; }
@keyframes wxDrift { to { transform: translateX(460%); } }
.wx-drop { position: absolute; left: var(--x); top: -12%; width: 2px; height: calc(18px * var(--s)); border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--wx-drop)); transform: rotate(14deg); animation: wxFall var(--d) linear var(--delay) infinite; }
.wx-flake { position: absolute; left: var(--x); top: -8%; width: calc(7px * var(--s)); height: calc(7px * var(--s)); border-radius: 50%; background: var(--wx-flake);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8); opacity: .9; animation: wxFall var(--d) linear var(--delay) infinite, wxSway calc(var(--d) / 2) ease-in-out var(--delay) infinite alternate; }
@keyframes wxFall { to { top: 104%; } }
@keyframes wxSway { from { margin-left: -12px; } to { margin-left: 12px; } }
.wx-sun { position: absolute; top: 3%; inset-inline-end: 6%; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, #ffe9a0 0 38%, #ffd25e 39% 46%, rgba(255, 210, 94, .35) 47% 60%, transparent 61%); animation: wxSun 18s linear infinite; }
.wx-sun::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 205, 90, .55) 0 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47% 68%, transparent 70%); mask: radial-gradient(circle, transparent 46%, #000 47% 68%, transparent 70%); }
@keyframes wxSun { to { transform: rotate(360deg); } }
:root[data-theme="dark"] .wx-sun { display: none; }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 4px; padding: 8px 14px; border-radius: 999px; background: var(--card);
  box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--ink); width: fit-content; transition: transform .25s var(--spring); }
.wx-chip:hover { transform: translateY(-2px); color: var(--berry-d); }
@media (max-width: 900px) { .wx-chip { order: 2; justify-self: center; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .wx-cloud, .wx-sun { animation: none; } .wx-cloud { left: calc(10% + var(--i) * 30%); } }

/* ---------------- reservations ---------------- */
.view--reserve { grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: stretch; min-height: calc(100vh - var(--hdr) - var(--ftr) - 40px); }
@media (max-width: 900px) { .view--reserve { grid-template-columns: minmax(0, 1fr); } .res-intro { flex-basis: 100%; max-width: none; } }
.res-intro { margin: 10px 0 0; font-size: 14px; line-height: 1.9; color: var(--ink-2); max-width: 300px; }
.res-panel { background: var(--card); border-radius: 30px; box-shadow: var(--shadow); padding: clamp(16px, 2.4vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.res-form { display: grid; gap: 18px; min-width: 0; }
.res-form[hidden], .res-status[hidden] { display: none; }
.res-step { border: 0; margin: 0; padding: 0 0 18px; border-bottom: 1.5px dashed var(--line); display: grid; gap: 12px; min-width: 0; }
.res-step legend { padding: 0; margin-bottom: 12px; font-family: var(--display); font-size: 22px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.res-step legend i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: inherit; font-size: 16px; background: var(--berry); color: #fff; }
.res-row { display: grid; gap: 12px; min-width: 0; }
.res-row--2 { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.res-col { display: grid; gap: 8px; min-width: 0; }
.res-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips button { height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--spring); }
.chips button:hover:not(:disabled) { border-color: var(--berry); transform: translateY(-1px); }
.chips button[aria-checked="true"] { background: var(--berry); border-color: var(--berry); color: #fff; box-shadow: 0 8px 18px -10px rgba(181, 38, 46, .8); }
.chips button:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.chips--scroll, .chips--times { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.chips--scroll button, .chips--times button { flex: none; scroll-snap-align: center; }
.chips .chip-date { height: auto; min-width: 74px; padding: 8px 10px; border-radius: 18px; display: grid; gap: 1px; justify-items: center; }
.chip-date small { font-size: 11px; font-weight: 600; opacity: .8; }
.chip-date b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.res-none { margin: 0; flex: 1 0 100%; white-space: normal; padding: 10px 14px; border-radius: 14px; background: var(--paper-2); font-size: 13px; color: var(--ink-2); cursor: default; }
.res-guests { height: 40px; }
.res-hint { margin: -4px 0 0; font-size: 13px; color: var(--ink-2); }
.floor { width: 100%; max-width: 460px; margin: 0 auto; }
.floor-legend { display: flex; justify-content: center; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.floor-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg--free { background: #d9a86a; }
.lg--sel { background: var(--berry); }
.lg--busy { background: #9b958c; }
.res-sum { margin: 0; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink); }
.res-sum.is-warn { color: var(--berry-d); }
.res-grace { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--paper-2); font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.res-submit { width: 100%; justify-content: center; height: 52px; font-size: 15px; }
.res-status { display: grid; gap: 14px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--line); animation: infoIn .45s var(--spring) both; }
.rs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rs-num { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); }
.rs-badge { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--paper-2); color: var(--ink-2); }
.rs-badge--pending { background: #fdf0cf; color: #9a6b00; }
.rs-badge--confirmed, .rs-badge--seated { background: #dff1ea; color: var(--mint); }
.rs-badge--rejected, .rs-badge--noshow, .rs-badge--cancelled { background: var(--berry-soft); color: var(--berry-d); }
:root[data-theme="dark"] .rs-badge--pending { background: #45391d; color: #f2c94c; }
:root[data-theme="dark"] .rs-badge--confirmed, :root[data-theme="dark"] .rs-badge--seated { background: #1d3530; }
.rs-text { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.rs-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.rs-facts li { background: var(--paper-2); border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.rs-facts small { color: var(--ink-3); font-size: 11.5px; }
.rs-facts b { font-size: 14px; }
.rs-timer { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--berry-soft); color: var(--berry-d); font-weight: 800; font-size: 14.5px; text-align: center; font-variant-numeric: tabular-nums; }
.rs-timer[hidden] { display: none; }
.rs-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 520px) { .res-row--2 { grid-template-columns: minmax(0, 1fr); } .res-step legend { font-size: 20px; } }


/* ---------------- build-your-own pizza ---------------- */
/* three.js puts display:block inline on its canvas, so this has to win over it */
.d-art-wrap:not(.has-3d) .item3d, .d-art-wrap:not(.has-3d) .layer-tags { display: none !important; }
.d-art-wrap.is-builder { perspective: none; cursor: default; }
.d-art-wrap.is-builder .d-shadow { display: none; }
.mp-detail:has(.is-builder) .d-hint { display: none; }
.pb-stage { width: 100%; }
.pb-pizza { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 18px 22px rgba(59, 42, 34, .22)); }
.pb-board { fill: #c98f52; }
.pb-board-ring { fill: none; stroke: #b07a42; stroke-width: 2; opacity: .6; }
.pb-crust { fill: #e2a75c; }
.pb-sauce { fill: #c8392a; }
.pb-sauce.is-extra { fill: #a92519; }
.pb-dough { fill: #f0d49c; }
.pb-cheese { fill: #f8e3a2; opacity: .88; }
.pb-edge { fill: none; stroke: #9c6332; stroke-width: 1.4; }
.pb-slice { cursor: pointer; outline: none; transition: transform .35s var(--spring); }
.pb-slice.is-sel .pb-edge { stroke: var(--berry); stroke-width: 3.2; }
.pb-slice:focus-visible .pb-edge { stroke: var(--berry); stroke-width: 3.2; stroke-dasharray: 5 4; }
.pb-badge { fill: #fffaf1; stroke: #9c6332; stroke-width: 1.4; }
.pb-slice.is-sel .pb-badge { fill: var(--berry); stroke: var(--berry-d); }
.pb-badge-t { font: 900 11px Vazirmatn, Tahoma, sans-serif; fill: #3b2a22; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.pb-slice.is-sel .pb-badge-t { fill: #fff; }
.d-builder[hidden] { display: none; }
.pb { display: grid; gap: 10px; margin: 6px 0 4px; text-align: start; }
.pb-lead { margin: 0; font-size: 13px; color: var(--ink-2); }
.pb-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pb-tabs button { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: start; min-width: 0; transition: border-color .2s; }
.pb-tabs button i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.pb-tabs button span { display: grid; min-width: 0; }
.pb-tabs b { font-size: 12.5px; }
.pb-tabs small { font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-tabs .is-on { border-color: var(--berry); background: var(--berry-soft); }
.pb-flavors button small { font-weight: 600; opacity: .75; font-size: 11.5px; }
.pb-ings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-ings li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); }
.pb-ing { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.pb-ing i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pb-ings li.is-off .pb-ing { opacity: .45; text-decoration: line-through; }
.pb-ings li.is-extra { border-color: var(--mint); }
.pb-seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; flex: none; }
.pb-seg button { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.pb-seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(59, 42, 34, .15); }
.pb-ings li.is-off .pb-seg button[aria-checked="true"] { background: var(--ink-3); color: #fff; }
.pb-ings li.is-extra .pb-seg button[aria-checked="true"] { background: var(--mint); color: #fff; }
.pb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pb-actions .btn { flex: 1 1 auto; justify-content: center; }
.bag-slices { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.bag-item--custom { align-items: start; }
@media (max-width: 720px) {
  .pb { text-align: start; }
  .pb-tabs button { flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 6px 4px; }
  .pb-tabs button span { justify-items: center; }
  .pb-seg button { padding: 5px 8px; }
}

/* nothing on the menu gets highlighted when dragging the 3D items or tapping cards; typing and copying contact details still work */
body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
img, svg, canvas { -webkit-user-drag: none; user-drag: none; }
input, textarea, [contenteditable], .info-list dd { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }


[data-res-occasion] button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chips button .occ-ico { width: 18px; height: 18px; flex: none; }


/* sideways strips: arrows and edge fades appear only where there is more to see */
.hscroll { position: relative; min-width: 0; }
.hscroll::before, .hscroll::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.hscroll::before { inset-inline-start: 0; background: linear-gradient(to left, var(--card), transparent); }
.hscroll::after { inset-inline-end: 0; background: linear-gradient(to right, var(--card), transparent); }
.hscroll.can-prev::before, .hscroll.can-next::after { opacity: 1; }
.hs-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.hs-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hs-btn--next { inset-inline-end: -4px; }
.hs-btn--prev { inset-inline-start: -4px; }
.hs-btn--prev svg { transform: scaleX(-1); }
.hscroll.can-next .hs-btn--next, .hscroll.can-prev .hs-btn--prev { opacity: 1; pointer-events: auto; }
.hs-btn:hover { border-color: var(--berry); color: var(--berry-d); }
.chips.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.chips.is-dragging button { pointer-events: none; }
.chips--scroll, .chips--times { cursor: grab; }
@media (hover: none) { .hs-btn { display: none; } }


/* ---------- inline SVG icons (no emoji anywhere) ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.22em; margin-inline-end: .35em; }
.ico:last-child:not(:first-child) { margin-inline: .35em 0; }
.ico:only-child { margin: 0; }
.toast { display: flex; align-items: center; justify-content: center; }
.wx-chip .ico { width: 18px; height: 18px; margin: 0; }
.wx-chip .ico--left { width: 14px; height: 14px; opacity: .6; }
.rs-badge { display: inline-flex; align-items: center; }
.rs-timer .ico { width: 18px; height: 18px; }
.back-link { align-items: center; }
.back-link .ico { width: 15px; height: 15px; margin: 0; }

/* ---------- menu as plain HTML for visitors without JavaScript (and crawlers) ---------- */
.noscript-menu { max-width: 720px; margin: 24px auto; padding: 0 16px; line-height: 1.9; }
.noscript-menu h2 { margin: 18px 0 6px; }

/* ---------- 404 page ---------- */
body.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.nf-card { max-width: 460px; text-align: center; background: var(--card); border-radius: 28px; padding: 34px 26px; box-shadow: var(--shadow); }
.nf-logo { display: inline-block; width: 84px; height: 84px; }
.nf-logo svg { width: 100%; height: 100%; }
.nf-code { margin: 4px 0 0; font-family: var(--display); font-size: 64px; line-height: 1; color: var(--berry); }
.nf-card h1 { margin: 6px 0 10px; font-family: var(--display); font-weight: 400; font-size: 30px; }
.nf-card p { color: var(--ink-2); line-height: 1.9; }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- responsive polish: tablets in landscape, small phones, phones on their side ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .view--home { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
  .view--menu, .view--contact { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); }
  .script-title--menu { font-size: 52px; }
  .menu-side { min-height: 0; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand-name { font-size: 21px; }
  .brand-sub { white-space: nowrap; font-size: 9.5px; letter-spacing: .16em; }
  .top { padding: 0 12px; }
  .top-chips { gap: 6px; }
}
@media (max-width: 350px) { .brand-sub { display: none; } }
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .tabbar a, .tabbar button { height: 44px; }
  .tabbar span { display: none; }
  .stage { padding-bottom: 70px; }
  .toast { bottom: 70px; }
}

/* ---------- order type: at the table / takeaway ---------- */
.of-mode, .of-tables { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.of-mode legend, .of-tables legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); width: 100%; }
.of-mode legend i, .of-tables legend i { color: var(--berry); font-style: normal; }
.of-tables[hidden] { display: none; }
.of-opt { flex: 1; }
.of-opt input, .of-tbl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.of-opt span { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.of-opt input:checked + span, .of-tbl input:checked + span { border-color: var(--berry); background: var(--berry); color: #fff; box-shadow: 0 8px 18px -10px rgba(181, 38, 46, .8); }
.of-opt input:focus-visible + span, .of-tbl input:focus-visible + span { outline: 3px solid var(--berry-soft); outline-offset: 2px; }
.of-table-list { display: flex; flex-wrap: wrap; gap: 8px; }
.of-tbl span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 900; font-size: 16px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.of-mode.is-invalid .of-opt span, .of-tables.is-invalid .of-tbl span { border-color: var(--berry); }

/* ---------- following my order ---------- */
.of-hint { margin: -2px 0 0; padding: 9px 12px; border-radius: 12px; background: #fdf0cf; color: #8a5f00; font-size: 12.5px; font-weight: 700; line-height: 1.7; }
:root[data-theme="dark"] .of-hint { background: #45391d; color: #f2c94c; }
.of-hint[hidden] { display: none; }
.track { display: grid; gap: 10px; margin-bottom: 14px; }
.track[hidden] { display: none; }
.tr-title { margin: 0; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.tr-card { position: relative; display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); text-align: start; width: 100%; }
.tr-card--wait { border-color: #e9c46a; }
.tr-card--busy { border-color: var(--berry); }
.tr-card--ok { border-color: var(--mint); }
.tr-card--off { opacity: .7; }
.tr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-inline-end: 22px; }
.tr-head b { font-size: 14.5px; }
.tr-where { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.tr-badge { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--paper-2); color: var(--ink-2); }
.tr-badge .ico { width: 14px; height: 14px; margin: 0; }
.tr-card--wait .tr-badge { background: #fdf0cf; color: #8a5f00; }
.tr-card--busy .tr-badge { background: var(--berry-soft); color: var(--berry-d); }
.tr-card--ok .tr-badge { background: #dff1ea; color: var(--mint); }
:root[data-theme="dark"] .tr-card--wait .tr-badge { background: #45391d; color: #f2c94c; }
:root[data-theme="dark"] .tr-card--ok .tr-badge { background: #1d3530; }
.tr-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.tr-steps li { flex: 1; position: relative; padding-top: 10px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-align: center; line-height: 1.4; }
.tr-steps li::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 5px; border-radius: 99px; background: var(--line); }
.tr-steps li.is-done::before { background: var(--mint); }
.tr-steps li.is-now::before { background: var(--berry); animation: trPulse 1.6s ease-in-out infinite; }
.tr-steps li.is-now { color: var(--ink); }
@keyframes trPulse { 50% { opacity: .45; } }
.tr-text { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.tr-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; }
.tr-x .ico { width: 14px; height: 14px; margin: 0; }
.tr-card--big { margin-top: 6px; }
.od-live { width: 100%; }
/* a small bar on the page while an order is on its way */
.track-pill { position: fixed; z-index: 60; bottom: 22px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--card); font: inherit; font-size: 13px; font-weight: 800; box-shadow: 0 14px 30px -14px rgba(30, 20, 10, .6); cursor: pointer; animation: infoIn .45s var(--spring) both; white-space: nowrap; }
.track-pill[hidden] { display: none; }
.track-pill .ico { width: 18px; height: 18px; margin: 0; }
.track-pill span { overflow: hidden; text-overflow: ellipsis; }
.track-pill--wait .ico { color: #f2c94c; }
.track-pill--busy .ico { color: #ff8a8f; }
@media (max-width: 900px) { .track-pill { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .tr-steps li.is-now::before { animation: none; } }
body.bag-open .track-pill { display: none; }
body.has-track:not(.bag-open) .toast { bottom: 82px; }
@media (max-width: 900px) { body.has-track:not(.bag-open) .toast { bottom: calc(146px + env(safe-area-inset-bottom)); } }

/* add-to-list button: fixed width so the label swap never jumps; the bag gives a small hop when it fills */
[data-add] { min-width: 172px; justify-content: center; white-space: nowrap; }
.btn--red.is-done svg { animation: bagHop .6s var(--spring); }
@keyframes bagHop { 0% { transform: none; } 35% { transform: translateY(-5px) scale(1.18) rotate(-8deg); } 70% { transform: translateY(1px) scale(.96); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .btn--red.is-done svg { animation: none; } }
@media (max-width: 420px) { .d-actions [data-add] svg { display: block; } [data-add] { min-width: 150px; } }

/* the round "+" buttons: a drawn plus sits exactly in the middle, so it spins on its centre */
.card-plus .ico, .pair-go .ico { width: 16px; height: 16px; margin: 0; display: block; }
.pair-go .ico { width: 14px; height: 14px; }
