/* 📌 Conteneur principal en 2 colonnes */
.s2member-cart-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

/* 📌 Colonne gauche (PANIER) */
.s2member-cart-left {
    flex: 1;
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.s2member-cart-right {
    flex: 2;
    background: #d0ebff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ Curseur "pointing finger" sur la croix de suppression */
.s2member-remove-item {
    cursor: pointer;
    color: red;
    font-weight: bold;
    margin-left: 10px;
}

/* ✅ Boutons "Ajouter au panier" */
.s2member-add-to-cart {
    background: #4db6ac;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    border: none;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
}

.s2member-add-to-cart:hover {
    background: #00897b;
}

.s2member-add-to-cart:active {
    background: #00695c;
    transform: scale(0.95);
}

/* ✅ Bouton "Vider le panier" */
#s2member-clear-cart {
    background: #42a5f5;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
    display: block;
    margin-top: 10px;
}

#s2member-clear-cart:hover {
    background-color: #1e88e5;
}

#s2member-clear-cart:active {
    background-color: #1565c0;
    transform: scale(0.95);
}

/* ✅ Style pour la liste des produits dans le panier */
#s2member-cart-list {
    list-style-type: none;
    padding: 0;
}

#s2member-cart-list li {
    background: #ffffff;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ✅ Popup d'ajout au panier */
.s2member-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.s2member-popup.show {
    opacity: 1;
    display: block;
}

.s2member-popup button {
    padding: 10px 15px;
    margin: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.s2member-continue {
    background: #66bb6a;
    color: white;
    transition: background 0.3s ease-in-out, transform 0.1s;
}

.s2member-continue:hover {
    background: #388e3c;
}

.s2member-continue:active {
    background: #1b5e20;
    transform: scale(0.95);
}

.s2member-goto-cart {
    background: #42a5f5;
    color: white;
    transition: background 0.3s ease-in-out, transform 0.1s;
}

.s2member-goto-cart:hover {
    background: #1e88e5;
}

.s2member-goto-cart:active {
    background: #1565c0;
    transform: scale(0.95);
}

/* ✅ Responsive */
@media screen and (max-width: 800px) {
    .s2member-cart-container {
        flex-direction: column;
    }

    .s2member-cart-left, .s2member-cart-right {
        flex: none;
        width: 100%;
    }
}
