/* EDITE: cores principais do site (tema claro; o escuro vem logo abaixo) */
:root {
  --marca: #0f7d70;           /* botões principais (teal da marca) */
  --marca-hover: #0c6c61;
  --marca-viva: #25d366;      /* verde WhatsApp: foco e ícone do convite */
  --fundo: #f3f5f7;
  --card: #ffffff;
  --superficie: #e9edf0;      /* campos, chips, foto carregando */
  --texto: #1b252c;
  --texto-suave: #55646e;
  --borda: #dfe4e8;
  --selo-texto: #0b6b53;      /* "menor preço em N dias" */
  --selo-fundo: #dcf5ea;
  --desconto-texto: #b4232a;
  --desconto-fundo: #fde8e8;
  --sombra: 0 1px 2px rgba(16, 24, 32, 0.06);
  --convite-fundo-icone: #ffffff;
  --raio: 14px;
  --raio-pequeno: 10px;
  --altura-busca: 56px;       /* barra de busca presa no topo (rolagem compensa) */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --marca: #0f7d70;
    --marca-hover: #11907f;
    --fundo: #0b141a;
    --card: #15212a;
    --superficie: #1d2b34;
    --texto: #e9edef;
    --texto-suave: #9fb0ba;
    --borda: #24333d;
    --selo-texto: #6fe3b1;
    --selo-fundo: #10342a;
    --desconto-texto: #ffb3b3;
    --desconto-fundo: #4a1c20;
    --sombra: none;
    --convite-fundo-icone: #15212a;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  /* âncoras e scrollIntoView param abaixo da busca presa no topo */
  scroll-padding-top: var(--altura-busca);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texto);
  background: var(--fundo);
  -webkit-tap-highlight-color: transparent;
}

/* Painel de filtros aberto: a página atrás não rola */
html:has(dialog[open]) {
  overflow: hidden;
}

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

.container {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 16px 24px;
}

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

/* ── Topo: mascote à esquerda do nome ─────────────────────────────────────── */
.topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
}

.logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--card);
  box-shadow: 0 2px 10px rgba(18, 140, 126, 0.35);
}

.marca {
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.descricao {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--texto-suave);
}

/* ── Busca (presa no topo) ────────────────────────────────────────────────── */
.busca-fixa {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -16px;
  padding: 6px 16px;
  background: var(--fundo);
  transition: box-shadow 0.2s ease;
}

/* Depois de rolar: uma linha separa a busca da lista que passa por baixo */
.busca-fixa.solta {
  box-shadow: 0 1px 0 var(--borda), 0 6px 16px rgba(0, 0, 0, 0.18);
}

.busca {
  position: relative;
}

.busca::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--texto-suave);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.busca input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  /* 16px evita o zoom automático do iPhone ao focar */
  font: inherit;
  font-size: 16px;
  color: var(--texto);
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}

.busca input::placeholder {
  color: var(--texto-suave);
  opacity: 1;
}

/* O ✕ nativo some; o nosso aparece só com texto */
.busca input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.busca input:focus {
  outline: none;
  border-color: var(--marca-viva);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.22);
}

.limpar-busca {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: var(--texto-suave);
  background: transparent;
  cursor: pointer;
}

.limpar-busca svg {
  width: 18px;
  height: 18px;
}

/* ── Convite do WhatsApp ──────────────────────────────────────────────────── */
.convite {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icone texto copiar"
    "botao botao botao";
  align-items: center;
  gap: 8px 10px;
  margin: 8px 0 20px;
  padding: 10px 10px 10px 12px;
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.convite-icone {
  grid-area: icone;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--marca-viva);
}

.convite-icone svg {
  width: 32px;
  height: 32px;
  stroke: none;
}

.convite-texto {
  grid-area: texto;
  min-width: 0;
}

.convite .botao-grupo {
  grid-area: botao;
  justify-content: center;
}

.convite .botao-icone {
  grid-area: copiar;
}

@media (min-width: 520px) {
  .convite {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "icone texto botao copiar";
  }
}

.convite-texto p {
  margin: 0;
}

.convite-titulo {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.convite-sub {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--texto-suave);
}

.botao-grupo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: var(--marca);
  text-decoration: none;
}

.botao-grupo:hover {
  background: var(--marca-hover);
}

.botao-icone {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--borda);
  border-radius: 50%;
  color: var(--texto-suave);
  background: transparent;
  cursor: pointer;
}

.botao-icone:hover {
  color: var(--texto);
  background: var(--superficie);
}

/* Aviso do "Copiar link": flutua acima da parte de baixo da tela */
.aviso {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  transform: translateX(-50%);
  border-radius: 12px;
  font-size: 0.875rem;
  text-align: center;
  overflow-wrap: anywhere;
  color: var(--texto);
  background: var(--superficie);
  border: 1px solid var(--borda);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.aviso:empty {
  display: none;
}

/* ── Cabeçalho das seções ─────────────────────────────────────────────────── */
.secao-cabecalho {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 10px;
}

.secao-cabecalho h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.seta-selo {
  color: var(--selo-texto);
}

.link-secao {
  padding: 6px 0;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--selo-texto);
  white-space: nowrap;
  background: none;
  cursor: pointer;
}

.secao-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seta-faixa {
  display: none;
  width: 36px;
  height: 36px;
}

.seta-faixa:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .seta-faixa {
    display: grid;
  }

  .secao-acoes .link-secao {
    margin-right: 4px;
  }
}

/* Faixa: título e "Ver X ofertas ›" na mesma linha também no celular */
.destaques .secao-cabecalho {
  flex-wrap: nowrap;
}

.destaques .secao-cabecalho h2 {
  min-width: 0;
}

.destaques .secao-acoes {
  flex-shrink: 0;
}

@media (max-width: 419px) {
  .destaques .secao-cabecalho {
    gap: 8px;
  }

  .destaques .secao-cabecalho h2 {
    font-size: 1rem;
  }

  .destaques .link-secao {
    font-size: 0.8125rem;
  }
}

/* Celular estreito: os títulos ainda cabem na mesma linha */
@media (max-width: 374px) {
  .secao-cabecalho h2 {
    font-size: 1rem;
  }

  .destaques .secao-cabecalho h2 {
    font-size: 0.9375rem;
  }
}

.link-secao:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ofertas-info,
.ofertas-status,
.ofertas-aviso {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.ofertas-status {
  grid-column: 1 / -1;
  padding: 32px 0;
  text-align: center;
}

.ofertas-aviso {
  margin-top: 16px;
  text-align: center;
}

/* ── Faixa "Menores preços do mês": rola para o lado, encostada nas bordas ── */
.destaques {
  margin-bottom: 24px;
}

.faixa-destaques {
  --largura-card: clamp(144px, 43vw, 184px);
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}

.faixa-destaques::-webkit-scrollbar {
  display: none;
}

.faixa-destaques > * {
  flex: 0 0 var(--largura-card);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .faixa-destaques {
    --largura-card: 200px;
    gap: 12px;
    scrollbar-width: thin;
  }

  .faixa-destaques::-webkit-scrollbar {
    display: initial;
  }
}

/* Cards da faixa mais baixos: foto 5:4 (deitada) e respiros menores */
.faixa-destaques .oferta-foto {
  aspect-ratio: 5 / 4;
}

.faixa-destaques .oferta-corpo {
  gap: 4px;
  padding: 7px 8px 8px;
}

.faixa-destaques .oferta-base {
  gap: 3px;
}

.faixa-destaques .oferta-preco {
  font-size: 1.125rem;
}

.faixa-destaques .oferta-botao {
  min-height: 32px;
  margin-top: 2px;
}

/* ── Filtros ──────────────────────────────────────────────────────────────── */
.filtros {
  margin-bottom: 8px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

/* Barra em uma linha só; no celular estreito rola para o lado */
.barra-filtros {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -16px;
  padding: 2px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.barra-filtros::-webkit-scrollbar {
  display: none;
}

.grupo-chips {
  display: flex;
  gap: 8px;
}

.grupo-chips.quebra {
  flex-wrap: wrap;
}

/* Chip: <label> com rádio escondido (o <span> é o que aparece) ou <button> */
.chip {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

label.chip > span,
button.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--texto);
  background: var(--card);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chip input:checked + span {
  color: var(--fundo);
  background: var(--texto);
  border-color: var(--texto);
}

.chip input:focus-visible + span,
button.chip:focus-visible {
  outline: 3px solid var(--marca-viva);
  outline-offset: 2px;
}

button.chip svg {
  width: 18px;
  height: 18px;
}

/* "Filtros" fica parado na esquerda enquanto as lojas rolam por baixo */
.chip-painel {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: -16px 0 0 var(--fundo), 6px 0 8px var(--fundo);
}

/* "Filtros" com algum filtro do painel ligado */
.chip-painel.ativo {
  color: var(--selo-texto);
  border-color: var(--selo-texto);
  background: var(--selo-fundo);
}

.contador {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--fundo);
  background: var(--selo-texto);
}

.filtros-ativos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-ativo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--selo-texto);
  border-radius: 999px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--selo-texto);
  background: var(--selo-fundo);
  cursor: pointer;
}

.chip-ativo svg {
  width: 16px;
  height: 16px;
}

.chip-ativo.limpar-tudo {
  padding: 0 12px;
  border-color: transparent;
  color: var(--texto-suave);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Painel de filtros: folha que sobe de baixo no celular, caixa central no PC */
dialog:not([open]) {
  display: none;
}

.painel {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto 0 0;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--texto);
  background: var(--card);
  border: none;
  border-radius: 20px 20px 0 0;
}

.painel::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.painel[open] {
  animation: subir 0.22s ease-out;
}

@keyframes subir {
  from { transform: translateY(24px); opacity: 0; }
}

@media (min-width: 640px) {
  .painel {
    inset: 0;
    height: fit-content;
    max-width: 480px;
    margin: auto;
    padding-bottom: 16px;
    border-radius: 20px;
  }
}

.painel-cabecalho {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
  background: var(--card);
}

.painel-cabecalho h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.painel-grupo {
  margin-top: 12px;
}

.painel-grupo legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--texto-suave);
}

.painel-chave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--borda);
  border-radius: var(--raio-pequeno);
  cursor: pointer;
}

.painel-chave strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--selo-texto);
}

.painel-chave small {
  display: block;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

/* Interruptor (checkbox) */
.painel-chave input {
  flex-shrink: 0;
  position: relative;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.painel-chave input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.painel-chave input:checked {
  background: var(--marca);
  border-color: var(--marca);
}

.painel-chave input:checked::after {
  transform: translateX(18px);
}

.painel-chave input:focus-visible {
  outline: 3px solid var(--marca-viva);
  outline-offset: 2px;
}

.painel-rodape {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
  margin-top: 20px;
}

.painel-rodape .botao-secundario {
  margin: 0;
}

/* ── Botões gerais ────────────────────────────────────────────────────────── */
.botao-principal,
.botao-secundario {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.botao-principal {
  color: #fff;
  background: var(--marca);
  border: none;
}

.botao-principal:hover {
  background: var(--marca-hover);
}

.botao-secundario {
  margin-top: 12px;
  color: var(--texto);
  background: transparent;
  border: 1px solid var(--borda);
}

.botao-secundario:hover {
  background: var(--card);
}

.botao-principal:active,
.botao-secundario:active {
  transform: scale(0.98);
}

.botao-grupo:focus-visible,
.botao-icone:focus-visible,
.botao-principal:focus-visible,
.botao-secundario:focus-visible,
.link-secao:focus-visible,
.limpar-busca:focus-visible,
.chip-ativo:focus-visible {
  outline: 3px solid var(--marca-viva);
  outline-offset: 2px;
}

#ver-mais {
  max-width: 320px;
  margin: 20px auto 0;
}

/* ── Lista de ofertas ─────────────────────────────────────────────────────── */
.resultado-busca {
  min-height: 1.3em;
  margin: 8px 0;
}

.resultado-busca:empty {
  min-height: 0;
  margin: 0 0 4px;
}

/* Enquanto uma nova busca/filtro carrega, a lista antiga fica apagada */
.grade-ofertas.carregando {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

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

@media (min-width: 640px) {
  .grade-ofertas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .grade-ofertas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Card de oferta (grade e faixa) ───────────────────────────────────────── */
.oferta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: var(--raio-pequeno);
  box-shadow: var(--sombra);
  transition: transform 0.1s ease, border-color 0.2s ease;
}

.oferta:hover {
  border-color: var(--texto-suave);
}

.oferta:active {
  transform: scale(0.98);
}

.oferta:focus-visible {
  outline: 3px solid var(--marca-viva);
  outline-offset: 2px;
}

/* Foto quadrada; fundo neutro enquanto carrega, branco depois (fotos de loja
   têm fundo branco), e aviso se a imagem falhar */
.oferta-foto {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1;
  background: var(--superficie);
}

.oferta-foto.carregada {
  background: #fff;
}

/* Absoluta: foto em pé (ex.: 200×400) não estica a caixa quadrada */
.oferta-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.oferta-foto.carregada img {
  opacity: 1;
}

.oferta-foto.falhou::after {
  content: "Imagem indisponível";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--texto-suave);
}

.oferta-foto.falhou img {
  display: none;
}

.oferta-corpo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 9px 9px;
}

/* Título sempre com 2 linhas de altura: preços e botões ficam alinhados na linha */
.oferta-titulo {
  margin: 0;
  min-height: calc(2 * 1.3em);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oferta-base {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oferta-precos {
  display: flex;
  flex-direction: column;
}

.oferta-antes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  min-height: 18px;
}

.oferta-de {
  font-size: 0.75rem;
  color: var(--texto-suave);
  text-decoration: line-through;
}

.oferta-desconto {
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 18px;
  color: var(--desconto-texto);
  background: var(--desconto-fundo);
}

.oferta-preco {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* Selo "menor preço em N dias" (calculado pelo exportador) */
.oferta-menor {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--selo-texto);
  background: var(--selo-fundo);
}

.oferta-quando {
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--texto-suave);
}

.oferta-loja {
  display: flex;
  font-size: 0.75rem;
  line-height: 1.3;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  color: var(--texto);
}

/* Bolinha com a cor da loja */
.oferta-loja::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--texto-suave);
}

.oferta-loja.loja-ml::before {
  background: #ffe600;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.oferta-loja.loja-shopee::before {
  background: #ee4d2d;
}

.oferta-botao {
  display: grid;
  place-items: center;
  min-height: 34px;
  margin-top: 1px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--marca);
}

.oferta:hover .oferta-botao {
  background: var(--marca-hover);
}

/* Telas largas: um pouco mais de respiro nos cards */
@media (min-width: 640px) {
  .oferta-corpo {
    padding: 12px;
  }

  .oferta-titulo {
    font-size: 0.875rem;
  }

  .oferta-preco {
    font-size: 1.3rem;
  }
}

/* ── Voltar ao topo e rodapé ──────────────────────────────────────────────── */
.voltar-topo {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  background: var(--marca);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.voltar-topo svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.voltar-topo:focus-visible {
  outline: 3px solid var(--marca-viva);
  outline-offset: 3px;
}

.rodape {
  padding: 16px 16px calc(72px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.rodape p {
  margin: 0;
}

/* ── Telas maiores ────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .container {
    padding-top: 24px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .descricao {
    font-size: 0.875rem;
  }

  .convite {
    padding: 12px 12px 12px 16px;
  }

  .convite-titulo {
    font-size: 0.9375rem;
  }

  .convite-sub {
    font-size: 0.8125rem;
  }

  .secao-cabecalho h2 {
    font-size: 1.3rem;
  }
}

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