/* ========================= FUTURISTIC BUTTON EFFECT ========================= */
/* Modern futuristic hover effect cho button "Thêm vào giỏ hàng" */

.kc-product-card-quick-action-btn {
    position: relative;
    overflow: hidden;
    /* transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    -webkit-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    -moz-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    -ms-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); */
}

/* Animated gradient background */
.kc-product-card-quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: -1;
}

/* Glow effect ring */
.kc-product-card-quick-action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(204, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.6s ease;
    opacity: 0;
    z-index: -1;
}

/* Hover State */
.kc-product-card-quick-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(204, 0, 0, 0.4),
        0 0 30px rgba(204, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #cc0000 0%, #ff3333 100%);
}

/* Shine effect on hover */
.kc-product-card-quick-action-btn:hover::before {
    left: 100%;
}

/* Glow ring expansion on hover */
.kc-product-card-quick-action-btn:hover::after {
    width: 200%;
    height: 200%;
    opacity: 1;
}

/* Icon animation */
.kc-product-card-quick-action-btn:hover i {
    animation: cart-pulse 0.6s ease-in-out;
}

@keyframes cart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

/* Active/Click State */
.kc-product-card-quick-action-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(204, 0, 0, 0.5),
        0 0 20px rgba(204, 0, 0, 0.4);
}

/* Ripple effect on click */
.kc-product-card-quick-action-btn.ripple {
    animation: button-ripple 0.6s ease-out;
}

@keyframes button-ripple {
    0% {
        box-shadow: 
            0 0 0 0 rgba(204, 0, 0, 0.7),
            0 0 0 0 rgba(204, 0, 0, 0.7);
    }
    50% {
        box-shadow: 
            0 0 0 15px rgba(204, 0, 0, 0),
            0 0 0 30px rgba(204, 0, 0, 0);
    }
    100% {
        box-shadow: 
            0 0 0 15px rgba(204, 0, 0, 0),
            0 0 0 30px rgba(204, 0, 0, 0);
    }
}

/* Particle effect (optional enhancement) */
.kc-product-card-quick-action-btn:hover {
    animation: subtle-shake 0.3s ease-in-out;
}

@keyframes subtle-shake {
    0%, 100% {
        transform: translateY(-3px) scale(1.05) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) scale(1.05) rotate(-1deg);
    }
    75% {
        transform: translateY(-3px) scale(1.05) rotate(1deg);
    }
}

/* Text glow effect */
.kc-product-card-quick-action-btn:hover span {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Focus state for accessibility */
.kc-product-card-quick-action-btn:focus {
    outline: 3px solid rgba(255, 165, 0, 0.6);
    outline-offset: 3px;
    box-shadow: 
        0 0 0 4px rgba(204, 0, 0, 0.2),
        0 8px 20px rgba(204, 0, 0, 0.4);
}

/* Loading state (optional) */
.kc-product-card-quick-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.kc-product-card-quick-action-btn.loading i {
    animation: cart-loading 1s linear infinite;
}

@keyframes cart-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Success state (after add to cart) */
.kc-product-card-quick-action-btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    animation: success-pulse 0.5s ease-out;
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    /* Reduce effects on mobile for performance */
    .kc-product-card-quick-action-btn:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .kc-product-card-quick-action-btn::after {
        display: none; /* Disable glow ring on mobile */
    }
}

/* Responsive - maintain base styles */
@media (min-width: 768px) {
    .kc-product-card-quick-action-btn {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .kc-product-card-quick-action-btn:hover {
        outline: 2px solid currentColor;
        outline-offset: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .kc-product-card-quick-action-btn,
    .kc-product-card-quick-action-btn::before,
    .kc-product-card-quick-action-btn::after,
    .kc-product-card-quick-action-btn i {
        animation: none !important;
        transition: none !important;
    }
    
    .kc-product-card-quick-action-btn:hover {
        transform: none;
    }
}

