/* ============ Site do cliente (cardápio, sacola, pedido) ============ */
.app { max-width: 600px; margin: 0 auto; padding: 12px 0 calc(150px + env(safe-area-inset-bottom)); min-height: 100vh; }

/* Banner */
.capa { aspect-ratio: 3 / 1; margin: 0 12px; border-radius: var(--vidro-raio); overflow: hidden;
  background: #001219 url('/img/capa-sih.jpg') center / cover no-repeat; box-shadow: 0 12px 28px rgba(0, 18, 25, .18); }

/* Cartão da loja (vidro) */
.loja-info { position: relative; margin: 14px 12px 0; border-radius: var(--vidro-raio); padding: 18px 20px; z-index: 2;
  background: rgba(var(--vidro-cor), var(--vidro-opacidade)); -webkit-backdrop-filter: blur(var(--vidro-blur)) saturate(160%); backdrop-filter: blur(var(--vidro-blur)) saturate(160%);
  box-shadow: 0 8px 12px rgba(var(--vidro-sombra-cor), .06); }
.loja-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.loja-logo { width: 84px; height: 84px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 18, 25, .18)); }
.loja-info h1 { font-size: 24px; color: var(--navy); letter-spacing: -.02em; }
.loja-info .slogan { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.pilulas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13.5px; color: var(--muted); }
.pilula { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; color: inherit; white-space: nowrap; }
.pilula + .pilula::before { content: '·'; margin: 0 10px; color: var(--border); font-weight: 700; }
.pilula:first-child { font-weight: 700; color: var(--teal); }
.pilula .ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pilula.fechado { color: var(--bordo); }
.pilula.fechado .ponto { background: var(--bordo); }
.pilula.link { cursor: pointer; color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.pilula.link:hover { text-decoration-color: var(--navy); }
.pilula.link { justify-content: flex-start; }
.links-loja { flex-basis: 100%; display: flex; gap: 20px; margin-top: 8px; }
.pilula.link::before { display: none; }

.aviso { margin: 14px 12px 0; padding: 13px 18px; border-radius: 16px; background: var(--navy); color: var(--creme); font-weight: 500; font-size: 14.5px; }

/* Barra de categorias (pílulas sobre vidro) */
.nav-cat { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 12px; margin-top: 20px; scrollbar-width: none; transition: box-shadow .2s, background .2s; }
.nav-cat::-webkit-scrollbar { display: none; }
.nav-cat.grudado { background: rgba(var(--vidro-cor), .72); -webkit-backdrop-filter: blur(var(--vidro-blur)) saturate(160%); backdrop-filter: blur(var(--vidro-blur)) saturate(160%);
  box-shadow: 0 8px 12px rgba(var(--vidro-sombra-cor), .06); }
.nav-cat a { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted);
  background: rgba(var(--vidro-cor), .6); box-shadow: inset 0 0 0 1px var(--border); transition: .15s; }
.nav-cat a.ativo { background: var(--primary); color: var(--creme); box-shadow: none; }

/* Seções */
.categoria { padding: 4px 12px 0; scroll-margin-top: 66px; }
.categoria > h2 { font-size: 22px; color: var(--primary); margin: 20px 4px 14px; }
.categoria > h2::before { content: 'Cardápio'; display: block; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-mid); margin-bottom: 6px; }

/* Cartão de produto (vidro) */
.produto-card {
  display: flex; gap: 14px; width: 100%; text-align: left; border: 0; border-radius: 24px; padding: 16px; margin-bottom: 12px; position: relative;
  background: rgba(var(--vidro-cor), var(--vidro-opacidade)); -webkit-backdrop-filter: blur(var(--vidro-blur-fino)) saturate(160%); backdrop-filter: blur(var(--vidro-blur-fino)) saturate(160%);
  box-shadow: 0 8px 12px rgba(var(--vidro-sombra-cor), .06); transition: transform .12s, box-shadow .2s;
}
.produto-card:hover { box-shadow: 0 12px 24px rgba(var(--vidro-sombra-cor), .1); }
.produto-card:active { transform: scale(.985); }
.produto-card .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.produto-card h3 { font-size: 17px; color: var(--ink); }
.produto-card p { margin: 4px 0 10px; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.produto-card .valor { margin-top: auto; display: flex; align-items: baseline; gap: 6px; }
.produto-card .valor .preco { font-size: 18px; }
.produto-card .valor small { color: var(--muted); font-size: 11.5px; }
.produto-card .foto { width: 96px; height: 96px; flex: none; border-radius: 16px; object-fit: cover; background: var(--bg-alt); }
.produto-card .add { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--creme);
  display: grid; place-items: center; font-size: 21px; font-weight: 600; box-shadow: 0 6px 14px rgba(193, 18, 31, .35); }
.produto-card.esgotado { opacity: .55; }
.produto-card.esgotado .add { background: var(--muted); font-size: 11px; width: auto; padding: 0 10px; border-radius: 99px; height: 26px; box-shadow: none; }
.qtd-sacola { position: absolute; top: 10px; right: 10px; background: var(--primary); color: var(--creme); font-weight: 700; font-size: 11.5px; border-radius: 99px; padding: 3px 9px; }

.fechado-cartao { text-align: center; padding: 24px 20px; margin: 14px 12px 0; }
.fechado-cartao .grande { font-size: 38px; }
.fechado-cartao h3 { color: var(--primary); }

/* Folha do produto */
.sheet-produto .capa-produto { position: relative; height: 210px; flex: none; border-radius: var(--vidro-raio) var(--vidro-raio) 0 0; overflow: hidden; background: var(--bg-alt); }
.sheet-produto .capa-produto img { width: 100%; height: 100%; object-fit: cover; }
.sheet-produto .capa-produto .btn-icone { position: absolute; top: 14px; right: 14px; background: rgba(255, 250, 240, .94); }
.sheet-produto .sheet-topo { padding-top: 16px; }
.sheet-produto .sheet-topo::before { display: none; }
.sheet-produto #prod-nome { font-size: 24px; }
.grupo { margin: 20px 0 0; border-radius: 20px; overflow: hidden; background: rgba(var(--vidro-cor), .7); box-shadow: inset 0 0 0 1px var(--border); }
.grupo-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--primary-tint); padding: 12px 16px; }
.grupo-cab b { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: block; color: var(--primary); }
.grupo-cab small { color: var(--muted); font-size: 12.5px; }
.selo { font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--creme); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.selo.opcional { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.selo.ok { background: var(--teal); }
.opcao-linha { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--border); cursor: pointer; }
.opcao-linha:hover { background: rgba(var(--vidro-cor), .8); }
.opcao-linha .nome { flex: 1; }
.opcao-linha .nome b { display: block; font-weight: 600; }
.opcao-linha .nome small { color: var(--muted); font-size: 12.5px; }
.opcao-linha input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.opcao-linha.riscado:has(input:checked) .nome b { text-decoration: line-through; color: var(--brand); }
.opcao-linha.desabilitado { opacity: .45; cursor: not-allowed; }
.obs-produto { margin-top: 18px; }

/* Barra da sacola */
.barra-sacola {
  position: fixed; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(576px, calc(100% - 24px)); z-index: 40; display: flex; align-items: center; justify-content: space-between;
  background: var(--primary); color: var(--creme); border: 0; border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: 0 14px 32px rgba(0, 48, 73, .35); font-weight: 600; font-size: 15px; animation: sobe .3s ease;
}
@keyframes sobe { from { transform: translate(-50%, 30px); opacity: 0; } }
.barra-sacola .contador { background: rgba(253, 240, 213, .18); color: var(--creme); border-radius: 999px; padding: 2px 9px; margin-right: 10px; font-weight: 700; }
.barra-sacola .valor { font-family: var(--font-display); font-size: 16px; font-weight: 800; background: var(--vermelho); color: var(--creme); padding: 10px 16px; border-radius: 999px; }

/* Sacola e finalização */
.item-sacola { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.item-sacola img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: none; }
.item-sacola .txt { flex: 1; min-width: 0; }
.item-sacola h4 { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.item-sacola small { display: block; color: var(--muted); font-size: 12.5px; }
.item-sacola .sem { color: var(--brand); font-weight: 600; }
.linha-total { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14.5px; color: var(--quote); }
.linha-total.grande { font-size: 20px; font-family: var(--font-display); font-weight: 800; color: var(--ink); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border); }
.linha-total.grande .preco { color: var(--primary); }
.vazio { text-align: center; padding: 30px 10px; color: var(--muted); }
.vazio div { font-size: 44px; }
#form-checkout .cartao { border-radius: 20px; padding: 14px 18px; }

.info-linha { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.info-linha:last-child { border-bottom: 0; }
.info-linha span:first-child { width: 36px; height: 36px; border-radius: 12px; background: var(--primary-tint); color: var(--navy); display: grid; place-items: center; font-size: 18px; flex: none; }
.info-linha b { display: block; font-family: var(--font-display); }

.rodape-loja { text-align: center; color: var(--muted); font-size: 12.5px; margin: 36px 16px 0; }
.rodape-loja a { font-weight: 700; }

/* ============ Página do pedido ============ */
.pedido-topo { text-align: center; padding: 18px 20px 6px; }
.pedido-topo img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 18, 25, .18)); }
.pedido-topo h1 { font-size: 28px; margin-top: 10px; color: var(--primary); }
.pedido-topo p { font-size: 11px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-mid) !important; margin-top: 8px; }
.cartao + .cartao { margin-top: 14px; }
.cartao h3 { color: var(--primary); }
.pix-box { text-align: center; }
.pix-box .qr { width: 240px; max-width: 100%; border-radius: 20px; background: var(--creme); padding: 12px; box-shadow: inset 0 0 0 1px var(--border); }
.pix-box .valor-pix { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--ink); margin: 6px 0; font-variant-numeric: tabular-nums; }
.copia-cola { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; background: rgba(var(--vidro-cor), .7); box-shadow: inset 0 0 0 1px var(--border); border-radius: 14px; padding: 10px 12px; word-break: break-all; text-align: left; max-height: 68px; overflow: hidden; margin: 12px 0; color: var(--muted); }
.contagem { display: inline-block; margin-top: 12px; background: var(--primary-tint); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-light); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.aguardando { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-weight: 600; color: var(--muted); font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.simular { margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--good-tint); font-size: 13.5px; }
.linha-tempo { list-style: none; margin: 0; padding: 0; }
.linha-tempo li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo li::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--border); border-radius: 3px; }
.linha-tempo li:last-child::before { display: none; }
.linha-tempo .bola { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); color: var(--muted); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; flex: none; z-index: 1; }
.linha-tempo li.feito .bola { background: var(--teal); box-shadow: none; color: var(--creme); font-size: 16px; }
.linha-tempo li.feito::before { background: var(--teal); }
.linha-tempo li.atual .bola { background: var(--navy); color: var(--creme); box-shadow: 0 0 0 6px var(--primary-tint); animation: pulsa 1.6s infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 10px rgba(0, 48, 73, 0); } }
.linha-tempo b { display: block; margin-top: 7px; font-family: var(--font-display); }
.linha-tempo li:not(.feito):not(.atual) b { color: var(--muted); font-weight: 500; }
.linha-tempo small { color: var(--muted); }
.festa { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: var(--creme); display: grid; place-items: center; font-size: 28px; animation: pula .5s ease; }
@keyframes pula { 40% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .linha-tempo li.atual .bola, .festa, .barra-sacola { animation: none; } }

.linha-tempo li > div { flex: 1; min-width: 0; }
.linha-tempo .hora { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.linha-tempo li.atual .hora { color: var(--navy); }
.link-meus { margin-left: 14px; }

.meu-pedido { display: block; color: inherit; text-decoration: none; margin-bottom: 12px; transition: transform .15s ease; }
.meu-pedido:active { transform: scale(.99); }
.mp-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mp-topo b { font-family: var(--font-display); font-size: 17px; color: var(--primary); }
.mp-itens { margin: 10px 0; font-size: 14.5px; line-height: 1.5; }
.mp-rodape { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border); padding-top: 10px; }
.mp-ver { font-size: 13.5px; font-weight: 600; color: var(--vermelho); display: inline-flex; align-items: center; gap: 4px; }
.vazio-meus { text-align: center; }
.vazio-meus .btn { margin-top: 12px; }
.status-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.status-pill.s-aguardando { background: rgba(102, 155, 188, .2); color: var(--navy); }
.status-pill.s-pendente { background: rgba(238, 155, 0, .18); color: var(--ferrugem); }
.status-pill.s-aceito { background: rgba(10, 147, 150, .15); color: var(--teal); }
.status-pill.s-preparando { background: rgba(0, 95, 115, .12); color: var(--petroleo); }
.status-pill.s-entrega { background: rgba(0, 48, 73, .1); color: var(--navy); }
.status-pill.s-finalizado { background: rgba(148, 210, 189, .4); color: var(--petroleo); }
.status-pill.s-cancelado { background: rgba(155, 34, 38, .1); color: var(--bordo); }
.links-loja .pilula { color: var(--navy); font-weight: 700; }

/* ---------- Guia inferior: Página inicial | Meus pedidos ---------- */
.abas-cliente { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: center;
  padding: 6px 12px env(safe-area-inset-bottom); background: rgba(var(--vidro-cor), .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--border); }
.abas-cliente a { flex: 1; max-width: 300px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 10px;
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .01em; position: relative; }
.abas-cliente a .ico { width: 23px; height: 23px; }
.abas-cliente a.ativa { color: var(--navy); }
.abas-cliente a.ativa::before { content: ''; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--vermelho); }
body:has(.abas-cliente) #toast { bottom: calc(158px + env(safe-area-inset-bottom)); }

/* ---------- Cross-sell (bebidas) ---------- */
.cross { margin-top: 22px; }
.cross h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-mid); margin: 0 0 10px; }
.cross-lista { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; }
.cross-lista::-webkit-scrollbar { display: none; }
.cross-card { position: relative; flex: 0 0 132px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  border: 0; padding: 10px; border-radius: 18px; background: rgba(var(--vidro-cor), .8); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); font: inherit; cursor: pointer; }
.cross-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
.cross-card b { font-family: var(--font-display); font-size: 14.5px; line-height: 1.2; }
.cross-preco { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cross-preco small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.cross-add { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--vermelho); color: var(--creme);
  display: grid; place-items: center; font-weight: 700; font-size: 18px; box-shadow: 0 4px 10px rgba(193, 18, 31, .3); }

/* ---------- Upsell de tamanho ---------- */
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 14px 16px;
  border-radius: 18px; background: rgba(10, 147, 150, .1); box-shadow: inset 0 0 0 1px rgba(10, 147, 150, .28); }
.upsell b { display: block; font-family: var(--font-display); color: var(--petroleo); font-size: 15.5px; }
.upsell small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.upsell .btn { background: var(--teal); flex: none; }

/* Separação dos painéis: borda suave + destaque navy ao passar o mouse/tocar */
.loja-info, .produto-card, .cross-card { border: var(--borda-painel); background: #fff; box-shadow: var(--sombra-painel); }
.produto-card, .cross-card { transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease; }
.produto-card:hover, .cross-card:hover { border-color: var(--navy); box-shadow: var(--sombra-destaque); }
.produto-card:active, .cross-card:active { transform: scale(.985); border-color: var(--navy); }

/* ---------- Seleção nas opções (mistura, "Sem...", sabores): caixinha preenchida + linha destacada ---------- */
.opcao-linha input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; flex: none; cursor: pointer;
  border: 2px solid rgba(0, 48, 73, .35); background: #fff center / 14px no-repeat; transition: background-color .12s, border-color .12s; }
.opcao-linha input[type=radio] { border-radius: 50%; }
.opcao-linha input[type=checkbox] { border-radius: 6px; }
.opcao-linha input:checked { border-color: var(--navy); background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fdf0d5' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opcao-linha input:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.opcao-linha { position: relative; transition: background-color .12s; }
.opcao-linha:has(input:checked) { background: rgba(0, 48, 73, .07); box-shadow: inset 4px 0 0 var(--navy); }
.opcao-linha:has(input:checked) .nome b { color: var(--navy); font-weight: 700; }
.opcao-linha.riscado:has(input:checked) { background: rgba(193, 18, 31, .06); box-shadow: inset 4px 0 0 var(--vermelho); }
.opcao-linha.riscado:has(input:checked) .nome b { color: var(--brand); }
.item-sacola .mais { color: var(--petroleo); font-weight: 600; display: block; }

/* Acesso discreto ao painel (cadeadinho no rodapé) */
.link-painel { display: block; width: 32px; height: 32px; margin: 14px auto 0; display: grid; place-items: center; color: var(--muted); opacity: .35; border-radius: 50%; }
.link-painel:hover, .link-painel:focus-visible { opacity: .9; }
