/* ITSK Studio and Second · boutique feminina
   Cores e fontes ficam aqui no começo: trocando, o site inteiro muda. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/montserrat.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/playfair-italico.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/playfair.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree.woff2") format("woff2"); }

:root {
  --preto: #0E0E0E;
  --grafite: #2A2826;
  --branco: #FFFFFF;
  --off: #F5F2EC;
  --papel: #F1EDE6;
  --bege: #E4D9C8;
  --bege-escuro: #BFAE96;
  --texto: #171615;
  --suave: #6F6A63;
  --linha: rgba(23, 22, 21, .12);
  --vidro: rgba(255, 255, 255, .1);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --corpo: "Figtree", "Montserrat", system-ui, sans-serif;
  --serifa: "Playfair Display", Georgia, serif;
  --raio: 22px;
  --curva: cubic-bezier(.22, 1, .36, 1);
  --lado: clamp(16px, 4vw, 56px);
  --topo-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--preto); color: var(--texto);
  font: 400 16px/1.6 var(--corpo); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.travado { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--bege-escuro); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--preto); color: var(--off); }
em { font-family: var(--serifa); font-style: italic; font-weight: 400; letter-spacing: 0; }

.pular { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--off); padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.pular:focus { top: 12px; }

/* ---------- Abertura ---------- */
.abertura {
  position: fixed; inset: 0; z-index: 90; background: var(--preto); color: var(--branco);
  display: grid; place-content: center; justify-items: center; gap: 14px;
  animation: abertura-sai .9s var(--curva) 1.9s forwards;
}
.abertura__marca { display: flex; font: 800 clamp(64px, 14vw, 150px)/.9 var(--sans); letter-spacing: -.02em; overflow: hidden; }
.abertura__marca span { display: inline-block; transform: translateY(105%); animation: letra .9s var(--curva) forwards; }
.abertura__marca span:nth-child(2) { animation-delay: .08s; }
.abertura__marca span:nth-child(3) { animation-delay: .16s; }
.abertura__marca span:nth-child(4) { animation-delay: .24s; }
.abertura__sub { font: 500 clamp(11px, 1.6vw, 15px)/1 var(--sans); letter-spacing: .42em; opacity: 0; animation: surge .8s ease .7s forwards; padding-left: .42em; }
@keyframes letra { to { transform: none; } }
@keyframes surge { to { opacity: .85; } }
@keyframes abertura-sai { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- Vídeo de fundo ---------- */
.fundo { position: fixed; inset: 0; z-index: -1; background: var(--preto); overflow: hidden; }
.fundo video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 + var(--rolagem, 0) * .08)); filter: grayscale(1) contrast(1.05); }
.fundo__veu { position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(0,0,0,.55) 100%),
  linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.1) 35%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.82)); }

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--topo-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 0 var(--lado); color: var(--branco);
  transition: background .5s var(--curva), color .5s var(--curva), box-shadow .5s, transform .5s var(--curva);
}
.topo.solido { background: rgba(245, 242, 236, .78); color: var(--texto); box-shadow: 0 1px 0 var(--linha); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.topo.escondido { transform: translateY(-100%); }
.marca { display: grid; justify-self: start; width: 104px; }
.marca img { grid-area: 1 / 1; width: 100%; height: auto; transition: opacity .5s var(--curva); }
.marca__escura { opacity: 0; }
.topo.solido .marca__escura { opacity: 1; }
.topo.solido .marca__clara { opacity: 0; }

.abas { position: fixed; z-index: 41; top: calc((var(--topo-h) - 44px) / 2); left: 50%; transform: translateX(-50%); color: var(--branco); transition: transform .5s var(--curva), color .5s, background .5s; display: flex; padding: 4px; border-radius: 999px; background: var(--vidro); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.solido .abas { background: rgba(23,22,21,.05); border-color: var(--linha); }
.abas__item { position: relative; z-index: 1; padding: 9px 22px; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; border-radius: 999px; transition: color .4s; }
.abas__item[aria-pressed="true"] { color: var(--preto); }
body.solido .abas { color: var(--texto); }
body.solido .abas__item[aria-pressed="true"] { color: var(--off); }
body.escondido .abas { transform: translate(-50%, calc(-100% - var(--topo-h))); }
.abas__pilula { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--branco); transition: transform .55s var(--curva), width .55s var(--curva), background .4s; }
body.solido .abas__pilula { background: var(--preto); }

.topo__acoes { justify-self: end; display: flex; gap: 4px; }
.icone { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .25s; }
.icone:hover { background: rgba(127,127,127,.14); }
.icone svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contador { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bege); color: var(--preto); font: 700 10px/17px var(--sans); text-align: center; }
.contador.pulsa { animation: pulsa .5s var(--curva); }
@keyframes pulsa { 40% { transform: scale(1.45); } }

/* ---------- Tipografia e botões ---------- */
.sobretitulo { margin: 0 0 14px; font: 600 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }
.titulo { margin: 0; font: 700 clamp(32px, 5.2vw, 64px)/1.02 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.titulo em { font-size: 1.04em; }
.botao {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px;
  border-radius: 999px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transform: translate(var(--mx), var(--my)); transition: transform .35s var(--curva), background .3s, color .3s, box-shadow .3s;
}
.botao--claro { background: var(--branco); color: var(--preto); }
.botao--claro:hover { box-shadow: 0 14px 40px rgba(255,255,255,.22); }
.botao--vidro { color: var(--branco); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.botao--vidro:hover { background: rgba(255,255,255,.18); }
.botao--escuro { background: var(--preto); color: var(--off); }
.botao--escuro:hover { background: var(--grafite); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.botao--linha { border: 1px solid var(--texto); }
.botao--linha:hover { background: var(--texto); color: var(--off); }
.botao.largo { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--topo-h) + 40px) var(--lado) clamp(56px, 10vh, 110px); color: var(--branco); }
.hero__conteudo { max-width: 900px; }
.hero .sobretitulo { color: rgba(255,255,255,.75); }
.hero__titulo { margin: 0 0 30px; font: 700 clamp(40px, 6.2vw, 92px)/.98 var(--sans); letter-spacing: -.045em; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.hero__titulo .linha { display: block; }
.hero__titulo em { font-size: 1.05em; }
.hero__botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rolar { position: absolute; right: var(--lado); bottom: clamp(56px, 10vh, 110px); width: 26px; height: 44px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px; }
.hero__rolar span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--branco); animation: rolar 1.8s ease-in-out infinite; }
@keyframes rolar { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Faixa corrida ---------- */
.faixa { overflow: hidden; background: var(--preto); color: var(--off); border-block: 1px solid rgba(255,255,255,.08); }
.faixa__trilho { display: flex; align-items: center; gap: 34px; width: max-content; padding: 18px 0; animation: correr 38s linear infinite; }
.faixa span { font: 600 13px/1 var(--sans); letter-spacing: .3em; white-space: nowrap; }
.faixa i { width: 6px; height: 6px; border-radius: 50%; background: var(--bege-escuro); }
@keyframes correr { to { transform: translateX(-50%); } }

/* ---------- Superfícies sobre o vídeo ---------- */
.papel { position: relative; background: var(--off); padding: clamp(72px, 11vw, 150px) var(--lado); }
.cabeca { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Escolha: Studio x Second ---------- */
.escolha__grade { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.mundo { display: grid; grid-template-rows: auto auto; border-radius: var(--raio); overflow: hidden; background: var(--papel); isolation: isolate; }
.mundo__foto { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.mundo__foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--curva), filter .8s; }
.mundo:hover .mundo__foto img { transform: scale(1.1); }
.mundo__texto { position: relative; padding: clamp(22px, 3vw, 38px); }
.mundo__num { position: absolute; right: clamp(22px, 3vw, 38px); top: clamp(22px, 3vw, 38px); font: 500 12px/1 var(--sans); letter-spacing: .2em; color: var(--suave); }
.mundo h3 { margin: 0; font: 700 clamp(30px, 4.4vw, 56px)/1 var(--sans); letter-spacing: -.02em; }
.mundo p { margin: 8px 0 22px; font-size: clamp(16px, 1.6vw, 20px); color: var(--suave); }
.mundo__link { display: inline-flex; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.mundo__link b { transition: transform .4s var(--curva); }
.mundo:hover .mundo__link b { transform: translateX(8px); }

/* ---------- Vitrine ---------- */
.vitrine { padding-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--linha); }
.vitrine__cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 34px; }
.vitrine__intro { max-width: 520px; margin: 16px 0 0; color: var(--suave); }
.troca { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: var(--papel); border: 1px solid var(--linha); }
.troca__item { display: grid; gap: 4px; padding: 14px 26px; border-radius: 15px; text-align: left; font: 700 15px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .4s var(--curva), color .4s; }
.troca__item small { font: 500 11px/1 var(--corpo); letter-spacing: .04em; text-transform: none; opacity: .7; }
.troca__item[aria-selected="true"] { background: var(--preto); color: var(--off); }

.filtros { position: sticky; top: calc(var(--topo-h) - 1px); z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 0 calc(var(--lado) * -1) 30px; padding: 12px var(--lado); background: rgba(245,242,236,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.filtros.preso { border-bottom-color: var(--linha); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--linha); font: 500 13px/1 var(--corpo); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--texto); }
.chip[aria-pressed="true"] { background: var(--texto); border-color: var(--texto); color: var(--off); }
.filtros__direita { display: flex; gap: 10px; }
.seletor { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 16px; height: 42px; border-radius: 999px; border: 1px solid var(--linha); font-size: 12px; color: var(--suave); }
.seletor select { border: 0; background: transparent; padding: 0 6px; height: 100%; font-size: 13px; color: var(--texto); cursor: pointer; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 26px) clamp(12px, 1.6vw, 22px); view-transition-name: grade; }
.card { position: relative; display: grid; gap: 14px; animation: entra .7s var(--curva) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes entra { from { opacity: 0; transform: translateY(26px); } }
.card__foto { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--papel); cursor: pointer; }
.card__foto img, .card__foto .arte { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--curva); }
.card:hover .card__foto img, .card:hover .card__foto .arte { transform: scale(1.06); }
.card__selo { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 64px); padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); font: 600 10px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.card__selo--escuro { background: rgba(14,14,14,.85); color: var(--off); }
.card__fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); transition: transform .3s var(--curva); }
.card__fav:hover { transform: scale(1.1); }
.card__fav svg { width: 18px; height: 18px; fill: none; stroke: var(--texto); stroke-width: 1.6; }
.card__fav[aria-pressed="true"] svg { fill: var(--texto); }
.card__rapido { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 44px; border-radius: 999px; background: var(--preto); color: var(--off); font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s var(--curva); }
.card:hover .card__rapido, .card__rapido:focus-visible { opacity: 1; transform: none; }
.card__nome { margin: 0; font: 600 15px/1.35 var(--sans); letter-spacing: -.005em; }
.card__nome button { text-align: left; }
.card__info { display: grid; gap: 5px; }
.card__preco { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.card__preco b { font-weight: 600; }
.card__preco s { color: var(--suave); font-size: 13px; }
.card__preco small { width: 100%; color: var(--suave); font-size: 12.5px; }
.card__tams { display: flex; flex-wrap: wrap; gap: 6px; font: 500 11px/1 var(--sans); letter-spacing: .08em; color: var(--suave); }
.card__tams span.fora { text-decoration: line-through; opacity: .5; }
.card.esgotado .card__foto { filter: grayscale(.5) opacity(.7); }

.arte { display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 35%, #fff 0%, var(--fundo-arte, var(--papel)) 75%); }
.arte svg { width: 62%; height: 62%; filter: drop-shadow(0 18px 22px rgba(0,0,0,.14)); }
.arte__rotulo { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: 600 9px/1 var(--sans); letter-spacing: .3em; color: rgba(0,0,0,.35); }

.vazio { padding: 60px 0; text-align: center; color: var(--suave); }

::view-transition-old(grade) { animation: .3s var(--curva) both vt-sai; }
::view-transition-new(grade) { animation: .5s var(--curva) both vt-entra; }
@keyframes vt-sai { to { opacity: 0; transform: translateX(-30px); filter: blur(6px); } }
@keyframes vt-entra { from { opacity: 0; transform: translateX(30px); filter: blur(6px); } }

/* ---------- Janela para o vídeo ---------- */
.janela { min-height: 82svh; display: grid; place-items: center; padding: 120px var(--lado); color: var(--branco); text-align: center; }
.janela__frase { max-width: 1000px; margin: 0; font: 600 clamp(28px, 4.6vw, 62px)/1.12 var(--sans); letter-spacing: -.03em; text-shadow: 0 4px 40px rgba(0,0,0,.5); }

/* ---------- Experiência ---------- */
.experiencia { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.experiencia__fotos { position: relative; min-height: clamp(420px, 52vw, 700px); }
.experiencia__fotos figure { position: absolute; margin: 0; border-radius: var(--raio); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.experiencia__fotos img { width: 100%; height: 100%; object-fit: cover; }
.foto-a { left: 0; top: 0; width: 64%; height: 88%; }
.foto-b { right: 0; bottom: 0; width: 58%; aspect-ratio: 16 / 10; border: 8px solid var(--off); }
.experiencia__texto > p:not(.sobretitulo) { margin: 24px 0 34px; font-size: 17px; color: var(--suave); max-width: 520px; }
.experiencia__texto b { color: var(--texto); }
.selos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linha); }
.selos li { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--linha); }
.selos b { font: 700 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.selos span { color: var(--suave); text-align: right; font-size: 14px; }

/* ---------- Venda suas peças ---------- */
.consigne { padding: clamp(80px, 12vw, 160px) var(--lado); }
.consigne__caixa { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 72px); border-radius: 28px; text-align: center; background: rgba(245,242,236,.88); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 40px 80px rgba(0,0,0,.3); }
.consigne__caixa > p:not(.sobretitulo) { margin: 20px auto 30px; max-width: 520px; color: var(--suave); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--preto); color: var(--off); padding: clamp(60px, 8vw, 100px) var(--lado) 34px; }
.rodape__marca { margin-bottom: 52px; }
.rodape__marca img { width: min(560px, 80%); height: auto; }
.rodape__colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rodape h3 { margin: 0 0 16px; font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--bege-escuro); }
.rodape a, .rodape p { display: block; margin: 0 0 10px; color: rgba(245,242,236,.8); font-size: 14.5px; }
.rodape a:hover { color: var(--branco); }
.rodape__fim { margin-top: 26px !important; font-size: 12px !important; color: rgba(245,242,236,.45) !important; }

/* ---------- Janelas (dialog) ---------- */
dialog { border: 0; padding: 0; color: var(--texto); background: var(--off); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10,10,10,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: abre .5s var(--curva); }
dialog[open]::backdrop { animation: veu .4s ease; }
@keyframes abre { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes veu { from { opacity: 0; } }
.fechar { width: 42px; height: 42px; border-radius: 50%; font: 300 28px/1 var(--sans); display: grid; place-items: center; transition: background .2s, transform .3s var(--curva); }
.fechar:hover { background: rgba(0,0,0,.07); transform: rotate(90deg); }

.peca { width: min(1040px, calc(100% - 24px)); margin: auto; border-radius: 26px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.peca[open] { display: grid; }
.peca > .fechar { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255,255,255,.8); }
.peca__foto { position: relative; min-height: 420px; background: var(--papel); }
.peca__foto img, .peca__foto .arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peca__info { padding: clamp(28px, 4vw, 52px); display: grid; align-content: center; gap: 12px; }
.peca__info h2 { margin: 0; font: 700 clamp(26px, 3vw, 36px)/1.08 var(--sans); letter-spacing: -.03em; }
.peca__info .sobretitulo { margin: 0; }
.peca__tag { margin: 0; color: var(--suave); font-size: 14px; }
.peca__tag:empty { display: none; }
.peca__preco { margin: 4px 0 8px; font-size: 22px; font-weight: 600; }
.peca__preco s { margin-left: 10px; font-size: 15px; font-weight: 400; color: var(--suave); }
.peca__preco small { display: block; font-size: 13px; font-weight: 400; color: var(--suave); }
.peca__tams { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.tam { min-width: 52px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--linha); font: 600 13px/1 var(--sans); letter-spacing: .06em; transition: all .25s; }
.tam:hover:not(:disabled) { border-color: var(--texto); }
.tam[aria-checked="true"] { background: var(--texto); color: var(--off); border-color: var(--texto); }
.tam:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.peca__aviso { margin: 0; color: #9c3b2c; font-size: 13px; }
.peca__nota { margin: 4px 0 0; font-size: 12.5px; color: var(--suave); }
.peca__nota:empty { display: none; }

.gaveta { position: fixed; inset: 0 0 0 auto; height: 100%; width: min(440px, 100%); margin: 0; display: none; flex-direction: column; }
.gaveta[open] { display: flex; animation: gaveta .5s var(--curva); }
@keyframes gaveta { from { transform: translateX(100%); } }
.gaveta__topo { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--linha); }
.gaveta__topo h2 { margin: 0; font: 700 16px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.gaveta__lista { flex: 1; overflow-y: auto; padding: 8px 22px; }
.gaveta__rodape { padding: 20px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); display: grid; gap: 12px; }
.gaveta__total { display: flex; justify-content: space-between; font-size: 17px; }
.gaveta__nota { margin: 0; font-size: 12px; color: var(--suave); text-align: center; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.item__foto { position: relative; width: 76px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--papel); }
.item__foto img, .item__foto .arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item__foto .arte__rotulo { display: none; }
.item h3 { margin: 0 0 4px; font: 600 14px/1.3 var(--sans); }
.item p { margin: 0; font-size: 13px; color: var(--suave); }
.item__qtd { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 1px solid var(--linha); border-radius: 999px; }
.item__qtd button { width: 28px; height: 28px; border-radius: 50%; }
.item__qtd span { min-width: 18px; text-align: center; font-size: 13px; }
.item__tirar { font-size: 12px; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; align-self: start; }
.gaveta__vazia { padding: 60px 10px; text-align: center; color: var(--suave); }

.busca { width: min(760px, calc(100% - 24px)); margin: 10vh auto auto; border-radius: 24px; overflow: hidden; }
.busca__campo { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--linha); }
.busca__campo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.busca__campo input { flex: 1; min-width: 0; border: 0; background: none; font-size: 19px; padding: 10px 0; outline: none; }
.busca__resultados { max-height: 60vh; overflow-y: auto; padding: 8px 22px 16px; }
.busca__resultados .item { grid-template-columns: 60px 1fr auto; cursor: pointer; }
.busca__resultados .item__foto { width: 60px; }
.busca__dica { padding: 26px 0; color: var(--suave); text-align: center; font-size: 14px; }

.aviso-flutuante { position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 999px; background: var(--preto); color: var(--off); font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.3); transition: transform .5s var(--curva), opacity .3s, visibility .5s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; opacity: 0; visibility: hidden; }
.aviso-flutuante.ver { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--curva), opacity .3s; }

/* ---------- Cursor (só com mouse) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 95; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: width .35s var(--curva), height .35s var(--curva), margin .35s var(--curva), opacity .3s; }
.cursor.ativo { opacity: 1; }
.cursor.grande { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* ---------- Revelar ao rolar ---------- */
.revelar { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--curva), transform 1.1s var(--curva); }
.revelar.visivel { opacity: 1; transform: none; }
.escolha__grade .revelar:nth-child(2) { transition-delay: .12s; }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  :root { --topo-h: 64px; }
  .topo.escondido { transform: none; }
  .topo { grid-template-columns: auto 1fr; }
  .abas, body.escondido .abas { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(14,14,14,.72); border-color: rgba(255,255,255,.18); color: var(--branco); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
  body.solido .abas { background: rgba(14,14,14,.82); border-color: rgba(255,255,255,.18); color: var(--branco); }
  body.solido .abas__item[aria-pressed="true"] { color: var(--preto); }
  body.solido .abas__pilula { background: var(--branco); }
  .marca { width: 88px; }
  .escolha__grade { grid-template-columns: 1fr 1fr; }
  .mundo__foto { aspect-ratio: 3 / 4; }
  .mundo p { margin-bottom: 14px; }
  .experiencia { grid-template-columns: 1fr; }
  .peca { grid-template-columns: 1fr; max-height: calc(100% - 24px); overflow-y: auto; }
  .peca__foto { min-height: 0; aspect-ratio: 4 / 5; }
  .aviso-flutuante { bottom: 90px; }
  .hero__rolar { display: none; }
}
@media (max-width: 560px) {
  .escolha__grade { grid-template-columns: 1fr; }
  .mundo__foto { aspect-ratio: 4 / 4.4; }
  .grade { grid-template-columns: 1fr 1fr; }
  .card__nome { font-size: 13.5px; }
  .card__preco { font-size: 14px; }
  .card__rapido { display: none; }
  .troca { width: 100%; }
  .troca__item { padding: 12px 16px; }
  .filtros__direita { width: 100%; }
  .seletor { flex: 1; padding-left: 12px; }
  .seletor select { flex: 1; min-width: 0; }
  .selos li { flex-direction: column; gap: 4px; }
  .selos span { text-align: left; }
  .hero__botoes .botao { flex: 1 1 100%; }
}
@media (hover: none) { .card__rapido { display: none; } .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
