/* Hidratan — loja. Mobile-first, paleta água/verde. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primaria: #0a7f8a;
  --primaria-escura: #0b3954;
  --fundo: #f7fbfc;
  --texto: #1c2b2d;
  --suave: #6b7f83;
  --borda: #dbe7ea;
  --promo: #e0525e;
  --ok: #1e7a44;
}
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--fundo); color: var(--texto); line-height: 1.5; }
[hidden] { display: none !important; }
a { color: var(--primaria); }
img { max-width: 100%; }

/* Topo */
.topo { background: #fff; border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 10; }
.topo-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primaria-escura); text-decoration: none; letter-spacing: -.02em; }
.menu { display: flex; gap: 16px; align-items: center; }
.menu a { text-decoration: none; color: var(--texto); font-size: 15px; }
.menu a:hover { color: var(--primaria); }
.badge { background: var(--primaria); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; margin-left: 4px; vertical-align: top; }
.banner-promo { background: var(--primaria-escura); color: #fff; text-align: center; padding: 7px 16px; font-size: 14px; }

/* Hero */
.hero { background: linear-gradient(135deg, #d7f0f2 0%, #eef8f9 100%); text-align: center; padding: 64px 16px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); color: var(--primaria-escura); margin-bottom: 10px; }
.hero p { max-width: 560px; margin: 0 auto 22px; color: var(--suave); font-size: 17px; }

/* Layout */
.section { max-width: 1080px; margin: 0 auto; padding: 36px 16px; }
.section h1 { margin-bottom: 18px; }
.section > h2 { text-align: center; margin-bottom: 24px; font-size: 26px; color: var(--primaria-escura); }

/* Botões */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: #e3ecee; color: var(--texto); transition: filter .15s; }
.btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primario { background: var(--primaria); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 14px; }
.link-btn { background: none; border: 0; color: var(--primaria); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* Cards de produto */
.grid-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card-produto { background: #fff; border: 1px solid var(--borda); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-foto { position: relative; display: block; aspect-ratio: 1; background: #eef6f7; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; }
.sem-foto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.sem-foto.grande { aspect-ratio: 1; border-radius: 14px; background: #eef6f7; }
.tag-promo, .tag-esgotado { position: absolute; top: 10px; left: 10px; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: #fff; }
.tag-promo { background: var(--promo); }
.tag-esgotado { background: var(--suave); }
.card-corpo { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-nome { font-weight: 700; color: var(--texto); text-decoration: none; font-size: 16px; }
.card-resumo { font-size: 13px; color: var(--suave); flex: 1; }
.preco s { color: var(--suave); margin-right: 8px; font-size: 14px; }
.preco strong { color: var(--primaria-escura); font-size: 19px; }
.preco.grande strong { font-size: 30px; }

/* Página de produto */
.produto-pagina { display: grid; gap: 28px; }
@media (min-width: 760px) { .produto-pagina { grid-template-columns: 1fr 1fr; } }
.produto-fotos img#fotoPrincipal { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #eef6f7; }
.miniaturas { display: flex; gap: 8px; margin-top: 10px; }
.miniaturas img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.miniaturas img:hover { border-color: var(--primaria); }
.produto-info .resumo { color: var(--suave); margin: 8px 0 14px; }
.aviso-estoque { color: var(--promo); font-weight: 600; margin: 8px 0; }
.compra-linha { display: flex; gap: 10px; margin: 14px 0; }
.compra-linha input { width: 76px; padding: 10px; border: 1px solid var(--borda); border-radius: 8px; font: inherit; text-align: center; }
.descricao { margin-top: 18px; white-space: pre-line; color: var(--texto); }

/* Formulários */
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 8px; font: inherit; background: #fff; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 12px; }
.check input { width: auto; }
.duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .duas-colunas { grid-template-columns: 1fr; } }
.linha-input { display: flex; gap: 8px; }
.linha-input input { flex: 1; }
.formulario-estreito { max-width: 420px; }

/* Cartões e mensagens */
.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.erro { background: #fbe4e1; color: #a03222; border-radius: 8px; padding: 10px 14px; margin-top: 10px; }
.alerta { background: #fdf3d7; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.mini { font-size: 13px; color: var(--suave); }
.dica-bxgy { background: #e7f6ec; color: var(--ok); border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.cupom-ok { color: var(--ok); margin-top: 6px; }

/* Carrinho */
.carrinho-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .carrinho-grid { grid-template-columns: 1fr 340px; } }
.tabela-carrinho { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--borda); }
.tabela-carrinho th, .tabela-carrinho td { padding: 12px; text-align: left; border-bottom: 1px solid var(--borda); font-size: 14px; vertical-align: middle; }
.tabela-carrinho img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #eef6f7; }
.tabela-carrinho input.qtd { width: 64px; text-align: center; padding: 7px; }
.resumo-caixa { background: #fff; border: 1px solid var(--borda); border-radius: 14px; padding: 20px; position: sticky; top: 80px; }
.resumo-caixa h2 { font-size: 18px; margin-bottom: 8px; }
.opcoes-frete { margin-top: 10px; display: grid; gap: 6px; }
.opcoes-frete label { display: flex; gap: 8px; align-items: center; font-weight: 400; border: 1px solid var(--borda); border-radius: 8px; padding: 9px 12px; cursor: pointer; margin: 0; }
.opcoes-frete label:has(input:checked) { border-color: var(--primaria); background: #eef8f9; }
.opcoes-frete input { width: auto; }
.totais { margin-top: 16px; }
.totais > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.totais .total { border-top: 1px solid var(--borda); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.bloco-frete, .bloco-cupom { margin-top: 12px; }

/* Checkout */
.checkout-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .checkout-grid { grid-template-columns: 1fr 340px; } }
.lista-resumo { list-style: none; }
.lista-resumo li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }

/* Pedido */
.status { display: inline-block; padding: 4px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; background: #e3ecee; margin-bottom: 16px; }
.status-pago, .status-entregue { background: #d9f2e3; color: var(--ok); }
.status-aguardando_pagamento { background: #fdf3d7; color: #93690c; }
.status-enviado { background: #d9e8f9; color: #1c5aa0; }
.status-cancelado, .status-expirado { background: #f8dcd8; color: #a03222; }
.pagamento-pendente { text-align: center; }
.pagamento-pendente .qr { width: 220px; margin: 12px auto; display: block; }
.pagamento-pendente textarea { margin: 10px 0; font-size: 12px; }
.rastreio { list-style: none; }
.rastreio li { padding: 8px 0; border-bottom: 1px solid var(--borda); }

/* Conta */
.titulo-linha { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { padding: 10px; text-align: left; border-bottom: 1px solid var(--borda); font-size: 14px; }
.endereco-linha { padding: 8px 0; border-bottom: 1px solid var(--borda); }
.badge-mini { background: var(--primaria); color: #fff; border-radius: 6px; font-size: 11px; padding: 1px 7px; margin-left: 6px; }

/* Rodapé */
.rodape { background: var(--primaria-escura); color: #cfe3e6; text-align: center; padding: 32px 16px; margin-top: 48px; }
.rodape a { color: #fff; margin: 0 8px; }
.rodape .mini { color: #9cc0c6; margin-top: 10px; }
