@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,600&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;

}
  /* — Hero avec image de fond — */
.hero {
  margin-top:70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/image/imageprod.png");  /* essaie aussi ../image/... si besoin */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 90vh;
  color: #fff;
  text-align: center;
  z-index: 1;
}


.hero::before {
  content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   width: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)); 
   z-index:-1;
   background-size: cover;
   background-position: center;
  
}


/* S’assure qu’aucune ancienne règle ne casse l’image */

    .hero-text h1{font-size:3rem;margin-bottom:12px;color:var(--bg)}
    .hero-text p{font-size:1rem;color:var(--bg)}


.product-section {
  margin-bottom: 20px;
}

.product-section h2 {
  padding: 30px;
  text-align: center;
  font-size: 2rem;
  color: #2c522b;
}

.wrapper {
  width: 90%;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.home_product {
  padding: 60px 0;
  margin-top: 40px;
}

.product-carde {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  cursor: pointer;
  height: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
}

.product-carde img {
  height: 260px;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background-color: #6666662a;
  align-items: center;
  justify-content: center;
  display: block;
  border-bottom: 1px solid #5d8c4a;
}

.product-info h3 {
  font-size: 14px;
  color:#323232;
  margin-top:15px;
  width: 100%;
}

.overlay {
  font-size: 14px;
  color: #5d8c4a;
  font-weight: 800;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.overlay button {
  background: #fff;
  border: none;
  height: 35px;
  width: 35px;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.overlay button i {
  font-size: 18px;
}

.overlay button:hover {
  background-color: #5d8c4a;
  color: white;
}

.product-carde:hover .overlay {
  opacity: 1;
}

/* Grid responsives */
@media (min-width: 1600px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
   .hero-text h1{font-size:2rem;}
       .hero-text p{font-size:14px;}
}

@media (max-width: 768px) {
  .category-title {
    font-size: 1.5rem;
  }
  .hero-text h1{font-size:2rem;}
       .hero-text p{font-size:14px;}
  .wrapper {
    width: 100%;
    padding: 10px;
  }

  .main-container {
    margin-top: -10px !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-info h3{
    font-size:13px;
  }

  .product-price {
    font-size:13px;
  }
}

@media (max-width: 500px) {
  .product-grid {
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
  }
    .product-info h3 {
    font-size:13px;
  }
   .hero-text h1{font-size:2rem;}
       .hero-text p{font-size:14px;}
    .wrapper {
      width: 90%;
      margin: 0 auto;
    }
  .product-carde {
    max-width: 100%;
    height: 400px !important;
    margin-bottom: 20px;
  }

}
