/* Tinggi container produk di desktop/tablet agar bisa scroll */
.product-list {
  max-height: auto;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .product-list {
        max-height: 450px;
        scroll-behavior: smooth;
        overflow-y: auto;
        overflow-x: hidden; position: relative; /* ← tambahkan ini */
    }
}

@media (min-width: 1200px) {
    .product-list {
        max-height: 650px;
         scroll-behavior: smooth;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative; /* WAJIB */
    }
}


/* Gambar header pakai aspect-ratio supaya proporsional */
.card-header-img {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

/* Overlay hitam transparan */
.overlayimage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Ribbon promo */
.ribbon {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 2;
  padding: 5px 12px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  font-weight: bold;
  font-size: 0.85rem;
}
