/* Overlay de chargement */
.cart-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.cart-loading-overlay.fade-out {
    opacity: 0;
}

.cart-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications de panier */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 9999;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 300px;
}

.cart-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification.success {
    border-left: 4px solid #4CAF50;
}

.cart-notification.error {
    border-left: 4px solid #F44336;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.view-cart-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 8px;
}

.close-notification {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}