   
    
    h1 {
      text-align: center;
      font-size: 2.4rem;
      margin-bottom: 2rem;
      color: #1f1f1f;
    }

    .grid-container {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }

     
  
  .grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  border: 1px solid #000; /* thin black border */
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #333; /* slightly darker on hover */
}


.product-card img {
  width: 100%;
  height: 220px; /* Set a fixed height for the image */
  object-fit: contain; /* 🔁 Fit image without cropping */
  background-color: #fff; /* Optional: looks cleaner with gaps */
  padding: 10px; /* Optional: some breathing space inside image box */
  box-sizing: border-box;
}

.product-info {
  padding: 1rem 1.2rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.2rem;
  margin: 0.4rem 0;
  color: #222;
}

.product-info p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.cta-container {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ff6f61;
  background: linear-gradient(145deg, #ffc1b3, #caffc4); /* light red to green */
  color: #222;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.35s ease;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

.cta-button:hover {
  background: linear-gradient(145deg, #ff9999, #a9f7b6);
  color: #111;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.explore-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(to right, #2E7D32, #A5D6A7);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.explore-btn:hover {
  background: linear-gradient(to right, #ff6a4d, #ffb26b);
  transform: scale(1.05);
}





.product-card {
  display: none; /* Hide all by default */
}

.product-card:nth-child(-n+8) {
  display: block; /* Show only the first 8 */
}



.loading-indicator {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00b894;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .product-card {
  height: 450px; /* 🔺 Increased card height */
   
}
}