/* Página pública de validação China Peps, conforme as telas aprovadas pelo designer. */
:root {
  --vermelho: #a3050d;
  --vermelho-escuro: #7c0409;
  --verde: #0e5b2f;
  --preto: #111111;
  --fundo-escuro: #0b0806;
  --creme: #f4f0e8;
  --cartao: #ffffff;
  --borda: #e3ddd2;
  --linha: #ebe6dd;
  --texto-sec: #57534d;
  --cinza-caixa: #eeedeb;
  --dourado: #d8b36a;
  --dourado-escuro: #9a7a3c;
  --creme-titulo: #f3e7cf;
  --alerta-fundo: #fcefd9;
  --alerta-texto: #7a4700;
  --erro-fundo: #f7e1df;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: Manrope, system-ui, sans-serif; color: var(--preto);
  background: radial-gradient(120% 60% at 50% 0%, #2a1a10 0%, var(--fundo-escuro) 60%) fixed, var(--fundo-escuro);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vermelho); }
a:hover { color: var(--vermelho-escuro); }

/* Cabeçalho institucional */
.topo { padding: 14px 16px 0; }
.topo__linha, .estrelas { max-width: 960px; margin: 0 auto; }
.topo__linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.marca img { width: clamp(56px, 16vw, 72px); height: clamp(56px, 16vw, 72px); flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.marca__nome { font-family: Cinzel, "Trajan Pro", Georgia, serif; font-weight: 600; font-size: clamp(17px, 5.2vw, 34px); color: var(--creme-titulo); letter-spacing: 0.06em; white-space: nowrap; }
.topo__selo { font-size: clamp(9px, 2.6vw, 12px); font-weight: 800; color: var(--dourado); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; line-height: 1.35; }
.estrelas { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px 84px; fill: var(--dourado); }
.estrelas span { flex: 1; height: 1px; background: var(--dourado-escuro); }

/* Painel creme onde fica o conteúdo */
.painel {
  width: calc(100% - 20px); max-width: 960px; margin: 0 auto; padding: 16px 14px;
  background: var(--creme); border-radius: 14px; display: flex; flex-direction: column; gap: 14px;
}

/* Cabeçalho de status (verde = autêntico) */
.status { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; }
.status svg { flex-shrink: 0; }
.status h1 { margin: 0 0 2px; font-size: 24px; font-weight: 800; line-height: 1.15; }
.status p { margin: 0; font-size: 16px; line-height: 1.35; }
.status--ok { background: var(--verde); color: #fff; }
.status--warn { background: var(--alerta-fundo); color: var(--alerta-texto); }
.status--err { background: var(--erro-fundo); color: var(--vermelho); }

/* Área da embalagem */
.produto { display: flex; flex-direction: column; gap: 14px; }
.foto {
  margin: 0; border-radius: 14px; overflow: hidden; background: #ebe6de;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 932 / 506;
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cartao p { margin: 0; line-height: 1.45; }

/* Ficha do produto (Tela 01) */
.rotulo-sec { font-size: 15px; font-weight: 800; color: var(--texto-sec); letter-spacing: 0.02em; text-transform: uppercase; }
.ficha { gap: 6px; }
.ficha__nome { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.1; }
.ficha__desc { font-size: 17px; color: #333; }
.dados { margin: 8px -4px 0; }
.dados div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--linha); }
.dados div:last-child { border-bottom: 1px solid var(--linha); }
.dados dt { font-size: 15px; color: #333; min-width: 0; }
.dados dd { margin: 0; font-size: 15px; font-weight: 800; text-align: right; letter-spacing: 0.02em; white-space: nowrap; }
@media (max-width: 420px) { .dados dt, .dados dd { font-size: 14px; } .dados dd { letter-spacing: 0; } }
.historico { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; background: var(--cinza-caixa); border-radius: 10px; color: #555; }
.historico svg { flex-shrink: 0; }
.historico p { color: #333; font-size: 15px; }
.historico strong { color: var(--preto); }
.ficha__chamada { margin-top: 10px !important; font-size: 15px; color: #333; }

.botao {
  display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 16px; margin-top: 6px;
  border: 0; border-radius: 12px; background: linear-gradient(#b0070f, var(--vermelho-escuro)); color: #fff;
  font: 800 17px Manrope, sans-serif; text-decoration: none; cursor: pointer; text-align: center;
}
.botao:hover { background: var(--vermelho-escuro); color: #fff; }
.botao--sec { background: #fff; color: var(--preto); border: 1px solid var(--preto); }
.botao--sec:hover { background: var(--creme); color: var(--preto); }

/* Tela 02: confirmação do código */
.voltar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: 20px; color: var(--vermelho-escuro); text-decoration: none; align-self: flex-start; }
.mini { flex-direction: row; align-items: center; gap: 16px; padding: 12px; }
.mini .foto { width: 52%; flex-shrink: 0; border-radius: 10px; aspect-ratio: 6 / 5; }
.mini__dados { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini__nome { margin: 0 0 8px; font-family: Merriweather, Georgia, serif; font-weight: 900; font-size: clamp(22px, 7vw, 34px); line-height: 1.05; color: #1a0a08; }
.mini__nome span { display: block; font-size: 0.62em; font-weight: 700; }
.mini__dados p { font-size: 15px; color: #444; }
.mini__dados strong { font-weight: 500; color: var(--preto); letter-spacing: 0.02em; }
.form { padding: 22px 20px; gap: 14px; }
.form__titulo { margin: 0; font-family: Merriweather, Georgia, serif; font-weight: 700; font-size: 26px; }
.form p { font-size: 16px; color: #444; }
label { font-size: 16px; font-weight: 800; margin-top: 4px; }
input {
  height: 58px; border: 1.5px solid #9b9b9b; border-radius: 10px; padding: 0 18px; width: 100%; background: #fff;
  font: 500 24px Manrope, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--preto);
}
input::placeholder { color: #8a8a8a; }
input:focus-visible, .botao:focus-visible, a:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }

/* Ampola desenhada, usada enquanto o produto não tem foto */
.ampola { display: flex; flex-direction: column; align-items: center; padding: 16px 0; }
.ampola__tampa { width: 30px; height: 26px; background: #a3050d; border-radius: 5px 5px 2px 2px; }
.ampola__gargalo { width: 34px; height: 10px; background: #c9a15a; }
.ampola__corpo { width: 70px; height: 110px; background: #dde6e3; border: 1px solid #a9bbb5; border-radius: 8px; display: flex; align-items: center; }
.ampola__rotulo { width: 100%; background: #fff; border-block: 1px solid #a9bbb5; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ampola__rotulo small { font-family: Cinzel, serif; font-size: 6px; color: var(--vermelho); letter-spacing: 0.08em; }
.ampola__rotulo strong { font-family: Merriweather, serif; font-size: 11px; color: var(--vermelho-escuro); }

/* Rodapé */
.rodape { margin-top: auto; padding: 24px 16px 28px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rodape img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.rodape a { color: var(--dourado); font-size: 18px; font-weight: 800; min-height: 44px; display: flex; align-items: center; text-underline-offset: 4px; }
.rodape small { color: #e9e2d6; font-size: 15px; }

/* Página inicial */
.abertura { text-align: center; padding: 8px 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.abertura img { width: 140px; height: 140px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.abertura h1 { margin: 0; font-family: Merriweather, Georgia, serif; font-size: 26px; line-height: 1.25; }
.abertura p { margin: 0; max-width: 520px; color: var(--texto-sec); line-height: 1.5; }
.titulo { margin: 0; font-family: Merriweather, Georgia, serif; font-size: 22px; }
.passos { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.passos li::marker { color: var(--vermelho); font-weight: 800; }
.erro { color: var(--vermelho) !important; font-weight: 700; }
input[aria-invalid="true"] { border-color: var(--vermelho); }
.produtos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.produtos li { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.produtos strong { display: block; font-family: Merriweather, Georgia, serif; font-size: 18px; }
.produtos span { display: block; font-size: 13px; color: var(--texto-sec); }

/* Computador: embalagem ao lado das informações */
@media (min-width: 900px) {
  .painel { padding: 28px; }
  .produto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .produto > .foto { position: sticky; top: 24px; }
  .painel:has(.abertura), .painel:has(.form) { max-width: 640px; }
}
