/* ===== INDEX PAGE STYLES ===== */

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin-top: 5%;
}

.icon {
  display: flex;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 10px;
  justify-content: center;
  align-items: center;
}

.icon a {
  color: #333;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* Banner Section */
.banner-section {
  margin-top: 80px;
  padding: 20px 0;
  background: #fff;
}

.banner-placeholder {
  max-width: 1200px;
  margin: 0 auto;
  height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #6c757d;
}

.banner-content i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.banner-content p {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.banner-content span {
  font-size: 14px;
  opacity: 0.7;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #e32128 0%, #c41e3a 50%, #b71c1c 100%);
  color: white;
  padding: 140px 0 100px;
  text-align: center;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 30px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Search Container */
.search-container {
  max-width: 900px;
  margin: -50px auto 80px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.search-bar-container {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  gap: 12px;
  border: 1px solid rgba(227, 33, 40, 0.1);
  transition: all 0.3s ease;
}

.search-bar-container:hover {
  box-shadow: 0 15px 50px rgba(227, 33, 40, 0.2);
  transform: translateY(-2px);
}

.search-icon {
  font-size: 1.4rem;
  color: #e32128;
  margin-right: 12px;
}

.search-bar {
  border: none;
  outline: none;
  font-size: 1.1rem;
  flex: 1;
  background: transparent;
  padding: 15px 0;
  color: #333;
  font-weight: 500;
}

.search-bar::placeholder {
  color: #999;
  font-weight: 400;
}

.search-btn {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(227, 33, 40, 0.3);
}

.search-btn:hover {
  background: linear-gradient(135deg, #d01c22 0%, #b71c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 33, 40, 0.4);
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.features-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
}

.features-title span {
  color: #e32128;
}

.features-cards {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(227, 33, 40, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(227, 33, 40, 0.15);
  border-color: rgba(227, 33, 40, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 28px;
  box-shadow: 0 8px 25px rgba(227, 33, 40, 0.3);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(227, 33, 40, 0.4);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  letter-spacing: -0.3px;
}

.feature-description {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
}

.feature-link {
  color: #e32128;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.feature-link:hover {
  gap: 12px;
}

/* Categories Section */
.categories-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.categories-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #333;
}

.categories-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.scroll-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #e32128;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #e32128;
}

.scroll-nav:hover {
  background: #e32128;
  color: white;
}

.scroll-left {
  left: -25px;
}

.scroll-right {
  right: -25px;
}

.categories-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  min-width: 250px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
  height: 100vh;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.category-content {
  padding: 20px;
  text-align: center;
}

.category-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.category-count {
  color: #666;
  font-size: 14px;
}

.scroll-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scroll-dot.active {
  background: #e32128;
}

/* Brands Section */
.brands-section {
  padding: 60px 0;
  background: white;
}

.brands-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
}

.brands-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 20px;
  margin-top: 100px;
  justify-content: center;
  align-items: center;
}

.brand-card {
  background: white;
  padding: 20px 15px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 2px solid #f1f3f4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  min-width: 120px;
  max-width: 150px;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(227, 33, 40, 0.2);
  border-color: #e32128;
}

.brand-card img {
  width: 70px;
  height: 50px;
  object-fit: contain;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.brand-card:hover img {
  transform: scale(1.1);
}

.brand-card span {
  font-weight: 700;
  font-size: 15px;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
  color: #333;
}

.brand-card:hover span {
  color: white;
}

/* Popular Cars Section */
/* layout com sidebar de filtro à esquerda e grid de 3 colunas à direita */
.popular-cars-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.popular-cars-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* container que segura sidebar + painel de carros */
.popular-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 0 20px;
}

/* sidebar do filtro (fixa/visível) */
.filter-sidebar {
  width: 280px;               /* reduzido para dar mais espaço aos cards */
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Reverter visual do filtro para tema do site */
.sidebar-filter {
    background: #fbfbfd;      /* fundo levemente off-white */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(0,0,0,0.03);
    font-family: inherit;
}

.sidebar-filter label { 
    display:block; 
    font-size:13px; 
    color:#4b5563; 
    margin-bottom:6px;
}

.sidebar-filter .input {
    width:100%;
    padding:10px 12px;
    border:1px solid #e6e9ef;
    border-radius:8px;
    background:#ffffff;
    box-sizing:border-box;
    font-size:14px;
    color:#111827;
    height:44px;
}

.sidebar-filter .form-row { margin-bottom:12px; }
.sidebar-filter .form-row.split { display:flex; gap:10px; }
.sidebar-filter .form-row.split label { flex:1; }

.form-actions { display:flex; gap:10px; margin-top:8px; align-items:center; }

/* Botões do filtro - estilo consistente com o site */
.btn-primary {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(227,33,40,0.18);
  transition: all 0.22s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(227,33,40,0.22);
  outline: none;
}

.form-actions .btn-primary {
  flex: 1; /* ocupa o espaço disponível ao lado do link limpar */
}

/* Link limpar - discreto, alinhado com paleta */
.btn-link {
  background: transparent;
  color: #6d28d9; /* se preferir vermelho, troque para #e32128 */
  text-decoration: underline;
  padding: 10px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.btn-link:hover,
.btn-link:focus {
  transform: translateY(-1px);
  color: #5b21b6;
  outline: none;
}

/* Garante consistência caso o botão seja <a> ou <button> */
.btn-primary, .btn-link { line-height: 1; }

/* pequenas adaptações mobile */
@media (max-width:760px) {
    .sidebar-filter .form-row.split { flex-direction:column; }
    .form-actions { flex-direction:column; align-items:stretch; }
    .form-actions .btn-link { text-align:center; }
}

/* Estilos para o conteúdo do filtro */
.filter-content {
  width: 100%;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.filter-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.filter-title i {
  color: #e32128;
}

.filter-toggle {
  display: none;
  background: #e32128;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-toggle:hover {
  background: #d01c22;
  transform: scale(1.05);
}

.filter-toggle i {
  transition: transform 0.3s ease;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #e32128;
  box-shadow: 0 0 0 3px rgba(227, 33, 40, 0.1);
}

.filter-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.filter-btn {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #d01c22 0%, #b71c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 33, 40, 0.3);
}

.clear-btn {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.clear-btn:hover {
  background: #e9ecef;
  color: #333;
  border-color: #bbb;
}

/* painel onde ficam os cards, ocupa o restante do espaço */
.cars-panel {
  flex: 1;
}

/* Cabeçalho de resultados */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(227, 33, 40, 0.1);
}

.results-info {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.sort-options select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-options select:focus {
  outline: none;
  border-color: #e32128;
  box-shadow: 0 0 0 3px rgba(227, 33, 40, 0.1);
}

/* Grid com 3 colunas fixas (ajusta o tamanho do card automaticamente) */
.popular-cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 em 3 */
  gap: 18px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
  justify-items: stretch;
}

/* Cards de carros - estilo completo */
.car-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(227, 33, 40, 0.1);
  width: 100%;
  max-width: none;
  position: relative;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(227, 33, 40, 0.15);
  border-color: rgba(227, 33, 40, 0.2);
}

/* Imagem do carro */
.car-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-img {
  transform: scale(1.1);
}

.car-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.car-card:hover .car-image::after {
  opacity: 1;
}

/* Estado sem imagem */
.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.no-image i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #e32128;
  opacity: 0.7;
}

.no-image p {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
}

/* Informações do carro */
.car-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.car-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #2c3e50;
  line-height: 1.2;
  text-transform: capitalize;
}

.car-subtitle {
  font-size: 0.85rem;
  color: #e32128;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-details {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.car-details span {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 600;
  border: 1px solid rgba(227, 33, 40, 0.1);
  transition: all 0.2s ease;
}

.car-details span:hover {
  background: linear-gradient(135deg, rgba(227, 33, 40, 0.1) 0%, rgba(227, 33, 40, 0.05) 100%);
  border-color: rgba(227, 33, 40, 0.2);
  transform: translateY(-1px);
}

.car-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(227, 33, 40, 0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.car-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.car-card:hover .car-price::before {
  left: 100%;
}

.car-btn {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: #fff;
  padding: 12px 0;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(227, 33, 40, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.car-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.car-btn:hover::before {
  left: 100%;
}

.car-btn:hover {
  background: linear-gradient(135deg, #d01c22 0%, #b71c1c 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(227, 33, 40, 0.5);
}

.car-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.car-btn:hover i {
  transform: scale(1.2);
}

/* Responsivo: para telas médias, 2 colunas; mobile 1 coluna e filtro acima */
@media (max-width: 1024px) {
  .popular-layout {
    gap: 16px;
  }
  .popular-cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-sidebar {
    position: sticky;
    top: 90px;
    width: 260px;
  }
  
  /* Ajustes para cards em tablet */
  .car-image {
    height: 160px;
  }
  
  .car-info {
    padding: 16px;
  }
  
  .car-title {
    font-size: 1.1rem;
  }
  
  .car-price {
    font-size: 1.3rem;
    padding: 10px 14px;
  }
}

@media (max-width: 768px) {
  .popular-layout {
    flex-direction: column;
  }
  .filter-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    order: 1;
  }
  .cars-panel {
    order: 2;
    width: 100%;
  }
  .popular-cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Filtro dropdown em mobile */
  .filter-toggle {
    display: block;
  }
  
  .filter-form {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
  }
  
  .filter-form.show {
    display: flex;
  }
  
  /* Ajustes para cards em mobile */
  .car-image {
    height: 200px;
  }
  
  .car-info {
    padding: 18px;
  }
  
  .car-title {
    font-size: 1.3rem;
  }
  
  .car-subtitle {
    font-size: 0.9rem;
  }
  
  .car-details {
    gap: 6px;
  }
  
  .car-details span {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  
  .car-price {
    font-size: 1.5rem;
    padding: 14px 18px;
  }
  
  .car-btn {
    padding: 14px 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .popular-cars-grid {
    gap: 12px;
  }
  
  .car-image {
    height: 180px;
  }
  
  .car-info {
    padding: 16px;
  }
  
  .car-title {
    font-size: 1.2rem;
  }
  
  .car-price {
    font-size: 1.4rem;
    padding: 12px 16px;
  }
}

/* No Cars State */
.no-cars {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(227, 33, 40, 0.1);
}

.no-cars i {
  font-size: 4rem;
  color: #e32128;
  margin-bottom: 20px;
}

.no-cars h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.no-cars p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.no-cars .btn-primary {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(227, 33, 40, 0.3);
}

.no-cars .btn-primary:hover {
  background: linear-gradient(135deg, #d01c22 0%, #b71c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 33, 40, 0.4);
}

/* Seções de Propaganda */
.advertisement-section {
  padding: 40px 0;
  background: #f8f9fa;
}

.ad-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.ad-placeholder {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px dashed #e32128;
  transition: all 0.3s ease;
}

.ad-placeholder:hover {
  border-style: solid;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(227, 33, 40, 0.15);
}

.ad-placeholder i {
  font-size: 3rem;
  color: #e32128;
  margin-bottom: 20px;
  opacity: 0.7;
}

.ad-placeholder h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.ad-placeholder p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Banner com imagem de fundo */
.ad-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.ad-content {
  position: relative;
  z-index: 2;
  color: white;
}

.ad-content h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ad-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

.ad-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.ad-link {
  background: linear-gradient(135deg, #e32128 0%, #d01c22 100%);
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(227, 33, 40, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
}

.ad-link:hover {
  background: linear-gradient(135deg, #d01c22 0%, #b71c1c 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 33, 40, 0.5);
}

/* Responsividade para propaganda */
@media (max-width: 768px) {
  .advertisement-section {
    padding: 30px 0;
  }
  
  .ad-placeholder {
    padding: 30px 20px;
  }
  
  .ad-placeholder h3 {
    font-size: 1.3rem;
  }
  
  .ad-banner {
    padding: 40px 20px;
    min-height: 150px;
  }
  
  .ad-content h3 {
    font-size: 1.5rem;
  }
  
  .ad-content p {
    font-size: 1rem;
  }
  
  .ad-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .ad-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}

/* Why / Sobre - cards */
.why-section { padding: 32px 0; }
.why-section .why-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: var(--heading-color, #111827);
  font-weight:700;
}

.why-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.why-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(17,24,39,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform .16s ease, box-shadow .16s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17,24,39,0.08);
}

.why-icon {
  width:44px;
  height:44px;
  border-radius:10px;
  background: linear-gradient(135deg, rgba(227,33,40,0.08), rgba(109,40,217,0.06));
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}

.why-card-title {
  margin:0;
  font-size:1rem;
  color: #111827;
  font-weight:600;
}

.why-card-desc {
  margin:0;
  font-size:0.925rem;
  color:#6b7280;
  flex:1;
}

@media (max-width:760px){
  .why-section { padding:20px 0; }
}
