/* Achadinhos Tudo pra Você — estilos
   Cores principais: troque aqui para mudar o site inteiro. */
:root {
  --navy: #13294b;
  --navy-2: #0c1c36;
  --orange: #f96a12;
  --orange-2: #e25a05;
  --bg: #eef2f8;
  --card: #ffffff;
  --text: #16213a;
  --muted: #5c6780;
  --line: #dbe2ee;
  --green: #1f9d55;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(19, 41, 75, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.4; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.sr-only { 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: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

[hidden] { display: none !important; }
.badge { font-style: normal; font-size: 11px; font-weight: 700; background: var(--orange); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--navy); }
.icon-btn { background: none; border: 0; padding: 8px; display: inline-grid; place-items: center; border-radius: 8px; }

/* ===== Cabeçalho ===== */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.logo img { width: 44px; height: 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.logo-text i { font-style: normal; font-size: 18px; font-weight: 800; color: var(--orange); letter-spacing: -.3px; }
.search { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 8px; overflow: hidden; max-width: 680px; margin-left: auto; position: relative; }
.search-ico { position: absolute; left: 14px; color: #7a849a; width: 20px; height: 20px; }
.search input { flex: 1; border: 0; padding: 12px 12px 12px 44px; font: inherit; font-size: 16px; color: var(--text); min-width: 0; outline: none; }
.search-btn { background: var(--orange); border: 0; color: #fff; width: 56px; align-self: stretch; display: grid; place-items: center; }
.fav-link { margin-left: auto; background: none; border: 0; border-left: 1px solid rgba(255,255,255,.25); padding: 6px 0 6px 24px; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: #fff; }
.fav-link[aria-pressed="true"] svg { fill: var(--orange); stroke: var(--orange); }
.menu-toggle { display: none; color: #fff; }

.mainnav { background: #f6f8fc; color: var(--text); border-bottom: 1px solid var(--line); }
.mainnav-inner { display: flex; align-items: center; height: 44px; overflow-x: auto; scrollbar-width: none; }
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 28px; white-space: nowrap; border-left: 1px solid var(--line); }
.mainnav a:first-child { padding-left: 0; border-left: 0; }
.mainnav a:hover { color: var(--orange-2); }
.mainnav a svg { width: 20px; height: 20px; color: var(--orange); }
.mainnav a:first-child svg { color: var(--text); }

/* ===== Gaveta (celular) ===== */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); background: #fff; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--navy); color: #fff; }
.drawer-head .logo-text b { font-size: 20px; }
.drawer-head .logo-text i { font-size: 16px; }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0 24px; }
.drawer-nav a, .drawer-nav button { text-align: left; background: none; border: 0; padding: 12px 20px; text-decoration: none; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.drawer-nav a:hover, .drawer-nav button:hover { background: var(--bg); }
.drawer-nav svg { color: var(--orange); }
.drawer-label { margin: 14px 20px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.drawer-backdrop, .filters-backdrop { position: fixed; inset: 0; background: rgba(8, 18, 36, .5); z-index: 55; }

/* ===== Banner ===== */
.hero { position: relative; background: radial-gradient(120% 140% at 80% 50%, #1d3a68 0%, var(--navy) 55%, var(--navy-2) 100%); color: #fff; overflow: hidden; height: clamp(260px, 26.04vw, 420px); }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { display: none; }
.hero--empty .hero-art { display: none; }
.hero--empty .hero-placeholder { display: grid; position: absolute; top: 18px; bottom: 18px; right: 16px; width: 50%; border: 2px dashed rgba(255,255,255,.35); border-radius: 14px; place-items: center; text-align: center; color: rgba(255,255,255,.7); font-weight: 600; padding: 12px; }
.hero--empty .hero-placeholder small { font-weight: 400; font-size: 12px; opacity: .85; }
.hero-text { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.2vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero h1 span { color: var(--orange); }
.hero p { margin: 4px 0 8px; font-size: clamp(14px, 1.3vw, 18px); max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hero .btn { font-size: 18px; padding: 12px 22px; }

/* ===== Categorias ===== */
.cats { margin-top: 18px; }
.cats-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.cat-chip { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.cat-chip svg { width: 28px; height: 28px; color: var(--navy); }
.cat-chip:hover { border-color: var(--orange); }
.cat-chip[aria-pressed="true"] { border-color: var(--orange); background: #fff4ec; }
.cat-chip[aria-pressed="true"] svg { color: var(--orange); }

/* ===== Layout ===== */
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; margin-top: 14px; align-items: start; }

/* Filtros */
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 128px; max-height: calc(100vh - 140px); overflow-y: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.filters-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.filters-close, .filters-apply { display: none; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; }
.filters legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checks input { width: 17px; height: 17px; accent-color: var(--orange); margin: 0; }
.checks small { color: var(--muted); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs label { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.price-inputs label span { font-size: 13px; }
.price-inputs input { width: 100%; flex: 1 1 60px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 15px; }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-presets button { background: var(--bg); border: 1px solid transparent; border-radius: 999px; padding: 5px 10px; font-size: 13px; }
.price-presets button[aria-pressed="true"] { background: #fff4ec; border-color: var(--orange); color: var(--orange-2); font-weight: 600; }
.filters-actions { margin-top: 16px; display: flex; gap: 8px; }
.filters-actions .btn { flex: 1; }

/* Barra de ferramentas */
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 4px; }
.filter-btn { display: none; }
.sort { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--text); background: #fff; }

/* Seções de produtos */
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 12px; }
.section-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.5px; }
.section-head .tag { background: var(--orange); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.section-head .sub { color: var(--muted); font-size: 14px; }
.section-head .more { margin-left: auto; color: var(--orange-2); font-weight: 600; text-decoration: none; background: none; border: 0; display: flex; align-items: center; gap: 2px; }
.section-head .more svg { width: 16px; height: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* Card */
.card { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(19,41,75,.14); transform: translateY(-2px); }
.card-rank { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; border-radius: 6px; padding: 3px 8px; }
.card-off { position: absolute; top: 40px; left: 12px; z-index: 2; background: var(--green); color: #fff; font-weight: 700; font-size: 12px; border-radius: 6px; padding: 2px 7px; }
.card-actions { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.card-actions button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card-actions svg { width: 20px; height: 20px; }
.card-actions .fav[aria-pressed="true"] { color: #e0245e; }
.card-actions .fav[aria-pressed="true"] svg { fill: currentColor; }
.card-actions .wa { color: #1da851; }
.card-img { display: block; aspect-ratio: 1; margin: 6px 0 10px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img.broken { background: var(--bg); border-radius: 8px; }
.card-cat { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--orange-2); }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.card-rating .stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.card-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card-price { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.card-price small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card-checked { font-size: 11.5px; color: var(--muted); margin: 2px 0 2px; }
.card-current { font-size: 12.5px; color: var(--orange-2); font-weight: 600; text-decoration: none; margin-bottom: 10px; }
.card-current:hover { text-decoration: underline; }
.card .btn { margin-top: auto; width: 100%; padding: 10px 8px; white-space: nowrap; font-size: 14.5px; }

.empty { text-align: center; background: #fff; border-radius: var(--radius); padding: 40px 16px; box-shadow: var(--shadow); }
.empty p { color: var(--muted); margin: 0 0 14px; font-size: 16px; }

/* Selos */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 0; margin-top: 10px; margin-bottom: 28px; max-width: 1288px; }
.trust > div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 16px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust svg { width: 30px; height: 30px; color: var(--orange); }
.trust span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.trust b { color: var(--text); font-size: 16px; }

/* Rodapé */
.footer { background: var(--navy); color: #d9e1ef; padding-top: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.6fr; gap: 24px; align-items: start; padding-bottom: 22px; }
.footer .logo { color: #fff; }
.footer-brand p { font-size: 14px; margin: 10px 0 0; }
.footer h3 { color: #fff; margin: 0 0 6px; font-size: 16px; }
.footer nav { display: flex; flex-direction: column; gap: 4px; }
.footer nav a, .footer nav button { color: #d9e1ef; text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; text-align: left; }
.footer nav a:hover, .footer nav button:hover { color: #fff; text-decoration: underline; }
.disclosure { display: flex; gap: 10px; font-size: 14px; margin: 0; background: rgba(255,255,255,.06); padding: 12px 14px; border-radius: 10px; }
.disclosure svg { margin-top: 1px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 16px 20px; font-size: 12.5px; text-align: center; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #fff; }

/* Voltar ao topo */
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); display: grid; place-items: center; }
.to-top[hidden] { display: none; }

/* Páginas de texto (Sobre / Privacidade) */
.page { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px clamp(16px, 4vw, 44px); margin: 24px auto 32px; max-width: 820px; }
.page h1 { margin-top: 0; font-size: clamp(26px, 3vw, 34px); }
.page h2 { font-size: 20px; margin-top: 26px; }
.page p, .page li { color: #2c3752; }
.page a { color: var(--orange-2); }

/* ===== Tablet ===== */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .disclosure { grid-column: 1 / -1; }
}

/* ===== Celular ===== */
@media (max-width: 860px) {
  html { scroll-padding-top: 120px; }
  .menu-toggle { display: grid; margin-left: -8px; }
  .topbar-inner { flex-wrap: wrap; height: auto; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
  .logo img { width: 36px; height: 36px; }
  .logo-text b { font-size: 19px; }
  .logo-text i { font-size: 15px; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .search input { padding-top: 10px; padding-bottom: 10px; }
  .fav-link { border-left: 0; padding: 6px 0; font-size: 0; gap: 0; position: relative; }
  .fav-link .badge { position: absolute; top: 0; right: -8px; }
  .mainnav { display: none; }

  .hero { height: auto; aspect-ratio: 1080 / 720; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,44,.75), rgba(10,22,44,.15)); }
  .hero--empty::after { display: none; }
  .hero-text { z-index: 1; gap: 6px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .hero .btn { font-size: 16px; padding: 10px 18px; }
  .hero--empty .hero-placeholder { width: auto; left: 16px; top: auto; bottom: 10px; height: 46px; font-size: 12px; }
  .hero--empty .hero-placeholder br, .hero--empty .hero-placeholder small { display: none; }
  .hero--empty .hero-text { justify-content: flex-start; padding-top: 22px; }

  .cats { margin-top: 12px; padding-right: 0; }
  .cats-row { flex-wrap: nowrap; padding-right: 16px; scrollbar-width: none; }
  .cats-row::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 auto; flex-direction: column; gap: 4px; padding: 10px 12px; font-size: 12.5px; min-width: 86px; }
  .cat-chip svg { width: 26px; height: 26px; }

  .layout { grid-template-columns: 1fr; margin-top: 8px; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; max-height: 86vh; border-radius: 16px 16px 0 0; z-index: 60; transform: translateY(105%); transition: transform .25s ease; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .filters.open { transform: none; }
  .filters-close, .filters-apply { display: inline-flex; }
  .filters-actions { position: sticky; bottom: -18px; background: #fff; padding: 10px 0 0; }
  .toolbar { justify-content: space-between; }
  .filter-btn { display: inline-flex; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .card-rank { top: 8px; left: 8px; font-size: 12px; }
  .card-off { top: 34px; left: 8px; }
  .card-actions { top: 4px; right: 4px; }
  .card-actions button { width: 34px; height: 34px; }
  .card-title { font-size: 13.5px; }
  .card-price { font-size: 18px; }
  .card-current { font-size: 12px; }
  .card .btn { padding: 9px 8px; font-size: 13.5px; }
  .card .btn svg { display: none; }

  .trust { grid-template-columns: 1fr; padding: 4px 0; }
  .trust > div { justify-content: flex-start; padding: 12px 16px; }
  .trust > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { bottom: 16px; }
}
@media (min-width: 861px) { .to-top { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
