/* ====== Kad Produk ====== */
.product-card {
  border: none;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ====== Container gambar (standardize size) ====== */
.image-container {
  position: relative;
  width: 100%;
  height: 480px; /* 👈 ubah tinggi semua gambar supaya sama */
  overflow: hidden;
}

/* ====== Gaya gambar ====== */
.img-front,
.img-back {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop gambar supaya saiz seragam */
  border-radius: 15px 15px 0 0;
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out, filter 0.7s ease-in-out;
}

/* ====== Gambar belakang mula-mula sembunyi ====== */
.img-back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  filter: blur(10px); /* blurkan dulu gambar belakang */
  transform: scale(1.05);
}

/* ====== Hover: tukar gambar + efek blur lembut ====== */
.image-container:hover .img-front {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.05);
}

.image-container:hover .img-back {
  opacity: 1;
  filter: blur(0px); /* hilangkan blur masa gambar belakang muncul */
  transform: scale(1);
}

/* ====== Info produk ====== */
.product-info {
  padding: 15px;
  background: #fff;
}

.product-name {
  font-size: 17px;
  font-weight: 600;
  margin: 5px 0 10px;
  color: #333;
}

.old-price {
  font-size: 14px;
  text-decoration: line-through;
  color: #888;
  margin-bottom: 3px;
}

.new-price {
  font-size: 16px;
  font-weight: bold;
  color: #b89b5e;
}

/* ====== Sembunyikan benda tak perlu ====== */
.stock,
.actions {
  display: none !important;
}

/* ====== Hover effect pada nama ====== */
.product-card:hover .product-name {
  color: #b89b5e;
  transition: color 0.3s ease;
}

/* Pastikan cursor jadi tangan bila hover */
.image-container a {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* Supaya gambar tak ada border bila jadi link */
.image-container a img {
  border: none;
  display: block;
  width: 100%;
  height: 100%;
}
