/* Enhanced Cart Styles */
.cute-notification {
    border-radius: 1rem !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 2px solid rgba(59, 130, 246, 0.1) !important;
}

.cute-notification.swal2-success {
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.cute-notification.swal2-error {
    border-color: rgba(239, 68, 68, 0.2) !important;
}

/* Loading Spinner for Cart */
.cart-loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #ec4899;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: cart-spin 1s linear infinite;
}

@keyframes cart-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Cart Transitions */
.cart-item-enter {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.cart-item-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.cart-item-leave {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in;
}

.cart-item-leave-active {
    opacity: 0;
    transform: translateY(-10px);
}

/* Cart Badge Animation */
.cart-badge-bounce {
    animation: badgeBounce 0.6s ease-in-out;
}

@keyframes badgeBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Cart Button States */
.cart-button-loading {
    position: relative;
    color: transparent !important;
}

.cart-button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: cart-spin 1s linear infinite;
}

/* Success Animation */
.cart-success-checkmark {
    display: inline-block;
    transform: rotate(45deg);
    height: 1rem;
    width: 0.5rem;
    border-bottom: 2px solid #10b981;
    border-right: 2px solid #10b981;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 0.5rem;
        opacity: 1;
    }

    40% {
        height: 1rem;
        width: 0.5rem;
        opacity: 1;
    }

    100% {
        height: 1rem;
        width: 0.5rem;
        opacity: 1;
    }
}

/* Enhanced Offcanvas Animations */
.cart-offcanvas-content {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-offcanvas-content.show {
    transform: translateX(0);
}

/* Cart Empty State */
.cart-empty-bounce {
    animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Improved Z-index Management */
.cart-overlay {
    z-index: 998;
}

.cart-offcanvas {
    z-index: 999;
}

.cart-notification {
    z-index: 1000;
}

/* Responsive Improvements */
@media (max-width: 640px) {
    .cart-offcanvas {
        width: 100vw !important;
        max-width: none !important;
    }

    .cute-notification {
        max-width: calc(100vw - 2rem) !important;
        margin: 0 1rem !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cart-loading-spinner {
        border-color: #374151;
        border-top-color: #f472b6;
    }
}