.car-carousel-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem; 
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}


/* Saat item sedikit, center-kan */
.center-track {
  justify-content: center;
}


.car-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.3s ease;
  will-change: transform;
}

.car-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  width: 100%;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  box-sizing: border-box;
  text-align: center;
}

.car-image-wrapper {
  width: 100%;
  height: auto;             /* Ubah dari fixed height */
  margin-bottom: 1rem;
  background: transparent;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.car-image-wrapper img {
  width: 100%;              /* Gambar akan isi lebar penuh */
  height: auto;             /* Pertahankan rasio */
  object-fit: contain;
  display: block;
}

/* TOMBOL HARGA */

.price-button-car {
  background-color: #fa0000;
  color: white;
  border: 2px solid #fa0000;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  cursor: pointer;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
}

.price-button-car:hover,
.price-button-car:focus {
  background-color: white;
  color: #fa0000;
  border: 2px solid #fa0000;
  outline: none;
}

/* JUDUL SPESIFIKASI */
.spec-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* LIST SPESIFIKASI */
.spec-list {
  list-style-position: inside;
  background: #e6f0fa;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-size: 0.9rem;
  box-sizing: border-box;
  
}

/* CATATAN BAWAH */
.car-notes {
  font-size: 0.85rem;
  color: #555;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  line-height: 1.5;
}

/* TOMBOL NAVIGASI */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.nav-arrow:hover {
  background: rgba(250, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow svg {
  width: 20px;
  height: 20px;
  fill: #fa0000;
  transition: fill 0.3s ease;
}

.nav-arrow:hover svg {
  fill: #fff;
}


.nav-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-left {
  left: 0.5rem;
}

.nav-right {
  right: 0.5rem;
}

/* ===========================
   RESPONSIVE (Mobile)
============================= */
@media (max-width: 767px) {
  
  .car-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
  }

  .price-button-car {
    width: auto;
    max-width: 80%;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .spec-list {
    font-size: 0.85rem;
    padding: 0.8rem;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  /* Jika perlu mendorong konten agar tidak kena padding */
  .car-carousel-container {
    padding: 1rem 0.75rem;
     max-width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
    
  }

  .car-image-wrapper {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .car-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
