/* --- Mise en page globale --- */
.woocommerce #primary {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%; 
}
.woocommerce ul.products li.product a img, 
.woocommerce-page ul.products li.product a img {
    border: none;
    box-shadow: none;
}  
/* --- SECTION RECHERCHE BOUTIQUE FSG --- */

/* 1. Placement à droite au-dessus des images */
.fsg-search-container {
    width: 100%;
    display: flex;
    justify-content: flex-end; 
    margin: 20px 0 40px 0;
    padding: 0 15px; 
}

/* 2. Le formulaire de recherche (le conteneur 'pilule') */
.fsg-search-container form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 30px; 
    padding: 5px 5px 5px 20px;
    width: 100%;
    max-width: 350px; 
    box-sizing: border-box;
}

/* 3. Le champ de saisie texte (input) */
.fsg-search-container input[type="search"],
.fsg-search-container .search-field {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* 4. Le bouton 'RECHERCHER' */
.fsg-search-container input[type="submit"],
.fsg-search-container .search-submit {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap; 
}

#sidebar {
    display: none;
}
.fsg-search-container form {
    display: flex;
    align-items: center; 
}

/* Force les images des catégories à reprendre leur taille */
.product-category img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important; /* Pour éviter de les déformer */
    display: block !important;
    margin: 0 auto !important;
}

/* Si les cadres blancs sont aussi devenus trop petits */
.product-category {
    width: 100% !important;
    max-width: none !important;
}

/* --- LE VERROU ULTIME (Version Finale) --- */
html body.archive ul.products li.product-category a img {
    width: 100% !important;
    height: 220px !important; /* Ajusté pour laisser de la place au texte */
    max-width: none !important;
    padding: 0 !important;
    object-fit: cover !important;
    border-radius: 15px 15px 0 0 !important; /* Arrondi uniquement en haut */
    display: block !important;
}

html body.archive ul.products li.product-category {
    padding: 0 !important;
    border: 2px solid #08006b !important;
    border-radius: 18px !important;
    background-color: #fff !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

html body.archive ul.products li.product-category .woocommerce-loop-category__title {
    padding: 15px 5px !important;
    margin: 0 !important;
    font-size: 14px !important;
    text-align: center !important;
    width: 100% !important;
}

/* Style de la description sous le titre dans le cadre */
.fsg-cat-desc {
    font-size: 13px !important;
    color: #4a4a4a !important;
    padding: 5px 10px 15px 10px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
}

/* On réduit l'espace sous le titre pour que la description soit proche */
html body.archive ul.products li.product-category .woocommerce-loop-category__title {
    padding-bottom: 2px !important;
    margin-bottom: 0 !important;
}

/* Cache le nombre de produits (ex: (4)) dans les catégories */
mark.count {
    display: none !important;
}

/* Grossir le titre des catégories (Accessoire, Bijoux, etc.) */
html body.archive ul.products li.product-category .woocommerce-loop-category__title {
    font-size: 22px !important; /* Ajuste ce chiffre selon tes préférences */
    font-weight: 700 !important; /* Pour un aspect plus gras et affirmé */
    color: #000000 !important;   /* Pour qu'ils ressortent bien en noir */
    margin-top: 15px !important;
    margin-bottom: 5px !important;
}

/* Optionnel : Ajuster la taille sur mobile si c'est trop gros */
@media (max-width: 768px) {
    html body.archive ul.products li.product-category .woocommerce-loop-category__title {
        font-size: 18px !important;
    }
}

/* Supprimer la barre de recherche par défaut de WooCommerce */
.woocommerce-product-search {
    display: none !important;
}