/* ============================================================
   STORENALDO - Estilos (arquivo 5 de 5)
   Titular da loja : Marcela Gomes Machado
   Identificador   : Ouros e joias
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f3ff;
    color: #1e1b2e;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* --------------------------------------------------------
   Topo
   -------------------------------------------------------- */
.topo { background: #1e1b2e; color: #fff; position: sticky; top: 0; z-index: 20; }
.topo-linha { display: flex; align-items: center; gap: 16px; height: 64px; }
.marca { display: flex; flex-direction: column; line-height: 1.15; }
.marca-nome { font-size: 21px; font-weight: 700; color: #a78bfa; }
.marca-titular { font-size: 11px; color: #c4b5fd; }
.botao-carrinho {
    margin-left: auto;
    background: #7c3aed; color: #fff; border: 0;
    padding: 10px 16px; border-radius: 9px; cursor: pointer; font-weight: 600;
}
.botao-carrinho:hover { background: #6d28d9; }

/* --------------------------------------------------------
   Destaque e secoes
   -------------------------------------------------------- */
.destaque { background: linear-gradient(135deg, #312e81, #7c3aed); color: #fff; padding: 56px 0; text-align: center; }
.destaque h1 { font-size: 30px; margin-bottom: 10px; }
.destaque p { opacity: .9; }

main section { padding: 40px 0; }
main h2 { font-size: 24px; margin-bottom: 20px; text-align: center; }

/* --------------------------------------------------------
   Grade de produtos e cartoes
   -------------------------------------------------------- */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

.cartao {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(76, 29, 149, .08);
    display: flex; flex-direction: column;
}
.cartao-imagem {
    height: 150px; background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 700; color: #7c3aed;
    overflow: hidden;
}
.cartao-imagem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cartao-corpo { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cartao-corpo h3 { font-size: 15px; }
.preco { font-size: 19px; font-weight: 700; color: #1e1b2e; }
.fingerprint { font-size: 10px; color: #9ca3af; font-family: Consolas, monospace; word-break: break-all; }

/* --------------------------------------------------------
   Botoes
   -------------------------------------------------------- */
.botao {
    border: 0; cursor: pointer; font-weight: 600; font-size: 14px;
    padding: 11px 18px; border-radius: 9px;
}
.botao.primario { background: #7c3aed; color: #fff; }
.botao.primario:hover { background: #6d28d9; }
.botao.primario:disabled { opacity: .6; cursor: wait; }
.botao.total { width: 100%; }

/* --------------------------------------------------------
    Banner de retorno do Mercado Pago (?status=...)
    -------------------------------------------------------- */
.banner { padding: 12px 0; font-size: 14px; }
.banner-linha { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.banner-linha p { flex: 1; min-width: 240px; }
.banner .botao { white-space: nowrap; }
.banner-sucesso { background: #dcfce7; color: #166534; }
.banner-pendente { background: #fef3c7; color: #92400e; }
.banner-falha { background: #fee2e2; color: #991b1b; }

/* --------------------------------------------------------
    Formas de pagamento (chips, via public key do MP)
    -------------------------------------------------------- */
.metodos-rotulo { font-size: 12px; color: #6b7280; margin-top: 2px; }
.metodos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.metodos li {
    background: #f1f5f9; color: #374151; border-radius: 999px;
    padding: 5px 12px; font-size: 12px; font-weight: 600;
}

/* --------------------------------------------------------
    Rodape
    -------------------------------------------------------- */
.rodape { background: #1e1b2e; color: #c4b5fd; padding: 26px 0; text-align: center; margin-top: 30px; }
.rodape p { margin: 4px 0; font-size: 13px; }
.rodape-auditoria { font-family: Consolas, monospace; font-size: 11px; opacity: .7; }
.rodape-links a { color: #a78bfa; }
.rodape-links a:hover { text-decoration: underline; }

/* --------------------------------------------------------
    Bloco de contato "Fale comigo" (logo abaixo do cabecalho)
    -------------------------------------------------------- */
.contato { background: #fff; border-bottom: 1px solid #e9e5f7; padding: 12px 0; }
.contato-linha { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contato-titulo { font-size: 16px; color: #1e1b2e; white-space: nowrap; }
.contato-itens { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; list-style: none; }
.contato-link {
    display: inline-block; background: #7c3aed; color: #fff;
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.contato-link:hover { background: #6d28d9; }
.contato-regiao { font-size: 13px; color: #6b7280; }

/* --------------------------------------------------------
    Paginas institucionais (termos, privacidade, trocas)
    -------------------------------------------------------- */
.pagina-destaque { padding: 36px 0; }
.pagina-destaque h1 { font-size: 26px; }
.pagina-secao { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(76, 29, 149, .08); }
.pagina-secao h2 { font-size: 17px; margin-bottom: 8px; color: #1e1b2e; text-align: left; }
.pagina-secao p { font-size: 14px; line-height: 1.6; color: #374151; }
.pagina-voltar { text-align: center; padding: 10px 0 30px; }

/* --------------------------------------------------------
   Painel lateral do carrinho
   -------------------------------------------------------- */
.painel-carrinho {
    position: fixed; top: 0; right: 0; width: 350px; max-width: 90vw; height: 100%;
    background: #fff; z-index: 40; box-shadow: -4px 0 20px rgba(0, 0, 0, .15);
    display: flex; flex-direction: column;
}
.painel-cabecalho { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid #e5e7eb; }
.botao-fechar { background: none; border: 0; font-size: 26px; cursor: pointer; line-height: 1; }
.painel-itens { flex: 1; overflow-y: auto; padding: 10px 18px; }
.linha-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.linha-info { flex: 1; }
.controle-qtd { display: flex; align-items: center; gap: 6px; }
.controle-qtd button { width: 24px; height: 24px; border: 1px solid #d1d5db; background: #fff; border-radius: 5px; cursor: pointer; }
.painel-rodape { padding: 18px; border-top: 1px solid #e5e7eb; }
.total-carrinho { margin-bottom: 12px; font-size: 16px; }

/* --------------------------------------------------------
   Janela de finalizacao (modal)
   -------------------------------------------------------- */
.janela { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.janela-caixa { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.janela-cabecalho { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid #e5e7eb; }

.formulario { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #374151; }
.campo input { padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; }
.campo input:focus { outline: none; border-color: #7c3aed; }
.par-campos { display: flex; gap: 12px; }
.par-campos .campo { flex: 1; }

/* --------------------------------------------------------
   Mensagens e recibo
   -------------------------------------------------------- */
.mensagem { font-size: 13px; color: #dc2626; min-height: 16px; }
.texto-suave { color: #6b7280; }

.recibo { padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.recibo-ok { font-size: 16px; font-weight: 700; color: #15803d; }
.recibo-auditoria { font-size: 12px; color: #6b7280; }
.recibo-fingerprint { font-size: 11px; color: #9ca3af; font-family: Consolas, monospace; word-break: break-all; }
.recibo code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }

/* --------------------------------------------------------
   Estado "oculto" e camada de fundo
   -------------------------------------------------------- */
.oculto { display: none !important; }
.camada-fundo { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 30; }

/* --------------------------------------------------------
   Telas pequenas
   -------------------------------------------------------- */
@media (max-width: 560px) {
    .destaque h1 { font-size: 24px; }
    .par-campos { flex-direction: column; gap: 12px; }
}
