@font-face { font-family: "Baloo 2"; src: url("../fontes/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --tinta: #231A2E; --rosa: #E8457A; --rosa-esc: #C9306A; --lavanda: #E9DEFF; --fundo: #F6F1FF; --brilho: #F2B84B;
  --whats: #1FA855; --branco: #fff; --cinza: #6B6275; --linha: #E6DDF2;
  --raio: 18px; --sombra: 0 6px 24px rgba(35, 26, 46, .10);
  --titulo: "Baloo 2", system-ui, sans-serif;
  --texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.travado { overflow: hidden; }
body { margin: 0; font-family: var(--texto); color: var(--tinta); background: var(--fundo); line-height: 1.4; padding-bottom: 96px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.1; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }
.preco { font-family: var(--titulo); font-weight: 800; color: var(--rosa-esc); }

/* ---- botão adicionar / quantidade (aparece em todos os modelos) ---- */
.ctrl { display: flex; }
.btn-add { border: 0; background: var(--rosa); color: #fff; font-weight: 700; border-radius: 999px; padding: 9px 16px; font-size: 14px; min-height: 40px; transition: transform .1s, background .2s; }
.btn-add:hover { background: var(--rosa-esc); }
.btn-add:active { transform: scale(.95); }
.qtd { display: inline-flex; align-items: center; background: var(--tinta); color: #fff; border-radius: 999px; min-height: 40px; }
.qtd button { border: 0; background: none; color: #fff; width: 40px; height: 40px; font-size: 20px; font-weight: 700; }
.qtd b { min-width: 20px; text-align: center; font-family: var(--titulo); font-size: 17px; }
.esgotado { font-size: 13px; font-weight: 700; color: var(--cinza); background: var(--linha); padding: 8px 12px; border-radius: 999px; }

/* ---- barra flutuante da sacola ---- */
.barra-sacola { position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; border: 0; border-radius: 999px;
  background: var(--tinta); color: #fff; padding: 10px 22px 10px 12px; box-shadow: 0 10px 30px rgba(35,26,46,.35); font-weight: 700; }
.bs-icone { position: relative; font-size: 22px; background: var(--rosa); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.bs-icone i { position: absolute; top: -4px; right: -6px; font-style: normal; background: var(--brilho); color: var(--tinta); font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.bs-txt { flex: 1; text-align: left; font-size: 16px; }
.bs-valor { font-family: var(--titulo); font-size: 18px; }
.pulso { animation: pulso .35s; }
@keyframes pulso { 50% { transform: translateX(-50%) scale(1.04); } }

/* ---- painéis (ficha do produto e sacola) ---- */
.fundo { position: fixed; inset: 0; background: rgba(35,26,46,.45); z-index: 50; }
.painel { position: fixed; z-index: 60; background: #fff; left: 50%; bottom: 0; width: min(560px, 100%); max-height: 92vh;
  border-radius: 24px 24px 0 0; transform: translate(-50%, 100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow: hidden; }
.painel.aberto { transform: translate(-50%, 0); }
@media (min-width: 760px) { .painel { bottom: auto; top: 50%; border-radius: 24px; transform: translate(-50%, -40%); opacity: 0; transition: .2s; }
  .painel.aberto { transform: translate(-50%, -50%); opacity: 1; } }
.fechar { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 16px; box-shadow: var(--sombra); }
.ficha { overflow-y: auto; }
.ficha img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--lavanda); }
.ficha-txt { padding: 18px 20px 24px; }
.ficha-txt small { color: var(--rosa-esc); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.ficha-txt h2 { font-size: 24px; margin: 4px 0 8px; }
.ficha-txt p { color: var(--cinza); margin: 0 0 16px; }
.ficha-linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ficha-linha .preco { font-size: 26px; }

.sac-topo { padding: 18px 20px 10px; border-bottom: 1px solid var(--linha); position: relative; }
.sac-topo h2 { font-size: 24px; }
.sac-topo .fechar { top: 10px; box-shadow: none; background: var(--fundo); }
.sac-corpo { overflow-y: auto; padding: 8px 20px 12px; flex: 1; }
.sac-itens { list-style: none; margin: 0; padding: 0; }
.sac-itens li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--linha); }
.sac-itens li img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; }
.sac-itens .si-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sac-itens .qtd { min-height: 36px; }
.sac-itens .qtd button { width: 34px; height: 36px; }
.sac-itens li span { color: var(--cinza); font-size: 13px; }
.sac-itens .vazia { display: block; text-align: center; color: var(--cinza); padding: 30px 10px; border: 0; }
.sac-frete { margin: 12px 0; font-size: 14px; }
.sac-frete p { margin: 6px 0 0; }
.fr-barra { height: 8px; background: var(--lavanda); border-radius: 8px; overflow: hidden; }
.fr-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--rosa), var(--brilho)); border-radius: 8px; transition: width .3s; }
.fr-regra { color: var(--cinza); font-size: 12.5px; }
.sac-form { display: grid; gap: 10px; margin-top: 6px; }
.sac-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.sac-form small { font-weight: 400; color: var(--cinza); }
.sac-form input, .sac-form textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--fundo); color: var(--tinta); }
.sac-form input:focus, .sac-form textarea:focus { outline: none; border-color: var(--rosa); background: #fff; }
.sac-form.validar input:invalid { border-color: #D33; background: #FFF3F3; }
.sac-aviso { margin: 2px 0 0; font-size: 12.5px; color: var(--cinza); }
.sac-rodape { padding: 12px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: #fff; }
.sac-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sac-total b { font-family: var(--titulo); font-size: 22px; }
.btn-whats { width: 100%; border: 0; border-radius: 14px; padding: 15px; background: var(--whats); color: #fff; font-weight: 800; font-size: 17px; }
.sac-sub { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--cinza); }
.btn-whats:disabled { opacity: .4; cursor: default; }
.btn-whats::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .1-3.3-.8-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2.1 1-2.4c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.5c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 .9c.3.1.4.2.5.3.1.2.1.8-.1 1.5z'/%3E%3C/svg%3E") center/contain no-repeat; }

.aviso { position: fixed; z-index: 80; left: 50%; top: 16px; transform: translate(-50%, -150%); background: var(--tinta); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .25s; max-width: 92%; text-align: center; }
.aviso.ver { transform: translate(-50%, 0); }

/* ---- faixa do modelo (só nos testes) ---- */
.faixa-modelo { background: var(--brilho); color: var(--tinta); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 10px; }
.faixa-modelo a { color: inherit; }

/* ---- rodapé comum ---- */
.rodape { text-align: center; color: var(--cinza); font-size: 13px; padding: 28px 16px 10px; }
.rodape a { color: var(--rosa-esc); font-weight: 700; text-decoration: none; }
