
/* SalePageCraft ULTIMATE Motion FIXED - บังคับเล่นทุกเอฟเฟค! */

/* 1. Shimmer Button - แสงวิ่งผ่านปุ่ม - บังคับเล่น */
.spc-btn, .spc-messenger-btn, .elementor-button {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
}
.spc-btn::before, .spc-messenger-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent) !important;
    z-index: 3 !important;
    animation: spc-shine-move 2.5s infinite !important;
    pointer-events: none !important;
}
@keyframes spc-shine-move {
    0% { left: -100% !important; }
    100% { left: 100% !important; }
}
.spc-shimmer::before {
    animation: spc-shine-move 2s infinite !important;
}

/* 2. Floating - รูปลอย */
@keyframes spc-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.spc-card img, .spc-product-image img {
    animation: spc-float 5s ease-in-out infinite !important;
    will-change: transform;
}
.spc-float { animation: spc-float 5s ease-in-out infinite !important; }

/* 3. Pulse Badge - ป้ายกระพริบ */
.spc-badge, .spc-pulse {
    animation: spc-pulse 2s infinite !important;
}
@keyframes spc-pulse {
    0% { transform: translateX(-50%) scale(1); box-shadow: 0 0 0 0 rgba(244,114,182,0.7); }
    70% { transform: translateX(-50%) scale(1.08); box-shadow: 0 0 0 12px rgba(244,114,182,0); }
    100% { transform: translateX(-50%) scale(1); }
}
.spc-pulse-btn {
    animation: spc-pulse-blue 2s infinite !important;
}
@keyframes spc-pulse-blue {
    0% { box-shadow: 0 12px 32px rgba(0,132,255,0.35), 0 0 0 0 rgba(0,132,255,0.7) !important; }
    70% { box-shadow: 0 12px 32px rgba(0,132,255,0.35), 0 0 0 15px rgba(0,132,255,0) !important; }
    100% { box-shadow: 0 12px 32px rgba(0,132,255,0.35), 0 0 0 0 rgba(0,132,255,0) !important; }
}

/* 4. Card Lift - Hover เด้ง */
.spc-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; }
.spc-card:hover { transform: translateY(-10px) !important; box-shadow: 0 35px 90px rgba(244,114,182,0.3) !important; }

/* 5. Banner Shine Sweep */
.seasy-promo-banner, .spc-promo-banner {
    position: relative !important;
    overflow: hidden !important;
}
.seasy-promo-banner::before, .spc-promo-banner::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%) !important;
    animation: spc-shine-sweep 3s infinite !important;
    pointer-events: none !important;
}
@keyframes spc-shine-sweep { 0%{transform:rotate(45deg) translateX(-100%)} 100%{transform:rotate(45deg) translateX(100%)} }

/* 6. Price Count Up */
.spc-price-count {
    display: inline-block !important;
    font-weight: bold !important;
    color: #BE185D !important;
    font-size: 32px !important;
}
.spc-price-count.counting { animation: spc-count-glow 0.5s ease !important; }
@keyframes spc-count-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); text-shadow: 0 0 20px rgba(190,24,93,0.5); }
    100% { transform: scale(1); }
}

/* 7. Countdown Flash */
.spc-countdown { background: linear-gradient(135deg,#1E293B,#BE185D) !important; color:#fff !important; padding:32px !important; border-radius:24px !important; text-align:center !important; position:relative !important; overflow:hidden !important; }
.spc-countdown.urgent { animation: spc-urgent-flash 1s infinite !important; }
@keyframes spc-urgent-flash {
    0%,100% { background: linear-gradient(135deg,#1E293B,#BE185D) !important; }
    50% { background: linear-gradient(135deg,#BE185D,#EF4444) !important; }
}
.spc-countdown-timer span {
    display: inline-block !important; background: rgba(255,255,255,0.2) !important; padding:10px 14px !important; border-radius:10px !important; margin:0 3px !important;
    min-width:50px !important; font-weight:bold !important; font-size:20px !important;
}
.spc-countdown-timer span.urgent { background: #EF4444 !important; animation: spc-shake 0.5s infinite !important; }
@keyframes spc-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }

/* 8. Review Auto Scroll - TikTok */
.spc-reviews-auto {
    display: flex !important;
    gap: 16px !important;
    overflow: hidden !important;
    position: relative !important;
}
.spc-review-track {
    display: flex !important;
    gap: 16px !important;
    animation: spc-auto-scroll 30s linear infinite !important;
    width: max-content !important;
    will-change: transform;
}
.spc-review-track:hover { animation-play-state: paused !important; }
@keyframes spc-auto-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.spc-review-card {
    background:#fff !important; padding:20px !important; border-radius:16px !important; box-shadow:0 4px 20px rgba(0,0,0,0.06) !important;
    min-width:280px !important; max-width:320px !important; flex-shrink:0 !important;
    transition: transform 0.3s !important;
}
.spc-review-card:hover { transform: scale(1.05) !important; }

/* 9. Scroll Reveal */
.spc-reveal { opacity:0 !important; transform: translateY(40px) !important; transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; }
.spc-reveal.active { opacity:1 !important; transform: translateY(0) !important; }

/* 10. Gradient Text */
.spc-gradient-text {
    background: linear-gradient(135deg, #BE185D, #F472B6, #D4AF37) !important;
    -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important;
    animation: spc-gradient-shift 4s ease infinite !important;
    display: inline-block !important;
}
@keyframes spc-gradient-shift { 0%,100%{filter:hue-rotate(0deg)} 50%{filter:hue-rotate(25deg)} }

/* 11. Sticky */
.spc-sticky-atc { animation: spc-slide-up 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; backdrop-filter: blur(20px) !important; background: rgba(255,255,255,0.96) !important; }
@keyframes spc-slide-up { from{transform:translateY(100%)} to{transform:translateY(0)} }

/* 12. Messenger Sticky */
#spc-messenger-sticky, .spc-messenger-wrapper {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    animation: spc-messenger-float 3s ease-in-out infinite !important;
}
@keyframes spc-messenger-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

@media(max-width:768px){
    #spc-messenger-sticky, .spc-messenger-wrapper{bottom:16px !important; right:16px !important; left:16px !important; text-align:center !important;}
    #spc-messenger-sticky a, .spc-messenger-wrapper a{width:100% !important; justify-content:center !important;}
}

/* Force enable for Elementor */
.elementor-element .spc-card,
.elementor-element .spc-btn,
.elementor-element .spc-badge {
    visibility: visible !important;
    opacity: 1 !important;
}
