/* DescontoBike: vitrine de marketplace (foto grande, preço forte), claro e escuro. */
:root {
  --bg: #f2f3f5; --surface: #fff; --surface-2: #f7f7f9; --line: #e4e6ea;
  --text: #15171c; --muted: #5b6270; --soft: #8a909c;
  --brand: #ff2e4d; --brand-2: #ff6a1a; --brand-ink: #d0102f;
  --price: #e4002b; --sale: #ffd21f; --sale-ink: #3b2a00; --ok: #0f9d58; --ok-bg: #e7f6ee; --new: #2563eb; --new-bg: #e8efff;
  --shadow: 0 1px 2px rgb(16 18 24 / .06), 0 4px 14px rgb(16 18 24 / .06);
  --radius: 14px; --wrap: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f13; --surface: #181a20; --surface-2: #1f2229; --line: #2b2f38;
    --text: #f2f3f5; --muted: #a8aeba; --soft: #7d8492;
    --brand: #ff4865; --brand-ink: #ff7b90; --price: #ff5c74; --sale: #ffd21f; --ok: #3ddc84; --ok-bg: #12301f; --new: #7aa7ff; --new-bg: #17233d;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f13; --surface: #181a20; --surface-2: #1f2229; --line: #2b2f38;
  --text: #f2f3f5; --muted: #a8aeba; --soft: #7d8492;
  --brand: #ff4865; --brand-ink: #ff7b90; --price: #ff5c74; --sale: #ffd21f; --ok: #3ddc84; --ok-bg: #12301f; --new: #7aa7ff; --new-bg: #17233d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(100% - 24px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ---------- topo ---------- */
.top { background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgb(255 46 77 / .25); }
:root[data-theme="dark"] .top { background: linear-gradient(100deg, #b5122f, #c2440c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top { background: linear-gradient(100deg, #b5122f, #c2440c); } }
.top-row { display: flex; align-items: center; gap: 12px; padding: 10px 0 6px; }
.logo img { height: 30px; width: auto; }
.search { flex: 1; display: flex; background: #fff; border-radius: 999px; overflow: hidden; border: 2px solid #fff; min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; padding: 9px 14px; font: inherit; color: #15171c; background: #fff; outline: none; }
.search button { border: 0; background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; padding: 0 16px; cursor: pointer; display: grid; place-items: center; border-radius: 999px; margin: 2px; }
.theme { border: 0; background: rgb(255 255 255 / .18); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .theme .i-sun { display: block; } :root:not([data-theme]) .theme .i-moon { display: none; } }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: rgb(255 255 255 / .18); }
@media (max-width: 560px) { .top { position: relative; } .logo img { height: 24px; } .top-row { flex-wrap: wrap; } .search { order: 3; flex-basis: 100%; } .logo { margin-right: auto; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 28px 0 8px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 4px 10px; border-radius: 999px; margin: 0 0 12px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; margin: 12px 0 0; max-width: 60ch; }
.hero-search { display: flex; margin-top: 18px; background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text); background: transparent; outline: none; }
.hero-search button { border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 800; padding: 0 20px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.facts b { color: var(--text); font-size: 18px; }
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 10px; aspect-ratio: 1.25; }
.mosaic a { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); display: block; }
.mosaic .m0 { grid-row: 1 / 4; }
.mosaic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; transition: transform .25s; }
.mosaic a:hover img { transform: scale(1.04); }
.tagp { position: absolute; left: 8px; bottom: 8px; background: var(--price); color: #fff; border-radius: 10px; padding: 3px 9px; display: flex; gap: 6px; align-items: center; box-shadow: 0 3px 10px rgb(0 0 0 / .2); }
.tagp i { font-style: normal; background: var(--sale); color: var(--sale-ink); font-weight: 900; font-size: 12px; border-radius: 6px; padding: 0 5px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 18px; } .mosaic { aspect-ratio: 1.6; } }

.trust { list-style: none; padding: 0; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--muted); }
.trust .ico { color: var(--brand); }
.trust b { color: var(--text); }
@media (max-width: 700px) { .trust { grid-template-columns: 1fr; } }

/* ---------- categorias (bolinhas com foto) ---------- */
.cats { margin-top: 20px; }
.cats-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.cats a { flex: none; width: 86px; text-align: center; text-decoration: none; font-size: 12.5px; color: var(--text); }
.cats .ci { width: 68px; height: 68px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--brand); transition: border-color .15s, transform .15s; }
.cats .ci img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cats a:hover .ci, .cats a[aria-current] .ci { border-color: var(--brand); transform: translateY(-2px); }
.cats b { font-weight: 600; display: block; line-height: 1.2; }

/* ---------- blocos ---------- */
.block { margin-top: 28px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.head h2, .block > h2 { font-size: 21px; font-weight: 800; }
.head a { color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.hl { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; padding: 2px 10px; border-radius: 8px; }
.band { background: linear-gradient(180deg, color-mix(in srgb, var(--sale) 22%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 210px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }
@media (max-width: 520px) { .rail { grid-auto-columns: 46%; gap: 8px; } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; position: relative; border: 1px solid transparent; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.card[data-rank]::before { content: attr(data-rank); position: absolute; z-index: 2; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 8px; background: var(--text); color: var(--surface); font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.ph { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .25s; }
.card:hover .ph img { transform: scale(1.05); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #c9ccd3; }
.off { position: absolute; top: 8px; right: 8px; background: var(--sale); color: var(--sale-ink); font-weight: 900; font-size: 14px; padding: 2px 8px; border-radius: 8px; box-shadow: 0 2px 6px rgb(0 0 0 / .15); }
.off.big { font-size: 22px; padding: 4px 12px; top: 14px; right: 14px; }
.off.inline { position: static; font-size: 15px; box-shadow: none; }
.brand { position: absolute; bottom: 8px; left: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: rgb(21 23 28 / .78); color: #fff; padding: 2px 7px; border-radius: 6px; }
.cb { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; }
.flag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.flag.hot { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.flag.new { background: var(--new-bg); color: var(--new); border-color: transparent; }
.flag.cp { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); border-color: transparent; }
.card h3 { font-size: 13.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pr { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.bp { color: var(--price); font-weight: 900; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.bp small { font-size: .55em; margin-right: 2px; font-weight: 800; }
.bp sup { font-size: .5em; top: -.7em; }
.bp.sm { font-size: 18px; color: #fff; }
.bp.xl { font-size: 40px; }
.pr s, .was s { color: var(--soft); font-size: 13px; }
.inst { margin: 0; font-size: 12.5px; color: var(--muted); }
.inst b { color: var(--ok); }
.cf { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 12px 0; font-size: 12px; color: var(--muted); }
.store { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); min-width: 0; }
.store span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; background: #fff; flex: none; }
i.lg { display: inline-grid; place-items: center; font-style: normal; color: #fff; font-size: 11px; font-weight: 800; }
.ago { white-space: nowrap; }
.buy { margin: 8px 10px 10px; text-align: center; text-decoration: none; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(100deg, var(--brand), var(--brand-2)); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.buy:hover { filter: brightness(1.06); }

/* ---------- lojas e guias ---------- */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stores a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-decoration: none; }
.stores a .lg { width: 28px; height: 28px; grid-row: span 2; }
.stores small { color: var(--muted); }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gcard { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-decoration: none; transition: border-color .15s; }
.gcard:hover { border-color: var(--brand); }
.gph { width: 78px; height: 78px; border-radius: 10px; background: #fff; flex: none; overflow: hidden; display: grid; place-items: center; color: var(--brand); }
.gph img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gt small { color: var(--brand-ink); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.gt b { display: block; font-size: 15px; line-height: 1.3; }
.guides.big .gph { width: 96px; height: 96px; }

/* ---------- lista ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.list-head { padding-top: 8px; }
.list-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; }
.stat { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.filters { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips a { flex: none; text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.chips a[aria-current] { background: var(--text); color: var(--surface); border-color: var(--text); }
.sort label { font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sort select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.empty { background: var(--surface); padding: 24px; border-radius: var(--radius); color: var(--muted); }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 20px; }
.pager a { background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }

/* ---------- oferta ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 12px; align-items: start; }
.gallery { position: relative; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.buybox { background: var(--surface); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.buybox h1 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; }
.where { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 0; }
.price-box { background: color-mix(in srgb, var(--brand) 6%, var(--surface-2)); border-radius: 14px; padding: 14px 16px; }
.was { margin: 0; color: var(--muted); font-size: 14px; }
.now { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.small { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.coupon { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--brand); border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
.coupon span { font-size: 13px; color: var(--muted); }
.coupon code { font-size: 17px; font-weight: 900; letter-spacing: .05em; }
.copy { margin-left: auto; border: 0; background: var(--text); color: var(--surface); border-radius: 8px; padding: 6px 10px; font: inherit; font-weight: 700; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 900; font-size: 18px; background: linear-gradient(100deg, var(--brand), var(--brand-2)); border-radius: 14px; padding: 15px 18px; box-shadow: 0 8px 22px rgb(255 46 77 / .3); }
.cta:hover { filter: brightness(1.06); }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.why li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.why .ico { color: var(--ok); }
.score { margin: 0; font-size: 14px; color: var(--muted); }
.score b { color: var(--text); font-size: 18px; }
.disclosure { font-size: 12.5px; color: var(--soft); margin: 0; }
.gone .gallery img { filter: grayscale(1); opacity: .6; }
.gone-note { background: var(--surface-2); border-left: 4px solid var(--brand); padding: 12px 14px; border-radius: 8px; }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .offer { grid-template-columns: 1fr; gap: 14px; }
  .bp.xl { font-size: 34px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgb(0 0 0 / .14); }
  .sticky-buy .bp.sm { color: var(--price); font-size: 22px; }
  .sticky-buy > div > small { display: block; color: var(--muted); font-size: 12px; }
  .sticky-buy .cta { padding: 12px 18px; font-size: 16px; flex: none; }
  .p-offer .foot { padding-bottom: 90px; }
}

/* ---------- guias ---------- */
.guide { max-width: 820px; background: var(--surface); border-radius: 18px; padding: clamp(18px, 4vw, 36px); margin-top: 12px; box-shadow: var(--shadow); }
.guide h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.guide h2 { font-size: 20px; font-weight: 800; margin: 26px 0 8px; }
.guide p, .guide li { font-size: 16px; line-height: 1.65; }
.guide ul { padding-left: 20px; }
.answer { margin-top: 16px; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-left: 4px solid var(--ok); border-radius: 10px; padding: 12px 16px; }
.answer b { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); }
.answer p { margin: 4px 0 0; }
.tbl { overflow-x: auto; }
.guide table, .live table { border-collapse: collapse; width: 100%; font-size: 15px; }
.guide th, .guide td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.guide th { background: var(--surface-2); }
.live { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 12px; }
.live h2 { margin-top: 12px; }
.guide-offers .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.more { font-weight: 800; color: var(--brand-ink); }
.sources a { color: var(--brand-ink); }
.faq details { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.block > .faq details { background: var(--surface); }

/* ---------- rodapé ---------- */
.foot { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0 18px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 20px; }
.foot-grid div { display: flex; flex-direction: column; gap: 6px; }
.foot-grid b { color: var(--text); }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--brand-ink); }
.flogo { height: 26px; width: auto; background: linear-gradient(100deg, var(--brand), var(--brand-2)); padding: 6px 10px; border-radius: 8px; box-sizing: content-box; }
.legal { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; font-size: 12.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 10px; z-index: 60; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
