.main-banner {
  padding: 20px 0;
  background-color: var(--bg-color);
}

.banner-wrapper {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.banner-wrapper:hover {
  transform: translateY(-5px);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  background-image: url('../images/bmw.avif');
  /* Car engine background placeholder */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
  /* Light overlay as per design */
}

.hero-content {
  position: relative;
  z-index: 10;
  /*max-width: 800px;*/
  padding: 0 20px;
  color: var(--text-main);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-quick-search {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  margin-top: 40px;
  backdrop-filter: blur(10px);
}

.search-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  position: relative;
  transition: color var(--transition-speed);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

.search-form-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.select-wrapper {
  flex: 1;
  position: relative;
}

.select-wrapper i {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.2rem;
}

.search-select {
  width: 100%;
  padding: 14px;
  padding-inline-start: 40px;
  padding-inline-end: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  appearance: none;
  background-color: white;
  cursor: pointer;
  color: var(--text-main);
  transition: border-color var(--transition-speed);
}

.search-select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.search-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.search-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 77, 57, 0.2);
}

/* Categories Section */
.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.categories {
  margin-bottom: 80px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: #F1A102;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.category-card:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.category-name {
  color: #fff;
}

.category-icon {
  color: #fff;
}

.category-name {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Featured Parts */
.featured-parts {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-all:hover {
  text-decoration: underline;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.part-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-speed);
  position: relative;
}

.part-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.part-badge {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.part-image-container {
  height: 200px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.part-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.part-details {
  padding: 20px;
}

.part-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.part-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.part-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.part-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
}

.part-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.whatsapp-btn {
  background-color: #25D366;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

@media (max-width: 1024px) {

  /* Tablette : search en 2 colonnes */
  .search-form-row {
    flex-wrap: wrap;
  }

  .select-wrapper {
    flex: 1 1 calc(50% - 8px);
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {

  /* Hero */
  .hero {
    min-height: 600px;
    height: auto;
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Search form en colonne */
  .search-form-row {
    flex-direction: column;
    gap: 10px;
  }

  .select-wrapper {
    width: 100%;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  /* Section titles */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}