:root {
    --pr-motion-duration: 0.6s;
    --pr-motion-ease: cubic-bezier(0, 0, 0.3, 1);
    --pr-motion-distance: 2rem;
}

@keyframes pr-fade-in-up {
    from {
        opacity: 0.01;
        transform: translate3d(0, var(--pr-motion-distance), 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pr-fade-in {
    from { opacity: 0.01; }
    to { opacity: 1; }
}

@keyframes pr-button-nudge {
    0%, 82%, 88%, 94%, 100% { transform: translateX(0); }
    85%, 91% { transform: translateX(-3px); }
    87%, 93% { transform: translateX(3px); }
}

@keyframes pr-cart-bump {
    0% { transform: scale(1); }
    45% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
    .pr-scroll-trigger.pr-animate-fade-in,
    .pr-scroll-trigger.pr-animate-slide-in {
        opacity: 0.01;
    }

    .pr-scroll-trigger.pr-animate-slide-in {
        transform: translate3d(0, var(--pr-motion-distance), 0);
    }

    .pr-scroll-trigger:not(.pr-scroll-trigger--offscreen).pr-animate-fade-in {
        animation: pr-fade-in var(--pr-motion-duration) var(--pr-motion-ease) both;
    }

    .pr-scroll-trigger:not(.pr-scroll-trigger--offscreen).pr-animate-slide-in {
        animation: pr-fade-in-up var(--pr-motion-duration) var(--pr-motion-ease) both;
        animation-delay: calc(var(--pr-animation-order, 0) * 0.1s);
    }
}

.site-header .brand:not(.brand--mobile),
.site-header .desktop-nav a,
.site-header .cart-link {
    animation: pr-fade-in-up var(--pr-motion-duration) var(--pr-motion-ease) both;
}

.site-header .brand--mobile {
    animation: pr-fade-in var(--pr-motion-duration) var(--pr-motion-ease) both;
}

.site-header .desktop-nav a:nth-child(2) { animation-delay: 0.04s; }
.site-header .desktop-nav a:nth-child(3) { animation-delay: 0.08s; }
.site-header .desktop-nav a:nth-child(4) { animation-delay: 0.12s; }
.site-header .desktop-nav a:nth-child(5) { animation-delay: 0.16s; }
.site-header .desktop-nav a:nth-child(6) { animation-delay: 0.2s; }
.site-header a,
.site-header button {
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.product-breadcrumbs,
.cart-breadcrumbs {
    animation: pr-fade-in-up var(--pr-motion-duration) var(--pr-motion-ease) both;
}

.product-gallery {
    animation: pr-fade-in var(--pr-motion-duration) var(--pr-motion-ease) both;
}

.product-info,
.product-page__info {
    animation: pr-fade-in-up var(--pr-motion-duration) 0.1s var(--pr-motion-ease) both;
}

.related-product-card {
    animation: pr-fade-in-up var(--pr-motion-duration) var(--pr-motion-ease) both;
}

.related-product-card:nth-child(2) { animation-delay: 0.1s; }
.related-product-card:nth-child(3) { animation-delay: 0.2s; }
.related-product-card:nth-child(4) { animation-delay: 0.3s; }

[data-main-image] {
    transition: opacity 0.18s ease, transform 0.45s ease;
}

[data-main-image].is-switching {
    opacity: 0.32;
    transform: scale(0.992);
}

[data-gallery-thumb],
[data-variant],
[data-add-to-cart] {
    transition: color 0.3s ease, background-color 0.3s ease,
        border-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

[data-variant]:hover {
    transform: translateY(-2px);
}

[data-add-to-cart] {
    animation: pr-button-nudge 6s 5s 1 ease;
}

[data-add-to-cart].is-loading {
    cursor: wait;
    opacity: 0.68;
}

[data-add-to-cart].is-success {
    background: #24433d;
    border-color: #24433d;
}

[data-cart-count].is-bumping {
    animation: pr-cart-bump 0.36s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
