
#productModal {
    position: fixed;
    z-index: 1050; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); 
    display: flex;
    align-items: center; 
    justify-content: center; 
}


.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border-radius: 10px; 
    z-index: 2000; 

}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}


#modalBody {
    display: flex;
    justify-content: space-evenly; 
    flex-wrap: wrap; 
    padding: 10px; 

}

.produit-compare {
    flex: 1 1 20%; 
    max-width: 24%;
    box-sizing: border-box; 
    margin: 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.img_product_container {
    position: relative;
    width: 250px;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}


.img_product_container:hover .remove-product {
    display: flex;
}

.img_product {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.woocommerce-loop-product__title {
    font-size: 1.2em; 
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    color : var(--Bleu);

}

.woocommerce-loop-product__title:hover {
    color: var(--Bleu-clair);
}

.description {
    color: #555; 
    font-size: 1em;
    margin-top: 5px; 
    height: max-content;
    overflow: hidden; 
}


.remove-product {
    background-color: transparent;
    color: var(--Rouge);
    font-size: xx-large;
    position: absolute;
    padding: 1%;
    margin-top: 5%;
}

.remove-product:hover {
    color: var(--Rouge-fonce);
    background-color: transparent;
}


.research-compare_product
{
    margin-top: 8% !important;
}
