/* Loja Hiper Pague Menos — layout "B" (app de entrega). Celular primeiro; no computador, lateral de categorias e resumo ao lado. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fontes/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fontes/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --azul: #0b2fa3; --azul-esc: #08227a; --azul-claro: #e8eefc; --verm: #e30613; --verm-txt: #c8000f; --fundo: #f6f7fa; --texto: #1b2230; --cinza: #4a5468;
  --cinza-claro: #f1f3f7; --linha: #e6e9f0; --verde: #12813f; --laranja-fundo: #fff4e5; --laranja: #7a2e0e; --raio: 16px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--texto); background: #fff; padding-bottom: 92px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f5b800; outline-offset: 2px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--verm); }
.topo-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "marca carrinho" "busca busca"; gap: 10px 12px; align-items: center; }
.marca { grid-area: marca; } .marca img { display: block; height: 40px; width: auto; }
.busca { grid-area: busca; display: flex; align-items: center; gap: 10px; background: var(--cinza-claro); border-radius: 12px; height: 46px; padding: 0 14px; color: var(--cinza); }
.busca input { flex: 1; border: 0; min-width: 0; outline: none; background: transparent; font-size: 16px; color: var(--texto); }
.btn-carrinho { grid-area: carrinho; position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: var(--azul-claro); color: var(--azul); height: 44px; min-width: 44px; padding: 0 12px; border-radius: 22px; font-weight: 700; font-size: 14px; }
.carrinho-txt { display: none; }
.contador { position: absolute; top: -4px; right: -4px; background: var(--verm); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
@media (min-width: 960px) {
  .topo-in { grid-template-columns: auto 1fr auto; grid-template-areas: "marca busca carrinho"; gap: 24px; padding: 14px 24px; }
  .marca img { height: 46px; }
  .busca { height: 48px; }
  .btn-carrinho { background: var(--verm); color: #fff; height: 48px; padding: 0 20px; border-radius: 24px; font-size: 15px; }
  .carrinho-txt { display: inline; } .contador { display: none !important; }
}

main { max-width: 1240px; margin: 0 auto; padding: 16px; }
main.estreita { max-width: 760px; }
@media (min-width: 960px) { main { padding: 24px; } }
.carregando, .vazio { text-align: center; color: var(--cinza); padding: 40px 12px; }
.faixa { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; background: var(--laranja-fundo); color: var(--laranja); }

/* Início: lateral (computador) + conteúdo */
.inicio { display: flex; gap: 28px; align-items: flex-start; }
.conteudo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lateral { display: none; }
@media (min-width: 960px) {
  .lateral { display: flex; flex-direction: column; gap: 2px; flex: 0 0 240px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .lateral h2 { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--cinza); text-transform: uppercase; margin: 0 0 8px 12px; }
  .lateral button, .lateral a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 600; font-size: 15px; color: var(--texto); text-decoration: none; }
  .lateral button:hover, .lateral a:hover { background: var(--cinza-claro); }
  .lateral button.ativa { background: var(--azul-claro); color: var(--azul); font-weight: 700; }
  .lateral .ini, .lateral .pct { flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--cinza-claro); color: var(--azul); }
  .lateral .pct { background: var(--verm); color: #fff; }
  .lateral .lat-oferta { color: var(--verm-txt); font-weight: 700; }
  .cats { display: none !important; }
}
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scroll-padding-inline: 16px; scrollbar-width: none; }
.cats button { flex: none; height: 40px; border: 1px solid #d0d6e2; background: #fff; border-radius: 20px; padding: 0 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cats button.ativa { background: var(--azul); border-color: var(--azul); color: #fff; }

.banner { background: var(--azul); color: #fff; border-radius: 20px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.banner > div { display: flex; flex-direction: column; gap: 6px; }
.banner .etq { align-self: flex-start; background: var(--verm); font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 4px 9px; border-radius: 6px; }
.banner strong { font-size: 20px; line-height: 1.25; }
.banner small { font-size: 14px; color: #d6defa; }
.btn-claro { height: 44px; padding: 0 20px; border-radius: 22px; background: #fff; color: var(--azul); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
@media (min-width: 960px) { .banner { padding: 26px 32px; } .banner strong { font-size: 26px; } }

.secao { display: flex; flex-direction: column; gap: 12px; }
.secao-topo { display: flex; justify-content: space-between; align-items: baseline; }
.secao-topo h2 { font-size: 20px; font-weight: 800; }
.trilho { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: thin; }
.trilho .card { flex: 0 0 148px; scroll-snap-align: start; }
@media (min-width: 960px) { .trilho { margin: 0; padding: 2px 0 8px; } .trilho .card { flex-basis: 176px; } }

.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
@media (min-width: 620px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; } }
@media (min-width: 1240px) { .grade { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Card de produto */
.card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foto-caixa { position: relative; margin-bottom: 4px; }
.foto { aspect-ratio: 1 / 1; border-radius: var(--raio); background: var(--cinza-claro); display: grid; place-items: center; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: contain; }
.foto span { font-size: 34px; font-weight: 800; color: #c5ccd9; }
.selo { position: absolute; top: 8px; left: 8px; background: var(--verm); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .acao { position: absolute; right: 8px; bottom: 8px; left: 8px; display: flex; justify-content: flex-end; }
.add { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--azul); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(16, 24, 40, .25); }
.add:hover { background: var(--azul-esc); }
.card .passo { width: 100%; box-shadow: 0 3px 10px rgba(16, 24, 40, .2); background: #fff; }
.precos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.preco { font-size: 18px; font-weight: 800; color: var(--texto); }
.preco.promo { color: var(--verm-txt); }
.un { font-size: 12px; color: var(--cinza); font-weight: 500; }
.de { font-size: 12px; color: var(--cinza); }
.nome { font-size: 14px; font-weight: 500; line-height: 1.3; color: #344054; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leve { font-size: 12px; color: var(--verde); font-weight: 600; }

/* Botões e controles */
.btn { display: block; width: 100%; border: 0; border-radius: 26px; background: var(--azul); color: #fff; font-weight: 700; padding: 0 18px; min-height: 48px; text-align: center; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--azul-esc); }
.btn:disabled { background: #c9cfdb; color: #fff; cursor: not-allowed; }
.btn.sec { background: #fff; color: var(--azul); border: 1.5px solid #c9d2e3; }
.btn.grande { min-height: 54px; font-size: 16px; }
.passo { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: var(--azul-claro); border-radius: 22px; height: 44px; }
.passo button { border: 0; background: none; color: var(--azul); font-size: 22px; font-weight: 700; height: 44px; line-height: 1; }
.passo span { text-align: center; font-weight: 700; font-size: 14px; color: var(--azul); }
.mais { margin: 0 auto; max-width: 320px; }
.voltar { background: none; border: 0; color: var(--azul); font-weight: 600; padding: 4px 0 14px; min-height: 44px; }

/* Painéis (carrinho, finalizar, pedido) */
.painel { background: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--linha); }
.painel h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.painel-topo h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; } .painel-topo small { font-size: 15px; font-weight: 500; color: var(--cinza); }
main.estreita, main.larga:has(.duas) { background: transparent; }
body:has(main.estreita), body:has(.duas) { background: var(--fundo); }
.duas { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.duas > .lista-carrinho { flex: 999 1 520px; min-width: 0; margin: 0; }
.duas > .resumo { flex: 1 1 320px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 960px) { .duas > .resumo { position: sticky; top: 100px; max-width: 400px; } }
.item { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding: 14px 0; border-top: 1px solid #eef0f4; }
.item .foto { width: 64px; flex: none; border-radius: 12px; } .item .foto span { font-size: 22px; }
.item-info { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.item-info b { font-size: 15px; font-weight: 600; }
.item-acoes { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.item-acoes .passo { width: 140px; }
.item-total { font-weight: 800; min-width: 86px; text-align: right; } .item-total.promo { color: var(--verm-txt); }
.remover { background: none; border: 0; color: #b42318; font-size: 13px; font-weight: 600; padding: 4px 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cinza-claro); border-radius: 12px; padding: 4px; }
.seg button { height: 44px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 15px; color: var(--cinza); }
.seg button.ativa { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--azul); font-weight: 700; }
.seg button:disabled { opacity: .45; }
.falta { display: flex; flex-direction: column; gap: 6px; background: var(--laranja-fundo); color: var(--laranja); border-radius: 12px; padding: 12px; font-size: 14px; }
.falta small { font-size: 13px; }
.barra-prog { height: 6px; background: #fde3c4; border-radius: 3px; overflow: hidden; } .barra-prog div { height: 100%; background: #b54708; border-radius: 3px; }
.linha-total { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.linha-total.verde { color: var(--verde); }
.linha-total.forte { font-size: 20px; font-weight: 800; border-top: 1px solid #eef0f4; margin-top: 6px; padding-top: 12px; }
.nota { font-size: 13px; color: var(--cinza); margin-top: 8px; } .nota.centro { text-align: center; margin-top: 0; }
.alerta { background: #fdeaea; color: #8f0b12; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 10px 0; }

.modo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cinza-claro); border-radius: 12px; padding: 4px; }
.modo button { border: 0; background: transparent; border-radius: 9px; min-height: 44px; padding: 8px; font-weight: 600; color: var(--cinza); }
.modo button.ativa { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--azul); font-weight: 700; }
.modo button:disabled { opacity: .45; }
label.campo { display: block; font-size: 14px; font-weight: 600; margin-top: 12px; }
label.campo small { font-weight: 400; color: var(--cinza); }
label.campo input, label.campo textarea { display: block; width: 100%; margin-top: 5px; border: 1.5px solid #d0d6e2; border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 16px; }
label.campo input:focus, label.campo textarea:focus { border-color: var(--azul); outline: none; box-shadow: 0 0 0 3px var(--azul-claro); }
.dupla { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

.status { text-align: center; }
.status .rot { display: inline-block; background: var(--azul); color: #fff; font-weight: 800; padding: 7px 16px; border-radius: 999px; }
.status .rot.fim { background: var(--verde); } .status .rot.canc { background: var(--cinza); }
.status p { margin-top: 10px; }
.codigo { border: 2px dashed var(--azul); border-radius: 16px; text-align: center; padding: 14px; margin-top: 14px; }
.codigo small { display: block; font-size: 12px; text-transform: uppercase; color: var(--cinza); font-weight: 700; }
.codigo b { font-size: 38px; letter-spacing: 6px; color: var(--azul-esc); }
.trilha { list-style: none; margin: 0; padding: 0; }
.trilha li { display: flex; justify-content: space-between; padding: 7px 0 7px 20px; position: relative; font-size: 14px; }
.trilha li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); }
.trilha time { color: var(--cinza); }
.riscado { text-decoration: line-through; color: var(--cinza); }
.tag { font-size: 11px; font-weight: 700; background: #fdeaea; color: #8f0b12; border-radius: 6px; padding: 2px 7px; margin-left: 6px; text-decoration: none; display: inline-block; }

/* Barra do carrinho (celular) */
.barra-carrinho { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.barra-carrinho button { pointer-events: auto; display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 560px; margin: 0 auto; border: 0; border-radius: 28px; background: var(--verm); color: #fff; height: 56px; padding: 0 22px; font-size: 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(227, 6, 19, .35); }
@media (min-width: 960px) { .barra-carrinho { display: none !important; } body { padding-bottom: 24px; } }
.aviso { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #1b2230; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 40; max-width: 90vw; text-align: center; }
.rodape { text-align: center; font-size: 13px; color: var(--cinza); padding: 24px 12px 8px; }
.rodape a { color: var(--azul); font-weight: 600; }

/* Modo demonstração */
.faixa-demo { background: #1b2230; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px; }
.faixa-demo b { color: #ffd34d; }

/* Pagamento */
.pix h2 { text-align: center; }
.pix-valor { text-align: center; font-size: 28px; font-weight: 800; color: var(--azul-esc); }
.pix-qr { display: block; margin: 12px auto; width: 240px; height: 240px; border: 1px solid var(--linha); border-radius: 12px; image-rendering: pixelated; }
.pix-cod { width: 100%; font: 13px/1.35 ui-monospace, Consolas, monospace; border: 1.5px solid #d0d6e2; border-radius: 12px; padding: 10px; margin: 8px 0; resize: none; word-break: break-all; }
.pix-espera { text-align: center; font-weight: 700; color: var(--azul); margin-top: 12px; }
