/* Custom letter spacing utility */
.ls-2 {
    letter-spacing: 2px;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.75rem 1rem !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%) !important;
    background-size: 200% 200% !important;
    animation: gradient-shift 8s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    color: white !important;
}

.cart-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
    background-position: 100% 0 !important;
}

.cart-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

.cart-btn.success-state {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    animation: success-pulse 0.6s ease-out;
}

.cart-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.cart-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: icon-glow 6s ease-in-out infinite, float-gentle 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.cart-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-btn:hover .cart-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Badge styles removed - direct cart link */

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* Enhanced Animations */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes success-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes icon-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
    }
}

@keyframes badge-bounce {
    /* Removed - direct cart link */
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

/* Loading state enhancements */
.cart-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Success state icon */
.cart-icon.success {
    background: rgba(16, 185, 129, 0.2) !important;
}

.cart-icon.success::before {
    content: '✓';
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.cart-icon.success .bi {
    display: none;
}

/* Enhanced badge animations removed - direct cart link */

/* Additional hover and interaction effects */
.cart-icon.hover-glow {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(168, 85, 247, 0.6);
}

@media (max-width: 576px) {
    .cart-btn {
        padding: 0.75rem !important;
    }

    .cart-icon {
        font-size: 1.2rem;
    }
}