: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: 42% 0 0; background: linear-gradient(to top, rgba(8,6,5,.82) 0%, rgba(8,6,5,.42) 52%, rgba(8,6,5,0) 100%); pointer-events: none; }
.hero-glow { display: none; }
.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; }
.promo-price { display: grid; gap: 2px; justify-items: end; }
.promo-price small { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.promo-price del { color: var(--muted); font-size: 10px; font-weight: 600; }
.promo-price strong { color: #d84b24; font-size: 14px; line-height: 1; }
.catalog-card .promo-price del { color: rgba(255,255,255,.72); }
.catalog-card .promo-price strong { color: #fff; }
.item-title-prices .promo-price { justify-items: end; }
.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{position:relative;display:block;overflow:hidden;width:100%;height:clamp(360px,90vw,560px);border-radius:28px;background:#18100c;touch-action:pan-y;box-shadow:0 20px 50px rgba(40,22,12,.18)}
.featured-grid>.highlight-card{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:clamp(24px,6vw,42px);border-radius:28px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;border:0;overflow:hidden;background-position:center;background-size:cover;opacity:0;transform:translateX(9%);pointer-events:none;transition:opacity .55s ease,transform .55s ease;box-shadow:none;text-align:left}
.featured-grid>.highlight-card::after{content:"";position:absolute;z-index:0;inset:45% 0 0;border-radius:0 0 28px 28px;background:linear-gradient(180deg,rgba(20,14,10,0),rgba(20,14,10,.9))}
.featured-grid>.highlight-card>*{position:relative;z-index:1}.featured-grid>.highlight-card.featured-active{opacity:1;transform:translateX(0);pointer-events:auto;z-index:2}.featured-grid>.highlight-card.featured-exit{transform:translateX(-9%)}
.featured-grid,.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.featured-grid { display:block; }
.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); }
.catalog-card { min-width: 0; min-height: 190px; padding: 16px; border: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 7px; overflow: hidden; color: #fff; background-color: #211914; background-position: center; background-size: cover; box-shadow: 0 12px 28px rgba(35,22,15,.15); }
.catalog-card-no-image { background: radial-gradient(circle at 82% 16%,rgba(255,255,255,.1),transparent 31%),linear-gradient(155deg,#3b2c23,#17120f); }
.catalog-card > div { width: 100%; }
.catalog-card h3 { color: #fff; font-size: 18px; line-height: 1.08; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0,0,0,.75); }
.catalog-card .item-price { width: 100%; align-self: flex-start; color: #fff; font-size: 11px; line-height: 1.3; text-align: left; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.catalog-card .item-price small, .catalog-card .multi-price small { color: rgba(255,255,255,.78); text-align: left; }
.catalog-card .multi-price { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.catalog-card .multi-price span { justify-items: start; }

.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-pontta-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; object-fit: contain; }

.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,.68); backdrop-filter: blur(6px); }
.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, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { display:block; height:calc((100vw - 32px) * 1.05);max-height:520px;border-radius:22px }.featured-grid>.highlight-card{border-radius:22px;padding:26px}.featured-grid>.highlight-card::after{border-radius:0 0 22px 22px}
  .catalog-card { min-height: 172px; padding: 13px; }
  .catalog-card h3 { font-size: 16px; }
}


/* Proporções do destaque alinhadas ao cardápio Rustrial. */
.featured-grid { height: calc((100vw - 32px) * 1.05); max-height: 520px; }
@media (min-width: 700px) { .featured-grid { height: 512px; } }


/* Ajuste de leitura do banner e preço nos destaques. */
.hero h1 { margin: 7px 0 6px; }
.hero h1 em { display: block; margin-top: 2px; }
.hero-copy p { line-height: 1.28; }
.hero-actions { margin-top: 12px; margin-bottom: 8px; }
.featured-grid > .highlight-card .item-price { display: block; width: fit-content; margin-top: 5px; color: #fff; font-size: 14px; line-height: 1.2; text-align: left; text-shadow: 0 2px 10px rgba(0,0,0,.75); }
.featured-grid > .highlight-card .promo-price { display: flex; align-items: baseline; gap: 8px; justify-content: flex-start; }
.featured-grid > .highlight-card .promo-price del { color: rgba(255,255,255,.68); }
.featured-grid > .highlight-card .promo-price strong { color: #fff; }


/* Contraste do banner e rodapé compacto. */
.hero::after { inset: 50% 0 0; background: linear-gradient(to top, rgba(8,6,5,.92) 0%, rgba(8,6,5,.76) 28%, rgba(8,6,5,.36) 58%, rgba(8,6,5,0) 100%); }
.site-footer { margin-top: 30px; padding: 24px 24px 16px; }
.site-footer h2 { margin: 12px 0 4px; }
.site-footer p { margin: 0 auto 9px; }
.developer-signature { margin: 14px auto 0; padding-top: 10px; gap: 4px; }


/* Banner sem botão principal: textos na faixa escura, ao lado da informação. */
.hero-copy { margin-bottom: 0; padding-right: 62px; }
.hero-copy .eyebrow { color: #fff; letter-spacing: .14em; }
.hero h1 { margin: 4px 0 4px; }
.hero-actions { position: absolute; right: 20px; bottom: 30px; justify-content: flex-end; margin: 0; }


/* Respiro final do banner e aproximação da primeira seção. */
.hero-copy { transform: translateY(-10px); }
.hero-actions { bottom: 40px; }
.category-nav { padding-bottom: 6px; }
.menu-content > .menu-section:first-child { padding-top: 12px; }
