/* Opt-in storefront effects: global.effects.card_image_box = soft, global.effects.motion = premium */

/* Soft grey rounded product image box */
body[data-store-card-box="soft"] [data-store-product-card] { background:transparent !important; box-shadow:none !important; border-radius:0 !important; overflow:visible; }
body[data-store-card-box="soft"] [data-store-product-card] > .store-product-link > div { background:#f4f4f4 !important; border-radius:14px; overflow:hidden; }
body[data-store-card-box="soft"] [data-store-product-card] > .store-product-link img { mix-blend-mode:multiply; }
body[data-store-card-box="soft"] [data-store-product-card] > .store-product-body { padding-left:2px; padding-right:2px; }
body[data-store-card-box="soft"] [data-store-product-card] .tp-badge { border-radius:999px; }
body[data-store-card-box="soft"] .categorySwiper .swiper-slide img { mix-blend-mode:multiply; }

@media (prefers-reduced-motion: no-preference) {
    /* Content stays visible if the script never runs */
    @keyframes sm-fallback { to { opacity:1; transform:none; } }
    body[data-store-motion="premium"]:not(.sm-ready) [data-home-section]:not([data-home-section="home-hero"]) { opacity:0; animation:sm-fallback 0s 2.5s forwards; }

    body[data-store-motion="premium"] .sm-reveal { opacity:0; transform:translateY(36px); transition:opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1); }
    body[data-store-motion="premium"] .sm-reveal.sm-in { opacity:1; transform:none; }
    body[data-store-motion="premium"] .sm-reveal .sm-card { opacity:0; }
    body[data-store-motion="premium"] .sm-reveal.sm-in .sm-card { opacity:1; animation:sm-rise .75s cubic-bezier(.22,.61,.36,1) var(--sm-delay, 0ms) backwards; }
    @keyframes sm-rise { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }

    /* Product cards */
    body[data-store-motion="premium"] [data-store-product-card] > .store-product-link img { transition:transform .8s cubic-bezier(.22,.61,.36,1); }
    body[data-store-motion="premium"] [data-store-product-card]:hover > .store-product-link img { transform:scale(1.07); }
    body[data-store-motion="premium"] .sm-reveal.sm-in [data-store-product-card] .tp-badge { animation:sm-pop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay:calc(var(--sm-delay, 0ms) + .45s); }
    @keyframes sm-pop { from { opacity:0; transform:scale(.6); } to { opacity:1; transform:scale(1); } }

    /* Category tiles */
    body[data-store-motion="premium"] .categorySwiper .swiper-slide img { transition:transform .6s cubic-bezier(.22,.61,.36,1); }
    body[data-store-motion="premium"] .categorySwiper .swiper-slide:hover img { transform:scale(1.08); }

    /* Hero: slow zoom + text rise on the active slide */
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .swiper-slide img { transform:scale(1.1); transition:transform 7s cubic-bezier(.16,.84,.44,1); }
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .swiper-slide-active img { transform:scale(1); }
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .banner-content > * { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .swiper-slide-active .banner-content > * { opacity:1; transform:none; }
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .swiper-slide-active .banner-content > :nth-child(1) { transition-delay:.35s; }
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .swiper-slide-active .banner-content > :nth-child(2) { transition-delay:.5s; }
    body[data-store-motion="premium"] :is(.novaHeroSwiper, .novaHeroSwiperMobile) .swiper-slide-active .banner-content > :nth-child(3) { transition-delay:.65s; }
}

/* Hero controls (added by store-motion.js) */
.sm-hero-arrow { position:absolute; top:50%; z-index:10; width:46px; height:46px; margin-top:-23px; border:0; border-radius:999px; background:rgba(255,255,255,.92); color:#111; display:none; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 6px 20px rgba(0,0,0,.15); opacity:0; transition:opacity .3s ease, transform .3s ease, background-color .2s ease; }
.sm-hero-arrow svg { width:18px; height:18px; }
.sm-hero-arrow:hover { background:#111; color:#fff; }
.sm-hero-arrow.sm-prev { left:24px; transform:translateX(-12px); }
.sm-hero-arrow.sm-next { right:24px; transform:translateX(12px); }
.swiper:hover > .sm-hero-arrow, .sm-hero-arrow:focus-visible { opacity:1; transform:none; }
@media (min-width:1024px) { .sm-hero-arrow { display:flex; } }
.sm-hero-dots { position:absolute; left:50%; bottom:18px; z-index:10; transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:7px 12px; border-radius:999px; background:rgba(0,0,0,.28); backdrop-filter:blur(6px); }
.sm-hero-dot { position:relative; width:22px; height:4px; padding:0; border:0; border-radius:999px; background:rgba(255,255,255,.45); overflow:hidden; cursor:pointer; transition:width .4s cubic-bezier(.22,.61,.36,1); }
.sm-hero-dot i { position:absolute; inset:0; width:0; background:#fff; border-radius:inherit; }
.sm-hero-dot.is-active { width:46px; }
.sm-hero-dot.is-active i { animation:sm-fill var(--sm-hero-delay, 4100ms) linear forwards; }
.sm-paused .sm-hero-dot.is-active i { animation-play-state:paused; }
@keyframes sm-fill { from { width:0; } to { width:100%; } }
.sm-hero-pause { width:20px; height:20px; margin-left:4px; padding:0; border:0; background:transparent; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sm-hero-pause svg { width:12px; height:12px; }

/* Product slider arrows + progress (added by store-motion.js) */
.sm-slider-arrow { position:absolute; top:38%; z-index:10; width:40px; height:40px; margin-top:-20px; border:1px solid rgba(0,0,0,.08); border-radius:999px; background:#fff; color:#111; display:none; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.12); opacity:0; transition:opacity .25s ease, background-color .2s ease, color .2s ease; }
.sm-slider-arrow svg { width:16px; height:16px; }
.sm-slider-arrow:hover { background:#111; color:#fff; }
.sm-slider-arrow.sm-prev { left:8px; }
.sm-slider-arrow.sm-next { right:8px; }
@media (min-width:1024px) { .sm-slider-arrow { display:flex; } }
[data-product-slider]:hover > .sm-slider-arrow:not([disabled]), .sm-slider-arrow:focus-visible { opacity:1; }
.sm-slider-arrow[disabled] { pointer-events:none; }
.sm-progress { position:relative; height:3px; margin:22px auto 4px; max-width:420px; border-radius:999px; background:rgba(0,0,0,.1); overflow:hidden; }
.sm-progress > span { position:absolute; top:0; bottom:0; left:0; border-radius:inherit; background:#111; transition:left .45s cubic-bezier(.22,.61,.36,1), width .45s ease; }
.sm-progress[hidden] { display:none; }
