@view-transition { navigation: auto; }

:root {
  --preto: #111110;
  --branco: #fcfcfa;
  --estudio: #ecebe8;
  --linha: #e4e3df;
  --cinza: #6e6d69;
  --verde: #2f4a2e;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fonte: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fonte); font-weight: 300; color: var(--preto); background: var(--branco); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--preto); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rotulo { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.titulo { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.15; }
.link-sub { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.link-sub:hover { background-size: 30% 1px; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 32px; background: var(--preto); color: var(--branco); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; transition: background-color .3s, transform .3s var(--ease); }
.botao:hover { background: #2a2a28; }
.botao:active { transform: scale(.985); }
.botao--claro { background: var(--branco); color: var(--preto); }
.botao--claro:hover { background: #f1f0ec; }

/* ---------- faixa e cabeçalho ---------- */
.faixa { background: var(--preto); color: var(--branco); text-align: center; font-size: 10.5px; font-weight: 400; letter-spacing: .24em; padding: 9px var(--gutter); text-transform: uppercase; }
.topo { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; view-transition-name: topo; }
.topo.rolou { border-color: var(--linha); }
.topo__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding: 0 var(--gutter); }
.menu { display: flex; gap: 28px; }
.menu a { font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; position: relative; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.logo img { height: 22px; width: auto; }
.icones { display: flex; justify-content: flex-end; gap: 20px; }
.icones button, .icones a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.icones svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.contador { position: absolute; top: -3px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--preto); color: var(--branco); font-size: 10px; font-weight: 500; display: grid; place-items: center; transition: transform .4s var(--ease); }
.contador[data-n="0"] { transform: scale(0); }
.contador.pulo { animation: pulo .5s var(--ease); }
@keyframes pulo { 40% { transform: scale(1.35); } }
.hamburguer { display: none; }

/* ---------- cards de produto ---------- */
.grade { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 32px 16px; }
.card { display: block; }
.card__foto { position: relative; aspect-ratio: 4 / 5; background: var(--estudio); overflow: hidden; }
.card__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__foto .alt { opacity: 0; }
.card:hover .card__foto .alt { opacity: 1; }
.card:hover .card__foto img { transform: scale(1.03); }
.card__selo { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--verde); color: var(--branco); font-size: 9.5px; font-weight: 500; letter-spacing: .2em; padding: 5px 8px; text-transform: uppercase; }
.card__add { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; height: 44px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .3s; }
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }
.card__add:hover { background: var(--preto); color: var(--branco); }
.card__info { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.card__nome { font-size: 11.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.card__preco { font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- sacola (gaveta de vidro) ---------- */
.sacola { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.sacola.aberta { visibility: visible; }
.sacola__fundo { position: absolute; inset: 0; background: rgba(17,17,16,.32); opacity: 0; transition: opacity .5s var(--ease); }
.sacola.aberta .sacola__fundo { opacity: 1; }
.sacola__painel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100% - 20px)); display: flex; flex-direction: column; gap: 10px; padding: 22px 16px 16px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(246,246,243,.72); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 30px 80px rgba(0,0,0,.18);
  transform: translateX(calc(100% + 20px)); transition: transform .6s var(--ease); }
.sacola.aberta .sacola__painel { transform: none; }
.sacola__cab { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 8px; }
.sacola__cab h2 { font-size: 17px; font-weight: 500; letter-spacing: .3em; }
.fechar { width: 36px; height: 36px; display: grid; place-items: center; }
.fechar svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.2; }
.vidro { background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.sacola__lema { text-align: center; font-size: 10.5px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; line-height: 1.8; }
.frete-barra { height: 3px; background: rgba(0,0,0,.08); margin-bottom: 10px; overflow: hidden; }
.frete-barra i { display: block; height: 100%; background: var(--verde); transform-origin: left; transition: transform .8s var(--ease); }
.frete-txt { font-size: 12px; text-align: center; font-weight: 400; }
.item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: start; }
.item img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--estudio); width: 92px; }
.item__nome { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.item__preco { font-size: 15px; font-weight: 500; margin: 6px 0 2px; }
.item__tam { font-size: 12px; color: var(--cinza); }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--linha); background: rgba(255,255,255,.7); margin-top: 12px; }
.qtd button { width: 40px; height: 40px; font-size: 16px; }
.qtd span { width: 26px; text-align: center; font-size: 13px; font-weight: 400; }
.lixo { width: 40px; height: 40px; display: grid; place-items: center; margin: -10px -10px 0 0; }
.lixo svg { width: 18px; height: 18px; stroke: var(--cinza); fill: none; stroke-width: 1.3; }
.item.saindo { animation: sai .4s var(--ease) forwards; }
@keyframes sai { to { opacity: 0; transform: translateX(30px); } }
.look h3 { font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 14px; }
.look__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.look__item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.look__item img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--estudio); }
.look__item p { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.look__item b { display: block; font-size: 13px; font-weight: 500; margin: 4px 0 8px; }
.mais { width: 36px; height: 36px; border: 1px solid var(--preto); display: grid; place-items: center; font-size: 16px; transition: background-color .3s, color .3s; }
.mais:hover { background: var(--preto); color: var(--branco); }
.garantias { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #444; }
.garantias span { display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.garantias svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.3; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal strong { font-size: 18px; font-weight: 500; }
.subtotal small { display: block; font-size: 12px; color: var(--cinza); }
.pix { font-size: 12px; color: var(--verde); text-align: right; margin: 2px 0 14px; }
.sacola .botao { width: 100%; }
.selos { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: #8a8985; }
.vazia { text-align: center; padding: 40px 10px; font-size: 13px; color: var(--cinza); }
.vazia .botao { margin-top: 20px; width: auto; }

/* ---------- aviso ---------- */
.aviso { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; background: var(--preto); color: var(--branco); padding: 14px 22px; font-size: 12.5px; letter-spacing: .04em; transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; max-width: calc(100% - 32px); }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- rodapé ---------- */
.rodape { background: var(--preto); color: #cfcdc8; padding: 72px var(--gutter) 28px; margin-top: 0; }
.rodape__grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.rodape img { height: 20px; width: auto; margin-bottom: 20px; }
.rodape p { font-size: 13px; line-height: 1.7; max-width: 300px; }
.rodape h4 { margin: 0 0 16px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--branco); }
.rodape li { font-size: 13px; margin-bottom: 9px; }
.rodape li a:hover { color: var(--branco); }
.news { display: flex; border-bottom: 1px solid #555; margin-top: 18px; max-width: 320px; }
.news input { flex: 1; min-width: 0; background: none; border: 0; color: var(--branco); font: inherit; font-size: 13px; padding: 10px 0; outline: none; }
.news button { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--branco); }
.rodape__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2c2c2a; margin-top: 56px; padding-top: 22px; font-size: 11.5px; color: #8d8b86; }
.rodape__base a { color: #cfcdc8; }

/* ---------- entrada no scroll ---------- */

/* ---------- transições entre páginas ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation-name: vt-sai; }
::view-transition-new(root) { animation-name: vt-entra; }
@keyframes vt-sai { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; } }
::view-transition-group(foto) { animation-duration: .7s; animation-timing-function: var(--ease); }
::view-transition-old(foto), ::view-transition-new(foto) { height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .menu { display: none; }
  .hamburguer { display: grid; place-items: center; width: 28px; height: 28px; }
  .hamburguer svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.3; }
  .topo__in { height: 60px; }
  .logo img { height: 15px; }
  .icones { gap: 2px; }
  .icones [aria-label="Minha conta"] { display: none !important; }
  .icones button, .icones a, .hamburguer { width: 40px !important; height: 40px !important; }
  .grade { --cols: 2 !important; gap: 28px 10px; }
  .card__add { display: none; }
  .rodape__grade { grid-template-columns: 1fr 1fr; }
  .rodape__grade > div:first-child { grid-column: 1 / -1; }
  .menu-cel.aberto { display: flex; }
}
.menu-cel { display: none; position: fixed; inset: 0; z-index: 70; background: var(--branco); flex-direction: column; padding: 24px var(--gutter); gap: 24px; }
.menu-cel .fechar { align-self: flex-end; }
.menu-cel a { font-size: 22px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
[hidden] { display: none !important; }

/* =====================================================================================
   Kit de animações de entrada (skill /animacoes-site). Nasceu no 000 (portfólio do Felipe).
   - [data-palavras]            título letra por letra (Split Text, React Bits). O HTML vem
                                quebrado do build (letras.mjs) ou do letras.js no navegador.
   - [data-revela]              bloco que entra quando aparece. Em texto (p, h3, ul, .rotulo)
                                vira Blur Fade (21st.dev): sobe pouco e sai do desfoque.
   - [data-revela="grade"]      cartões em onda (Stagger Reveal Grid, 21st.dev), --i = coluna
                                (+ linha, se a grade entrar de uma vez).
   - [data-revela="esquerda" | "direita" | "zoom"]  variações simples.
   - [data-brilho]              botão importante com luz correndo na borda (Border Glow,
                                React Bits). Precisa do markup do bloco Border Glow
                                como 1º filho e position: relative no botão.
   - [data-conta]               número que conta (só o JS).
   Só transform, opacity e filter de desfoque em texto. A classe .js no <html> liga tudo:
   sem JS, tudo aparece no lugar.
   Trocar as cores em :root pelas da marca (--anim-luz é o tom do brilho).
   ===================================================================================== */
:root {
  --anim-ease: cubic-bezier(.22, 1, .36, 1);
  --anim-mola: cubic-bezier(.34, 1.4, .64, 1);
  --anim-mola-suave: cubic-bezier(.3, 1.22, .5, 1);
  --anim-passo: 85ms;
  --anim-luz: #e7b46a;
  --anim-luz-forte: #ffe2b0;
}

/* ---------------------------------------------------------------- revelação no scroll */
.js [data-revela] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  --d: calc(var(--i, 0) * var(--anim-passo) + var(--atraso, 0ms));
  transition: opacity .8s var(--anim-ease) var(--d), transform 1s var(--anim-ease) var(--d), filter .9s var(--anim-ease) var(--d);
}
/* Blur Fade em texto. O :not(.visivel) é obrigatório: sem ele esta regra (mais específica)
   vence o .visivel e o texto fica desfocado pra sempre */
.js :is(p, h3, ul, .rotulo)[data-revela]:not([data-revela='grade'], .visivel) { transform: translate3d(0, 14px, 0); filter: blur(10px); }
.js [data-revela='esquerda'] { transform: translate3d(-56px, 0, 0); }
.js [data-revela='direita'] { transform: translate3d(56px, 0, 0); }
.js [data-revela='zoom'] { transform: scale(.94); }
.js [data-revela='grade'] {
  transform: translate3d(0, 70px, 0) scale(.9);
  --d: calc(var(--i, 0) * 110ms + var(--atraso, 0ms));
  transition: opacity .7s var(--anim-ease) var(--d), transform 1.1s var(--anim-mola-suave) var(--d);
}
/* o título com letras não some inteiro: quem entra são as letras */
.js [data-revela='palavras'] { opacity: 1; transform: none; }
.js [data-revela].visivel { opacity: 1; transform: none; filter: none; }

/* ---------------------------------------------------------------- Split Text (letras) */
.pw { display: inline-block; vertical-align: top; } /* a palavra não quebra no meio */
.pw__i, .pc { display: inline-block; }
.js [data-palavras] .pc {
  opacity: 0;
  transform: translate3d(0, .55em, 0);
  transition: opacity .7s var(--anim-ease), transform 1.1s var(--anim-ease);
  transition-delay: calc(var(--c, 0) * 24ms + var(--atraso, 0ms));
}
.js .visivel[data-palavras] .pc, .js .visivel [data-palavras] .pc { opacity: 1; transform: none; }

/* Título do hero (candidato a LCP): letra transparente atrasa o LCP. Ali as letras sobem de
   dentro da máscara da palavra, sem opacidade, por animação de CSS que começa na 1ª pintura
   (não espera o JS). Pôr a classe .anim-hero no h1. */
.anim-hero .pw { overflow: clip; padding: .16em .04em .08em; margin: -.16em -.04em -.08em; }
.js .anim-hero[data-palavras] .pc { opacity: 1; transform: none; transition: none; animation: anim-letra-mascara .9s var(--anim-ease) both; animation-delay: calc(var(--c, 0) * 18ms + var(--atraso, .2s)); }
@keyframes anim-letra-mascara { from { transform: translate3d(0, 112%, 0); } }
/* resto do texto do hero: Blur Fade na 1ª pintura, em sequência pelo --atraso */
.js .anim-hero-texto { animation: anim-desfoque .9s var(--anim-ease) var(--atraso, .45s) both; }
@keyframes anim-desfoque { from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(10px); } }

/* ---------------------------------------------------------------- Border Glow (botões)
   Um ponto de luz (radial) acende a borda: segue o cursor no computador e dá uma volta a cada
   5 s quando ninguém passa o mouse. Ponto e não cone a partir do centro: no botão comprido o
   cone acendia a borda inteira e o halo vazava como mancha. Usar em 2 a 4 botões, não mais.
   A volta roda só em transform e opacity: a máscara do aro fica parada e, dentro dela, uma
   caixa do tamanho do botão anda com translate em %, levando o ponto no canto. Animar as
   variáveis (--bx/--by) recalculava o estilo a cada quadro, pra sempre: o Lighthouse do
   celular nunca achava a página ociosa (TBT sem valor, nota 0 no 000). As variáveis ficam só
   pro mouse, que roda enquanto o cursor está em cima.
   Markup (1º filho do botão):
   <span class="brilho" aria-hidden="true"><span class="brilho__volta"><span class="brilho__ponto"></span></span></span><span class="brilho-fio" aria-hidden="true"><span class="brilho__ponto"></span></span> */
@property --bx { syntax: '<length-percentage>'; inherits: true; initial-value: 50%; }
@property --by { syntax: '<length-percentage>'; inherits: true; initial-value: 0%; }
@property --brilho-f { syntax: '<number>'; inherits: true; initial-value: 0; }
[data-brilho] {
  position: relative;
  isolation: isolate;
  --brilho-cor: #fff, var(--anim-luz-forte) 22%, color-mix(in srgb, var(--anim-luz) 45%, transparent) 50%, transparent 75%;
  --brilho-luz: radial-gradient(70px circle at var(--bx) var(--by), var(--brilho-cor));
}
[data-brilho]::after, .brilho::before, .brilho-fio, .brilho__volta {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
[data-brilho]::after, .brilho::before { content: ''; background: var(--brilho-luz); opacity: var(--brilho-f); transition: opacity .45s ease; }
[data-brilho]::after, .brilho-fio { z-index: 1; padding: 1.5px; }
.brilho { position: absolute; inset: 0; z-index: -2; border-radius: inherit; filter: blur(7px); opacity: .9; pointer-events: none; }
.brilho::before, .brilho__volta { inset: -3px; padding: 5px; }
.brilho-fio, .brilho__volta { opacity: 0; }
.brilho__ponto { position: absolute; inset: 0; }
/* a máscara esconde o ponto fora do aro, mas ele ainda conta na largura da página: botão largo no
   celular deixava a página com 446 px em 390 (090). O corte não muda nada que se veja */
.brilho-fio, .brilho__volta { overflow: hidden; }
.brilho__ponto::before { content: ''; position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, var(--brilho-cor)); }
.brilho-mouse[data-brilho] { --brilho-f: 1; }
/* a volta roda nas camadas de luz, nunca no botão: no botão ela toma o lugar da animação de
   entrada, e ao passar o mouse a entrada volta a valer e roda de novo (o botão some) */
.brilho-vivo[data-brilho]:not(.brilho-mouse) > .brilho-fio,
.brilho-vivo[data-brilho]:not(.brilho-mouse) > .brilho > .brilho__volta { animation: brilho-acende 5s linear 1.2s infinite; }
.brilho-vivo[data-brilho]:not(.brilho-mouse) .brilho__ponto { animation: brilho-anda 5s linear 1.2s infinite; }
/* topo da esquerda pra direita, ponta direita, base de volta, ponta esquerda, some */
@keyframes brilho-anda {
  0% { transform: translate(12%, 0); }
  14% { transform: translate(88%, 0); }
  19% { transform: translate(100%, 50%); }
  24% { transform: translate(88%, 100%); }
  33% { transform: translate(12%, 100%); }
  38% { transform: translate(0, 50%); }
  43%, 100% { transform: translate(12%, 0); }
}
@keyframes brilho-acende {
  0% { opacity: 0; }
  5%, 38% { opacity: 1; }
  43%, 100% { opacity: 0; }
}

/* ---------------------------------------------------------------- movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .js [data-revela], .js [data-palavras] .pc, .js .anim-hero-texto { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  .js .anim-hero[data-palavras] .pc { animation: none; }
  .brilho-fio, .brilho__volta, .brilho__ponto { animation: none !important; }
}

/* ---------- esgotado (vem da vitrine do banco) ---------- */
.card__selo--fim { background: var(--preto); }
.card--esgotado .card__foto img { opacity: .55; }
.card--esgotado:hover .card__foto .alt { opacity: 0; }
.card__add:disabled { cursor: not-allowed; background: rgba(255,255,255,.86); color: var(--cinza); }
.esgotou { font-weight: 500; color: #9a3b2a; }
