/* Crown Classics — featured slider shell (cards reuse inventory styles) */

.cc-featured {
  position: relative;
  z-index: 3;
  margin-top: -110px;
  background: transparent;
  padding: 0 0 36px;
}

.cc-featured__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 10px;
}

.cc-featured__viewport {
  overflow: hidden;
}

.cc-featured__track.vehicle-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  gap: 0 !important;
  transition: transform 0.45s ease;
  will-change: transform;
}

.cc-featured-card.vehicle-grid__item {
  flex: 0 0 25%;
  width: 25% !important;
  min-width: 0;
  padding: 10px !important;
}

.cc-featured-card .vehicle-grid__wrapper {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.cc-featured__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.cc-featured__arrow {
  width: 42px;
  height: 42px;
  border: 0;
  background: #d64e00;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.cc-featured__arrow:hover {
  background: #c44500;
}

.cc-featured__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background: #555;
}

.cc-featured__arrow--prev svg {
  transform: rotate(180deg);
}

@media (max-width: 1200px) {
  .cc-featured {
    margin-top: -80px;
  }

  .cc-featured-card.vehicle-grid__item {
    flex: 0 0 33.333%;
    width: 33.333% !important;
  }
}

@media (max-width: 900px) {
  .cc-featured {
    margin-top: -60px;
  }

  .cc-featured-card.vehicle-grid__item {
    flex: 0 0 50%;
    width: 50% !important;
  }
}

@media (max-width: 600px) {
  .cc-featured {
    margin-top: -40px;
    padding: 0 0 28px;
  }

  .cc-featured-card.vehicle-grid__item {
    flex: 0 0 50%;
    width: 50% !important;
    padding: 6px !important;
  }
}

/* Hero sits under the overlapping featured strip */
.homepage-slider-section {
  position: relative;
  z-index: 1;
}

.homepage-slider-section__inner > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
