
/* SK XPRES — more visible, polished homepage motion */

:root {
  --skx-motion-orange: #ff7101;
}

/* ==============================
   ANIMATION KEYFRAMES
============================== */

@keyframes skxCardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes skxProductPulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.055; }
}

@keyframes skxOfferImageFloat {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
  50% {
    translate: 0 -10px;
    rotate: -.7deg;
    scale: 1.035;
  }
}

@keyframes skxOfferGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(255,113,1,0);
  }
  50% {
    box-shadow: 0 8px 26px rgba(255,113,1,.22);
  }
}

@keyframes skxBadgePop {
  0%, 100% {
    translate: 0 0;
    scale: 1;
  }
  50% {
    translate: 0 -5px;
    scale: 1.045;
  }
}

@keyframes skxIconBounce {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  35% {
    translate: 0 -7px;
    rotate: -5deg;
  }
  70% {
    translate: 0 -2px;
    rotate: 4deg;
  }
}

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

@keyframes skxStarsShine {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(255,177,0,0));
  }
  50% {
    filter: drop-shadow(0 2px 8px rgba(255,177,0,.7));
  }
}

@keyframes skxOfferCursor {
  0%, 49% { border-color: var(--skx-motion-orange); }
  50%, 100% { border-color: transparent; }
}

@keyframes skxOfferHeadingGlow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(255,113,1,0);
  }
  50% {
    text-shadow: 0 3px 18px rgba(255,113,1,.2);
  }
}

/* ==============================
   PRODUCT CARD ANIMATIONS
============================== */

.skx-motion-ready .product-card.is-visible {
  animation: skxCardFloat 4.2s ease-in-out infinite;
  animation-delay: var(--skx-visible-delay, 0s);
  will-change: translate;
}

.skx-motion-ready .product-card.is-visible .product-image img {
  animation: skxProductPulse 5.2s ease-in-out infinite;
  animation-delay: var(--skx-visible-delay, 0s);
  will-change: scale;
}

.skx-motion-ready .product-card:nth-child(2n) {
  --skx-visible-delay: -1.4s;
}

.skx-motion-ready .product-card:nth-child(3n) {
  --skx-visible-delay: -2.7s;
}

/* ==============================
   SPECIAL OFFER IMAGE
============================== */

.skx-motion-ready .special-offer-section .offer-image img {
  animation: skxOfferImageFloat 4.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(8,38,77,.12));
  will-change: translate, scale;
}

/* ==============================
   SPECIAL OFFER BADGE
   Static position, no movement
============================== */

.skx-motion-ready .special-offer-section .offer-content .offer-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  animation: none !important;
  translate: none !important;
  scale: none !important;
}

/* ==============================
   SPECIAL OFFER CONTENT LAYOUT
   Badge → Heading → Description → Button
============================== */

.special-offer-section .offer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge stays on top */
.special-offer-section .offer-content .offer-label {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 12px;
}

/* Heading always stays below badge */
.special-offer-section .offer-content h2 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 15px;
}

/* Description always stays below heading */
.special-offer-section .offer-content p {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 25px;
}

/* Button stays below description */
.special-offer-section .offer-content .btn {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

/* ==============================
   SPECIAL OFFER TYPEWRITER
============================== */

/* Heading typewriter */
.skx-motion-ready .special-offer-section .offer-content h2.skx-offer-typing {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-right: 2px solid transparent;
  padding-right: 3px;
  animation: skxOfferHeadingGlow 4s ease-in-out infinite;
}

/* Description typewriter */
.skx-motion-ready .special-offer-section .offer-content p.skx-offer-typing {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 1.5em;
  border-right: 2px solid transparent;
  padding-right: 3px;
}

/* Typewriter cursor */
.skx-motion-ready .special-offer-section .offer-content .skx-offer-typing.is-typing {
  animation: skxOfferCursor .72s step-end infinite;
}

/* Keep heading glow when it is not typing */
.skx-motion-ready .special-offer-section .offer-content h2.skx-offer-typing:not(.is-typing) {
  animation: skxOfferHeadingGlow 4s ease-in-out infinite;
}

/* ==============================
   OTHER SECTION ANIMATIONS
============================== */

.skx-motion-ready .hero-badge,
.skx-motion-ready .section-badge {
  animation: skxBadgePop 4s ease-in-out infinite;
}

.skx-motion-ready .benefit-card.is-visible .benefit-icon {
  animation: skxIconBounce 3.8s ease-in-out infinite;
}

.skx-motion-ready .benefit-card:nth-child(2n) .benefit-icon {
  animation-delay: -1.3s;
}

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

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

.skx-motion-ready .homepage-builder-banner-inner.is-visible > img,
.skx-motion-ready .homepage-builder-text > .container.is-visible .homepage-builder-text-image {
  animation: skxOfferImageFloat 5.5s ease-in-out infinite;
}

/* ==============================
   REDUCED MOTION ACCESSIBILITY
============================== */

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

  .skx-motion-ready .special-offer-section .offer-content .skx-offer-typing {
    border-right: 0 !important;
  }
}
