/* Site da Bela Boutique — a cliente monta a sacola e o pedido chega no WhatsApp da loja
   Identidade: marrom #4A2619, bege #F2DCC6, Playfair Display (títulos) e Great Vibes (complementos) */
:root {
  --marrom: #4A2619; --marrom-2: #6b3d2a; --marrom-esc: #331809; --bege: #F2DCC6; --bege-claro: #f8ebdd; --creme: #fdf8f2;
  --caramelo: #b9774a; --texto: #2b1a12; --suave: #7d6a5d; --linha: #ead8c6; --verde: #1faa59;
  --titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --manuscrita: "Great Vibes", "Brush Script MT", cursive;
  --sombra: 0 1px 2px rgba(74,38,25,.06), 0 8px 24px rgba(74,38,25,.08);
  --sombra-forte: 0 16px 40px rgba(74,38,25,.22);
  --topo-h: 68px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); }
html, body { margin: 0; }
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto); background: var(--creme);
  -webkit-font-smoothing: antialiased; line-height: 1.45; padding-bottom: 96px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--caramelo); outline-offset: 2px; border-radius: 6px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--marrom); color: #fff; padding: 10px 16px; border-radius: 10px; }
.pular:focus { left: 8px; }

/* ---------- topo fixo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(253,248,242,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linha); }
.topo-in { max-width: 1160px; margin: 0 auto; height: var(--topo-h); padding: 0 16px; display: flex; align-items: center; gap: 18px; }
.marca { display: block; height: 52px; flex: none; }
.marca img { height: 100%; width: auto; display: block; }
.menu { display: none; gap: 26px; margin: 0 auto; }
.menu a { text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .3px; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.menu a:hover { border-color: var(--caramelo); }
.topo-sacola { margin-left: auto; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--linha); background: #fff; display: grid; place-items: center; }
.topo-sacola svg { width: 22px; height: 22px; fill: none; stroke: var(--marrom); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topo-sacola b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--marrom); color: #fff; font-size: .72rem; display: grid; place-items: center; }
@media (min-width: 900px) { .menu { display: flex; } .topo-sacola { margin-left: 0; } }

/* ---------- capa ---------- */
.capa { background: var(--marrom); color: var(--bege); position: relative; overflow: hidden; }
.capa::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: url("/static/img/simbolo-claro.png") 0 0 / 190px auto, url("/static/img/simbolo-claro.png") 95px 80px / 190px auto; }
.capa::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 46px; background: var(--creme);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.capa-in { position: relative; max-width: 760px; margin: 0 auto; padding: 44px 20px 92px; text-align: center; }
.capa-logo { width: min(320px, 70vw); height: auto; animation: surge .9s ease both; }
.capa-frase { font-family: var(--manuscrita); font-size: clamp(1.9rem, 6vw, 2.7rem); line-height: 1.15; margin: 18px auto 26px; max-width: 620px; color: #fbeede; animation: surge .9s .15s ease both; }
.capa-botoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: surge .9s .3s ease both; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 800;
  text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.botao:active { transform: scale(.97); }
.botao.claro { background: var(--bege); color: var(--marrom); }
.botao.claro:hover { background: #fff; }
.botao.contorno { border-color: rgba(242,220,198,.6); color: var(--bege); }
.botao.contorno:hover { background: rgba(242,220,198,.12); }
@keyframes surge { from { opacity: 0; transform: translateY(14px); } }

/* ---------- destaques (como os destaques do Instagram) ---------- */
.destaques { max-width: 1160px; margin: -8px auto 0; padding: 6px 12px 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: relative; z-index: 2; }
.destaques::-webkit-scrollbar { display: none; }
.destaques a { flex: 1 0 84px; display: grid; justify-items: center; gap: 8px; text-decoration: none; font-size: .82rem; font-weight: 700; text-align: center; padding: 4px 2px; }
.destaques span { width: 64px; height: 64px; border-radius: 50%; background: var(--marrom); display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--creme), 0 0 0 4.5px var(--bege), var(--sombra); transition: transform .2s; }
.destaques a:hover span { transform: translateY(-3px) scale(1.04); }
.destaques svg { width: 30px; height: 30px; fill: none; stroke: var(--bege); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- títulos de seção ---------- */
.secao-titulo { text-align: center; margin: 34px 16px 14px; }
.secao-titulo.esq { text-align: left; margin: 0 0 10px; }
.secao-titulo em { display: block; font-family: var(--manuscrita); font-style: normal; font-size: 1.7rem; color: var(--caramelo); line-height: 1; }
.secao-titulo h2 { font-family: var(--titulo); font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0; color: var(--marrom); }

/* ---------- busca + categorias ---------- */
.pecas { max-width: 1160px; margin: 0 auto; }
.barra { position: sticky; top: var(--topo-h); z-index: 20; background: rgba(253,248,242,.94); backdrop-filter: blur(12px); padding: 10px 16px 4px; }
.busca { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--linha); border-radius: 999px; padding: 0 16px; height: 48px; transition: border-color .2s, box-shadow .2s; }
.busca:focus-within { border-color: var(--caramelo); box-shadow: 0 0 0 4px rgba(185,119,74,.15); }
.busca svg { width: 20px; height: 20px; fill: none; stroke: var(--suave); stroke-width: 2; stroke-linecap: round; flex: none; }
.busca input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 1rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--linha); background: #fff; color: var(--marrom); font-weight: 700; padding: 8px 18px; border-radius: 999px; transition: .15s; white-space: nowrap; }
.chip:hover { border-color: var(--marrom); }
.chip.ativo { background: var(--marrom); border-color: var(--marrom); color: var(--bege); }
.qtd { margin: 4px 18px 10px; color: var(--suave); font-size: .9rem; }

/* ---------- grade de peças ---------- */
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 14px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 960px) { .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.cartao { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column;
  animation: surge .5s ease both; transition: transform .2s, box-shadow .2s; }
.cartao:hover { transform: translateY(-4px); box-shadow: var(--sombra-forte); }
.foto { position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; width: 100%; display: block; overflow: hidden;
  background: linear-gradient(rgba(248,235,221,.84), rgba(248,235,221,.84)), url("/static/img/simbolo-escuro.png") center 46% / 58% auto no-repeat var(--bege-claro); }
.foto img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cartao:hover .foto img { transform: scale(1.04); }
.selos { position: absolute; z-index: 1; top: 10px; left: 10px; display: grid; gap: 6px; justify-items: start; }
.selo { font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--marrom); color: var(--bege); }
.selo.promo { background: var(--caramelo); color: #fff; }
.selo.fim { background: rgba(43,26,18,.75); color: #fff; }
.dados { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dados h3 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--marrom); }
.det { color: var(--suave); font-size: .85rem; }
.preco { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 1.1rem; color: var(--marrom); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.preco s { font-weight: 600; font-size: .86rem; color: var(--suave); }
.add { margin-top: 8px; border: 1.5px solid var(--marrom); background: transparent; color: var(--marrom); font-weight: 800; border-radius: 999px; padding: 9px 10px; transition: .15s; }
.add:hover:not(:disabled) { background: var(--marrom); color: var(--bege); }
.add.cheio { background: var(--marrom); color: var(--bege); }
.add.cheio:hover:not(:disabled) { background: var(--marrom-2); }
.add:disabled { border-color: var(--linha); color: var(--suave); cursor: default; }
.vazio { grid-column: 1 / -1; text-align: center; color: var(--suave); padding: 50px 16px; }

/* ---------- informações ---------- */
.info { max-width: 1160px; margin: 44px auto 0; padding: 0 14px; display: grid; gap: 14px; }
@media (min-width: 760px) { .info { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.info article { background: var(--bege-claro); border: 1px solid var(--linha); border-radius: 20px; padding: 22px 20px; }
.info-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--marrom); display: grid; place-items: center; margin-bottom: 10px; }
.info-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--bege); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.info h3 { font-family: var(--titulo); font-weight: 600; font-size: 1.25rem; margin: 0 0 6px; color: var(--marrom); }
.info p, .sobre p { margin: 0; white-space: pre-line; }

.sobre { background: var(--bege); margin-top: 44px; }
.sobre-in { max-width: 900px; margin: 0 auto; padding: 44px 20px; display: grid; gap: 22px; align-items: center; justify-items: center; }
.sobre-in img { width: 190px; height: auto; opacity: .9; }
.sobre p { font-size: 1.08rem; }
@media (min-width: 760px) { .sobre-in { grid-template-columns: 240px 1fr; justify-items: start; } }

/* ---------- rodapé ---------- */
.rodape { background: var(--marrom); color: var(--bege); text-align: center; padding: 40px 18px 34px; }
.rodape > img { width: 190px; height: auto; }
.rodape-contatos { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin: 18px auto 0; max-width: 760px; }
.rodape-contatos a, .rodape-contatos span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(242,220,198,.35); font-weight: 700; font-size: .93rem; }
.rodape-contatos a:hover { background: rgba(242,220,198,.12); }
.rodape-contatos svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rodape-fim { margin: 22px 0 0; font-size: .85rem; opacity: .75; }

/* ---------- botão da sacola ---------- */
.sacola-btn { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px;
  border: 0; background: var(--marrom); color: var(--bege); font-weight: 800; padding: 13px 20px; border-radius: 999px; box-shadow: var(--sombra-forte); white-space: nowrap; max-width: calc(100vw - 24px); }
.sacola-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sacola-btn b { background: var(--bege); color: var(--marrom); border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; }
.sacola-btn em { font-style: normal; opacity: .9; }
.sacola-btn.pulo { animation: pulo .45s ease; }
@keyframes pulo { 40% { transform: translateX(-50%) scale(1.08); } }

/* ---------- gaveta, modal ---------- */
.fundo { position: fixed; inset: 0; background: rgba(43,26,18,.5); z-index: 50; animation: aparece .2s ease; }
@keyframes aparece { from { opacity: 0; } }
.fechar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bege-claro); color: var(--marrom); font-size: 1.5rem; line-height: 1; flex: none; }
.gaveta { position: fixed; z-index: 60; background: var(--creme); display: flex; flex-direction: column; left: 0; right: 0; bottom: 0; max-height: 92vh; border-radius: 24px 24px 0 0; animation: sobe .28s ease; }
@keyframes sobe { from { transform: translateY(100%); } }
@media (min-width: 760px) { .gaveta { left: auto; top: 0; width: 430px; max-height: none; border-radius: 24px 0 0 24px; animation-name: entra; }
  @keyframes entra { from { transform: translateX(100%); } } }
.g-cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.g-cab h2 { margin: 0; font-family: var(--titulo); font-weight: 600; color: var(--marrom); font-size: 1.5rem; }
.g-lista { overflow-y: auto; padding: 0 18px; flex: 1; }
.item { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); align-items: center; }
.mini { width: 62px; height: 82px; border-radius: 12px; overflow: hidden; background: linear-gradient(rgba(248,235,221,.84), rgba(248,235,221,.84)), url("/static/img/simbolo-escuro.png") center / 70% auto no-repeat var(--bege-claro); }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item h4 { margin: 0; font-size: .98rem; }
.item small { color: var(--suave); }
.item .lado { text-align: right; }
.rem { border: 0; background: none; color: var(--suave); text-decoration: underline; font-size: .85rem; padding: 6px 0; }
.qtdctl { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1.5px solid var(--linha); border-radius: 999px; padding: 2px; background: #fff; }
.qtdctl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bege-claro); color: var(--marrom); font-weight: 800; font-size: 1.1rem; }
.qtdctl span { min-width: 28px; text-align: center; font-weight: 800; }
.g-rodape { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); display: grid; gap: 10px; background: #fff; border-radius: 20px 20px 0 0; }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 800; color: var(--marrom); }
.campo { width: 100%; border: 1.5px solid var(--linha); border-radius: 14px; padding: 12px 14px; background: var(--creme); outline: 0; }
.campo:focus { border-color: var(--caramelo); box-shadow: 0 0 0 4px rgba(185,119,74,.15); }
textarea.campo { min-height: 64px; resize: vertical; }
.whats { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--verde); color: #fff;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; padding: 12px 18px; transition: filter .15s, transform .12s; }
.whats:hover { filter: brightness(1.06); }
.whats:active { transform: scale(.98); }
.whats:disabled { opacity: .7; }
.whats svg { width: 22px; height: 22px; fill: #fff; flex: none; }
.nota { margin: 0; font-size: .82rem; color: var(--suave); text-align: center; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; }
.modal-caixa { background: var(--creme); width: 100%; max-width: 860px; max-height: 94vh; overflow-y: auto; border-radius: 24px 24px 0 0; animation: sobe .28s ease; display: grid; }
.modal-foto { position: relative; aspect-ratio: 3 / 4; max-height: 56vh; width: 100%; background: linear-gradient(rgba(248,235,221,.84), rgba(248,235,221,.84)), url("/static/img/simbolo-escuro.png") center / 50% auto no-repeat var(--bege-claro); }
.modal-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-foto .fechar { position: absolute; top: 12px; right: 12px; background: rgba(253,248,242,.92); }
.modal-info { padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; align-content: start; }
.modal-info h2 { margin: 0; font-family: var(--titulo); font-weight: 600; color: var(--marrom); font-size: 1.6rem; line-height: 1.2; }
.modal-info p { margin: 0; white-space: pre-line; }
.modal-info .preco { font-size: 1.4rem; margin: 0; padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--bege-claro); border: 1px solid var(--linha); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; color: var(--marrom); }
@media (min-width: 760px) { .modal { place-items: center; padding: 24px; } .modal-caixa { grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden; }
  .modal-foto { max-height: none; height: 100%; min-height: 480px; } .modal-info { padding: 30px 28px; overflow-y: auto; } }

.aviso-rapido { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--texto); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--sombra-forte); max-width: calc(100vw - 32px); text-align: center; animation: surge .25s ease; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .topo, .sacola-btn, .destaques, .barra, .add { display: none !important; } }
