/* Base compartilhada pelos dois modelos. Cada tema define as variáveis em :root. */
:root {
  --vinho: #7a1f2b; --laranja: #e8571e; --mostarda: #e9b54a; --menta: #8fd9a8;
  --texto: #2a1d1a; --suave: #6f625d; --fundo: #fff; --raio: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--texto); background: var(--fundo); font-family: var(--fonte, system-ui, sans-serif); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.oculto, .extra { display: none !important; }
.btn.ver-mais { display: flex; width: fit-content; margin: 40px auto 0; }
.sobretitulo { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--laranja); margin: 0 0 .4rem; }

/* Aparecer ao rolar */
.revelar { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--atraso, 0ms); }
.revelar.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; transition: none; } }

/* Avaliações estilo cartão de review */
.avaliacoes { padding: 90px 0; }
.av-topo { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.av-topo h2 { margin: 0; }
.av-resumo { display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.08); font-family: Roboto, Arial, sans-serif; color: #202124; }
.av-resumo strong { font-size: 2.4rem; line-height: 1; }
.av-resumo small { display: block; color: #70757a; font-size: .8rem; }
.btn-avaliar { background: #1a73e8; color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 20px; font-size: .85rem; font-weight: 500; transition: background .2s; }
.btn-avaliar:hover { background: #1558b0; }
.estrelas { display: inline-flex; gap: 2px; }
.estrela { width: 18px; height: 18px; fill: #fbbc04; }
.estrela.vazia { fill: #dadce0; }
.carrossel { position: relative; display: flex; align-items: center; gap: 10px; }
.trilho { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 20px; scrollbar-width: none; flex: 1; }
.trilho::-webkit-scrollbar { display: none; }
.av-card { flex: 0 0 min(330px, 85%); scroll-snap-align: start; background: #fff; border: 1px solid #dadce0; border-radius: 12px; padding: 20px; font-family: Roboto, Arial, sans-serif; color: #202124; transition: box-shadow .3s, transform .3s; }
.av-card:hover { box-shadow: 0 10px 30px rgba(60,64,67,.18); transform: translateY(-4px); }
.av-card header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.av-card header strong { display: block; font-size: .95rem; font-weight: 500; }
.av-card header small { color: #70757a; font-size: .8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 1.1rem; }
.av-nota { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.av-card p { margin: 0; font-size: .92rem; line-height: 1.55; }
.tag-exemplo { font-size: .7rem; background: #fef7e0; color: #b06000; padding: 2px 8px; border-radius: 10px; }
.seta { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--vinho); transition: transform .2s; }
.seta:hover { transform: scale(1.1); }
@media (max-width: 640px) { .carrossel .seta { display: none; } }

/* Localização + mapa */
.localizacao { padding: 90px 0; }
.loc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.loc-info h2 { margin: 0 0 20px; }
.selo-metro { display: flex; gap: 14px; align-items: center; background: #0455a4; color: #fff; padding: 14px 18px; border-radius: 14px; margin-bottom: 24px; animation: brilho 3s ease-in-out infinite; }
.selo-metro small { display: block; opacity: .85; }
.metro-ico { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0455a4; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; flex: none; }
@keyframes brilho { 50% { box-shadow: 0 0 0 8px rgba(4,85,164,.15); } }
.contatos { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.contatos li { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.contatos b { color: var(--laranja); }
.contatos a { text-decoration: none; word-break: break-word; }
.contatos a:hover { color: var(--laranja); }
.mapa { min-height: 380px; border-radius: var(--raio); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.mapa iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } .contatos li { grid-template-columns: 1fr; gap: 0; } }

/* WhatsApp flutuante */
.wa-flutuante { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-flutuante .ico { width: 34px; height: 34px; }
.wa-flutuante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulso 2s ease-out infinite; z-index: -1; }
.wa-flutuante:hover { transform: scale(1.1); }
@keyframes pulso { to { transform: scale(1.8); opacity: 0; } }

/* Página do produto */
.pg-produto { padding: calc(var(--topo-h, 0px) + 28px) 0 80px; }
.trilha { font-size: .85rem; color: var(--suave); margin-bottom: 24px; }
.trilha a { text-decoration: none; color: var(--laranja); }
.trilha span { color: var(--texto); }
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pd-foto { border-radius: var(--raio); overflow: hidden; background: #f3ece6; aspect-ratio: 1; box-shadow: 0 20px 50px rgba(0,0,0,.1); cursor: zoom-in; animation: subir .7s ease both; }
.pd-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out, opacity .2s; }
.pd-miniaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.pd-miniaturas button { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: #f3ece6; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s; }
.pd-miniaturas button:hover { opacity: 1; transform: translateY(-3px); }
.pd-miniaturas button.ativa { opacity: 1; border-color: var(--laranja); }
.pd-miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { animation: subir .7s .15s ease both; }
.pd-cat { color: var(--laranja); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.pd-info h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; margin: 6px 0 14px; line-height: 1.15; }
.pd-estoque { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #f1ece8; color: #6f625d; }
.pd-estoque::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pd-estoque.sim { background: #e6f6ec; color: #17803d; }
.pd-estoque.sim::before { animation: piscar 1.6s infinite; }
.pd-estoque.encomenda { background: #fef4e0; color: #b06000; }
.pd-estoque.nao { background: #fde8e8; color: #b3261e; }
@keyframes piscar { 50% { opacity: .3; } }
.pd-preco { display: block; font-size: 1.8rem; color: var(--vinho); margin: 18px 0 6px; font-weight: 700; }
.pd-desc { color: var(--suave); font-size: .95rem; font-weight: 300; margin: 0 0 26px; }
.pd-comprar { display: flex; align-items: center; justify-content: center; gap: 10px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 16px; border-radius: 14px; box-shadow: 0 12px 30px rgba(37,211,102,.35); transition: transform .2s, box-shadow .2s; }
.pd-comprar:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(37,211,102,.45); }
.pd-comprar .ico { width: 26px; height: 26px; }
.pd-acoes { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 26px; }
.pd-loja { font-size: .88rem; color: var(--vinho); }
.pd-compartilhar { font: inherit; font-size: .88rem; font-weight: 600; background: none; border: 1.5px solid #e2d6cf; color: var(--texto); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s; }
.pd-compartilhar:hover { border-color: var(--laranja); color: var(--laranja); }
.pd-precos { margin: 18px 0 6px; }
.pd-precos .pd-preco { margin: 0; }
.preco-de { display: block; color: #9a8d88; font-size: .9rem; font-weight: 500; }
.pd-info .selo-desc { position: static; margin-left: 8px; vertical-align: middle; }

/* Promoção, estoque e ordenação no catálogo */
.selo-desc { position: absolute; top: 14px; right: 14px; z-index: 1; background: #e53935; color: #fff; font-weight: 800; font-size: .8rem; padding: 5px 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(229,57,53,.35); animation: balanco 2.4s ease-in-out infinite; }
@keyframes balanco { 50% { transform: rotate(-6deg) scale(1.06); } }
.bloco-preco { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bloco-preco strong { white-space: nowrap; }
.prod-rodape .btn { flex-shrink: 0; }
.mini-estoque { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: #6f625d; margin-top: 4px; }
.mini-estoque::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mini-estoque.sim { color: #17803d; }
.mini-estoque.encomenda { color: #b06000; }
.mini-estoque.nao { color: #b3261e; }
.barra-catalogo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.barra-catalogo .filtros { margin: 0; }
.filtros small { opacity: .6; font-size: .75em; margin-left: 2px; }
.ordenar { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--suave); white-space: nowrap; }
.ordenar select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1.5px solid #e2d6cf; background: #fff; color: var(--texto); cursor: pointer; }
.sug-img { position: relative; }

/* Janela do produto (abre por cima do catálogo) */
.janela { position: fixed; inset: 0; z-index: 100; background: rgba(30,18,15,.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.janela.aberta { opacity: 1; visibility: visible; }
.janela-caixa { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--fundo); border-radius: 24px; padding: 40px; transform: translateY(30px) scale(.97); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.janela.aberta .janela-caixa { transform: none; }
.janela-fechar { position: sticky; top: 0; float: right; margin: -24px -24px 0 0; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--vinho); }
.janela .pd-sugestoes { margin-top: 50px; }
@media (max-width: 640px) { .janela-caixa { padding: 24px 16px; border-radius: 18px; } .janela-fechar { margin: -10px -6px 0 0; } }
.pd-vantagens { list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid #eadfd8; display: grid; gap: 10px; color: var(--suave); font-size: .92rem; }
.pd-sugestoes { margin-top: 80px; }
.pd-sugestoes h2 { margin-bottom: 28px; }
.sug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.sug-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: #fff; border-radius: var(--raio); padding: 12px 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.07); transition: transform .3s, box-shadow .3s; }
.sug-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.sug-img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.sug-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sug-card:hover .sug-img img { transform: scale(1.08); }
.sug-card small { color: var(--laranja); font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; }
.sug-preco { color: var(--vinho); font-weight: 700; }
@media (max-width: 800px) { .pd-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Slider genérico */
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.ativo { opacity: 1; visibility: visible; }
.slide.ativo .slide-bg { animation: zoomLento 7s ease-out forwards; }
@keyframes zoomLento { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .anima { opacity: 0; transform: translateY(30px); }
.slide.ativo .anima { animation: subir .9s cubic-bezier(.2,.7,.2,1) forwards; }
.slide.ativo .anima:nth-child(2) { animation-delay: .15s; }
.slide.ativo .anima:nth-child(3) { animation-delay: .3s; }
.slide.ativo .anima:nth-child(4) { animation-delay: .45s; }
@keyframes subir { to { opacity: 1; transform: none; } }
.pontos { display: flex; gap: 8px; }
.pontos button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.pontos button.ativo { width: 30px; background: #fff; }
