/* ===========================================
   OVERLAY D'INFORMATIONS PRODUIT
   =========================================== */

#product-content {
    position: relative; /* Contexte de positionnement pour l'overlay */
}

.product-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-info-overlay .overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.product-info-overlay .overlay-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-info-overlay.active .overlay-panel {
    transform: translateX(0);
}

.product-info-overlay .overlay-gradient {
    width: 40%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 1) 100%);
}

.product-info-overlay .overlay-panel-content {
    width: 60%;
    background: white;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow: hidden;
    height: 100vh;
}

.product-info-overlay .overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height:80px;
    padding: 0 120px 0 100px;
    text-transform: uppercase;
}

.product-info-overlay .overlay-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    background-image: url("../assets/icons/black-informations-icon.svg");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 40px;
    padding-left: 60px;
}

/* Icône différente quand on affiche les commentaires */
.product-info-overlay.is-comments .overlay-header h3 {
    background-image: url("../assets/icons/black-comments-icon.svg");
}

.product-info-overlay .overlay-close {
    background: #000;
    border: none;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../assets/icons/icon-close-white.svg");
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: center center;
}

.product-info-overlay .overlay-close:hover {
    background-size: 30px 30px;
}

.product-info-overlay .overlay-body {
    flex: 1;
    padding: 50px 100px;
}

.product-info-overlay .loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1em;
    color: #666;
}

.product-info-overlay .error-message {
    text-align: center;
    padding: 40px 20px;
    color: #d9534f;
}





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

@media (max-width: 1400px){}
@media (max-width: 1200px){

    .product-info-overlay .overlay-gradient{width:15%;background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgb(255, 255, 255) 100%);}
    .product-info-overlay .overlay-panel-content{width:85%;}

    .product-info-overlay .overlay-header{padding: 0 0px 0 100px!important;}

}

@media (max-width: 768px){

    .product-info-overlay{height: 100vh;height: 100dvh;}

    .product-info-overlay .overlay-gradient{width:0%;display:none;}
    .product-info-overlay .overlay-panel-content{width:100%;}
    .product-info-overlay .overlay-panel-content{height: 100vh;height: 100dvh;max-height: 100vh;max-height: 100dvh;}

    .product-info-overlay .overlay-header{
        width:100%;
        padding: 0px 0px 0px 40px!important;
        margin: 0 auto;
        background:#000;
    }

    .product-info-overlay .overlay-header h3{
        color:#FFF;
        font-size:1em;
        padding-left: 40px;
        background-image: url("../assets/icons/white-informations-icon.svg");
        background-size: 30px;
        padding-left: 50px;
    }
    
    
    .product-info-overlay .overlay-body{padding:7%;overflow:auto;-webkit-overflow-scrolling:touch;}

    .overlay-section-content .info-section h4 {
        font-size: 1.2em;
    }

    .overlay-section-content .info-section li strong {
        min-width: 100px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px){

    .product-info-overlay .overlay-header{width:100%;padding: 0px 0px 0px 40px!important;margin: 0 auto;}
}
