/* =========================================================
   SK XPRES — ALWAYS-ON AMBIENT HOMEPAGE MOTION
   Adds subtle continuous motion to visible homepage elements.
   Does not replace Hero Typewriter or Category Marquee.
   ========================================================= */

:root {
    --skx-ambient-ease: cubic-bezier(.4, 0, .2, 1);
}

@keyframes skxAmbientBadge {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(255, 113, 1, 0); }
    50% { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(255, 113, 1, .12); }
}

@keyframes skxAmbientImage {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes skxAmbientIcon {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 0 -4px; rotate: 3deg; }
}

@keyframes skxAmbientAvatar {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -3px; }
}

@keyframes skxAmbientGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 113, 1, 0)); }
    50% { filter: drop-shadow(0 2px 7px rgba(255, 113, 1, .28)); }
}

@keyframes skxAmbientOfferLabel {
    0%, 100% { text-shadow: 0 0 0 rgba(255, 113, 1, 0); }
    50% { text-shadow: 0 0 11px rgba(255, 113, 1, .28); }
}

/* Small, continuous movement on the visual markers throughout sections. */
.skx-motion-ready .hero-badge,
.skx-motion-ready .section-badge {
    animation: skxAmbientBadge 4.8s ease-in-out infinite;
}

/* Product imagery gently moves while its card is in view. */
.skx-motion-ready .product-card.is-visible .product-image img {
    animation: skxAmbientImage 5.2s ease-in-out infinite;
    animation-delay: var(--skx-ambient-delay, 0ms);
}

/* Offer imagery and its label remain gently animated while visible. */
.skx-motion-ready .special-offer-section .offer-image.is-visible img {
    animation: skxAmbientImage 5.8s ease-in-out infinite;
}

.skx-motion-ready .special-offer-section .offer-label {
    animation: skxAmbientOfferLabel 3.8s ease-in-out infinite;
}

/* Builder banner and text/image sections. */
.skx-motion-ready .homepage-builder-banner-inner.is-visible > img,
.skx-motion-ready .homepage-builder-text > .container.is-visible .homepage-builder-text-image {
    animation: skxAmbientImage 6s ease-in-out infinite;
}

/* Benefit icons and review details animate only while their cards are visible. */
.skx-motion-ready .benefit-card.is-visible .benefit-icon {
    animation: skxAmbientIcon 4.2s ease-in-out infinite;
}

.skx-motion-ready .review-card.is-visible .review-avatar {
    animation: skxAmbientAvatar 4.6s ease-in-out infinite;
}

.skx-motion-ready .review-card.is-visible .review-stars {
    animation: skxAmbientGlow 3.6s ease-in-out infinite;
}

/* A quiet, alternating rhythm prevents every element moving in sync. */
.skx-motion-ready .product-card:nth-child(2n) .product-image img,
.skx-motion-ready .benefit-card:nth-child(2n) .benefit-icon,
.skx-motion-ready .review-card:nth-child(2n) .review-avatar {
    animation-delay: -1.7s;
}

.skx-motion-ready .product-card:nth-child(3n) .product-image img,
.skx-motion-ready .benefit-card:nth-child(3n) .benefit-icon,
.skx-motion-ready .review-card:nth-child(3n) .review-avatar {
    animation-delay: -3.1s;
}

@media (prefers-reduced-motion: reduce) {
    .skx-motion-ready .hero-badge,
    .skx-motion-ready .section-badge,
    .skx-motion-ready .product-card .product-image img,
    .skx-motion-ready .special-offer-section .offer-image img,
    .skx-motion-ready .special-offer-section .offer-label,
    .skx-motion-ready .homepage-builder-banner-inner > img,
    .skx-motion-ready .homepage-builder-text-image,
    .skx-motion-ready .benefit-card .benefit-icon,
    .skx-motion-ready .review-card .review-avatar,
    .skx-motion-ready .review-card .review-stars {
        animation: none !important;
        translate: none !important;
        rotate: none !important;
        filter: none !important;
        text-shadow: none !important;
    }
}
