/* ==========================================================
   Só Promos – estilos
   Cores principais ficam aqui em cima, fáceis de trocar.
   ========================================================== */
:root {
  --azul: #0b1a33;
  --azul-2: #12264a;
  --azul-3: #1b3566;
  --amarelo: #ffc400;
  --amarelo-2: #ffab00;
  --amarelo-claro: #fff4cc;
  --texto: #1b2232;
  --texto-2: #5b6475;
  --linha: #e4e7ee;
  --fundo: #f3f5f9;
  --branco: #ffffff;
  --verde: #1fa855;
  --raio: 12px;
  --sombra: 0 2px 10px rgba(11, 26, 51, .07);
  --sombra-forte: 0 10px 30px rgba(11, 26, 51, .18);
  --fonte: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--texto);
  background: var(--fundo);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.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: var(--amarelo); padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amarelo-2); outline-offset: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700;
  text-decoration: none; line-height: 1.1; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--amarelo { background: linear-gradient(180deg, var(--amarelo), var(--amarelo-2)); color: #1a1300; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn--amarelo:hover { background: linear-gradient(180deg, #ffd23a, var(--amarelo)); }
.btn--escuro { background: var(--azul); color: #fff; }
.btn--linha { background: #fff; border: 1.5px solid var(--linha); color: var(--texto); }
.btn--linha:hover { border-color: var(--texto-2); }
.btn--grande { padding: 14px 26px; font-size: 18px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.icone-btn { background: none; border: 0; padding: 8px; border-radius: 8px; display: inline-flex; color: inherit; }
.contador {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--amarelo); color: #1a1300; font-size: 11px; font-weight: 800;
}
.contador--claro { background: var(--amarelo); }

/* ---------- Cabeçalho ---------- */
.topo { background: var(--azul); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.topo__linha { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.menu-btn { display: none; color: #fff; margin-left: -8px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.logo__moeda { width: 52px; height: 52px; filter: drop-shadow(0 2px 6px rgba(255,196,0,.35)); }
.logo__texto { display: flex; flex-direction: column; line-height: 1; }
.logo__texto strong { font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: -.5px; }
.logo__texto em { color: var(--amarelo); font-style: italic; }
.logo__texto small { font-size: 11.5px; font-weight: 600; font-style: italic; margin-top: 4px; opacity: .95; }

.busca { flex: 1; display: flex; max-width: 680px; background: #fff; border-radius: 10px; overflow: hidden; }
.busca input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; color: var(--texto); background: transparent; outline: none; }
.busca input::-webkit-search-cancel-button { cursor: pointer; }
.busca button { border: 0; background: var(--amarelo); color: var(--azul); padding: 0 18px; display: grid; place-items: center; }
.busca button svg { width: 24px; height: 24px; stroke-width: 2.6; }

.atalhos { display: flex; gap: 6px; margin-left: auto; }
.atalho {
  position: relative; display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff;
  background: none; border: 0; font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: left;
  padding: 6px 10px; border-radius: 10px;
}
.atalho:hover, .atalho[aria-pressed="true"] { background: rgba(255,255,255,.08); }
.atalho svg { width: 28px; height: 28px; color: var(--amarelo); }
.atalho[aria-pressed="true"] svg { fill: var(--amarelo); }
.atalho .contador { position: absolute; top: 0; left: 28px; }

.menu-cat { background: var(--azul-2); border-top: 1px solid rgba(255,255,255,.08); }
.menu-cat__linha { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.menu-cat__todas { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font-weight: 700; padding: 10px 14px 10px 0; margin-right: 10px; border-right: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.menu-cat__todas svg { color: var(--amarelo); }
.menu-cat a, .menu-cat__links button {
  background: none; border: 0; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 10px 12px; white-space: nowrap; border-radius: 6px;
}
.menu-cat a:hover, .menu-cat__links button:hover { color: var(--amarelo); }
.menu-cat__links { display: flex; gap: 2px; overflow: hidden; }

/* ---------- Gaveta (celular) ---------- */
.veu { position: fixed; inset: 0; background: rgba(5, 12, 26, .55); z-index: 60; }
.gaveta {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: #fff; z-index: 70;
  transform: translateX(-102%); transition: transform .25s ease; display: flex; flex-direction: column;
  box-shadow: var(--sombra-forte);
}
.gaveta.aberta { transform: none; }
.gaveta__topo { display: flex; align-items: center; justify-content: space-between; background: var(--azul); color: #fff; padding: 12px 12px 12px 18px; }
.gaveta__nav { overflow-y: auto; padding: 8px 0 24px; }
.gaveta__nav a, .gaveta__nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0;
  padding: 12px 18px; text-decoration: none; font-weight: 500; color: var(--texto);
}
.gaveta__nav a:hover, .gaveta__nav button:hover { background: var(--fundo); }
.gaveta__nav svg { color: var(--azul-3); }
.gaveta__titulo { margin: 14px 18px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--texto-2); }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 75% 30%, #3b2a00 0%, #120c00 45%, #050505 100%); color: #fff; }
.banner__arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__marcador { display: none; }
.banner.sem-imagem .banner__arte { display: none; }
.banner.sem-imagem .banner__marcador {
  display: grid; place-items: center; position: absolute; top: 18px; bottom: 18px; right: 18px; width: 50%;
  border: 2px dashed rgba(255,196,0,.6); border-radius: 14px; color: var(--amarelo); text-align: center; font-weight: 700;
  background: repeating-linear-gradient(45deg, rgba(255,196,0,.04) 0 14px, transparent 14px 28px);
}
.banner__marcador small { font-weight: 500; color: #f5e6b3; font-size: 12px; line-height: 1.6; }
.banner__texto { position: relative; min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 36px; padding-bottom: 36px; }
.banner h1 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; font-weight: 800; font-style: italic; max-width: 560px; text-shadow: 0 3px 14px rgba(0,0,0,.5); }
.banner h1 span { color: var(--amarelo); }
.banner p { margin: 10px 0 22px; font-size: clamp(16px, 1.7vw, 22px); font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.banner .btn svg { stroke-width: 3; }

/* ---------- Categorias ---------- */
.categorias { margin-top: 18px; }
.categorias__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.cat-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px;
  background: #fff; border: 1.5px solid var(--linha); border-radius: var(--raio); padding: 12px 8px;
  font-weight: 600; font-size: 13.5px; text-align: center; line-height: 1.2; box-shadow: var(--sombra);
  transition: border-color .15s, transform .15s;
}
.cat-btn svg { width: 34px; height: 34px; color: var(--azul-3); stroke-width: 1.7; }
.cat-btn:hover { border-color: var(--amarelo); transform: translateY(-2px); }
.cat-btn[aria-pressed="true"] { border-color: var(--amarelo-2); background: var(--amarelo-claro); }
.cat-btn small { font-weight: 500; color: var(--texto-2); font-size: 11.5px; }

/* ---------- Layout com filtros ---------- */
.principal { min-width: 0; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; margin-top: 20px; margin-bottom: 40px; align-items: start; }
.filtros {
  background: #fff; border-radius: var(--raio); padding: 16px 16px 18px; box-shadow: var(--sombra);
  position: sticky; top: 130px; max-height: calc(100vh - 146px); overflow-y: auto;
}
.filtros__topo { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--linha); padding-bottom: 10px; margin-bottom: 4px; }
.filtros h2 { margin: 0; font-size: 19px; }
.filtros__fechar, .filtros__ver, .barra-mobile { display: none; }
.filtros fieldset { border: 0; margin: 0; padding: 12px 0 4px; }
.filtros legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--amarelo-2); margin: 0; flex: none; }
.check span { flex: 1; }
.check small { color: var(--texto-2); }
.filtros select { width: 100%; padding: 9px 10px; border: 1.5px solid var(--linha); border-radius: 8px; background: #fff; }
.filtros__acoes { display: flex; gap: 8px; margin-top: 14px; }
.filtros__acoes .btn { flex: 1; }

/* ---------- Seções e cards ---------- */
.secao { margin-bottom: 30px; }
.secao__topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.secao__titulo { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 23px; font-weight: 700; }
.secao__titulo svg { width: 30px; height: 30px; color: var(--amarelo-2); }
.secao__info { color: var(--texto-2); font-size: 12.5px; margin: 2px 0 0; }
.secao__mais { background: none; border: 0; color: #1352c4; font-weight: 700; font-size: 13.5px; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.secao__mais svg { width: 16px; height: 16px; }
.secao__mais:hover { text-decoration: underline; }

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

.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--raio);
  border: 1px solid var(--linha); box-shadow: var(--sombra); overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--sombra-forte); transform: translateY(-2px); }
.card__rank {
  position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  background: var(--amarelo); color: #1a1300; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px;
}
.card__rank--1 { background: linear-gradient(180deg, #ffd84d, #f5a800); }
.card__acoes { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.card__acao {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.95); box-shadow: 0 1px 6px rgba(0,0,0,.15); color: var(--texto-2);
}
.card__acao svg { width: 19px; height: 19px; }
.card__acao.fav[aria-pressed="true"] { color: #e0245e; }
.card__acao.fav[aria-pressed="true"] svg { fill: #e0245e; }
.card__acao.zap { color: #1a9e4f; }
.card__acao:hover { transform: scale(1.06); }
.card__img { display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__corpo { display: flex; flex-direction: column; gap: 4px; padding: 4px 14px 14px; flex: 1; }
.card__cat { font-size: 11px; color: var(--texto-2); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.card__nome {
  font-size: 14px; font-weight: 500; line-height: 1.3; margin: 0; text-decoration: none; color: var(--texto);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.card__nome:hover { color: #1352c4; }
.card__preco { font-size: 21px; font-weight: 800; margin-top: 4px; letter-spacing: -.3px; }
.card__data { font-size: 11.5px; color: var(--texto-2); }
.card__atual { font-size: 12px; color: #1352c4; font-weight: 600; text-decoration: none; }
.card__atual:hover { text-decoration: underline; }
.card__botao { margin-top: auto; padding-top: 10px; }
.card__botao .btn { width: 100%; font-size: 14px; }
.card__botao .btn svg { width: 18px; height: 18px; }

/* Destaque: rolagem horizontal com os nº 1 */
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.trilho .card { scroll-snap-align: start; }

.resultado-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--amarelo-claro); border: 1px solid #f3dc8c; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 500; }
.chip button { border: 0; background: rgba(0,0,0,.07); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.chip svg { width: 12px; height: 12px; stroke-width: 3; }

.vazio { background: #fff; border-radius: var(--raio); padding: 40px 20px; text-align: center; color: var(--texto-2); box-shadow: var(--sombra); }
.vazio strong { display: block; color: var(--texto); font-size: 18px; margin-bottom: 6px; }
.vazio .btn { margin-top: 14px; }
.carregando { padding: 40px; text-align: center; color: var(--texto-2); }
.fonte { font-size: 12.5px; color: var(--texto-2); background: #fff; border-left: 4px solid var(--amarelo); padding: 10px 14px; border-radius: 8px; margin: 0 0 22px; }

/* ---------- Rodapé ---------- */
.rodape { background: var(--azul); color: #fff; }
.rodape__selos { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 20px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.logo--rodape .logo__moeda { width: 44px; height: 44px; }
.logo--rodape .logo__texto strong { font-size: 25px; }
.selo { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.12); }
.selo svg { width: 36px; height: 36px; color: var(--amarelo); stroke-width: 1.7; }
.selo strong { display: block; font-size: 14px; }
.selo span { font-size: 12.5px; opacity: .8; }
.rodape__aviso { background: #071226; font-size: 13px; padding: 18px 0 22px; }
.rodape__aviso p { margin: 0 0 8px; opacity: .9; max-width: 900px; }
.rodape__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 8px; }
.rodape__links a { color: var(--amarelo); text-decoration: none; font-weight: 600; }
.rodape__links a:hover { text-decoration: underline; }
.rodape__copy { opacity: .6 !important; font-size: 12px; }

/* ---------- Voltar ao topo e aviso ---------- */
.topo-btn {
  position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--amarelo); color: var(--azul); box-shadow: var(--sombra-forte); display: none; place-items: center;
}
.topo-btn svg { stroke-width: 3; }
.aviso-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--azul); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--sombra-forte); max-width: calc(100vw - 32px);
}

/* ---------- Páginas institucionais ---------- */
.pagina { max-width: 820px; margin: 30px auto 50px; background: #fff; border-radius: var(--raio); padding: 28px clamp(18px, 4vw, 40px); box-shadow: var(--sombra); }
.pagina h1 { margin-top: 0; font-size: 28px; }
.pagina h2 { font-size: 19px; margin-top: 26px; }
.pagina p, .pagina li { color: #333a48; }
.pagina a { color: #1352c4; }
.voltar { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 14px; color: #1352c4; }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1100px) {
  .atalho span { display: none; }
  .topo__linha { gap: 16px; }
  .rodape__selos { grid-template-columns: 1fr 1fr; }
  .rodape__selos .logo { grid-column: 1 / -1; }
  .selo { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }
  .menu-btn { display: inline-flex; }
  .menu-cat { display: none; }
  .topo__linha { flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
  .logo__moeda { width: 40px; height: 40px; }
  .logo__texto strong { font-size: 23px; }
  .logo__texto small { font-size: 10px; }
  .atalhos { gap: 0; }
  .atalho { padding: 6px; }
  .atalho svg { width: 26px; height: 26px; }
  .atalho .contador { left: 22px; }
  .atalhos a.atalho { display: none; }
  .busca { order: 5; flex-basis: 100%; max-width: none; }
  .busca input { padding: 10px 14px; }

  .banner__texto { min-height: 260px; }

  /* categorias em rolagem horizontal */
  .categorias__lista { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .categorias__lista::-webkit-scrollbar { display: none; }
  .cat-btn { flex: 0 0 auto; width: 104px; min-height: 86px; scroll-snap-align: start; font-size: 12.5px; }
  .cat-btn svg { width: 28px; height: 28px; }

  /* filtros viram painel */
  .layout { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .barra-mobile { display: flex; gap: 8px; margin-bottom: 14px; position: sticky; top: 108px; z-index: 20; }
  .barra-mobile .btn { box-shadow: var(--sombra-forte); }
  .filtros {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; max-height: 85vh; z-index: 70; border-radius: 18px 18px 0 0;
    transform: translateY(105%); transition: transform .25s ease; padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .filtros.aberto { transform: none; box-shadow: var(--sombra-forte); }
  .filtros__fechar, .filtros__ver { display: inline-flex; }
  .filtros__acoes { position: sticky; bottom: -18px; background: #fff; padding: 10px 0 4px; }
  .check { padding: 8px 0; font-size: 15px; }

  .topo-btn { display: grid; }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .banner.sem-imagem .banner__marcador { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: 70px; }
  .banner.sem-imagem .banner__marcador small { display: none; }
  .banner.sem-imagem .banner__texto { padding-bottom: 100px; }
  .banner__texto { min-height: 240px; justify-content: flex-start; padding-top: 22px; padding-bottom: 170px; }
  .banner__arte img { object-position: center bottom; }
  .banner:not(.sem-imagem)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 65%); pointer-events: none; }
  .banner .btn--grande { font-size: 15px; padding: 12px 20px; }

  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trilho { grid-auto-columns: calc(50% - 5px); gap: 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .card__img { padding: 10px; }
  .card__corpo { padding: 2px 10px 10px; }
  .card__nome { font-size: 13px; }
  .card__preco { font-size: 18px; }
  .card__atual { font-size: 11.5px; }
  .card__botao .btn { font-size: 12.5px; padding: 10px 8px; gap: 5px; }
  .card__botao .btn svg { display: none; }
  .card__acao { width: 32px; height: 32px; }
  .card__rank { font-size: 11px; top: 8px; left: 8px; }

  .secao__titulo { font-size: 19px; }
  .secao__titulo svg { width: 24px; height: 24px; }
  .rodape__selos { grid-template-columns: 1fr; gap: 14px; }
}

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