/* Styles généraux */
body {
    font: 15px/1.55 Comic Sans MS,helvetica,sans-serif;
}
.contentheading {
    font-size: 18px;
    color: #CCCC00;
}
.vpf-scroll-top-button {
    background: #6B3F60 
}
#bottom {
    padding: 5px 0;
}
.feature .heading {
    font-size: 1.2em;  
    margin-bottom: 2px; 
}
.hover-invert-car {
    color: #000000;
}
.ajax-popup-product a {
    color: #fff;
    line-height: 1.1;
}
.modal-body{
    background: #464646 
}
.related-item-short-desc-cont {
    margin-top: 10px;
    text-align: left;
}
.top .vp-cookie-consent-content > p, .bottom .vp-cookie-consent-content > p, .top .vp-cookie-consent-content > .vp-cookie-consent-button, .bottom .vp-cookie-consent-content > .vp-cookie-consent-button{
    font-size: 11px;
    padding: 5px 50px;
}
.related-product .product-name {
    font-size: 1em;
}
.productdetails-view .related-product .PricebasePriceWithTax, .related-product .PricesalesPrice, .product-sales-price > div > span {
    font-size: 16px;
    line-height: 1em;
    text-decoration: none; 
}
.table-striped tbody > tr:nth-child(2n+1) > td, .table-striped tbody > tr:nth-child(2n+1) > th {
    background-color: #666666;
}
.table-hover tbody > tr:hover > td, .table-hover tbody > tr:hover > th {
    background-color: #222222;
}
.edit-address .group-enabled .title-group {
	width: 40%;
}
.edit-address .group-enabled .first_name-group {
	width: 60%;
}
#bottom a {
    text-decoration: underline;
}
#ProOPC .st-same-checkbox #STsameAsBT {
    margin-left: -10px;
}
.vpf-topbar a, .vpf-topbar .nav > li > a {
    color: #000000;
}
.empty-list {
    color: #000000;
}
.productdetails-view .product-rating-cont, .productdetails-view .product-short-desc-cont, .productdetails-view .product-price-stock-sku-cont, .productdetails-view .product-action-buttons-cont, .productdetails-view .product-addtocart-cont{
    border-bottom: 0 solid #eee;
}
.related-item-short-desc-cont {
    text-align: center;
}
.product-title {
    font-size: 35px;
    font-weight: normal;
    line-height: 35px;
    margin: 0 0 10px;
}
.remise {
    background-image: url("/images/shop_image/product/etiquette_remise.png");
    background-repeat: no-repeat;
    color: #fff;
    display: block;
    font-family: Calibri;
    font-size: 18px;
    font-weight: bold;
    height: 50px;
    padding-left: 15px;
    padding-top: 15px;
    vertical-align: middle;
    width: 119px;
}
.vmproductvmimport .modal {
    display: block;
    position: relative;
}
.neighbour-link {
    width: 100px;
}
.product-tag-left-children {
	position: relative;
	z-index: 11;
}
.cf_flt_wrapper{
    float:left;
    margin-right:-10px;
}
.cf_button, .cf_button:active, .cf_button:visited, .cf_button:link {
    background: #6B3F60;
    color: #555555 !important;
}
.cf_button:hover {
	background: #CCCC00 !important;
}
.bottom-slider {
    background-color: #333333;
}
#pb_header{display:none;}
.pb_productimage { 
    width: 100px;
    height: auto;
}
#pb_mainPage .groupSelectImg li {
    height: auto !important;
}
.groupSelectImg li img {
    height: auto !important;
}
.well {
    background-color: #333 !important;
}
.kit-summary-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #f6f8f8;
    border: 1px dashed #b3e0e0;
    border-radius: 5px;
}
.kit-summary-section h4 {
    font-size: 1.5em;
    color: #2a7f7f;
    margin-bottom: 10px;
}
#kit-summary-items ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 10px;
}
#kit-summary-items li {
    line-height: 1.6;
    color: #444;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 3px 0;
    border-bottom: 1px dotted #ccc;
}
#kit-summary-items li:last-child {
    border-bottom: none;
}
.summary-qty {
    font-weight: bold;
    color: #2a7f7f;
    min-width: 30px;
}
.summary-name {
    flex-grow: 1;
    margin-right: 10px;
}
.summary-base-price,
.summary-remise-label,
.summary-remise-price,
.summary-total-price {
    min-width: 80px;
    text-align: right;
    font-size: 0.9em;
    padding-left: 5px;
}
.summary-base-price {
    text-decoration: line-through;
    color: #999;
}
.summary-remise-label {
    color: #d9534f;
    font-weight: bold;
}
.summary-remise-price {
    font-weight: bold;
    color: #2a7f7f;
}
.summary-total-price {
    color: #333;
    font-weight: bold;
}
.kit-total-price {
    text-align: right;
    font-size: 1.6em;
    color: #000;
    margin-top: 15px;
    border-top: 2px solid #2a7f7f;
    padding-top: 10px;
}
.kit-total-price span {
    font-weight: bold;
    color: #d9534f;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
}
.img-flag {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}
/* -------------------------------------------
    VERSION ORDINATEUR (PC) - Produits Enfants
    (Plugin custom/children)
    -------------------------------------------
*/
.vmcustom-children-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* SAUT DE LIGNE : 20px de marge après le tableau */
    margin-bottom: 20px; 
    border-bottom: none; 
}
.vmcustom-child-product {
    display: grid;
    /* LARGEUR FINALE : Image (300px) | Nom/Détails (1fr) | Prix (auto) | Stock/Bouton (280px) */
    grid-template-columns: 300px 1fr auto 280px; 
    align-items: center !important; 
    border: 1px solid #ddd;
    border-top: none;
    background-color: transparent;
    cursor: default;
}
.vmcustom-child-product:first-of-type {
    border-top: 1px solid #ddd;
}
.vmcustom-child-product:hover {
    background-color: #222222;
}

/* Styles des cellules */
.product-info-column, .product-price, .product-addtocart {
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Bordures et positions */
.product-info-column {
    grid-column: 1 / 3;
    justify-content: flex-start;
    flex-direction: row;
    border-right: 1px solid #ddd;
}
.product-price {
    grid-column: 3;
    justify-content: center !important; 
    border-right: none;
}
.product-addtocart {
    grid-column: 4;
    justify-content: center; 
    border-left: 1px solid #ddd;
    cursor: pointer;
}

/* -------------------------------------------
    UNIFORMISATION ET ALIGNEMENT DES IMAGES
    -------------------------------------------
*/
/* Conteneur de l'image pour hauteur uniforme et centrage */
.vmcustom-child-product .product-image {
    width: 300px; 
    height: 100px; /* Hauteur fixe pour toutes les images (ajustez si besoin) */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}

/* Image elle-même pour l'adapter au conteneur sans être coupée */
.vmcustom-child-product .product-image img {
    max-width: 100%; 
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* L'image s'adapte sans être coupée */
    display: block; 
}

/* Ajustements de la structure pour un meilleur alignement */
.product-details {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.product-addtocart .addtocart-button {
    cursor: pointer;
}

/* -------------------------------------------
    CORRECTION AFFICHAGE DES PRIX ET STOCKS ENFANTS
    -------------------------------------------
*/

/* Prix barré des produits enfants */
.vmcustom-children-container .product-price .product-price-before-discount {
    text-decoration: line-through; 
    font-size: 1em !important;
    font-weight: normal; 
}
.vmcustom-children-container .product-price .PricesalesPrice {
    font-size: 1em !important;
    font-weight: bold; 
    text-decoration: none; 
}

/* Styles pour les messages de stock */
.product-addtocart .stock-info {
    display: block !important;
    text-align: center;
    margin-bottom: 5px;
    font-weight: normal;
    color: #ffffff !important;
    font-family: inherit;
    width: 100%;
}
.product-addtocart .stock-info.out-of-stock-message {
    margin: 5px 0 5px 0 !important;
    padding: 0 !important;
    text-align: center;
}

/* CORRECTION DE LA LARGEUR : Assure que le bouton "Me prévenir" prend toute la largeur */
.vmcustom-child-product .product-addtocart .addtocart-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important; 
    margin: 0 !important; 
    padding: 0 5px; 
    box-sizing: border-box;
}
.vmcustom-child-product .product-addtocart .addtocart-area .vm-stock-alert-form,
.vmcustom-child-product .product-addtocart .addtocart-area .vm-stock-alert-form button {
    width: 100% !important; 
}

/* ---------------------------------------------------- */
/* --- CORRECTION PRIX PARENT : ALIGNEMENT ET BARRÉ --- */
/* ---------------------------------------------------- */

/* Rétablit l'alignement à gauche du prix du produit parent et neutralise le centrage */
.col-sm-5 {
    text-align: left !important;
}
.product-price-stock-sku-cont {
    align-items: flex-start !important; 
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
}

/* Rétablit le barré du prix de base et l'alignement à gauche */
.product-price-stock-sku-cont .product-price-before-discount,
.product-price-stock-sku-cont .PricebasePriceWithTax {
    text-decoration: line-through !important; 
    text-align: left !important; 
    display: block !important;
    width: 100% !important;
}

/* S'assure que le prix net (de vente) et la remise sont alignés à gauche */
.product-price-stock-sku-cont .product-sales-price,
.product-price-stock-sku-cont .remise,
.product-price-stock-sku-cont .PricesalesPrice {
    text-align: left !important;
    display: block !important;
    width: 100% !important;
}

/* -------------------------------------------
    VERSION SMARTPHONE
    -------------------------------------------
*/
@media (max-width: 767px) {
    .vmcustom-children-container {
        border: none;
        gap: 15px;
        /* SAUT DE LIGNE : 20px de marge après le tableau */
        margin-bottom: 20px; 
        border-bottom: none; 
    }
    .vmcustom-child-product {
        display: flex;
        flex-direction: column;
        text-align: center;
        background-color: #555555;
        border: 1px solid #999;
        padding: 15px;
        cursor: default;
    }
    .vmcustom-child-product:hover {
        background-color: #454545;
    }
    .product-info-column, .product-price, .product-addtocart {
        width: 100%;
        text-align: center;
        border: none;
        padding: 0;
        margin-bottom: 10px;
    }
    .product-info-column {
        flex-direction: column;
        justify-content: center;
    }
    /* Uniformisation des images en mobile */
    .product-image {
        margin: 0 0 10px 0;
        height: 100px; /* Hauteur fixe pour le mobile */
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-image img {
        max-width: 120px;
        height: auto;
        object-fit: contain;
    }
    .product-details {
        margin: 0;
        color: #FFFFFF;
    }
    .product-price {
        text-align: center;
        color: inherit;
    }
    .product-addtocart {
        text-align: center;
        margin-bottom: 0;
    }
    .product-addtocart .addtocart-button {
        cursor: pointer;
    }
}
