/* Site / vitrine da loja — pedidos pelo WhatsApp */
:root {
  --fundo: #faf7fc; --texto: #1f1a2e; --suave: #736d88; --linha: #eee8f6;
  --rosa: #ff2e7e; --violeta: #6d4cff; --verde: #12b886;
  --grad: linear-gradient(135deg, #ff3d8b 0%, #c13cf0 52%, #6d4cff 100%);
  --grad-verde: linear-gradient(135deg, #25d366 0%, #12b886 100%);
  --sombra: 0 1px 2px rgba(40,20,90,.05), 0 8px 24px rgba(60,30,140,.08);
  --sombra-forte: 0 14px 36px rgba(110,50,200,.22);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--texto);
  background: radial-gradient(900px 400px at 100% 0%, rgba(193,60,240,.07), transparent 60%), var(--fundo);
  -webkit-font-smoothing: antialiased; padding-bottom: 110px; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }

/* topo */
.v-topo { background: var(--grad); color: #fff; border-radius: 0 0 32px 32px; position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(150,50,220,.28); }
.v-topo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 220px at 90% -20%, rgba(255,255,255,.35), transparent 60%),
              radial-gradient(400px 200px at 0% 120%, rgba(255,255,255,.2), transparent 60%);
  animation: brilhoTopo 14s ease-in-out infinite alternate; }
@keyframes brilhoTopo { to { transform: translateX(-40px); } }
.v-topo-in { position: relative; max-width: 1100px; margin: 0 auto; padding: 26px 18px 28px; }
.v-marca { display: flex; align-items: center; gap: 14px; }
.v-logo { --box: 64px; width: var(--box); height: var(--box); flex: none; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px);
  font-family: Georgia, serif; font-style: italic; overflow: hidden; padding: 0 6px;
  font-size: min(1.25rem, calc(var(--box) * .52 / (var(--n, 7) * .5))); }
.v-marca h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.3px; }
.v-marca p { margin: 2px 0 0; opacity: .9; }
.v-marca p a { color: #fff; text-decoration: none; font-weight: 700; }
.v-msg { margin: 16px 0 0; font-size: 1.02rem; line-height: 1.45; max-width: 640px; opacity: .95; }

/* busca + categorias */
.v-barra { position: sticky; top: 0; z-index: 20; background: rgba(250,247,252,.88); backdrop-filter: blur(12px);
  padding: 14px 16px 6px; max-width: 1100px; margin: 0 auto; }
.v-busca { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--linha); border-radius: 16px;
  padding: 0 14px; height: 52px; box-shadow: var(--sombra); }
.v-busca svg { width: 22px; height: 22px; stroke: #8b84a3; fill: none; stroke-width: 2.2; flex: none; }
.v-busca input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: 1rem; }
.v-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 8px; scrollbar-width: none; }
.v-chips::-webkit-scrollbar { display: none; }
.v-chip { flex: none; border: 1.5px solid #e0d7f3; background: #fff; color: #5b3fd6; border-radius: 999px; padding: 8px 18px;
  font-weight: 700; cursor: pointer; transition: .15s; }
.v-chip.ativo { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(193,60,240,.7); }

/* grade de produtos */
.v-main { max-width: 1100px; margin: 0 auto; padding: 0 16px 20px; }
.v-qtd { color: var(--suave); font-size: .9rem; margin: 4px 2px 12px; }
.v-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .v-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .v-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); border: 1px solid rgba(120,80,220,.06);
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; animation: aparece .5s ease both; }
.v-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-forte); }
@keyframes aparece { from { opacity: 0; transform: translateY(12px); } }
.v-foto { position: relative; aspect-ratio: 3 / 4; background: #f3eefe; display: grid; place-items: center; cursor: pointer; overflow: hidden; border: 0; padding: 0; width: 100%; }
.v-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.v-card:hover .v-foto img { transform: scale(1.04); }
.v-foto .v-emoji { font-size: 3.6rem; opacity: .85; }
.v-selo { position: absolute; left: 10px; top: 10px; background: rgba(31,26,46,.75); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; }
.v-info { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.v-info h3 { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.25; }
.v-det { color: var(--suave); font-size: .82rem; }
.v-preco { font-size: 1.15rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 2px; }
.v-add { margin-top: auto; border: 0; border-radius: 12px; padding: 10px; font-weight: 800; color: #fff; background: var(--grad); cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(193,60,240,.9); transition: transform .12s; }
.v-add:active { transform: scale(.97); }
.v-add:disabled { background: #d9d4e6; box-shadow: none; cursor: not-allowed; }
.v-vazio { text-align: center; color: var(--suave); padding: 50px 10px; grid-column: 1 / -1; }

/* botão flutuante da sacola */
.v-sacola-btn { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 22px; color: #fff; cursor: pointer;
  background: var(--grad); box-shadow: 0 12px 30px rgba(193,60,240,.45); font-weight: 800; font-size: 1rem; animation: sobe .35s ease; }
.v-sacola-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.v-sacola-btn b { background: #fff; color: #c13cf0; border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; }
.v-sacola-btn em { font-style: normal; opacity: .95; }
.v-sacola-btn.pulo { animation: pulo .45s ease; }
@keyframes pulo { 40% { transform: translateX(-50%) scale(1.08); } }
@keyframes sobe { from { transform: translate(-50%, 30px); opacity: 0; } }

/* fundo escuro, gaveta da sacola e modal */
.v-fundo { position: fixed; inset: 0; background: rgba(20,12,40,.45); z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.v-gaveta { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 60; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.18); animation: entraLado .25s ease; }
@keyframes entraLado { from { transform: translateX(40px); opacity: .4; } }
.v-g-cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; border-bottom: 1px solid var(--linha); }
.v-g-cab h2 { margin: 0; font-size: 1.3rem; }
.v-fechar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3effb; color: #5b3fd6; font-size: 1.4rem; cursor: pointer; }
.v-g-lista { flex: 1; overflow: auto; padding: 8px 18px; }
.v-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.v-item .mini { width: 64px; height: 80px; border-radius: 12px; background: #f3eefe; overflow: hidden; display: grid; place-items: center; font-size: 1.8rem; }
.v-item .mini img { width: 100%; height: 100%; object-fit: cover; }
.v-item h4 { margin: 0; font-size: .95rem; }
.v-item small { color: var(--suave); }
.v-qtdctl { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.v-qtdctl button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #efeafe; color: #5b3fd6; font-weight: 800; cursor: pointer; }
.v-qtdctl span { min-width: 22px; text-align: center; font-weight: 700; }
.v-rem { border: 0; background: none; color: #f0446a; font-size: .8rem; cursor: pointer; padding: 4px 0; }
.v-g-rodape { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); display: grid; gap: 10px; background: #fff; }
.v-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; }
.v-campo { width: 100%; border: 1.5px solid #e2dcf2; border-radius: 12px; padding: 11px 13px; outline: none; background: #fff; }
.v-campo:focus { border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(167,139,250,.2); }
textarea.v-campo { min-height: 62px; resize: vertical; }
.v-whats { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 15px; font-weight: 800; font-size: 1.05rem;
  color: #fff; background: var(--grad-verde); cursor: pointer; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(18,184,134,.9); }
.v-whats svg { width: 24px; height: 24px; fill: #fff; }
.v-nota { color: var(--suave); font-size: .8rem; text-align: center; margin: 0; }

.v-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.v-modal-caixa { pointer-events: auto; background: #fff; width: 100%; max-width: 820px; max-height: 92vh; overflow: auto; border-radius: 26px 26px 0 0;
  animation: sobeModal .28s ease; display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .v-modal { align-items: center; } .v-modal-caixa { border-radius: 26px; grid-template-columns: 1fr 1fr; } }
@keyframes sobeModal { from { transform: translateY(40px); opacity: .5; } }
.v-modal-foto { aspect-ratio: 3 / 4; background: #f3eefe; display: grid; place-items: center; font-size: 5rem; position: relative; }
.v-modal-foto img { width: 100%; height: 100%; object-fit: cover; }
.v-modal-foto .v-fechar { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.9); }
.v-modal-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.v-modal-info h2 { margin: 0; font-size: 1.4rem; }
.v-modal-info .v-preco { font-size: 1.6rem; }
.v-modal-info p { margin: 0; color: #4a4560; line-height: 1.5; }
.v-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.v-tags span { background: #f3effb; color: #5b3fd6; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .85rem; }

.v-toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 90; background: #2a1f4d; color: #fff; padding: 12px 18px;
  border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: fade .2s; }

/* rodapé */
.v-rodape { max-width: 1100px; margin: 20px auto 0; padding: 26px 18px; text-align: center; color: var(--suave); font-size: .92rem; display: grid; gap: 10px; justify-items: center; }
.v-rodape .v-whats { padding: 11px 20px; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.v-logo { font-size: 1.3rem; }
.v-logo span { display: block; white-space: nowrap; line-height: 1; }
