/* Hardware-accelerated fade up */
.trouser-animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.trouser-animate-fade-up.trouser-animated {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    /* Smooth floating product */
    .trouser-floating {
        animation: trouserFloat 6s ease-in-out infinite;
        will-change: transform;
    }
    
    @keyframes trouserFloat {
        0% { transform: translateY(0); }
        50% { transform: translateY(-12px); }
        100% { transform: translateY(0); }
    }
    
    /* Premium Red CTA Shimmer */
    .trouser-shimmer-cta {
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .trouser-shimmer-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(215, 25, 32, 0.3);
    }
    
    .trouser-shimmer-cta::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-25deg);
        animation: trouserShimmer 3.5s infinite;
    }
    
    @keyframes trouserShimmer {
        0% { left: -100%; }
        20% { left: 200%; }
        100% { left: 200%; }
    }
}

/* Disable continuous effects on mobile */
@media screen and (max-width: 767px) {
    .trouser-floating {
        animation: none;
    }
}
