/* ============================================= */


/* ================== DESKTOP ================== */


/* ============================================= */


/* ---- Zone produit générale ---- */

.product-detail-inner {
    font-family: "Poppins", Arial, sans-serif !important;
    color: #333 !important;
}


/* ---- Catégorie produit ---- */

.product-brand a {
    font-size: 0.9em !important;
    color: #777 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}


/* ---- Titre produit ---- */

.product_title.entry-title {
    font-size: 2em !important;
    font-weight: 700 !important;
    margin: 10px 0 20px 0 !important;
    color: #222 !important;
}


/* ---- SKU + meta ---- */

.product-meta {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    font-size: 0.9em !important;
    color: #555 !important;
    margin-bottom: 15px !important;
}

.product-meta span {
    font-weight: 600 !important;
}


/* ---- Prix produit ---- */

.product-price-wrapper .price {
    font-size: 1.8em !important;
    font-weight: 700 !important;
    color: #000 !important;
}

.product-price-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    background: #fff !important;
    margin-bottom: 20px !important;
}


/* ---- État du stock ---- */

/* Style pour les produits en stock */
.product-stock.in-stock {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    color: #4caf50 !important;
    background: #e8f5e9 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}

/* Style pour les produits en réapprovisionnement */
.product-stock.out-of-stock {
    font-size: 0.9em !important;
    font-weight: 600 !important;
    color: #ff9800 !important;
    background: #fff3e0 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}



/* ---- Amélioration du bloc ims-product-info ---- */

.ims-product-info {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}


/* ---- Titre + logo aligné ---- */

.ims-title-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.ims-product-title {
    font-size: 1.4em !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
}

.ims-brand-logo {
    max-height: 28px !important;
    width: auto !important;
}


/* ---- Liste des caractéristiques ---- */

.ims-product-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ims-product-features li {
    font-size: 1em !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 8px !important;
    position: relative !important;
}

.ims-product-features li strong {
    font-weight: 600 !important;
    color: #222 !important;
}


/* ---- Bloc complet variations (table + tbody) avec même style que les autres blocs ---- */

table.variations {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 0 25px 0 !important;
    table-layout: auto !important;
}

table.variations tbody {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
}


/* ---- Supprime le comportement natif gênant ---- */

table.variations tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
}


/* ---- Label (gauche) ---- */

table.variations th.label {
    font-size: 1em !important;
    font-weight: 600 !important;
    color: #222 !important;
    flex: 0 0 100% !important;
    margin-bottom: 10px !important;
}


/* ---- Value (droite) ---- */

table.variations td.value {
    flex: 0 0 100% !important;
    padding: 0 !important;
}


/* ---- Select (grand + premium) ---- */

table.variations select {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 1.1em !important;
    line-height: 1.4 !important;
    color: #333 !important;
    background-color: #f9f9f9 !important;
    width: 100% !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    margin-bottom: 15px !important;
}

table.variations select:focus {
    border-color: #4caf50 !important;
    outline: none !important;
    background-color: #fff !important;
}


/* ---- Swatches dans le même container ---- */

.cfvsw-swatches-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
}


/* ---- Style du swatch sélectionné ---- */

.cfvsw-swatches-option.cfvsw-selected-swatch {
    border-color: #000 !important;
    /* ✅ Bordure noire premium */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
    /* ✅ Halo discret */
}


/* ---- Swatch individuel amélioré ---- */

.cfvsw-swatches-option {
    min-width: 56px !important;
    min-height: 56px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.cfvsw-swatches-option:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.cfvsw-swatches-option.selected {
    border-color: #000 !important;
}


/* ---- Swatch cercle intérieur ---- */

.cfvsw-swatch-inner {
    width: 100% !important;
    height: 100% !important;
    border-radius: 100% !important;
}


/* ---- Bouton reset variations "x Effacer" dans le container ---- */

table.variations a.reset_variations {
    align-content: center;
}


/* ---- Conteneur global Rednao ---- */

.RNAddToCartContainer {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 25px !important;
    font-family: "Poppins", Arial, sans-serif !important;
}


/* ---- Label des champs ---- */

.rednaoLabel label {
    font-weight: 600 !important;
    font-size: 1em !important;
    color: #333 !important;
    margin-bottom: 5px !important;
    display: inline-block !important;
}


/* ---- Dropdowns ---- */


/* ---- Dropdown Rednao corrigé ---- */

.rnInputPrice {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 1.1em !important;
    line-height: 1.4 !important;
    height: auto !important;
    color: #333 !important;
    background-color: #f9f9f9 !important;
    transition: border-color 0.3s ease !important;
    width: 100% !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
}


/* ---- Focus encore plus chic ---- */

.rnInputPrice:focus {
    border-color: #4caf50 !important;
    outline: none !important;
    background-color: #fff !important;
}


/* ---- Espacement des groupes d’options ---- */

.rednaoWooRow {
    margin-bottom: 20px !important;
}


/* ---- Icône dans le champ (serrure) ---- */

.RNPlaceholderIcon {
    color: #bbb !important;
}


/* ---- Bloc total options ---- */

.rnTotalBox {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    font-size: 0.95em !important;
    color: #222 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}


/* ---- Prix dans bloc total ---- */

.rnTotalBox .price {
    font-weight: 700 !important;
    font-size: 1.2em !important;
    color: #000 !important;
}


/* ============================================= */


/* ================== MOBILE =================== */


/* ============================================= */

@media (max-width: 768px) {
    /* ---- Container général ---- */
    .product-detail-inner,
    .ims-product-info,
    table.variations tbody,
    .RNAddToCartContainer,
    .woocommerce-variation-add-to-cart {
        padding: 15px 15px !important;
        /* margin-bottom: 20px !important; */
        box-sizing: border-box !important;
    }
    table.variations.cfvsw-variation-disable-logic {
        margin-bottom: 10px !important;
    }
    /* ---- Titre produit ---- */
    .product_title.entry-title {
        font-size: 1.6em !important;
        margin: 8px 0 15px 0 !important;
    }
    .product-price-wrapper .price {
        font-size: 1.5em !important;
    }
    /* ---- Swatch size reduced ---- */
    .cfvsw-swatches-option {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    /* ---- Selects Woo + Rednao : corrige débordement ---- */
    select,
    .rnInputPrice,
    .RNAddToCartContainer select {
        padding: 10px 14px !important;
        font-size: 0.95em !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 58px !important;
    }
    /* ---- Correction spécifique Rednao icône serrure ---- */
    .RNAddToCartContainer .rednaoWooField select {
        padding-left: 34px !important;
        /* place pour l’icône serrure */
    }
    .RNPlaceholderIcon svg {
        font-size: 14px !important;
    }
    /* ---- Rednao Rows ---- */
    .rednaoWooRow {
        margin-bottom: 15px !important;
    }
    /* ---- Total box Rednao en colonne ---- */
    .rnTotalBox {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 15px !important;
        font-size: 0.9em !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }
    .rnTotalBox label,
    .rnTotalBox .price {
        font-size: 1em !important;
        width: 100% !important;
    }
    /* ---- Effacer aligné ---- */
    table.variations a.reset_variations {
        font-size: 0.85em !important;
        margin-left: 5px !important;
    }
}


/* ---- Bloque WooCommerce add-to-cart comme bloc normal ---- */

.woocommerce-variation-add-to-cart {
    position: static !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 25px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}


/* ---- Optionnel : pour mobile = même cohérence ---- */

@media (max-width: 768px) {
    .woocommerce-variation-add-to-cart {
        padding: 15px 15px !important;
        margin-bottom: 20px !important;
    }
}




/* ---- Traduction Produits "Options amount" et "Final Total"---- */

.rnTotalBox label {
    text-indent: -9999px;
    line-height: 0;
}