/* ==========================================================================
   Achados do Dia — vitrine de afiliados
   Estilos globais (sem frameworks)
   ========================================================================== */

:root {
  --amarelo: #ffce00;
  --amarelo-forte: #e9b800;
  --amarelo-claro: #fff7d6;
  --amarelo-linha: #f3e3a0;
  --tinta: #101014;
  --texto: #1d1d22;
  --cinza: #6c6c78;
  --fundo: #f5f6f8;
  --borda: #e5e6eb;
  --branco: #ffffff;
  --verde: #1fa855;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(16, 16, 20, .04), 0 10px 24px rgba(16, 16, 20, .07);
  --fonte: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --altura-topo: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.45;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.4vw, 44px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

:focus-visible {
  outline: 3px solid #1a73e8;
  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: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--amarelo { background: var(--amarelo); color: var(--tinta); }
.btn--amarelo:hover { background: var(--amarelo-forte); }
.btn--escuro { background: var(--tinta); color: #fff; }
.btn--escuro:hover { background: #26262e; }
.btn--linha { background: #fff; border: 1px solid var(--borda); color: var(--texto); }
.btn--linha:hover { border-color: #c8c9d0; }
.btn--grande {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 16, 20, .16);
}
.btn--grande svg { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn:hover { background: var(--fundo); }

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--tinta);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.link-pill:hover { background: var(--amarelo); border-color: var(--amarelo); }

/* --------------------------------------------------------------------------
   Topo
   -------------------------------------------------------------------------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
}

.topo__in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 38px);
  min-height: var(--altura-topo);
}

.menu-btn { display: none; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__icone { width: 38px; height: 42px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.08; }
.logo__txt b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--tinta);
}
.logo__txt em { font-style: normal; color: var(--amarelo-forte); }
.logo__txt small { font-size: 11.5px; color: var(--cinza); margin-top: 4px; }

.busca {
  flex: 1;
  max-width: 620px;
  position: relative;
  display: flex;
}
.busca input {
  width: 100%;
  height: 46px;
  padding: 0 56px 0 44px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: var(--fundo);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.busca input::-webkit-search-cancel-button { display: none; }
.busca input:focus {
  border-color: var(--amarelo-forte);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 206, 0, .25);
}
.busca__lupa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cinza);
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.busca__btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 46px;
  border: 0;
  border-radius: 9px;
  background: var(--amarelo);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.busca__btn:hover { background: var(--amarelo-forte); }
.busca__btn svg { width: 20px; height: 20px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .15s ease;
}
.nav a:hover { background: var(--fundo); }
.nav a.is-ativo { font-weight: 700; }
.nav a.is-ativo::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 3px;
  border-radius: 3px;
  background: var(--amarelo);
}
.fav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 99px;
  background: var(--amarelo);
  font-size: 11px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Gaveta (mobile) e véu
   -------------------------------------------------------------------------- */
.veu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 60;
}

.gaveta {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  z-index: 70;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .16);
  animation: entra-esq .22s ease-out;
}
@keyframes entra-esq {
  from { transform: translateX(-100%); }
  to { transform: none; }
}
.gaveta__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--borda);
  background: var(--amarelo);
}
.gaveta__nav { overflow-y: auto; padding: 8px 0 24px; }
.gaveta__nav a,
.gaveta__nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.gaveta__nav a:hover,
.gaveta__nav button:hover { background: var(--fundo); }
.gaveta__sub {
  margin: 14px 20px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cinza);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   Banner
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(300px, 21vw, 372px);
  margin-top: 20px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(115deg, #fff6b8 0%, #ffe066 42%, #ffce00 72%, #f0b400 100%);
  box-shadow: 0 16px 40px rgba(233, 184, 0, .22);
}

.banner__bolha {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.banner__bolha--1 {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: rgba(255, 255, 255, .28);
}
.banner__bolha--2 {
  width: 230px;
  height: 230px;
  right: 210px;
  bottom: -120px;
  background: rgba(255, 255, 255, .22);
}
.banner__bolha--3 {
  width: 90px;
  height: 90px;
  right: 42%;
  top: 34px;
  background: rgba(255, 255, 255, .3);
}

.banner__txt {
  position: relative;
  z-index: 2;
  padding: 0 clamp(26px, 4vw, 62px);
  max-width: min(630px, 58%);
}
.banner__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #5b4600;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.banner__tag svg { width: 14px; height: 14px; stroke-width: 2.4; }
.banner h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.7vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--tinta);
  text-wrap: balance;
}
.banner p {
  margin: 0 0 22px;
  max-width: 470px;
  font-size: clamp(14px, 1.05vw, 16px);
  color: #3a2f00;
  font-weight: 500;
}
.banner__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #4d3d00;
}
.banner__lista li { display: inline-flex; align-items: center; gap: 6px; }
.banner__lista svg { width: 15px; height: 15px; stroke-width: 2.6; }

.banner__arte {
  position: absolute;
  z-index: 1;
  right: clamp(10px, 3vw, 60px);
  bottom: 0;
  width: min(36%, 400px);
  height: 100%;
  pointer-events: none;
}
.banner__arte svg { width: 100%; height: 100%; stroke: none; }

/* --------------------------------------------------------------------------
   Categorias
   -------------------------------------------------------------------------- */
.cats {
  display: flex;
  gap: 10px;
  margin: 18px 0 4px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--borda);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .15s ease, border-color .15s ease;
}
.cat svg { width: 22px; height: 22px; }
.cat:hover { border-color: #cfd0d6; }
.cat[aria-pressed="true"] {
  background: var(--amarelo-claro);
  border-color: var(--amarelo-forte);
  font-weight: 700;
}
.cat--destaque {
  background: var(--amarelo);
  border-color: var(--amarelo);
  font-weight: 700;
}
.cat--destaque:hover,
.cat--destaque[aria-pressed="true"] {
  background: var(--amarelo-forte);
  border-color: var(--amarelo-forte);
}

/* --------------------------------------------------------------------------
   Layout da vitrine
   -------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 18px;
}

/* Filtros */
.filtros {
  position: sticky;
  top: calc(var(--altura-topo) + 18px);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 18px;
  background: #fff;
  max-height: calc(100vh - var(--altura-topo) - 36px);
  overflow-y: auto;
}
.filtros__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filtros__topo h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.filtros__topo h2 svg { width: 18px; height: 18px; }
.filtros__fechar,
.filtros__ver { display: none; }

.filtro {
  border: 0;
  border-top: 1px solid var(--borda);
  margin: 14px 0 0;
  padding: 14px 0 0;
  min-width: 0;
}
.filtro legend {
  float: left;
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--cinza);
}
.filtro > div,
.filtro > .check { clear: both; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #d4a800;
}
.check small {
  margin-left: auto;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--fundo);
  color: var(--cinza);
  font-size: 11.5px;
  text-align: center;
}

.faixa {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  clear: both;
}
.faixa label { flex: 1; }
.faixa input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.filtros__acoes { display: flex; gap: 8px; margin-top: 18px; }
.filtros__acoes .btn { flex: 1; }

/* Coluna de produtos */
.vitrine { container: vitrine / inline-size; min-width: 0; }

.barra {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.btn-filtrar { display: none; }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--amarelo);
  font-size: 11px;
  font-weight: 700;
}
.atualizado {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 13px;
  color: var(--cinza);
}
.atualizado a { color: inherit; }
.ordem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cinza);
}
.ordem select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
  font-size: 14px;
  cursor: pointer;
}

.secao { margin: 18px 0 34px; }
.secao__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.secao__cab > div { min-width: 0; }
.secao__cab h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.secao__cab h2 svg { width: 26px; height: 26px; color: #d9a900; }
.secao__cab p { margin: 4px 0 0; font-size: 13px; color: var(--cinza); }
.secao__cab p a { color: inherit; }
.secao--destaque {
  padding: 18px;
  border: 1px solid var(--amarelo-linha);
  border-radius: 18px;
  background: var(--amarelo-claro);
}

/* Grade — as colunas dependem da largura da coluna de produtos */
.grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@container vitrine (min-width: 700px) {
  .grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@container vitrine (min-width: 1160px) {
  .grade { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
}

.carregando {
  padding: 48px 0;
  text-align: center;
  color: var(--cinza);
}

/* --------------------------------------------------------------------------
   Card de produto
   -------------------------------------------------------------------------- */
.card {
  container: card / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: #d8d9df;
  box-shadow: var(--sombra);
  transform: translateY(-2px);
}

.card__foto {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  max-height: 232px;
  margin: 10px 10px 0;
  border-radius: 9px;
  background: #fff;
}
.card__foto img {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center;
}

.card__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--tinta);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.card__rank b { color: var(--amarelo); }
.card__rank--top { background: var(--amarelo); color: var(--tinta); }
.card__rank--top b { color: var(--tinta); }

.card__fav,
.card__share {
  position: absolute;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--borda);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.card__fav { top: 8px; color: #333; }
.card__fav:hover { border-color: #cfd0d6; }
.card__fav svg { width: 19px; height: 19px; }
.card__fav[aria-pressed="true"] { color: #e0245e; }
.card__fav[aria-pressed="true"] svg { fill: currentColor; }
.card__share { top: 50px; color: var(--verde); }
.card__share:hover { background: #e9f8ef; border-color: #bfe8cf; }
.card__share svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

.card__corpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 14px 14px;
}
.card__nome {
  display: -webkit-box;
  min-height: 2.76em;
  margin: 0;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.38;
  color: var(--texto);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card__nome a { text-decoration: none; }
.card__nome a:hover { text-decoration: underline; }

.card__preco {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.1;
  color: var(--tinta);
}
.card__preco small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.card__preco small:first-child { margin-right: 3px; }
.card__data { margin: 4px 0 0; font-size: 11.5px; color: var(--cinza); }

.card__ver {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
}
.card__ver:hover {
  background: var(--amarelo-forte);
  box-shadow: 0 4px 12px rgba(233, 184, 0, .35);
}
.card__ver svg { width: 16px; height: 16px; }
.card__ver-curto { display: none; }

@container card (max-width: 215px) {
  .card__ver-longo { display: none; }
  .card__ver-curto { display: inline; }
}
@container card (max-width: 190px) {
  .card__foto { margin: 8px 8px 0; }
  .card__corpo { padding: 8px 10px 10px; }
  .card__nome { font-size: 13.5px; }
  .card__preco { font-size: 20px; }
  .card__preco small { font-size: 12.5px; }
  .card__data { font-size: 11px; }
  .card__ver { height: 40px; margin-top: 10px; font-size: 13.5px; }
  .card__rank { top: 8px; left: 8px; padding: 2px 7px; font-size: 10px; }
  .card__fav,
  .card__share { right: 6px; width: 34px; height: 34px; }
  .card__fav { top: 6px; }
  .card__share { top: 46px; }
}

/* Estado vazio */
.vazio {
  padding: 44px 16px;
  border: 1px dashed #d4d5db;
  border-radius: var(--raio);
  background: #fff;
  color: var(--cinza);
  text-align: center;
}
.vazio p { margin: 4px 0; }
.vazio .btn { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.rodape {
  margin-top: 44px;
  background: var(--tinta);
  color: #fff;
}
.rodape__selos {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-top: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid #2a2a30;
}
.logo--claro .logo__txt b { color: #fff; }
.logo--claro .logo__txt em { color: var(--amarelo); }
.logo--claro .logo__txt small { color: #bdbdc4; }

.selos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.selos li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: #bdbdc4;
  line-height: 1.35;
}
.selos svg { width: 30px; height: 30px; color: var(--amarelo); }
.selos b {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.rodape__base { padding-top: 20px; padding-bottom: 32px; }
.aviso {
  max-width: 920px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #d0d0d6;
}
.rodape__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 10px;
}
.rodape__links a {
  color: var(--amarelo);
  font-size: 14px;
  text-decoration: none;
}
.rodape__links a:hover { text-decoration: underline; }
.copy { margin: 0; font-size: 12px; color: #8a8a92; }

/* --------------------------------------------------------------------------
   Voltar ao topo e toast
   -------------------------------------------------------------------------- */
.topo-btn {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 30;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--amarelo);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.topo-btn svg { stroke-width: 2.6; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--tinta);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* --------------------------------------------------------------------------
   Páginas institucionais
   -------------------------------------------------------------------------- */
.pagina {
  max-width: 840px;
  margin: 26px auto 0;
  padding: 34px clamp(18px, 4vw, 46px) 26px;
  border: 1px solid var(--borda);
  border-radius: 18px;
  background: #fff;
}
.pagina h1 { margin: 0 0 16px; font-size: 32px; letter-spacing: -.6px; }
.pagina h2 { margin: 30px 0 8px; font-size: 20px; }
.pagina p,
.pagina li { color: #333; }
.pagina a { color: #2968c8; }
.pagina ul { padding-left: 22px; }
.voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--texto) !important;
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  /* Filtros viram painel inferior e a vitrine ocupa a largura toda */
  .layout { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .btn-filtrar { display: inline-flex; }
  .filtros {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    max-height: 86vh;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
    transform: translateY(105%);
    transition: transform .25s ease-out;
    visibility: hidden;
  }
  .filtros.is-aberto { transform: none; visibility: visible; }
  .filtros__fechar,
  .filtros__ver { display: inline-flex; }
  .filtros__acoes {
    position: sticky;
    bottom: -16px;
    margin-bottom: -4px;
    padding: 12px 0 4px;
    background: #fff;
  }
  .selos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .logo__txt small { display: none; }
}

@media (max-width: 1023px) {
  :root { --altura-topo: 64px; }

  .topo__in {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .menu-btn { display: inline-grid; margin-left: -8px; }
  .nav { display: none; }
  .logo__txt b { font-size: 20px; }
  .logo__icone { width: 30px; height: 34px; }
  .busca { order: 3; flex-basis: 100%; max-width: none; }
  .busca input { height: 44px; }

  .banner { height: auto; min-height: 300px; }
  .banner__txt { max-width: 62%; }
  .banner__arte { width: 34%; right: 6px; opacity: .95; }

  .rodape__selos { flex-direction: column; align-items: flex-start; }
  .topo-btn { display: grid; }
  .topo-btn[hidden] { display: none !important; }
}

@media (max-width: 767px) {
  .banner {
    min-height: 250px;
    margin-top: 12px;
    border-radius: 16px;
  }
  .banner__txt { max-width: 100%; padding: 26px 22px; }
  .banner__tag { margin-bottom: 10px; font-size: 10.5px; }
  .banner h1 { font-size: 25px; letter-spacing: -.7px; margin-bottom: 8px; }
  .banner p { font-size: 13px; margin-bottom: 16px; max-width: 92%; }
  .banner__lista { display: none; }
  .banner__arte {
    width: 150px;
    right: -34px;
    bottom: -18px;
    opacity: .2;
  }
  .btn--grande { padding: 11px 20px; font-size: 14px; }

  .cats {
    margin: 12px -16px 0;
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;
    scroll-padding-left: 16px;
  }
  .cat { flex: 0 0 auto; height: 44px; padding: 0 14px; font-size: 13.5px; }
  .cat svg { width: 20px; height: 20px; }

  .barra { gap: 8px; }
  .atualizado { order: 3; flex-basis: 100%; font-size: 12px; }
  .ordem { margin-left: auto; }
  .ordem span { display: none; }

  .secao { margin: 14px 0 26px; }
  .secao--destaque {
    margin-right: -6px;
    margin-left: -6px;
    padding: 14px 10px;
    border-radius: 14px;
  }
  .secao__cab { align-items: flex-end; margin-bottom: 12px; }
  .secao__cab h2 { gap: 8px; font-size: 18px; }
  .secao__cab h2 svg { width: 22px; height: 22px; }
  .secao__cab p { font-size: 11.5px; }
  .link-pill { padding: 6px 12px; font-size: 12.5px; }

  .selos { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pagina { margin-top: 12px; border-right: 0; border-left: 0; border-radius: 0; }
  .pagina h1 { font-size: 26px; }
}

@media (max-width: 359px) {
  .grade { gap: 8px; }
  .banner h1 { font-size: 22px; }
}

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