/* Raptor Racing — catálogo
   Paleta e tipos ficam em :root. Quando a logo oficial chegar, ajuste
   --plate (destaque) para a cor da marca. */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --graphite: #1C1F22;   /* topo, texto */
  --graphite-2: #2A2E32;
  --chalk: #F3F4F1;      /* fundo da página */
  --shell: #E4E6E1;      /* fundo das fotos */
  --steel: #61676C;      /* texto secundário */
  --rule: #D3D6D0;
  --plate: #FFC629;      /* amarelo de placa: o único destaque */
  --wa: #157A3E;         /* botão de interesse */
  --wa-hover: #10632F;

  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--graphite);
  font: 400 16px/1.55 var(--text);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--plate); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--plate); color: var(--graphite); padding: 8px 12px; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Topo ---------- */
.top { background: var(--graphite); color: var(--chalk); position: sticky; top: 0; z-index: 20; }
.top__inner { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 36px; width: auto; }
.brand__word { font: 800 26px/1 var(--display); letter-spacing: .01em; color: var(--chalk); }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; background: var(--graphite-2); border: 1px solid #3A3F44; }
.search:focus-within { border-color: var(--plate); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; color: var(--chalk); outline: none; }
.search input::placeholder { color: #8D9399; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.search button { border: 0; background: transparent; padding: 8px 12px; cursor: pointer; color: #C9CDD0; }
.top__wa { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--chalk); text-decoration: none; font-weight: 600; font-size: 15px; flex: none; }
.top__wa .ico-wa { color: #3DD37A; }
.top__wa:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { background: var(--graphite); color: var(--chalk); border-bottom: 6px solid var(--plate); }
.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero__title { font: 800 clamp(48px, 8.4vw, 124px)/.86 var(--display); letter-spacing: -.005em; max-width: 13ch; text-wrap: balance; }
.hero__aside p { margin: 0 0 20px; font-size: 17px; color: #D5D8DA; max-width: 42ch; }
.trust { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3A3F44; }
.trust li { padding: 10px 0 10px 22px; border-bottom: 1px solid #3A3F44; font-size: 15px; position: relative; color: #E8EAEB; }
.trust li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--plate); }
.trust a { color: inherit; text-underline-offset: 3px; }

.pagehead { padding: clamp(28px, 4vw, 48px) 0 8px; }
.pagehead__title { font: 800 clamp(40px, 6vw, 80px)/.9 var(--display); max-width: 18ch; overflow-wrap: anywhere; }
.pagehead--msg { padding: clamp(56px, 10vw, 140px) 0; }
.pagehead__text { font-size: 18px; color: var(--steel); max-width: 48ch; margin: 18px 0 0; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Trilho de categorias (o elemento-assinatura) ---------- */
.rail { border-bottom: 1px solid var(--rule); background: var(--chalk); }
.rail__track { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: clamp(20px, 3vw, 44px);
  overflow-x: auto; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__item { flex: none; padding: 22px 0 14px; text-decoration: none; position: relative;
  font: 700 clamp(28px, 3.4vw, 44px)/1 var(--display); color: #8A9095; white-space: nowrap; }
.rail__item sup { font: 600 12px/1 var(--text); margin-left: 4px; vertical-align: top; position: relative; top: 2px; color: var(--steel); }
.rail__item:hover { color: var(--graphite); }
.rail__item.is-active { color: var(--graphite); }
.rail__item.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--plate); }

/* ---------- Listagem ---------- */
.listing { padding-top: 20px; padding-bottom: clamp(48px, 8vw, 96px); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.toolbar__count { margin: 0; color: var(--steel); font-size: 15px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; text-decoration: none; }
.toggle__box { width: 34px; height: 20px; background: var(--rule); position: relative; transition: background .15s; }
.toggle__box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; transition: transform .15s; }
.toggle.is-on .toggle__box { background: var(--graphite); }
.toggle.is-on .toggle__box::after { transform: translateX(14px); background: var(--plate); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(12px, 1.6vw, 24px); }
.card__link { display: block; text-decoration: none; }
.card__media { display: block; aspect-ratio: 1; background: var(--shell); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.card__noimg { display: grid; place-items: center; height: 100%; color: var(--steel); font-size: 14px; }
.card__body { display: block; padding-top: 12px; }
.card__brand { display: block; font-size: 13px; color: var(--steel); margin-bottom: 2px; }
.card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1.3; }
.card__link:hover .card__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.card__opts { color: var(--steel); }

.stock { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; }
.stock::before { content: ""; width: 8px; height: 8px; flex: none; }
.stock--on::before { background: var(--plate); box-shadow: 0 0 0 1px #C99A00; }
.stock--off { color: var(--steel); }
.stock--off::before { border: 1.5px solid currentColor; }
.stock--lg { font-size: 15px; margin: 18px 0 4px; }
.stock--lg::before { width: 10px; height: 10px; }

.empty { padding: 48px 0; max-width: 48ch; }
.empty h2 { font: 700 32px/1 var(--display); margin-bottom: 12px; }
.empty p { color: var(--steel); margin: 0 0 20px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 56px; font-size: 15px; }
.pager a { font-weight: 600; text-underline-offset: 4px; }
.pager span { color: var(--steel); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--dark { background: var(--graphite); color: var(--chalk); }
.btn--block { width: 100%; min-height: 60px; font-size: 18px; margin-top: 24px; }

/* ---------- Página do produto ---------- */
.crumbs { display: flex; gap: 10px; padding: 20px 0; font-size: 14px; color: var(--steel); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }

.gallery { min-width: 0; }
.gallery__stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; background: var(--shell); scrollbar-width: none; }
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: center; display: grid; place-items: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__slide--empty span { color: var(--steel); text-align: center; padding: 24px; }
.gallery__count { margin: 10px 0 0; font-size: 13px; color: var(--steel); display: none; }
.gallery__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.gallery__thumbs a { display: block; aspect-ratio: 1; background: var(--shell); border: 2px solid transparent; }
.gallery__thumbs a[aria-current="true"] { border-color: var(--graphite); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.buy__sticky { position: sticky; top: 92px; }
.buy__brand { margin: 0 0 6px; color: var(--steel); font-size: 15px; }
.buy__title { font: 800 clamp(40px, 4.4vw, 64px)/.92 var(--display); text-wrap: balance; overflow-wrap: anywhere; }
.buy__code { margin: 12px 0 0; font-size: 14px; color: var(--steel); }
.buy__note { margin: 12px 0 0; font-size: 14px; color: var(--steel); }
.buy__store { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }

.options { margin-top: 24px; display: grid; gap: 20px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; }
.opt__chosen { font-weight: 400; color: var(--steel); }
.opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; min-width: 52px; justify-content: center; padding: 0 14px;
  border: 1.5px solid var(--rule); background: #fff; font-size: 15px; }
.chip input:hover + span { border-color: var(--graphite); }
.chip input:checked + span { border-color: var(--graphite); background: var(--graphite); color: var(--chalk); }
.chip input:focus-visible + span { outline: 3px solid var(--plate); outline-offset: 2px; }
.chip.is-out span { color: #9AA0A4; text-decoration: line-through; text-decoration-thickness: 1px; }
.chip.is-out input:checked + span { color: var(--chalk); }

.desc { margin-top: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; border-top: 1px solid var(--rule); padding-top: 28px; }
.desc h2, .more h2 { font: 700 clamp(30px, 3vw, 40px)/1 var(--display); }
.desc__body { max-width: 68ch; }
.desc__body p { margin: 0 0 14px; }
.more { margin: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.more h2 { margin-bottom: 24px; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--graphite); color: var(--chalk); }
.dock[hidden] { display: none; }
.dock__name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { min-height: 46px; padding: 0 18px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--graphite); color: #C9CDD0; margin-top: 0; }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 32px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 64px; }
.foot__brand p { margin: 14px 0 0; max-width: 32ch; }
.foot__brand img { height: 32px; width: auto; }
.foot__info { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 32px; }
.foot__info dt { font-size: 13px; color: #8D9399; margin-bottom: 4px; }
.foot__info dd { margin: 0; color: var(--chalk); }
.foot__info a { text-underline-offset: 3px; }
.foot__legal { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid #3A3F44; font-size: 13px; color: #8D9399; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .pdp { grid-template-columns: 1fr; }
  .buy__sticky { position: static; }
  .desc { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
  .gallery__count { display: block; padding: 0 var(--gutter); }
  .gallery__thumbs { display: none; }
}
@media (max-width: 640px) {
  .top__inner { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top__wa { margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__name { font-size: 15px; }
  .toolbar { flex-wrap: wrap; }
  .page-produto .foot { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
