/* ===== Products Page Styles (Optimized) ===== */

.section-heading {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #222;
}

.category-title {
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
  color: #333;
}

/* Responsive grid for all product groups */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 0.8rem;
}

.product-info h4 {
  font-size: 0.95rem;
  margin: 0.5rem 0;
  color: #333;
}

.product-info h4 a {
  color: inherit;
  text-decoration: none;
}

.product-info h4 a:hover {
  text-decoration: underline;
}

.product-info .price {
  font-size: 0.95rem;
  font-weight: bold;
  color: #00796b;
}

.btn-add-cart {
  background: #00796b;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  cursor: pointer;
}

.btn-add-cart:hover {
  background: #004d40;
}