:root {
  --bg: #0e1012;
  --surface: #191c1f;
  --surface-2: #22262a;
  --line: #2e3338;
  --text: #f4f5f6;
  --muted: #9ea4ac;
  --green: #00b37e;
  --green-hover: #00cc8f;
  --gold: #f5c542;
  --red: #ff3b3b;
  --radius: 10px;
  --gutter: clamp(16px, 5vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ===== Faixa da campanha ===== */
.ribbon {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
  padding: 8px 16px;
  background: #000;
  border-bottom: 1px solid var(--gold);
  font-size: 14px;
}
.ribbon__text strong { color: var(--gold); letter-spacing: .08em; }
.countdown { display: flex; gap: 6px; font-variant-numeric: tabular-nums; color: var(--muted); }
.countdown b {
  display: inline-block; min-width: 28px; margin-right: 2px; padding: 2px 4px;
  background: var(--gold); color: #000; border-radius: 4px; text-align: center; font-weight: 800;
}

/* ===== Topo ===== */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: #000;
}
.topbar__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.topbar__nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.topbar__nav a:hover { color: var(--text); }

/* ===== Botões e etiquetas ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn--buy { background: var(--green); color: #fff; }
.btn--buy:hover { background: var(--green-hover); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { padding: 14px 28px; font-size: 16px; }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tag--gold { background: var(--gold); color: #000; }

.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 4px;
  background: var(--red); color: #fff; font-weight: 900; font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.badge--gold {
  background: var(--gold); color: #000; font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
  max-width: calc(100% - 20px); line-height: 1.25; text-align: left;
}

/* ===== Hero ===== */
.hero {
  position: relative; margin: 24px var(--gutter) 0;
  border-radius: var(--radius); overflow: hidden; background: #0d2a33;
  height: clamp(300px, 38vw, 560px);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,0) 70%);
}
.hero__content {
  position: absolute; z-index: 1; inset: 0; width: min(540px, 45%);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
  padding: 0 clamp(20px, 4vw, 56px);
}
.hero h1 { font-size: clamp(30px, 5vw, 60px); font-weight: 900; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #d7dade; font-size: clamp(14px, 1.4vw, 18px); }

/* ===== Combos ===== */
.combos { margin: 40px var(--gutter) 0; }
.combos > h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.combos__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.combo {
  display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start;
  padding: 20px;
  background: linear-gradient(135deg, #1d1a0e, var(--surface) 60%);
  border: 1px solid var(--gold); border-radius: var(--radius);
}
.combo__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #fff; }
.combo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; }
.combo h3 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 800; line-height: 1.2; }
.combo p { color: var(--muted); font-size: 14px; }
.combo .price { margin-top: auto; }

/* ===== Prateleiras ===== */
.shelf { margin-top: 44px; }
.shelf__head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.shelf__head h2 { font-size: 22px; font-weight: 800; }
.shelf__arrows { display: flex; gap: 8px; }
.shelf__arrows button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.shelf__arrows button:hover { border-color: var(--text); }
.shelf__row {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 16px var(--gutter) 8px; scroll-padding-left: var(--gutter);
  scrollbar-width: none;
}
.shelf__row::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 clamp(190px, 22vw, 250px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card--fixed { border-color: var(--gold); }
.card__cover { position: relative; padding: 0; border: 0; background: var(--surface-2); cursor: pointer; }
.card__cover img { width: 100%; aspect-ratio: 720 / 1040; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px; }
.card__kicker { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card__title {
  font-size: 15px; font-weight: 700; line-height: 1.3; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.3em * 3);
}
.card .btn { margin-top: auto; width: 100%; }

.price { display: flex; flex-direction: column; margin: 4px 0 10px; }
.price__old { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.price__now { color: var(--green); font-size: 22px; font-weight: 900; line-height: 1.2; }
.price__now small { font-size: .6em; font-weight: 800; }
.price__note { color: var(--text); font-size: 13px; }
.price--lg .price__now { font-size: 34px; }
.price--lg .price__note { font-size: 15px; }

/* ===== Rodapé ===== */
.footnote { margin: 48px var(--gutter) 0; color: var(--muted); font-size: 13px; max-width: 110ch; }
.footnote strong { color: var(--text); }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 32px; padding: 24px var(--gutter);
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.modal__box {
  position: relative; display: grid; grid-template-columns: 260px 1fr;
  width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.modal__img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; }
.modal__body h2 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.modal__body p { color: #c9cdd2; }
.modal__close {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer;
}

/* ===== Mobile ===== */
.topbar__nav a { white-space: nowrap; }
@media (max-width: 1040px) {
  .topbar__nav { display: none; }
}
@media (max-width: 900px) {
  /* Foto em cima, texto embaixo — nada sobre as pessoas */
  .hero { height: auto; background: var(--surface); }
  .hero__img { position: static; height: auto; aspect-ratio: 16 / 9; object-position: 72% center; }
  .hero::after { display: none; }
  .hero__content { position: static; width: 100%; padding: 24px; align-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .hero__img { aspect-ratio: 4 / 3; }
  .hero__content { padding: 20px; }
  /* Tudo centralizado no celular */
  .ribbon { text-align: center; }
  .topbar { justify-content: center; }
  .combos > h2, .footnote { text-align: center; }
  .combo { justify-items: center; }
  .combo__body { align-items: center; text-align: center; }
  .shelf__head { justify-content: center; }
  .shelf__arrows { display: none; }
  .card__body, .modal__body { align-items: center; text-align: center; }
  .price { align-items: center; }
  .footer { justify-content: center; text-align: center; }
  .combo { grid-template-columns: 1fr; }
  .combo__img { max-width: 180px; }
  .card { flex-basis: 62vw; }
  .modal__box { grid-template-columns: 1fr; }
  .modal__img { max-height: 220px; }
}
