/* =====================================================
   CONFIGURATEUR PERSONNALISATION - VERSION PREMIUM
===================================================== */


/* =====================================================
   LAYOUT GLOBAL
===================================================== */

div#product-features-tab-content {
    background: white;
    z-index: 10;
    position: relative;
}

section.page-product-box {
    background: white;
}

.box-info-product {
    /* background: white; */
    z-index: 10;
    position: relative;
}


.nv-config-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
}


/* =====================================================
   COLONNE IMAGE (DESKTOP)
===================================================== */

/* ===============================
   IMAGE FIXED SMART
=============================== */

.nv-image-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
}

/* état fixed */
.nv-next-block {
    left: 0;
    position: absolute;
    right: 4px;
    text-align: right;
}

button.nv-next-btn {
    font-size: 19px;
    border: 1px solid #eee;
    background: white;
    font-weight: bold;
    padding: 5px;
    border-radius: 7px;
}

.nv-image-wrap.is-fixed {
    position: fixed;
    top: 162px; /* hauteur header */
    width: 41%;
    /* max-width: 900px; */
    /* transition: all 1s ease; */
    /* left: 0; */
}

/* état bottom stop */

.nv-image-wrap.is-bottom {
    position: fixed;
    bottom: 0;
    top: 162px;
    /* top: -200px; */
    /* left: auto; */
    z-index: -20;
    width: 41%;
}

.nv-image-col {
    /* flex: 0 0 50%; */
    /* max-width: 100%; */
    /* position: fixed; */
}

/* Sticky plein écran */
.pb-left-column {
    /* position: fixed; */
    /* clear: both; */
    /* width: 50%; */
    /* top: 360px; */
}

.pb-right-column {
    /* margin-left: 56%; */
}

.nv-image-wrap {
    /* position: sticky; */
    /* top: 120px; */ /* hauteur header */
    /* height: calc(100vh - 140px); */
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: flex-start; */
    /* transition: all 1s ease; */
}

/* Ombre quand sticky actif */

.nv-image-wrap.is-sticky {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transform: translateY(-5px);
    background: #fff;
    padding: 15px;
    border-radius: 14px;
}

/* Image principale */

.nv-image-wrap #bigpic {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Canvas superposé */

.nv-image-wrap #nv-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}


/* =====================================================
   RESUME CONFIGURATION
===================================================== */

.nv-summary {
    margin-top: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    font-size: 14px;
}

.nv-summary h4 {
    margin: 0 0 10px 0;
}

.nv-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}


/* =====================================================
   BOUTON DOWNLOAD
===================================================== */

.nv-download {
    margin-top: 15px;
    text-align: center;
}

.nv-download button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
}

.nv-download button:hover {
    background: #333;
}


/* =====================================================
   COLONNE OPTIONS
===================================================== */

.nv-options-col {
    flex: 1;
    max-width: 100%;
}


/* =====================================================
   ACCORDEON
===================================================== */

.nv-group-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.nv-group-title {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nv-selected {
    font-size: 13px;
    color: #888;
}

.nv-accordion-content {
    display: none;
    margin-top: 20px;
}

.nv-group-block.active .nv-accordion-content {
    display: block;
}


/* =====================================================
   OPTIONS
===================================================== */

.nv-values {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nv-value-item {
    width: 110px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    background: #fafafa;
    cursor: pointer;
    transition: 0.2s ease;
}

.nv-value-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nv-value-item.active {
    border: 2px solid #000;
    background: #fff;
}

.nv-value-item img {
    max-width: 70px;
    max-height: 70px;
    margin-bottom: 8px;
}

.nv-value-label {
    font-size: 13px;
}


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

@media (max-width: 992px) {

    .nv-config-layout {
        flex-direction: column;
        gap: 30px;
    }

    .nv-image-col,
    .nv-options-col {
        max-width: 100%;
        flex: 100%;
    }

    .nv-image-wrap {
        position: relative;
        top: auto;
        height: auto;
    }

    .nv-image-wrap #bigpic {
        max-height: none;
    }

}