/* Achadinhos do Fera — estilos */
:root {
  --yellow: #ffd200;
  --yellow-dark: #f2c200;
  --black: #111111;
  --ink: #1d1d1f;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --bg: #f5f5f5;
  --white: #ffffff;
  --green: #00a650;
  --red: #e0245e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 10px rgba(0, 0, 0, .04);
  --container: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.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: var(--black); color: var(--white); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 22px; height: 22px; }
.ico--xl { width: 30px; height: 30px; stroke-width: 1.6; }
.ico--yellow { color: var(--yellow-dark); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--ghost { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--bg); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); }
.link { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link:hover { text-decoration: underline; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yellow); color: var(--black); font-size: 11px; font-weight: 800; }

/* Barra superior */
.topbar { background: var(--yellow); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-around; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar__inner span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Cabeçalho */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.header__burger { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; line-height: 1.05; letter-spacing: -.3px; flex: none; }
.logo--sm { font-size: 16px; }
.catmenu { position: relative; flex: none; }
.catmenu__btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 10px 6px; font-weight: 500; }
.catmenu__list { position: absolute; top: 100%; left: 0; min-width: 280px; margin: 6px 0 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .12); z-index: 40; }
.catmenu__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; text-align: left; }
.catmenu__list button:hover { background: var(--bg); }
.search { flex: 1; display: flex; align-items: stretch; height: 44px; border: 1px solid #dcdcdc; border-radius: 8px; overflow: hidden; background: var(--white); max-width: 560px; }
.search:focus-within { border-color: var(--black); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; outline: none; background: none; }
.search__cat { border: 0; border-left: 1px solid var(--line); padding: 0 10px; background: var(--white); max-width: 150px; outline: none; }
.search__btn { width: 52px; border: 0; background: var(--yellow); display: grid; place-items: center; }
.search__btn:hover { background: var(--yellow-dark); }
.header__links { display: flex; gap: 28px; margin-left: auto; }
.header__link { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 0; text-decoration: none; font-weight: 500; white-space: nowrap; }
.header__link .badge { position: absolute; top: -4px; left: 14px; }

/* Gaveta */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: var(--white); overflow-y: auto; animation: slide-in .2s ease-out; }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: var(--yellow); }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 0 24px; }
.drawer__nav a, .drawer__nav button { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 0; background: none; text-align: left; text-decoration: none; font-size: 15px; }
.drawer__nav a:hover, .drawer__nav button:hover { background: var(--bg); }
.drawer__title { margin: 14px 18px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

/* Banner */
.hero-wrap { padding-top: 16px; }
.hero { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--black); color: var(--white); min-height: 220px; aspect-ratio: 1920 / 420; }
.hero__art, .hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art img { object-fit: cover; object-position: right center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 38%, rgba(0, 0, 0, 0) 60%); pointer-events: none; }
.hero__placeholder { display: none; }
.hero--empty .hero__art { display: none; }
.hero--empty .hero__placeholder { position: absolute; top: 14px; right: 14px; bottom: 14px; width: 48%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed rgba(255, 210, 0, .6); border-radius: 10px; color: rgba(255, 255, 255, .75); text-align: center; padding: 12px; }
.hero--empty .hero__placeholder span { font-weight: 800; color: var(--yellow); }
.hero--empty .hero__placeholder small { font-size: 12px; }
.hero__text { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px 6%; max-width: 680px; }
.hero__kicker { margin: 0; font-size: clamp(18px, 2vw, 26px); font-weight: 500; }
.hero__title { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -1px; font-weight: 800; }
.hero__title em { font-style: normal; color: var(--yellow); }
.hero__sub { margin: 0 0 18px; font-size: clamp(14px, 1.2vw, 16px); color: rgba(255, 255, 255, .9); max-width: 460px; }

/* Botões de categoria */
.cats { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin: 14px 0; }
.cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.2; min-height: 78px; transition: border-color .15s, background .15s; }
.cat .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.cat:hover { border-color: var(--yellow-dark); }
.cat[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }

/* Layout */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; padding-bottom: 24px; }
.content { min-width: 0; }

/* Filtros */
.filters { position: sticky; top: 88px; }
.filters__panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters__head h2 { font-size: 16px; margin: 0; }
.filters__close, .filters__apply { display: none; }
.field { padding: 14px 0; border-top: 1px solid var(--line); }
.field label:not(.check), .field__label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field select { width: 100%; height: 40px; border: 1px solid #dcdcdc; border-radius: 8px; padding: 0 10px; background: var(--white); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--black); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid #dcdcdc; background: var(--white); border-radius: 999px; padding: 5px 10px; font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.filters__actions { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

.range { position: relative; height: 24px; }
.range__track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: var(--line); border-radius: 2px; }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--yellow-dark); border-radius: 2px; }
.range input { position: absolute; left: 0; width: 100%; top: 2px; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--yellow-dark); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--yellow-dark); cursor: pointer; }
.range input::-moz-range-track { background: none; }
.range__values { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Barra de ferramentas */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; min-height: 20px; }
.toolbar__filter { display: none; }
.toolbar__info { margin: 0; font-size: 13px; color: var(--muted); }

/* Blocos */
.block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.block__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.block__note { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Lista "Mais vendidos" */
.toplist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.top { position: relative; display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; scroll-snap-align: start; background: var(--white); }
.top:hover { border-color: var(--yellow-dark); }
.top__n { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.top img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.top__body { min-width: 0; }
.top__cat { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.top__name { font-size: 13px; margin: 2px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top__price { font-weight: 800; font-size: 16px; }

/* Grade de cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: #dadada; }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--white); padding: 12px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__rank { position: absolute; left: 8px; top: 8px; background: var(--black); color: var(--yellow); font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; z-index: 1; }
.card__actions { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.round { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.round:hover { border-color: var(--ink); }
.round[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.round[aria-pressed="true"] .ico { fill: currentColor; }
.round--wa:hover { color: #128c4a; border-color: #128c4a; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card__name { font-size: 13.5px; line-height: 1.3; margin: 0; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; }
.rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.stars { position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 1px; color: #d9d9d9; }
.stars::before { content: "★★★★★"; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f5b301; white-space: nowrap; }
.stars span::before { content: "★★★★★"; }
.sold { font-size: 12px; color: var(--muted); }
.prev { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.prev s { color: var(--muted); }
.off { background: #e6f7ee; color: var(--green); font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.price { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.price small { font-size: 12px; font-weight: 600; margin-right: 3px; }
.checked { font-size: 11.5px; color: var(--muted); }
.current { font-size: 12px; font-weight: 600; color: #3483fa; text-decoration: none; }
.current:hover { text-decoration: underline; }
.card__cta { margin-top: auto; padding-top: 8px; }
.card__cta .btn { width: 100%; padding: 10px 8px; font-size: 13.5px; }

/* Selos */
.seals { background: #fafafa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seals__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.seal { display: flex; align-items: center; gap: 12px; }
.seal b { display: block; font-size: 14px; }
.seal span { display: block; font-size: 12px; color: var(--muted); }

/* Rodapé */
.footer { background: var(--white); padding: 28px 0 90px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 2fr; gap: 28px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer h3 { font-size: 14px; margin: 6px 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 7px; }
.footer li a, .footer li button { font-size: 13px; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; }
.footer li a:hover, .footer li button:hover { text-decoration: underline; }
.footer__cats { columns: 2; column-gap: 24px; }
.footer__legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer__legal strong { color: var(--ink); font-weight: 600; }
.footer__legal p { margin: 0 0 8px; }

/* Voltar ao topo */
.totop { position: fixed; right: 16px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--black); color: var(--white); display: none; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 25; }

/* Páginas simples (Sobre / Privacidade) */
.page { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 20px auto 40px; max-width: 820px; }
.page h1 { margin-top: 0; font-size: 28px; }
.page h2 { font-size: 18px; margin-top: 26px; }
.page p, .page li { color: #333; }
.header--simple .header__inner { justify-content: space-between; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .catmenu { display: none; }
  .header__links { gap: 18px; }
  .cats { grid-template-columns: repeat(5, 1fr); }
  .seals__inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }
  .topbar__inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .topbar__inner span:nth-child(n+2) { display: none; }
  .header__inner { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-top: 8px; padding-bottom: 10px; }
  .header__burger { display: inline-grid; margin-left: -8px; }
  .logo { font-size: 17px; }
  .logo img { width: 36px; height: 36px; }
  .header__links { gap: 4px; }
  .header__link span { display: none; }
  .header__link { padding: 8px; }
  .header__link .badge { left: 22px; top: 0; }
  .search { order: 5; flex-basis: 100%; max-width: none; height: 42px; }
  .search__cat { max-width: 110px; font-size: 13px; }

  .hero { aspect-ratio: auto; min-height: 0; }
  .hero__text { padding: 26px 22px; max-width: none; }

  /* categorias em rolagem horizontal */
  .cats { display: flex; overflow-x: auto; gap: 8px; margin: 12px -20px; padding: 0 20px 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 92px; scroll-snap-align: start; min-height: 74px; }

  .layout { grid-template-columns: 1fr; }
  .toolbar__filter { display: inline-flex; }

  /* filtros em painel */
  .filters { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .45); display: none; }
  .filters.is-open { display: block; }
  .filters__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); animation: slide-up .2s ease-out; }
  @keyframes slide-up { from { transform: translateY(100%); } }
  .filters__close, .filters__apply { display: inline-flex; }
  .filters__actions { flex-direction: row-reverse; position: sticky; bottom: -18px; background: var(--white); padding-bottom: 4px; }
  .filters__actions .btn { flex: 1; }

  .block { padding: 12px; border-radius: 10px; }
  .block__head { flex-wrap: wrap; }
  .block__head h2 { font-size: 16px; }
  .toplist { grid-auto-columns: 82%; }

  /* cards em 2 colunas */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card__media { padding: 8px; }
  .card__body { padding: 8px 10px 10px; }
  .card__name { font-size: 13px; }
  .price { font-size: 18px; }
  .round { width: 32px; height: 32px; }

  .seals__inner { display: flex; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .seal { flex: 0 0 auto; }
  .footer__inner { grid-template-columns: 1fr; gap: 18px; }
  .totop { display: grid; }
  .totop[hidden] { display: none !important; }
}

@media (max-width: 700px) {
  .hero { aspect-ratio: 1 / 1; display: flex; align-items: flex-start; }
  .hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 70%); }
  .hero__art img { object-position: center bottom; }
  .hero__text { justify-content: flex-start; height: auto; }
  .hero--empty .hero__placeholder { top: auto; left: 14px; right: 14px; bottom: 14px; width: auto; height: 40%; }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .cats { margin: 12px -12px; padding: 0 12px 4px; }
  .card__cta .btn { font-size: 12.5px; }
}

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