/**
 * Cart Enhancements CSS
 * Minimal overrides to ensure cart badge updates work with theme's original design
 */

/* ═══════════════════════════════════════════════════════════════
   BADGE PULSE ANIMATION
   ═══════════════════════════════════════════════════════════════ */

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.badge-pulse {
    animation: badgePulse 0.6s ease-in-out !important;
}

/* ═══════════════════════════════════════════════════════════════
   USER DROPDOWN ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    opacity: 0.8;
}

.user-avatar {
    transition: transform 0.3s ease;
}

.user-dropdown:hover .user-avatar {
    transform: scale(1.1);
}

.user-dropdown-menu {
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu li a:hover {
    background: #f3f4f6 !important;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   ADD TO CART BUTTON STATES
   ═══════════════════════════════════════════════════════════════ */

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important;
    border-color: #16a34a !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border-color: #dc2626 !important;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -20px;
        min-width: 180px;
    }

    .user-dropdown-toggle span {
        display: none;
    }

    .user-dropdown-toggle .fa-chevron-down {
        display: none;
    }
}