.kategori-card .img-container {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  position: relative;
}

.kategori-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.kategori-card:hover .img-container img {
  transform: scale(1.05);
  filter: brightness(80%);
}

.kategori-card {
  transition: box-shadow 0.3s ease;
}

.kategori-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}


/* Optional: dark mode latar belakang */
.dark-mode {
  background-color: #121212;
  color: #e4e4e4;
}

.dark-mode .card {
  background-color: #1e1e1e;
  color: #fff;
}

  /* Buat gambar skala 4:5 */
  .img-fit-4by5 {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
  }

  /* Overlay gelap jika status sold */
  .sold-overlay {
    filter: brightness(0.5);
  }

  /* Tulisan SOLD */
  .sold-text {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 3px;
    font-size: 0.85rem;
    z-index: 10;
  }

  /* Hover efek zoom dan sedikit gelap untuk ready */
  a:hover .img-fit-4by5:not(.sold-overlay) {
    transform: scale(1.05);
    filter: brightness(0.85);
  }
  
  .sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  background-color: rgba(220, 53, 69, 0.85); /* Bootstrap red with opacity */
  padding: 10px 30px;
  border: 3px solid white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 2;
  text-transform: uppercase;
}

