/* ============= NOTIFICATIONS TOAST ============= */

.toast-notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    right: 20px;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-icon i {
    font-size: 1.8rem;
}

.toast-success .toast-icon i {
    color: #28a745;
}

.toast-error .toast-icon i {
    color: #dc3545;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* ============= BADGES COMPTEURS ============= */

.action-icon {
    position: relative;
    transition: all 0.3s ease;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--biir-burgundy);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============= ANIMATIONS ============= */

@keyframes badge-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 41, 66, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(107, 41, 66, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 41, 66, 0);
    }
}

.action-icon.pulse {
    animation: pulse 0.8s;
}

/* Animation pour les icônes actives */
.action-icon-active {
    background: rgba(107, 41, 66, 0.1);
    border-color: var(--biir-burgundy);
}

.action-icon-active i {
    color: var(--biir-burgundy);
}

/* ============= RESPONSIVE ============= */

@media (max-width: 768px) {
    .toast-notification {
        right: -100%;
        left: auto;
        min-width: auto;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .toast-notification.show {
        right: 20px;
        left: 20px;
    }
    
    .badge-count {
        top: -6px;
        right: -6px;
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
}

/* ============= BOUTONS PRODUITS ============= */

.product-action-btn {
    transition: all 0.3s ease !important;
}

.product-action-btn:active {
    transform: scale(0.9);
}

/* État actif pour wishlist */
.product-action-btn-wishlist-active {
    background: var(--biir-burgundy) !important;
    color: white !important;
    border-color: var(--biir-burgundy) !important;
}

.product-action-btn-wishlist-active i {
    color: white !important;
}

/* ============= EFFETS DE CHARGEMENT ============= */

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============= ANIMATIONS D'APPARITION ============= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.fade-out {
    animation: fadeOut 0.3s ease;
}