.inventory-section {
  padding: 2rem 2rem;
  background: #fff;
  text-align: center;
}

.inventory-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.inventory-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border-top: 4px solid #c1964c; /* Garis gold di atas */
  cursor: pointer;
}

.inventory-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.inventory-info {
  padding: 1rem;
}

.inventory-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* Hover efek */
.inventory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(193, 150, 76, 0.4); /* Glow gold */
}

/* Default disembunyikan */
.inventory-card.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Saat ditampilkan */
.inventory-card.show {
  display: block;
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Tombol toggle */
#toggleBtn {
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #c1964c;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#toggleBtn:hover {
  background: #a87c2d;
}

/* Responsif untuk tablet */
@media (max-width: 992px) {
  .inventory-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsif untuk HP */
@media (max-width: 600px) {
  .inventory-container {
    grid-template-columns: 1fr;
  }
}

/* Inventory Popup */
.inventory-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75); /* lebih gelap biar fokus */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px); /* efek blur background */
}

.inventory-content {
  background: #fff;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: popupFade 0.3s ease;
  border-top: 4px solid #c1964c; /* aksen gold */
}

.inventory-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: contain;
}

.inventory-content h3 {
  font-size: 1.5rem;
  color: #2b2111;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}

.inventory-content .popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.inventory-content .popup-close:hover {
  color: #c1964c;
}

@keyframes popupFade {
  from {opacity: 0; transform: scale(0.85);}
  to {opacity: 1; transform: scale(1);}
}
