/* ===== BANNER MOBILE ===== */
.banner-mobile {
  display: none;
}

@media (max-width: 768px) {
  .banner-mobile {
    display: block;
  }

  .banner-mobile img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ===== HERO DESKTOP BANNER ===== */
.hero-desktop {
  display: block;
  background: #233143;
}

.hero-desktop img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }
}

/* ===== SEARCH ===== */
.search-section {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding-bottom: 30px;
}

.search-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.search-box h2 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: #233143;
}

.search-btn {
  background: #233143;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  letter-spacing: 0.5px;
}

.search-btn:hover {
  background: #1a2535;
}

.search-btn-all {
  background: #fff;
  color: #233143;
  border: 2px solid #233143;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn-all:hover {
  background: #233143;
  color: #fff;
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

/* ===== FEATURED CAROUSEL ===== */
.featured-section {
  padding: 20px 0 40px;
  position: relative;
}

.featured-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-card {
  min-width: 220px;
  max-width: 220px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.featured-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f0f0f0;
}

.featured-card-body {
  padding: 12px;
}

.featured-card-model {
  font-size: 12px;
  font-weight: 700;
  color: #233143;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.featured-card-year {
  font-size: 11px;
  color: #777;
  margin-bottom: 2px;
}

.featured-card-store {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card-city {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}

.featured-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #233143;
}

.featured-card-price span {
  font-size: 11px;
  font-weight: 600;
}

.featured-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #aaa;
  padding-top: 6px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: #233143;
  color: #fff;
  border-color: #233143;
}

/* ===== BRANDS ===== */
.brands-section {
  padding: 40px 0;
  background: #f0f0f0;
}

.brands-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brands-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #fff;
  color: #777;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.brands-nav:hover {
  background: #233143;
  color: #fff;
  border-color: #233143;
}

.brands-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}

.brands-carousel::-webkit-scrollbar {
  display: none;
}

.brand-item {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-item:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== HOME TRUST ===== */
.home-trust {
  padding: 50px 0;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.home-trust-item {
  text-align: center;
}

.home-trust-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #233143;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  border: 3px solid #ddd;
}

.home-trust-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.home-trust-item p {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    height: 240px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }

  .search-box {
    padding: 20px;
    border-radius: 8px;
  }

  .featured-card {
    min-width: 180px;
    max-width: 180px;
  }

  .brand-item {
    width: 80px;
    height: 80px;
    min-width: 80px;
    padding: 14px;
  }

  .home-trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-trust-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}
