:root {
  --ink: #1d1b19;
  --muted: #6b655e;
  --line: #e6e0d8;
  --paper: #faf7f2;
  --card: #ffffff;
  --accent: #b5461f;
  --accent-ink: #ffffff;
  --good: #2f7a47;
  --warn: #a5620c;
  --bad: #b42318;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.loading, .notice { padding: 48px 20px; text-align: center; color: var(--muted); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 120px; }
header.top { padding: 28px 0 12px; }
header.top h1 { margin: 0 0 6px; font-size: 1.8rem; letter-spacing: -0.01em; }
header.top .meta { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
header.top a { color: inherit; }

.state { margin: 12px 0 8px; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.state.open { background: #e8f3ec; color: var(--good); }
.state.closed, .state.off { background: #f3ece4; color: var(--muted); }
.state.paused { background: #fdf1df; color: var(--warn); }
.state small { display: block; font-weight: 400; margin-top: 2px; }

nav.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 0; background: var(--paper); scrollbar-width: none; }
nav.cats::-webkit-scrollbar { display: none; }
nav.cats a { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; color: var(--ink); font-size: 0.92rem; }

section.cat h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.item { display: flex; gap: 14px; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.item:disabled { opacity: 0.55; cursor: default; }
.item .text { flex: 1; min-width: 0; }
.item .name { font-weight: 650; }
.item .desc { color: var(--muted); font-size: 0.9rem; margin-top: 4px; line-height: 1.4; }
.item .price { margin-top: 8px; font-weight: 600; }
.item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem;
  background: #eee6dc; color: var(--muted); font-weight: 600; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--paper) 30%); }
.cartbar button { display: flex; justify-content: space-between; width: 100%; max-width: 728px; margin: 0 auto;
  padding: 15px 18px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: 1.02rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }

.sheet-back { position: fixed; inset: 0; z-index: 20; background: rgba(20, 16, 12, 0.45);
  display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--card);
  border-radius: 18px 18px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 18px; } }
.sheet h2 { margin: 0 0 6px; font-size: 1.3rem; }
.sheet .desc { color: var(--muted); margin: 0 0 12px; }
.sheet img.hero { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 10px 12px; }
legend { font-weight: 650; padding: 0 4px; }
legend small { font-weight: 400; color: var(--muted); }
label.choice { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
label.choice span.extra { margin-left: auto; color: var(--muted); }
label.choice.off { opacity: 0.5; }
select, input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
textarea { min-height: 70px; resize: vertical; }
.field { margin: 10px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.qty { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.btn { flex: 1; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.btn.main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.error { color: var(--bad); margin: 8px 0; font-weight: 600; }
.small { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

.line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line .what { flex: 1; }
.line .what small { display: block; color: var(--muted); }
.line button.remove { border: 0; background: none; color: var(--bad); }
.totals { margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }

.steps { list-style: none; padding: 0; margin: 18px 0; }
.steps li { padding: 10px 0 10px 34px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 13px; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--good); border-color: var(--good); }
.steps li.now { color: var(--ink); font-weight: 650; }
.steps li.now::before { border-color: var(--accent); }
.big { font-size: 1.25rem; font-weight: 700; margin: 16px 0 4px; }
footer { margin: 40px 0 10px; text-align: center; }
footer a { color: var(--muted); }
