/* Nét Việt · Bàn Xoay — tone xanh Nét Việt */
:root {
  --bg: #0a2416;
  --bg-deep: #061a0f;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --panel: #0f2e1d;
  --panel-2: #133824;
  --ink: #f4f1e6;
  --ink-2: #d2ddd2;
  --muted: #93b39d;
  --line: rgba(196, 232, 207, .14);
  --line-2: rgba(196, 232, 207, .24);
  --green: #22c55e;
  --green-deep: #16a34a;
  --green-soft: #86efac;
  --green-ink: #052e16;
  --gold: #f3c454;
  --serif: "Noto Serif Display", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;

  /* bàn: R = bán kính bàn; tâm bàn nằm trên mép hero một đoạn k·R */
  --R: clamp(190px, min(30vw, calc((100dvh - 532px) / .90)), 470px);
  --k: .27;          /* tâm bàn cao hơn mép trên hero k·R */
  --orbit: .80;      /* tâm bàn → tâm đĩa */
  --plate: .32;      /* bán kính đĩa giữa / R */
  --side: .80;       /* đĩa hai bên nhỏ hơn */
  --spin: 950ms;
  --ease: cubic-bezier(.62, 0, .22, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  min-height: 100vh; min-height: 100dvh;
  background:
    radial-gradient(1100px 600px at 12% -12%, rgba(20, 83, 45, .55), transparent 60%),
    radial-gradient(900px 700px at 110% 25%, rgba(5, 150, 105, .16), transparent 55%),
    radial-gradient(900px 500px at 50% 120%, rgba(22, 101, 52, .28), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
/* chỉ icon trong nút / liên kết; không đụng SVG của Leaflet hay sprite ẩn */
:where(button, a, .meta-item) svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ---------- header (dùng chung cho trang bản đồ) ---------- */
.top {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.mark { width: 34px; height: 39px; color: var(--green-soft); display: grid; }
.mark svg, .mark img { width: 100%; height: 100%; }
.mark img { object-fit: contain; display: block; }
.mark text { fill: var(--gold); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font: 500 21px/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.brand-text small { font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.motto { margin: 0; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.motto::before, .motto::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.top-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--green); color: var(--green-ink);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 13px; color: var(--ink);
}
.pill-link:hover { background: var(--surface-2); }
.pill-link svg { font-size: 16px; }

/* ---------- hero: bàn xoay 3 đĩa ---------- */
.stage { display: flex; flex-direction: column; min-height: calc(100dvh - 64px); }
.hero { position: relative; flex: none; height: calc(var(--R) * .90); overflow: hidden; }
.table {
  position: absolute; left: 50%;
  top: calc(var(--R) * (-1 - var(--k)));
  width: calc(var(--R) * 2); height: calc(var(--R) * 2);
  margin-left: calc(var(--R) * -1);
  border-radius: 50%;
  transition: transform var(--spin) var(--ease);
  cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  z-index: 2;
}
.table.instant, .table.instant .plate { transition: none; }
.wood {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 64%, rgba(12, 6, 2, .3) 90%, rgba(12, 6, 2, .55) 100%),
    linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(15,8,3,.45) 33.3%, rgba(255,220,180,.06) calc(33.3% + 1px), transparent calc(33.3% + 2px),
                           transparent calc(66.6% - 1px), rgba(15,8,3,.45) 66.6%, rgba(255,220,180,.06) calc(66.6% + 1px), transparent calc(66.6% + 2px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.07' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.47 0 0 0 0 0.3 0 0 0 0 0.18 1.5 0 0 0 -0.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23402617'/%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") center / cover,
    #452a19;
  box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 230, 200, .05);
}
.plate {
  --pr: calc(var(--R) * var(--plate));
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--pr) * 2); height: calc(var(--pr) * 2);
  margin: calc(var(--pr) * -1) 0 0 calc(var(--pr) * -1);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 70%, #f1ece4 74%, #fff 80%, #f4f0ea 92%, #e6e0d6 100%);
  box-shadow: 0 18px 28px -6px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .3);
  transition: transform var(--spin) var(--ease), filter .25s;
  z-index: 3;
}
.plate img, .plate .ph {
  position: absolute; inset: 13%; width: 74%; height: 74%;
  border-radius: 50%; object-fit: cover; display: block; background: #efe8dc;
}
.plate .ph { display: grid; place-items: center; }
.plate .ph img { position: static; width: 42%; height: 42%; background: none; border-radius: 0; opacity: .6; }
.plate::after {
  content: ""; position: absolute; inset: 13%; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset 0 6px 14px rgba(0,0,0,.18);
  pointer-events: none;
}
.plate.is-side { filter: brightness(.86) saturate(.9); }
.plate.is-side:hover { filter: none; }
.plate.is-current { cursor: zoom-in; }
.plate.ghost { visibility: hidden; }
.plate.dying { animation: plateOut .3s ease forwards; pointer-events: none; }
.plate.born { animation: plateIn .45s ease backwards; }
@keyframes plateOut { to { opacity: 0; } }
@keyframes plateIn { from { opacity: 0; } }

/* nhãn món trước / món sau dưới hai đĩa bên */
.cap {
  position: absolute; z-index: 4; top: calc(var(--R) * .57);
  width: calc(var(--R) * .46); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 1px; text-align: center;
  font-size: 12px; color: var(--ink-2); line-height: 1.3;
  transition: opacity .25s;
}
.cap-prev { left: calc(50% - var(--R) * .57); }
.cap-next { left: calc(50% + var(--R) * .57); }
.cap .cap-dir { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.cap .cap-name { font: 400 14px/1.25 var(--serif); color: var(--ink); }
.cap .cap-price { color: var(--gold); font-weight: 600; font-size: 12px; }
.cap:hover .cap-name { color: var(--green-soft); }
.cap.cross .cap-dir { color: var(--green-soft); }
.hero.spinning .cap { opacity: 0; }

.side { position: absolute; top: 46%; transform: translateY(-50%); z-index: 1; }
.side-left { left: clamp(20px, 6vw, 120px); }
.side-left h2 { margin: 0; font: 400 clamp(19px, 1.9vw, 27px)/1.45 var(--serif); }
.side-left h2 em { font-style: italic; color: var(--green-soft); }
.side-left p { margin: 14px 0 0; font-size: 8.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); line-height: 2; }
.side-right {
  right: clamp(20px, 6vw, 120px); display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; color: var(--ink-2); text-align: left; line-height: 1.6; z-index: 4;
}
.side-right svg { font-size: 18px; color: var(--green-soft); transition: transform .6s ease; }
.side-right:hover svg { transform: rotate(-200deg); }

/* ---------- thông tin món giữa ---------- */
.dish-info {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 6px 20px 0;
  transition: opacity .22s ease, transform .22s ease;
}
.dish-info.swap { opacity: 0; transform: translateY(6px); }
.eyebrow { margin: 0 0 2px; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--green-soft); }
.eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--line-2); }
.dish-name { margin: 0; font: 400 clamp(30px, 4vw, 54px)/1.12 var(--serif); }
.dish-sub { margin: 2px 0 0; font: italic 400 13px/1.4 var(--serif); color: var(--muted); }
.dish-desc { margin: 6px auto 0; max-width: 760px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.dish-meta { margin-top: 8px; display: inline-flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-2); }
.dish-meta .price { font: 600 23px/1 var(--serif); color: var(--gold); white-space: nowrap; }
.dish-meta .price small { font: 500 12.5px var(--sans); color: var(--gold); opacity: .85; margin-left: 3px; }
.dish-meta .sep { width: 1px; height: 18px; background: var(--line-2); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta-item svg { color: var(--green-soft); }
.dish-pos { margin: 10px 0 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.dish-pos b { color: var(--green-soft); font-weight: 600; }

/* ---------- chọn món: to, rõ ---------- */
.picker { width: min(1180px, 100% - 32px); margin: 0 auto; padding: clamp(10px, 1.6vh, 20px) 0 clamp(12px, 2vh, 22px); }
.picker-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ask { margin: 0; font: 400 clamp(18px, 1.7vw, 23px)/1.25 var(--serif); color: var(--ink); }
.ask em { font-style: italic; color: var(--green-soft); }
.picker-nav { display: flex; align-items: center; gap: 10px; }
.page-no { margin: 0 6px 0 0; font-size: 11px; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 18px; color: var(--ink);
  border: 1px solid var(--line-2); background: var(--surface);
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.round-btn:hover { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.round-btn:disabled { opacity: .3; pointer-events: none; }
.cats {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0 10px; margin: 0 -2px;
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface);
  transition: background .2s, color .2s, border-color .2s;
}
.cat img { width: 18px; height: 18px; filter: invert(1); opacity: .75; }
.cat .count { font-size: 11px; color: var(--muted); font-weight: 400; }
.cat:hover { background: var(--surface-2); border-color: var(--line-2); }
.cat[aria-selected="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.cat[aria-selected="true"] img { filter: none; opacity: .85; }
.cat[aria-selected="true"] .count { color: var(--green-ink); opacity: .7; }

.viewport { overflow: hidden; padding: 4px 0; margin: -4px 0; }
.viewport { touch-action: pan-y; }
.pager { position: relative; }
.swipe-hint { display: none; }
.track { display: flex; transition: transform .7s var(--ease); }
.page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(var(--per, 4), minmax(0, 1fr)); gap: 12px; padding: 0 1px; }
.card {
  position: relative; display: flex; align-items: center; min-width: 0;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-2px); background: var(--surface-2); }
.card.active { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .65); box-shadow: 0 0 0 1px rgba(34, 197, 94, .35) inset; }
.card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 52px 14px 14px; text-align: left; border-radius: 16px; }
.card .thumb {
  width: 76px; height: 76px; border-radius: 50%; flex: none; overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 8px 16px rgba(0, 0, 0, .4); background: #efe8dc;
  display: grid; place-items: center;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb img.icon { width: 46%; height: 46%; object-fit: contain; opacity: .55; }
.card-text { min-width: 0; display: grid; gap: 2px; }
.card-text b { font: 400 17px/1.25 var(--serif); color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-text i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-text span { font-size: 14.5px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.card-add {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--green-ink); font-size: 20px; font-weight: 500; line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(34, 197, 94, .8);
  transition: transform .2s, filter .2s;
}
.card-add:hover { transform: scale(1.08); filter: brightness(1.08); }
.card-add.added { animation: bump .45s ease; }
.card-add:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.card.sold .thumb { filter: grayscale(.8) brightness(.8); }
.sold-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font: 600 10px/1.4 var(--sans); letter-spacing: .04em; font-style: normal;
  color: #fecaca; background: rgba(220, 38, 38, .18); border: 1px solid rgba(248, 113, 113, .35);
}
.primary:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 7px; height: 3px; border-radius: 2px; background: var(--line-2); transition: width .3s, background .3s; }
.dots button.on { width: 24px; background: var(--green); }
.dots button::before { content: ""; display: block; margin: -9px -4px; height: 21px; }

/* ---------- chi tiết món ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.backdrop { position: absolute; inset: 0; background: rgba(3, 18, 10, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sheet {
  position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  overscroll-behavior: contain; color-scheme: dark;
}
.sheet-body { padding: 26px 28px 22px; }
.sheet .close-btn { position: absolute; top: 16px; right: 16px; }
.close-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  border: 1.5px solid var(--line-2); color: var(--ink); background: var(--surface); z-index: 2;
  transition: background .2s, color .2s, border-color .2s;
}
.close-btn:hover { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.eyebrow-sm { margin: 0; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--green-soft); padding-right: 40px; }
.sheet h2 { margin: 6px 0 0; font: 400 30px/1.15 var(--serif); padding-right: 30px; }
.m-sub { margin: 4px 0 0; font: italic 12.5px/1.4 var(--serif); color: var(--muted); }
.m-desc { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.m-desc em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; }
.sheet hr { border: 0; height: 1px; background: var(--line); margin: 16px 0; }
.m-label { margin: 0 0 8px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.m-label small { font-weight: 400; color: var(--muted); font-size: 10.5px; }
.m-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pair { position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.pair:hover { background: var(--surface-2); border-color: var(--line-2); }
.pair-main { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 14px 8px 10px; text-align: center; border-radius: 14px; }
.pair-main img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 6px 12px rgba(0, 0, 0, .4); background: #efe8dc; }
.pair-main img.icon { object-fit: contain; padding: 14px; }
.pair-main b { font: 400 13px/1.25 var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.pair-main span { font-size: 12px; font-weight: 600; color: var(--gold); }
.pair-add {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1; font-size: 17px;
  background: var(--green); color: var(--green-ink); box-shadow: 0 6px 12px -6px rgba(34, 197, 94, .8);
}
.pair-add:hover { filter: brightness(1.08); }
.pair-add.added { animation: bump .45s ease; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.facts div { background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .18); border-radius: 10px; padding: 10px 12px; }
.facts small { display: block; font-size: 10px; color: var(--muted); }
.facts b { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
.sizes { display: flex; gap: 8px; margin-top: 12px; }
.sizes:empty { display: none; }
.sizes button {
  flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; color: var(--ink-2); display: flex; justify-content: space-between;
}
.sizes button b { font-weight: 600; color: var(--gold); }
.sizes button[aria-checked="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: rgba(34, 197, 94, .1); color: var(--ink); }
.sheet-foot { display: flex; align-items: center; gap: 14px; }
.foot-price { flex: 1; }
.foot-price small { display: block; font-size: 10px; color: var(--muted); }
.foot-price b { font: 700 22px/1.2 var(--sans); color: var(--gold); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.qty button { width: 34px; height: 36px; font-size: 17px; color: var(--ink); }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: 13.5px; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; background: var(--green); color: var(--green-ink);
  font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 22px -12px rgba(34, 197, 94, .9);
  transition: filter .2s, transform .2s;
}
.primary:hover { filter: brightness(1.08); }
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .6; pointer-events: none; }
.primary svg { font-size: 16px; }
.primary.done { background: var(--gold); }
.wide { width: 100%; }
.fly-plate { position: fixed; z-index: 60; pointer-events: none; margin: 0 !important; left: 0; top: 0; transition: none; filter: none; }

/* ---------- drawers ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(2, 12, 6, .5); animation: fade .25s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-left: 1px solid var(--line);
  padding: 20px 22px 28px; overflow: auto; color-scheme: dark;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6);
  animation: slideIn .38s cubic-bezier(.2, .8, .2, 1);
}
.drawer.closing .drawer-panel { animation: slideOut .25s ease forwards; }
.drawer.closing .drawer-scrim { animation: fade .25s ease reverse forwards; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideOut { to { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head h3 { margin: 0; font: 400 26px/1.2 var(--serif); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-list img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.4); background: #efe8dc; }
.cart-list b { display: block; font: 400 15px/1.3 var(--serif); }
.cart-list small { color: var(--gold); font-size: 12px; }
.cart-list .qty button { width: 28px; height: 30px; font-size: 15px; }
.cart-empty { color: var(--muted); font-size: 13.5px; padding: 18px 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.cart-total b { font: 700 21px var(--sans); color: var(--gold); }
.form { display: grid; gap: 10px; margin-top: 10px; }
.form label { display: grid; gap: 5px; font-size: 11.5px; color: var(--ink-2); }
.form input, .form textarea {
  font: inherit; font-size: 14px; color: var(--ink); padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .18); width: 100%; resize: vertical; color-scheme: dark;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(210, 221, 210, .45); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(0, 0, 0, .2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 9px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg input:checked + span { background: var(--green); color: var(--green-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 8px; }
.form-msg { margin: 0; font-size: 13px; min-height: 1.2em; color: var(--ink-2); }
.form-msg.ok { color: var(--green-soft); }
.form-msg.err { color: #fca5a5; }
.info-tag { margin: 0 0 14px; font: italic 14px var(--serif); color: var(--green-soft); }
.info-list { margin: 0 0 14px; display: grid; gap: 10px; }
.info-list dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.info-list dd { margin: 2px 0 0; font-size: 14px; }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13.5px; background: var(--surface); }
.ghost:hover { border-color: var(--green); background: rgba(34, 197, 94, .1); }
.ghost svg { color: var(--green-soft); }
.drawer h4 { margin: 24px 0 0; font: 400 22px var(--serif); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--green); color: var(--green-ink); font-weight: 600; padding: 11px 18px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
  transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b91c1c; color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .side { display: none; } }
@media (max-width: 900px) {
  .motto { display: none; }
  .top { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  :root { --R: clamp(160px, 58vw, 260px); --plate: .32; --side: .78; }
  .top { height: 58px; }
  .stage { min-height: calc(100dvh - 58px); }
  .brand { gap: 9px; }
  .mark { width: 28px; height: 32px; }
  .brand-text b { font-size: 18px; white-space: nowrap; }
  .brand-text small { white-space: nowrap; letter-spacing: .24em; }
  .icon-btn { width: 38px; height: 38px; font-size: 17px; }
  .pill-link { height: 38px; padding: 0 12px; font-size: 12px; }
  .cap .cap-name { font-size: 12.5px; }
  .cap .cap-dir { display: none; }
  .cap.cross .cap-dir { display: inline-flex; letter-spacing: .12em; }
  .pair-main { padding: 12px 6px 8px; }
  .pair-main img { width: 46px; height: 46px; }
  .eyebrow { letter-spacing: .2em; padding: 0 8px; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .dish-name { font-size: 30px; }
  .dish-desc { font-size: 12.5px; }
  .dish-meta { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  .dish-meta .sep { display: none; }
  .picker { width: calc(100% - 44px); }          /* chừa lề hai bên cho mũi tên vuốt */
  .dish-sub, .dish-desc { display: none; }
  .picker-nav { display: none; }
  .swipe-hint {
    display: grid; place-items: center; position: absolute; top: 50%; z-index: 2;
    width: 22px; height: 56px; margin-top: -28px; font-size: 22px; color: var(--ink); opacity: .38;
  }
  .swipe-hint.prev { left: -22px; }
  .swipe-hint.next { right: -22px; animation: nudge 1.8s ease-in-out infinite; }
  .pager.touched .swipe-hint.next { animation: none; }
  .ask { font-size: 18px; }
  .round-btn { width: 38px; height: 38px; font-size: 16px; }
  .page-no { display: none; }
  .page { grid-template-columns: 1fr; gap: 8px; }
  .card-main { padding: 10px 52px 10px 10px; gap: 12px; }
  .card .thumb { width: 60px; height: 60px; box-shadow: 0 0 0 3px #fff, 0 6px 12px rgba(0,0,0,.4); }
  .card-text b { font-size: 16px; -webkit-line-clamp: 1; }
  .card-add { top: 50%; bottom: auto; margin-top: -17px; }
  .sheet-body { padding: 22px 18px 18px; }
  .sheet h2 { font-size: 26px; }
  .sheet-foot { flex-wrap: wrap; }
  .sheet-foot .primary { flex: 1 1 100%; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 label:last-child { grid-column: span 2; }
}
@media (max-width: 380px) {
  .brand-text small { display: none; }
  .cat { font-size: 13px; padding: 8px 13px 8px 11px; }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) {
  .swipe-hint.next { animation: none; }
  :root { --spin: 1ms; }
  .track, .dish-info { transition: none; }
}
