/* Restaurant storefront. --accent comes from the restaurant's own colour (checked for 4.5:1 with white). */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #f7f1e8;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #1c1814;
  --muted: #5e5248;
  --line: #e0d3c2;
  --field: #8a7462;
  --accent: #b9341c;
  --ok: #4e5b2c;
  --bad: #9c2a17;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 60px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 64px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
a[href], button:not(:disabled), summary, select, label[for], input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--paper-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-go { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-go:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-small { min-height: 44px; padding: 6px 12px; font-size: 15px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; height: var(--header); background: rgba(247, 241, 232, 0.95); border-bottom: 1px solid var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.shop-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font: 600 21px/1.1 var(--display); min-width: 0; }
.shop-link img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.shop-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.top nav a:hover { background: var(--paper-2); }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: none; font-weight: 600; }
.bag-btn svg { width: 20px; height: 20px; }
.bag-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; line-height: 24px; text-align: center; }
.bag-count[data-empty] { background: var(--paper-2); color: var(--muted); }
@media (max-width: 640px) { .top nav a.hide-sm, .bag-btn .bag-word { display: none; } }

.notice { background: var(--ink); color: #f7f1e8; font-size: 15px; }
.notice .wrap { padding-block: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice a, .notice button { color: #f3b23c; }
.notice.table { background: var(--accent); color: #fff; }
.notice.table strong { font-size: 17px; }

/* Store hero */
.cover { position: relative; min-height: clamp(220px, 34vw, 380px); background: var(--paper-2) center / cover no-repeat; display: flex; align-items: flex-end; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 16, 12, 0.82) 0%, rgba(20, 16, 12, 0.35) 55%, rgba(20, 16, 12, 0.05) 100%); }
.cover.plain { min-height: 0; }
.cover.plain::after { display: none; }
.cover .wrap { position: relative; z-index: 1; padding-block: 28px; }
.cover:not(.plain) .wrap { color: #fff; }
.cover h1 { font-size: clamp(38px, 6vw, 72px); }
.cover p { margin-top: 8px; font-size: 18px; max-width: 34em; }
.cover:not(.plain) .meta { color: #f2e9dc; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 15px; }
.dot-open::before, .dot-closed::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot-open::before { background: #6fbf73; }
.dot-closed::before { background: #e26d5c; }

/* Menu */
.cat-nav { position: sticky; top: var(--header); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.cat-nav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.cat-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.cat-nav a.on, .cat-nav a:hover { border-color: var(--accent); color: var(--accent); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 96px; }
.layout .side { position: sticky; top: calc(var(--header) + 72px); }
@media (max-width: 1040px) { .layout { grid-template-columns: 1fr; } .layout .side { display: none; } }
.cat { padding-top: 30px; }
.cat h2 { font-size: clamp(30px, 3.4vw, 40px); }
.cat > p { color: var(--muted); margin-top: 4px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 16px; }
.item { position: relative; display: grid; grid-template-columns: 1fr 104px; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.item:hover { border-color: var(--field); }
.item:has(.item-open:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.item h3 { font: 600 17px/1.3 var(--body); }
.item-open { background: none; border: 0; padding: 0; text-align: left; font: inherit; }
.item-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.item-open:focus-visible { outline: none; }
.item p { color: var(--muted); font-size: 15px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.price { font: 600 19px/1 var(--display); }
.item img, .item .tile { width: 104px; height: 104px; border-radius: 8px; object-fit: cover; }
.tile { display: grid; place-items: center; background: var(--paper-2); color: var(--accent); font: 600 17px/1.1 var(--display); text-align: center; padding: 8px; overflow-wrap: anywhere; overflow: hidden; }
.item.sold { opacity: 0.6; }
.tag { display: inline-flex; padding: 1px 7px; border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--paper-2); }
.tag-spicy { color: var(--bad); }
.tag-vegetarian, .tag-vegan { color: var(--ok); }
.tag-sold { background: var(--ink); color: #fff; }

/* Ticket motif with menu-card leaders */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.ticket .no { font: 600 13px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.ticket h2 { font-size: 30px; margin-top: 4px; }
.ticket ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ticket li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ticket .ln { display: flex; gap: 8px; align-items: baseline; }
.ticket .ln::after { content: ""; flex: 1; order: 1; border-bottom: 2px dotted var(--field); transform: translateY(-4px); min-width: 16px; }
.ticket .ln .p { order: 2; font-family: var(--mono); font-size: 15px; }
.ticket .ln .n { font-weight: 600; }
.ticket .c { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ticket .warn { color: var(--bad); font-size: 14px; font-weight: 600; margin-top: 8px; }
.ticket .acts { display: flex; gap: 6px; margin-top: 8px; }
.ticket .acts button { min-width: 44px; min-height: 40px; border: 1px solid var(--field); border-radius: 8px; background: none; font-weight: 600; padding: 0 10px; }
.ticket .acts button:hover { background: var(--paper-2); }
.sum { display: grid; gap: 4px; margin-top: 12px; font-family: var(--mono); font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .total { font-size: 18px; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; }
.ticket .btn-go { width: 100%; margin-top: 14px; }

/* Dialog and drawer */
dialog { border: 0; padding: 0; border-radius: var(--r); width: min(560px, 100vw - 24px); max-height: min(90vh, 900px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(20, 16, 12, 0.6); }
.dlg { display: flex; flex-direction: column; max-height: inherit; }
.dlg-head { display: flex; align-items: start; gap: 12px; padding: 18px 18px 8px; }
.dlg-head h2 { font-size: 30px; flex: 1; }
.dlg-body { overflow-y: auto; padding: 0 18px 18px; }
.dlg-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.x { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--field); border-radius: 8px; background: none; font-size: 22px; line-height: 1; }
.dlg-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
legend small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; background: var(--card); }
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.choice span { flex: 1; }
.choice em { font-style: normal; color: var(--muted); font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 8px; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-shade { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(20, 16, 12, 0.6); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); padding: 14px; overflow-y: auto; }

/* Forms */
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > label { font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: #fff; }
textarea { min-height: 84px; resize: vertical; }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fbe8e5; color: var(--bad); }
.segment { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.segment label { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-height: 60px; }
.segment label:has(input:checked) { border: 2px solid var(--accent); padding: 11px 13px; }
.segment label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.segment label:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { color: var(--muted); font-size: 14px; }
.page { padding-block: 28px 96px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 20px; }
.checkout h2 { font-size: 26px; margin-top: 26px; }
.checkout h2:first-child { margin-top: 0; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout aside { order: -1; } }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.times label { position: relative; display: grid; place-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 600; font-size: 15px; }
.times label:has(input:checked) { border: 2px solid var(--accent); }
.times label:has(input:disabled) { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.times label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.times input { position: absolute; opacity: 0; pointer-events: none; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; }
.steps li { padding-top: 10px; border-top: 6px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.steps li.done { border-color: var(--ink); color: var(--ink); }
.steps li.now { border-color: var(--accent); color: var(--ink); }
.status-big { font: 600 clamp(36px, 6vw, 56px)/1 var(--display); margin-top: 6px; }
.status-big:focus { outline: none; }
.pill { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--paper-2); }
.pill.ok { background: #e7eedf; color: var(--ok); }
.pill.due { background: #fbe8e5; color: var(--bad); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-weight: 600; }
.hours tr.today th, .hours tr.today td { color: var(--accent); font-weight: 700; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; padding-block: 48px; border-top: 1px solid var(--line); }
.info-grid h2 { font-size: 26px; margin-bottom: 10px; }
.foot { border-top: 1px solid var(--line); padding-block: 22px 32px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.foot a { display: inline-flex; min-height: 44px; align-items: center; }
.state { padding: 40px 0; color: var(--muted); }
.state strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }

/* Assistant */
.chat-launch { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 8px; border: 0; border-radius: 26px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.chat-launch .face { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 600 18px/1 var(--display); }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: min(400px, 100vw - 32px); height: min(640px, 100dvh - 32px); display: none; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25); }
.chat.open { display: flex; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { flex: 1; font: 600 22px/1 var(--display); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.msg.error { background: #fbe8e5; color: var(--bad); }
.chat .ticket { padding: 12px; }
.chat .ticket h3 { font-size: 20px; }
.chat-note { padding: 0 14px 8px; font-size: 13px; color: var(--muted); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 48px; height: 48px; resize: none; }
@media (max-width: 560px) { .chat { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; } .chat-launch .label { display: none; } .chat-launch { padding: 0 8px; } }
.toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(440px, 100vw - 32px); }
.toast { padding: 12px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.toast-bad { background: var(--bad); }
.loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

[hidden] { display: none !important; }

/* Modern storefront skin: clean canvas tinted by the restaurant colour, glass cards, pill controls */
:root { --paper: #fbfaf7; --card: rgba(255, 255, 255, 0.82); --line: rgba(28, 24, 20, 0.08); --r: 22px; }
body { background: radial-gradient(900px 500px at 0% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(800px 500px at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), var(--paper); background-attachment: fixed; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }
.top { background: rgba(251, 250, 247, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.btn { border-radius: 999px; transition: transform 0.15s, box-shadow 0.2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-go { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.bag-btn { border-radius: 999px; }
.bag-count { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.cover { border-radius: 0 0 36px 36px; overflow: hidden; }
.cat-nav { background: rgba(251, 250, 247, 0.75); backdrop-filter: blur(16px); }
.cat-nav a { border-radius: 999px; }
.item { border-radius: 22px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 1px 2px rgba(28, 24, 20, 0.04), 0 16px 40px -26px rgba(28, 24, 20, 0.35); backdrop-filter: blur(12px); transition: transform 0.2s, box-shadow 0.2s; }
.item:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.item img, .item .tile { border-radius: 16px; }
.pill, .tag { border-radius: 999px; }
dialog { border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.45); }
dialog::backdrop { backdrop-filter: blur(6px); }
.choice, .segment label, .times label { border-radius: 16px; }
.choice:has(input:checked), .segment label:has(input:checked), .times label:has(input:checked) { box-shadow: 0 0 0 1.5px var(--accent); }
.stepper { border-radius: 999px; }
.ticket { border-radius: 22px 22px 0 0; }
.drawer-panel { backdrop-filter: blur(18px); }
.chat-launch { border-radius: 999px; box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.chat { border-radius: 28px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea { border-radius: 14px; }
.toast { border-radius: 999px; }

[hidden] { display: none !important; }
