/* Costaneiras — cardápio digital */
html { scroll-padding-top: 140px; }


.p-top { background: var(--cream); border-bottom: 1px solid var(--line); }
.p-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.p-top-actions { display: flex; align-items: center; gap: 14px; }
.p-back { font-size: 14px; font-weight: 700; color: var(--brown); text-decoration: none; }
.p-back::before { content: "← "; }
.p-back:hover { text-decoration: underline; }

.p-hero { background: var(--brown-d); color: #fff; padding: 34px 0 30px; }
.p-hero h1 { font-size: clamp(30px, 5vw, 44px); }
.p-hero p { margin-top: 8px; color: #ecdcc4; max-width: 52ch; }
.search { margin-top: 20px; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 16px; height: 50px; border-radius: 999px; background: var(--white); color: var(--muted); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); height: 100%; }

/* Categorias */
.cats { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 1px solid var(--line); }
.cats-in { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: auto; padding-block: 12px; scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 700; color: var(--brown-d); text-decoration: none; white-space: nowrap; }
.cats a.on { background: var(--brown); border-color: var(--brown); color: #fff; }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; padding-block: 30px 80px; }

/* Lista */
.cat { margin-bottom: 44px; }
.cat-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--brown); }
.cat-head h2 { font-size: 27px; color: var(--brown-d); }
.cat-head span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cat-head.has-img { align-items: flex-end; min-height: 130px; padding: 18px; border: 0; border-radius: 16px; overflow: hidden; isolation: isolate; margin-bottom: 10px; }
.cat-head.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-head.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(44, 24, 12, .9), rgba(44, 24, 12, .15)); }
.cat-head.has-img h2, .cat-head.has-img span { color: #fff; }

.item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--beige); }
.item-txt { min-width: 0; }
.item h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.item p { margin-top: 3px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.buy { display: flex; align-items: center; gap: 12px; flex: none; }
.buy strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus { border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 14px; white-space: nowrap; }
.sizes { display: flex; gap: 6px; flex: none; }
.sizes button { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sizes button b { font-size: 15px; color: var(--red); }
.sizes button:hover, .plus:hover { filter: brightness(.94); }
.sizes button:hover { border-color: var(--red); }
.added { outline: 3px solid var(--wa); outline-offset: 1px; }
.none { padding: 40px 0; color: var(--muted); }

/* Pedido */
.cart { position: sticky; top: 76px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; max-height: calc(100vh - 96px); overflow-y: auto; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { font-size: 24px; color: var(--brown-d); }
.cart-close { display: none; border: 0; background: var(--beige); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--brown-d); }
.cart-empty { margin-top: 14px; color: var(--muted); font-size: 15px; }
.cart-items { list-style: none; margin: 14px 0 0; padding: 0; }
.cart-items li { padding: 12px 0; border-bottom: 1px solid var(--beige); }
.ci-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.ci-name { font-weight: 700; }
.ci-name em { font-style: normal; color: var(--red); }
.ci-top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ci-bot { display: flex; gap: 10px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; flex: none; }
.qty button { border: 0; background: none; width: 32px; height: 32px; font-size: 18px; color: var(--brown); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.ci-note { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 12px; font: inherit; font-size: 13px; background: var(--cream); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0 4px; font-size: 15px; }
.cart-total b { font-family: var(--serif); font-size: 22px; color: var(--brown-d); text-align: right; }

.checkout { margin-top: 12px; padding-top: 16px; border-top: 2px solid var(--brown); display: grid; gap: 12px; }
.checkout h3 { font-size: 19px; color: var(--brown-d); }
.checkout label > span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.checkout input:not([type=radio]), .checkout select, .checkout textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; background: var(--cream); color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label > span { margin: 0; padding: 10px 8px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--brown-d); cursor: pointer; }
.seg input:checked + span { background: var(--brown); border-color: var(--brown); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.send { width: 100%; min-height: 52px; white-space: normal; text-align: center; }
.hint { font-size: 13px; color: var(--muted); text-align: center; }
.form-error { color: #c0271b; font-weight: 700; font-size: 14px; }

.done { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0 6px; }
.done[hidden] { display: none; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--wa); color: #fff; font-size: 34px; display: grid; place-items: center; }
.done h3 { font-size: 26px; color: var(--brown-d); }
.done p { color: var(--muted); font-size: 15px; }
.done .btn { width: 100%; }

.cart-bar, .scrim { display: none; }

@media (max-width: 940px) {
  .p-layout { grid-template-columns: 1fr; padding-bottom: 110px; }
  .p-back { display: none; }
  body.lock { overflow: hidden; }
  .cart { position: fixed; inset: auto 0 0 0; top: auto; z-index: 80; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .25s; padding-bottom: 28px; }
  .cart.open { transform: none; }
  .cart-close { display: block; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(44, 24, 12, .5); }
  .scrim[hidden] { display: none; }
  .cart-bar { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 10px 26px rgba(44, 24, 12, .35); }
  .cart-bar[hidden] { display: none; }
  .cart-bar-n { background: #fff; color: var(--red); min-width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
  .cart-bar b { margin-left: auto; font-variant-numeric: tabular-nums; }
}
@media (max-width: 560px) {
  .brand b { font-size: 22px; }
  .item { flex-direction: column; align-items: stretch; gap: 10px; }
  .sizes button { flex: 1; }
  .buy { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .cart { transition: none; } }

/* Preço em reais abaixo do guarani */
.buy strong { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.buy strong small, .sizes small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cart-total b small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }

/* Rolagem: sem animação forçada nas páginas de cardápio (evita travadas ao deslizar) */
html { scroll-behavior: auto; }
.cat-head.has-img img { will-change: auto; }

/* Montador de pizza (1 ou 2 sabores) */
.pz { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--beige); border: 1px solid var(--line); }
.pz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pz-head h3 { font-size: 19px; color: var(--brown-d); }
.pz-sizes, .pz-mode { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.pz-sizes button, .pz-mode button { border: 0; background: none; padding: 7px 13px; font-size: 14px; font-weight: 700; color: var(--brown-d); }
.pz-mode { display: flex; margin-top: 12px; }
.pz-mode button { flex: 1; padding: 9px 10px; }
.pz-sizes button[aria-pressed="true"], .pz-mode button[aria-pressed="true"] { background: var(--brown); color: #fff; }
.pz-body { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.pz-body svg { width: 96px; height: 96px; flex: none; }
.pz-fl { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 10px; }
.pz-fl li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.pz-fl li > div { min-width: 0; flex: 1; }
.pz-fl small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.pz-fl b { font-size: 15px; }
.pz-fl select { width: 100%; margin-top: 2px; border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 8px; font: inherit; font-size: 15px; background: var(--white); color: var(--ink); }
.pz-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.pz-dot.a { background: #e9b44c; } .pz-dot.b { background: #d8683f; }
.pz-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pz-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.pz-foot strong { margin-right: auto; font-family: var(--serif); font-size: 19px; color: var(--brown-d); white-space: nowrap; }
.pz-cancel { border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; }
.pz-foot .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.pz-foot { flex-wrap: wrap; }
.pz-foot .btn { flex: 1 1 100%; }
.cart { overflow-x: hidden; }

/* Barra de tamanho da pizza (escolhido uma vez, vale para todos os sabores) */
.szbar { margin: 4px 0 6px; padding: 14px; border-radius: 16px; background: var(--beige); border: 1.5px solid var(--line); display: grid; gap: 10px; }
.szbar-step { font-size: 14px; color: var(--brown-d); }
.szbar-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.szbar-btns button { display: flex; flex-direction: column; align-items: center; padding: 9px 6px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.szbar-btns button b { font-size: 20px; line-height: 1.1; color: var(--red); }
.szbar-btns button small { font-size: 12px; }
.szbar-btns button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.szbar-btns button[aria-pressed="true"] b, .szbar-btns button[aria-pressed="true"] small { color: #fff; }
.szbar.need { border-color: var(--red); box-shadow: 0 0 0 4px rgba(213, 43, 30, .18); }

/* Sabor escolhido / pizzas travadas */
.item.sel { background: var(--beige); margin-inline: -10px; padding-inline: 10px; border-radius: 12px; }
.item.sel .plus { background: var(--wa); }
.item.locked { opacity: .45; }
.item.locked .plus { background: var(--muted); cursor: not-allowed; }

/* Etiqueta de sabores por tamanho, aviso e botão "2 sabores" indisponível na P */
.szbar-btns button i { font-style: normal; font-size: 11px; font-weight: 700; margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--beige); color: var(--brown-d); }
.szbar-btns button[aria-pressed="true"] i { background: rgba(255, 255, 255, .22); color: #fff; }
.pz-mode button.off { opacity: .4; text-decoration: line-through; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 300; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

/* Nome do tamanho por extenso */
.szbar-btns button em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brown-d); }
.szbar-btns button[aria-pressed="true"] em { color: #fff; }

/* Foto do produto (enviada pelo painel) */
.item.has-pic { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; }
@media (max-width: 560px) {
  .item.has-pic { grid-template-columns: 76px minmax(0, 1fr); row-gap: 10px; }
  .item.has-pic > :nth-child(n+3) { grid-column: 1 / -1; }
}
.item-pic { width: 76px; height: 76px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--beige); cursor: zoom-in; align-self: start; }
.item-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-zoom { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(20, 12, 6, .88); cursor: zoom-out; }
.pic-zoom img { max-width: min(92vw, 900px); max-height: 82vh; border-radius: 14px; object-fit: contain; }
.pic-zoom button { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; }

/* cupom de desconto */
.cupom { margin-top: 12px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--cream); display: grid; gap: 8px; }
.cup-t { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brown-d); }
.cup-form { display: flex; gap: 8px; }
.cup-form input { flex: 1; min-width: 0; min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; background: #fff; }
.cup-ap { flex: none; border: 0; border-radius: 999px; padding: 0 16px; background: var(--brown); color: #fff; font-weight: 700; font-size: 14px; }
.cup-on { display: flex; align-items: center; gap: 10px; }
.cup-tag { font-weight: 800; letter-spacing: .04em; color: var(--brown-d); }
.cup-txt { flex: 1; font-size: 13.5px; font-weight: 700; color: #1d7a3f; }
.cup-rm { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; }
.cup-err { color: #b3261e; font-size: 13px; font-weight: 700; margin: 0; }
.cup-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.cart-total { display: grid; gap: 4px; }
.ct-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ct-row:not(.ct-tot) { font-size: 14px; color: var(--muted); }
.ct-off { color: #1d7a3f !important; font-weight: 700; }
.ct-tot b { font-family: var(--serif); font-size: 22px; color: var(--brown-d); text-align: right; }
.ct-tot b small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }

/* cadastro do cliente */
.checkout label > .tel-row { display: flex; gap: 8px; margin: 0; }
.tel-row select { flex: none; width: auto !important; padding-inline: 8px !important; }
.tel-row input { flex: 1; min-width: 0; }
#addr-field.req > span { color: var(--brown-d); }
.chk-promo { display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.chk-promo input { width: 20px !important; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brown); padding: 0 !important; }
.chk-promo span { margin: 0 !important; font-size: 14px !important; font-weight: 500 !important; color: var(--ink) !important; }
.cad-note { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }

/* login por telefone / cadastro */
.who-card { margin-bottom: 2px; }
.who-login { width: 100%; min-height: 48px; border: 2px dashed var(--brown); border-radius: 14px; background: var(--cream); color: var(--brown-d); font-weight: 800; font-size: 15px; cursor: pointer; }
.who-in { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cream); border: 1.5px solid var(--line); }
.who-av { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; font-weight: 800; }
.who-in > div { flex: 1; min-width: 0; display: grid; }
.who-in b { font-size: 15px; }
.who-in span { font-size: 13px; color: var(--muted); }
.who-out { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; }
.gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(28, 17, 9, .6); }
.gate[hidden] { display: none; }
.gate-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 12px; padding: 24px 20px 20px; border-radius: 20px; background: var(--white); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.gate-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--beige); font-size: 20px; cursor: pointer; }
.gate-card h2 { font-size: 24px; color: var(--brown-d); padding-right: 36px; }
.g-sub { font-size: 14px; color: var(--muted); margin: -4px 0 4px; }
.g-l { display: grid; gap: 4px; }
.g-l > span:first-child { font-size: 13px; font-weight: 700; color: var(--muted); }
.g-l input, .g-l select { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: var(--cream); color: var(--ink); }
.g-l small { font-size: 12px; color: var(--muted); }
.g-tel { display: flex; gap: 8px; }
.g-tel select { width: auto; flex: none; padding: 0 8px; }
.g-chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.g-chk input { width: 20px; height: 20px; flex: none; accent-color: var(--brown); }
.g-num { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; color: var(--brown-d); }
.g-back { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.g-err { color: #b3261e; font-weight: 700; font-size: 14px; margin: 0; }
.g-go { width: 100%; min-height: 50px; }
.who-in .who-av { color: #fff; font-size: 16px; }

/* pop-up de login: espaço entre cada bloco */
.gate-card { padding: 28px 24px 24px; gap: 0; }
#gate-in { display: grid; gap: 18px; }
.gate-card h2 { line-height: 1.15; margin: 0; }
.g-sub { margin: -8px 0 0; line-height: 1.5; }
.g-l { gap: 8px; }
.g-tel { gap: 10px; align-items: stretch; }
.g-tel select, .g-tel input { height: 50px; min-height: 50px; box-sizing: border-box; }
.g-l small { margin-top: 2px; line-height: 1.4; }
.g-num { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.g-chk { padding: 2px 0; }
.g-err { padding: 8px 12px; border-radius: 10px; background: #fde9e7; }
.g-go { margin-top: 6px; min-height: 52px; }

/* endereço em campos */
.g-addr { margin: 0; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; display: grid; gap: 12px; }
.g-addr legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--brown-d); text-transform: uppercase; letter-spacing: .04em; }
.g-pais { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-pais label { position: relative; }
.g-pais input { position: absolute; opacity: 0; inset: 0; }
.g-pais span { display: block; padding: 9px 8px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--brown-d); cursor: pointer; }
.g-pais input:checked + span { background: var(--brown); border-color: var(--brown); color: #fff; }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-row-rua { grid-template-columns: 1fr 108px; }
.g-sn { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-top: -4px; }
.g-sn input { width: 18px; height: 18px; accent-color: var(--brown); }
.g-l input:disabled { opacity: .45; }
.g-hint { font-size: 12px; color: var(--muted); }
@media (max-width: 420px) { .g-row { grid-template-columns: 1fr; } .g-row-rua { grid-template-columns: 1fr 96px; } }
.addr-box { display: grid; gap: 6px; }
.addr-box > span { font-size: 13px; font-weight: 700; color: var(--muted); }
#addr-show { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 1.5px solid var(--line); }
#addr-show p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.addr-edit { justify-self: start; border: 0; background: none; padding: 0; color: var(--brown); font-weight: 800; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.g-row:not(.g-row-rua) { grid-template-columns: 1fr; }

/* ===== Delivery em formato de aplicativo ===== */
.cats a.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.strip { margin-bottom: 30px; }
.strip > h2 { font-size: 24px; color: var(--brown-d); margin-bottom: 12px; }
.strip-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pcard { flex: none; width: 190px; display: grid; gap: 4px; align-content: start; padding: 0 0 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--white); text-align: left; overflow: hidden; scroll-snap-align: start; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--beige); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-img em { display: grid; place-items: center; height: 100%; font-style: normal; font-size: 36px; }
.pc-off { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--red); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; }
.pc-n { padding: 6px 12px 0; font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--ink); }
.pc-p { padding: 0 12px; font-size: 14px; color: var(--brown-d); }
.pc-p small { color: var(--muted); }
.pc-p s, .pr s { color: var(--muted); font-size: 12px; }
.pc-go { margin: 6px 12px 0; padding: 7px 12px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; text-align: center; }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ctile { position: relative; display: block; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--brown); cursor: pointer; isolation: isolate; }
.ct-img, .ct-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ctile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(44, 24, 12, .85), rgba(44, 24, 12, .1) 60%); }
.ct-n { position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 24px; color: #fff; }
.ctile:hover .ct-img img { transform: scale(1.04); transition: transform .3s; }
.view-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.view-head h2 { flex: 1; font-size: 28px; color: var(--brown-d); }
.view-head .back { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; font-weight: 700; color: var(--brown-d); cursor: pointer; }
.sub-h { margin: 18px 0 4px; font-size: 18px; color: var(--brown); }
.tag-off { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--red); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.pr { display: flex; flex-direction: column; align-items: flex-end; font-weight: 500; }
.pr small { font-size: 12px; color: var(--muted); }
.cart-bar.pulse { animation: barPulse .9s ease; }
@keyframes barPulse { 30% { transform: scale(1.04); } }

/* passo a passo da pizza */
.wiz { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 16px; background: rgba(28, 17, 9, .6); }
.wiz[hidden] { display: none; }
.wz-card { width: min(620px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 22px; background: var(--white); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.wz-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.wz-head b { font-family: var(--serif); font-size: 24px; color: var(--brown-d); }
.wz-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--beige); font-size: 22px; cursor: pointer; }
.wz-steps { list-style: none; margin: 0; padding: 4px 20px 12px; display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.wz-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.wz-steps i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--beige); color: var(--brown-d); }
.wz-steps li.now { color: var(--brown-d); }
.wz-steps li.now i { background: var(--red); color: #fff; }
.wz-steps li.done i { background: #1d7a3f; color: #fff; }
.wz-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.wz-body h3 { font-size: 21px; color: var(--brown-d); }
.wz-body h3 small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
.wz-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wz-size { display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border: 2px solid var(--line); border-radius: 16px; background: var(--white); cursor: pointer; }
.wz-size b { font-family: var(--serif); font-size: 32px; color: var(--red); line-height: 1; }
.wz-size span { font-weight: 800; color: var(--brown-d); }
.wz-size small { font-size: 12px; color: var(--muted); text-align: center; }
.wz-size em { font-style: normal; font-weight: 800; color: var(--ink); margin-top: 4px; }
.wz-size.sel, .wz-size:hover { border-color: var(--red); background: #fff6f3; }
.wz-mode { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.wz-mode button { border: 0; background: var(--white); padding: 10px; font-weight: 800; color: var(--brown-d); cursor: pointer; }
.wz-mode button[aria-pressed="true"] { background: var(--brown); color: #fff; }
.wz-note { margin: 0; font-size: 13px; color: var(--muted); }
.wz-q { width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; font: inherit; background: var(--cream); }
.wz-list { display: grid; gap: 8px; }
.wz-list h4 { margin: 8px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.wz-opt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); text-align: left; cursor: pointer; }
.wz-opt img, .wz-noimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--beige); font-size: 22px; }
.wz-t { display: grid; gap: 2px; min-width: 0; }
.wz-t b { font-size: 15px; }
.wz-t small { font-size: 12.5px; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-p { font-weight: 800; font-size: 14px; white-space: nowrap; color: var(--brown-d); }
.wz-opt.sel { border-color: var(--red); background: #fff6f3; }
.wz-badge { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; font-style: normal; font-size: 13px; }
.wz-beb { cursor: default; }
.wz-qty { display: inline-flex; align-items: center; gap: 6px; }
.wz-qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 18px; font-weight: 800; color: var(--brown); cursor: pointer; }
.wz-qty button:disabled { opacity: .35; }
.wz-qty b { min-width: 18px; text-align: center; }
.wz-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--cream); }
.wz-foot strong { text-align: right; font-family: var(--serif); font-size: 21px; color: var(--brown-d); }
.wz-prev { border: 0; background: none; font-weight: 800; color: var(--brown); cursor: pointer; }
.wz-foot .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
  .wiz { padding: 0; place-items: end stretch; }
  .wz-card { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .wz-steps li { font-size: 0; } .wz-steps li i { font-size: 12px; } .wz-steps li.now { font-size: 13px; }
  .wz-foot { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .pcard { width: 160px; }
  .ctiles { grid-template-columns: 1fr 1fr; }
  .ct-n { font-size: 20px; }
}
.wz-body { grid-auto-rows: max-content; }
.wz-mode { min-height: 44px; }

/* ===== Lista de produtos alinhada (estilo app de comida) ===== */
.menu .item.has-pic { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "pic txt buy"; gap: 6px 14px; align-items: center; padding: 14px 0; }
.menu .item.has-pic > .item-pic { grid-area: pic; width: 88px; height: 88px; border-radius: 14px; align-self: center; }
.menu .item-pic.ph { display: grid; place-items: center; background: var(--beige); font-size: 34px; cursor: default; }
.menu .item.has-pic > .item-txt { grid-area: txt; min-width: 0; }
.menu .item.has-pic > .buy { grid-area: buy; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; grid-column: auto; }
.menu .item h3 { font-size: 16px; line-height: 1.3; }
.menu .item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.4; }
.menu .plus { display: inline-flex; align-items: center; justify-content: center; gap: 2px; white-space: nowrap; }

@media (max-width: 560px) {
  /* topo compacto */
  .p-hero { padding: 14px 0 16px; }
  .p-hero h1 { font-size: 26px; }
  .p-hero p { display: none; }
  .p-hero .search { margin-top: 10px; height: 46px; }
  .cats-in { padding-block: 10px; }
  .p-layout { padding-top: 18px; }
  /* cada produto numa linha: foto à esquerda, texto e preço à direita, botão redondo */
  .menu .item.has-pic { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "pic txt" "pic buy"; align-items: start; gap: 4px 12px; padding: 12px 0; }
  .menu .item.has-pic > .item-pic { width: 84px; height: 84px; grid-row: 1 / span 2; }
  .menu .item.has-pic > .buy { flex-direction: row; justify-content: space-between; align-items: center; align-self: end; }
  .menu .item .pr { align-items: flex-start; font-size: 15px; }
  .menu .item p { -webkit-line-clamp: 2; }
  .menu .plus[data-add] { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 22px; line-height: 1; }
  .menu .plus[data-add] .pl-t { display: none; }
  .menu .plus[data-pz] { padding: 8px 14px; font-size: 13px; }
  .view-head h2 { font-size: 24px; }
  .view-head .back { padding: 6px 12px; font-size: 14px; }
  .strip > h2 { font-size: 21px; }
  /* barra do pedido em uma linha só */
  .cart-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; min-height: 54px; padding: 0 18px; font-size: 15px; }
  .cart-bar > span:not(.cart-bar-n) { white-space: nowrap; }
  .cart-bar b { min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
}

/* cartões das faixas: botão sempre no rodapé, alinhado entre os cartões */
.pcard { display: flex; flex-direction: column; }
.pcard .pc-go { margin-top: auto; }
.pc-p { flex: none; }
.pc-n { min-height: 2.5em; }
.pcard .pc-p + .pc-go { margin-top: auto; }
.pcard { padding-bottom: 12px; }
.pcard > .pc-p { margin-bottom: 8px; }

/* passo a passo da pizza no celular */
@media (max-width: 640px) {
  .wz-head { padding: 14px 16px 6px; }
  .wz-head b { font-size: 21px; }
  .wz-steps { padding: 4px 16px 10px; }
  .wz-body { padding: 14px 16px; }
  .wz-body h3 { font-size: 19px; }
  .wz-sizes { grid-template-columns: 1fr; gap: 8px; }
  .wz-size { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "l n p" "l s p"; justify-items: start; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 14px; text-align: left; }
  .wz-size b { grid-area: l; font-size: 30px; justify-self: center; }
  .wz-size span { grid-area: n; }
  .wz-size small { grid-area: s; text-align: left; }
  .wz-size em { grid-area: p; margin: 0; font-size: 15px; }
  .wz-opt { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px 8px 8px; }
  .wz-opt img, .wz-noimg { width: 48px; height: 48px; }
  .wz-t b { font-size: 14.5px; line-height: 1.25; }
  .wz-qty button { width: 32px; height: 32px; }
  .wz-foot { grid-template-columns: auto 1fr; row-gap: 10px; padding: 10px 16px max(14px, env(safe-area-inset-bottom, 0px)); }
  .wz-foot strong { font-size: 19px; white-space: nowrap; }
  .wz-foot .btn { grid-column: 1 / -1; width: 100%; min-height: 50px; }
  .wz-foot > span:last-child { display: none; }
  .wz-prev { white-space: nowrap; }
}

/* ===== Correção da largura no celular: nada pode passar da tela ===== */
html, body { max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.p-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.menu, #menu, .strip, .strip-row, .ctiles, .view, .items { min-width: 0; max-width: 100%; }
.strip-row { width: 100%; }
@media (max-width: 940px) {
  .p-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .p-top-in { gap: 8px; }
  .p-top .brand b { font-size: 20px; }
  .p-top .lang button { padding: 5px 8px; font-size: 12px; }
  .cup-form { gap: 6px; }
  .cup-form input { min-width: 0; padding: 0 10px; font-size: 13px; }
  .cup-ap { padding: 0 12px; }
  .cart-bar { left: 10px; right: 10px; padding: 0 14px; gap: 8px; }
  .cart-bar b { font-size: 13px; }
  .ctiles { gap: 8px; }
  .pcard { width: 150px; }
}

/* ===== Categorias do início: faixas compridas, uma embaixo da outra (20/11/2026) ===== */
.ctiles { grid-template-columns: 1fr 1fr; gap: 12px; }
.ctile { aspect-ratio: auto; height: 120px; }
.ctile::after { background: linear-gradient(to right, rgba(44, 24, 12, .82), rgba(44, 24, 12, .35) 55%, rgba(44, 24, 12, .05)); }
.ct-n { left: 20px; bottom: auto; top: 50%; transform: translateY(-50%); font-size: 28px; }
@media (max-width: 940px) {
  .ctiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ctile { height: 104px; }
  .ct-n { font-size: 26px; }
}

/* preço em reais embaixo do preço em G$ (cotação) */
.p-rs { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.pr .p-rs, .pc-p .p-rs { margin-top: 2px; }
.ci-top b .p-rs { text-align: right; }
.wz-foot strong .p-rs { font-family: inherit; font-size: 12px; }

/* v27 — preço e preço riscado não quebram no meio ("G$" separado do número) */
.pc-p b, .pc-p s, .pr b, .pr s, .wz-size em s { white-space: nowrap; }

/* v30 — janela de complementos dos produtos (risoto + bebida etc.) */
.wz-prod { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--beige, #f3eadb); }
.wz-prod img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.wz-prod div { display: grid; gap: 2px; min-width: 0; }
.wz-prod b { font-size: 16px; color: var(--ink); }
.wz-prod small { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wz-prod em { font-style: normal; font-weight: 800; color: var(--brown-d); }
.wz-grp { display: grid; gap: 10px; }
.wz-grp + .wz-grp { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* v36 — taxa de entrega por distância e mapa para marcar a casa */
.ct-fee span:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-fee.out { color: #a2261a; font-weight: 700; }
.ct-loc, .addr-loc .addr-edit { padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--brown); background: #fff; color: var(--brown-d); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.addr-loc { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--brown-d); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-loc.need { color: #8a4b00; font-weight: 600; }
.addr-loc.out { color: #a2261a; }
.loc-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(28, 17, 9, .6); }
.loc-card { width: min(620px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; gap: 8px; padding: 16px; border-radius: 20px; background: var(--cream); }
.loc-head { display: flex; align-items: center; justify-content: space-between; }
.loc-head b { font-family: var(--serif); font-size: 22px; color: var(--brown-d); }
.loc-hint { font-size: 14px; color: var(--muted); }
.loc-map { position: relative; height: min(58vh, 460px); min-height: 260px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: #e8e2d6; }
.loc-info { min-height: 1.4em; font-weight: 800; color: var(--brown-d); }
.loc-info.out { color: #a2261a; }
.loc-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.loc-nomap { padding: 24px; color: var(--muted); }
@media (max-width: 560px) { .loc-modal { padding: 0; align-items: end; } .loc-card { border-radius: 20px 20px 0 0; max-height: 94vh; } .loc-foot .btn { flex: 1; } }

/* v40 — abas por tipo dentro de uma categoria (Bebidas: águas / refrigerantes e sucos / energéticos) */
.sub-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 4px; border-radius: 999px; background: var(--beige); scrollbar-width: none; }
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tabs button { flex: 1 0 auto; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 800; color: var(--brown-d); white-space: nowrap; cursor: pointer; }
.sub-tabs button small { margin-left: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sub-tabs button[aria-selected="true"] { background: var(--brown); color: #fff; box-shadow: 0 2px 8px rgba(44, 24, 12, .2); }
.sub-tabs button[aria-selected="true"] small { color: #ecdcc4; }
@media (max-width: 560px) { .sub-tabs { border-radius: 16px; gap: 4px; } .sub-tabs button { padding: 9px 12px; font-size: 13.5px; } }
@media (max-width: 360px) { .sub-tabs button { padding: 8px 8px; font-size: 12.5px; } .sub-tabs button small { font-size: 11px; } }

/* v42 — foto dos cartões (ofertas, mais pedidos, conjuntos) sempre do mesmo tamanho: o quadro tem proporção fixa
   e a foto preenche sem esticar (antes, foto quadrada deixava o quadro mais alto que a foto deitada). */
.pcard .pc-img { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; }
.pcard .pc-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pcard .pc-img em { position: absolute; inset: 0; }
.pcard .pc-off { z-index: 1; }

/* v44 — aviso de horário do delivery (logo abaixo da barra das categorias) */
.hr-bar { padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.hr-bar.on { background: #eef7f0; color: #145a2e; }
.hr-bar.off { background: #fdf0ee; color: #7d1d13; }
.hr-bar small { display: block; font-size: 13px; opacity: .9; }
