/* ============================================================
   pages/product-card.css
   Product Card Styles - TOMBOL SEJAJAR PASTI
   ============================================================ */

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--brand-200);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain; /* Ganti dari cover ke contain */
  background: var(--bg-muted);
  padding: 8px; /* Kasih jarak biar gak nempel */
}

/* Atau kalo mau background putih biar netral */
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #ffffff;
  padding: 12px;
  transition: transform 0.3s ease;
}

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

.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-muted), var(--bg-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
  min-height: 200px; /* FORCE tinggi minimum biar area tombol sama */
}

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-brand);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.product-card-name {
  font-size: 15.5px;
  font-weight: 700;
  margin: 6px 0 8px;
  color: var(--text-primary);
}

.product-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkitline-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 38px;
}

.product-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-600);
  margin-top: 12px;
  margin-bottom: 4px;
  min-height: 28px; /* FORCE tinggi harga biar sama */
}

.product-card-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
}

.product-card .btn-primary {
  margin-top: 14px !important;
}