/* Products Grid Layout */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-right: -2rem;
}

.product-card {
  flex: 0 0 calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  /* width: 100%; */
  height: 95%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 5px;
}

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

.product-title {
  padding: 1rem;
  text-align: center;
  background-color: #fff;
}

.product-title h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.product-subcategory {
  display: block;
  font-size: 0.9rem;
  color: #667;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .product-card {
    flex: 0 0 calc(50% - 2rem);
    max-width: calc(50% - 2rem);
  }
}

@media (max-width: 768px) {
  .product-grid {
    gap: 1.5rem;
    margin-right: 0;
  }
  .product-card {
    flex: 0 0 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 480px) {
  .product-grid {
    gap: 1rem;
    margin-right: 0;
  }
  .product-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
