:root {
  --ink: #191512;
  --muted: #756b63;
  --paper: #f4efe8;
  --card: #fffdf9;
  --wine: #7f2419;
  --wine-dark: #4e150f;
  --gold: #c89855;
  --line: #e8ded2;
  --shadow: 0 15px 40px rgba(48, 29, 19, .1);
}

* { box-sizing: border-box; }
html { background: #d7d0c8; }
body { margin: 0; color: var(--ink); background: #d7d0c8; font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 70px rgba(0,0,0,.15); overflow-x: clip; padding-bottom: 58px; }
.hero { position: relative; min-height: 459px; padding: max(22px, env(safe-area-inset-top)) 20px 30px; display: flex; flex-direction: column; color: #fff; overflow: hidden; background-color: #14110e; background-position: center; background-size: cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--paper)); }
.hero-glow { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; top: 90px; right: -80px; box-shadow: 0 0 0 35px rgba(255,255,255,.02), 0 0 0 70px rgba(255,255,255,.015); }
.topbar, .hero-copy, .hero-actions { position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; letter-spacing: .12em; }
.brand-mark { width: 39px; height: 39px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: "Playfair Display", serif; font-size: 25px; }
.brand-mark.has-logo { overflow: hidden; background: rgba(255,255,255,.08); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.topbar .brand-mark { width: 50px; height: 50px; }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-size: 13px; }
.brand small { margin-top: 5px; font-size: 7px; opacity: .72; }
.icon-button, .round-action, .close-button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: grid; place-items: center; color: inherit; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.hero-copy { margin-top: auto; max-width: 420px; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.hero h1 { margin: 11px 0 12px; font: 600 38px/1.04 "Playfair Display", serif; letter-spacing: -.03em; }
.hero h1 em { display: inline-block; color: #e0b77c; font-size: .52em; font-weight: 600; letter-spacing: 0; }
.hero-copy p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; margin-bottom: 38px; }
.primary-action { flex: 1; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 16px; color: #fff; background: var(--wine); font-size: 12px; font-weight: 700; }
.round-action { flex: 0 0 50px; height: 50px; }

.menu-tools { position: relative; z-index: 2; padding: 0 16px 14px; margin-top: -28px; }
.group-switch { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,249,.95); box-shadow: var(--shadow); }
.group-switch button { min-height: 43px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.group-switch button.active { color: #fff; background: var(--ink); }
.search-field { width: 100%; height: 50px; margin-top: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 10px; color: var(--muted); background: var(--card); text-align: left; }
.search-field span { flex: 1; font-size: 12px; }
.search-field kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: #9e9389; font: 9px "DM Sans"; }

.category-nav { position: sticky; z-index: 5; top: 0; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y; padding: 10px 16px 12px; background: rgba(244,239,232,.93); backdrop-filter: blur(14px); scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-chip { flex: 0 0 auto; min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--card); font-size: 11px; font-weight: 600; }
.category-chip span { width: 6px; height: 6px; border-radius: 50%; color: var(--wine); background: var(--wine); font-size: 0; }
.category-chip.active { color: #fff; border-color: var(--wine); background: var(--wine); }
.category-chip.active span { color: #fff; background: #fff; }

.menu-content { padding: 2px 16px 20px; }
.menu-section { scroll-margin-top: 74px; padding-top: 23px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.section-heading h2 { margin: 4px 0 0; font: 700 26px/1.1 "Playfair Display", serif; letter-spacing: -.02em; }
.section-heading small { color: var(--muted); font-size: 10px; }
.section-actions { display: flex; align-items: center; gap: 7px; }
.section-count { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--wine); background: #eadcd2; font-size: 10px; font-weight: 700; }
.expand-category { padding: 7px 10px; border: 1px solid var(--wine); border-radius: 999px; color: var(--wine); background: transparent; font-size: 9px; font-weight: 700; }
.category-image { width: 100%; height: 145px; margin: -3px 0 13px; border-radius: 17px; background-position: center; background-size: cover; box-shadow: var(--shadow); }
.items-list { display: grid; gap: 10px; }
.menu-item { position: relative; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; color: inherit; background: var(--card); text-align: left; box-shadow: 0 5px 18px rgba(61,37,24,.035); }
.menu-item:active { transform: scale(.985); }
.static-item { cursor: default; }
.static-item:active { transform: none; }
.menu-item .tag { display: inline-flex; width: fit-content; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; color: var(--wine); background: #f3e6dc; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.menu-item h3 { margin: 0; font: 700 17px/1.15 "Playfair Display", serif; }
.menu-item p { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-price { align-self: start; color: var(--wine); font-size: 12px; font-weight: 700; white-space: nowrap; }
.item-price small { display: block; color: var(--muted); font-size: 8px; font-weight: 500; text-align: right; }
.multi-price { display: grid; gap: 7px; }
.multi-price span { display: grid; justify-items: end; }
.multi-price small { margin-bottom: 1px; text-transform: uppercase; letter-spacing: .06em; }
.subcategory-list { display: grid; gap: 25px; }
.subcategory { scroll-margin-top: 75px; }
.subcategory > h3 { margin: 0 0 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--wine); font: 700 17px "Playfair Display", serif; }
.subcategory-image { width: 100%; height: 135px; margin: 0 0 10px; border-radius: 16px; background-position: center; background-size: cover; box-shadow: var(--shadow); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.featured-grid .menu-item { min-height: 190px; display: flex; flex-direction: column; justify-content: end; }
.highlight-card { color: #fff; border: 0; overflow: hidden; background-position: center; background-size: cover; box-shadow: 0 12px 26px rgba(38,22,14,.18); }
.highlight-card h3 { font-size: 18px; }
.highlight-card p { color: rgba(255,255,255,.7); }
.highlight-card .tag { color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); }

.empty-state { padding: 65px 30px 90px; text-align: center; }
.empty-state span { color: var(--wine); font-size: 45px; }
.empty-state h2 { margin: 12px 0 5px; font: 700 23px "Playfair Display", serif; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state button { margin-top: 10px; padding: 11px 16px; border: 0; border-radius: 12px; color: #fff; background: var(--wine); font-weight: 700; font-size: 11px; }
.site-footer { margin: 38px 16px 10px; padding: 30px 24px 22px; border-radius: 22px; color: #fff; background: var(--ink); text-align: center; }
.site-footer .brand-mark { color: #deb477; }
.site-footer .footer-rustrial-mark { width: 58px; height: 58px; margin: auto; font-size: 36px; }
.site-footer h2 { margin: 16px 0 7px; font: 700 23px "Playfair Display", serif; }
.site-footer p { margin: 0 auto 18px; max-width: 300px; color: rgba(255,255,255,.55); font-size: 11px; line-height: 1.5; }
.site-footer a { color: #deb477; font-size: 11px; text-decoration: none; }
.developer-signature { width: fit-content; margin: 25px auto 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); display: grid; justify-items: center; gap: 6px; }
.developer-signature span { color: rgba(255,255,255,.5); font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.developer-signature img { width: 27px; height: 27px; padding: 2px; border-radius: 6px; object-fit: contain; background: #fff; }

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; width: min(100%, 520px); min-height: 50px; margin: auto; padding: 3px 12px max(3px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,253,249,.94); backdrop-filter: blur(16px); }
.bottom-nav button { border: 0; display: grid; place-items: center; align-content: center; gap: 1px; color: #a09489; background: transparent; font-size: 7px; font-weight: 700; }
.bottom-nav svg { width: 17px; }
.bottom-nav button.active, .bottom-nav button:active { color: var(--wine); }

.sheet { width: min(calc(100% - 18px), 500px); margin: auto auto 8px; padding: 22px; border: 0; border-radius: 24px; color: var(--ink); background: var(--card); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.sheet::backdrop { background: rgba(18,13,10,.58); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet h2 { margin: 4px 0 0; font: 700 25px "Playfair Display", serif; }
.close-button { color: var(--ink); border-color: var(--line); background: #f4efe9; font-size: 22px; }
.dialog-search { height: 54px; margin-top: 20px; padding: 0 14px; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 10px; }
.dialog-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.dialog-search button { width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--wine); }
.dialog-search button svg { width: 17px; }
.menu-item.search-hit { animation: search-hit 1.8s ease; }
@keyframes search-hit { 0%, 100% { box-shadow: 0 5px 18px rgba(61,37,24,.035); } 35% { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,152,85,.25), 0 12px 30px rgba(61,37,24,.14); } }
.search-tip { margin: 12px 2px 0; color: var(--muted); font-size: 10px; }
.item-sheet { width: min(calc(100% - 18px), 500px); max-height: 86vh; margin-bottom: 8px; padding: 0; overflow: auto; }
.item-detail-cover { min-height: min(43vh, 360px); padding: 16px; display: flex; justify-content: flex-end; color: #fff; background-position: center; background-size: cover; }
.item-detail-cover .close-button { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(0,0,0,.2); }
.item-detail-close { display: flex; justify-content: flex-end; padding: 14px 14px 0; }
.item-detail-body { padding: 18px 20px 22px; }
.item-title-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 14px; margin-top: 5px; }
.item-detail-body h2 { margin: 0; font-size: 25px; line-height: 1.05; }
.item-detail-body p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.item-title-prices { display: grid; gap: 5px; color: var(--wine); text-align: right; white-space: nowrap; }
.item-title-prices span { display: grid; }
.item-title-prices small { color: var(--muted); font-size: 7px; font-weight: 600; text-transform: uppercase; }
.item-title-prices strong { font-size: 13px; }
.price-options { display: grid; gap: 8px; }
.price-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; background: #faf6f1; font-size: 11px; }
.price-row strong { color: var(--wine); font-size: 14px; }
.notice { margin-top: 16px; padding: 12px; border-radius: 12px; color: #66594e; background: #eee5dc; font-size: 10px; text-align: center; }
.info-sheet { text-align: center; }
.info-sheet .brand-mark { color: var(--wine); }
.info-sheet p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.instagram-link { color: var(--wine); font-weight: 700; text-decoration: none; }

@media (max-width: 370px) {
  .hero h1 { font-size: 34px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .menu-item { min-height: 170px; }
}
