/* General body and font styles */
body {
  background-color: white;
  color: black;
  font-family: Verdana, sans-serif;
}

/* Navbar and Footer */
.navbar, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
  background: transparent;
}

.nav-link, .navbar-brand {
  color: #000;
  cursor: pointer;
}

.nav-link:hover {
  color: #502649;
}

.row.g-4 > .col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== Product Grid & Cards ===== */
#product-list-container {
  margin-top: 1rem;
}

/* Make all cards same height and spacing */
.product-item .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Card hover effect */
.product-item .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-item .card-img-top {
  width: 100%;
  height: 300px; /* fixed height */
  overflow: hidden;
  position: relative;
  object-fit: cover;
  max-height: 300px;
  
}
.product-item .card-img-top img {
  width: 232px;
  height: 100%;
  object-fit: cover;
}

.product-item img {
  width: 100%;
  aspect-ratio: 3 / 4; /* portrait score cover */
  object-fit: cover;
}

/* Image: keep aspect ratio (3:4 vertical), fill width, and crop if needed 
.product-item .card-img-top {
  width: 100%;
  height: auto;
 object-fit: cover; 
  max-height: 250px;  Optional: Adjust this based on your design */

  /* Fallback for aspect-ratio (3:4) 
  position: relative;
  padding-top: 133.33%; */ /* Aspect ratio (3:4) */
}

/* .product-item .card-img-top img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

} */

/* Card body styling to ensure consistent height and spacing */
.product-item .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card title styling */
.product-item .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Card text styling */
.product-item .card-text {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Sort bar */
#sort-by {
  min-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-item .card-img-top {
    height: 200px; /* Adjust image height for smaller screens */
  }
}

/* Add consistent spacing between the products */
.row-cols-1, .row-cols-sm-2, .row-cols-md-3, .row-cols-lg-4 {
  gap: 20px; /* Adjust the gap between the products */
}


/* Make sure each product item expands to fill its column */
.product-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;  /* Ensures the card expands to fill the column */
}
