/* Garimpo de Ofertas — estilos (mobile primeiro) */
:root {
  --y: #ffd400;
  --y2: #ffe55c;
  --ink: #141414;
  --ink2: #2a2a2a;
  --mut: #5f6368;
  --line: #e6e6e6;
  --bg: #f4f4f2;
  --card: #fff;
  --green: #0a8a3a;
  --red: #c62828;
  --r: 12px;
  --sh: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  --f: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 15px/1.45 var(--f); color: var(--ink); background: var(--bg); overflow-x: hidden; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--y); padding: 8px 12px; z-index: 100; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.ico { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 10px; border: 0; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn--buy { background: var(--y); color: var(--ink); width: 100%; }
.btn--buy:hover { background: #f5c800; }
.btn--dark { background: var(--ink); color: #fff; border-radius: 999px; padding: 0 26px; min-height: 48px; font-size: 1.05rem; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: #fff; border: 1px solid #cfcfcf; }
.linklike { background: none; border: 0; padding: 0; color: #1a5fd0; text-decoration: underline; cursor: pointer; }

/* ---------- Cabeçalho ---------- */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.hdr__in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo links" "search search search"; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
.hdr__menu { grid-area: menu; background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; display: grid; place-items: center; }
.hdr__menu .ico { width: 26px; height: 26px; }
.logo { grid-area: logo; display: flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; min-width: 0; }
.logo__ico { width: 38px; height: 38px; flex: none; }
.logo__t { display: grid; line-height: .95; }
.logo__t b { font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.logo__t b + b { color: var(--y); }
.logo__t small { font-size: .62rem; opacity: .85; margin-top: 3px; }
.search { grid-area: search; display: flex; background: #fff; border-radius: 10px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 44px; font-size: 16px; color: var(--ink); background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--y); }
.search button { width: 52px; border: 0; background: var(--y); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.hdr__links { grid-area: links; display: flex; gap: 14px; }
.hdr__links a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; position: relative; font-weight: 600; }
.hdr__links a span { display: none; }
.hdr__top { display: none !important; }
.fav-count { position: absolute; top: -6px; left: 14px; background: var(--y); color: var(--ink); font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.fav-count[hidden] { display: none; }

.bar { display: none; background: #fafafa; color: var(--ink); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 4px; min-height: 50px; }
.bar a, .bar__all { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.bar a:hover { background: #f0f0f0; }
.bar .ico { width: 20px; height: 20px; }
.bar__all { background: var(--y); border: 0; cursor: pointer; margin-right: auto; padding: 9px 16px; }
.bar__in > a:last-child { margin-left: auto; }

/* ---------- Gaveta ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 340px); background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; padding-bottom: 24px; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; }
.x { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 6px; color: inherit; }
.drawer__cats, .drawer__links { list-style: none; margin: 0; padding: 8px 0; }
.drawer__cats a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; font-weight: 600; }
.drawer__cats a:hover, .drawer__links a:hover { background: #fff7cc; }
.drawer__cats small { margin-left: auto; color: var(--mut); }
.drawer__links { border-top: 1px solid var(--line); }
.drawer__links a { display: block; padding: 11px 16px; text-decoration: none; }

/* ---------- Banner ---------- */
.hero { margin-top: 12px; background: var(--y); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; }
.hero > * { min-width: 0; }
.hero__txt { padding: 20px 18px 18px; }
.hero h1 { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.hero mark { background: var(--ink); color: var(--y); padding: 0 .25em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__list { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 4px; font-weight: 600; }
.hero__list li { padding-left: 24px; position: relative; }
.hero__list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.hero__img { position: relative; aspect-ratio: 16 / 9; background: #f3c400; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__mosaic { display: none; position: absolute; inset: 0; list-style: none; margin: 0; padding: 14px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; background: linear-gradient(135deg, #ffd400 0%, #ffc400 100%); }
.hero__mosaic li { min-height: 0; }
.hero__mosaic a { display: grid; place-items: center; height: 100%; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 8px; transition: transform .2s; }
.hero__mosaic li:nth-child(odd) a { transform: rotate(-2deg); }
.hero__mosaic li:nth-child(even) a { transform: rotate(2deg); }
.hero__mosaic a:hover { transform: scale(1.04); }
.hero__mosaic img { width: 100%; height: 100%; object-fit: contain; }
.hero__img.is-empty picture { display: none; }
.hero__img.is-empty .hero__mosaic { display: grid; }

/* ---------- Chips de categoria ---------- */
.chips { margin-top: 12px; }
.chips__in { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 92px; min-height: 82px; padding: 8px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.15; }
.chip .ico { width: 28px; height: 28px; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--y); border-color: var(--y); }

/* ---------- Layout ---------- */
.layout { display: block; margin-top: 12px; }
.content { min-width: 0; }
.content:focus { outline: none; }
.toolbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; position: sticky; top: var(--hdr-h, 112px); z-index: 20; background: var(--bg); padding: 6px 0; }
.btn-filter { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #cfcfcf; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.btn-filter .ico { width: 18px; height: 18px; }
.f-badge { background: var(--ink); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: .72rem; display: grid; place-items: center; }
.f-badge[hidden] { display: none; }
.status { margin: 0; color: var(--mut); font-size: .9rem; }

/* ---------- Filtros ---------- */
.filters { position: fixed; inset: 0; z-index: 55; visibility: hidden; }
.filters::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.filters__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0; padding: 0 16px; transform: translateY(100%); transition: transform .25s; }
.filters.is-open { visibility: visible; }
.filters.is-open::before { opacity: 1; }
.filters.is-open .filters__panel { transform: none; }
.filters__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: #fff; padding: 14px 0 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.filters__head h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.f-group { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 12px 0; }
.f-group legend, .f-label { font-weight: 800; padding: 0; margin-bottom: 6px; display: block; }
.f-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: .95rem; }
.f-check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.f-check small { color: var(--mut); }
.f-range { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.f-range label { flex: 1; }
.f-range input, .f-group select { width: 100%; height: 40px; border: 1px solid #cfcfcf; border-radius: 8px; padding: 0 10px; background: #fff; font-size: 16px; }
.filters__foot { position: sticky; bottom: 0; background: #fff; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 0 16px; }

/* ---------- Seções ---------- */
.sec { margin: 0 0 22px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.sec__head h2 { font-size: 1.25rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.sec__head h2 .ico { width: 26px; height: 26px; color: var(--ink); background: var(--y); border-radius: 8px; padding: 3px; }
.sec__all { font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.sec__all:hover { text-decoration: underline; }
.sec__sub { margin: -4px 0 10px; color: var(--mut); }
.src { margin: 0; font-size: .8rem; color: var(--mut); }
.src a { color: inherit; }

/* Top 1 por categoria */
.tops { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.top { scroll-snap-align: start; }
.top__link { display: grid; grid-template-columns: auto 80px 1fr; align-items: center; gap: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 10px; text-decoration: none; height: 100%; }
.top__link:hover { box-shadow: 0 0 0 2px var(--y), var(--sh); }
.top__num { width: 32px; height: 32px; border-radius: 50%; background: var(--y); display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.top__link img { width: 80px; height: 80px; object-fit: contain; }
.top__txt { display: grid; gap: 2px; min-width: 0; }
.top__cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--mut); letter-spacing: .02em; }
.top__name { font-weight: 700; font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top__price { font-weight: 900; }
.top__price small { font-weight: 500; color: var(--mut); font-size: .72rem; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.card:target { box-shadow: 0 0 0 3px var(--y), var(--sh); }
.card__top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; pointer-events: none; }
.rank { pointer-events: auto; background: var(--y); font-weight: 900; font-size: .8rem; padding: 2px 8px; border-radius: 6px; }
.fav { pointer-events: auto; 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; cursor: pointer; color: #555; }
.fav .ico { width: 20px; height: 20px; }
.fav.is-on { color: #e0245e; }
.fav.is-on .ico { fill: currentColor; }
.card__img { display: block; padding: 30px 10px 4px; background: #fff; }
.card__img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card__body { padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__badge { margin: 0; display: flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; color: #8a6d00; line-height: 1.2; }
.card__badge .ico { width: 14px; height: 14px; }
.card__title { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.card__title a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { text-decoration: underline; }
.card__rating { margin: 0; font-size: .78rem; color: var(--ink2); }
.card__rating > span:first-child { color: #e6a700; }
.card__rating span:last-child { color: var(--mut); }
.card__price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding-top: 4px; }
.card__price s { color: var(--mut); font-size: .78rem; }
.card__price .off { color: var(--green); font-weight: 800; font-size: .78rem; }
.card__price strong { font-size: 1.25rem; font-weight: 900; width: 100%; line-height: 1.1; }
.card__price small { font-size: .74rem; color: var(--mut); width: 100%; }
.card__date { margin: 0 0 4px; font-size: .72rem; color: var(--mut); }
.card .btn--buy { min-height: 40px; font-size: .8rem; padding: 0 6px; letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 400px) { .card .btn--buy { font-size: .86rem; } }
.wa { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-top: 2px; padding: 0 6px; border-radius: 10px; border: 1.5px solid #25d366; color: #128c4a; background: #fff; font-size: .78rem; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.15; }
.wa .ico { width: 18px; height: 18px; color: #25d366; }
.wa:hover { background: #25d366; color: #fff; }
.wa:hover .ico { color: #fff; }
.wa span { text-wrap: balance; }
.wa .ico { flex: none; }
@media (max-width: 599px) { .wa { min-height: 40px; font-size: .74rem; } }
.empty { background: #fff; padding: 24px; border-radius: var(--r); text-align: center; }

/* ---------- Categoria ---------- */
.cat-hero { background: #fff; border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--sh); }
.cat-hero h1 { font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.cat-hero h1 .ico { width: 30px; height: 30px; background: var(--y); border-radius: 8px; padding: 3px; }
.cat-hero p { margin: 0; color: var(--ink2); }
.crumbs { font-size: .82rem; color: var(--mut); }
.crumbs a { color: inherit; }
.tips { margin-top: 10px; }
.tips summary { cursor: pointer; font-weight: 700; }
.tips ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Selos ---------- */
.trust { list-style: none; margin: 8px auto 0; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--mut); }
.trust .ico { width: 28px; height: 28px; color: #d9a800; }
.trust strong { display: block; color: var(--ink); font-size: .86rem; }

/* ---------- Rodapé ---------- */
.ftr { background: var(--ink); color: #ddd; margin-top: 28px; padding: 28px 0 90px; font-size: .9rem; }
.ftr__in { display: grid; gap: 22px; }
.ftr h2 { font-size: .95rem; color: #fff; margin-bottom: 8px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr a { text-decoration: none; color: #ddd; }
.ftr a:hover { color: var(--y); }
.ftr__brand p { margin: 10px 0 0; max-width: 420px; }
.ftr__cats { grid-template-columns: 1fr 1fr; }
.ftr__legal { border-top: 1px solid #333; margin-top: 22px; padding-top: 16px; font-size: .8rem; color: #aaa; }
.ftr__aff { color: #fff; font-size: .9rem; background: #222; border-left: 4px solid var(--y); padding: 10px 12px; border-radius: 6px; }

.totop { position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--y); box-shadow: 0 4px 12px rgba(0,0,0,.3); display: grid; place-items: center; cursor: pointer; }
.totop[hidden] { display: none; }

/* ---------- Páginas de texto ---------- */
.prose { max-width: 800px; background: #fff; border-radius: var(--r); margin-top: 16px; padding: 20px 18px 28px; box-shadow: var(--sh); }
.prose h1 { font-size: 1.6rem; font-weight: 900; margin: 8px 0 12px; }
.prose h2 { font-size: 1.15rem; margin: 20px 0 6px; }
.prose li { margin-bottom: 6px; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tops { grid-auto-columns: minmax(270px, 42%); }
  .hero h1 { font-size: 2.1rem; }
  .trust { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 150px; }
  .hdr__in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search links"; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
  .hdr__menu { display: none; }
  .logo__ico { width: 46px; height: 46px; }
  .logo__t b { font-size: 1.4rem; }
  .logo__t small { font-size: .7rem; }
  .search { max-width: 680px; width: 100%; justify-self: center; }
  .hdr__links { gap: 22px; }
  .hdr__links a span { display: inline; }
  .hdr__top { display: flex !important; }
  .fav-count { position: static; }
  .bar { display: block; }

  .hero { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); margin-top: 16px; min-height: 300px; }
  .hero__txt { padding: 30px 34px; align-self: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero__img { aspect-ratio: auto; min-height: 100%; }

  .chips__in { justify-content: space-between; overflow: visible; flex-wrap: nowrap; }
  .chip { width: auto; flex: 1 1 0; min-width: 0; background: transparent; border-color: transparent; }
  .chip:hover { background: #fff; border-color: var(--line); }
  .chip.is-on { background: var(--y); }

  .layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 16px; }
  .filters { inset: auto; position: sticky; top: calc(var(--hdr-h, 131px) + 12px); visibility: visible; z-index: 1; max-height: calc(100vh - var(--hdr-h, 131px) - 24px); overflow-y: auto; border-radius: var(--r); scrollbar-width: thin; }
  .filters::before { display: none; }
  .filters__panel { position: static; transform: none; border-radius: var(--r); max-height: none; box-shadow: var(--sh); transition: none; }
  .filters__head .x, .filters__apply, .btn-filter { display: none; }
  .filters__foot { grid-template-columns: 1fr; position: static; }
  .f-check { padding: 4px 0; font-size: .9rem; }
  .toolbar { position: static; margin: 0 0 4px; padding: 0; min-height: 0; }
  .toolbar:has(.status:empty) { display: none; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .sec__head h2 { font-size: 1.45rem; }
  .tops { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .top__link { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .top__link img { grid-column: 2; grid-row: 1; justify-self: center; width: 90px; height: 90px; }
  .top__num { grid-row: 1; align-self: start; }
  .top__txt { grid-column: 1 / -1; }
  .cat-hero h1 { font-size: 1.75rem; }

  .ftr { padding-bottom: 32px; }
  .ftr__in { grid-template-columns: 1.4fr 1fr 1.4fr 1fr; }
  .totop { display: none !important; }
}
@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
