/* product.css — styles for the Products page */

/* ========= Hero Banner ========= */
.product-hero {
  width: 100%;
  overflow: hidden;
  margin-bottom: 3rem;
}

.product-banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0 0 16px 16px;
}

/* ========= Product Grid Layout ========= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
}

/* ========= Product Card Styling ========= */
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h4 {
  font-size: 1rem;
  color: #2e7d32;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

/* ========= Hover Effects ========= */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ========= Responsive Fixes ========= */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 1rem;
  }

  .product-card h4 {
    font-size: 0.95rem;
  }
}
