/* Reset, tipografia e componentes comuns à loja e ao controle. */
[hidden] { display: none !important; } /* o atributo hidden vence classes com display próprio (ex.: .chips) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--fundo);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--fonte-titulo); color: var(--petroleo); line-height: 1.15; margin: 0 0 var(--e3); font-weight: 600; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--e3); }
a { color: var(--petroleo); }
.rotulo { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); }
.codigo { font-size: .8rem; color: var(--texto-2); font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 2px; }

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

.container { max-width: var(--largura-max); margin: 0 auto; padding: 0 var(--e4); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: var(--toque); padding: 0 var(--e5);
  border: 1px solid var(--petroleo); border-radius: var(--raio);
  font: 600 .95rem var(--fonte-texto); cursor: pointer; text-decoration: none;
  background: var(--superficie); color: var(--petroleo);
}
.btn:hover { background: var(--areia); }
.btn-principal { background: var(--petroleo); color: #fff; }
.btn-principal:hover { background: var(--petroleo-escuro); }
.btn-destaque { background: var(--dourado); border-color: var(--dourado); color: var(--petroleo); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-bloco { width: 100%; }
/* Botão com cara de link (ex.: "Esqueci minha senha") */
.link { display: inline-flex; align-items: center; min-height: var(--toque); padding: 0 var(--e2); border: 0; background: none; font: 600 .9rem var(--fonte-texto); color: var(--petroleo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--dourado-texto); }

/* Campos */
.campo { display: grid; gap: var(--e1); margin-bottom: var(--e4); }
.campo label { font-weight: 600; font-size: .9rem; }
.campo input, .campo select, .campo textarea {
  min-height: var(--toque); padding: var(--e2) var(--e3);
  border: 1px solid #C9CCC6; border-radius: var(--raio);
  font: inherit; color: inherit; background: var(--superficie);
}
.campo .ajuda { font-size: .8rem; color: var(--texto-2); }
.campo .erro { font-size: .8rem; color: var(--erro); }

/* Cartões e selos */
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-grande); }
.selo { display: inline-block; padding: 2px var(--e2); border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--dourado); color: var(--petroleo); }
.faixa-ficticio { background: var(--aviso-fundo); color: var(--texto); font-size: .85rem; padding: var(--e2) var(--e4); text-align: center; }

/* Topo comum */
.topo { background: var(--superficie); border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 10; }
.topo .container { display: flex; align-items: center; gap: var(--e4); min-height: 60px; }
.marca { display: inline-flex; align-items: center; gap: var(--e2); color: var(--petroleo); text-decoration: none; white-space: nowrap; }
.marca img { width: 96px; height: auto; }
.topo-perfil { margin-left: auto; min-width: 0; }
.ver-como { display: flex; align-items: center; gap: var(--e2); font-size: .85rem; }
.ver-como select { min-height: 36px; max-width: 46vw; border: 1px solid var(--borda); border-radius: var(--raio); font: inherit; padding: 0 var(--e2); }
@media (max-width: 480px) { .marca .rotulo { display: none; } .ver-como > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

main { padding: var(--e5) 0 var(--e7); }
.vazio { text-align: center; color: var(--texto-2); padding: var(--e7) var(--e4); }
.rodape { border-top: 1px solid var(--borda); padding: var(--e5) 0; font-size: .85rem; color: var(--texto-2); }

/* Aviso flutuante */
.aviso { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--petroleo); color: #fff; padding: var(--e3) var(--e5); border-radius: var(--raio); box-shadow: var(--sombra); transition: transform .25s; z-index: 50; max-width: 90vw; }
.aviso.visivel { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aviso { transition: none; } }

/* Menu flutuante "Protótipo" (loja e controle) */
.prototipo { position: fixed; left: 12px; bottom: 12px; z-index: 40; font-size: .85rem; }
.prototipo-botao { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--e3); border: 0; border-radius: var(--raio); background: #1b2328; color: #fff; font: 600 .85rem var(--fonte-texto); cursor: pointer; box-shadow: var(--sombra); }
.prototipo-botao i { color: var(--dourado); font-style: normal; }
.prototipo-painel { display: none; position: absolute; left: 0; bottom: 48px; width: 250px; background: #1b2328; color: #fff; border-radius: var(--raio); padding: var(--e3); box-shadow: 0 12px 36px rgb(0 0 0 / .3); }
.prototipo.aberto .prototipo-painel { display: grid; gap: var(--e1); }
.prototipo-painel a, .prototipo-painel .link { color: #fff; text-decoration: none; padding: 6px 4px; border-radius: 4px; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; }
.prototipo-painel a:hover, .prototipo-painel .link:hover { background: rgb(255 255 255 / .08); }
.prototipo-painel a[aria-current="page"] { color: var(--dourado); }
.prototipo-painel label { margin-top: var(--e2); font-size: .75rem; color: #b9c4c9; }
.prototipo-painel select { min-height: 36px; border-radius: 4px; border: 0; padding: 0 var(--e2); font: inherit; }
.prototipo-painel .link { text-decoration: underline; margin-top: var(--e2); }
