/* Kollect — galeria noturna
   Carvão e grafite, branco quente, âmbar só na ação principal.
   Archivo em duas larguras: condensada nos títulos, normal no texto. */

/* Archivo (variável: peso 300-800, largura 62-125%), servida pelo próprio site.
   Licença SIL OFL 1.1 em /fonts/OFL.txt. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --carvao: #141413;
  --grafite: #1b1b19;
  --grafite-2: #232320;
  --linha: #3b3a35;
  --linha-suave: #2b2a26;
  --texto: #f1ebe1;
  --texto-2: #b5afa4;
  --texto-3: #918b80;
  --ambar: #dca84a;
  --ambar-forte: #ebbb62;
  --sobre-ambar: #18130a;
  --luz-fria: #1a2331;

  --fonte: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --secao: clamp(80px, 11vw, 160px);
  --header: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--carvao);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: contents;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
}

::selection {
  background: var(--ambar);
  color: var(--sobre-ambar);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--texto);
  color: var(--carvao);
  font-weight: 600;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Blur reveal ---------- */

.br-visual {
  display: contents;
}

.br-word {
  display: inline-block;
  white-space: nowrap;
}

.br-char {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  /* Esconde o texto até o script dividir as letras; se o script falhar, aparece sozinho. */
  .js [data-blur-reveal]:not(.is-split) {
    opacity: 0;
    animation: br-fallback 0s 2.5s forwards;
  }

  .js [data-blur-reveal] .br-char {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(10px);
    transition:
      opacity var(--br-duration, 0.6s) ease-out,
      filter var(--br-duration, 0.6s) ease-out,
      transform var(--br-duration, 0.6s) ease-out;
    transition-delay: calc(var(--br-delay, 0s) + var(--i, 0) * var(--br-stagger, 0.02s));
  }

  .js [data-blur-reveal].is-revealed .br-char {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes br-fallback {
  to {
    opacity: 1;
  }
}

/* ---------- Tipografia ---------- */

.section-title {
  font-size: clamp(2.25rem, 1.35rem + 3.3vw, 4.25rem);
  font-weight: 620;
  font-stretch: 72%;
  font-variation-settings: 'wdth' 72;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-intro {
  max-width: 36rem;
  color: var(--texto-2);
  text-wrap: pretty;
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto clamp(40px, 5vw, 72px);
  padding: 0 var(--gutter);
}



/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn--primary {
  background: var(--ambar);
  color: var(--sobre-ambar);
}

.btn--primary:hover {
  background: var(--ambar-forte);
}

.btn--ghost {
  border-color: rgb(241 235 225 / 0.38);
  background: transparent;
  color: var(--texto);
}

.btn--ghost:hover {
  border-color: var(--texto);
  background: rgb(241 235 225 / 0.05);
}

.btn--line {
  min-height: 44px;
  padding: 0 18px;
  border-color: var(--linha);
  color: var(--texto);
  flex-shrink: 0;
}

.btn--line:hover {
  border-color: var(--ambar);
  color: var(--ambar-forte);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn:active {
  translate: 0 1px;
}

/* Botões magnéticos: deslocamento leve na direção do cursor (definido em main.js). */
.btn[data-magnetic] {
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.35s var(--ease);
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-header[data-scrolled],
.site-header[data-open] {
  background: rgb(20 20 19 / 0.96);
  border-bottom-color: var(--linha-suave);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max);
  height: var(--header);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: block;
  margin-right: auto;
  padding: 8px 0;
}

.brand img {
  width: auto;
  height: 20px;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__list a {
  display: block;
  padding: 10px 14px;
  color: var(--texto-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__list a:hover {
  color: var(--texto);
}

.nav__store a {
  color: var(--texto);
  text-decoration: underline;
  text-decoration-color: var(--ambar);
  text-underline-offset: 6px;
}

.nav__toggle {
  display: none;
}

@media (max-width: 999px) {
  .brand img {
    height: 17px;
  }

  .site-header__inner {
    gap: 8px;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 6px 0 12px;
    border: 0;
    background: none;
    color: var(--texto);
    font: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
  }

  .nav__toggle-bars,
  .nav__toggle-bars::before {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.25s var(--ease);
  }

  .nav__toggle-bars {
    position: relative;
    transform: translateY(-3px);
  }

  .nav__toggle-bars::before {
    content: '';
    position: absolute;
    top: 6px;
  }

  .nav__toggle[aria-expanded='true'] .nav__toggle-bars {
    transform: translateY(0) rotate(45deg);
  }

  .nav__toggle[aria-expanded='true'] .nav__toggle-bars::before {
    transform: translateY(-6px) rotate(-90deg);
  }

  .nav__list {
    position: fixed;
    inset: var(--header) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--carvao);
    border-bottom: 1px solid var(--linha-suave);
  }

  .js .nav__list:not([data-open]) {
    display: none;
  }

  .nav__list a {
    padding: 16px 0;
    border-bottom: 1px solid var(--linha-suave);
    color: var(--texto);
    font-size: 1.125rem;
  }

  /* Sem JavaScript o menu fica sempre visível dentro do cabeçalho. */
  html:not(.js) .site-header {
    position: absolute;
  }

  html:not(.js) .nav__list {
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: none;
  }
}

/* ---------- Hero ---------- */

/* Filme da marca em tela cheia; o texto fica na faixa de baixo, onde o filme é só fundo. */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(560px, min(100svh, 1000px));
  overflow: hidden;
  isolation: isolate;
  background: #121212;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(20 20 19 / 0.92) 0, rgb(20 20 19 / 0.55) 22%, transparent 42%),
    linear-gradient(to bottom, rgb(20 20 19 / 0.6) 0, transparent 14%);
  pointer-events: none;
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 48px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header) + 48px) var(--gutter) clamp(36px, 6vh, 64px);
}

.hero__title {
  grid-column: 1;
  transition:
    opacity 0.6s ease,
    transform 0.6s var(--ease);
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem);
  font-weight: 640;
  font-stretch: 68%;
  font-variation-settings: 'wdth' 68;
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.hero__title > span:not(.sr-only),
.hero__title .br-visual > span {
  display: inline;
}

.hero__title > span:not(.sr-only) + span,
.hero__title .br-visual > span + span {
  color: var(--texto-2);
}

.hero__lede {
  grid-column: 1;
  max-width: 30rem;
  color: var(--texto-2);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  text-wrap: pretty;
}

.hero__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__controls {
  position: absolute;
  top: calc(var(--header) + 16px);
  right: var(--gutter);
  display: flex;
  gap: 6px;
}

/* Desktop: os ícones ficam no pé do filme, acima dos botões de ação. */
@media (min-width: 900px) and (min-aspect-ratio: 4/5) {
  .hero__controls {
    top: auto;
    right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    bottom: calc(clamp(36px, 6vh, 64px) + 48px + 20px);
  }
}

.hero__controls[hidden] {
  display: none;
}

.film__button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(241 235 225 / 0.22);
  border-radius: 2px;
  background: rgb(20 20 19 / 0.45);
  color: rgb(241 235 225 / 0.85);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.film__button:hover {
  border-color: var(--texto);
  background: rgb(20 20 19 / 0.9);
}

@media (pointer: coarse) {
  .film__button {
    width: 44px;
    height: 44px;
  }
}

.film__button [hidden] {
  display: none;
}

.film__button span {
  display: grid;
}

@media (max-width: 899px) {
  .hero__copy {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
}

/* Tela em pé: filme 9:16 encaixado pela largura, sem cortar o logo nas laterais. */
@media (max-aspect-ratio: 4/5) {
  .hero {
    min-height: 100svh;
  }

  .hero__poster,
  .hero__video {
    /* Quando o filme é mais alto que a tela, sobe para o logo ficar acima do texto. */
    top: min(0px, calc((100svh - 100vw * 16 / 9) / 2 - 8svh));
    bottom: auto;
    height: auto;
    aspect-ratio: 9 / 16;
  }
}

/* Celular deitado: o filme ocupa a parte de cima e o texto fica abaixo do logo. */
@media (max-height: 500px) and (min-aspect-ratio: 4/3) {
  .hero__poster,
  .hero__video {
    bottom: auto;
    height: 72%;
  }
}

@media (max-width: 699px) {

  .hero__media::after {
    background:
      linear-gradient(to top, rgb(20 20 19 / 0.95) 0, rgb(20 20 19 / 0.6) 28%, transparent 48%),
      linear-gradient(to bottom, rgb(20 20 19 / 0.6) 0, transparent 12%);
  }

  .hero__title .br-visual > span,
  .hero__title > span:not(.sr-only) {
    display: block;
  }
}

@media (max-width: 479px) {
  .hero__actions {
    gap: 8px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    padding: 0 16px;
  }
}

/* O filme mostra "Colecione seu mundo." no fim: o título igual sai de cena. */
.hero[data-tagline] .hero__title {
  opacity: 0;
  transform: translateY(-8px);
}

/* Entrada coordenada */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__lede,
  .js .hero__actions {
    animation: hero-rise 0.9s var(--ease) both;
  }

  .js .hero__lede {
    animation-delay: 0.6s;
  }

  .js .hero__actions {
    animation-delay: 0.72s;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- Destaques e catálogo ---------- */

.featured,
.catalog {
  padding: var(--secao) 0;
}

.catalog {
  border-top: 1px solid var(--linha-suave);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  max-width: var(--max);
  margin: 0 auto clamp(32px, 4vw, 48px);
  padding: 0 var(--gutter) 24px;
  border-bottom: 1px solid var(--linha-suave);
}

.filters[hidden] {
  display: none;
}

.filters fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filters__chips {
  display: contents;
}

.filters legend {
  float: left;
  margin-right: 8px;
  padding: 0;
  color: var(--texto-3);
  font-size: 0.875rem;
}

@media (max-width: 699px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .filters fieldset {
    display: block;
    width: 100%;
  }

  .filters legend {
    float: none;
    margin-bottom: 8px;
  }

  .filters__chips {
    display: flex;
    gap: 8px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters__chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
  }

  .filters__count {
    margin-left: 0;
  }
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--linha);
  border-radius: 2px;
  color: var(--texto-2);
  font-size: 0.9375rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.chip:hover span {
  border-color: var(--texto-3);
  color: var(--texto);
}

.chip input:checked + span {
  border-color: var(--texto);
  background: var(--texto);
  color: var(--carvao);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--ambar);
  outline-offset: 3px;
}

.filters__count {
  margin-left: auto;
  color: var(--texto-3);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.pieces {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 5vw, 72px) clamp(16px, 2.4vw, 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 560px) {
  .pieces {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .pieces {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Peça principal: foto inteira (8:9) à esquerda e ficha ao lado, ocupando duas colunas. */
@media (min-width: 560px) {
  .piece.piece--lead {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(16px, 2.4vw, 32px);
    align-items: end;
  }

  .piece--lead .piece__label {
    padding-top: 0;
    padding-bottom: 4px;
  }

  .piece--lead .piece__name {
    font-size: clamp(2rem, 1.2rem + 1.6vw, 3rem);
    line-height: 1;
  }

  .piece--lead .piece__series {
    margin-top: 6px;
    font-size: 1.0625rem;
  }
}

/* Desktop: a foto principal ganha 3/5 da largura e acompanha a altura do cartão vizinho. */
@media (min-width: 1000px) {
  .piece.piece--lead {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
  }

  .piece--lead .piece__frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }

  .piece--lead .piece__label {
    align-self: end;
  }
}

.piece {
  display: flex;
  flex-direction: column;
}

.piece[hidden] {
  display: none;
}

.piece__frame {
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: var(--grafite);
  outline: 1px solid rgb(241 235 225 / 0.06);
  outline-offset: -1px;
}

.piece__frame img,
.universe__frame img,
.crop__frame img,
.detail__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piece__frame img {
  transition:
    transform 0.8s var(--ease),
    opacity 0.9s var(--ease),
    filter 0.9s var(--ease);
}

@media (hover: hover) {
  .piece:hover .piece__frame img {
    transform: scale(1.035);
  }
}

.piece__label {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 20px;
}

.piece__universe {
  color: var(--texto-3);
  font-size: 0.8125rem;
}

.piece__name {
  margin-top: 4px;
  text-wrap: balance;
  font-size: 1.5rem;
  font-weight: 620;
  font-stretch: 80%;
  font-variation-settings: 'wdth' 80;
  line-height: 1.1;
}

.piece__series {
  color: var(--texto-2);
  font-size: 0.9375rem;
}

.piece__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 0.875rem;
}

.piece__specs dt {
  color: var(--texto-3);
}

.piece__buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--linha-suave);
}

.piece__series,
.piece__specs {
  margin-bottom: 18px;
}

.piece__price {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.piece__price--ask {
  max-width: 21ch;
  color: var(--texto-3);
  font-size: 0.875rem;
  line-height: 1.35;
}

.piece__amount {
  font-size: 1.125rem;
  font-weight: 600;
}

.piece__stock {
  color: var(--texto-2);
  font-size: 0.8125rem;
}

.piece__stock[data-stock='pronta-entrega'] {
  color: var(--ambar-forte);
}

.piece__stock[data-stock='esgotado'] {
  color: var(--texto-3);
}

.empty {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--gutter);
  color: var(--texto-2);
}

.empty[hidden] {
  display: none;
}

.empty .btn {
  margin-top: 16px;
}

/* Preço e estoque (destaques e catálogo) */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-variant-numeric: tabular-nums;
}

.price__now {
  font-size: 1.125rem;
  font-weight: 600;
}

.price__before {
  color: var(--texto-3);
  font-size: 0.875rem;
}

.price--ask {
  color: var(--texto-3);
  font-size: 0.875rem;
}

.stock {
  color: var(--texto-2);
  font-size: 0.8125rem;
}

.stock[data-stock='ultima'] {
  color: var(--ambar-forte);
}

.stock[data-stock='esgotado'] {
  color: var(--texto-3);
}

/* Catálogo */

.filters__select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters__select label {
  color: var(--texto-3);
  font-size: 0.875rem;
}

.filters__select select {
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--linha);
  border-radius: 2px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b5afa4' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E")
      no-repeat right 14px center,
    var(--carvao);
  color: var(--texto);
  font: inherit;
  font-size: 0.9375rem;
  appearance: none;
  cursor: pointer;
}

.filters__select select:hover {
  border-color: var(--texto-3);
}

.filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--texto-2);
  font-size: 0.9375rem;
  cursor: pointer;
}

.filters__toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ambar);
}

.chip small {
  margin-left: 4px;
  color: inherit;
  font-size: 0.75rem;
  opacity: 0.7;
}

.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(12px, 2vw, 24px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 640px) {
  .items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* O link de consulta cobre o cartão inteiro; o foco aparece no cartão. */
.item__cta {
  align-self: flex-start;
  margin-top: 10px;
  color: var(--ambar-forte);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(235 187 98 / 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.item__cta::after {
  content: '';
  position: absolute;
  inset: 0;
}

.item__cta:focus-visible {
  outline: none;
}

.item:has(.item__cta:focus-visible) {
  outline: 2px solid var(--ambar);
  outline-offset: 6px;
}

.item:hover .item__cta {
  text-decoration-color: currentColor;
}

.item[hidden] {
  display: none;
}

/* Moldura clara para fotos de produto em fundo branco, como um passe-partout. */
.item__frame {
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: var(--grafite);
}

.item__frame[data-fit='contain'] {
  padding: 8%;
  background: #ece8e1;
}

.item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.item__frame[data-fit='contain'] img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (hover: hover) {
  .item:hover .item__frame img {
    transform: scale(1.04);
  }
}

.item[data-soldout] .item__frame img {
  opacity: 0.55;
  filter: grayscale(0.6);
}

.item__label {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 14px;
}

.item__universe {
  color: var(--texto-3);
  font-size: 0.8125rem;
}

.item__name {
  margin-top: 2px;
  text-wrap: balance;
  font-size: 1.1875rem;
  font-weight: 620;
  font-stretch: 82%;
  font-variation-settings: 'wdth' 82;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.item__series {
  margin-top: 2px;
  color: var(--texto-2);
  font-size: 0.875rem;
}

.item__origin {
  align-self: flex-start;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid var(--linha);
  color: var(--texto-2);
  font-size: 0.75rem;
}

.item__buy {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
}



.btn--block {
  width: 100%;
}

.catalog__more {
  display: flex;
  justify-content: center;
  max-width: var(--max);
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 var(--gutter);
}

.catalog__more:has([hidden]) {
  display: none;
}

@media (max-width: 479px) {
  .item__name {
    font-size: 1.0625rem;
  }

  .price__now {
    font-size: 1rem;
  }
}

/* Lista de outros universos */

.universes__more {
  max-width: var(--max);
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding: 0 var(--gutter);
}

.universes__more-title {
  margin-bottom: 14px;
  color: var(--texto-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.universes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.universes__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--linha);
  color: var(--texto);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.universes__list a:hover {
  border-color: var(--ambar);
}

.universes__list span {
  color: var(--texto-3);
  font-size: 0.8125rem;
}

/* Revelação: a luz da vitrine acende quando a peça entra na tela. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-lit) .piece__frame img,
  .js .reveal:not(.is-lit) .crop__frame img,
  .js .reveal.detail__main:not(.is-lit) img {
    opacity: 0;
    filter: brightness(0.3);
    transform: scale(1.03);
  }

  .crop__frame img,
  .detail__main img {
    transition:
      opacity 1s var(--ease),
      filter 1s var(--ease),
      transform 1s var(--ease);
  }
}

/* ---------- Faixa de universos ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px) 0;
  border-block: 1px solid var(--linha-suave);
  background: var(--carvao);
}

.marquee__track {
  display: flex;
  width: max-content;
}

.marquee__run {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
}

.marquee__run li {
  color: var(--texto-2);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  font-weight: 620;
  font-stretch: 70%;
  font-variation-settings: 'wdth' 70;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__mark img {
  width: 0.9em;
  height: 0.9em;
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee__track {
    animation: marquee 48s linear infinite;
  }

  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Caixas de categoria (bento) ---------- */

.boxes {
  padding: var(--secao) 0 0;
}

.boxes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(200px, 46vw, 320px);
  gap: clamp(10px, 1.4vw, 16px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.box--lg {
  grid-column: span 2;
}

@media (min-width: 1000px) {
  .boxes__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(240px, 21vw, 330px);
  }

  .box--lg {
    grid-row: span 2;
  }
}

.box__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--grafite);
  color: var(--texto);
  text-decoration: none;
  isolation: isolate;
}

.box__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.box__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.box--light .box__media {
  padding: 10% 14% 26%;
  background: #ece8e1;
}

.box--light .box__media img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.box--diecast .box__media img {
  object-position: 50% 40%;
}

/* Foto de celular da prateleira: um pouco mais de contraste para acompanhar as fotos de estúdio. */
.box--figures .box__media img {
  filter: contrast(1.12) saturate(1.12) brightness(0.92);
}

.box__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(14 14 13 / 0.92) 0, rgb(14 14 13 / 0.35) 38%, transparent 62%);
}

.box__text {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(16px, 2vw, 28px);
}

.box__name {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 3rem);
  font-weight: 640;
  font-stretch: 68%;
  font-variation-settings: 'wdth' 68;
  line-height: 0.95;
  text-transform: uppercase;
}

.box--lg .box__name {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 5.5rem);
}

.box__note {
  max-width: 26ch;
  margin-top: 6px;
  color: rgb(241 235 225 / 0.8);
  font-size: 0.9375rem;
}

/* Luz que acompanha o cursor (só mouse/trackpad). */
@media (hover: hover) and (pointer: fine) {
  [data-spotlight]::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 236 200 / 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }

  [data-spotlight]:hover::after {
    opacity: 1;
  }

  .box__link:hover .box__media img,
  .js .box.reveal.is-lit .box__link:hover .box__media img {
    transform: scale(1.05);
  }
}

/* ---------- Série em galeria horizontal ---------- */

.series {
  position: relative;
  padding: var(--secao) 0;
}

.series__pin {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.series__head {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.series__count {
  color: var(--texto-3);
  font-size: 0.875rem;
}

.series__track {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.series__track::-webkit-scrollbar {
  display: none;
}

.series__item {
  flex: 0 0 clamp(240px, 72vw, 400px);
  scroll-snap-align: start;
}

.series__link {
  display: grid;
  gap: 14px;
  color: var(--texto);
  text-decoration: none;
}

.series__frame {
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: var(--grafite);
}

.series__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.series__name {
  font-size: 1.375rem;
  font-weight: 620;
  font-stretch: 80%;
  font-variation-settings: 'wdth' 80;
}

@media (hover: hover) {
  .series__link:hover .series__frame img {
    transform: scale(1.04);
  }
}

/* Desktop com suporte a animação ligada à rolagem: a seção fica presa e a fila anda para o lado.
   Sem suporte (ou com movimento reduzido), continua uma fila com rolagem lateral. */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .series {
      height: 260vh;
      padding: 0;
      view-timeline-name: --serie;
      view-timeline-axis: block;
    }

    .series__pin {
      position: sticky;
      top: 0;
      justify-content: center;
      height: 100svh;
      padding-top: var(--header);
      overflow: hidden;
    }

    .series__track {
      width: max-content;
      overflow: visible;
      scroll-snap-type: none;
      animation: serie-pan linear both;
      animation-timeline: --serie;
      animation-range: contain 0% contain 100%;
    }

    .series__item {
      flex-basis: clamp(280px, 25vw, 400px);
    }

    .series__frame {
      height: min(56svh, calc(25vw * 9 / 8));
      aspect-ratio: auto;
    }
  }
}

@keyframes serie-pan {
  to {
    transform: translateX(calc(-100% + 100vw));
  }
}

/* ---------- Revelação em cortina ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .box.reveal .box__link {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s var(--ease);
  }

  .js .box.reveal .box__media img {
    transform: scale(1.12);
  }

  .js .box.reveal.is-lit .box__link {
    clip-path: inset(0 0 0 0);
  }

  .js .box.reveal.is-lit .box__media img {
    transform: none;
  }

  .js .boxes__grid .box:nth-child(2) .box__link { transition-delay: 0.08s; }
  .js .boxes__grid .box:nth-child(3) .box__link { transition-delay: 0.16s; }
  .js .boxes__grid .box:nth-child(4) .box__link { transition-delay: 0.24s; }
  .js .boxes__grid .box:nth-child(5) .box__link { transition-delay: 0.32s; }
}

/* ---------- Universos ---------- */

.universes {
  padding: 0 0 var(--secao);
}

.universes__grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 900px) {
  .universes__grid {
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
  }

  .universe--lead {
    grid-column: span 2;
  }
}

.universe__link {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
  isolation: isolate;
}

.universe__frame {
  height: clamp(420px, 46vw, 680px);
  overflow: hidden;
  background: var(--grafite);
}

.universe__frame img {
  transition: transform 0.9s var(--ease);
}

.universe--lead .universe__frame img {
  object-position: 50% 60%;
}

@media (hover: hover) {
  .universe__link:hover .universe__frame img {
    transform: scale(1.03);
  }
}

.universe__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  /* --tint: cor da própria foto de capa (calculada em npm run images). */
  background:
    linear-gradient(to top, var(--tint, rgb(14 14 13)) 0, color-mix(in srgb, var(--tint, rgb(14 14 13)) 70%, transparent) 30%, transparent 62%);
  pointer-events: none;
}

.universe__link {
  border-bottom: 2px solid var(--tint, var(--linha));
}

.universe__text {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: clamp(20px, 3vw, 40px);
}

.universe__name {
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem);
  font-weight: 620;
  font-stretch: 70%;
  font-variation-settings: 'wdth' 70;
  line-height: 0.95;
}

.universe__count {
  margin-top: 8px;
  color: var(--texto);
  font-size: 0.9375rem;
}

.universe__cast {
  max-width: 34rem;
  margin-top: 4px;
  color: var(--texto-2);
  font-size: 0.9375rem;
}

.universe__cta {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ambar);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.universe__link:hover .universe__cta {
  color: var(--ambar-forte);
}

@media (max-width: 899px) {
  .universe__frame {
    height: clamp(360px, 100vw, 520px);
  }
}

/* ---------- Detalhes ---------- */

.detail {
  padding: var(--secao) 0;
  background: var(--grafite);
  border-block: 1px solid var(--linha-suave);
}

.detail__inner {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.detail__main {
  aspect-ratio: 8 / 9;
  overflow: hidden;
  background: var(--carvao);
}

.detail__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.crops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  width: 100%;
  margin: 20px 0 12px;
}

.crop--wide {
  grid-column: 1 / -1;
}

.crop__frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--carvao);
}

.crop--wide .crop__frame {
  aspect-ratio: 16 / 9;
}

.crop figcaption {
  margin-top: 12px;
  color: var(--texto-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.crop figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--texto);
  font-weight: 600;
}

@media (min-width: 1000px) {
  .detail__inner {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }

  .detail__main {
    position: sticky;
    top: calc(var(--header) + 24px);
  }
}

/* ---------- TCG ---------- */

.tcg {
  padding: var(--secao) 0;
  background:
    radial-gradient(50% 60% at 72% 50%, rgb(220 168 74 / 0.08), transparent 70%),
    var(--grafite);
  border-block: 1px solid var(--linha-suave);
  overflow: hidden;
}

.tcg__inner {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 900px) {
  .tcg__inner {
    grid-template-columns: 5fr 7fr;
  }
}

.tcg__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.tcg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.tcg__note {
  max-width: 30rem;
  color: var(--texto-3);
  font-size: 0.875rem;
}

.tcg__cards {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  padding-block: 24px 48px;
}

.tcg__card:first-child {
  transform: rotate(-4deg);
}

.tcg__card:last-child {
  transform: translateY(36px) rotate(4deg);
}

@media (max-width: 899px) {
  .tcg__card .holo-card {
    --hc-w: 42vw !important;
  }
}

/* ---------- Encomendas ---------- */

.order {
  padding: var(--secao) 0;
}

.order__inner {
  display: grid;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 900px) {
  .order__inner {
    grid-template-columns: 5fr 7fr;
    column-gap: clamp(48px, 6vw, 120px);
  }
}

.order__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.order__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.config-note {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--ambar);
  color: var(--ambar-forte);
  font-size: 0.875rem;
}

.steps {
  counter-reset: step;
  border-bottom: 1px solid var(--linha-suave);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--linha-suave);
}

.step::before {
  content: counter(step);
  grid-row: span 2;
  color: var(--ambar);
  font-size: 2.5rem;
  font-weight: 560;
  font-stretch: 68%;
  font-variation-settings: 'wdth' 68;
  line-height: 1;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.step p {
  margin-top: 6px;
  color: var(--texto-2);
}

/* ---------- Rodapé ---------- */

/* Fechamento: o logo grande e a frase da marca, ecoando a abertura. */
.site-footer__sign {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--linha-suave);
}

.site-footer__sign img {
  width: min(100%, 720px);
  height: auto;
}

.site-footer__slogan {
  color: var(--texto-2);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  font-weight: 620;
  font-stretch: 70%;
  font-variation-settings: 'wdth' 70;
  line-height: 1;
  text-transform: uppercase;
}


.site-footer {
  border-top: 1px solid var(--linha-suave);
  background: var(--grafite);
}

.site-footer__inner {
  display: grid;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__title {
  margin-bottom: 12px;
  color: var(--texto-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-footer__col a {
  display: inline-block;
  padding: 6px 0;
  color: var(--texto);
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--ambar-forte);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--linha-suave);
  color: var(--texto-3);
  font-size: 0.8125rem;
}

.site-footer__legal a {
  color: var(--texto-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Toque: áreas de 44px e sem atraso de toque duplo. */
a,
button,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (pointer: coarse) {
  .chip span,
  .btn--small {
    min-height: 44px;
  }
}
