.catalogo-section {
  width: 100%;
  padding: 3.5rem 0;
  background-color: #f8fafc;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border, #e2e8f0);
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-secondary, #0f172a);
}

.section-subtitle {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  color: #64748b;
}

.count-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--color-primary, #f97316);
  font-size: 0.85rem;
  font-weight: 600;
}

/* =========================================================
   GRID FIXO DE 3 COLUNAS
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

/* Garante que o wrapper criado pelo loop PHP não quebre a grid */
.grid .vehicle-card-wrapper {
  width: 100%;
  min-width: 0; /* Evita que itens com conteúdo longo estoureem a coluna */
}

/* Responsivo para telas menores */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
  }
}

@media (max-width: 600px) {
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr; /* 1 coluna em celulares */
  }
}
.message-box {
  width: 100%;
  padding: 3rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 1rem;
  color: #64748b;
  font-weight: 500;
}

.message-box.error {
  color: #dc2626;
  border-color: #fca5a5;
}

.no-results-cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--color-primary, #f97316);
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 0.6rem;
  text-decoration: none;
}

/* Responsivo para telas menores */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 colunas em tablets */
  }
}

@media (max-width: 600px) {
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr; /* 1 coluna em celulares */
  }
}
