/* Pizza Hut Brasil — rebuild do CARDÁPIO pós-seleção de unidade (não a home institucional) */

@font-face {
  font-family: "RLAqva";
  src: url("../fonts/a36b7793a23f0679-s.p.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/9cf9c6e84ed13b5e-s.p.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red-brand: #e91c24;
  --red-deep: #c8102e;
  --red-btn: #c50303;
  --dark: #231f20;
  --bg-soft: #f8f2f4;
  --bg-page: #fbeff1;
  --bg-grey: #f4f4f4;
  --card-grey: #e7e7e7;
  --white: #ffffff;
  --max-width: 1180px;
  --font-display: "RLAqva", "Arial Black", sans-serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
}

* { box-sizing: border-box; }
/* `html` leva a cor de fundo real do site (mesmo vermelho do topbar): é o
   que aparece no rubber-band/overscroll (arrastar além da borda), então
   precisa combinar com o topo da página em vez de ficar branco.
   IMPORTANTE: `overflow-x`/`overscroll-behavior` NÃO ficam no `html` — em
   navegadores mobile (WebKit em especial), declarar `overflow` (mesmo só
   `overflow-x`) no elemento raiz `<html>` quebra a delegação nativa de
   "root scroller" e trava o scroll da página INTEIRA, não só o eixo
   horizontal (foi exatamente essa regressão). O bloqueio de scroll
   horizontal fica só no `body`, que não tem esse efeito colateral. */
html {
  scroll-behavior: smooth;
  background: var(--red-brand);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: 0.3px; }


/* ---------- Topbar ---------- */
.topbar { background: var(--red-brand); }
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.logo img { height: 26px; }
.main-nav { display: flex; gap: 28px; flex: 1; }
.nav-link { color: #ffffffcc; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.nav-link.active, .nav-link:hover { color: #fff; }
.nav-ico { font-size: 14px; }
/* Grupo de ações à direita do topbar: quando existe pedido ativo, o
   indicador "Pedido em andamento" ocupa esta posição sozinho (o acesso à
   conta é fisicamente movido para a linha do Delivery pelo JS em main.js,
   renderOrderIndicator() — não fica os dois aqui ao mesmo tempo). Sem
   pedido ativo, é só o acesso à conta que mora aqui. */
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.auth-actions { display: flex; gap: 10px; }
.auth-actions-guest { display: flex; gap: 10px; }
.auth-actions-guest[hidden] { display: none; }
.btn { border-radius: 24px; padding: 10px 20px; font-weight: 700; font-size: 14px; border: 2px solid transparent; white-space: nowrap; outline: none; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-filled { background: #fff; color: var(--red-brand); }

/* ---------- Menu de conta (header) ---------- */
.account-menu-wrap { position: relative; }
.account-btn { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.account-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); padding: 6px;
  min-width: 170px; z-index: 50;
}
.account-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 11px 14px; font-size: 14px; border-radius: 6px; color: var(--dark);
}
.account-menu button:hover { background: var(--bg-soft); }

/* ---------- Location bar ---------- */
.locationbar { background: var(--red-deep); border-top: 1px solid #ffffff22; }
.locationbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Duas linhas, cada uma com esquerda fixa + direita opcional:
   linha 1 = Delivery (+ "Minha conta"/"Criar conta" quando há pedido ativo,
   movido pra cá via JS em vez de ficar no topbar);
   linha 2 = Meus pedidos + carrinho (sempre juntos, carrinho à direita). */
.locationbar-top { display: flex; flex-direction: column; gap: 10px; }
.locationbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }

/* ---------- Mobile, deslogado OU logado (mesmo tratamento nos dois —
   :has() aceita lista, então cobre "existe #auth-actions-guest visível" OU
   "existe #auth-actions-user visível" sem duplicar todo o bloco): só
   "Entrar"/"Minha conta" migram pra linha do Delivery (relocateGuestLogin em
   main.js reparenta só esse controle; "Criar conta" nunca sai do topbar),
   Delivery/controle-de-conta distribuídos na mesma linha via o
   .locationbar-row{justify-content:space-between} de cima. Os pills (Criar
   conta/Entrar ou Minha conta/Meus pedidos + Delivery, que já é
   branco/vermelho por padrão via .mode-btn.active) usam exatamente o mesmo
   padding/font-size/font-weight de .my-orders-btn — mesma referência visual
   de tamanho pedida. */
@media (max-width: 480px) {
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) #btn-header-signup,
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) #btn-header-login,
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) #account-menu-toggle,
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .my-orders-btn {
    background: #fff;
    color: var(--red-deep);
    border-color: #fff;
    padding: 11px 20px;
    font-size: 16px;
    font-weight: 800;
  }
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar {
    background: #fff;
    padding: 9px 14px;
  }
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar-main,
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar-sub,
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar .pin-ico,
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar .chevron {
    color: var(--red-deep);
  }
  /* Fonte do endereço igual à de "Meus pedidos" (mesma família/peso, só o
     tamanho continua próprio do endereço). */
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar-main {
    font-family: var(--font-body);
    font-weight: 800;
  }
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .address-bar-sub {
    font-family: var(--font-body);
  }
  /* Fundo branco neste estado — o verde claro usado sobre o vermelho escuro
     (logado) não teria contraste suficiente aqui, então usa o mesmo verde
     escuro já aprovado no checkout (.coverage-ok/.coverage-shipping). */
  body:has(#auth-actions-guest:not([hidden]), #auth-actions-user:not([hidden])) .free-shipping-badge {
    color: #1c7d43;
  }
}
.mode-toggle {
  background: #ffffff22;
  border-radius: 999px;
  padding: 5px;
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.mode-btn { background: transparent; border: none; color: #fff; padding: 11px 24px; border-radius: 999px; font-weight: 800; font-size: 16px; outline: none; }
.mode-btn.active { background: #fff; color: var(--red-deep); }
.my-orders-btn {
  background: transparent; border: 1.5px solid #ffffff88; color: #fff;
  padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 16px;
  white-space: nowrap; flex-shrink: 0; outline: none;
}
.my-orders-btn:hover { background: #ffffff14; }
.chevron { opacity: 0.8; font-size: 12px; flex-shrink: 0; }
.cart-pill {
  margin-left: auto;
  flex-shrink: 0;
  background: #fff;
  color: var(--dark);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-pill-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cart-pill-text strong { font-size: 17px; }
.cart-pill-text small { font-size: 12px; color: #767676; }

/* Barra de endereço: linha própria, quase largura total, texto em destaque.
   Estilo base inalterado (usado também no estado logado). O refinamento
   (padding menor, ícone maior, peso da fonte igual ao de "Meus pedidos")
   fica só no bloco :has() mobile+deslogado logo abaixo — estado logado
   continua pixel-a-pixel como já era. */
.address-bar {
  width: 100%; background: #ffffff14; border: none; border-radius: 10px;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: #fff; text-align: left;
}
.address-bar:hover { background: #ffffff22; }
.address-bar-text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.address-bar-main { font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-bar-sub { font-size: 12px; color: #ffffffcc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-bar-sub[hidden] { display: none; }
/* "Frete grátis" — linha própria abaixo do endereço (nunca na mesma linha
   do texto branco, pra não brigar com a leitura do endereço). Curto o
   bastante pra nunca causar overflow horizontal em telas pequenas (320px+);
   só aparece com endereço real confirmado (ver main.js, renderLocationUI). */
.free-shipping-badge {
  color: #3ddc84; font-weight: 800; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.free-shipping-badge[hidden] { display: none; }
.pin-ico { line-height: 1; flex-shrink: 0; }
.cart-ico { font-size: 16px; }
/* Ícone de localização maior no mobile, nos dois estados (logado e
   deslogado) — antes só o estado deslogado tinha esse tamanho (via o bloco
   :has() de mobile+deslogado abaixo). Só o ícone muda; fonte do endereço e
   altura do bloco continuam exatamente como já estavam. */
@media (max-width: 480px) {
  .address-bar .pin-ico { font-size: 25px; }
}

/* ---------- Promo strip ---------- */
.promo-strip { background: var(--red-brand); padding: 28px 0 40px; }
.promo-strip-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.promo-strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.promo-strip-head h2 { color: #fff; font-size: 26px; }
.btn-pill-outline { background: #fff; color: var(--red-brand); border: none; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 14px; }
.promo-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
.promo-card { background: #fff; border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; border: none; }
.promo-card h3 { font-size: 15px; color: var(--red-deep); }
.promo-card .promo-more { border: 1.5px solid var(--red-deep); color: var(--red-deep); border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700; background: #fff; }
.promo-card img { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; }

/* ---------- Category tabs ---------- */
.category-tabs {
  background: var(--bg-page);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tabs-track { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px; }
.tabs-track::-webkit-scrollbar { display: none; }
.tab-pill {
  flex: 0 0 auto;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
}
.tab-pill.active { background: var(--red-brand); color: #fff; }
.tab-arrow {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #fff; color: var(--dark); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Category content ---------- */
.category-content { background: var(--bg-page); padding-bottom: 60px; min-height: 320px; }
.category-content-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
#category-title { font-size: 20px; margin-bottom: 20px; text-transform: none; letter-spacing: 0; }
.category-empty { color: #767676; padding: 40px 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* Faixa de oferta logo abaixo do endereço — é o primeiro texto que o lead lê
   depois de informar/ver o CEP, no momento em que já está decidido a pedir.
   Cartão branco com borda/selo vermelho (padrão da marca) pra parecer um
   benefício exclusivo liberado pra ele, não um banner genérico de topo. */
.pix-offer-banner {
  width: calc(100% - 32px);
  max-width: 560px;
  margin: 6px auto 0;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.pix-offer-badge {
  background: var(--red-btn);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(197, 3, 3, 0.3);
  animation: pixOfferPulse 1.8s ease-in-out infinite;
}
.pix-offer-text { color: var(--dark); font-weight: 800; font-size: 19px; }
@keyframes pixOfferPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 3, 3, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(197, 3, 3, 0); }
}
@media (max-width: 430px) {
  .pix-offer-banner { margin-top: 4px; gap: 5px 6px; padding: 9px 12px; }
  .pix-offer-badge { font-size: 15px; padding: 7px 14px; }
  .pix-offer-text { font-size: 16px; }
}
.product-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.product-card-media { display: flex; justify-content: center; padding: 16px 16px 0; }
.product-card-media img { width: 130px; height: 130px; object-fit: contain; }
.product-card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-body h3 { font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 700; font-family: var(--font-body); }
.product-card-body p { font-size: 13px; color: #6b6b6b; margin: 0; min-height: 32px; }
.product-card-footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; }
.price-block { display: flex; flex-direction: column; }
.price-label { font-size: 11px; color: #9a9a9a; }
.price-value { font-size: 16px; font-weight: 700; color: var(--dark); }
.price-original { font-size: 12px; color: #b0b0b0; text-decoration: line-through; }
.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--red-btn, #d71920);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 4px;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red-btn, #d71920);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  animation: pixOfferPulse 1.8s ease-in-out infinite;
}
.add-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red-btn); color: #fff; border: none; font-size: 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.add-btn:hover { background: var(--red-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 40px 20px 24px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { font-family: var(--font-body); text-transform: none; font-size: 16px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: #ddd; margin-bottom: 8px; }
.social-icons { display: flex; gap: 10px; }
.social-icons span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.footer-bottom { max-width: var(--max-width); margin: 24px auto 0; border-top: 1px solid #444; padding-top: 20px; display: flex; gap: 16px; align-items: flex-start; font-size: 12px; color: #999; }
.footer-logo { height: 40px; flex-shrink: 0; }
.footer-bottom-text { display: flex; flex-direction: column; gap: 8px; }
.footer-copyright { color: #777; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px;
}
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; position: relative; padding: 0 0 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; color: var(--red-deep); z-index: 2; }
.modal-body { display: flex; flex-direction: column; }
.modal-media { display: flex; justify-content: center; padding: 32px 32px 0; }
.modal-media img { width: 220px; height: 220px; object-fit: cover; border-radius: 8px; }
.modal-info { padding: 20px 32px 0; }
.modal-info h2 { font-family: var(--font-body); font-size: 20px; text-transform: none; letter-spacing: 0; }
.modal-info p { color: #6b6b6b; font-size: 14px; }
.modal-from { font-size: 12px; color: #9a9a9a; margin-top: 8px; }
.modal-price { font-size: 20px; font-weight: 700; }

.option-group {
  margin: 18px 32px 0; border-radius: 10px; overflow: hidden; border: 1px solid #eee;
  scroll-margin-top: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.option-group--attention { border-color: var(--red-btn); box-shadow: 0 0 0 3px rgba(197, 3, 3, 0.12); }
.option-group-head { background: var(--bg-soft); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.option-group-head strong { font-size: 14px; font-weight: 700; }
.badge-required { background: #f5e9b8; color: #7a6412; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.option-group-hint { font-size: 12px; color: #999; padding: 8px 16px 0; }
.option-group-message { color: var(--red-btn); font-size: 12px; font-weight: 700; padding: 8px 16px 0; margin: 0; }
.option-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid #f2f2f2; cursor: pointer;
}
.option-row:hover { background: #fafafa; }
.option-row--disabled { opacity: 0.45; cursor: not-allowed; }
.option-row--disabled:hover { background: none; }
.option-row-text strong { display: block; font-size: 14px; }
.option-row-text p { font-size: 12px; color: #888; margin: 2px 0 0; }
.option-row-extra { font-size: 12px; color: var(--red-deep); font-weight: 700; white-space: nowrap; }
.option-row input[type="radio"], .option-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red-deep); flex-shrink: 0; }
.option-row-qty { display: flex; align-items: center; gap: 8px; }

.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px 0; margin-top: 18px; gap: 16px; flex-wrap: wrap;
}
.qty-stepper { display: flex; align-items: center; gap: 12px; border: 1px solid #ddd; border-radius: 999px; padding: 4px 8px; }
.qty-stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 16px; }
.subtotal-block { text-align: right; }
.subtotal-block small { display: block; font-size: 11px; color: #999; }
.subtotal-block strong { font-size: 16px; }
.btn-add-cart { background: var(--red-btn); color: #fff; border: none; border-radius: 999px; padding: 12px 28px; font-weight: 700; font-size: 15px; }
.btn-add-cart:disabled { background: #ddd; color: #999; cursor: not-allowed; }

/* ---------- Modal de localização / checkout (formulários) ---------- */
.modal-location .modal-body, .modal-checkout .modal-body { padding: 32px; }
.modal-location h2, .modal-checkout h2 { font-family: var(--font-body); font-size: 20px; text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.loc-sub { color: #6b6b6b; font-size: 14px; margin: 0 0 20px; }
.entry-offer-row { text-align: center; margin-bottom: 14px; }
.entry-offer-row .pix-offer-badge { display: inline-block; }
.loc-message { background: #fdf1e3; color: #8a5a10; font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.loc-btn-primary {
  width: 100%; background: #fff; border: 2px solid var(--red-deep); color: var(--red-deep);
  border-radius: 999px; padding: 13px; font-weight: 700; font-size: 15px; margin-bottom: 18px;
}
.loc-btn-primary:disabled { opacity: 0.6; cursor: wait; }
.loc-divider { text-align: center; color: #9a9a9a; font-size: 13px; margin-bottom: 16px; position: relative; }
.loc-continue { width: 100%; margin-top: 6px; }
.loc-back { display: block; width: 100%; text-align: center; background: none; border: none; color: #888; font-size: 13px; margin-top: 12px; }
/* Opção de comprar sem criar conta — precisa competir visualmente com o
   botão principal (preenchido), não ficar com peso de link secundário tipo
   .loc-back: muitos leads abandonam o checkout justamente na tela de
   criar conta/senha, então essa alternativa precisa ser fácil de notar. */
.btn-guest-continue {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--red-btn);
  color: var(--red-btn);
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.05s;
}
.btn-guest-continue:hover:not(:disabled) { background: #fdf1f1; }
.btn-guest-continue:active:not(:disabled) { transform: scale(0.98); }
.btn-guest-continue:disabled { opacity: 0.6; cursor: wait; }
.checkout-section-title { font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: 0; margin: 22px 0 14px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.checkout-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.field-input {
  width: 100%; border: 1.5px solid #ddd; border-radius: 8px; padding: 11px 12px;
  font-size: 14px; font-family: inherit; color: var(--dark); background: #fff;
}
.field-input:focus { outline: none; border-color: var(--red-deep); }
.field-input.has-error { border-color: var(--red-btn); }
.field-error { color: var(--red-btn); font-size: 12px; margin-top: 5px; min-height: 14px; }
.field-hint { color: #999; font-size: 12px; margin-top: 5px; }
.field-row { display: flex; gap: 12px; }
.field-row .field-group { flex: 1; min-width: 0; }
.field-group-uf { flex: 0 0 76px; }

/* Campo de senha com botão mostrar/ocultar */
.password-field { position: relative; }
.password-field .field-input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px;
  background: none; border: none; font-size: 17px; color: #888;
  display: flex; align-items: center; justify-content: center;
}

/* Alternar entre telas de auth (Criar conta ⇄ Entrar) */
.auth-switch { font-size: 13px; color: #6b6b6b; text-align: center; margin: 16px 0 0; }
.auth-link { background: none; border: none; color: var(--red-deep); font-weight: 700; font-size: 13px; padding: 0; text-decoration: underline; }

/* Banner de erro/aviso genérico dentro dos modais (reaproveita .loc-message) */
.loc-message--error { background: #fdeaea; color: var(--red-btn); }

/* ---------- Modal de autenticação (refinamento visual do container) ---------- */
#auth-modal-overlay { background: rgba(0, 0, 0, 0.52); }
.modal-auth {
  max-width: 430px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
}
.modal-auth .modal-body { padding: 36px 32px 32px; }
.modal-auth h2#auth-modal-title { font-size: 22px; margin-bottom: 8px; }
.modal-auth .loc-sub { margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.modal-auth .field-group { margin-bottom: 18px; }
.modal-auth .field-input { border: 1px solid #d7d7d7; transition: border-color 0.15s, box-shadow 0.15s; }
.modal-auth .field-input:focus { box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }
.modal-auth .btn-add-cart { margin-top: 8px; height: 50px; transition: background-color 0.15s, transform 0.05s; }
.modal-auth .btn-add-cart:hover:not(:disabled) { background: var(--red-deep); }
.modal-auth .btn-add-cart:active:not(:disabled) { transform: scale(0.98); }
.modal-auth .auth-switch { margin-top: 24px; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 110; display: flex; justify-content: flex-end; }
.cart-overlay[hidden] { display: none; }
.cart-drawer { background: #fff; width: 100%; max-width: 400px; height: 100%; display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.cart-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cart-header h2 { font-family: var(--font-body); font-size: 18px; text-transform: none; flex: 1; }
.cart-close { background: none; border: none; font-size: 16px; color: var(--red-deep); }
.cart-clear { background: none; border: none; color: var(--red-deep); font-size: 13px; text-decoration: underline; }
.cart-store-chip { background: var(--bg-soft); border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cart-min-order-banner { background: #fff4e5; color: #8a5300; border: 1px solid #ffdca0; border-radius: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cart-min-order-note { font-size: 12px; color: #999; margin: 0 0 8px; text-align: center; }
.cart-items { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cart-item { display: flex; gap: 12px; border-bottom: 1px solid #f0f0f0; padding-bottom: 14px; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.cart-item-mods { font-size: 12px; color: #888; margin: 0; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item-price { font-weight: 700; font-size: 14px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #ddd; background: #fff; }
.cart-item-remove { background: none; border: none; color: #c50303; font-size: 14px; }
.cart-empty { color: #999; text-align: center; padding: 40px 0; }
.cart-footer { border-top: 1px solid #eee; padding-top: 16px; margin-top: 16px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.btn-checkout { width: 100%; background: var(--red-btn); color: #fff; border: none; border-radius: 999px; padding: 14px; font-weight: 700; font-size: 15px; }
.btn-checkout:disabled { background: #e2b3b3; cursor: not-allowed; }

/* ---------- Indicador "Pedido em andamento" (locationbar) ---------- */
.order-indicator {
  background: #fff; color: var(--red-deep); border: none; border-radius: 999px;
  padding: 11px 18px; display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; white-space: nowrap;
}
.order-indicator:hover { background: #ffe9ec; }
.order-indicator[hidden] { display: none; }
.order-indicator-dot { color: var(--red-btn); font-size: 11px; }

/* ---------- Checkout: bloco de cobertura / revisão / pagamento ---------- */
.coverage-block { background: #eef8f1; border: 1px solid #cdeed8; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.coverage-ok { color: #1c7d43; font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.coverage-eta { color: #4c8064; font-size: 13px; margin: 0; }
.coverage-shipping { color: #1c7d43; font-weight: 700; font-size: 13px; margin: 4px 0 0; }
.confirm-block-sub.free-shipping-tag { color: #1c7d43; font-weight: 700; }

.review-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.review-item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f2f2f2; padding-bottom: 12px; }
.review-item > div:first-child { min-width: 0; flex: 1; }
.review-item > strong { flex-shrink: 0; white-space: nowrap; }
.review-item-mods { font-size: 12px; color: #888; margin: 2px 0 0; }
.review-block { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.review-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding: 14px 0 6px; }

.payment-method-card {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--red-deep);
  border-radius: 12px; padding: 16px; margin-bottom: 18px; background: var(--bg-soft);
}
.payment-pix-badge { background: var(--red-btn); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.payment-method-sub { color: #6b6b6b; font-size: 14px; }
.payment-total-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 18px; }

.pix-qr-image { width: 200px; height: 200px; margin: 0 auto 12px; border-radius: 10px; border: 1px solid #eee; display: block; background: #fff; }
.pix-qr-hint { color: #6b6b6b; font-size: 13px; margin: 0 0 4px; text-align: center; }

/* Painel de Pix (copia-e-cola + validade) — componente único reaproveitado
   no checkout, em "Meus pedidos" e em "Acompanhar pedido" (ver
   assets/js/utils.js, PHUtils.renderPixCodeBlock). O código nunca é
   cortado: fica inteiro numa textarea rolável, nunca reticenciado.
   Padrão visual branco+vermelho da marca: card com fundo suave e borda
   vermelha, igual ao .payment-method-card logo acima dele. */
.pix-panel {
  text-align: left; background: var(--bg-soft); border: 1.5px solid var(--red-deep);
  border-radius: 14px; padding: 18px 16px;
}

/* Selo de contagem regressiva no checkout (showIntro=true) — é o elemento
   mais chamativo do painel de propósito: a urgência do prazo é o que
   segura o cliente até o clique em "Copiar código Pix" em vez de sair
   pra resolver outra coisa e perder o pedido. */
.pix-timer-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red-btn); color: #fff; border-radius: 999px;
  padding: 10px 16px; margin-bottom: 16px; text-align: center;
  box-shadow: 0 4px 14px rgba(197, 3, 3, 0.28);
}
.pix-timer-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.pix-timer-text { font-size: 13px; font-weight: 700; line-height: 1.3; }
.pix-timer-badge .pix-countdown { color: #fff; font-size: 15px; }
.pix-timer-badge.pix-timer-urgent {
  background: var(--dark);
  animation: pixTimerPulse 1s ease-in-out infinite;
}
@keyframes pixTimerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 31, 32, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(35, 31, 32, 0); }
}

/* Selo compacto usado fora do checkout (showIntro=false — "Meus pedidos" e
   "Acompanhar pedido"): mesmo dado, sem o banner grande. */
.pix-countdown-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: #6b6b6b; }
.pix-countdown-row.pix-timer-urgent .pix-countdown { color: var(--dark); }
.pix-countdown { font-size: 20px; font-weight: 800; color: var(--red-btn); font-variant-numeric: tabular-nums; }

.pix-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; color: #9a9a9a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.pix-divider::before, .pix-divider::after { content: ""; flex: 1; height: 1px; background: #e6d9db; }

.pix-panel-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; margin: 0 0 8px; }
.pix-code-scroll { margin-bottom: 12px; }
.pix-code-textarea {
  width: 100%; resize: none; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px; line-height: 1.5; padding: 10px 12px; border: 1.5px solid var(--red-deep); border-radius: 10px;
  background: #fff; color: var(--dark); overflow-wrap: anywhere; white-space: pre-wrap;
}
.pix-copy-btn { width: 100%; padding: 12px 18px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pix-copy-btn:disabled { background: #ccc; color: #888; cursor: not-allowed; opacity: 1; }
.pix-copy-icon { font-size: 16px; line-height: 1; }
/* Código Pix vencido: campo visualmente inativo (sem apagar o texto — só
   sinaliza que não serve mais pra pagar), nunca clicável/copiável. */
.pix-code-textarea:disabled,
.pix-code-textarea--expired {
  background: #ececec; color: #999; border-color: #e2e2e2; cursor: not-allowed;
}
.pix-trust-note { color: #6b6b6b; font-size: 12px; font-weight: 600; text-align: center; margin: 4px 0 0; }
.pix-expired-block { text-align: center; margin-top: 4px; }
.pix-expired-title { color: var(--red-btn); font-weight: 800; font-size: 15px; letter-spacing: 0.3px; margin: 0 0 4px; }
.pix-expired-msg { color: #6b6b6b; font-weight: 600; font-size: 13px; text-align: center; margin: 0; }

.order-card-pix-area { margin-top: 12px; border-top: 1px solid #f2f2f2; padding-top: 12px; }
.order-pix-area { margin-top: 16px; }

/* ---------- Checkout: "Confirme seus dados" (cliente já cadastrado) ---------- */
.confirm-block { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.confirm-block-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.confirm-block-head span { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.confirm-change-btn { background: none; border: none; color: var(--red-deep); font-weight: 700; font-size: 13px; text-decoration: underline; flex-shrink: 0; }
.confirm-block-value { font-size: 15px; font-weight: 700; margin: 0; }
.confirm-block-sub { font-size: 13px; color: #888; margin: 4px 0 0; }

/* ---------- Checkout: seletor de endereços ---------- */
.address-picker-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.address-picker-item {
  display: flex; align-items: flex-start; gap: 10px; border: 1.5px solid #eee; border-radius: 10px;
  padding: 12px 14px; cursor: pointer;
}
.address-picker-item:has(input:checked) { border-color: var(--red-deep); background: var(--bg-soft); }
.address-picker-item input[type="radio"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red-deep); flex-shrink: 0; }
.address-picker-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.address-picker-item-text strong { font-size: 14px; font-weight: 600; }
.address-picker-default-tag { display: inline-block; background: var(--red-brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.address-picker-item-ref { font-size: 12px; color: #999; }
.address-picker-edit-btn { background: none; border: none; color: var(--red-deep); font-size: 12px; font-weight: 700; text-decoration: underline; flex-shrink: 0; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red-deep); }

/* ---------- Minha conta / Meus pedidos / Acompanhar pedido ---------- */
.account-page { background: var(--bg-page); min-height: 60vh; padding-bottom: 60px; }
.account-page-header {
  background: #fff; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 5;
}
.account-page-header h1 { font-family: var(--font-body); font-size: 18px; text-transform: none; letter-spacing: 0; }
.back-btn { background: none; border: none; color: var(--red-deep); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.account-page-inner { max-width: 720px; margin: 0 auto; padding: 24px 20px 0; display: flex; flex-direction: column; gap: 28px; }
.section-title { font-family: var(--font-body); font-size: 15px; text-transform: none; letter-spacing: 0; margin: 0 0 14px; }

.account-card { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.account-info-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.account-info-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.account-info-list dt { color: #888; margin: 0; }
.account-info-list dd { margin: 0; font-weight: 700; text-align: right; }

.orders-block + .orders-block { margin-top: 22px; }
.orders-block-title { font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 10px; font-family: var(--font-body); font-weight: 700; }
.orders-empty { color: #999; font-size: 14px; }

.order-card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 12px; }
.order-card--active { border: 1.5px solid var(--red-deep); box-shadow: 0 6px 20px rgba(200,16,46,0.12); }
.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.order-card-head strong { font-size: 15px; }
.order-status-pill { background: var(--bg-soft); color: var(--dark); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.order-status-pill--active { background: var(--red-brand); color: #fff; }
.order-card-eta, .order-card-date { font-size: 13px; color: #888; margin: 0 0 12px; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-card-foot strong { font-size: 15px; }
.order-card-reorder-btn { margin-top: 10px; font-weight: 700; color: var(--red-deep); }
.order-card-btn { padding: 10px 18px; font-size: 13px; }

.order-headline { text-align: center; }
.order-headline h2 { font-family: var(--font-body); font-size: 19px; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.order-headline p { color: #6b6b6b; font-size: 14px; margin: 0; }
.order-eta-exceeded { color: #8a5a10; background: #fdf1e3; padding: 8px 14px; border-radius: 8px; font-size: 13px; margin: 10px 0 0; }

.order-timeline { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); padding: 20px 20px 4px; }
.timeline-step { position: relative; padding-left: 32px; padding-bottom: 22px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: #e5e5e5; }
.timeline-step:last-child::before { display: none; }
.timeline-step--done::before { background: var(--red-deep); }
.timeline-dot {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  background: #fff; border: 2px solid #ddd; color: #bbb;
}
.timeline-step--done .timeline-dot { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.timeline-step--current .timeline-dot { background: #fff; border-color: var(--red-deep); color: var(--red-deep); }
.timeline-label { font-size: 14px; line-height: 20px; color: #999; }
.timeline-step--done .timeline-label, .timeline-step--current .timeline-label { color: var(--dark); font-weight: 700; }
.timeline-time { color: #999; font-weight: 400; font-size: 12px; }

.order-meta { display: flex; gap: 24px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.order-meta div { display: flex; flex-direction: column; gap: 4px; }
.order-meta span { font-size: 12px; color: #888; }
.order-meta strong { font-size: 14px; }

.order-address, .order-summary { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.order-address p { margin: 0; font-size: 14px; color: var(--dark); }
.order-address-ref { color: #888; font-size: 13px; margin-top: 4px; }

.order-summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.order-summary-item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #f2f2f2; padding-bottom: 12px; }
.order-summary-item > div:first-child { min-width: 0; flex: 1; }
.order-summary-item > strong { flex-shrink: 0; white-space: nowrap; }
.order-summary-item:last-child { border-bottom: none; padding-bottom: 0; }
.order-summary-mods { font-size: 12px; color: #888; margin: 2px 0 0; }
.order-summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; border-top: 1px solid #eee; padding-top: 12px; margin-bottom: 8px; }
.order-summary-payment { color: #888; font-size: 13px; margin: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  background: #d7f3ec; color: #0a5c46; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; z-index: 200; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.toast[hidden] { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* font-size 16px evita zoom automático do iOS ao focar um input; min-height
     garante alvo de toque confortável (~44px) em todos os formulários. */
  .field-input { font-size: 16px; min-height: 44px; }
  .password-toggle { width: 44px; }
  .account-menu button { min-height: 44px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .locationbar-inner { gap: 8px; padding: 10px 16px; }
}
@media (max-width: 560px) {
  .locationbar-top, .locationbar-status { gap: 8px; }
  .cart-pill { gap: 8px; }
}
/* Só em telas bem estreitas (iPhone SE etc.) reduz levemente — continua
   maior que o padrão anterior do header, nunca volta a ficar minúsculo. */
@media (max-width: 360px) {
  .mode-btn { padding: 10px 18px; font-size: 15px; }
  .my-orders-btn { padding: 10px 16px; font-size: 15px; }
  .order-indicator { padding: 10px 14px; font-size: 14px; }
  .cart-pill { padding: 9px 14px; }
  /* Delivery + Entrar dividindo a mesma linha (mobile deslogado): só aqui,
     reduz o suficiente pra caber os dois numa linha só. */
  .locationbar-row-delivery .mode-btn { padding: 9px 14px; font-size: 14px; }
  body:has(#auth-actions-guest:not([hidden])) #btn-header-signup,
  body:has(#auth-actions-guest:not([hidden])) #btn-header-login {
    padding: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .topbar-inner { gap: 12px; padding: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-strip-head h2 { font-size: 20px; }
  .modal-media img { width: 160px; height: 160px; }
  .modal-media, .modal-info, .option-group, .modal-footer { padding-left: 16px; padding-right: 16px; }
  .cart-drawer { max-width: 100%; }
  .modal-location .modal-body, .modal-checkout .modal-body { padding: 20px; }
  .field-row { flex-direction: column; gap: 0; }
  .field-group-uf { flex: 1; }
  .modal-auth {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
  }
  .modal-auth .modal-body { padding: 28px 20px 24px; }
}
/* Barra "Adicionar" fixa no rodapé, só no mobile: a personalização de pizza
   é longa (15 sabores x2) e o botão ficava fora da viewport ao rolar. Só
   afeta o modal de produto (#product-modal) — localização/checkout não usam
   .modal-footer, então não são alterados. Desktop mantém o rodapé inline
   original (fidelidade visual preservada). */
@media (max-width: 768px) {
  #product-modal .modal-body { padding-bottom: 96px; }
  #product-modal .modal-footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
    z-index: 20;
  }
}
