/* Modern Product Card Styling */

/* Product Grid Container */
.product-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Individual Product Card */
.product-card {
  flex: 1 0 calc(25% - 20px);
  min-width: 250px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Product Image Container */
.product-image {
  position: relative;
  overflow: hidden;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

.product-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product Content Container */
.product-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Product Title */
.product-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 2.8em;
}

/* Product CTA Button */
.product-cta-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #e63946;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.product-cta-button:hover {
  background-color: #c1272d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  color: #fff !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .product-card {
    flex: 1 0 calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .product-card {
    flex: 1 0 calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .product-card {
    flex: 1 0 100%;
  }
}
