/* ===== A Bugiganga — estilos ===== */
:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --surface: #17171b;
  --surface-2: #1f1f24;
  --line: #2a2a31;
  --text: #f4f4f6;
  --muted: #a6a6b0;
  --orange: #ff8a00;
  --orange-2: #ff6a00;
  --orange-soft: rgba(255, 138, 0, .14);
  --card: #ffffff;
  --card-text: #17171b;
  --card-muted: #5d5d66;
  --green: #1fa855;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(255, 138, 0, .35), 0 0 22px rgba(255, 106, 0, .25);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[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(--orange); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

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

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #ffa21a, var(--orange-2));
  color: #160a00; font-weight: 800; border: 0; border-radius: 10px;
  padding: 10px 16px; text-decoration: none; text-align: center; line-height: 1.2; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--grande { padding: 12px 22px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; border-radius: 999px; box-shadow: 0 0 24px rgba(255, 106, 0, .45); }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: 700; }
.btn--ghost:hover { border-color: var(--orange); filter: none; }
.btn--bloco { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; color: var(--orange); font-weight: 700; text-decoration: none; padding: 4px 0; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange-2); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }

/* ===== Cabeçalho ===== */
.topo { position: sticky; top: 0; z-index: 40; background: #0a0a0a; border-bottom: 1px solid #1d1d22; }
.topo__barra { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
.topo__menu { display: none; }
.logo img { height: 56px; width: auto; mix-blend-mode: lighten; } /* some com o fundo escuro da arte do logo */
.busca { flex: 1; display: flex; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.busca:focus-within { box-shadow: 0 0 0 2px var(--orange), 0 0 18px rgba(255, 106, 0, .35); }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 20px; background: transparent; color: #111; font-size: 15px; }
.busca input::placeholder { color: #6b6b74; }
.busca button { border: 0; background: var(--orange); color: #fff; width: 60px; display: grid; place-items: center; }
.busca button svg { width: 22px; height: 22px; stroke-width: 2.4; }
.topo__fav { position: relative; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font-size: 13px; line-height: 1.15; text-align: left; padding: 6px 4px; }
.topo__fav svg { width: 28px; height: 28px; }
.topo__fav[aria-pressed="true"] svg { fill: var(--orange-2); stroke: var(--orange-2); }
.topo__fav .badge { position: absolute; top: -2px; left: 18px; }

.nav { background: linear-gradient(180deg, #121215, #0d0d10); border-top: 1px solid #1d1d22; }
.nav__inner { display: flex; align-items: center; gap: 6px; height: 50px; }
.nav__todas { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #160a00; border: 0; border-radius: 8px; height: 38px; padding: 0 16px; font-weight: 800; white-space: nowrap; }
.nav__link, .nav__cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; white-space: nowrap; color: #e8e8ec; }
.nav__link:hover, .nav__cats a:hover { background: var(--surface-2); color: var(--orange); }
.nav__cats { display: flex; gap: 2px; overflow: hidden; min-width: 0; }
.nav__cats a svg, .nav__link svg { color: var(--orange); }

/* ===== Gaveta (menu celular) ===== */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 60; }
.gaveta {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); z-index: 70;
  background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto;
  transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
}
.gaveta.aberta { transform: none; visibility: visible; }
.gaveta__topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.gaveta__lista { list-style: none; margin: 0; padding: 8px; }
.gaveta__lista--extra { border-top: 1px solid var(--line); }
.gaveta__lista a, .gaveta__lista button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; text-decoration: none; background: none; border: 0; text-align: left; font-weight: 600; }
.gaveta__lista a:hover, .gaveta__lista button:hover { background: var(--surface-2); }
.gaveta__lista svg { color: var(--orange); width: 22px; height: 22px; }

/* ===== Banner ===== */
.banner { position: relative; overflow: hidden; min-height: 300px; aspect-ratio: 1920 / 520; max-height: 460px; width: 100%;
  background:
    radial-gradient(60% 90% at 78% 40%, rgba(255, 120, 0, .55), transparent 70%),
    radial-gradient(40% 60% at 95% 100%, rgba(255, 80, 0, .35), transparent 70%),
    linear-gradient(120deg, #120800 0%, #1a0d02 45%, #2b1200 100%);
  border-bottom: 1px solid rgba(255, 138, 0, .35);
}
.banner__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .25) 45%, transparent 70%); pointer-events: none; }
.banner__marcador { display: none; }
.banner--sem-img .banner__img { display: none; }
.banner--mostrar-marcador .banner__marcador {
  display: grid; place-items: center; text-align: center; position: absolute; top: 16px; right: 16px; bottom: 16px; width: 48%;
  border: 2px dashed rgba(255, 170, 80, .7); border-radius: 14px; color: #ffc27a; font-weight: 700; padding: 16px; z-index: 1;
}
.banner__marcador small { font-weight: 500; opacity: .85; }
.banner__texto { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 28px; padding-bottom: 28px; }
.banner__kicker { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1; letter-spacing: .01em; }
.banner__titulo { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .95; font-size: clamp(3rem, 7.5vw, 6.2rem);
  background: linear-gradient(180deg, #ffd06b 0%, #ff9a1a 45%, #ff5e00 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); }
.banner__titulo span { display: block; font-size: .42em; color: #fff; -webkit-text-fill-color: #fff; margin-top: .15em; }
.banner__sub { margin: 12px 0 18px; font-weight: 700; font-style: italic; font-size: clamp(.95rem, 1.6vw, 1.2rem); }

/* ===== Categorias (chips com ícones) ===== */
.cats { margin-top: 18px; }
.cats__trilho { display: grid; grid-template-columns: repeat(var(--n, 11), minmax(0, 1fr)); gap: 10px; }
.chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 92px; padding: 12px 6px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #1a1a1f, #121215); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.chip svg { width: 30px; height: 30px; color: var(--orange); stroke-width: 1.7; }
.chip:hover { border-color: rgba(255, 138, 0, .6); transform: translateY(-2px); }
.chip[aria-pressed="true"] { border-color: var(--orange); box-shadow: var(--glow); }
.chip--destaque { background: linear-gradient(180deg, #ff8a1a, #ff6a00); border-color: var(--orange); color: #160a00; font-weight: 800; box-shadow: var(--glow); }
.chip--destaque svg { color: #160a00; }

/* ===== Categoria em destaque ===== */
.secao--destaque { position: relative; border: 2px solid var(--orange); box-shadow: var(--glow); background: radial-gradient(120% 80% at 0% 0%, rgba(255, 122, 0, .16), transparent 60%), var(--bg-2); padding-top: 22px; margin-top: 6px; }
.selo-destaque { position: absolute; top: -13px; left: 16px; background: var(--orange); color: #160a00; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.nav__cats a.nav__destaque { background: rgba(255, 122, 0, .15); color: var(--orange); font-weight: 800; }
.gaveta__lista button.gaveta__destaque { background: rgba(255, 122, 0, .14); color: var(--orange); font-weight: 800; }
.tag-destaque { margin-left: auto; background: var(--orange); color: #160a00; font-size: 10.5px; font-weight: 900; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }

/* ===== Layout principal ===== */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; margin-top: 20px; margin-bottom: 40px; align-items: start; }

.filtros { position: sticky; top: 140px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filtros__topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filtros__topo h2 { margin: 0; font-size: 1.15rem; color: var(--orange); }
.filtros__fechar, .filtros__aplicar { display: none; }
.filtro { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 14px 0; }
.filtro__titulo { display: block; font-weight: 800; margin-bottom: 8px; padding: 0; }
legend.filtro__titulo { float: left; width: 100%; }
.filtro .check { clear: both; }
.filtro select { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.mini-heart { color: var(--orange); fill: var(--orange); width: 16px; height: 16px; }
.filtros__nota { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.filtros .btn--ghost { margin-top: 4px; }

.barra-filtro { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.barra-filtro .badge { margin-left: 2px; }
.atualizado { color: var(--muted); font-size: 13px; }

/* ===== Seções ===== */
.secao { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.secao__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.secao__titulo { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 900; font-style: italic; }
.secao__titulo svg { color: var(--orange); width: 28px; height: 28px; }
.secao__sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.secao__sub a { color: var(--orange); }

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

/* ===== Card de produto ===== */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); color: var(--card-text); border-radius: var(--radius); overflow: hidden; border: 1px solid #eee; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--orange), 0 10px 26px rgba(255, 106, 0, .25); }
.card__rank { position: absolute; top: 8px; left: 8px; z-index: 2; min-width: 32px; height: 32px; display: grid; place-items: center; background: var(--orange-2); color: #fff; font-weight: 900; font-size: 14px; padding: 0 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.card__fav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #3a3a42; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.card__fav svg { width: 21px; height: 21px; }
.card__fav[aria-pressed="true"] { color: #ff3b30; }
.card__fav[aria-pressed="true"] svg { fill: #ff3b30; }
.card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14px; object-fit: contain; }
.card__corpo { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; border-top: 1px solid #f0f0f2; }
.card__cat { font-size: 11px; font-weight: 700; color: var(--orange-2); text-transform: uppercase; letter-spacing: .03em; }
.card__nome { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card__nome a { text-decoration: none; }
.card__nome a:hover { text-decoration: underline; }
.card__preco { margin-top: 4px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }
.card__pix { font-size: 12px; color: var(--green); font-weight: 700; }
.card__pix span { color: var(--card-muted); font-weight: 500; }
.card__data { font-size: 11.5px; color: var(--card-muted); }
.card__atual { font-size: 12px; color: #2463d6; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.card__atual:hover { text-decoration: underline; }
.card__atual svg { width: 13px; height: 13px; }
.card__acoes { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px; }
.card__acoes .btn { font-size: 13.5px; padding: 10px 8px; white-space: nowrap; }
.card__whats { height: 34px; border-radius: 10px; border: 1px solid #d9f2e2; background: #e9faef; color: #128c4a; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.card__whats:hover { background: #d4f5df; }
.card__whats svg { width: 18px; height: 18px; }

.vazio { text-align: center; color: var(--muted); padding: 28px 12px; }

/* ===== Rodapé ===== */
.rodape { border-top: 1px solid rgba(255, 138, 0, .35); background: #0a0a0a; }
.rodape__selos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid #1d1d22; }
.selo { display: flex; align-items: center; gap: 12px; }
.selo svg { width: 38px; height: 38px; color: var(--orange); stroke-width: 1.6; }
.selo strong { display: block; font-size: 14px; }
.selo span { display: block; color: var(--muted); font-size: 13px; }
.rodape__meio { display: grid; grid-template-columns: 220px 220px 1fr; gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 24px; }
.logo--rodape img { height: 50px; }
.rodape__links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rodape__links strong { color: var(--orange); margin-bottom: 2px; }
.rodape__links a { color: #cfcfd6; text-decoration: none; }
.rodape__links a:hover { color: var(--orange); }
.rodape__aviso { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; background: var(--bg-2); color: #dcdce2; font-size: 14px; }
.rodape__base { border-top: 1px solid #1d1d22; padding: 14px 0; color: var(--muted); font-size: 12.5px; text-align: center; }

/* Voltar ao topo + toast */
.topo-btn { position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: #160a00; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.topo-btn svg { width: 24px; height: 24px; stroke-width: 2.6; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #fff; color: #111; font-weight: 700; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: calc(100% - 32px); text-align: center; }
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ===== Páginas de texto (Sobre / Privacidade) ===== */
.pagina { max-width: 820px; margin: 28px auto 48px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pagina h1 { margin-top: 0; color: var(--orange); font-style: italic; }
.pagina h2 { font-size: 1.15rem; margin-top: 26px; }
.pagina p, .pagina li { color: #dcdce2; }
.pagina a { color: var(--orange); }
.topo--simples .topo__barra { justify-content: space-between; }

/* ===== Responsivo ===== */
@media (max-width: 1240px) {
  .cats__trilho { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
  .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topo__fav-txt { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  html { scroll-padding-top: 120px; }
  .topo__barra { flex-wrap: wrap; gap: 10px 12px; }
  .topo__menu { display: inline-grid; }
  .logo img { height: 42px; }
  .topo__fav { margin-left: auto; }
  .busca { order: 3; flex-basis: 100%; max-width: none; }
  .busca input { padding: 10px 16px; }
  .nav { display: none; }

  .cats { margin-top: 14px; padding-right: 0; }
  .cats__trilho { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; padding-right: 16px; scrollbar-width: none; }
  .cats__trilho::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 104px; min-height: 86px; scroll-snap-align: start; }

  .layout { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .barra-filtro { display: flex; }
  .filtros {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 85vh; overflow-y: auto;
    border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
  }
  .filtros.aberto { transform: none; visibility: visible; }
  .filtros__fechar { display: inline-grid; }
  .filtros__aplicar { display: flex; margin-top: 10px; }

  .rodape__selos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodape__meio { grid-template-columns: 1fr 1fr; }
  .rodape__aviso { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .banner { aspect-ratio: 1 / 1; max-height: 440px; min-height: 0; }
  .banner__img img { object-position: center bottom; }
  .banner::after { background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .1) 100%); }
  .banner__texto { justify-content: flex-start; padding-top: 26px; }
  .banner--mostrar-marcador .banner__marcador { top: auto; left: 16px; right: 16px; width: auto; height: 38%; }
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .secao { padding: 12px; border-radius: 10px; }
  .secao__cab { flex-wrap: wrap; }
  .card__img img { padding: 8px; }
  .card__corpo { padding: 8px 10px 10px; }
  .card__nome { font-size: 13px; }
  .card__preco { font-size: 1.15rem; }
  .card__acoes .btn { font-size: 11.5px; padding: 9px 4px; }
  .card__rank { top: 6px; left: 6px; min-width: 28px; height: 28px; font-size: 12.5px; }
  .card__cat { font-size: 10.5px; }
  .card__fav { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
  .rodape__selos { grid-template-columns: 1fr; }
  .rodape__meio { grid-template-columns: 1fr; }
  .card__atual { font-size: 11px; }
}

@media (max-width: 359px) {
  .card__acoes .btn { white-space: normal; }
}

@media (min-width: 901px) { .topo-btn { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
