:root {
  --marca-rosa: #ffa0c2; --marca-amarelo: #ffe05c; --marca-azul: #87daff;
  --bg: #fffbfd; --card: #fff; --ink: #3b2a33; --muted: #8c7682; --line: #f7dfe8;
  --rosa: #e05a8d; --rosa-escuro: #b8406f; --rosa-claro: #ffe6ef; --verde: #4f8f6e; --azul-claro: #e4f6ff;
  --amarelo: #ffe05c; --amarelo-claro: #fff7d6; --radius: 18px; --sombra: 0 2px 12px rgba(120, 60, 75, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Nunito', system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-tap-highlight-color: transparent; }
a { color: var(--rosa-escuro); }
.hide { display: none !important; }

.topo { position: sticky; top: 0; z-index: 40; background: rgba(255, 251, 253, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topo-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marca img { height: 56px; width: auto; display: block; }
.marca b { display: none; }
.marca small { font-size: 12px; color: var(--muted); }
.sacola-btn { border: 0; background: var(--rosa); color: #fff; font: inherit; font-weight: 800; font-size: 17px; padding: 9px 16px; border-radius: 99px; cursor: pointer; }

/* Fundo com o padrão de corações da marca, bem suave */
.hero { text-align: center; padding: 28px 16px 20px; background: linear-gradient(rgba(255, 251, 253, .82), rgba(255, 251, 253, .95)), url(../marca/padrao.jpg) center / 360px repeat; border-bottom: 1px solid var(--line); }
.hero h1 { font-family: 'Quicksand', 'Nunito', sans-serif; font-weight: 700; font-size: clamp(26px, 6vw, 40px); color: var(--rosa-escuro); margin: 0 0 8px; }
.hero p { margin: 0; color: var(--muted); font-size: 16px; }

.conteudo { max-width: 1100px; margin: 0 auto; padding: 8px 16px 120px; }
.filtros { display: flex; gap: 10px; }
.filtros input, .filtros select { font: inherit; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; }
.filtros input { flex: 1; min-width: 0; font-size: 17px; }
.filtros select { flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 15px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.chips button.ativo { background: var(--rosa); color: #fff; border-color: var(--rosa); }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 12px; }
@media (max-width: 480px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.prod { min-width: 0; }
.carregando, .vazio { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 10px; }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; position: relative; }
.prod .foto-btn { border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.prod img, .prod .sem-foto { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--rosa-claro); }
.prod .sem-foto { display: flex; align-items: center; justify-content: center; font-size: 48px; }
.prod .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod .nome { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.prod .preco { font-size: 19px; font-weight: 800; color: var(--rosa-escuro); }
.prod .add { margin-top: auto; border: 0; background: var(--rosa); color: #fff; font: inherit; font-weight: 800; border-radius: 12px; padding: 10px; cursor: pointer; }
.prod .add.na-sacola { background: var(--verde); }
/* faixa, banners, seções */
.faixa { background: var(--rosa-escuro); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; }
.banners { position: relative; max-width: 1100px; margin: 12px auto 0; padding: 0 16px; }
.banners img { display: none; width: 100%; border-radius: var(--radius); aspect-ratio: 14 / 5; object-fit: cover; cursor: pointer; }
.banners img.ativo { display: block; }
.pontos { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pontos span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.6); }
.pontos span.ativo { background: #fff; width: 20px; }
.secao { margin-top: 18px; }
.secao h2, .titulo-grade { font-size: 20px; margin: 18px 0 10px; }
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.trilho .prod { scroll-snap-align: start; }
@media (max-width: 480px) { .trilho { grid-auto-columns: 46%; gap: 10px; } }
/* preço promocional */
.preco .de, .det-preco .de { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: .7em; }
.preco .off, .det-preco .off { background: #2f9e62; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 99px; vertical-align: middle; }
.selo.promo { background: #2f9e62; color: #fff; }
.det-foto.vazia { display: flex; align-items: center; justify-content: center; font-size: 80px; }
/* sacola */
h3.sub { font-size: 15px; margin: 16px 0 8px; }
.entregas { display: grid; gap: 8px; }
.entregas button { display: grid; grid-template-columns: 1fr auto; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.entregas button span { grid-column: 1; font-size: 12px; color: var(--muted); }
.entregas button em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 800; }
.entregas button.ativo { border-color: var(--rosa); background: var(--rosa-claro); }
.dica { background: #fdf3dc; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 8px 0 0; }
.cupom { display: flex; gap: 8px; align-items: center; }
.cupom input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.btn.mini-btn, .cupom .btn { width: auto; flex: none; padding: 10px 14px; font-size: 14px; }
.tag-cupom { background: #e3f4ea; color: #2f7d52; font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.resumo { border-top: 1px dashed var(--line); margin: 14px 0; padding-top: 10px; }
.resumo div { display: flex; justify-content: space-between; padding: 3px 0; }
.resumo .tot { font-size: 20px; font-weight: 800; margin-top: 4px; }
.verde { color: #2f7d52; }
.total-pix { font-size: 30px; font-weight: 800; text-align: center; color: var(--rosa-escuro); }
.qr { width: 240px; max-width: 80%; margin: 10px auto; }
.qr svg { width: 100%; height: auto; display: block; }
.sucesso { text-align: center; }
/* personalização (nome na capa) */
.perso { margin-top: 12px; border: 2px dashed var(--rosa); border-radius: 14px; padding: 10px 12px; background: var(--rosa-claro); }
.perso-check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.perso-check input { width: 22px; height: 22px; accent-color: var(--rosa); }
.perso-check small { color: var(--muted); }
.perso input#persoNome { width: 100%; margin-top: 10px; font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.perso-tag { font-size: 12px; font-weight: 700; color: var(--rosa-escuro); }
.perso-linha { display: block; font-size: 13px; color: var(--rosa-escuro); }
.opcoes-mini { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.opcoes-mini img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.opcoes-mini span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.vars { display: flex; flex-wrap: wrap; gap: 8px; }
.var { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 4px 12px 4px 4px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.var img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.var em { font-style: normal; font-size: 11px; color: #8a6300; background: var(--amarelo-claro); border-radius: 99px; padding: 1px 6px; }
.var.ativo { border-color: var(--rosa); background: var(--rosa-claro); color: var(--rosa-escuro); }
.selo { position: absolute; top: 10px; left: 10px; background: var(--amarelo); color: #5a4000; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; box-shadow: var(--sombra); }

.banner-perso { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 18px; border-radius: var(--radius); background: var(--amarelo-claro); border: 1px solid #f3dfae; color: var(--ink); text-decoration: none; }
.banner-perso span { font-size: 34px; }

.rodape { text-align: center; color: var(--muted); font-size: 14px; padding: 10px 16px 120px; }

.barra-sacola { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(120,60,75,.12); }
.barra-sacola button { width: 100%; max-width: 700px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border: 0; background: var(--rosa); color: #fff; font: inherit; font-size: 18px; padding: 15px 20px; border-radius: 16px; cursor: pointer; }

.fundo { position: fixed; inset: 0; z-index: 100; background: rgba(61, 43, 48, .45); display: flex; align-items: flex-end; justify-content: center; }
.janela { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px; }
@media (min-width: 700px) { .fundo { align-items: center; } .janela { border-radius: 22px; } }
.janela h2 { margin: 0 0 12px; font-size: 22px; }
.fechar { float: right; border: 0; background: var(--rosa-claro); width: 36px; height: 36px; border-radius: 99px; font-size: 18px; cursor: pointer; }
.det-foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--rosa-claro); }
.det-preco { font-size: 28px; font-weight: 800; color: var(--rosa-escuro); margin: 6px 0 14px; }
.btn { border: 0; background: var(--rosa); color: #fff; font: inherit; font-weight: 800; font-size: 17px; border-radius: 14px; padding: 14px 18px; cursor: pointer; width: 100%; }
.btn.sec { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.whats { background: #25a35a; font-size: 19px; padding: 16px; }
.linha { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.linha img, .linha .mini { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--rosa-claro); flex: none; display: flex; align-items: center; justify-content: center; }
.linha .cresce { flex: 1; min-width: 0; }
.linha .cresce b { display: block; font-size: 14px; }
.qtd { display: flex; align-items: center; gap: 6px; }
.qtd button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; font-weight: 800; color: var(--rosa-escuro); cursor: pointer; }
.qtd span { min-width: 22px; text-align: center; font-weight: 800; }
.total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; margin: 14px 0; }
label.campo { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
label.campo input, label.campo textarea, label.campo select { display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.opcoes button { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 8px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.opcoes button.ativo { border-color: var(--rosa); background: var(--rosa-claro); color: var(--rosa-escuro); }
.nota { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }

#toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(200px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: transform .25s; z-index: 200; max-width: 90vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* Encomendas: galeria de artes do catálogo */
.selo.enc { background: var(--azul-claro); color: #155a78; }
.passo { font-size: 17px; margin: 18px 0 8px; }
.artes-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 8px; }
.arte { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 4px; cursor: pointer; text-align: center; font: inherit; font-size: 12px; line-height: 1.2; color: var(--ink); }
.arte img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.arte.sel { border-color: var(--rosa); box-shadow: 0 0 0 3px var(--rosa-claro); }
.arte-escolhida { margin: 8px 0 0; font-size: 15px; }
/* Filtros de tema das artes: quebram em várias linhas para todos ficarem visíveis */
.chips.quebra { flex-wrap: wrap; overflow: visible; padding-top: 6px; }
.chips.quebra button { padding: 6px 12px; font-size: 14px; }
/* Descrição do produto */
.det-desc { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; position: relative; }
.det-desc h3 { font-size: 17px; margin: 0 0 6px; }
.det-desc h4 { font-size: 15px; margin: 12px 0 4px; }
.det-desc p { margin: 0 0 8px; line-height: 1.5; }
.det-desc ul { margin: 0 0 8px; padding-left: 20px; line-height: 1.5; }
.det-desc.recolhida .det-desc-txt { max-height: 170px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.ver-mais { background: none; border: 0; color: var(--rosa-escuro); font: inherit; font-weight: 800; padding: 6px 0; cursor: pointer; }
/* Galeria de fotos do produto */
.det-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: thin; }
.det-thumbs button { flex: none; width: 62px; height: 62px; padding: 0; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; }
.det-thumbs button.ativo { border-color: var(--rosa); box-shadow: 0 0 0 2px var(--rosa-claro); }
.det-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }