/* =========================================================
   Promo 3D — vitrine de afiliados (amarelo + azul)
   Mobile-first. Breakpoints: 768px (tablet) e 1024px (desktop)
   ========================================================= */
:root {
  --yellow: #ffe11b;
  --yellow-2: #ffd400;
  --yellow-3: #ffc400;
  --blue: #0d3b9e;
  --blue-2: #1747c2;
  --blue-3: #0a2a7a;
  --blue-ink: #0b1f52;
  --ink: #16181d;
  --ink-2: #4a4f5c;
  --ink-3: #7a8091;
  --line: #e4e6ec;
  --bg: #f2f3f7;
  --card: #fff;
  --red: #e5322d;
  --green: #00a650;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .16);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --icon-accent: var(--yellow-2);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.4; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 12px; }
[hidden] { display: none !important; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn--yellow { background: var(--yellow-2); color: var(--ink); box-shadow: 0 2px 0 var(--yellow-3); }
.btn--yellow:hover { background: var(--yellow); }
.btn--blue { background: var(--blue-2); color: #fff; }
.btn--blue:hover { background: var(--blue); }
.btn--ghost { background: #fff; color: var(--blue-2); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue-2); }
.btn--filter { background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 8px 14px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; }
.iconbtn:hover { background: rgba(0, 0, 0, .06); }
.iconbtn .ico { width: 24px; height: 24px; }
.linkbtn { border: 0; background: none; color: var(--blue-2); font-weight: 700; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue-2); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.badge--dark { background: var(--ink); }

/* ---------- cabeçalho ---------- */
.topbar { background: var(--yellow); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.topbar__in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: 6px 8px; padding-top: 8px; padding-bottom: 10px; }
.topbar__menu { grid-area: menu; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--blue-ink); min-width: 0; }
.logo__mark .ico { width: 34px; height: 34px; color: var(--blue-ink); stroke-width: 2.2; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt strong { font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: -.5px; color: var(--blue); }
.logo__txt small { font-size: 10.5px; color: var(--blue-ink); font-weight: 700; margin-top: 3px; white-space: nowrap; }
.logo--sm strong { font-size: 20px; font-weight: 900; font-style: italic; color: var(--blue); }
.logo--sm .logo__mark .ico { width: 26px; height: 26px; }
.search { grid-area: search; display: flex; background: #fff; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; font-size: 16px; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(23, 71, 194, .35); }
.search button { border: 0; background: var(--blue-2); color: #fff; width: 54px; display: grid; place-items: center; }
.search button .ico { width: 22px; height: 22px; }
.topbar__actions { grid-area: actions; display: flex; gap: 4px; }
.action { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px; border-radius: 10px; font-weight: 800; color: var(--blue-ink); }
.action:hover { background: rgba(0, 0, 0, .06); }
.action .ico { width: 26px; height: 26px; }
.action[aria-pressed="true"] .ico { fill: var(--red); color: var(--red); }
.action__lbl { display: none; }
.action .badge { position: absolute; top: 2px; left: 22px; }

/* ---------- navbar ---------- */
.navbar { display: none; background: var(--blue); color: #fff; }
.navbar__in { display: flex; align-items: center; gap: 24px; height: 44px; }
.allcats { position: relative; }
.allcats__btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: #fff; font-weight: 800; font-size: 15.5px; height: 44px; }
.allcats__btn .chev .ico { width: 16px; height: 16px; transition: transform .2s; }
.allcats__btn[aria-expanded="true"] .chev .ico { transform: rotate(180deg); }
.allcats__menu { position: absolute; top: 100%; left: 0; width: 300px; background: #fff; color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; max-height: 70vh; overflow: auto; }
.allcats__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.allcats__menu a:hover { background: var(--bg); }
.allcats__menu small { margin-left: auto; color: var(--ink-3); font-weight: 600; }
.allcats__menu .grp { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 800; padding: 10px 10px 4px; }
.navbar__links { display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; flex: 1; justify-content: center; }
.navbar__links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; --icon-accent: var(--yellow-2); }
.navbar__links a:hover { background: rgba(255, 255, 255, .12); }
.navbar__links .ico { color: var(--yellow-2); }

/* ---------- gaveta ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 16, 40, .5); z-index: 60; animation: fade .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; z-index: 61; transform: translateX(-102%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 16px; background: var(--yellow); }
.drawer__nav { overflow: auto; padding: 8px; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.drawer__nav a:hover, .drawer__nav a:active { background: var(--bg); }
.drawer__nav .ico { width: 22px; height: 22px; color: var(--blue); }
.drawer__nav small { margin-left: auto; color: var(--ink-3); }
.drawer__title { margin: 14px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 800; }
@keyframes fade { from { opacity: 0; } }

/* ---------- layout ---------- */
.layout { display: block; padding-top: 12px; padding-bottom: 24px; }
.content { min-width: 0; }

/* ---------- filtros (painel no celular) ---------- */
.filters { position: fixed; inset: auto 0 0 0; max-height: 88vh; background: #fff; z-index: 61; border-radius: 18px 18px 0 0; transform: translateY(102%); transition: transform .28s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.filters.open { transform: none; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 18px; border-bottom: 1px solid var(--line); }
.filters__head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; color: var(--blue-ink); }
.filters__head h2 .ico { color: var(--blue-2); }
.filters__body { overflow: auto; padding: 4px 18px 12px; overscroll-behavior: contain; }
.filters__foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.filters__foot .btn { flex: 1; }
.fgroup { border: 0; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { font-weight: 900; font-size: 16px; padding: 0; margin-bottom: 4px; color: var(--ink); float: left; width: 100%; }
.fgroup legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue-2); flex: none; margin: 0; }
.check small { color: var(--ink-3); margin-left: 2px; }
.check .stars { font-size: 13px; white-space: nowrap; }
.check .stars small { margin-left: 2px; }
.fcats .check.extra { display: none; }
.fcats.expanded .check.extra { display: flex; }

/* slider de preço duplo */
.range { position: relative; height: 32px; margin: 4px 6px 0; }
.range__track { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 3px; background: var(--line); }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--yellow-2); border-radius: 3px; }
.range input { position: absolute; left: -6px; right: -6px; width: calc(100% + 12px); top: 4px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 24px; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow-2); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow-2); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: grab; }
.range input::-moz-range-track { background: none; }
.range__vals { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.range__vals span { color: var(--ink-3); font-weight: 600; }

/* ---------- banner ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: linear-gradient(115deg, var(--blue-3) 0%, var(--blue) 45%, var(--blue-2) 100%); color: #fff; min-height: 220px; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.slide.active { opacity: 1; visibility: visible; position: relative; }
.slide__media { position: absolute; inset: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__placeholder { position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px); }
.slide__text { position: relative; padding: 22px 18px 40px; max-width: 640px; }
.slide.has-img .slide__text { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.pill { display: inline-block; background: var(--yellow-2); color: var(--ink); font-weight: 900; padding: 5px 14px; border-radius: 999px; font-size: 13px; }
.slide h1, .slide h2.slide__title { margin: 10px 0 8px; font-size: clamp(24px, 6.4vw, 46px); line-height: 1.05; font-weight: 900; letter-spacing: -.5px; }
.slide__title em { display: block; font-style: italic; color: var(--yellow-2); }
.slide p { margin: 0 0 16px; font-size: clamp(14px, 3.6vw, 19px); opacity: .95; max-width: 34ch; }
.slide .btn { font-size: 16px; padding: 12px 22px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; }
.dots button[aria-current="true"] { background: var(--yellow-2); border-color: var(--yellow-2); }

/* ---------- categorias ---------- */
.cats { margin: 12px -12px 4px; }
.cats__row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 12px 10px; scrollbar-width: none; }
.cats__row::-webkit-scrollbar { display: none; }
.cat { flex: none; scroll-snap-align: start; width: 92px; min-height: 92px; background: #fff; border: 1.5px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.15; color: var(--ink); text-decoration: none; transition: transform .12s, border-color .15s; }
.cat .ico { width: 34px; height: 34px; color: var(--blue-ink); stroke-width: 1.6; }
.cat:hover { transform: translateY(-2px); border-color: var(--yellow-2); }
.cat[aria-pressed="true"] { border-color: var(--blue-2); background: #eef3ff; }

/* ---------- blocos ---------- */
.block { margin-top: 18px; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 10px; }
.block__head h2 { margin: 0; font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 8px; letter-spacing: -.3px; }
.h-ico .ico { width: 28px; height: 28px; color: var(--ink); }
.block__sub { margin: 0; color: var(--ink-2); font-size: 13.5px; flex-basis: 100%; }
.block__more { color: var(--blue-2); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.block__more:hover { text-decoration: underline; }
.block__head--tools { align-items: center; }
.tools { display: flex; gap: 8px; margin-left: auto; align-items: center; width: 100%; }
.tools .btn--filter { flex: 1; }
.sort select { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 32px 8px 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; -webkit-appearance: none; appearance: none; font-weight: 700; max-width: 100%; }
.sort { flex: 1; }
.sort select { width: 100%; }

/* ---------- ranking ---------- */
.rank { list-style: none; margin: 0 -12px; padding: 2px 12px 10px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rank::-webkit-scrollbar { display: none; }
.rank__item { flex: none; width: 260px; scroll-snap-align: start; }
.rcard { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; text-decoration: none; color: inherit; height: 100%; }
.rcard:hover { box-shadow: var(--shadow-lg); }
.rcard__pos { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-2); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 14px; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.rcard img { width: 92px; height: 92px; object-fit: contain; }
.rcard__name { font-size: 13.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 4px; }
.rcard__price { font-weight: 900; font-size: 17px; }
.rcard__meta { font-size: 11.5px; color: var(--ink-3); }
.rcard .stars { font-size: 11.5px; }
.rcard .stars > span:not(.stars__bar):not(.sr) { white-space: nowrap; }
.rank__more { margin-left: auto; }

/* ---------- carrossel horizontal ---------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .pcard { flex: none; width: 200px; scroll-snap-align: start; }

/* ---------- grade de produtos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pcard { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; min-height: 0; }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; transition: transform .25s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__off { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-weight: 900; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; }
.pcard__rank { position: absolute; left: 8px; bottom: 8px; background: rgba(13, 59, 158, .92); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); display: grid; place-items: center; z-index: 2; }
.fav .ico { width: 20px; height: 20px; color: var(--ink-2); transition: transform .15s; }
.fav[aria-pressed="true"] .ico { fill: var(--red); color: var(--red); animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.3); } }
.pcard__body { padding: 4px 10px 10px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.pcard__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 0; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard__name:hover { color: var(--blue-2); }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.stars__bar { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; line-height: 1; color: #d5d8e0; }
.stars__bar::before { content: "★★★★★"; }
.stars__bar i { position: absolute; inset: 0; overflow: hidden; color: var(--blue-2); font-style: normal; white-space: nowrap; }
.stars__bar i::before { content: "★★★★★"; }
.pcard__old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.pcard__price { font-size: 21px; font-weight: 900; letter-spacing: -.3px; line-height: 1.1; }
.pcard__price small { font-size: 12px; font-weight: 700; color: var(--green); margin-left: 4px; letter-spacing: 0; }
.pcard__price small.from { display: block; color: var(--ink-3); font-weight: 700; margin: 0 0 1px; font-size: 11.5px; }
.rcard__price small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.pcard__date { font-size: 11.5px; color: var(--ink-3); }
.pcard__sold { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.pcard__check { font-size: 11.5px; color: var(--blue-2); font-weight: 800; text-decoration: none; display: inline; line-height: 1.3; }
.pcard__check .ico { width: 12px; height: 12px; vertical-align: -2px; }
.pcard__check:hover { text-decoration: underline; }
.pcard__actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.pcard__cta { flex: 1; font-size: 13px; padding: 9px 6px; gap: 5px; white-space: nowrap; letter-spacing: -.1px; }
.pcard__cta .ico { width: 17px; height: 17px; }
.wa { position: absolute; top: 48px; right: 6px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(233, 249, 239, .95); color: #128c4b; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.wa:hover { background: #25d366; color: #fff; }
.wa .ico { width: 20px; height: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--blue-2); color: var(--blue-2); font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.chip .ico { width: 14px; height: 14px; }
.empty { text-align: center; background: #fff; border-radius: var(--radius); padding: 30px 16px; box-shadow: var(--shadow); }
.more { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- selos ---------- */
.trust { margin-top: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.trust__item { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.trust__item:nth-child(odd) { border-right: 1px solid var(--line); }
.trust__item:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; justify-content: center; }
.trust__item .ico { width: 34px; height: 34px; color: var(--blue-ink); }
.trust__item p { margin: 0; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.2; }
.trust__item small { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

/* ---------- rodapé ---------- */
.footer { background: var(--blue-3); color: #dfe6ff; margin-top: 24px; padding: 28px 0 calc(16px + env(safe-area-inset-bottom)); --icon-accent: var(--yellow-2); }
.footer__in { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.footer__brand { grid-column: 1 / -1; }
.logo--footer .logo__txt strong { color: #fff; }
.logo--footer .logo__txt small { color: #c8d3ff; }
.logo--footer .logo__mark .ico { color: var(--yellow-2); }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col h3 { margin: 0 0 4px; font-size: 15px; color: #fff; font-weight: 900; }
.footer__col a { text-decoration: none; font-size: 14px; color: #c8d3ff; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 900; color: #fff; }
.footer__safe { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.footer__safe .ico { width: 36px; height: 36px; color: var(--yellow-2); }
.footer__safe p { margin: 0; display: flex; flex-direction: column; color: #fff; }
.footer__safe small { color: #c8d3ff; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 22px; padding-top: 16px; font-size: 12.5px; color: #b9c5f5; }
.footer__legal p { margin: 0 0 8px; }
.disclaimer { color: #fff; font-weight: 700; font-size: 13.5px; }
.noscript-list { background: #fff; border-radius: var(--radius); padding: 16px; margin-top: 16px; }

/* ---------- voltar ao topo + toast ---------- */
.totop { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blue-2); color: #fff; box-shadow: var(--shadow-lg); z-index: 30; display: grid; place-items: center; }
.totop .ico { width: 24px; height: 24px; }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 70; box-shadow: var(--shadow-lg); animation: fade .2s; max-width: 90vw; }

body.lock { overflow: hidden; }

/* páginas internas */
.page { max-width: 820px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; margin: 16px auto; }
.page h1 { margin-top: 0; font-size: 28px; color: var(--blue-ink); }
.page h2 { font-size: 19px; margin-top: 26px; }
.page p, .page li { color: var(--ink-2); line-height: 1.6; }

@media (max-width: 599px) {
  .pcard__cta { font-size: 12.5px; padding: 9px 4px; letter-spacing: -.2px; }
  .pcard__cta .ico { display: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .action__lbl { display: inline; }
  .action .badge { position: static; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust__item:nth-child(odd) { border-right: 0; }
  .trust__item { border-right: 1px solid var(--line) !important; }
  .trust__item:last-child { grid-column: auto; justify-content: flex-start; }
  .tools { width: auto; }
  .tools .btn--filter, .sort { flex: none; }
  .sort select { width: auto; }
  .block__sub { flex-basis: auto; }
  .footer__in { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .wrap { padding: 0 20px; }
  .topbar__in { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "menu logo search actions"; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .logo__txt strong { font-size: 32px; }
  .logo__txt small { font-size: 12px; }
  .logo__mark .ico { width: 42px; height: 42px; }
  .hero { min-height: 300px; }
  .slide__text { padding: 34px 40px 46px; }
  .cats { margin: 14px 0 4px; }
  .cats__row { padding: 2px 0 10px; }
  .rank, .hscroll { margin: 0; padding-left: 0; padding-right: 0; }
}

/* =========================================================
   Desktop (layout da referência)
   ========================================================= */
@media (min-width: 1024px) {
  .topbar__menu { display: none; }
  .topbar__in { grid-template-columns: auto minmax(0, 680px) 1fr; grid-template-areas: "logo search actions"; gap: 40px; }
  .topbar__actions { justify-content: flex-end; }
  .navbar { display: block; }
  .layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; padding-top: 14px; align-items: start; }
  html { scroll-padding-top: 130px; }

  .filters { inset: auto; position: sticky; top: 72px; transform: none; max-height: calc(100vh - 88px); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; transition: none; }
  .filters__close, .filters__foot .btn--blue { display: none; }
  .filters__foot { padding: 10px 18px 14px; }
  .btn--filter { display: none; }

  .hero { min-height: 340px; }
  .slide__text { padding: 40px 56px 50px; }
  .cats__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); overflow: visible; }
  .cat { width: auto; }
  .rank { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .rank__item { width: auto; }
  .rank__item:nth-child(n+6) { display: none; }
  .rank.expanded .rank__item:nth-child(n+6) { display: block; }
  .rcard { grid-template-columns: 1fr; text-align: left; }
  .rcard img { width: 100%; height: 120px; }
  .hscroll .pcard { width: calc((100% - 40px) / 5); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .totop { display: none; }
  .trust { grid-template-columns: repeat(5, 1fr); }
  .trust__item:last-child { border-right: 0 !important; }
  .footer__in { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; }
  .footer__brand, .footer__safe { grid-column: auto; }
}
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rcard { grid-template-columns: 1fr; }
  .rcard img { width: 100%; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
