

/* Conteneur général des filtres */
.boutique-filtres {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Filtres parents et enfants en grille responsive */
.boutique-filtres-parent,
.boutique-filtres-enfant {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Boutons filtres (parents & enfants) */
.filtre-bouton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centre verticalement */
    text-align: center;
    width: 100px;
    height: 100px;
    padding: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    gap: 0.3rem;
}

.filtre-bouton:hover {
    background-color: #f9f9f9;
}

/* Images dans les boutons */
.filtre-bouton img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.2s;
}

.filtre-bouton:hover img {
    transform: scale(1.05);
}

/* Texte dans les boutons */
.filtre-bouton span {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Bouton actif */
.filtre-bouton.active {
    border-color: #0ADA5F;
    background-color: #0ada6132;
}

.filtre-bouton.active span {
    color: #2B364A;
    font-weight: bold;
}

/* Curseur prix */
.filtre-prix {
    text-align: center;

}

#prix-range {
    width: 300px;
    margin-top: 0.5rem;
color: #0ADA5F;
}

/* Grille de produits */
.produits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.produits-container {
  padding: 1rem;
  width: 80%;
  margin: auto;

}

.produit-item {
    width: calc(25% - 1.5rem);
    min-width: 200px;
    border: 2px solid black;
    padding: 5px;
    border-radius: 15px;
    transition: 0.5s ease;
}

.produit-item li{
 display: flex;
 flex-direction: column;
 align-items: center;
}

.produit-item:hover {
    transition: 0.5s ease;
 
    border: 2px solid #0ADA5F;

}

.produit-item a{
   color: black;
   text-decoration: none;
   transition: 0.5s ease;
   display: flex;
   flex-direction: column;
   align-items: center;

}

/* Style général du bouton */
.produit-item .add_to_cart_button {
    background-color: #DFE1E4;
    color: black;
    border: 1px solid #0ADA5F;
    border-radius: 5px;
    padding: 0.6rem 1rem;
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    max-width: 180px;
 transition: 0.5s ease;
}

/* Effet au survol */
.produit-item .add_to_cart_button:hover {
    background-color: white;
    color: #0ADA5F;
    transition: 0.5s ease;
    border: 1px solid #0ADA5F;
}

/* Pour garder le bouton centré */
.produit-item .add_to_cart_button {
    display: inline-block;
    text-align: center;
}


.produit-item a:hover{
    color: #2B364A;
    transition: 0.5s ease;

 }

.produit-item img{
   max-width: 100%;
   height: auto;
   display: block;
   margin: auto;

}

.produit-item li {
    list-style: none;
}

.onsale {
    display: none;
}

.produits-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
   
}

.groupe-parent {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.boutique-section-parent{
    margin-top: 2rem;
font-size: 35px;
width: 100%;
border-bottom: 3px solid #0ADA5F;
text-transform: capitalize;
font-weight: bold;

}

.boutique-section-enfant{
margin-bottom: 1rem;
font-size: 25px;
font-weight: bold;
text-transform: capitalize;

}

.woocommerce-loop-product__title {
    font-size: 20px;
    font-weight: bold;
}


.boutique-recherche {
    margin: 20px 0;
    text-align: center;
}
#recherche-produit {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


@media screen and (max-width: 768px) {
    .produit-item {
        width: 100%;
        margin: auto;
    }

    .filtre-bouton {
        width: 90px;
        height: 90px;
    }

    .filtre-bouton img {
        width: 40px;
        height: 40px;
    }

    #prix-range {
        width: 90%;
    }
}
