/* Upgrade visual da Cozinha do Sul • 2026. Preserva a lógica do aplicativo. */
:root{--sombra:0 14px 36px rgba(29,12,13,.08);--radius:18px;--creme:#faf7f5;--cartao:#fff;--cinza:#6c6464}
body{background:#faf7f5;color:#2f2525;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
header{background:linear-gradient(125deg,#160406 0%,#31080d 63%,#830d1b 100%);box-shadow:0 4px 22px #27070c35;padding:15px 16px}
header .wrap{max-width:1200px;gap:16px}
header .logo{height:68px;width:68px;object-fit:contain;background:rgba(255,255,255,.07);border-radius:17px;padding:4px}
header h1{font-size:clamp(1.12rem,2vw,1.48rem);color:#fff;letter-spacing:-.02em}
header .sub{color:#ffe2e2;font-size:.8rem;margin-top:3px}
header .voltar{background:#ffe0a9;color:#40100f;margin-top:8px;font-size:.75rem}
.status-loja{border:1px solid #ffffff44;border-radius:99px;background:#ffffff12}
nav.cats{background:#fff;top:var(--header-height,84px);padding:12px max(16px,calc((100vw - 1200px)/2));box-shadow:0 6px 20px rgba(60,20,20,.06);border-bottom:1px solid #eee0dc;scrollbar-width:thin;scroll-behavior:smooth}
nav.cats button{border-radius:99px;padding:10px 18px;border:1px solid #ebd9d4;color:#50272c;background:#fff;font-size:.83rem}
nav.cats button.active{background:#7e1725;color:#fff;border-color:#7e1725}
.busca-wrap{max-width:1200px;margin:21px auto 0}
.busca-wrap input{height:51px;box-shadow:0 7px 22px #2e0e1210;border:1px solid #e9ddda;padding-left:44px;border-radius:15px}
main{max-width:1200px;padding:12px 16px 28px}
.cat-title{font-size:clamp(1.25rem,2.2vw,1.6rem);margin:28px 0 5px;letter-spacing:-.03em;color:#351217}
.cat-desc{color:#776e6e;line-height:1.5;margin-bottom:17px}
.grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:17px}
.card{background:#fff;border:1px solid #ede6e2;border-radius:19px;padding:0 0 16px;overflow:hidden;box-shadow:0 7px 22px rgba(23,12,12,.06);gap:9px;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 16px 36px rgba(23,12,12,.13);transform:translateY(-2px)}
.card>:not(.foto-card){margin-left:16px;margin-right:16px}
.card h3{font-size:1.02rem;line-height:1.32;margin-top:16px;color:#32191b;letter-spacing:-.018em}
.card:has(.foto-card) h3{margin-top:4px}
.card p.desc{line-height:1.45;color:#7c7373;min-height:34px}
.card .preco{color:#ab1424;font-size:1.13rem;letter-spacing:-.02em}
.card .meio-aviso{font-size:.78rem;color:#806b65}
.card .btn.full{width:calc(100% - 32px);margin-top:auto;border-radius:11px;padding:12px 10px}
.foto-card{width:100%;height:170px;aspect-ratio:3/2;background:#f2e9e7;overflow:hidden;margin:0!important;border-bottom:1px solid #eee4e0}
.foto-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.card:hover .foto-card img{transform:scale(1.035)}
.card.indisponivel{filter:none;opacity:.65}
.btn{background:#ba1b2d;border-radius:11px}
.btn:hover{background:#93121f}
.btn.verde{background:#1b8750}
.cart-bar{background:#27090e;box-shadow:0 -8px 27px #22080e40;padding:13px max(16px,calc((100vw - 1200px)/2));gap:12px}
.cart-bar .btn{border-radius:12px}
.modal{background:#fff;border-radius:22px 22px 0 0;box-shadow:0 24px 70px #17060b50}
.modal h2{font-size:1.35rem;letter-spacing:-.025em}
.subcat-title{border-left-color:#b82132;background:linear-gradient(95deg,#3c0a12,#6e1824);color:#ffdf87;border-radius:11px}
.promo-banner{background:linear-gradient(110deg,#2b0810,#811625);border-color:#f0c968;border-radius:17px}
.promo-banner strong{color:#ffde83}
.promo-carousel{max-width:1200px}
@media(min-width:600px){.modal{border-radius:20px}}
@media(max-width:580px){header .logo{width:54px;height:54px}header .wrap{gap:9px}header .sub{font-size:.69rem}.status-loja{font-size:.65rem;margin-left:0}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{border-radius:14px;padding-bottom:12px;gap:6px}.card>:not(.foto-card){margin-left:11px;margin-right:11px}.card h3{font-size:.89rem;margin-top:12px}.card p.desc{font-size:.74rem;min-height:0}.card .preco{font-size:.98rem}.card .btn.full{font-size:.76rem;width:calc(100% - 22px);padding:11px 5px}.foto-card{height:125px}.card .meio-aviso{font-size:.7rem}}

#menu section{scroll-margin-top:calc(var(--header-height,84px) + var(--cats-height,58px) + 8px)}
@media(max-width:360px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.foto-card{height:110px}}

.foto-modal{width:100%;max-height:230px;object-fit:cover;border-radius:14px;margin:12px 0 3px;display:block;background:#f7e9e6}


/* Checkout: o envio fica sempre visível, inclusive com carrinhos grandes no celular.
   Apenas o conteúdo do carrinho rola; o botão fica em rodapé próprio. */
#modalCarrinhoBody {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  overflow: hidden;
  padding: 0;
}
#modalCarrinhoBody .checkout-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 16px;
}
#modalCarrinhoBody .checkout-footer {
  flex: 0 0 auto;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #eee3df;
  box-shadow: 0 -6px 20px rgba(29,12,13,.09);
}
#modalCarrinhoBody .checkout-footer .btn {
  display: block;
  margin: 0;
  min-height: 52px;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
}
@media (min-width:600px) {
  #modalCarrinhoBody .checkout-footer { padding-bottom: 16px; }
}

/* Seleção efetiva de proteína no produto M017 (não é parte da fotografia). */
.opcoes-proteina{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.opcoes-proteina .opcao-proteina{
  appearance:none;min-height:52px;padding:12px 10px;background:#fff;
  border:2px solid #dac8c4;border-radius:12px;color:#43262a;
  font-weight:750;font-size:1rem;font-family:inherit;cursor:pointer;
}
.opcoes-proteina .opcao-proteina.selecionada{
  color:#167447;background:#eaf6ed;border-color:#198653;
}
.opcoes-proteina .opcao-proteina.selecionada::before{content:'✓ ';font-weight:900}
.opcoes-proteina .opcao-proteina:focus-visible{outline:3px solid #ffce66;outline-offset:2px}
.escolha-aviso{font-size:.79rem;color:#854c35;margin-top:7px}

/* Correção homologação: cabeçalho e categorias permanecem juntos. */
header{position:sticky;top:0;z-index:50}
nav.cats{position:sticky;top:var(--header-height,84px);z-index:40}
#menu > section{scroll-margin-top:calc(var(--header-height,84px) + var(--cats-height,58px) + 12px)}

/* Cartão sem foto: ícone neutro, sem ilustração desfocada. */
.foto-card.foto-placeholder {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:7px; background:#f4f4f4; color:#777; text-align:center;
}
.foto-placeholder-icone { font-size:2.4rem; line-height:1; color:#9b9b9b; }
.foto-placeholder-legenda { font-size:.78rem; font-weight:600; letter-spacing:.01em; }
.card:hover .foto-card.foto-placeholder { background:#f4f4f4; }

/* Banner promocional — legível em desktop e celular. */
.promo-banner {
  max-width:1100px; display:flex; align-items:flex-start; gap:17px;
  padding:20px 22px; background:#fff9ec; color:#34231b;
  border:2px solid #d9a93c; border-radius:18px;
  box-shadow:0 8px 24px rgba(69,37,10,.08);
}
.promo-banner-icone { font-size:2.4rem; line-height:1.2; flex-shrink:0; }
.promo-banner-conteudo { flex:1; min-width:0; }
.promo-banner .promo-banner-conteudo > strong {
  display:block; color:#9e121a; font-size:1.18rem; line-height:1.3; margin-bottom:12px;
}
.promo-banner-beneficios { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.promo-banner-premio {
  display:flex; flex-direction:column; gap:5px;
  padding:12px 14px; border-radius:12px; background:#fff; border:1px solid #ecd8ad;
}
.promo-banner-premio b { font-size:1rem; color:#821019; }
.promo-banner-premio span { font-size:.95rem; line-height:1.4; color:#34231b; opacity:1; }
.promo-banner-premio span strong { color:#a3141b; font-size:1.15rem; display:inline; }
.promo-banner p { margin:12px 0 0; color:#6e5b4b; font-size:.8rem; line-height:1.5; }
@media(max-width:600px){
  .promo-banner { padding:14px 12px; gap:9px; margin:12px 12px 0; }
  .promo-banner-icone { font-size:1.7rem; }
  .promo-banner .promo-banner-conteudo > strong { font-size:1rem; }
  .promo-banner-beneficios { grid-template-columns:1fr; gap:8px; }
  .promo-banner-premio { padding:9px 11px; }
  .foto-placeholder-icone { font-size:1.9rem; }
  .foto-placeholder-legenda { font-size:.69rem; }
}
button:disabled { opacity:.55; cursor:not-allowed; }

/* Checkout: respiro interno e sugestões de endereço. */
#modalCarrinhoBody{padding:22px 22px 24px;box-sizing:border-box;overflow-y:auto}
#modalCarrinhoBody>.x{top:14px;right:16px}
#modalCarrinhoBody h2{padding-right:30px;margin-top:4px}
#modalCarrinhoBody .opt-group{margin:19px 0}
#modalCarrinhoBody input,#modalCarrinhoBody select{box-sizing:border-box;max-width:100%}
.endereco-autocomplete{position:relative;z-index:8}
.sugestoes-endereco{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:40;background:#fff;border:1px solid #ddcaca;border-radius:12px;box-shadow:0 12px 28px #29101626;max-height:240px;overflow-y:auto}
.sugestoes-endereco[hidden]{display:none}
.sugestao-item{display:block;width:100%;padding:12px 14px;border:0;border-bottom:1px solid #f0e9e7;text-align:left;background:#fff;color:#342225;font:inherit;cursor:pointer}
.sugestao-item:hover,.sugestao-item:focus{background:#fff2e7;outline:2px solid #b82132;outline-offset:-2px}
.sugestao-vazia{padding:12px;color:#725b5d;font-size:.87rem}
@media(max-width:580px){#modalCarrinhoBody{padding:20px 18px 24px}}
