:root {
  color-scheme: light;
  --accent: #b63b23;
  --ink: #241c18;
  --muted: #6e625b;
  --paper: #faf7f1;
  --line: #e9dfd2;
  --white: #fffdf9;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.top .brand { justify-self: start; }
.brand { font-size: 1.65rem; font-weight: 900; letter-spacing: -.075em; white-space: nowrap; }
.brand span, .accent { color: var(--accent); }
.brand small { font-size: .46em; font-weight: 650; letter-spacing: 0; color: var(--muted); margin-inline-start: .2em; }
.top nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: .9rem; font-weight: 650; }
.top nav > :is(a, button) { display: grid; place-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; white-space: nowrap; }
.top nav > :is(a, button):hover { background: var(--white); color: var(--accent); }
.store-strip button, .cart-controls > button { border: 0; padding: 0; background: transparent; }
.store-strip button:hover { color: var(--accent); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 43px; padding: .55rem 1rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.outline { background: var(--white); border-color: var(--line); }
.outline:hover, .category:hover { border-color: var(--accent); }
#count { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 4px; border-radius: 50px; background: var(--accent); color: white; }
.top .top-cart { justify-self: end; min-height: 44px; background: var(--accent); color: #fff; }
.top-cart:hover { box-shadow: 0 2px 8px #241c1833; }
.top-cart #count { background: #fff; color: var(--accent); }
.hero { margin-top: 26px; position: relative; isolation: isolate; min-height: 356px; display: grid; align-items: center; overflow: hidden; border-radius: 22px; background: #2b1c15; color: #fffaf1; }
.hero img { position: absolute; inset: 0 0 0 auto; width: 72%; height: 100%; object-fit: cover; object-position: 52% 55%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #261812 18%, #261812ed 33%, #26181255 60%, transparent 100%); }
.hero-copy { padding: 40px 5%; max-width: 545px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: .69rem; letter-spacing: .19em; font-weight: 800; }
.hero .eyebrow { color: #ffd6a2; }
.eyebrow span, .store-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ffb76a; flex: none; }
h1 { margin-block: 14px 12px; font-size: clamp(2.65rem, 5.4vw, 5rem); line-height: .98; letter-spacing: -.075em; }
#hero-description { max-width: 340px; color: #f5e3d0; }
.hero-link { margin-top: 23px; background: #ffcc91; color: #291b14; }
.hero-link:hover { background: #ffe0b9; }
.store-strip { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.store-strip > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.store-dot { background: var(--accent); }
#store-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.muted, .store-strip button { color: var(--muted); }
.store-strip button { font-weight: 650; white-space: nowrap; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; padding-top: 32px; }
.menu-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 17px; }
.menu-head h2 { font-size: clamp(2.15rem, 4vw, 3rem); letter-spacing: -.06em; line-height: 1.05; margin-top: 5px; }
.search { display: flex; align-items: center; gap: 9px; min-width: 0; width: min(260px, 50%); padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.search span { font-size: 1.35rem; line-height: 1; color: var(--muted); }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; padding-block: 4px; color: var(--ink); font-size: .88rem; }
#categories { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 2px 17px; border-bottom: 1px solid var(--line); }
.category { background: var(--white); border-color: var(--line); min-height: 36px; padding: .35rem .8rem; }
.category[aria-pressed="true"], .primary { background: var(--accent); color: white; }
.primary:hover, .whatsapp:hover { filter: brightness(.91); }
.menu-section { padding-block: 19px 8px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.section-head h3 { font-size: 1.3rem; letter-spacing: -.035em; }
.menu-section[data-current] .section-head h3 { color: var(--accent); }
.menu-section[data-current] .section-head { border-inline-start: 4px solid var(--accent); padding-inline-start: 10px; }
.section-head span, .mini-label { color: var(--muted); font-size: .75rem; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 8px; min-height: 144px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: border-color .18s, box-shadow .18s; }
.product:hover { border-color: var(--accent); box-shadow: 0 5px 20px #3d200c0d; }
.product-copy { padding: 4px 4px 3px; display: flex; align-items: start; flex-direction: column; }
.product h3 { font-size: 1rem; line-height: 1.2; }
.product p { color: var(--muted); font-size: .81rem; line-height: 1.37; margin-block: 6px 10px; }
.badge { padding: 2px 6px; border-radius: 4px; background: #f9e9db; color: #87311f; font-size: .59rem; font-weight: 850; letter-spacing: .08em; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: auto; color: var(--accent); font-size: .92rem; }
.price del { color: var(--muted); font-size: .73rem; }
.product-photo { position: relative; border-radius: 9px; overflow: hidden; background: #eee2d3; }
.product-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.plus { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 29px; height: 29px; background: var(--white); border-radius: 50%; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.basket { position: sticky; top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 1px; }
.basket-head, .line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.basket-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.basket-head h2 { font-size: 1.2rem; letter-spacing: -.035em; }
.mini-label { border-radius: 999px; background: var(--paper); padding: 2px 7px; white-space: nowrap; }
.basket-empty, .empty { text-align: center; padding: 20px 8px; }
.basket-empty p { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: #f9e9db; color: var(--accent); font-size: 1.35rem; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.cart-list p { font-size: .82rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.cart-controls { margin-top: 8px; }
.cart-controls > button { color: var(--accent); font-size: .79rem; }
.stepper { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; white-space: nowrap; }
.stepper button, .icon { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; }
.stepper button:hover:not(:disabled), .icon:hover { background: var(--paper); }
.subtotal { padding-block: 12px; }
.subtotal .line + .line { margin-top: 5px; }
.full { width: 100%; }
.footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 30px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer .brand { color: var(--ink); font-size: 1.2rem; }
.footer { flex-wrap: wrap; }
.footer .whatsapp { white-space: normal; text-align: center; }
.mobile-cart { display: none; }
dialog { width: min(620px, calc(100% - 24px)); max-height: min(90dvh, 850px); padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--white); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #21150f99; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 17px; }
.dialog-head h2 { font-size: 1.25rem; letter-spacing: -.03em; }
.icon { font-size: 1.5rem; line-height: 1; }
#panel-body { overflow: auto; padding: 15px 17px; overscroll-behavior: contain; }
#panel-body > p, #panel-body form > p { margin-block: 7px; }
#panel-body .product { grid-template-columns: minmax(0, 1fr) 80px; }
.detail-photo { width: 100%; height: 175px; display: block; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
fieldset { margin: 13px 0 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 0; }
legend { font-weight: 750; padding-inline: 4px; }
fieldset > p { color: var(--muted); font-size: .8rem; }
.option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 37px; cursor: pointer; font-size: .92rem; }
.option input { accent-color: var(--accent); width: 16px; height: 16px; }
.option strong { color: var(--accent); font-size: .8rem; }
.field { display: grid; gap: 5px; margin-block: 10px; font-size: .91rem; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 8px 10px; }
.field textarea { min-height: 62px; resize: vertical; }
.dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); position: sticky; bottom: -15px; padding-block: 9px; border-top: 1px solid var(--line); }
.summary { margin: 0 0 12px; padding: 12px; background: var(--paper); border-radius: 9px; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { padding: 10px; background: #f9e9db; border-radius: 8px; }
.whatsapp { background: #147448; color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1020px) {
  .layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 16px; }
  .product { grid-template-columns: minmax(0, 1fr) 85px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 36px); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .basket { display: none; }
  .mobile-cart { display: flex; position: fixed; z-index: 2; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); box-shadow: 0 5px 24px #32150e4a; }
  body:has(.mobile-cart:not([hidden])) .footer { margin-bottom: 60px; }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 26px); }
  .top-inner { grid-template-columns: 1fr auto; gap: 8px; padding-block: 9px; }
  .top nav { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top nav > :is(a, button) { padding-inline: 2px; }
  .hero { min-height: 286px; margin-top: 14px; border-radius: 14px; }
  .hero img { width: 100%; }
  .hero::after { background: linear-gradient(90deg, #261812f5, #261812a6 64%, #26181232); }
  .hero-copy { padding: 22px 16px; }
  #hero-description { max-width: 245px; font-size: .91rem; }
  .store-strip { font-size: .76rem; }
  .layout { padding-top: 22px; }
  .menu-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .search { width: 100%; }
  #categories { flex-wrap: nowrap; overflow: auto; }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .product, #panel-body .product { grid-template-columns: minmax(0, 1fr) 100px; min-height: 115px; }
}
.layout > section { min-width: 0; }
#categories { position: sticky; top: 0; z-index: 2; background: #faf7f1; padding-block: 10px; scrollbar-width: none; }
#categories::-webkit-scrollbar { display: none; }
#count { background: #af2929; color: white; min-width: 22px; padding-inline: 5px; text-align: center; border-radius: 99px; }
#store-status { font-size: .82rem; font-weight: 700; color: #28734e; }
#store-status.closed, .group-error { color: #a42323; }
fieldset.invalid { border-color: #a42323; background: #fff4f4; }
.group-error { font-weight: 700; }
.pill[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.product:disabled { opacity: .72; cursor: not-allowed; }
.cart-extra { display: grid; gap: 8px; margin-block: 14px; }
.cart-extra .pill { justify-content: center; }
.coupon-form, .coupon-applied {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf7f1;
}
.coupon-form, .coupon-applied, .cep-row, .street-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.coupon-label { display: grid; gap: 4px; font-weight: 700; font-size: .82rem; }
.coupon-label input { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.coupon-form .pill { padding-inline: 10px; min-height: 36px; }
.coupon-form p { grid-column: 1 / -1; font-size: .8rem; }
.coupon-applied { align-items: center; color: #22583b; border-color: #bfd8c5; background: #edf7ef; }
.coupon-applied div { display: grid; gap: 2px; min-width: 0; }
.coupon-caption, .coupon-saving, .coupon-applied button { font-size: .8rem; }
.coupon-code { overflow-wrap: anywhere; }
.coupon-applied button { padding: 6px 4px; color: inherit; border: 0; background: transparent; text-decoration: underline; }
.combo-component { padding: 12px; margin-block: 14px; border: 1px solid var(--line); border-radius: 12px; }
.combo-component h3 { font-size: 1rem; }
.combo-component fieldset { margin-bottom: 0; }
.street-row { grid-template-columns: minmax(0, 1fr) minmax(70px, 26%); }
.cep-row .field, .street-row .field { min-width: 0; }
.cep-row .pill { margin-bottom: 1px; }
#cep-status:not(:empty) { margin-block: 4px 10px; font-size: .82rem; }
.pix-receipt { color: #22583b; font-size: .82rem; font-weight: 650; }
@media (prefers-reduced-motion: no-preference) {
  .pill, .product, .stepper button, .icon { transition: transform .16s ease, background-color .2s ease, box-shadow .2s ease; }
  .pill:not([aria-disabled="true"]):active, .product:enabled:active, .stepper button:active, .icon:active { transform: scale(.97); }
  .product:enabled:hover .plus { transform: scale(1.15); }
  .plus { transition: transform .2s ease; }
  dialog[open] { animation: panel-in .2s ease-out; }
  .cart-pop { animation: cart-pop .32s ease-out; }
  @keyframes panel-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
  @keyframes cart-pop { 45% { scale: 1.24; } }
}
