
@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');
@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap');



*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'poppins',sans-serif;
}
:root{
 
  --dark-color:#222222;
  --icon-color:#fff;
  --font-size-p:14px;
  --color-descrp:#555;
  --color-titre-h3:#3a3a3a;
  --body-color:#f5f6f9;
  --text-color:#666666;
  --border-color:#6666662a;
  --font-siz-p-mobil:12px;
 --font-size-h1:16px;

 
  }
   
body{
    font-family: 'poppins',sans-serif;
    background: #f5f6f9 !important;
    line-height: 1.5;
  } 
  
.box{
    width:98%;
    margin: auto;
    position: relative;
  
}


.main-container {
    margin: 50px auto;
    position: relative;
   
}
.main-container{
  margin-top: 190px !important;
}

 .category-title{
   color: var(--color-titre-h3);
   font-size: 2rem;
    margin-bottom: 15px;
    text-align: left;
    /* font-weight: bold; */
    
}

.category-title{
    position: relative;
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
 }
 .category-title::after{
    content: '';
    position: absolute;
    bottom: -1px;
    width: 200px;
    height: 2px;
    left: 0;
    background: var(--dark-color);
 }

.product-grid {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, max(250px, 1fr)); /* Adaptative grid */
    margin-bottom: 50px;
   
}



.product-card {
   position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    height: 380px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--icon-color);
  }




.product-card:hover {
    transform: translateY(-5px);
} 

.product-image {
  height: 280px;
  width: 100%;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* Utilise 'cover' pour remplir le conteneur */
  border-bottom: 2px solid var(--border-color); 
  background: var(--border-color); 
}

   
   /* Conteneur des détails du produit */
.productDetails{
  /* display: flex;
  flex-direction: column; */
  padding: 10px;
  margin-top:5px;
  font-size: 14px;
  color: var(--color-titre-h3);

 
}

/* 
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  } */



.product-name {
    font-size: 16px;
    margin: 0;
  }

.product-price {
    font-size: 16px;
    margin-top: 5px;
    color:#C33333;
    font-weight: bold;
  }







/* Icônes (like et chariot) */
.product-icons {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    
  }
  
  .product-icons .pruduct-icon{
    display: flex;
  }
  .product-icons button{
    border: none;
    background: none;
    margin-right: 15px;
  }
  /* Style pour les icônes */
  .product-icons i {
    font-size: 16px;
    margin-bottom: 5px;
    cursor: pointer;
    color: var(--dark-color);
  }
  .product-icons button:hover{
    background: none !important;
  }
  


  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  .pagination button {
    margin: 0 10px;
    padding: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    border: none;
    cursor: pointer;
   
  }
  
  .pagination button:hover {
    background-color:var(--main-color1);
  }
  
  .pagination span {
    font-size: 18px;
    color: #333;
  }
  
  .no-results {
    display: none; /* Initialement masqué */
    text-align: center; /* Centrer le texte */
    margin-top: 20px; /* Marge au-dessus du message */
    font-size: 18px; /* Taille de la police */
    color: #ff0000; /* Couleur du texte (rouge) */
    font-weight: bold; /* Gras */
}

/* Grid responsives */
@media (min-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr); /* 5 colonnes pour les écrans à partir de 1600px */
    }
    
.box {
    width:95%;
}
}

@media (max-width: 1599px) and (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr); /* 4 colonnes entre 1200px et 1599px */
    }
      
.box {
    width:95%;
}
}

@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour tablette */
    }
      
.box{
    width:95%;
}
}

@media (max-width: 768px) {
             
.box {
  width:100% !important;
  padding: 10px;
}
  .product-grid {
    
      grid-template-columns: repeat(2, 1fr) !important; /* 2 colonnes pour mobile */
      gap:8px;
  }
}

@media (max-width:400px){
  .product-grid{
      grid-template-columns: repeat(1, 1fr) !important;
  }
}
