/* Customer menu */
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { top: 8px; }
.boot { min-height: 100dvh; display: grid; place-items: center; color: var(--brand); }
.noscript { padding: 24px; text-align: center; }

.shell { max-width: 1080px; margin: 0 auto; padding-bottom: 120px; }

/* ── Header ── */
.hero { position: relative; }
.hero-cover { height: 168px; background: linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 70%, var(--bg)) 0%, var(--bg) 100%); overflow: hidden; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover.has-img::after { content: ''; position: absolute; inset: 0 0 auto; height: 168px; background: linear-gradient(to bottom, rgba(0,0,0,.05) 40%, var(--bg) 100%); pointer-events: none; }
.hero-tools { position: absolute; top: 12px; inset-inline: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
}
.hero-id { position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 0 16px; margin-top: -44px; z-index: 1; }
.logo {
  width: 84px; height: 84px; border-radius: 22px; flex-shrink: 0; overflow: hidden;
  background: var(--brand); color: var(--on-brand); display: grid; place-items: center;
  border: 3px solid var(--bg); box-shadow: var(--shadow);
  font-family: var(--font-sign); font-size: 44px; line-height: 1;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.venue-name { font-family: var(--font-sign); font-weight: 400; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; letter-spacing: 0; padding-bottom: 4px; }
:lang(en) .venue-name { font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
.hero-meta { padding: 10px 16px 0; display: grid; gap: 8px; }
.tagline { color: var(--muted); font-size: 15px; max-width: 60ch; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.status.closed::before { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
.status.closed { color: var(--danger); }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.table-pill { font-size: 13px; }

/* ── Sticky nav ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0 0; margin-top: 14px; border-bottom: 1px solid var(--line); }
.search { position: relative; margin: 0 16px 10px; }
.search .ic { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-inline-start: 42px; border-radius: 99px; background: var(--surface); }
.search .clear-search { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; scroll-padding-inline: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0;
  min-height: 44px; padding: 0 12px; background: none; border: 0; border-bottom: 2.5px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer;
}
.tab[aria-current="true"] { color: var(--text); border-bottom-color: var(--brand); }
.tab[aria-current="true"] .ic { color: var(--brand); }

/* ── Sections ── */
main { padding: 0 16px; }
.section { padding-top: 26px; scroll-margin-top: 120px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.section-head h2 { font-family: var(--font-sign); font-weight: 400; font-size: 28px; line-height: 1.2; }
:lang(en) .section-head h2 { font-family: var(--font-body); font-weight: 700; font-size: 22px; }
.section-head .ic { color: var(--brand); }
.section-img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--r-md); margin: 6px 0 4px; }

/* Featured strip */
.featured { padding-top: 22px; }
.featured h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.featured h2 .ic { color: var(--brand); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
.strip::-webkit-scrollbar { display: none; }
.fcard { scroll-snap-align: start; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; overflow: hidden; cursor: pointer; display: grid; }
.fcard .tile { width: 100%; aspect-ratio: 4/3; height: auto; border-radius: 0; font-size: 52px; }
.fcard .fbody { padding: 10px 12px 12px; display: grid; gap: 2px; }
.fcard .fname { font-weight: 600; font-size: 15px; line-height: 1.35; }
.fcard .price { font-size: 14px; }

/* Item rows — a printed-menu list */
.items { display: grid; }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; text-align: start;
  width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; cursor: pointer;
}
.item:last-child { border-bottom: 0; }
.item-text { display: grid; gap: 4px; min-width: 0; }
.item-name { font-weight: 600; font-size: 16.5px; line-height: 1.4; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.item-desc { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.item-media { position: relative; }
.item-media .add {
  position: absolute; bottom: -8px; inset-inline-end: -6px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); display: grid; place-items: center; border: 3px solid var(--bg);
}
.item.is-off { cursor: default; }
.item.is-off .item-name, .item.is-off .price { color: var(--muted); }
.item.is-off .tile, .item.is-off .thumb { filter: grayscale(1); opacity: .55; }
.item:not(.is-off):hover .item-name { color: var(--brand); }

.thumb { width: 92px; height: 92px; border-radius: var(--r-md); object-fit: cover; background: var(--surface-2); }

/* Letter tile — the placeholder for items without a photo */
.tile {
  --hue: var(--brand);
  width: 92px; height: 92px; border-radius: var(--r-md); position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--hue) 55%, transparent) 0%, transparent 60%),
    color-mix(in srgb, var(--hue) 22%, var(--surface));
  color: color-mix(in srgb, var(--hue) 35%, var(--text));
  font-family: var(--font-sign); font-size: 46px; line-height: 1;
}
.tile .tile-ic { position: absolute; inset-block-end: 7px; inset-inline-start: 7px; opacity: .55; }
.tile .tile-letter { transform: translateY(4%); }

/* Empty / search states */
.empty-search { padding: 40px 0; }

/* ── Floating cart bar ── */
.cartbar {
  position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 99px;
  background: var(--brand); color: var(--on-brand); border: 0; box-shadow: var(--shadow); cursor: pointer; font-weight: 700; font-size: 16px;
  animation: sheet-up .3s var(--ease);
}
[dir="rtl"] .cartbar { padding: 8px 16px 8px 8px; }
.cartbar .count { min-width: 30px; height: 30px; border-radius: 99px; background: color-mix(in srgb, var(--on-brand) 18%, transparent); display: grid; place-items: center; font-size: 15px; padding: 0 8px; }
.cartbar .label { flex: 1; text-align: start; }
.cartbar .total { padding: 7px 14px; border-radius: 99px; background: color-mix(in srgb, var(--on-brand) 14%, transparent); }
.cartbar.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); } }

/* ── Item sheet ── */
.sheet-hero { margin: -16px -16px 14px; }
.sheet-hero img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sheet-hero .tile { width: 100%; height: 150px; border-radius: 0; font-size: 92px; }
.sheet-title { font-size: 22px; font-weight: 700; }
.sheet-desc { color: var(--muted); margin-top: 6px; }
.sheet-price { margin-top: 8px; font-size: 18px; }
.group { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); }
.group-head h3 { font-size: 16px; }
.group-head .rule { font-size: 13px; color: var(--muted); font-weight: 400; display: block; }
.group.has-error { border-color: var(--danger); }
.group.has-error .group-head .badge { background: var(--danger); color: #fff; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; cursor: pointer; border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; }
.opt input { width: 21px; height: 21px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.opt .opt-name { flex: 1; }
.opt .opt-price { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.opt input:checked ~ .opt-name { font-weight: 600; }
.opt.is-disabled { opacity: .5; cursor: not-allowed; }
.remove-group .group-head { background: color-mix(in srgb, var(--brand-2) 22%, var(--surface)); }
.remove-group .opt-name::before { content: attr(data-prefix); color: var(--muted); }
.group-error { color: var(--danger); font-size: 14px; padding: 0 14px 12px; }
.note-field { margin-top: 22px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; height: 48px; }
.qty button { width: 46px; height: 46px; border: 0; background: none; border-radius: 99px; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty.sm { height: 38px; }
.qty.sm button { width: 36px; height: 36px; }
.sheet-actions { display: flex; gap: 10px; align-items: center; }
.sheet-actions .btn-primary { flex: 1; min-height: 50px; font-size: 16px; justify-content: space-between; padding: 0 20px; }
.validation-msg { color: var(--danger); font-size: 14px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }

/* ── Cart ── */
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { font-size: 16px; }
.cart-line .meta { color: var(--muted); font-size: 14px; display: grid; gap: 2px; }
.cart-line .meta .removed { color: var(--warn); }
.cart-line .line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line .row { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.cart-line .row .spacer { flex: 1; }
.cart-line.invalid { background: color-mix(in srgb, var(--danger) 8%, transparent); border-radius: var(--r-sm); padding-inline: 10px; }
.cart-line .line-err { color: var(--danger); font-size: 14px; grid-column: 1 / -1; }
.totals { display: grid; gap: 6px; padding: 14px 0 4px; }
.totals .tr { display: flex; justify-content: space-between; color: var(--muted); }
.totals .tr.grand { color: var(--text); font-weight: 700; font-size: 18px; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }
.browse-note { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; margin-top: 10px; }

/* Checkout */
.form-grid { display: grid; gap: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; background: var(--bg-2); border-radius: 99px; border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; min-height: 40px; border-radius: 99px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -3px rgba(0,0,0,.35); }
.seg input:focus-visible + span { box-shadow: var(--focus); }
.form-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14.5px; display: flex; gap: 8px; }

/* Order status */
.order-view { padding: 24px 16px 60px; max-width: 560px; margin: 0 auto; display: grid; gap: 20px; }
.order-ok { text-align: center; display: grid; justify-items: center; gap: 8px; }
.order-ok .tick { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.order-num { font-family: var(--font-sign); font-size: 56px; line-height: 1; color: var(--brand); font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps .st { display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 13px; color: var(--faint); }
.steps .st::before { content: ''; width: 100%; height: 5px; border-radius: 99px; background: var(--line); }
.steps .st.done { color: var(--text); }
.steps .st.done::before { background: var(--brand); }
.steps .st.now { font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.cancelled-note { color: var(--danger); text-align: center; font-weight: 600; }
.my-order { display: inline-flex; }

/* Info sheet */
.info-list { display: grid; gap: 14px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row .ic { color: var(--brand); margin-top: 3px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: end; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 700; color: var(--brand); }

.footer { text-align: center; color: var(--faint); font-size: 13px; padding: 40px 16px 0; }

@media (min-width: 760px) {
  .hero-cover, .hero-cover.has-img::after { height: 240px; }
  .items { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .strip { grid-auto-columns: 200px; }
  .logo { width: 104px; height: 104px; font-size: 54px; }
}
.toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
