/* ===== Tokens ===== */
:root {
  --bg: #F6F1E9;
  --surface: #FFFFFF;
  --surface-2: #FBF8F3;
  --ink: #24160F;
  --ink-2: #6E5D50;
  --ink-3: #A39385;
  --line: #E8DFD3;
  --gold: #A87A2A;
  --gold-2: #C9A050;
  --gold-soft: #F5EAD4;
  --top: #2A1A12;
  --on-top: #F6EBDD;
  --on-top-2: #CDB89C;
  --primary: #2A1A12;
  --on-primary: #F6EBDD;
  --green: #4F7A2B;
  --green-soft: #E6F0DA;
  --red: #B23B2B;
  --on-red: #FFFFFF;
  --on-gold: #FFFFFF;
  --safe-top: env(safe-area-inset-top, 0px);
  --host-badge-h: 0px; /* set by app.js when the host adds a corner badge */
  --img-bg: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F7F1E7 62%, #EFE5D6 100%);
  --shadow: 0 1px 2px rgba(42, 26, 18, .05), 0 6px 20px rgba(42, 26, 18, .07);
  --radius: 16px;
  --top-h: 64px;
  --panel-w: 360px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15100C;
    --surface: #1F1813;
    --surface-2: #271E18;
    --ink: #F4EADF;
    --ink-2: #BCAB9A;
    --ink-3: #85766A;
    --line: #362A21;
    --gold: #D6A650;
    --gold-2: #E2B865;
    --gold-soft: #3A2B17;
    --top: #0E0A07;
    --on-top: #F4EADF;
    --on-top-2: #B8A288;
    --primary: #D6A650;
    --on-primary: #1A120C;
    --green: #93BA62;
    --green-soft: #26321B;
    --red: #E27A66;
    --on-red: #1A120C;
    --on-gold: #1A120C;
    --img-bg: radial-gradient(circle at 50% 42%, #3D2F25 0%, #2A2019 70%, #231B15 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15100C;
  --surface: #1F1813;
  --surface-2: #271E18;
  --ink: #F4EADF;
  --ink-2: #BCAB9A;
  --ink-3: #85766A;
  --line: #362A21;
  --gold: #D6A650;
  --gold-2: #E2B865;
  --gold-soft: #3A2B17;
  --top: #0E0A07;
  --on-top: #F4EADF;
  --on-top-2: #B8A288;
  --primary: #D6A650;
  --on-primary: #1A120C;
  --green: #93BA62;
  --green-soft: #26321B;
  --red: #E27A66;
  --on-red: #1A120C;
  --on-gold: #1A120C;
  --img-bg: radial-gradient(circle at 50% 42%, #3D2F25 0%, #2A2019 70%, #231B15 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.serif { font-family: "Fraunces", Georgia, serif; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Top bar ===== */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 31;
  height: var(--safe-top); background: var(--top);
}
.topbar {
  position: sticky; top: var(--safe-top); z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: var(--top);
  color: var(--on-top);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.logo {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #E2B865, #9A6A1F);
  color: #2A1A12; font: 600 19px/1 "Fraunces", Georgia, serif;
}
.brand-name { font: 600 17px/1.15 "Fraunces", Georgia, serif; white-space: nowrap; letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--on-top-2); white-space: nowrap; }
.spacer { flex: 1; }
.shop-field {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px; min-width: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--on-top-2);
}
.shop-field:focus-within { border-color: var(--gold-2); }
.shop-field input {
  width: 220px; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--on-top); font-weight: 500;
}
.shop-field input::placeholder { color: var(--on-top-2); font-weight: 400; }
.top-link {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 14px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--on-top); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
  background: transparent;
}
.top-link:hover { background: rgba(255, 255, 255, .07); }
.top-link[hidden] { display: none; }
.top-icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: var(--on-top);
}
.top-icon:hover { background: rgba(255, 255, 255, .07); }
.top-icon:focus-visible, .top-link:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.demo-pill {
  flex: none; padding: 3px 9px; border-radius: 999px;
  background: var(--gold-2); color: #1A120C;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.demo-pill[hidden] { display: none; }
.demo-banner {
  padding: 9px 20px; background: var(--gold-soft); color: var(--ink);
  font-size: 13.5px; line-height: 1.4; border-bottom: 1px solid var(--line);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { color: var(--red); }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.danger-solid:hover { filter: brightness(1.1); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .eye-btn:focus-visible, .card-img:focus-visible, .step button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.btn.sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn.ghost { background: transparent; border-color: transparent; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ===== Order page layout ===== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  align-items: start;
}
.catalog { min-width: 0; padding: 0 20px 48px; }

.toolbar {
  position: sticky; top: calc(var(--top-h) + var(--safe-top)); z-index: 20;
  margin: 0 -20px; padding: 14px 20px 12px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid transparent;
}
.toolbar.stuck { border-bottom-color: var(--line); }
.search {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-3);
}
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.chip-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chips {
  display: flex; gap: 8px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  margin-left: -20px; padding-left: 20px;
}
.chips.more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.chip-row .in-order { flex: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.chip .c { color: var(--ink-3); margin-left: 3px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] .c { color: inherit; opacity: .65; }
.chip.in-order { border-color: var(--gold); color: var(--gold); }
.chip.in-order[aria-pressed="true"] { background: var(--gold); color: var(--on-primary); }

.price-note { margin: 14px 2px 0; font-size: 13px; color: var(--ink-3); }
.price-note + .group-title { margin-top: 10px; }
.group-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 22px 2px 12px;
  font: 600 21px/1.2 "Fraunces", Georgia, serif;
}
.group-title span { font: 500 13px/1 "Inter", sans-serif; color: var(--ink-3); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.no-results { padding: 60px 20px; text-align: center; color: var(--ink-2); }

/* ===== Product card ===== */
.card {
  container-type: inline-size;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.card.in { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.card.flash { animation: flash 1.1s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--gold-2); } 100% { box-shadow: 0 0 0 1px var(--gold); } }
/* Product photos carry a ~4.5% transparent border of their own, so a small padding plus a slight
   scale lets the product fill ~93% of the square without the card getting any bigger. */
.card-img {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1; padding: 2.5%;
  border: 0; background: var(--img-bg); cursor: zoom-in;
}
.card-img img {
  width: 100%; height: 100%; object-fit: contain;
  transform: scale(1.08);
  filter: drop-shadow(0 8px 12px rgba(42, 26, 18, .18));
  transition: transform .25s ease;
}
.card-img:hover img { transform: scale(1.11); }
.wt {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.in-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold); color: var(--on-gold);
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  display: none;
}
.card.in .in-badge { display: inline-block; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card-name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.28; min-height: 2.56em; text-wrap: balance; }
.price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.rule { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); margin-bottom: 6px; }

.qty { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.qty.one { grid-template-columns: 1fr; }
.stepper { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stepper .lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.step {
  display: flex; height: 42px; min-width: 0;
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: var(--surface-2);
}
.step button {
  width: 38px; flex: none; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink);
}
.step button:active { background: var(--gold-soft); }
.step button:disabled { color: var(--ink-3); opacity: .5; cursor: default; }
.step input {
  flex: 1; width: 100%; min-width: 0;
  border: 0; outline: 0; background: transparent;
  text-align: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums;
}
.step.has { border-color: var(--gold); background: var(--gold-soft); }
.step:focus-within { border-color: var(--gold); }
.card-total { font-size: 13px; color: var(--ink-2); min-height: 1.3em; }
.card-total b { color: var(--ink); }

@container (max-width: 240px) {
  .qty { grid-template-columns: 1fr; gap: 6px; }
  .stepper { flex-direction: row; align-items: center; gap: 8px; }
  .stepper .lbl { width: 30px; flex: none; }
  .step { flex: 1; height: 40px; }
  .step button { width: 36px; }
}

/* ===== Order panel ===== */
.panel {
  position: sticky; top: calc(var(--top-h) + var(--safe-top));
  height: calc(100vh - var(--top-h) - var(--safe-top));
  height: calc(100dvh - var(--top-h) - var(--safe-top));
  display: flex; flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.panel-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font: 600 23px/1.15 "Fraunces", Georgia, serif; }
.panel-sub { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.panel-sub b { color: var(--ink); font-weight: 600; }
.panel-close { display: none; }
.eye-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.eye-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.panel-list { flex: 1; overflow-y: auto; padding: 6px 10px; overscroll-behavior: contain; }
.li {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 4px 11px; align-items: start;
  padding: 10px 4px 10px 8px; border-radius: 12px; cursor: pointer;
}
.li:hover { background: var(--surface-2); }
.li + .li { border-top: 1px dashed var(--line); }
.li img { width: 50px; height: 50px; object-fit: contain; border-radius: 10px; padding: 3px; background: var(--img-bg); }
.li-main { min-width: 0; }
.li-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.li-name .w { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.li-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.li-qty { font-size: 13px; color: var(--ink-2); }
.li-qty b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.li-amt { flex: none; text-align: right; }
.money { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.masked { color: var(--ink-3); letter-spacing: 2px; }
.li-calc { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.li-x { width: 32px; height: 32px; color: var(--ink-3); }
.li-noimg { width: 50px; height: 50px; border-radius: 10px; background: var(--img-bg); }
.empty { padding: 56px 24px; text-align: center; color: var(--ink-2); }
.empty .bowl {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold);
}
.empty .bowl svg { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 4px; color: var(--ink); font-size: 16px; }
.panel-foot {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom) + var(--host-badge-h));
  border-top: 1px solid var(--line); background: var(--surface);
}
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sum.total { align-items: baseline; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.sum.total b { font-size: 21px; }
.notes {
  width: 100%; height: 54px; resize: none;
  padding: 9px 11px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); outline: 0;
}
.notes:focus { border-color: var(--gold); }
.actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.actions .btn { height: 50px; }

/* Mobile order bar */
.mbar { display: none; }

/* ===== Dialogs ===== */
dialog {
  border: 0; padding: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px - 2 * var(--host-badge-h));
  overflow: auto;
}
dialog::backdrop { background: rgba(20, 12, 8, .55); backdrop-filter: blur(3px); }
.zoom { width: 560px; }
.ask { width: 400px; }
.ask-msg { margin: 0; color: var(--ink-2); }
.zoom-img { aspect-ratio: 1 / 1; background: var(--img-bg); padding: 6%; }
.zoom-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(42, 26, 18, .22)); }
.zoom-info { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.zoom-info h3 { margin: 0; font-size: 17px; }
.zoom-info p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.zoom-close { position: absolute; top: 12px; right: 12px; background: var(--surface); box-shadow: var(--shadow); }
.confirm { width: 480px; }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; }
.dlg-head h2 { margin: 0; font: 600 22px/1.2 "Fraunces", Georgia, serif; flex: 1; }
.dlg-body { padding: 6px 20px 8px; max-height: 55vh; overflow: auto; }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px 20px; }
.c-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.c-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin-bottom: 10px; }
.c-meta dt { color: var(--ink-2); }
.c-meta dd { margin: 0; font-weight: 600; }
.success { text-align: center; padding: 30px 24px 6px; }
.success .tick { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.success .tick svg { width: 30px; height: 30px; stroke-width: 2.5; }
.success h2 { margin: 0 0 6px; font: 600 24px/1.2 "Fraunces", Georgia, serif; }
.success p { margin: 0; color: var(--ink-2); }
.success p + p { margin-top: 4px; }
.success .demo-note { margin-top: 12px; font-size: 13px; }
.send-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); font-size: 14px; font-weight: 500; }

/* ===== Loading / errors ===== */
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--ink-2); }
.spinner {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
}
.spinner.sm { width: 16px; height: 16px; border-width: 2px; border-color: color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-error { max-width: 420px; margin: 60px auto; text-align: center; color: var(--ink-2); }
.load-error .bowl { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.load-error .bowl svg { width: 26px; height: 26px; }
.load-error h3 { margin: 0 0 6px; color: var(--ink); }
.load-error p { margin: 0 0 16px; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--host-badge-h)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive: tablet / unfolded ===== */
@media (max-width: 1100px) {
  :root { --panel-w: 330px; }
  .brand-sub { display: none; }
}

/* ===== Responsive: phone & folded ===== */
@media (max-width: 759px) {
  :root { --top-h: 58px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .brand-name { display: none; }
  .shop-field { flex: 1; }
  .shop-field input { width: 100%; }
  .top-link span { display: none; }
  .top-link { width: 42px; padding: 0; justify-content: center; flex: none; }
  .demo-pill { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .catalog { padding: 0 16px calc(110px + var(--host-badge-h)); }
  .toolbar { margin: 0 -16px; padding: 10px 16px; }
  .chips { margin-left: -16px; padding-left: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; gap: 8px; }
  .card-name { font-size: 14px; }
  .price { font-size: 16px; }
  .group-title { font-size: 19px; margin: 18px 2px 10px; }

  .panel {
    position: fixed; inset: 0; z-index: 60;
    height: 100vh; height: 100dvh;
    padding-top: var(--safe-top);
    border: 0;
    transform: translateY(102%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  }
  .panel.open { transform: none; }
  .panel-close { display: inline-grid; margin: -6px -8px 0 0; }

  .mbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px; z-index: 40;
    bottom: calc(12px + env(safe-area-inset-bottom) + var(--host-badge-h));
    padding: 8px 8px 8px 16px; border-radius: 16px;
    background: var(--top); color: var(--on-top);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  }
  .mbar-info { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; }
  .mbar-info b { display: block; font-size: 15px; }
  .mbar-info span { color: var(--on-top-2); font-size: 13px; }
  .mbar .btn { height: 44px; background: var(--gold-2); color: #1A120C; border: 0; }
  .zoom-close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
