/* HERO */
.products-hero {
  height: 50vh;
  background: url('../assets/images/chocolate cake.jpeg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.products-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(27,94,32,0.85),
    rgba(0,0,0,0.6)
  );
}

.products-hero .container {
  position: relative;
  z-index: 2;
}

/* FILTERS */
.filters {
  margin: 40px auto;
  text-align: center;
}

.filter-btn {
  padding: 10px 18px;
  border: none;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  background: #eee;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--green-main);
  color: white;
}

/* PRODUCTS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
}

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

.product-card h3 {
  padding: 10px;
}

.product-card p {
  padding: 0 10px 10px;
  color: #64748b;
}

.product-card button {
  margin: 10px;
}

/* hover */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 22px;
}

/* MOBILE */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}