/* Identidade "Nove de Julho": azul-marinho + dourado sobre base branca/gelo,
   alinhada a lojanovedejulho.com.br (azul, branco, dourado -- os tons
   exatos nao foram confirmados, entao escolhi valores especificos que
   funcionam bem juntos; ajuste aqui se tiver a marca oficial em maos). */
:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #142238;
  --muted: #5b6b82;
  --accent: #14335c;
  --accent-dark: #0d233f;
  --gold: #b8923d;
  --gold-soft: #f4ecd8;
  --border: #dde3ec;

  --fonte-titulo: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fonte-corpo: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  background: var(--bg);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

/* topo */

.topo-fixo {
  position: sticky;
  top: 0;
  z-index: 10;
}

.faixa-topo {
  background: var(--accent);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

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

.faixa-topo span:nth-child(2) {
  color: var(--gold);
}

@media (max-width: 480px) {
  .faixa-topo span:nth-child(2) {
    display: none;
  }
  .faixa-topo {
    justify-content: flex-start;
  }
}

header.topo {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.barra-persistente {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 10px;
}

.barra-persistente-grupo + .barra-persistente-grupo {
  margin-top: 8px;
}

.barra-persistente-texto {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.barra-progresso {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.barra-progresso-preenchimento {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  width: 0%;
  transition: width 0.35s ease;
}

.barra-progresso-preenchimento.barra-progresso-frete {
  background: #4a7a5f;
}

a.marca {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}

.marca-logo {
  display: block;
  height: 40px;
  width: auto;
}

.marca-texto {
  display: flex;
  flex-direction: column;
}

.marca-nome {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--accent);
}

.marca-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
}

a.link-carrinho {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

a.link-carrinho #contador-carrinho {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  text-align: center;
}

/* hero da home */

.hero {
  padding: 8px 0 20px;
  text-align: center;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 16px;
  margin: 0 0 20px;
}

.hero-acoes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.botao-hero-primario,
.botao-hero-secundario {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.botao-hero-primario {
  background: var(--accent);
  color: #fff;
}

.botao-hero-secundario {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* faixa de vantagens (estilo "selos de confianca" de e-commerce) */

.vantagens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 16px;
}

@media (min-width: 640px) {
  .vantagens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.vantagem {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  align-items: center;
}

@media (min-width: 640px) {
  .vantagem {
    flex: 0 0 calc(25% - 9px);
  }
}

.vantagem-icone {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.vantagem strong {
  font-size: 0.82rem;
}

.vantagem span:not(.vantagem-icone) {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

/* busca */

.busca-wrap {
  margin: 16px 0 8px;
}

.busca-wrap-home {
  position: relative;
}

#busca,
#busca-home {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
}

.busca-resultados {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 30px -16px rgba(20, 51, 92, 0.4);
  overflow: hidden;
}

.busca-resultado-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.busca-resultado-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.busca-resultado-item span {
  font-size: 0.88rem;
  font-weight: 600;
}

.busca-resultado-ver-todos,
.busca-resultados-vazio {
  display: block;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.busca-resultado-ver-todos {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.busca-resultados-vazio {
  color: var(--muted);
  margin: 0;
}

.filtros-categoria {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 4px 0 4px;
  scrollbar-width: none;
}

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

.chip-categoria {
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.chip-categoria[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contagem {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.sem-resultado {
  color: var(--muted);
  text-align: center;
  padding: 32px 16px;
}

/* grid de cards do catalogo */

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .grid-produtos {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

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

.card-produto {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .card-produto:hover {
    box-shadow: 0 10px 24px -14px rgba(20, 51, 92, 0.35);
    transform: translateY(-2px);
    border-color: var(--accent);
  }
}

.card-imagem-wrap {
  position: relative;
}

.card-produto img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

/* no hover (desktop), troca pra foto real do chaveiro daquele modelo --
   ja gerada em data/produtos.json, mostra "isso tambem vem em chaveiro"
   sem precisar de nenhuma imagem nova. */
.card-imagem-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

@media (hover: hover) {
  .card-produto:hover .card-imagem-alt {
    opacity: 1;
  }
}

.badge-formatos {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(20, 34, 56, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 999px;
  line-height: 1.3;
}

.card-corpo {
  padding: 10px 12px 14px;
}

.card-corpo h2 {
  font-size: 0.95rem;
  margin: 0 0 4px;
  line-height: 1.25;
}

.card-corpo .preco {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.preco-atacado {
  color: var(--gold);
  font-weight: 600;
}

.card-corpo .ver-modelos {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* pagina de produto */

a.voltar {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 12px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

h1 {
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.instrucao {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.aviso-preco-atacado {
  background: var(--gold-soft);
  color: #7a5c1f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin: 0 0 16px;
}

.aviso-preco-atacado strong {
  font-size: 0.95rem;
}

.aviso-info {
  background: #e7edf6;
  color: var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.aviso-formatos {
  background: #e7edf6;
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin: 0 0 16px;
  line-height: 1.4;
}

.modelos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .modelos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.modelo-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.modelo-card[aria-pressed="true"] {
  border-color: var(--accent);
}

.modelo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.modelo-card span {
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* painel de selecao (tamanho + quantidade) */

.painel-selecao {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.painel-selecao h2 {
  font-size: 1rem;
  margin: 0 0 14px;
}

.preview-formato-wrap {
  max-width: 220px;
  margin: 0 auto 16px;
}

.preview-formato-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}

fieldset.tamanhos,
fieldset.formatos,
fieldset.cores {
  border: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

fieldset.tamanhos legend,
fieldset.formatos legend,
fieldset.cores legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
  width: 100%;
}

.opcao-tamanho,
.opcao-formato,
.opcao-cor {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.quantidade {
  margin-bottom: 20px;
}

.quantidade label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.stepper {
  display: flex;
  align-items: stretch;
  max-width: 180px;
}

.stepper button {
  width: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 1.2rem;
  cursor: pointer;
}

.stepper button:first-child {
  border-radius: 10px 0 0 10px;
}

.stepper button:last-child {
  border-radius: 0 10px 10px 0;
}

.stepper input {
  flex: 1;
  min-width: 0;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  font-size: 1rem;
  padding: 10px 0;
}

button.botao-carrinho {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button.botao-carrinho:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

/* selo de confianca (pagina de produto, embaixo do botao de comprar) */

.selo-confianca {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.selo-item {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--ink);
  line-height: 1.15;
}

.selo-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--accent);
}

.selo-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.selo-divisor {
  width: 1px;
  height: 38px;
  background: var(--border);
}

/* prova social (pagina de produto) */

.prova-social {
  margin: 24px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
}

.relacionados {
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
}

.relacionados h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.relacionados .destaques-linha {
  margin-bottom: 12px;
}

.prova-social h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.prova-social > p {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.prova-social-linha {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.prova-social-card {
  flex: 0 0 auto;
  width: 150px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
}

.prova-social-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.prova-social-legenda {
  padding: 10px;
  font-size: 0.75rem;
  color: var(--ink);
}

.prova-social-acoes {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* pagina do carrinho */

.vazio-texto {
  color: var(--muted);
  margin: 24px 0 16px;
}

.botao-secundario {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.lista-itens {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.item-carrinho {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.item-carrinho img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.item-info h2 {
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.item-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.item-aviso-foto {
  font-size: 0.75rem !important;
  color: var(--accent) !important;
  background: #e7edf6;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
  margin: 0 0 8px !important;
}

.item-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-stepper button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: 1rem;
  cursor: pointer;
}

.item-stepper .item-qtd {
  width: 44px;
  height: 32px;
  text-align: center;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  -moz-appearance: textfield;
}

.item-stepper .item-qtd::-webkit-outer-spin-button,
.item-stepper .item-qtd::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.item-preco {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.item-preco strong {
  color: var(--ink);
}

.item-remover {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  align-self: start;
}

.resumo-carrinho {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.resumo-linha {
  font-size: 1rem;
  margin: 0 0 6px;
}

.resumo-subtotal {
  font-size: 1.15rem;
  margin: 10px 0;
}

.progresso-bloco {
  margin: 0 0 16px;
}

.progresso-texto {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 6px;
}

.calculadora-frete {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 16px 0;
}

.calculadora-frete > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.frete-linha {
  display: flex;
  gap: 8px;
}

#frete-cep {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}

#btn-calcular-frete {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

#btn-calcular-frete:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

#frete-resultado {
  margin-top: 12px;
}

.frete-opcao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.frete-opcao:first-child {
  border-color: var(--accent);
  background: #eef2f8;
}

.frete-opcao-nome {
  font-weight: 600;
}

.frete-opcao-prazo {
  color: var(--muted);
  font-size: 0.78rem;
}

.frete-opcao-preco {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.frete-opcao-preco-original {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.frete-opcao-gratis {
  color: #1f7a4d;
}

.frete-opcao-por {
  color: var(--accent);
}

.frete-gratis-aviso {
  background: var(--gold-soft);
  color: #7a5c1f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.frete-erro {
  color: #7a2118;
  font-size: 0.85rem;
}

.aviso-minimo {
  background: var(--error-bg, #fdecea);
  color: #7a2118;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.aviso-pagamento {
  background: var(--gold-soft);
  color: #7a5c1f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 12px;
}

.aviso-producao {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 12px;
}

.aviso-producao strong {
  color: var(--ink);
}

.nudge-desconto {
  background: var(--gold-soft);
  color: #6b4a12;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}

.preview-preco {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 14px;
}

.preview-preco strong {
  color: var(--accent);
}

.pix-bloco {
  margin: 0 0 16px;
}

.pix-resultado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.pix-qr {
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 8px;
}

.pix-resultado label {
  font-size: 0.78rem;
  color: var(--muted);
  align-self: flex-start;
}

.pix-copia-cola {
  width: 100%;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  resize: none;
}

.pix-copiado {
  color: #1f7a4d;
  font-size: 0.8rem;
  font-weight: 600;
}

.resumo-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.whatsapp-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transition: transform 0.15s ease;
}

.whatsapp-flutuante img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whatsapp-flutuante:hover {
  transform: scale(1.06);
}

.video-flutuante {
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  z-index: 59;
  display: block;
}

.video-flutuante video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-flutuante-fechar {
  position: fixed;
  left: 58px;
  bottom: 58px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 61;
}

.whatsapp-flutuante,
.video-flutuante,
.video-flutuante-fechar {
  transition: transform 0.15s ease, bottom 0.15s ease;
}

/* pagina de produto: barra fixa de compra some pra cima os botoes
   flutuantes (whatsapp/video), pra nao ficarem um em cima do outro */
body.tem-barra-fixa-comprar .whatsapp-flutuante {
  bottom: 84px;
}

body.tem-barra-fixa-comprar .video-flutuante {
  bottom: 78px;
}

body.tem-barra-fixa-comprar .video-flutuante-fechar {
  bottom: 122px;
}

body.tem-barra-fixa-comprar main {
  padding-bottom: 90px;
}

.barra-fixa-comprar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.08);
}

.barra-fixa-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.barra-fixa-info strong {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barra-fixa-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.barra-fixa-comprar .botao-carrinho {
  flex: 0 0 auto;
  width: auto;
  padding: 12px 20px;
  white-space: nowrap;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.video-modal-caixa {
  width: min(860px, 92vw);
  max-height: 80vh;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.video-modal-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
}

.video-modal video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  background: #000;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 50;
  max-width: calc(100% - 32px);
  text-align: center;
}

/* banner do desconto de atacado automatico, bem no topo da home --
   imagem fornecida pelo cliente, ver templates/index.html */

.banner-atacado {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 16px;
  line-height: 0;
}

.banner-atacado img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-urgencia {
  background: var(--gold-soft);
  color: #7a5c1f;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}

.banner-urgencia strong {
  color: #6b4a12;
}

/* destaques da home (mais vendidos / novidades / etc) */

.destaques {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.destaques-titulo {
  font-size: 0.95rem;
  margin: 0 0 8px;
  color: var(--accent);
}

.destaques-linha {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.destaque-card {
  flex: 0 0 auto;
  width: 108px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.destaque-card img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  display: block;
}

.destaque-card span {
  display: block;
  padding: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

/* banner de destaque para a personalizada e o kit sugerido, na home --
   imagens fornecidas pelo cliente, ver templates/index.html */

.banner-personalizada,
.banner-kit,
.banner-kit-topo {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 20px;
  line-height: 0;
}

.banner-personalizada img,
.banner-kit img,
.banner-kit-topo img {
  width: 100%;
  height: auto;
  display: block;
}

/* pagina /personalizada -- upload */

.card-upload {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

label.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

label.dropzone:active {
  border-color: var(--accent);
}

label.dropzone .icone {
  font-size: 2rem;
}

label.dropzone .principal {
  font-weight: 600;
}

label.dropzone .secundario {
  font-size: 0.85rem;
  color: var(--muted);
}

input[type="file"] {
  display: none;
}

#nome-arquivo {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-word;
}

.card-upload fieldset.tamanhos,
.card-upload fieldset.formatos,
.card-upload fieldset.cores {
  margin-top: 0;
  margin-bottom: 18px;
}

.card-upload .quantidade {
  margin-top: 18px;
  margin-bottom: 0;
}

.card-upload #botao-enviar {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.card-upload #botao-enviar:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

/* editor de recorte */

#cropper-canvas {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 12px;
  touch-action: none;
  background: #111;
}

.cropper-dica {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.zoom-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.zoom-linha span {
  font-size: 1.1rem;
}

.zoom-linha input[type="range"] {
  flex: 1;
}

#botao-cropper-confirmar {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.duas-colunas-personalizada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 10px;
}

.duas-colunas-personalizada .botao-secundario {
  display: block;
  text-align: center;
  padding: 12px;
  text-decoration: none;
}

#botao-reposicionar {
  display: block;
  width: 100%;
  padding: 13px;
  margin-bottom: 16px;
}

.opcao-sem-foto {
  text-align: center;
  margin: 18px 0 0;
}

.opcao-sem-foto-texto {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.opcao-sem-foto .botao-secundario {
  display: block;
  width: 100%;
  padding: 13px;
}

.opcao-sem-foto .botao-secundario:disabled {
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.preview-personalizada {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.preview-personalizada img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.erro {
  background: #fdecea;
  color: #7a2118;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* whatsapp */

.pedido-id {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.whatsapp-acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.botao-whatsapp {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: #25d366;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.botao-whatsapp:active {
  background: #1eb958;
}

.botao-whatsapp-secundario {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* rodape */

.rodape {
  margin-top: 32px;
  background: var(--accent-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 16px 0;
}

.rodape-colunas {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 24px;
}

@media (min-width: 640px) {
  .rodape-colunas {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.rodape-coluna {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rodape-coluna strong {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.rodape-coluna a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
}

.rodape-coluna a:hover {
  color: #fff;
  text-decoration: underline;
}

.rodape-link-icone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rodape-link-icone img {
  flex-shrink: 0;
  opacity: 0.8;
}

.rodape-marca p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.rodape-logo {
  margin-bottom: 4px;
}

.rodape-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.rodape-legal p {
  margin: 0 0 4px;
}

/* paginas institucionais (/atendimento/<slug>) */

.conteudo-institucional {
  max-width: 68ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
}

.conteudo-institucional h2 {
  font-size: 1.02rem;
  margin: 20px 0 8px;
  color: var(--accent);
}

.conteudo-institucional p {
  margin: 0 0 12px;
}

.conteudo-institucional ol,
.conteudo-institucional ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.conteudo-institucional li {
  margin-bottom: 4px;
}

.conteudo-institucional .acordeao {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 10px;
  background: var(--card);
}

.conteudo-institucional .acordeao > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}

.conteudo-institucional .acordeao > summary::-webkit-details-marker {
  display: none;
}

.conteudo-institucional .acordeao > summary::before {
  content: '+ ';
}

.conteudo-institucional .acordeao[open] > summary::before {
  content: '− ';
}

.conteudo-institucional .acordeao > summary + * {
  margin-top: 10px;
}

.conteudo-institucional .acordeao :last-child {
  margin-bottom: 0;
}

/* descricoes por formato (pagina de produto) */

.formato-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
}

.formato-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* kit sugerido (/kit-livraria-shalom) */

.kit-tamanho {
  border: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kit-tamanho legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
  width: 100%;
}

.kit-tamanho label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.kit-itens {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.kit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}

.kit-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.kit-item-nome {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
}

.kit-item-stepper {
  max-width: 132px;
  flex-shrink: 0;
}

.kit-item-stepper button {
  width: 36px;
}

.kit-item-stepper input {
  padding: 8px 0;
}

.kit-resumo {
  font-weight: 600;
  margin: 0 0 14px;
}

.kit-adicionar {
  margin-bottom: 24px;
}

/* pagina 404 */

.pagina-404 {
  text-align: center;
  padding: 32px 0 8px;
}

.pagina-404-numero {
  display: block;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
}

.pagina-404 h1 {
  margin: 0 0 8px;
}

.pagina-404 .instrucao {
  max-width: 44ch;
  margin: 0 auto 24px;
}

.pagina-404 .busca-wrap {
  max-width: 420px;
  margin: 0 auto 20px;
  text-align: left;
}

.pagina-404-botao {
  margin: 0 6px 10px;
}
