.product-slider-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.product-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.product-item {
  flex: 0 0 auto;        /* card tidak menyusut, tapi tetap fleksibel */
  width: 300px;          /* lebar fix, lebih aman daripada min-width */
  margin: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: scale(1.05) rotateY(3deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.product-item img {
  max-width: 100%;   /* mengikuti lebar parent */
  height: auto;      /* menjaga proporsi gambar */
  object-fit: cover; /* gambar tetap rapi, tidak melebar */
  border-radius: 12px 12px 0 0;
}

.btn-detail {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin: 15px 0;
  transition: transform 0.2s ease;
  font-weight: 888;
  font-size: 17px;
}

.btn-detail:hover {
  transform: scale(1.08);
}

.nav-btns {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.nav-btns button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.nav-btns button:hover {
  background: rgba(0,0,0,0.8);
}