:root {
    --bg: #f7f1ea;
    --paper: #fffdf9;
    --ink: #2c1810;
    --muted: #7a6458;
    --line: #ead9cc;
    --accent: #c45c26;
    --accent-dark: #9a3f16;
    --blue: #1f6feb;
    --shadow: 0 10px 30px rgba(44, 24, 16, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Noto Sans SC", "PingFang SC", sans-serif;
    line-height: 1.5;
}
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(247, 241, 234, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner, .hero-inner { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    display: block;
    object-fit: contain;
    padding: 2px;
    flex-shrink: 0;
}
.brand strong { display: block; font-family: "Playfair Display", serif; font-size: 1.15rem; }
.brand small { color: var(--muted); }
.header-nav { display: flex; gap: 8px; }
.ghost-btn, .cart-btn, .icon-btn, .primary-btn, .option-chip {
    border: 0; cursor: pointer; font: inherit;
}
.ghost-btn, .cart-btn {
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px;
}
.cart-btn em {
    min-width: 20px; height: 20px; border-radius: 999px;
    background: var(--accent); color: #fff; font-style: normal;
    font-size: 12px; display: grid; place-items: center; padding: 0 6px;
}
.hero {
    padding: 48px 0 28px;
    background: radial-gradient(circle at 10% 20%, #ffe8d6, transparent 40%),
                radial-gradient(circle at 90% 0%, #fde68a33, transparent 35%);
}
.hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
.hero h1 { font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; max-width: 16ch; }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-size: .8rem; margin: 0; }
.primary-btn {
    background: var(--accent); color: #fff; border-radius: 999px;
    padding: 12px 20px; font-weight: 700; text-decoration: none; display: inline-flex; justify-content: center;
}
.primary-btn.full { width: 100%; }
.primary-btn:disabled { opacity: .55; }
.menu-section { padding: 12px 0 64px; }
.category-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 16px;
    -webkit-overflow-scrolling: touch;
}
.category-tabs button {
    flex: 0 0 auto; border: 1px solid var(--line); background: #fff;
    border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit;
}
.category-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.menu-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.menu-card .thumb {
    height: 160px; background: #efe4d8; display: grid; place-items: center; color: #c7b6a8; font-size: 2rem;
}
.menu-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.menu-card h3 { margin: 0; font-size: 1.05rem; }
.muted, .desc { color: var(--muted); font-size: .9rem; margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; color: var(--accent-dark); }
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); }
.cart-drawer {
    position: fixed; inset: 0; background: rgba(44,24,16,.35); z-index: 40;
    display: none; justify-content: flex-end;
}
.cart-drawer.open { display: flex; }
.cart-panel {
    width: min(420px, 100%); background: #fff; height: 100%;
    display: flex; flex-direction: column;
}
.cart-head, .modal-head, .modal-foot, .cart-foot { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-foot, .modal-foot { border-bottom: 0; border-top: 1px solid var(--line); gap: 12px; }
.cart-items, .modal-body { flex: 1; overflow: auto; padding: 12px 16px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; gap: 8px; align-items: center; }
.qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; background: #f3ece6; }
.modal { position: fixed; inset: 0; background: rgba(44,24,16,.4); display: none; place-items: center; z-index: 50; padding: 16px; }
.modal.open { display: grid; }
.modal-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 18px; }
.option-group { margin-bottom: 16px; }
.option-group h4 { margin: 0 0 8px; }
.option-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.option-chip {
    border: 2px solid var(--line); border-radius: 12px; padding: 10px; text-align: left; background: #fff;
}
.option-chip.selected { border-color: var(--accent); background: #fff7f1; }
.checkout-wrap { display: grid; gap: 18px; padding: 24px 0 64px; }
@media (min-width: 860px) { .checkout-wrap { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
label { display: block; font-size: .9rem; margin: 10px 0 6px; }
input, textarea, select {
    width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font: inherit; background: #fff;
}
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-options label { margin: 0; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.success-box { max-width: 480px; margin: 48px auto; text-align: center; }
@media (max-width: 640px) {
    .hero { padding-top: 28px; }
    .option-chips { grid-template-columns: 1fr; }
    .cart-btn span { display: none; }
}
