/* PRODUCT HEADER OVERLAP */
.product-carousel {
  margin-top: -40px; /* Ini membuat section naik ke Hero */
  background: #fff;
  padding-top: 60px;
  text-align: center;
}

.product-header h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.product-header p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

/* ========== CAROUSEL SECTION ========== */
.product-carousel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1); /* bayangan lebih tebal dan gelap */
  padding: 40px 20px;
  margin: 40px auto;
}

.product-carousel h2 {
  font-size: 32px;
  margin: 16px 0 8px;
}

.product-carousel > p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #555;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0 10px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  justify-content: flex-start;
}

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

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal center */
  justify-content: center; /* vertical center */
  flex: 0 0 75%;
  scroll-snap-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  min-height: 240px; /* beri tinggi minimum jika ingin gambar sejajar rapi */
}

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

.product-item p {
  font-size: 14px;
  margin-top: 8px;
  color: #333;
  font-weight: 500;
}

/* ========== CAROUSEL BUTTONS ========== */
.carousel-btn {
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2;
}

.carousel-btn.left {
  left: 5px;
}

.carousel-btn.right {
  right: 5px;
}

@media (min-width: 768px) {
  .carousel-btn {
    display: none; /* ❌ Tombol disembunyikan di tampilan desktop */
  }
  .carousel {
    justify-content: center;
  }
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.product-item {
  flex: 0 0 30%;
}

/* ========== DESCRIPTION BELOW CAROUSEL ========== */
.product-description {
  padding: 20px;
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.highlight-text {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .product-carousel {
    padding: 24px 12px;
    margin: 20px 10px;
    border-radius: 12px;
  }

  .product-carousel h2 {
    font-size: 20px;
    margin: 12px 0 6px;
  }

  .product-carousel > p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .carousel {
    gap: 12px;
    padding-bottom: 8px;
  }

  .product-item {
    flex: 0 0 85%; /* item lebih lebar dari sebelumnya */
    padding: 8px;
    border-radius: 6px;
    min-height: 200px;
  }

  .product-item img {
    max-height: 140px;
  }

  .product-item p {
    font-size: 13px;
    margin-top: 6px;
  }

  .product-description {
    padding: 16px 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .highlight-text {
    font-size: 16px;
    margin-bottom: 10px;
  }
}
