/*
Theme Name: CrossFitBR
Theme URI: http://localhost:8080
Author: CrossFitBR
Description: Tema próprio de site de afiliados de CrossFit e treino funcional. Estética editorial "guia de compras" — lima elétrico sobre base neutra, serifa editorial + sans legível. Custom Post Type "Produto", taxonomia de categorias e selos de loja.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: crossfitbr
*/

/* ============================================================
   CrossFitBR — Sistema visual
   Serifa editorial (autoridade) + sans legível + tag condensada
   Lima elétrico sobre base neutra; laranja só p/ urgência
   ============================================================ */

:root {
  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --tag: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* accent — lima elétrico + laranja-sinal */
  --lime: #c8f135;
  --lime-deep: #a6cf18;
  --signal: #ff4d18;        /* urgência / descontos */
  --signal-soft: #ffe7df;

  /* radii / motion */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --maxw: 1200px;
}

/* ---------- LIGHT (default) ---------- */
:root,
[data-theme="light"] {
  --bg: #f4f4ef;
  --bg-alt: #eceae1;
  --surface: #ffffff;
  --surface-2: #f7f7f3;
  --ink: #16171a;
  --ink-2: #4b4d52;
  --ink-3: #84868c;
  --line: #e3e2da;
  --line-strong: #d2d1c7;
  --hero-bg: #16171a;
  --hero-ink: #f4f4ef;
  --shadow-card: 0 1px 2px rgba(20,21,23,.05), 0 8px 24px -12px rgba(20,21,23,.18);
  --shadow-hover: 0 2px 4px rgba(20,21,23,.06), 0 24px 48px -18px rgba(20,21,23,.32);
}

/* ---------- DARK ---------- */
[data-theme="dark"] {
  --bg: #0e0f11;
  --bg-alt: #15161a;
  --surface: #1a1b1f;
  --surface-2: #202126;
  --ink: #f3f3ee;
  --ink-2: #b6b7bd;
  --ink-3: #7c7e86;
  --line: #2a2b31;
  --line-strong: #3a3b43;
  --hero-bg: #000000;
  --hero-ink: #f4f4ef;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-hover: 0 2px 6px rgba(0,0,0,.5), 0 28px 56px -18px rgba(0,0,0,.75);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100vh; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ============================================================
   Tipografia utilitária
   ============================================================ */
.eyebrow {
  font-family: var(--tag);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif-head {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.01em;
}

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.hdr.scrolled { box-shadow: 0 8px 24px -18px rgba(0,0,0,.5); }
.hdr-top {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.logo {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--serif); font-weight: 700; font-size: 25px;
  letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
}
.logo .mark {
  font-family: var(--tag); font-weight: 800; font-style: normal;
  background: var(--lime); color: #16171a;
  padding: 2px 7px; border-radius: 6px; letter-spacing: -.01em;
  font-size: 22px; line-height: 1;
}
.logo .br { color: var(--ink-3); font-weight: 600; margin-left: 1px; }

.hdr-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; color: var(--ink-3);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.hdr-search:focus-within { border-color: var(--ink-3); background: var(--surface); }
.hdr-search input {
  border: 0; background: transparent; outline: none;
  font-family: var(--sans); font-size: 14px; color: var(--ink); width: 100%;
}
.hdr-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  transition: all .18s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }

/* nav de categorias */
.hdr-nav { border-top: 1px solid var(--line); }
.hdr-nav-inner {
  display: flex; align-items: stretch; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.hdr-nav-inner::-webkit-scrollbar { display: none; }
.navitem {
  position: relative; white-space: nowrap;
  font-family: var(--tag); font-weight: 700; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); background: transparent; border: 0;
  padding: 13px 14px; transition: color .16s var(--ease);
}
.navitem::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 3px; background: var(--lime); transform: scaleX(0);
  transform-origin: left; transition: transform .22s var(--ease);
}
.navitem:hover { color: var(--ink); }
.navitem:hover::after,
.navitem.active::after { transform: scaleX(1); }
.navitem.active { color: var(--ink); }
.navitem.hot { color: var(--signal); }
.navitem.hot::after { background: var(--signal); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 34px 0 12px; }
.hero-grid {
  display: grid; grid-template-columns: 1.55fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 16px;
  height: 520px;
}
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--hero-bg); color: var(--hero-ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; cursor: pointer;
  border: 1px solid var(--line);
}
.hero-feature { grid-row: 1 / 3; }
.hero-card .ph { position: absolute; inset: 0; z-index: 0; }
.hero-card > * { position: relative; z-index: 2; }
.hero-card .scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.82) 100%);
}
.hero-feature .scrim {
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.88) 100%);
}
.hero-kicker {
  font-family: var(--tag); font-weight: 800; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 12px;
}
.hero-feature h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4vw, 52px); line-height: .98;
  letter-spacing: -.02em; margin: 0 0 12px; max-width: 16ch;
}
.hero-feature h1 em { font-style: italic; color: var(--lime); }
.hero-feature p { font-size: 15.5px; color: rgba(255,255,255,.82); margin: 0 0 20px; max-width: 46ch; }
.hero-side h2 {
  font-family: var(--serif); font-weight: 600; font-size: 23px;
  line-height: 1.04; letter-spacing: -.01em; margin: 0 0 6px; max-width: 18ch;
}
.hero-side p { font-size: 13.5px; color: rgba(255,255,255,.78); margin: 0; }
.hero-card .pill-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* botão lima */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--tag); font-weight: 800; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  border: 0; border-radius: 999px; padding: 12px 20px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s;
}
.btn-lime { background: var(--lime); color: #16171a; }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--lime-deep); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-sm { padding: 9px 15px; font-size: 12px; }

/* ============================================================
   PLACEHOLDER de imagem (listras sutis + legenda mono)
   ============================================================ */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--phc, #9a9a93) 14%, transparent) 0 11px,
      transparent 11px 22px),
    var(--phbg, #d9d9d1);
  display: grid; place-items: center; overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .ph-label {
  font-family: "Hanken Grotesk", monospace; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: color-mix(in srgb, var(--phc, #6f6f68) 90%, #000);
  background: color-mix(in srgb, var(--phbg, #d9d9d1) 80%, #fff);
  padding: 4px 9px; border-radius: 5px; opacity: .9;
}
.hero-card .ph { --phbg: #23252b; --phc: #5a5d66; }
/* rótulo do placeholder fica no canto p/ não colidir com o texto */
.hero-card .ph .ph-label,
.cat-chip .ph .ph-label { display: none; }

/* ============================================================
   SECTION HEADER (botão-tag de título destacado)
   ============================================================ */
.section { padding: 46px 0; }
.section.tight { padding: 30px 0; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
}
.sec-head-l { display: flex; flex-direction: column; gap: 12px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--tag); font-weight: 800; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  padding: 7px 13px; border-radius: 999px;
}
.sec-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.sec-tag.is-hot { background: var(--signal); color: #fff; }
.sec-tag.is-hot .dot { background: #fff; }
.sec-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.0;
  letter-spacing: -.02em; margin: 0; max-width: 22ch;
}
.sec-title em { font-style: italic; color: var(--lime-deep); }
.sec-sub { color: var(--ink-2); font-size: 15px; margin: 4px 0 0; max-width: 52ch; }
.sec-link {
  font-family: var(--tag); font-weight: 800; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border-bottom: 2px solid var(--lime); padding-bottom: 3px;
  transition: gap .16s var(--ease);
}
.sec-link:hover { gap: 11px; }

/* ============================================================
   GRID + PRODUCT CARD
   ============================================================ */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--line-strong);
}
.card-media {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--surface-2);
}
.card-media .ph { transition: transform .4s var(--ease); }
.card:hover .card-media .ph { transform: scale(1.045); }

/* badges no media */
.card-badges {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.badge {
  font-family: var(--tag); font-weight: 800; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; line-height: 1; white-space: nowrap;
}
.badge-disc { background: var(--signal); color: #fff; }
.badge-rank { background: var(--lime); color: #16171a; }
.badge-new { background: var(--ink); color: var(--bg); }

.fav {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line); color: var(--ink-2);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px);
  transition: all .2s var(--ease);
}
.card:hover .fav { opacity: 1; transform: translateY(0); }
.fav:hover { color: var(--signal); border-color: var(--signal); }
.fav.on { color: var(--signal); border-color: var(--signal); opacity: 1; transform: none; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 15px 15px 16px; flex: 1; }
.card-store { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title {
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  line-height: 1.12; letter-spacing: -.01em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.stars { color: var(--lime-deep); letter-spacing: 1px; font-size: 13px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-wrap { display: flex; flex-direction: column; gap: 1px; }
.price-old { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.price-now { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.price-now .cents { font-size: 13px; }
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--tag); font-weight: 800; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 999px; padding: 10px 15px;
  transition: background .16s var(--ease), transform .16s var(--ease), gap .16s var(--ease);
}
.card:hover .card-cta { background: var(--lime); color: #16171a; }
.card-cta:hover { gap: 10px; transform: translateY(-1px); }

/* ---- variação de card: "editorial" (faixa lima sob o título) ---- */
[data-card="editorial"] .card { border-radius: var(--r-sm); }
[data-card="editorial"] .card-media { aspect-ratio: 1/1; }
[data-card="editorial"] .card-title { font-size: 19px; }
[data-card="editorial"] .card-cta { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
[data-card="editorial"] .card:hover .card-cta { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-card="editorial"] .card-body { border-top: 3px solid var(--lime); }

/* ---- variação de card: "minimal" (sem sombra, linhas) ---- */
[data-card="minimal"] .card { box-shadow: none; background: transparent; }
[data-card="minimal"] .card:hover { box-shadow: none; transform: translateY(-3px); }
[data-card="minimal"] .card-media { border-radius: var(--r-md); border: 1px solid var(--line); }
[data-card="minimal"] .card-body { padding: 14px 2px 4px; }

/* ============================================================
   STORE BADGE (selo de loja — original, sem copiar logo)
   ============================================================ */
.store {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--tag); font-weight: 700; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 9px 4px 7px; border-radius: 999px; line-height: 1;
}
.store .sdot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   RANKING
   ============================================================ */
.rank-wrap { display: grid; grid-template-columns: 1fr; gap: 0; }
.rank-row {
  display: grid; grid-template-columns: 54px 96px 1fr auto;
  align-items: center; gap: 18px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease), padding .18s var(--ease);
  cursor: pointer;
}
.rank-row:first-child { border-top: 1px solid var(--line); }
.rank-row:hover { background: var(--surface); padding-left: 14px; padding-right: 14px; border-radius: 10px; }
.rank-num {
  font-family: var(--serif); font-weight: 700; font-size: 34px;
  line-height: 1; color: var(--ink-3); font-style: italic;
}
.rank-row:hover .rank-num { color: var(--lime-deep); }
.rank-row.top .rank-num { color: var(--lime-deep); }
.rank-thumb { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.rank-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rank-title { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.1; margin: 0; }
.rank-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rank-tagline { font-size: 13px; color: var(--ink-2); }
.rank-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ============================================================
   FLASH / OFERTAS RELÂMPAGO
   ============================================================ */
.flash { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--r-lg); overflow: hidden; }
.flash-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.flash-head .eyebrow { color: var(--lime); }
.flash-title { font-family: var(--serif); font-weight: 600; font-size: clamp(24px,2.6vw,32px); line-height: 1; letter-spacing: -.02em; margin: 8px 0 0; color: #fff; }
.flash-bolt { display: inline-grid; place-items: center; }

/* countdown */
.countdown { display: flex; align-items: center; gap: 8px; }
.cd-box {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 8px 4px; min-width: 56px;
}
.cd-num { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.cd-lab { font-family: var(--tag); font-weight: 700; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }
.cd-sep { font-family: var(--serif); font-size: 24px; color: rgba(255,255,255,.4); }

.flash-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 16px; padding: 22px 28px 28px; overflow-x: auto; scrollbar-width: thin;
}
.flash-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease);
}
.flash-card:hover { transform: translateY(-4px); }
.flash-card .card-media { aspect-ratio: 16/11; }
.flash-stock { padding: 0 14px 14px; }
.stock-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.stock-fill { height: 100%; background: linear-gradient(90deg, var(--signal), #ff8a4d); border-radius: 999px; }
.stock-txt { font-family: var(--tag); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--signal); }

/* ============================================================
   CATEGORIA RAIL (chips de categorias visuais)
   ============================================================ */
.cat-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-chip {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  aspect-ratio: 3/3.4; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; cursor: pointer; background: var(--surface);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cat-chip .ph { position: absolute; inset: 0; z-index: 0; }
.cat-chip .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.cat-chip-name { position: relative; z-index: 2; font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.05; color: #fff; }
.cat-chip-count { position: relative; z-index: 2; font-family: var(--tag); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin-top: 4px; }

/* ============================================================
   REVIEW / EDITORIAL strip
   ============================================================ */
.rev-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.rev-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-card); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.rev-card .card-media { aspect-ratio: 16/9; }
.rev-lead .card-media { aspect-ratio: 16/12; }
.rev-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.rev-cat { font-family: var(--tag); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.rev-title { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
.rev-lead .rev-title { font-size: 28px; }
.rev-card .rev-title { font-size: 19px; }
.rev-excerpt { font-size: 14px; color: var(--ink-2); margin: 0; }
.rev-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   NEWSLETTER + FOOTER
   ============================================================ */
.news {
  background: var(--lime); color: #16171a; border-radius: var(--r-lg);
  padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.news h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px,3vw,38px); line-height: 1; letter-spacing: -.02em; margin: 0 0 10px; }
.news p { font-size: 15px; margin: 0; max-width: 44ch; color: #2a2c1c; }
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-input-row { display: flex; gap: 10px; }
.news input {
  flex: 1; border: 1.5px solid #16171a; background: #fffef8; color: #16171a;
  border-radius: 999px; padding: 14px 18px; font-family: var(--sans); font-size: 15px; outline: none;
  transition: box-shadow .16s var(--ease);
}
.news input:focus { box-shadow: 0 0 0 3px rgba(22,23,26,.18); }
.news input.err { border-color: var(--signal); background: #fff; }
.news .btn-dark { background: #16171a; color: var(--lime); }
.news-msg { font-family: var(--tag); font-weight: 700; font-size: 12.5px; letter-spacing: .03em; min-height: 16px; }
.news-msg.ok { color: #1c5d1c; }
.news-msg.bad { color: #9c1d00; }
.news-fine { font-size: 12px; color: #44462f; margin: 2px 0 0; }

.disclosure {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px; display: flex; gap: 13px; align-items: flex-start;
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.disclosure b { color: var(--ink); }
.disclosure .di { flex-shrink: 0; color: var(--lime-deep); margin-top: 1px; }

.foot { background: var(--hero-bg); color: var(--hero-ink); margin-top: 60px; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot .logo { color: #fff; margin-bottom: 14px; }
.foot-about { font-size: 14px; color: rgba(255,255,255,.62); max-width: 36ch; line-height: 1.55; }
.foot-col h4 { font-family: var(--tag); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: 14px; color: rgba(255,255,255,.82); transition: color .15s var(--ease); }
.foot-col a:hover { color: var(--lime); }
.foot-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 30px 0 28px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--tag); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }
.cat-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px,5vw,58px); line-height: .98; letter-spacing: -.025em; margin: 0 0 12px; }
.cat-hero h1 em { font-style: italic; color: var(--lime-deep); }
.cat-hero p { font-size: 16px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.cat-stat-row { display: flex; gap: 28px; margin-top: 22px; }
.cat-stat .n { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1; }
.cat-stat .l { font-family: var(--tag); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.cat-layout { display: grid; grid-template-columns: 248px 1fr; gap: 32px; align-items: start; padding-top: 36px; }
.filters { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 26px; }
.filter-grp h4 { font-family: var(--tag); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 13px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.filter-opt:hover { color: var(--ink); }
.fbox { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; transition: all .15s var(--ease); }
.filter-opt.on .fbox { background: var(--lime); border-color: var(--lime); }
.filter-opt.on { color: var(--ink); font-weight: 500; }
.filter-cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.cat-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--tag); font-weight: 700; font-size: 12px; letter-spacing: .03em;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 8px 14px; transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sort-sel { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.sort-sel select { font-family: var(--sans); font-size: 13px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 10px; outline: none; cursor: pointer; }

/* ============================================================
   SINGLE PRODUTO
   ============================================================ */
.single-prod { padding-top: 36px; }
.single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.single-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; box-shadow: var(--shadow-card); }
.single-info { display: flex; flex-direction: column; gap: 16px; }
.single-info h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px,3vw,40px); line-height: 1.04; letter-spacing: -.02em; margin: 6px 0 0; }
.single-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.single-price .price-now { font-size: 38px; }
.single-buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.single-buy .btn-lime { font-size: 15px; padding: 16px 28px; }
.single-desc { color: var(--ink-2); line-height: 1.7; font-size: 16px; }
.single-desc p { margin: 0 0 14px; }

@media (max-width: 820px) {
  .single-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-rail { grid-template-columns: repeat(3, 1fr); }
  .rev-grid { grid-template-columns: 1fr 1fr; }
  .rev-lead { grid-column: 1 / -1; }
  .rev-lead .rev-title { font-size: 24px; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 18px; }
  .hdr-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .hero-feature { grid-row: auto; min-height: 360px; }
  .hero-side { min-height: 200px; }
  .grid, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; padding: 32px; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rank-row { grid-template-columns: 38px 72px 1fr; }
  .rank-right { display: none; }
}
@media (max-width: 540px) {
  .grid, .grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-rail { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 24px; }
  .card-title { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-feature h1 { font-size: 30px; }
}
