@import url('https://fonts.googleapis.com/css2?family=Edu+NSW+ACT+Cursive:wght@400..700&family=Great+Vibes&family=Imperial+Script&family=Lobster&family=Permanent+Marker&family=Salsa&family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
  background-color: #E9DFD5;
  font-family: 'Poppins', sans-serif;
  color: #3A3A3A; /* Paragraph text color */
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: #3A3A3A;
}


.products-section {
  padding: 40px 20px;
  background: #E9DFD5;
  /* black background like your site */
  gap: 150px;

}

.products-heading {
   /* font-family: 'Edu NSW ACT Cursive', cursive; */
   font-family: 'Playfair Display', serif;
  font-size: 50px;
  font-weight: 700;
  text-align: center;
   color:#350404;
   margin-top: -20px;
  letter-spacing: 2px;
}

.products-section p {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #000;
  text-align: center;
  /* centers text horizontally */
  margin: 10px auto;
  /* centers block if it has width */
  max-width: 800px;
  /* optional: keeps paragraph from stretching too wide */
  line-height: 1.6;
}

.category-gallery {
  display: grid;
  gap: 80px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  /* 4 per row */

}



.category-gallery .cat-item {
  position: relative;
  overflow: visible;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.category-gallery .cat-item img {
  width: 100%;
  height: 300px;
  /* fixed height so grid looks even */
  object-fit: cover;
  /* crop to fit nicely */
  transition: transform 0.4s ease;
   display: block;
  border-radius: 12px;
}

.category-gallery .cat-item .cat-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0.6);
  /* dark overlay for text */
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.category-gallery .cat-item:hover img {
  transform: scale(1.1);
}

.category-gallery .cat-item:hover .cat-text {
  background-color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 900px) {
  .category-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

@media (max-width: 600px) {
  .category-gallery {
    grid-template-columns: 1fr; /* 1 per row */
  }
}
