:root { --cor: #C8102E; --escuro: #111; --cinza: #6b6b6b; --borda: #e3e3e3; --fundo: #f5f5f4; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1d1d1d; background: var(--fundo); line-height: 1.5; }
a { color: var(--cor); }
main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.7rem; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 1.25rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); }
small { color: var(--cinza); }

.topo { background: var(--escuro); border-bottom: 4px solid var(--cor); }
.topo-in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.marca img { height: 42px; display: block; }
.topo nav a { color: #ddd; text-decoration: none; margin-left: 18px; font-size: .95rem; }
.topo nav a:hover { color: #fff; }
.rodape { text-align: center; color: var(--cinza); font-size: .85rem; padding: 24px; }

.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.estreito { max-width: 520px; margin-left: auto; margin-right: auto; }

.produto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-bottom: 24px; align-items: start; }
.galeria img { width: 100%; border-radius: 10px; display: block; background: #fff; }
.galeria img.mini { width: calc(33% - 6px); display: inline-block; margin: 8px 6px 0 0; }
.sem-foto { aspect-ratio: 1; display: grid; place-items: center; background: #e9e9e7; border-radius: 10px; color: var(--cinza); }
.preco { font-size: 2rem; font-weight: 800; color: var(--cor); margin: 4px 0 12px; }
.medidas { margin-top: 14px; }
.medidas summary { cursor: pointer; font-weight: 600; }
.medidas img { max-width: 100%; margin-top: 10px; }

label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; border: 1px solid #cfcfcf; border-radius: 7px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cor); outline-offset: -1px; border-color: transparent; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 16px; align-items: end; }
.grade .largo { grid-column: span 2; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px 24px; }
label.radio { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.radio input { width: auto; margin: 0; }
.erro-campo { display: block; color: #b00020; font-weight: 500; font-size: .85rem; margin-top: 3px; }
.nota { color: var(--cinza); font-size: .9rem; }

.botao { display: inline-block; background: var(--cor); color: #fff; border: 0; border-radius: 7px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.botao:hover { filter: brightness(1.08); }
.botao:disabled { opacity: .6; cursor: wait; }
.botao.grande { padding: 15px 28px; font-size: 1.08rem; }
.botao.largo { width: 100%; }
.botao.sec { background: #fff; color: var(--escuro); border: 1px solid #c9c9c9; }
.botao.perigo { background: #fff; color: #b00020; border: 1px solid #e3a3ad; }
.botao.peq { padding: 5px 10px; font-size: .85rem; }
.resumo { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--borda); margin: 22px 0 16px; padding-top: 16px; font-size: 1.1rem; }
.resumo strong { font-size: 1.5rem; }

.aviso { padding: 12px 14px; border-radius: 7px; background: #fff7e0; border: 1px solid #f0d98c; }
.aviso.erro { background: #fdecee; border-color: #f2b8c0; color: #8a0019; }
.aviso.ok { background: #e8f6ec; border-color: #a9dbb6; color: #155d2b; }
.aviso.grande { font-size: 1.2rem; font-weight: 800; text-align: center; }

.codigo { color: var(--cinza); margin: 0; letter-spacing: .05em; }
.etiqueta { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.st-aguardando { background: #fff1cc; color: #7a5700; }
.st-pago { background: #dceeff; color: #0b4a8b; }
.st-entregue { background: #dff3e4; color: #155d2b; }
.st-cancelado { background: #eee; color: #666; }
.cartao > .etiqueta { font-size: 1rem; padding: 6px 14px; margin: 8px 0 14px; }

.qr { max-width: 260px; margin: 10px auto; background: #fff; }
.qr svg { width: 100%; height: auto; display: block; }

table { border-collapse: collapse; width: 100%; }
.itens td, .tabela td, .tabela th { padding: 9px 10px; border-bottom: 1px solid var(--borda); text-align: left; }
.itens td:last-child { text-align: right; white-space: nowrap; }
.tabela th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); }
.tabela.compacta { max-width: 560px; }
tr.tot td { font-weight: 800; border-bottom: 0; }
tr.grupo td { font-weight: 800; background: #f7f7f6; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; }
td.recuo { padding-left: 26px; }
tr.clicavel { cursor: pointer; }
tr.clicavel:hover { background: #fafafa; }
.vazio { text-align: center; color: var(--cinza); padding: 24px; }
.rolagem { overflow-x: auto; }
form.inline { display: inline; }
form.inline select { display: inline-block; width: auto; margin: 0; padding: 5px 8px; }

.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.num { background: #fff; border: 1px solid var(--borda); border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; }
.num strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.num span { color: var(--cinza); font-size: .85rem; }
a.num:hover { border-color: var(--cor); }
.barra { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; }
.filtros select, .filtros input { width: auto; margin: 0; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.historico { list-style: none; padding: 0; margin: 0; }
.historico li { padding: 8px 0; border-bottom: 1px solid var(--borda); }

.entrega { text-align: center; }
.entrega h1 { font-size: 1.6rem; }
.tamanhos { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.tamanhos div { border: 2px solid var(--escuro); border-radius: 10px; padding: 8px 20px; min-width: 90px; }
.tamanhos span { display: block; font-size: .8rem; color: var(--cinza); text-transform: uppercase; }
.tamanhos strong { font-size: 2.2rem; line-height: 1.1; }

@media (max-width: 760px) {
  .produto { grid-template-columns: 1fr; }
  .grade .largo { grid-column: auto; }
  .topo nav a { margin-left: 12px; }
  .cartao { padding: 18px; }
}
