/* ============================================================
   NB Printing Sablon - Katalog Produk Styles
   ============================================================ */

/* ---------- PAGE HEADER ---------- */
.katalog-page-header {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
}

/* ---------- CATEGORY TABS ---------- */
.category-tabs-wrapper {
  position: relative;
}

.category-btn {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-btn.active,
.category-btn:hover {
  background-color: var(--bs-primary, #1B84FF) !important;
  color: #fff !important;
  border-color: var(--bs-primary, #1B84FF);
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
  border: 1px solid var(--bs-gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
  border-color: transparent;
}

.product-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img .product-placeholder {
  font-size: 4rem;
  opacity: 0.2;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

/* Category badge overlay */
.product-card-img .product-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.75rem;
}

.product-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body .product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.35rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-body .product-desc {
  font-size: 0.85rem;
  color: #6d7b8e;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Price & specs row */
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1B84FF;
}

.product-price .price-start {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6d7b8e;
  display: block;
}

.product-stock {
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------- PRODUCT DETAIL MODAL ---------- */
#kt_product_detail_modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

.detail-img-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.detail-img-wrapper .detail-placeholder {
  font-size: 6rem;
  opacity: 0.15;
}

.detail-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cat-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B84FF;
  margin-bottom: 1rem;
}

.detail-price .price-start {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6d7b8e;
}

.detail-desc {
  font-size: 0.95rem;
  color: #5a6b7e;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Detail specs table */
.detail-specs {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.detail-specs dl {
  margin: 0;
}

.detail-specs .spec-row {
  display: flex;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e4e7ed;
}

.detail-specs .spec-row:last-child {
  border-bottom: none;
}

.detail-specs .spec-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3e4a5a;
  width: 130px;
  flex-shrink: 0;
}

.detail-specs .spec-value {
  font-size: 0.85rem;
  color: #5a6b7e;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-actions .btn {
  flex: 1;
  min-width: 140px;
}

/* ---------- ANIMATIONS ---------- */
.product-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .product-card-img {
    height: 180px;
  }

  .detail-img-wrapper {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .product-card-img {
    height: 160px;
  }

  .detail-img-wrapper {
    height: 200px;
  }

  .category-btn {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.75rem !important;
  }

  .detail-actions .btn {
    flex: 1 1 100%;
    min-width: 100%;
  }
}
