/* products.css - Categorized Layout + Responsive */

/* Category Section */
.category-section {
  margin-bottom: 3.5rem;
  padding: 1.5rem 0;
  border-bottom: 2px solid #ffe0b3;
}

.category-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.category-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: #d4380d;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #ff8c42;
  border-radius: 2px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 0 0.5rem;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  border-color: #ff8c42;
}

.product-image {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-name {
  font-size: 1rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}

/* Example Mixes Section */
.example-mixes {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
}

.images-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.image-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.mix-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .category-title {
    font-size: 1.6rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  .product-image {
    font-size: 2.2rem;
    height: 60px;
  }
  .product-name {
    font-size: 0.9rem;
  }
  .example-mixes {
    margin-top: 3rem;
  }
  .images-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-title {
    font-size: 1.4rem;
  }
}
