* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #C89B66; color: #2B1D12; font-family: Manrope, 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.45; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
.serif { font-family: Marcellus, Georgia, serif; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { position: relative; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.main { flex: 1; min-height: 0; display: flex; }
.menu { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }

/* header */
.head { background: #C89B66; padding: 18px 20px 6px; }
.head-in { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.brand { flex: 1 1 220px; display: flex; align-items: center; gap: 14px; }
.brand img { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; box-shadow: 0 2px 8px rgba(60,35,15,.25); }
.brand-t { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; font-size: inherit; font-weight: inherit; }
.brand-t b { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 25px; line-height: 1.05; }
.brand-t span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4A3020; }
.cart-btn { position: relative; width: 48px; height: 48px; flex-shrink: 0; border-radius: 24px; border: 0; background: #fff; color: #2B1D12; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(60,35,15,.2); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #D23A2A; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.city-btn { flex: 1 1 300px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 52px; border-radius: 14px; border: 0; background: #fff; color: #2B1D12; text-align: left; box-shadow: 0 2px 6px rgba(60,35,15,.15); }
.city-btn .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.city-btn .t b { font-size: 14px; font-weight: 800; }
.city-btn .t span { font-size: 13px; color: #6B5A49; }
.city-btn .alt { font-size: 13px; font-weight: 700; color: #B3311F; }

/* filters */
.filters { position: sticky; top: 0; z-index: 2; background: #C89B66; padding: 12px 0; border-bottom: 1px solid #B88A55; }
.filters-in { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.search-row { position: relative; display: flex; gap: 8px; padding: 0 20px; }
.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.search svg.i { position: absolute; left: 14px; pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 44px 0 42px; border-radius: 23px; border: 1px solid #B88A55; background: #fff; color: #2B1D12; font: inherit; font-size: 16px; outline-color: #C89B66; }
.search .clear { position: absolute; right: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: #6B5A49; display: flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 2px; scrollbar-width: none; }
.chip { flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 20px; border: 2px solid; font-size: 14px; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.chip i { width: 10px; height: 10px; border-radius: 5px; }

/* groups */
.groups { width: 100%; max-width: 1100px; margin: 0 auto; padding: 8px 20px 28px; display: flex; flex-direction: column; gap: 26px; }
.group { display: flex; flex-direction: column; gap: 14px; }
.ghead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; color: #fff; }
.ghead > div { flex: 1; display: flex; flex-direction: column; }
.ghead h2 { font-size: 22px; line-height: 1.15; }
.ghead small { font-size: 13px; font-weight: 600; opacity: .9; }
.ghead .price { padding: 6px 12px; border-radius: 12px; background: #fff; font-weight: 800; font-size: 15px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.card { position: relative; min-height: 176px; border-radius: 20px; overflow: hidden; display: flex; }
.photo { position: absolute; right: -78px; top: 50%; margin-top: -100px; width: 200px; height: 200px; padding: 0; border: 0; border-radius: 100px; background: transparent; cursor: zoom-in; }
.photo img { width: 200px; height: 200px; display: block; filter: drop-shadow(-6px 8px 14px rgba(80,30,20,.3)); }
.nophoto { position: absolute; right: -78px; top: 50%; margin-top: -100px; width: 200px; height: 200px; border-radius: 100px; border: 2px dashed; background: rgba(255,255,255,.55); display: flex; align-items: center; padding-left: 26px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.qty-badge { position: absolute; top: 10px; right: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.card-body { position: relative; width: calc(100% - 128px); flex-shrink: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { font-size: 20px; line-height: 1.15; }
.card-body p { margin: 0; color: #5E4E3F; font-size: 13px; line-height: 1.4; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { padding: 2px 9px; border-radius: 9px; background: #fff; font-size: 11px; font-weight: 800; color: #4A3020; }
.allerg { display: flex; align-items: flex-start; gap: 6px; color: #7A4B00; font-size: 12px; font-weight: 700; line-height: 1.3; }
.allerg svg { flex-shrink: 0; margin-top: 1px; }
.actions { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; }
.rb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.price-l { font-weight: 800; font-size: 17px; white-space: nowrap; }
.empty { padding: 36px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty button { height: 44px; padding: 0 20px; border-radius: 22px; border: 2px solid #2B1D12; background: #fff; color: #2B1D12; font-weight: 700; }

.cartbar { padding: 12px 16px 16px; background: #fff; border-top: 1px solid #B88A55; box-shadow: 0 -4px 14px rgba(60,35,15,.12); }
.cartbar button { width: 100%; height: 54px; border-radius: 27px; border: 2px solid #2B1D12; background: #fff; color: #2B1D12; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.cartbar button span + span { color: #A82A21; }

/* cart */
.cart { width: 100%; flex-shrink: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.cart-head { display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 68px; border-bottom: 1px solid #EFE6DA; }
.cart-head h2 { flex: 1; font-size: 24px; }
.cart-head img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.back { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: #2B1D12; display: flex; align-items: center; justify-content: center; }
.cart-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 22px; }
.cart-empty { padding: 40px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #3D2817; }
.cart-empty button { height: 48px; padding: 0 24px; border-radius: 24px; border: 0; background: #2B1D12; color: #fff; font-weight: 800; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3D2817; font-family: inherit; }
.line { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid #EFE6DA; }
.thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 28px; overflow: hidden; border: 3px solid; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line-t { display: flex; justify-content: space-between; gap: 8px; }
.line-t > span:first-child { display: flex; flex-direction: column; }
.line-t b { font-size: 15px; line-height: 1.2; font-weight: 800; }
.line-t small { font-size: 12px; font-weight: 700; }
.line-c { display: flex; align-items: center; gap: 6px; }
.line-c .sp { flex: 1; }
.sb { width: 44px; height: 44px; border-radius: 22px; border: 2px solid #E3D6C6; background: #fff; color: #2B1D12; display: flex; align-items: center; justify-content: center; }
.tb { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: #8A7764; display: flex; align-items: center; justify-content: center; }
.warn { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #FFF4D6; color: #7A4B00; font-size: 13px; font-weight: 700; }
.warn svg { flex-shrink: 0; margin-top: 2px; }
.more { align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #2B1D12; font-size: 14px; font-weight: 800; }
.deliv { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 54px; border-radius: 14px; border: 2px solid #EFE6DA; background: #fff; color: #2B1D12; text-align: left; }
.deliv.bad { border-color: #D97706; }
.deliv .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.deliv .t b { font-size: 14px; font-weight: 800; }
.deliv .t span { font-size: 13px; color: #3D2817; }
.deliv .alt { font-size: 13px; font-weight: 700; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-size: 13px; font-weight: 700; color: #4A3020; }
.fld input { height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid #E3D6C6; background: #fff; color: #2B1D12; font: inherit; font-size: 16px; outline-color: #C89B66; }
.fld input.bad { border-color: #D97706; }
.saved { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #3D2817; }
.saved button { flex-shrink: 0; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #2B1D12; font-size: 12px; font-weight: 800; }
.sum { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid #EFE6DA; }
.sum > div { display: flex; justify-content: space-between; }
.sum > div span:first-child { color: #3D2817; }
.sum > div span:last-child { font-weight: 700; }
.sum hr { height: 1px; border: 0; background: #EFE6DA; margin: 4px 0; width: 100%; }
.sum .tot { font-size: 18px; font-weight: 800; }
.sum .tot span { color: inherit !important; font-weight: 800 !important; }
.send { padding: 12px 16px 16px; border-top: 1px solid #B88A55; box-shadow: 0 -4px 14px rgba(60,35,15,.12); display: flex; flex-direction: column; gap: 8px; }
.send .miss { font-size: 13px; font-weight: 700; color: #9A3412; text-align: center; }
.send .sent { font-size: 12px; color: #3D2817; text-align: center; }
.send a, .send button { height: 54px; border-radius: 27px; border: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.send a { background: #1A7F4B; color: #fff; }
.send button { background: #DCE9E1; color: #2D5A41; }

/* overlays */
.ov { position: absolute; inset: 0; z-index: 5; background: rgba(43,29,18,.5); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { max-height: 88%; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 50px rgba(43,29,18,.25); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; }
.sheet-h h2 { font-size: 23px; }
.x { width: 44px; height: 44px; border-radius: 22px; border: 0; background: #F3ECE2; color: #2B1D12; display: flex; align-items: center; justify-content: center; }
.sheet p { margin: 0; font-size: 14px; color: #6B5A49; }
.geo { min-height: 48px; border-radius: 14px; border: 2px solid #D23A2A; background: #fff; color: #B3311F; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.geo-msg { font-size: 13px; font-weight: 600; color: #9A3412; }
.cities { display: flex; flex-direction: column; gap: 8px; }
.crow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 2px solid #EFE6DA; background: #fff; color: #2B1D12; text-align: left; }
.crow.sel { border-color: #D23A2A; background: #FDF0EE; }
.crow .d { width: 44px; flex-shrink: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #B3311F; }
.crow .n { display: flex; flex-direction: column; flex: 1; }
.crow .n small { font-size: 13px; color: #6B5A49; }
.custom { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.custom label { font-size: 13px; font-weight: 700; color: #4A3020; }
.custom div { display: flex; gap: 8px; }
.custom input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid #E3D6C6; background: #fff; color: #2B1D12; font: inherit; font-size: 16px; }
.custom button { height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: #2B1D12; color: #fff; font-weight: 800; }
.custom span { font-size: 12px; color: #6B5A49; }

.zoom { position: absolute; inset: 0; z-index: 6; background: rgba(20,12,6,.94); display: flex; flex-direction: column; }
.zoom-top { display: flex; justify-content: flex-end; padding: 10px 10px 0; }
.zoom-top button { width: 48px; height: 48px; border-radius: 24px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.zoom-img { flex: 1; min-height: 0; padding: 8px 12px 16px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: zoom-out; position: relative; }
.zoom-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.zoom-badge { position: absolute; left: 0; top: 0; visibility: hidden; height: 25px; padding: 0 11px; border-radius: 13px; color: #fff; font-size: 10px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); pointer-events: none; }
.zoom-info { width: 100%; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.zoom-info .r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.zoom-info h2 { font-size: 24px; line-height: 1.15; }
.zoom-info .r small { font-size: 13px; font-weight: 800; white-space: nowrap; }
.zoom-info p { margin: 0; font-size: 14px; color: #5E4E3F; }
.zoom-act { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.zoom-act .pr { flex: 1; white-space: nowrap; font-weight: 800; font-size: 20px; }
.zoom-act .qn { min-width: 24px; text-align: center; font-size: 18px; font-weight: 800; }
.zoom-act .sbtn { width: 48px; height: 48px; border-radius: 24px; border: 2px solid; background: #fff; display: flex; align-items: center; justify-content: center; }
.zoom-nav { display: flex; gap: 8px; padding-top: 4px; }
.zoom-nav button { flex: 1; min-width: 0; height: 48px; padding: 0 8px; border-radius: 24px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.znext { border: 2px solid #2B1D12; background: #fff; color: #2B1D12; }
.zcart { border: 0; background: #2B1D12; color: #fff; }
.zoom-act .abtn { height: 48px; padding: 0 16px; white-space: nowrap; flex-shrink: 0; border-radius: 24px; border: 0; color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* wide: cart becomes a sidebar */
@media (max-width: 899px) { .only-wide { display: none; } }
@media (min-width: 900px) {
  .cart { width: 400px; border-left: 1px solid #B88A55; }
  .cart-head h2 { padding-left: 8px; }
  .city-btn { max-width: 420px; }
  .ov { justify-content: center; align-items: center; padding: 24px; }
  .sheet { width: 460px; border-radius: 22px; }
  .zoom-info { border-radius: 20px 20px 0 0; }
  .only-narrow { display: none !important; }
}
@media (max-width: 899px) {
  .cart { display: none; }
  .app.screen-cart .cart { display: flex; }
  .app.screen-cart .menu { display: none; }
}

/* filtros */
.fbtn { flex-shrink: 0; height: 46px; padding: 0 14px; border-radius: 23px; border: 1px solid #B88A55; background: #fff; color: #2B1D12; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.fbtn.on { background: #2B1D12; border-color: #2B1D12; color: #fff; }
.fcount { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: #2B1D12; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.fscrim { position: fixed; inset: 0; z-index: 3; border: 0; padding: 0; background: transparent; cursor: default; }
.fmenu { position: absolute; top: 54px; right: 20px; z-index: 4; width: 250px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(43,29,18,.28); display: flex; flex-direction: column; }
.fmenu-t { padding: 8px 10px 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6B5A49; }
.fopt { min-height: 48px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.fopt.on { background: #F3ECE2; }
.fopt input { width: 20px; height: 20px; margin: 0; accent-color: #2B1D12; }
.fopt .fl { flex: 1; }
.fopt .fc { font-size: 13px; font-weight: 600; color: #6B5A49; }
.fmenu-a { display: flex; gap: 8px; padding: 8px 2px 2px; border-top: 1px solid #EFE6DA; margin-top: 6px; }
.fmenu-a button { flex: 1; height: 44px; border-radius: 22px; }
.fclear { border: 1px solid #E3D6C6; background: #fff; color: #2B1D12; font-weight: 700; }
.fdone { border: 0; background: #2B1D12; color: #fff; font-weight: 800; }



/* cidades: abas e calendário */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 22px; background: #F3ECE2; }
.tabs button { flex: 1; height: 40px; border: 0; border-radius: 18px; background: transparent; color: #2B1D12; font-size: 14px; font-weight: 700; }
.tabs button.on { background: #2B1D12; color: #fff; }
.crow .d { text-align: center; line-height: 1.2; }
.cal { display: flex; flex-direction: column; gap: 16px; }
.cal-w { display: flex; flex-direction: column; gap: 8px; }
.cal-w h3 { margin: 0; font-size: 15px; font-weight: 800; color: #2B1D12; }
.cal-w h3 small { font-size: 13px; font-weight: 600; color: #6B5A49; }
.cal-d { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 2px solid #EFE6DA; align-items: flex-start; }
.cal-d.today { border-color: #D23A2A; background: #FDF0EE; }
.cal-d.past { opacity: .5; }
.cal-date { width: 48px; flex-shrink: 0; display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; text-align: center; color: #B3311F; }
.cal-date b { text-transform: uppercase; letter-spacing: .06em; }
.cal-date span { color: #6B5A49; font-weight: 600; }
.cal-c { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 2px solid #E3D6C6; background: #fff; color: #2B1D12; font-size: 13px; font-weight: 700; }
.pill.sel { border-color: #D23A2A; background: #FDF0EE; color: #B3311F; }
.pill:disabled { cursor: default; }
.cal-note { font-size: 12px !important; }

/* rodapé de contato */
.foot { margin-top: auto; padding: 8px 20px 28px; }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 20px; border-radius: 20px; background: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.foot h2 { font-size: 22px; }
.foot p { margin: 0; font-size: 14px; color: #5E4E3F; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-links a { flex: 1 1 200px; min-height: 56px; padding: 8px 16px; border-radius: 28px; background: #2B1D12; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 800; }
.foot-links a span { display: flex; flex-direction: column; line-height: 1.2; }
.foot-links a small { font-size: 13px; font-weight: 600; opacity: .85; }

/* tela inicial enquanto o cardápio carrega (e para quem não usa JavaScript) */
.splash { min-height: 60vh; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: #2B1D12; }
.splash img { border-radius: 22px; box-shadow: 0 2px 8px rgba(60,35,15,.25); }
.splash h1 { margin: 0; font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: 28px; }
.splash p { margin: 0; max-width: 520px; font-size: 14px; }
.splash a { color: #2B1D12; font-weight: 800; }

/* conteúdo para buscadores e IAs: fica fora da vista, mas no HTML (aparece se o JavaScript estiver desligado) */
.ssr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* aviso: pizzas congeladas */
.frozen { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff; color: #2B1D12; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; }
.frozen svg { color: #2A5DB0; }
