.section-all-kategori {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
      to top,
      rgba(234, 157, 55),
      rgba(242, 210, 81, 0.9),
      rgba(242, 210, 81, 0.9),
      rgba(251, 177, 67)
    ),
    url("../img/background/bg-kategori.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  overflow: hidden;
}

.container h3 {
  text-align: center;
}

.section-all-kategori .container {
  padding-top: 7rem;
  padding-bottom: 10rem;
}

.product-card-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card {
  width: 100%;
  aspect-ratio: 1 / 1; /* Menjaga rasio 1:1 untuk card */
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease; /* Transisi untuk card */
}

.product-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%; /* Ukuran cahaya, bisa disesuaikan */
  height: 200%; /* Ukuran cahaya, bisa disesuaikan */
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0) 35%
  );
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none; /* Agar cahaya tidak mengganggu interaksi dengan elemen lain */
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Menjaga gambar tetap mengisi seluruh card */
  transform: scale(0.9);
  z-index: 99;
  transition: transform 0.3s ease, opacity 0.3s ease; /* Transisi untuk gambar */
}

.product-card:hover img {
  transform: scale(1); /* Efek zoom saat hover */
  opacity: 0.9; /* Efek transparansi saat hover */
}

.container-card .product-name {
  text-align: center;
  color: white;
  position: relative; /* Agar teks berada di atas gambar */
  z-index: 2; /* Agar teks tetap di atas efek cahaya dan gambar */
}

/* Khusus Footer */
.section-all-kategori .bg-footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: -10;
  padding-top: 4rem;
}

.section-all-kategori .bg-footer .icons-footer {
  width: 100%;
  z-index: 0;
}

@media (max-width: 768px) {
  .section-all-kategori .container {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
