/* We will remove the broad pvtfw_variant_table_block hiding */
.lelog-subcats-list li a:hover {
    color: #fd5e13 !important;
}
.lelog-category-sidebar {
    border-right: 1px solid #eee;
}
@media (max-width: 768px) {
    .lelog-category-sidebar {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    .lelog-category-main {
        width: 100% !important;
        padding-top: 20px;
    }
}

/* Fix LOG-3: Repositionnement titre Options disponibles */
#variant-table { clear: both; padding-top: 30px; font-weight: bold; font-size: 1.2em; text-align: left; margin-bottom: 15px; }

/* Fix LOG-3: Couleurs des prix et boutons sur les fiches et catégories produits */
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce-Price-amount {
    color: #fd5e13 !important;
}

/* Boutons WooCommerce (Choix des options, Ajouter au panier, Demander un devis, etc.) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #fd5e13 !important;
    border-color: #fd5e13 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.pvtfw_variant_table_block .add-to-cart button:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* Bouton spécifique "Voir les prix" (plugin variantes) */
.available-options-btn button.available-options-btn {
    background-color: #fd5e13 !important;
    color: #ffffff !important;
}
.available-options-btn button.available-options-btn:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Boutons "Ajouter au panier" spécifiques dans le tableau des variantes */
.pvtfw_variant_table_block .add-to-cart button.pvtfw_add_to_cart_button {
    background-color: #fd5e13 !important;
    color: #ffffff !important;
    border: none;
}
.pvtfw_variant_table_block .add-to-cart button.pvtfw_add_to_cart_button:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Fix LOG-3: Design des onglets de la fiche produit */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background-color: #333333 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    padding: 12px 24px !important;
}

/* Hover des onglets inactifs */
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover {
    background-color: #555555 !important;
}

/* Onglet actif */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: #fd5e13 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #ffffff !important;
}

/* Panneau de contenu de l'onglet */
.woocommerce div.product .woocommerce-tabs .panel {
    background-color: #fcfcfc !important;
    padding: 30px !important;
    border-radius: 4px !important;
    margin-bottom: 40px !important;
    border: 1px solid #eeeeee !important;
}

/* Fix LOG-3: Espacement entre le tableau des variantes et les onglets */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 50px !important;
    clear: both !important;
}

/* Fix LOG-3: Mise a jour de product_title */
.woocommerce div.product .product_title {
    padding: 0 !important;
    margin-bottom: .75rem !important;
    line-height: 1em !important;
}

/* Fix LOG-3: Force la couleur orange sur le prix principal de la fiche produit */
.woocommerce div.product .summary.entry-summary .price span.woocommerce-Price-amount.amount,
.summary.entry-summary .price span.woocommerce-Price-amount.amount,
.summary.entry-summary .price bdi {
    color: #fd5e13 !important;
}

/* Fix LOG-3: Masquer les tableaux de variantes hardcodés et les boutons PVTFW si pas d'options (prix non renseigné) */
}

/* Fix LOG-3: Rendre visible le tableau informatif, masquer uniquement le titre "Options disponibles" et le bouton PVTFW */
}

/* Fix LOG-3: Style propre pour les tableaux de données dans la description produit */
.woocommerce div.product .woocommerce-tabs .panel table.lelog-standard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}
.woocommerce div.product .woocommerce-tabs .panel table.lelog-standard-table th {
    background-color: #333333;
    color: #ffffff;
    padding: 10px 15px;
    text-align: left;
    border: 1px solid #333333;
}
.woocommerce div.product .woocommerce-tabs .panel table.lelog-standard-table td {
    padding: 10px 15px;
    border: 1px solid #eeeeee;
    text-align: left;
}
.woocommerce div.product .woocommerce-tabs .panel table.lelog-standard-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Masquer la balise p vide qui contenait Options disponibles */
p#variant-table:empty {
    display: none !important;
}

/* Fix LOG-3: Rendre le bouton devis de la page single product conforme (orange -> noir au hover) */
.lelog-devis-btn-container a.lelog-btn-devis {
    background-color: #fd5e13 !important;
    border-color: #fd5e13 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    padding: 12px 24px;
    font-weight: bold;
    display: inline-block;
}
.lelog-devis-btn-container a.lelog-btn-devis:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

/* Masquer le bouton PVTFW Voir les prix s'il persiste */
body.lelog-no-purchasable-options .available-options-btn {
    display: none !important;
}

/* Fix LOG-3: Masquer totalement l'ancienne image Demande de Devis sur la single-product */
.woocommerce-product-details__short-description img[src*="btn.jpg"] {
    display: none !important;
}
.woocommerce-product-details__short-description a:has(img[src*="btn.jpg"]) {
    display: none !important;
}

/* Cache globalement et de force le vieux bouton devis image ! */
img[src*="btn.jpg"] {
    display: none !important;
}

/* Fix LOG-5: Uniformiser la taille des images sur la page de résultats de recherche */
body.search-results .w-grid-list .w-grid-item .post_image img {
    height: 250px !important;
    width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    background-color: transparent !important;
}

/* Fix LOG-5: Design avancé de la grille de résultats de recherche */
body.search-results .w-grid-list .w-grid-item-h {
    border: 1px solid #eeeeee !important;
    padding: 15px !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: box-shadow 0.3s ease !important;
}

body.search-results .w-grid-list .w-grid-item-h:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

/* On s'assure que l'image et le titre prennent la place en haut */
body.search-results .w-grid-list .w-grid-item-h .usg_post_image_1,
body.search-results .w-grid-list .w-grid-item-h .usg_post_title_1 {
    flex-grow: 0 !important;
}

/* Marge sous le titre pour pousser le bouton vers le bas */
body.search-results .w-grid-list .w-grid-item-h .usg_post_title_1 {
    margin-bottom: 20px !important;
}

/* Le bouton "Voir" ajouté dynamiquement via le filtre (ou via flexbox) */
.lelog-search-btn-wrapper {
    margin-top: auto !important;
    text-align: center !important;
}

.lelog-search-btn-wrapper a.lelog-search-btn {
    display: inline-block !important;
    background-color: #fd5e13 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    width: 100% !important;
}

.lelog-search-btn-wrapper a.lelog-search-btn:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* Fix LOG-7: Uniformiser les cartes produits partout (Home, Catégories, Recherche) */
.woocommerce ul.products li.product {
    border: 1px solid #eeeeee !important;
    padding: 15px !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important; /* Ajout transition pour le survol */
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important; /* Ombre douce au survol */
    border-color: #dddddd !important;
}

.woocommerce ul.products li.product img {
    max-width: 100% !important;
    height: 180px !important;
    width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
    flex-grow: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    flex-grow: 1 !important;
    font-size: 14px !important;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
}

/* Fix LOG-7: Redesign des titres de la page d'accueil (Meilleures ventes, Promotions) */
body.home h3.fancy.titlefeatured {
    font-family: "Open Sans", sans-serif !important;
    font-size: 25px !important;
    background-color: #48535D !important; /* Fond gris/bleu foncé */
    color: #ffffff !important; /* Texte blanc */
    font-weight: 900 !important; /* Très gras */
    padding: 10px 0 !important;
    margin-bottom: 30px !important;
}

/* Fix LOG-7: Style spécifique des boutons dans les cartes (Global) */
.woocommerce ul.products li.product .button {
    background-color: #fd5e13 !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Fix LOG-7: Typographie globale de TOUS les boutons du site */
button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"], 
.button, 
.btn,
.lelog-btn-devis,
.lelog-search-btn {
    font-family: "Open Sans", sans-serif !important;
    text-transform: uppercase !important;
}

/* Fix LOG-7: Augmenter la taille de typo de tous les champs de saisie */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select,
#adressemail {
    font-size: 16px !important;
}
