/* =====================================================================
   STYLE-PRODUCT.CSS — khusus product.php
   Wajib di-load SETELAH style-base.css
   ===================================================================== */

.product-page .section {
  padding: 60px 40px;
  text-align: center;
  background: var(--white);
}

.product-page .section h2 {
  font-family: 'Times New Roman', serif;
  font-size: 40px;
  margin-bottom: 40px;
}

/* ================= SLIDER ================= */
.product-page .slider-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: auto;
}

.product-page .slider {
  position: relative;
  overflow: hidden;
  width: 80%;
  border-radius: 16px;
}

.product-page .slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.product-page .slide {
  min-width: 100%;
}

/* ================= PRODUCT GRID ================= */
.product-page .product-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ================= PRODUCT CARD (overrides the base .card from style-base.css) ================= */
.product-page .card {
  width: 260px;
  height: 260px;
  background: var(--sage-200);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.product-page .card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 20px;
}

.product-page .card p {
  margin-top: 10px;
  font-family: 'Times New Roman', serif;
  font-size: 16px;
}

.product-page .card:hover {
  border: 3px solid var(--amber);
  transform: translateY(-5px);
}

/* ================= DOTS ================= */
.product-page .dots {
  margin-top: 20px;
}

.product-page .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--border-soft);
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

.product-page .dot.active {
  background: var(--forest-900);
}

/* ================= PROCESSED VEGETABLE ================= */
.product-page .green {
  background: var(--sage-100);
}

.product-page .product-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.product-page .card.white {
  background: var(--white);
  height: auto;
  padding: 20px;
  justify-content: flex-start;
}

.card-name {
  font-size: 17px;
  font-weight: bold;
  margin: 12px 0 4px;
  font-family: 'Times New Roman', serif;
}

.card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 8px;
}

.card-price {
  font-size: 16px;
  color: var(--forest-700);
  font-weight: bold;
  margin: 0;
}

/* ================= SEEDLING ================= */
.product-page .circle-card {
  width: 200px;
  height: 200px;
  background: var(--forest-500);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.product-page .circle-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* ================= DETAIL BUTTON (link ke seedlingdetail.php) ================= */
.detail-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 35px;
  background-color: var(--forest-700);
  color: var(--white);
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.detail-btn:hover {
  background-color: var(--forest-900);
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 768px) {
  .product-grid,
  .product-row {
    flex-direction: column;
    align-items: center;
  }

  .product-page .card {
    width: 90%;
    max-width: 300px;
    height: auto;
    padding: 20px;
  }

  .product-page .card img {
    width: 100%;
    max-width: 220px;
    height: 220px;
  }

  .circle-card {
    width: 220px;
    height: 220px;
  }

  .circle-card img {
    width: 160px;
    height: 160px;
  }
}
