/* style khusus product.php, load setelah style-base.css */

.product-page .section {
  padding: 60px 40px;
  text-align: center;
  background: #FFFFFF;
}

.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: #DCEAD3;
  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 #E8A33D;
  transform: translateY(-5px);
}

/* dots */
.product-page .dots {
  margin-top: 20px;
}

.product-page .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #C9D6C0;
  border-radius: 50%;
  margin: 5px;
  cursor: pointer;
}

.product-page .dot.active {
  background: #16301F;
}

/* processed vegetable */
.product-page .green {
  background: #F1F7ED;
}

.product-page .product-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.product-page .card.white {
  background: #FFFFFF;
  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: #5B6B54;
  font-style: italic;
  margin: 0 0 8px;
}

.card-price {
  font-size: 16px;
  color: #2E5233;
  font-weight: bold;
  margin: 0;
}

/* seedling */
.product-page .circle-card {
  width: 200px;
  height: 200px;
  background: #6FA46A;
  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: #2E5233;
  color: #FFFFFF;
  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: #16301F;
}

/* 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;
  }
}