:root {
  --laranja: #ea580c;
  --laranja-escuro: #c2410c;
  --azul: #1e3a5f;
  --azul-escuro: #14283f;
  --bg: #f4f5f7;
  --texto: #1f2937;
  --texto-claro: #6b7280;
  --borda: #e5e7eb;
  --branco: #ffffff;
  --sombra: 0 2px 8px rgba(0,0,0,.06);
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--texto);
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== Topo utilitário ===== */
.topo-utilitario {
  background: var(--azul-escuro); color: #cbd5e1; font-size: 12.5px; padding: 6px 0;
}
.topo-utilitario .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* ===== Cabeçalho ===== */
.cabecalho { background: var(--branco); box-shadow: var(--sombra); position: sticky; top: 0; z-index: 50; }
.cabecalho .container { display: flex; align-items: center; gap: 24px; padding: 16px 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--azul); flex-shrink: 0; }
.logo img { height: 64px; width: auto; }
.logo .destaque { color: var(--laranja); }

.form-busca { flex: 1; min-width: 200px; display: flex; }
.form-busca input {
  flex: 1; padding: 11px 16px; border: 2px solid var(--borda); border-right: none;
  border-radius: 999px 0 0 999px; font-size: 14px; outline: none;
}
.form-busca input:focus { border-color: var(--laranja); }
.form-busca button {
  background: var(--laranja); color: #fff; border: none; padding: 0 20px;
  border-radius: 0 999px 999px 0; cursor: pointer; font-size: 16px;
}
.form-busca button:hover { background: var(--laranja-escuro); }

.btn-whatsapp-topo {
  display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; flex-shrink: 0;
}
.btn-whatsapp-topo:hover { background: #1fb959; }

/* ===== Navegação de categorias ===== */
.nav-categorias { background: var(--azul); }
.nav-categorias .container { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px; }
.nav-categorias a {
  color: #dbe4f0; padding: 13px 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-categorias a:hover, .nav-categorias a.ativa { color: #fff; border-bottom-color: var(--laranja); }

/* ===== Banner / carrossel ===== */
.banner { position: relative; overflow: hidden; background: var(--azul-escuro); }
.banner-slide {
  display: none; position: relative; min-height: 260px;
  background-size: cover; background-position: center; align-items: center;
}
.banner-slide.ativo { display: flex; }
.banner-overlay {
  background: linear-gradient(90deg, rgba(20,40,63,.88) 0%, rgba(20,40,63,.35) 60%, rgba(20,40,63,0) 100%);
  width: 100%; padding: 50px 20px; color: #fff;
}
.banner-overlay .container-texto { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.banner-titulo { font-size: 30px; font-weight: 800; margin: 0 0 8px; max-width: 520px; }
.banner-subtitulo { font-size: 16px; opacity: .9; max-width: 480px; margin: 0 0 18px; }
.banner-cta {
  display: inline-block; background: var(--laranja); color: #fff; padding: 12px 26px;
  border-radius: 999px; font-weight: 700; font-size: 14px;
}
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2);
  color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 18px;
}
.banner-nav:hover { background: rgba(255,255,255,.35); }
.banner-nav.prev { left: 16px; } .banner-nav.next { right: 16px; }
.banner-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.banner-dots span.ativo { background: #fff; }

/* ===== Faixa de Ofertas em Destaque ===== */
.faixa-ofertas {
  position: relative; background: var(--azul-escuro); overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 260px;
}
.oferta-slide {
  display: none; align-items: center; justify-content: center; gap: 40px;
  width: 100%; max-width: 1100px; padding: 30px 70px;
}
.oferta-slide.ativo { display: flex; }
.oferta-produto-img {
  background: #fff; border-radius: 12px; width: 200px; height: 200px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.oferta-produto-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.oferta-produto-img .sem-imagem { font-size: 60px; color: #cbd5e1; }
.oferta-info { color: #fff; text-align: left; }
.oferta-codigo {
  display: inline-block; background: rgba(255,255,255,.12); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.oferta-nome { font-size: 20px; font-weight: 800; margin: 0 0 16px; max-width: 380px; }
.oferta-preco { font-size: 34px; font-weight: 800; color: var(--laranja); margin-bottom: 16px; }
.oferta-preco strong { font-size: 40px; }
.oferta-cta {
  display: inline-block; background: var(--laranja); color: #fff; padding: 11px 24px;
  border-radius: 999px; font-weight: 700; font-size: 13.5px;
}
.oferta-cta:hover { background: var(--laranja-escuro); }
.oferta-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.oferta-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.oferta-dots span.ativo { background: #fff; }

@media (max-width: 640px) {
  .oferta-slide { flex-direction: column; text-align: center; gap: 18px; padding: 26px 50px; }
  .oferta-info { text-align: center; }
  .oferta-nome { max-width: 100%; }
}

/* ===== Seções / grid de produtos ===== */
.secao { padding: 36px 0; }
.secao-titulo { font-size: 22px; font-weight: 800; color: var(--azul); margin: 0 0 4px; }
.secao-titulo .laranja { color: var(--laranja); }
.secao-legenda { color: var(--texto-claro); font-size: 13.5px; margin: 0 0 22px; }

.grid-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card-produto {
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sombra); position: relative; transition: transform .15s ease;
}
.card-produto:hover { transform: translateY(-3px); }
.card-produto .thumb {
  aspect-ratio: 1 / 1; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-produto .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-produto .thumb .sem-imagem { color: #cbd5e1; font-size: 42px; }
.card-produto .info { padding: 12px 14px; }
.card-produto .codigo { font-size: 11px; color: var(--texto-claro); font-weight: 600; }
.card-produto .nome { font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; line-height: 1.35; min-height: 36px; }
.card-produto .btn-orcamento {
  display: block; text-align: center; background: var(--azul); color: #fff; padding: 8px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700;
}
.card-produto .btn-orcamento:hover { background: var(--azul-escuro); }
.ribbon {
  position: absolute; top: 10px; left: -6px; background: var(--laranja); color: #fff;
  font-size: 10px; font-weight: 800; padding: 4px 10px; letter-spacing: .03em;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}

/* ===== Faixa de categorias na home ===== */
.grid-categorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card-categoria {
  background: var(--branco); border-radius: var(--radius); box-shadow: var(--sombra);
  padding: 22px 14px; text-align: center; font-weight: 700; color: var(--azul); font-size: 13.5px;
  border: 1px solid var(--borda);
}
.card-categoria:hover { border-color: var(--laranja); color: var(--laranja); }
.card-categoria .icone { font-size: 30px; margin-bottom: 8px; }

/* ===== Produto detalhe ===== */
.produto-detalhe { display: grid; grid-template-columns: 380px 1fr; gap: 32px; background: var(--branco); border-radius: var(--radius); box-shadow: var(--sombra); padding: 28px; }
.produto-detalhe .thumb-grande { aspect-ratio: 1/1; background: #f1f5f9; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.produto-detalhe .thumb-grande img { width: 100%; height: 100%; object-fit: cover; }
.produto-detalhe .thumb-grande .sem-imagem { font-size: 80px; color: #cbd5e1; }
.produto-detalhe h1 { font-size: 24px; color: var(--azul); margin: 0 0 6px; }
.produto-detalhe .categoria-tag { display: inline-block; background: #eef2f7; color: var(--azul); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.produto-detalhe .descricao { color: var(--texto); line-height: 1.7; margin-bottom: 22px; white-space: pre-line; }
.btn-orcamento-grande {
  display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; font-weight: 700;
  padding: 14px 26px; border-radius: 999px; font-size: 15px;
}
.btn-orcamento-grande:hover { background: #1fb959; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 12.5px; color: var(--texto-claro); padding: 16px 0 0; }
.breadcrumb a:hover { color: var(--laranja); }

/* ===== Rodapé ===== */
.rodape { background: var(--azul-escuro); color: #cbd5e1; margin-top: 40px; }
.rodape .container { padding: 36px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; }
.rodape h4 { color: #fff; font-size: 14.5px; margin: 0 0 12px; }
.rodape p, .rodape a { font-size: 13px; line-height: 1.8; color: #b6c2d1; }
.rodape a:hover { color: #fff; }
.rodape .copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px; font-size: 12px; color: #8493a8; }

/* ===== WhatsApp flutuante ===== */
.whatsapp-flutuante {
  position: fixed; bottom: 22px; right: 22px; background: #25d366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60;
}
.whatsapp-flutuante:hover { background: #1fb959; }

/* ===== Estado vazio / paginação ===== */
.estado-vazio { text-align: center; padding: 60px 20px; color: var(--texto-claro); }
.paginacao { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.paginacao a, .paginacao span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--borda); font-size: 13px; background: var(--branco);
}
.paginacao a:hover { border-color: var(--laranja); color: var(--laranja); }
.paginacao .ativa { background: var(--laranja); color: #fff; border-color: var(--laranja); }

/* ===== Página de contato ===== */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contato-card { background: var(--branco); border-radius: var(--radius); box-shadow: var(--sombra); padding: 24px; }
.contato-card h3 { margin-top: 0; color: var(--azul); }
.mapa-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); }
.mapa-embed iframe { width: 100%; height: 320px; border: 0; }

@media (max-width: 860px) {
  .produto-detalhe { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .banner-titulo { font-size: 22px; }
}
