/* Vitrine em parede (30/10/2026) — prévia do reel DfAqpTsOHYn. Página: vitrine.html (gerada por vitrine.py).
   Desktop: a parede inteira (.vt-cena) é a "câmera": o clique escala e move a cena até o par.
   Celular (≤ 760px): grade de 2 colunas com rolagem e a mesma câmera (31/10/2026): o par para entre o título e o painel. */

:root {
  --vt-parede: #46423f;
  --vt-txt: #efebe7;
  --vt-txt-2: rgba(239, 235, 231, .62);
  --vt-txt-3: rgba(239, 235, 231, .42);
  --vt-linha: rgba(239, 235, 231, .18);
  --vt-laranja: #ff7a1f;
  --vt-gutter: clamp(18px, 3.2vw, 56px);
  --vt-curva: cubic-bezier(.77, 0, .18, 1);
  --vt-dur: 1.15s;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.vt {
  background: #2c2927;
  color: var(--vt-txt);
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.vt button { font: inherit; color: inherit; }
.vt a { color: inherit; text-decoration: none; }

/* ---------- palco, cena (câmera) e parede ---------- */
.vt-palco { position: fixed; inset: 0; overflow: hidden; background: var(--vt-parede); }
.vt-cena {
  position: absolute; left: 0; top: 0; width: 100vw; height: 100vh;
  transform-origin: 0 0;
  transition: transform var(--vt-dur) var(--vt-curva);
  isolation: isolate;
}
/* reboco (assets/vitrine/parede.webp, textura gerada por script): passa um pouco da tela para o zoom nunca mostrar a borda.
   Imagem e não filtro SVG: o filtro era recalculado ampliado 4x e travava o primeiro quadro do zoom. */
.vt-cena::before {
  content: ""; position: absolute; inset: -12vh -12vw; z-index: -2;
  background: var(--vt-parede) url("assets/vitrine/parede.webp") center / cover;
}
/* luz quente de cima, à esquerda, e a parede escurecendo para baixo */
.vt-cena::after {
  content: ""; position: absolute; inset: -12vh -12vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 52vh at calc(12vw + 15vw) calc(12vh + 2vh), rgba(255, 196, 200, .34), rgba(255, 196, 200, 0) 100%),
    radial-gradient(60vw 60vh at calc(12vw + 42vw) calc(12vh + 30vh), rgba(255, 230, 220, .07), transparent 100%),
    linear-gradient(180deg, transparent calc(12vh + 40vh), rgba(0, 0, 0, .28) calc(12vh + 100vh));
}
.vt-vinheta {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 40% 35%, transparent 55%, rgba(10, 6, 5, .5) 100%);
}
/* desfoque de movimento enquanto a câmera anda: no palco (tamanho da tela), não na cena ampliada, que pesa demais */
.vt-palco.vt-movendo { animation: vt-borrao var(--vt-dur) var(--vt-curva); }
@keyframes vt-borrao { 0%, 100% { filter: none; } 45% { filter: blur(2.2px); } }

.vt-parede {
  position: absolute; left: 6.5vw; right: 3vw; top: 12vh; height: 68vh;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr);
}

/* ---------- par na prateleira ---------- */
.vt-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 0 0; margin: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; outline: none;
  opacity: 0; transform: translateY(14px);
  animation: vt-entra .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.25s + var(--d, 0) * 70ms);
}
@keyframes vt-entra { to { opacity: 1; transform: none; } }
.vt-box {
  position: relative; display: block; width: min(15.2vw, 27vh);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  z-index: 1;
}
.vt-box img {
  position: absolute; display: block; max-width: none; pointer-events: none; user-select: none;
}
/* luz da prateleira acesa batendo na sola */
.vt-box::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -6%; height: 34%; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 100%, rgba(255, 128, 40, .75), transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .35s ease;
}

/* acrílico: tampo claro, frente transparente e sombra na parede */
.vt-prat {
  position: relative; display: block; width: calc(min(15.2vw, 27vh) * 1.12); height: .48vw; min-height: 5px;
  margin-top: -.12vw; border-radius: 1.5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0 1px, rgba(225, 228, 235, .26) 1px 22%, rgba(200, 205, 215, .1) 22% 88%, rgba(255, 255, 255, .32) 88% 100%);
  box-shadow: 0 1.3vw 1.4vw -.5vw rgba(8, 5, 4, .55), inset 1px 0 0 rgba(255, 255, 255, .22), inset -1px 0 0 rgba(255, 255, 255, .22);
  transition: background .3s ease, box-shadow .35s ease;
}
/* luz derramando na parede debaixo da prateleira */
.vt-prat::after {
  content: ""; position: absolute; left: -18%; right: -18%; top: 60%; height: 8vw; pointer-events: none;
  background: radial-gradient(50% 55% at 50% 0%, rgba(255, 112, 30, .6), rgba(255, 90, 20, .14) 55%, transparent 75%);
  opacity: 0; transition: opacity .35s ease;
}
.vt-item.on .vt-prat, .vt:not(.vt-aberto) .vt-item:hover .vt-prat, .vt:not(.vt-aberto) .vt-item:focus-visible .vt-prat {
  background: linear-gradient(180deg, #fff1cf 0 1px, #ffc77a 1px 22%, #ff8a2c 22% 88%, #ffd9a0 88% 100%);
  box-shadow: 0 0 .35vw #ff9a3e, 0 0 1.6vw rgba(255, 120, 30, .85), 0 .6vw 4vw rgba(255, 96, 20, .55);
}
.vt-item.on .vt-prat::after, .vt-item.on .vt-box::after,
.vt:not(.vt-aberto) .vt-item:hover .vt-prat::after, .vt:not(.vt-aberto) .vt-item:hover .vt-box::after,
.vt:not(.vt-aberto) .vt-item:focus-visible .vt-prat::after, .vt:not(.vt-aberto) .vt-item:focus-visible .vt-box::after { opacity: 1; }
.vt:not(.vt-aberto) .vt-item:hover .vt-box { transform: translateY(-2px); }

/* rótulo que aparece embaixo da prateleira */
.vt-rot {
  position: absolute; left: 50%; top: calc(100% + 2.6vh); transform: translate(-50%, 4px);
  display: grid; justify-items: center; gap: 3px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.vt-rot b { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(239, 235, 231, .78); }
.vt-rot small { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--vt-txt-3); }
.vt:not(.vt-aberto) .vt-item:hover .vt-rot, .vt:not(.vt-aberto) .vt-item:focus-visible .vt-rot { opacity: 1; transform: translate(-50%, 0); }
.vt-rot-preco { display: none; }

/* ---------- topo ---------- */
.vt-topo {
  position: fixed; left: 0; right: 0; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(16px, 2.6vh, 30px) var(--vt-gutter);
  font-size: 11.5px; letter-spacing: .01em;
}
.vt-marca img { display: block; height: 15px; width: auto; opacity: .92; }
.vt-menu { display: flex; align-items: center; gap: 28px; }
.vt-menu-item { position: relative; color: var(--vt-txt-2); transition: color .2s, opacity .3s; padding: 4px 0; }
.vt-menu-item:hover { color: var(--vt-txt); }
.vt-menu-item sup { font-size: 7px; margin-left: 2px; vertical-align: 6px; }
.vt-menu-item--ativo { color: var(--vt-txt); }
.vt-menu-item--ativo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transition: transform .4s var(--vt-curva); transform-origin: left; }
.vt-voltar {
  border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--vt-txt-2);
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; margin-right: -28px;
  transition: max-width .5s var(--vt-curva), opacity .3s ease, margin .5s var(--vt-curva), color .2s;
}
.vt-voltar:hover { color: var(--vt-txt); }
.vt-sacola { justify-self: end; color: var(--vt-txt-2); transition: color .2s; }
.vt-sacola:hover { color: var(--vt-txt); }
.vt-sacola.vt-pulo { animation: vt-pulo .5s ease; }
@keyframes vt-pulo { 40% { color: #ffb070; transform: translateY(-2px); } }

.vt-aberto .vt-voltar { max-width: 120px; opacity: 1; margin-right: 0; }
.vt-aberto #menu-colecao { opacity: 0; pointer-events: none; max-width: 0; overflow: hidden; margin-left: -28px; }
#menu-colecao { max-width: 120px; transition: opacity .3s, max-width .5s var(--vt-curva), margin .5s var(--vt-curva); }

/* ---------- textos da coleção ---------- */
.vt-olho { margin: 0; font-size: 8.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--vt-txt-3); }
.vt-intro {
  position: fixed; left: var(--vt-gutter); top: 14vh; z-index: 5; pointer-events: none;
  transition: opacity .5s ease, transform .6s var(--vt-curva);
}
.vt-frase { margin: 8px 0 0; font-size: clamp(15px, 1.15vw, 21px); font-weight: 400; letter-spacing: -.02em; color: var(--vt-txt-2); }
.vt-aberto .vt-intro { opacity: 0; transform: translateY(-8px); }

/* ---------- detalhe do par ---------- */
.vt-detalhe { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.vt-det-esq { position: absolute; left: var(--vt-gutter); top: 13vh; max-width: 38vw; }
.vt-titulo {
  margin: 10px 0 0; font-size: clamp(30px, 2.9vw, 58px); font-weight: 600; line-height: .95;
  letter-spacing: -.045em; text-transform: uppercase;
}
.vt-sub { margin: 12px 0 0; font-size: 10.5px; color: var(--vt-txt-2); letter-spacing: .01em; }
.vt-det-dir { position: absolute; right: var(--vt-gutter); top: 10.5vh; width: clamp(250px, 17vw, 330px); }
.vt-det-linha--topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--vt-linha); }
.vt-cor { margin: 8px 0 0; font-size: 10.5px; color: var(--vt-txt); }
.vt-preco { margin: 6px 0 0; font-size: clamp(18px, 1.25vw, 24px); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.vt-tam { display: block; padding: 14px 0 0; }
.vt-tam-rotulo { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--vt-txt-3); letter-spacing: .02em; }
.vt-tam-campo { position: relative; display: block; border-bottom: 1px solid var(--vt-linha); }
.vt-tam select {
  -webkit-appearance: none; appearance: none; width: 100%; border: 0; background: none; color: var(--vt-txt);
  font: 500 12px "Inter Tight", system-ui, sans-serif; padding: 10px 24px 11px 0; cursor: pointer; outline: none;
}
.vt-tam select:focus-visible { box-shadow: 0 1px 0 var(--vt-txt); }
.vt-tam option { color: #1d1b1a; }
.vt-seta { position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border: solid var(--vt-txt-2); border-width: 0 1.3px 1.3px 0; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.vt-tam-campo.vt-erro { animation: vt-treme .4s ease; border-color: #ff9a5c; }
@keyframes vt-treme { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.vt .vt-comprar {
  position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 18px;
  height: 52px; padding: 0 7px 0 20px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden;
  background: rgba(246, 241, 233, .93); color: #1f1c1a; text-align: left;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, background .3s;
}
.vt-comprar:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); }
.vt-comprar:active { transform: translateY(0) scale(.99); }
.vt-comprar-txt { display: grid; gap: 1px; }
.vt-comprar-txt b { font-size: 11.5px; font-weight: 600; letter-spacing: -.005em; }
.vt-comprar-txt small { font-size: 8.5px; color: rgba(31, 28, 26, .55); }
.vt-comprar-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(31, 28, 26, .08); transition: background .3s, color .3s; }
.vt-comprar-ic svg { width: 17px; height: 17px; }
.vt-comprar.vt-ok .vt-comprar-ic { background: var(--vt-laranja); color: #fff; }
.vt-onda { position: absolute; border-radius: 50%; background: rgba(31, 28, 26, .12); transform: scale(0); animation: vt-onda .6s ease-out forwards; pointer-events: none; }
@keyframes vt-onda { to { transform: scale(4); opacity: 0; } }
.vt-aviso { min-height: 14px; margin: 8px 0 0; font-size: 10px; color: #ffb27a; }
.vt-ver-sacola { display: inline-block; margin: 0 14px 0 0; font-size: 10px; font-weight: 600; color: #ffb27a; border-bottom: 1px solid rgba(255, 178, 122, .4); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.vt-ver-sacola:hover { color: #ffd0a8; border-color: #ffd0a8; }
.vt-ver-sacola[hidden] { display: none; }
.vt .vt-comprar:disabled { cursor: progress; opacity: .85; }
.vt-detalhes { display: inline-block; margin-top: 4px; font-size: 10px; color: var(--vt-txt-2); border-bottom: 1px solid var(--vt-linha); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.vt-detalhes:hover { color: var(--vt-txt); border-color: var(--vt-txt-2); }

/* entrada da interface do detalhe: .vt-chegou entra quando a câmera termina (transitionend no clube-vitrine.js) */
.vt-det-esq > *, .vt-det-dir > * { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.vt-aberto .vt-detalhe { pointer-events: none; }
.vt-chegou .vt-det-esq, .vt-chegou .vt-det-dir { pointer-events: auto; }
.vt-chegou .vt-det-esq > *, .vt-chegou .vt-det-dir > * { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 60ms); }
.vt-det-esq > :nth-child(2), .vt-det-dir > :nth-child(2) { --k: 1; }
.vt-det-esq > :nth-child(3), .vt-det-dir > :nth-child(3) { --k: 2; }
.vt-det-dir > :nth-child(4) { --k: 3; }
.vt-det-dir > :nth-child(5) { --k: 4; }
.vt-det-dir > :nth-child(6) { --k: 5; }

/* com o par aberto, os vizinhos que aparecem nas bordas continuam clicáveis */
.vt-aberto .vt-item { cursor: pointer; }
.vt-aberto .vt-item.on { cursor: default; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  :root { --vt-dur: 1s; }
  body.vt { overflow: auto; }
  body.vt.vt-aberto { overflow: hidden; overscroll-behavior: none; }
  /* o palco tem a altura da página e corta a cena ampliada: o zoom não cria rolagem nova */
  .vt-palco { position: relative; inset: auto; min-height: 100vh; overflow: clip; }
  .vt-cena { position: relative; width: 100%; height: auto; padding: 170px 14px 60px; }
  /* o reboco passa da cena para o zoom de um par da borda não mostrar o fim da parede */
  .vt-cena::before { inset: -30vh -40vw; }
  .vt-cena::after { inset: 0; background: radial-gradient(90vw 60vh at 10% 0%, rgba(255, 196, 200, .22), transparent 100%), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .3)); }
  .vt-vinheta { position: fixed; }
  .vt-parede { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; column-gap: 14px; row-gap: 44px; }
  .vt-box { width: 74%; }
  .vt-prat { width: 86%; height: 5px; }
  .vt-prat::after { height: 70px; }
  .vt-rot { position: static; transform: none; opacity: 1; width: 100%; margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 0 4px; }
  .vt-rot b { font-size: 9px; letter-spacing: .08em; text-align: left; white-space: normal; line-height: 1.25; }
  .vt-rot small { font-size: 8.5px; letter-spacing: .02em; color: var(--vt-txt-2); text-transform: none; }
  .vt-rot-n { display: none; }
  .vt-rot-preco { display: inline; }
  .vt:not(.vt-aberto) .vt-item:hover .vt-rot { transform: none; }
  /* par aberto: rótulos somem e os vizinhos apagam, porque o painel de compra fica por cima deles */
  .vt-aberto .vt-rot { opacity: 0; }
  .vt-box, .vt-item .vt-prat { transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1), background .3s ease, box-shadow .35s ease; }
  .vt-aberto .vt-item:not(.on) .vt-box, .vt-aberto .vt-item:not(.on) .vt-prat { opacity: .12; }
  .vt-topo { position: fixed; grid-template-columns: auto 1fr auto; gap: 20px; padding: 16px 16px; background: linear-gradient(180deg, rgba(40, 36, 34, .92), rgba(40, 36, 34, 0)); }
  .vt-menu { justify-content: flex-end; gap: 16px; }
  .vt-menu-item:not(#menu-colecao) { display: none; }
  .vt-intro { position: absolute; top: 74px; left: 16px; }

  /* detalhe por cima da cena: título em cima, painel embaixo e o par no vão (enquadrar() no clube-vitrine.js mede os dois) */
  .vt-detalhe { display: flex; flex-direction: column; padding: 70px 16px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .vt-detalhe::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s ease;
    background: linear-gradient(180deg, rgba(34, 31, 29, .62), rgba(34, 31, 29, 0) 26%, rgba(34, 31, 29, 0) 56%, rgba(34, 31, 29, .82) 78%, rgba(34, 31, 29, .9));
  }
  .vt-chegou .vt-detalhe::before { opacity: 1; }
  .vt-det-esq, .vt-det-dir { position: static; max-width: none; width: auto; }
  /* altura fixa para até 2 linhas de título: o vão do par não muda de um par para outro */
  .vt-det-esq { min-height: 116px; }
  .vt-titulo { font-size: 32px; }
  .vt-det-dir { margin-top: auto; }
  .vt-preco { font-size: 24px; }
  .vt-comprar { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --vt-dur: .45s; }
  .vt-palco.vt-movendo { animation: none; }
  .vt-item { animation-duration: .01s; animation-delay: 0s; }
}
