:root {
  --bg: #f6f4f1;
  --card: #fff;
  --text: #25211d;
  --muted: #6f665d;
  --brand: #c8501c;
  --brand-dark: #9f3d12;
  --line: #e6e0d9;
  --ok: #1f7a3d;
  --err: #b3261e;
  --on-brand: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); padding-bottom: 5rem; }
h1, h2, h3, p { margin: 0; }

.top { background: var(--brand); color: var(--on-brand); padding: 1.25rem 1rem; text-align: center; }
.top h1 { font-size: 1.5rem; }
.top .notes { margin-top: .4rem; font-size: .9rem; opacity: .95; }
.top .phone { margin-top: .25rem; font-size: .9rem; }
.top .address { margin-top: .25rem; font-size: .9rem; }
.top a { color: inherit; text-decoration: underline; }
.top .hours { margin: .4rem auto 0; font-size: .9rem; max-width: 360px; }
.top .hours summary { cursor: pointer; }
.top .hours ul { list-style: none; padding: 0; margin: .4rem 0 0; text-align: left; }
.top .hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .1rem 0; }
.top .hours li.today { font-weight: 700; }
.availability { text-align: center; padding: .55rem 1rem; font-weight: 600; background: #fdecea; color: var(--err); }
.availability.open { background: #e7f5ec; color: var(--ok); }

.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.cats a { white-space: nowrap; padding: .35rem .8rem; border-radius: 999px; background: var(--bg); color: var(--text); text-decoration: none; font-size: .9rem; }

main { max-width: 760px; margin: 0 auto; padding: 1rem; }
.state { text-align: center; color: var(--muted); padding: 2rem 0; }
.state.err { color: var(--err); }
section.cat { margin-bottom: 1.5rem; scroll-margin-top: 4rem; }
section.cat > h2 { font-size: 1.15rem; margin-bottom: .6rem; }

.product { display: flex; gap: .75rem; align-items: stretch; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-bottom: .6rem; cursor: pointer; font: inherit; color: inherit; }
.product:hover { border-color: var(--brand); }
.product .info { flex: 1; min-width: 0; }
.product .name { font-weight: 600; }
.product .desc { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.product .price { margin-top: .4rem; font-weight: 600; color: var(--brand-dark); }
.product img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }

dialog { width: min(560px, 94vw); max-height: 92vh; border: 0; border-radius: 14px; padding: 0; color: var(--text); background: var(--card); }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.dlg { padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.dlg h2 { font-size: 1.2rem; }
.dlg img.hero { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.dlg .muted { color: var(--muted); font-size: .9rem; }
.group { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.group h3 { font-size: 1rem; }
.group .hint { color: var(--muted); font-size: .8rem; margin-bottom: .4rem; }
.opt { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; }
.opt .label { flex: 1; }
.opt .extra { color: var(--muted); font-size: .85rem; }
.stepper { display: inline-flex; align-items: center; gap: .4rem; }
.stepper button { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; cursor: pointer; }
.row { display: flex; gap: .6rem; }
.row > * { flex: 1; min-width: 0; }

label.f { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea { width: 100%; font: inherit; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
textarea { resize: vertical; min-height: 3rem; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .6rem; }
legend { font-size: .85rem; color: var(--muted); padding: 0 .3rem; }

.btn { font: inherit; border: 0; border-radius: 10px; padding: .75rem 1rem; cursor: pointer; background: var(--brand); color: var(--on-brand); font-weight: 600; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: default; }
.actions { display: flex; gap: .6rem; justify-content: flex-end; }
.actions .btn { flex: 1; }

.cart-fab { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(560px, 92vw); z-index: 9; border: 0; border-radius: 12px; padding: .9rem 1rem; background: var(--brand); color: var(--on-brand); font: inherit; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

.line { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.line .txt { flex: 1; min-width: 0; }
.line .sub { color: var(--muted); font-size: .82rem; }
.totals { display: flex; justify-content: space-between; font-weight: 700; padding-top: .3rem; font-size: 1.1rem; }
.summary { display: flex; flex-direction: column; gap: .3rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.line-total { display: flex; justify-content: space-between; color: var(--muted); }
.btn.secondary:hover { background: var(--line); }
.msg { padding: .6rem .75rem; border-radius: 8px; background: #fdecea; color: var(--err); font-size: .9rem; }
.msg.ok { background: #e7f5ec; color: var(--ok); }
.status { text-align: center; padding: 1rem 0; }
.status .big { font-size: 1.3rem; font-weight: 700; }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
.saved { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; }
.saved .txt { flex: 1; min-width: 0; }
.saved .sub { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.saved-title { font-weight: 600; }
.saved-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.link { background: none; border: 0; padding: .1rem 0; font: inherit; font-size: .9rem; color: var(--brand); cursor: pointer; text-decoration: underline; white-space: nowrap; }
[hidden] { display: none !important; }
