/* ==========================================================================
   Achado Bom — folha de estilo única
   Paleta: amarelo #FFD600 / preto #111 / branco #fff
   ========================================================================== */

:root {
  --amarelo: #FFD600;
  --amarelo-escuro: #F2C200;
  --tinta: #111111;
  --tinta-2: #3a3a3a;
  --cinza: #6b6b6b;
  --linha: #e6e6e6;
  --fundo: #ffffff;
  --fundo-2: #fafafa;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --topo-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--tinta);
  background: var(--fundo);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* acessibilidade --------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--tinta); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--amarelo-escuro);
  outline-offset: 2px;
}

/* ícones ----------------------------------------------------------------- */
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent; border: 0; border-radius: 10px;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(0,0,0,.06); }

/* topo ------------------------------------------------------------------- */
.topo {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--linha);
}

.topo__in {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--topo-h);
}

.menu-btn { display: none; }

.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.logo__bag { width: 34px; height: 38px; stroke: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo__txt b { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.logo__txt em { font-style: normal; color: #b58900; }
.logo__txt small { font-size: 10.5px; color: var(--cinza); font-weight: 500; margin-top: 2px; }

.busca {
  flex: 1; display: flex; align-items: center;
  background: var(--fundo-2);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 0 4px 0 14px;
  max-width: 560px;
}
.busca__lupa { width: 18px; height: 18px; color: var(--cinza); flex-shrink: 0; }
.busca input {
  flex: 1; border: 0; background: transparent; outline: none;
  padding: 11px 10px; min-width: 0; font-size: 14.5px;
}
.busca__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; border-radius: 999px;
  background: var(--amarelo); cursor: pointer; color: var(--tinta);
}
.busca__btn:hover { background: var(--amarelo-escuro); }
.busca__btn svg { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 12px; border-radius: 10px; color: var(--tinta-2);
}
.nav a:hover { background: var(--fundo-2); color: var(--tinta); }
.nav a.is-ativo { background: var(--amarelo); color: var(--tinta); font-weight: 600; }

.fav-count {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--tinta); color: var(--amarelo);
  border-radius: 999px; font-size: 10.5px; font-weight: 700;
  vertical-align: middle; margin-left: 2px;
}

/* gaveta ----------------------------------------------------------------- */
.veu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(1px);
}

.gaveta {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 95;
  width: min(86vw, 320px);
  background: #fff;
  box-shadow: 0 0 40px rgba(0,0,0,.25);
  overflow-y: auto;
  animation: entraEsq .2s ease-out;
}
@keyframes entraEsq { from { transform: translateX(-100%); } }

.gaveta__topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--linha);
}
.gaveta__topo strong { font-size: 15px; }

.gaveta__nav { padding: 10px 10px 24px; display: flex; flex-direction: column; }
.gaveta__nav a, .gaveta__nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 10px;
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  background: transparent; border: 0; text-align: left; cursor: pointer;
}
.gaveta__nav a:hover, .gaveta__nav button:hover { background: var(--fundo-2); }
.gaveta__nav svg { width: 18px; height: 18px; color: var(--cinza); }
.gaveta__sub {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--cinza); font-weight: 700;
  padding: 16px 12px 6px;
}

/* banner ----------------------------------------------------------------- */
.banner {
  position: relative; overflow: hidden;
  margin: 12px 0 16px;
  border-radius: 18px;
  background:
    radial-gradient(120% 160% at 85% 10%, #fff3a8 0%, transparent 55%),
    linear-gradient(115deg, var(--amarelo) 0%, #ffdf3d 55%, #ffe975 100%);
  padding: 18px 32px;
  min-height: 110px;
  display: flex; align-items: center;
}
.banner::after {
  content: ""; position: absolute; right: -60px; bottom: -90px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.banner__txt { position: relative; z-index: 1; max-width: 760px; }
.banner h1 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15; font-weight: 800; letter-spacing: -.5px;
}
.banner p { margin: 6px 0 12px; font-size: clamp(13px, 1.1vw, 14.5px); color: #3a3200; max-width: 72ch; }
.banner .btn--grande { padding: 10px 20px; font-size: 14px; }

/* botões ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 0;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .06s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--amarelo { background: var(--amarelo); color: var(--tinta); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.btn--amarelo:hover { background: var(--amarelo-escuro); }
.btn--shopee { background: #EE4D2D; color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.btn--shopee:hover { background: #d74324; }
.btn--grande { padding: 14px 26px; font-size: 15.5px; }
.btn--linha { background: #fff; border: 1px solid var(--linha); color: var(--tinta-2); }
.btn--linha:hover { border-color: #cfcfcf; background: var(--fundo-2); }

.link-amarelo {
  background: none; border: 0; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: #8a6d00;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 4px; white-space: nowrap;
}
.link-amarelo:hover { color: var(--tinta); }

/* categorias ------------------------------------------------------------- */
.cats {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--linha); background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--tinta-2);
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: border-color .15s;
}
.cat svg { width: 19px; height: 19px; color: var(--cinza); }
.cat:hover { border-color: #c9c9c9; }
.cat[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.cat[aria-pressed="true"] svg { color: var(--amarelo); }
.cat--destaque { background: var(--amarelo); border-color: var(--amarelo); color: var(--tinta); }
.cat--destaque svg { color: var(--tinta); }
.cat--todas { border-style: dashed; }

/* layout ----------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 60px;
}

/* filtros ---------------------------------------------------------------- */
.filtros {
  position: sticky; top: calc(var(--topo-h) + 14px);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 16px;
  background: #fff;
}
.filtros__topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filtros__topo h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
}
.filtros__topo h2 svg { width: 18px; height: 18px; }
.filtros__fechar { display: none; }

.filtro { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.filtro legend {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--cinza);
  padding: 0; margin-bottom: 8px;
}

.check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; padding: 5px 0; cursor: pointer; color: var(--tinta-2);
}
.check input { width: 16px; height: 16px; accent-color: #111; flex-shrink: 0; cursor: pointer; }
.check small { color: var(--cinza); font-size: 11.5px; margin-left: auto; }

.faixa { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.faixa input {
  width: 100%; min-width: 0;
  padding: 9px 10px; border-radius: 9px;
  border: 1px solid var(--linha); background: var(--fundo-2);
  font-size: 13.5px;
}
.faixa input:focus { outline: 2px solid var(--amarelo-escuro); outline-offset: 0; background: #fff; }

.filtros__acoes { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }

/* vitrine ---------------------------------------------------------------- */
.vitrine { min-width: 0; }

.barra {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 18px; flex-wrap: wrap;
}
.btn-filtrar { display: none; }

.badge {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--tinta); color: var(--amarelo);
  border-radius: 999px; font-size: 10.5px; font-weight: 700;
}

.atualizado { font-size: 12.5px; color: var(--cinza); }
.atualizado a { color: inherit; }

.ordem {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; font-size: 12.5px; color: var(--cinza);
}
.ordem select {
  padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--linha); background: #fff;
  font-size: 13px; font-weight: 500; cursor: pointer;
}

/* seções ----------------------------------------------------------------- */
.secao { margin-bottom: 40px; }
.secao__cab {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.secao__cab h2 {
  display: flex; align-items: center; gap: 9px;
  font-size: clamp(17px, 2vw, 22px); font-weight: 800; letter-spacing: -.4px;
}
.secao__cab h2 svg { width: 22px; height: 22px; color: #b58900; }
.secao__cab p { font-size: 12.5px; color: var(--cinza); margin-top: 3px; }
.secao__cab p a { color: inherit; }

.secao--destaque .secao__cab h2 svg { color: var(--tinta); }

.carregando, .vazio {
  padding: 40px 20px; text-align: center; color: var(--cinza); font-size: 14px;
}
.vazio .btn { margin-top: 14px; }

/* grade e card ----------------------------------------------------------- */
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--sombra); transform: translateY(-2px); border-color: #dcdcdc; }

.card__rank {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px; font-weight: 600; color: var(--cinza);
  backdrop-filter: blur(4px);
}
.card__rank b { color: var(--tinta); }
.card__rank--top {
  background: var(--amarelo); border-color: var(--amarelo); color: #5c4a00;
}
.card__rank--top b { color: var(--tinta); }

.card__fav, .card__zap {
  position: absolute; top: 8px; z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
  cursor: pointer; color: var(--cinza);
  text-decoration: none;
  transition: color .15s, transform .1s;
}
.card__fav { right: 8px; }
.card__zap { right: 48px; color: #25d366; }
.card__fav:hover { transform: scale(1.08); color: #e0245e; }
.card__zap:hover { transform: scale(1.08); }
.card__fav svg, .card__zap svg { width: 17px; height: 17px; }
.card__fav[aria-pressed="true"] { color: #e0245e; }
.card__fav[aria-pressed="true"] svg { fill: currentColor; }

.card__foto {
  display: block; background: var(--fundo-2);
  aspect-ratio: 359 / 400;
  overflow: hidden;
}
.card__foto img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 12px;
  transition: transform .25s;
}
.card:hover .card__foto img { transform: scale(1.04); }

.card__corpo {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 13px 14px;
  border-top: 1px solid var(--linha);
  flex: 1;
}

.card__nome {
  font-size: 13px; font-weight: 500; line-height: 1.35;
  color: var(--tinta-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.card__nome a { text-decoration: none; }
.card__nome a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 2px; }

.card__preco {
  font-size: 21px; font-weight: 800; letter-spacing: -.6px;
  margin-top: 2px;
}
.card__preco small { font-size: 12px; font-weight: 600; letter-spacing: 0; }

.card__data { font-size: 10.5px; color: var(--cinza); }

.card__ver {
  margin-top: auto; padding: 10px 12px; font-size: 12.5px;
  width: 100%;
}
.card__ver svg { width: 15px; height: 15px; }
.card__ver-curto { display: none; }

/* rodapé ----------------------------------------------------------------- */
.rodape {
  border-top: 1px solid var(--linha);
  background: var(--tinta); color: #e8e8e8;
  padding: 40px 0 30px;
}
.rodape a { color: #e8e8e8; }

.rodape__selos {
  display: flex; align-items: flex-start; gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.logo--claro .logo__txt b { color: #fff; }
.logo--claro .logo__txt small { color: #9a9a9a; }

.selos-rodape {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px; flex: 1; min-width: 280px;
  list-style: none; margin: 0; padding: 0;
}
.selos-rodape li { display: flex; gap: 10px; font-size: 11.5px; color: #9a9a9a; }
.selos-rodape svg { width: 20px; height: 20px; color: var(--amarelo); flex-shrink: 0; margin-top: 2px; }
.selos-rodape b { display: block; color: #fff; font-size: 12.5px; margin-bottom: 2px; }

.rodape__base { padding-top: 22px; }
.aviso {
  font-size: 11.5px; color: #8f8f8f; line-height: 1.6;
  max-width: 90ch; margin-bottom: 10px;
}
.rodape__links { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0 10px; }
.rodape__links a { font-size: 12.5px; text-decoration: none; }
.rodape__links a:hover { text-decoration: underline; }
.copy { font-size: 11.5px; color: #9a9a9a; }

/* utilidades ------------------------------------------------------------- */
.topo-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px;
  background: var(--tinta); color: var(--amarelo);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  cursor: pointer;
}
.topo-btn:hover { background: #000; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 120;
  background: var(--tinta); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  animation: sobe .2s ease-out;
}
@keyframes sobe { from { opacity: 0; transform: translate(-50%, 10px); } }

[hidden] { display: none !important; }

/* ============================ responsivo ================================ */
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .busca { max-width: none; }

  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .btn-filtrar { display: inline-flex; }

  .filtros {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95;
    max-height: 86vh; overflow-y: auto;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 24px;
    transform: translateY(105%);
    transition: transform .22s ease-out;
    box-shadow: 0 -10px 40px rgba(0,0,0,.2);
  }
  .filtros.is-aberto { transform: translateY(0); }
  .filtros__fechar { display: inline-flex; }

  .ordem { margin-left: 0; }
  .barra { gap: 10px 12px; }
}

@media (max-width: 640px) {
  :root { --topo-h: 62px; }

  .container { padding: 0 12px; }
  .logo__txt small { display: none; }
  .logo__txt b { font-size: 16.5px; }
  .logo__bag { width: 28px; height: 32px; }

  .banner { padding: 16px 18px; min-height: 0; border-radius: 14px; margin: 10px 0 14px; }
  .banner p { font-size: 13.5px; }

  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .card__nome { font-size: 12px; min-height: 2.6em; }
  .card__preco { font-size: 17px; }
  .card__ver-longo { display: none; }
  .card__ver-curto { display: inline; }
  .card__fav, .card__zap { width: 30px; height: 30px; }
  .card__zap { right: 42px; }
  .card__fav svg, .card__zap svg { width: 15px; height: 15px; }
  .card__rank { font-size: 9.5px; padding: 2px 7px; }
  .card__rank-rotulo { display: none; }
  .card__rank b::before { content: '#'; }

  .rodape__selos { gap: 22px; }
  .toast { left: 12px; right: 12px; transform: none; text-align: center; }
  @keyframes sobe { from { opacity: 0; transform: translateY(10px); } }
}

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