/*
Theme Name: Woodmart Child
Theme URI: http://woodmart.xtemos.com
Description: Thème enfant pour Woodmart
Author: Custom
Author URI: 
Template: woodmart
Version: 1.0
Text Domain: woodmart
*/

/* Ce fichier sera chargé automatiquement. Ajoutez ici vos personnalisations CSS */

/* ============================================
   SCROLL TO TOP - Centré au lieu de à droite
   ============================================ */
.scrollToTop {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100%) !important;
}
.scrollToTop.button-show {
    transform: translateX(-50%) !important;
}
@media (max-width: 1024px) {
    .scrollToTop {
        right: auto !important;
        left: 50% !important;
    }
}

/* Checkout - alignement vertical des lignes */
.woocommerce-checkout-review-order-table tfoot tr {
    align-items: flex-start !important;
}

/* ============================================
   SELECTS - Design aligné avec les boutons popup
   ============================================ */
body.single-product table.variations select,
body.single-product .variations select,
body.single-product select[name^="attribute_"],
body.single-product .dpw-option-select,
body.single-product :root select {
    width: 100% !important;
    height: 44px !important;
    padding: 0 40px 0 16px !important;
    background-color: #fff !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2271b1 !important;
    line-height: 44px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 10px !important;
    box-shadow: none !important;
}

body.single-product table.variations select:hover,
body.single-product .variations select:hover,
body.single-product select[name^="attribute_"]:hover,
body.single-product .dpw-option-select:hover {
    background-color: #f0f0f0 !important;
    border-color: #ddd !important;
}

body.single-product table.variations select:focus,
body.single-product .variations select:focus,
body.single-product select[name^="attribute_"]:focus,
body.single-product .dpw-option-select:focus {
    outline: none !important;
    border-color: #ddd !important;
    box-shadow: none !important;
}

/* Checkbox verte quand une option est sélectionnée */
body.single-product .select-has-value {
    position: relative;
}

body.single-product .select-has-value::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: #28a745;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

body.single-product .select-has-value select {
    padding-left: 40px !important;
}

/* Pas de checkbox verte pour l'attribut couleur (pa_color) */
body.single-product .pc-attribute-group[data-attribute="pa_color"] .select-has-value::before {
    display: none;
}