/* Common Product Card Styles */
.product-card {
  transition: transform 0.2s ease-in-out;
  height: 400px; /* Fixed height for all cards */
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

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

.product-card .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  height: 2.6rem; /* Fixed height for title (2 lines) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .card-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.4;
  height: 3.5rem; /* Fixed height for description (3 lines) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex: 1;
}

.product-card .d-flex.align-items-center {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.product-card .btn-add-to-cart {
  margin-top: auto;
  flex-shrink: 0;
}

/* Ensure consistent spacing */
.product-card .fw-bold.text-success {
  font-size: 1.1rem;
}

.product-card .text-muted.text-decoration-line-through {
  font-size: 0.9rem;
}



/* Loading spinner improvements */
.spinner-border {
  width: 2rem;
  height: 2rem;
} 