/**
 * CSS simplifié pour la popup d'ajout au panier
 * À placer dans /modules/votre_module/views/css/popup_cart.css
 */

#popup-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
}

#popup-cart {
    background-color: #0080c3;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
}

.popup-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #f8f8f8;
    border-radius: 5px 5px 0 0;
}

.popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #fff;
}

.popup-body {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.popup-image {
    flex: 0 0 50%;
}

.popup-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.popup-content {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    color: #fff;
}

.popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 0 0 5px 5px;
}

.popup-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #2fb5d2;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-button:hover {
    background-color: #1e93ab;
    text-decoration: none;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .popup-body {
        flex-direction: column;
    }

    .popup-image {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .popup-image img {
        max-height: 150px;
    }
}
