:root {
  --ink: #17221f;
  --paper: #f4f1e9;
  --panel: #fffdf8;
  --line: #b8b6a9;
  --accent: #d95f35;
  --accent-dark: #a63d22;
  --sage: #cdd8c9;
  --muted: #68716a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Arial Narrow", "Noto Sans TC", sans-serif; }
button, select { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1440px; margin: 0 auto; min-height: 100vh; padding: 0 30px; }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: white; font-size: 28px; font-weight: 900; }
.eyebrow { margin: 0 0 7px; letter-spacing: .16em; font-size: 11px; font-weight: 800; color: var(--accent-dark); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 26px; letter-spacing: .08em; }
h2 { margin-bottom: 8px; font-size: 32px; letter-spacing: .02em; }
.store-meta { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.store-meta span { background: var(--sage); padding: 6px 10px; font-weight: 800; }
.store-meta small, .muted, .tiny-note { color: var(--muted); }
.hero-panel { display: flex; justify-content: space-between; align-items: end; padding: 56px 0 42px; border-bottom: 1px solid var(--line); }
.hero-panel h2 { font-size: clamp(40px, 7vw, 82px); line-height: .94; max-width: 760px; margin-bottom: 18px; }
.hero-panel .muted { font-size: 17px; margin-bottom: 0; }
.hero-stamp { width: 116px; height: 116px; border: 2px solid var(--accent); color: var(--accent-dark); display: grid; place-items: center; text-align: center; line-height: 1.1; font-size: 13px; transform: rotate(5deg); }
.hero-stamp strong { font-size: 36px; line-height: .8; }
.category-nav { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.category-button { border: 1px solid var(--line); background: transparent; padding: 10px 18px; white-space: nowrap; }
.category-button.is-active, .category-button:hover { background: var(--ink); color: white; border-color: var(--ink); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 38px 0 64px; }
.section-heading, .order-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.section-heading h2, .order-heading h2 { margin-bottom: 0; font-size: 26px; }
.item-count, .order-number { font-size: 13px; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.menu-card { display: grid; grid-template-columns: 116px 1fr; min-height: 162px; border: 1px solid var(--line); background: var(--panel); transition: transform .15s ease, border-color .15s ease; }
.menu-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.menu-visual { background: var(--sage); display: grid; place-items: center; color: var(--ink); font-size: 44px; font-weight: 900; }
.menu-card:nth-child(3n) .menu-visual { background: #e6cfb8; }
.menu-card:nth-child(3n+1) .menu-visual { background: #c8d8dc; }
.menu-info { display: flex; flex-direction: column; padding: 16px; }
.menu-info h3 { margin: 0 0 7px; font-size: 19px; }
.menu-info p { flex: 1; margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.menu-bottom { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 900; }
.add-button { border: 1px solid var(--ink); background: transparent; padding: 6px 10px; font-weight: 800; }
.add-button:hover { background: var(--accent); color: white; border-color: var(--accent); }
.order-panel { align-self: start; position: sticky; top: 18px; border: 2px solid var(--ink); background: var(--panel); padding: 22px; }
.order-items { min-height: 180px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.empty-order { display: grid; place-items: center; min-height: 150px; text-align: center; color: var(--muted); line-height: 1.7; }
.order-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ddd9ce; }
.order-line:last-child { border-bottom: 0; }
.order-line strong { display: block; font-size: 14px; }
.order-line small { color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 7px; }
.qty-controls button { width: 24px; height: 24px; border: 1px solid var(--line); background: transparent; }
.order-total { display: flex; justify-content: space-between; padding: 20px 0; font-size: 18px; }
.primary-button { width: 100%; border: 0; background: var(--accent); color: white; padding: 14px 18px; font-weight: 900; }
.primary-button:hover:not(:disabled) { background: var(--accent-dark); }
.primary-button:disabled { cursor: not-allowed; background: #c9c5ba; }
.tiny-note { margin: 12px 0 0; text-align: center; font-size: 11px; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 18px 0 30px; color: var(--muted); font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(23, 34, 31, .55); }
.product-modal { position: relative; width: min(560px, 100%); border: 2px solid var(--ink); background: var(--panel); padding: 32px; }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 28px; }
.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.option-row label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.option-row select { border: 1px solid var(--line); background: var(--panel); padding: 11px; color: var(--ink); }
.modal-footer { display: flex; align-items: center; gap: 20px; }
.modal-footer strong { flex: 1; font-size: 22px; }
.modal-footer .primary-button { width: auto; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .order-panel { position: static; } }
@media (max-width: 600px) { .app-shell { padding: 0 16px; } .topbar { min-height: 78px; } .store-meta small { display: none; } .hero-panel { padding: 36px 0 30px; } .hero-stamp { width: 84px; height: 84px; font-size: 10px; } .hero-stamp strong { font-size: 26px; } .menu-grid { grid-template-columns: 1fr; } .menu-card { grid-template-columns: 90px 1fr; } .footer { flex-direction: column; gap: 7px; } }
