/* ===============================================
   BANDEIRANTE ARMAS - ESTILOS GLOBAIS
   =============================================== */

:root {
  --cor-primaria: #111;
  --cor-secundaria: #333;
  --cor-destaque: #c9a227;
  --cor-whatsapp: #25d366;
  --cor-fundo: #f5f5f5;
  --cor-card: #fff;
  --cor-texto: #222;
  --cor-texto-claro: #666;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================= HEADER ================= */
.top-bar {
  background: var(--cor-primaria);
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left { justify-content: flex-start; }
.header-center { justify-content: center; }
.header-right { justify-content: flex-end; }

.logo {
  max-height: 120px;
  width: auto;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.selo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

/* ================= NAVEGACAO (REMOVIDA) ================= */
.nav-bar {
  display: none;
}

/* ================= LAYOUT ================= */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  min-height: 60vh;
}

section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--cor-primaria);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--cor-destaque);
}

/* ================= CONTADOR ================= */
.product-count {
  font-size: 14px;
  color: var(--cor-texto-claro);
  margin-top: -16px;
  margin-bottom: 20px;
}

/* ================= FILTROS ================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: var(--cor-card);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filters select,
.filters input {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  min-width: 180px;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: var(--cor-destaque);
}

.filters button {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--cor-primaria);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cor-secundaria);
}

.btn-secondary {
  background: #e0e0e0;
  color: var(--cor-texto);
}

.btn-secondary:hover {
  background: #ccc;
}

.btn-secondary.active {
  background: var(--cor-primaria);
  color: #fff;
}

.btn-offer {
  background: #e0e0e0;
  color: var(--cor-texto);
}

.btn-offer:hover {
  background: var(--cor-destaque);
  color: var(--cor-primaria);
}

.btn-offer.active {
  background: var(--cor-destaque);
  color: var(--cor-primaria);
}

/* ================= GRID DE PRODUTOS ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--cor-card);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.product-card.offer::before {
  content: 'OFERTA';
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cor-destaque);
  color: var(--cor-primaria);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-brand {
  font-size: 12px;
  color: var(--cor-texto-claro);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--cor-primaria);
}

.product-meta {
  font-size: 14px;
  color: var(--cor-texto-claro);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--cor-primaria);
  margin: 12px 0;
}

.product-price.muted {
  color: var(--cor-texto-claro);
  font-size: 16px;
  font-weight: 500;
}

.product-price i {
  color: var(--cor-destaque);
  margin-right: 6px;
}

.product-desc {
  font-size: 14px;
  color: var(--cor-texto-claro);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--cor-whatsapp);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: scale(1.02);
}

.btn-details {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--cor-fundo);
  color: var(--cor-primaria);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-details:hover {
  background: var(--cor-primaria);
  color: #fff;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--cor-texto-claro);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--cor-texto-claro);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--cor-primaria);
}

.breadcrumb i {
  font-size: 10px;
}

/* ================= MARCAS ================= */
.brands-section {
  margin-top: 60px;
}

.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 32px;
  background: var(--cor-card);
  border-radius: 12px;
}

.brand-logo {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ================= FOOTER ================= */
footer {
  background: var(--cor-primaria);
  color: #ccc;
  padding: 48px 24px 24px;
  margin-top: 60px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  color: #aaa;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--cor-destaque);
}

.footer-col i {
  margin-right: 10px;
  color: var(--cor-destaque);
  width: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
  line-height: 1;
  text-align: center;
}

.footer-social a i {
  display: block;
  width: auto;
  margin: 0;
}

.footer-social a:hover {
  background: var(--cor-destaque);
  color: var(--cor-primaria);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #666;
}

.footer-bottom .warning {
  background: rgba(255,255,255,0.05);
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 12px;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
  .top-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-left,
  .header-right {
    justify-content: center;
  }

  .logo { max-height: 80px; }
  .selo { max-height: 50px; }

  .section-title {
    font-size: 22px;
  }

  .filters {
    flex-direction: column;
  }

  .filters select,
  .filters input,
  .filters button {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 20px 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= UTILITARIOS ================= */
.text-center { text-align: center; }
.text-muted { color: var(--cor-texto-claro); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* Loading */
.loading {
  text-align: center;
  padding: 60px;
  color: var(--cor-texto-claro);
}

.loading i {
  font-size: 32px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mensagem vazia */
.empty-message {
  text-align: center;
  padding: 60px 20px;
  background: var(--cor-card);
  border-radius: 12px;
  color: var(--cor-texto-claro);
}

.empty-message i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
