:root {
  --bg: #0b0d10;
  --bg-2: #12151a;
  --card: #161a20;
  --line: #262b33;
  --text: #f2f4f7;
  --muted: #9aa3ae;
  --accent: #c6ff00;
  --accent-ink: #0b0d10;
  --hot: #ff4d2e;

  --ml: #ffe600;
  --centauro: #e30613;
  --netshoes: #7b2cbf;

  --radius: 16px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 16, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); display: grid; place-items: center;
  transform: skewX(-8deg);
}
.logo__mark svg { width: 24px; height: 24px; fill: var(--accent-ink); }
.logo__text { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .04em; font-style: italic; }
.logo__text b { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(198, 255, 0, .14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 77, 46, .12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__stripes {
  position: absolute; inset: -20% -10% auto auto; width: 55%; height: 140%;
  background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(198, 255, 0, .06) 34px 38px);
  transform: skewX(-12deg);
  mask-image: linear-gradient(to left, #000 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 90%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px; border: 1px solid rgba(198, 255, 0, .35); border-radius: 999px;
}
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(56px, 12vw, 132px); line-height: .88; letter-spacing: -.01em; text-transform: uppercase;
}
.hero__title span {
  color: transparent; -webkit-text-stroke: 2px var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent)) no-repeat 0 88% / 0 12%;
  animation: sprint 1.1s .3s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes sprint { to { background-size: 100% 12%; } }
.hero__lead { max-width: 560px; margin: 24px 0 32px; color: var(--muted); font-size: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero__stats li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--mercadolivre { background: var(--ml); }
.dot--centauro { background: var(--centauro); }
.dot--netshoes { background: var(--netshoes); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; text-decoration: none;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #d8ff4d; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Categorias ---------- */
.cats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: -36px; position: relative; z-index: 2;
}
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .2s, transform .2s;
}
.cat:hover, .cat.is-active { border-color: var(--accent); transform: translateY(-3px); }
.cat.is-active { background: linear-gradient(180deg, rgba(198,255,0,.1), var(--card)); }
.cat__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); color: var(--accent); }
.cat__icon svg { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { padding: 64px 16px 8px; }
.section__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.section__title { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 4vw, 40px); line-height: 1; }
.section__line { flex: 1; height: 4px; background: repeating-linear-gradient(115deg, var(--accent) 0 10px, transparent 10px 16px); opacity: .6; border-radius: 2px; }

/* ---------- Destaques (rail) ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail > * { scroll-snap-align: start; }

/* ---------- Filtros ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px;
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); padding: 14px 0; font: inherit; }
.search input::placeholder { color: #6b7480; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { color: var(--text); border-color: #3a414b; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.count { color: var(--muted); font-size: 14px; margin: 0; }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort select {
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.sort select:focus { border-color: var(--accent); outline: none; }
.price-note { color: #6b7480; font-size: 12px; margin: 0 0 16px; }
.price-note:empty { display: none; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: #3a414b; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.card__media {
  position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--icon {
  background:
    repeating-linear-gradient(115deg, transparent 0 22px, rgba(198,255,0,.05) 22px 25px),
    linear-gradient(135deg, #1d232b, #12151a);
  color: var(--accent);
}
.card__media--icon svg { width: 38%; height: 38%; opacity: .9; }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--hot); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; transform: skewX(-8deg);
}
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.store { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.card__desc { margin: 0; color: var(--muted); font-size: 14px; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prices { display: flex; flex-direction: column; line-height: 1.1; }
.price-old { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.price { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--accent); white-space: nowrap; }
.card__off {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 18px; line-height: 1; padding: 6px 10px; border-radius: 6px; transform: skewX(-8deg);
}
.price--muted { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }
.card .btn { padding: 11px 16px; font-size: 14px; }
.card .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Guia ---------- */
.guide { margin-top: 64px; padding: 64px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tip__n { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.tip h3 { margin: 12px 0 8px; font-size: 18px; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer__nav a:hover { color: var(--accent); }
.disclosure { color: var(--muted); font-size: 13px; max-width: 820px; margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.disclosure strong { color: var(--text); }
.copy { color: #6b7480; font-size: 13px; margin: 0; }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .guide__grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 56px 0 64px; }
  .hero__lead { font-size: 16px; }
  .cats { display: flex; overflow-x: auto; margin-top: -28px; padding-bottom: 6px; }
  .cat { flex: 0 0 110px; }
  .section { padding-top: 48px; }
  .guide__grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 12px; }
  .card__title { font-size: 14px; }
  .card__desc { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card .btn { width: 100%; }
  .rail { grid-auto-columns: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__title span { background-size: 100% 12%; }
}
