/* Subtelne animacje interfejsu — wyłączane dla użytkowników z ograniczonym ruchem. */
@keyframes football-shop-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes football-shop-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
    50% { box-shadow: 0 0 0 5px rgba(227, 6, 19, .12); }
}

@media (prefers-reduced-motion: no-preference) {
    .site-main {
        animation: football-shop-reveal .38s ease-out both;
    }

    .woocommerce ul.products li.product,
    .shirt-card {
        animation: football-shop-reveal .42s ease-out both;
    }

    .woocommerce ul.products li.product:nth-child(2),
    .shirt-card:nth-child(2) { animation-delay: .04s; }
    .woocommerce ul.products li.product:nth-child(3),
    .shirt-card:nth-child(3) { animation-delay: .08s; }
    .woocommerce ul.products li.product:nth-child(4),
    .shirt-card:nth-child(4) { animation-delay: .12s; }
    .woocommerce ul.products li.product:nth-child(5),
    .shirt-card:nth-child(5) { animation-delay: .16s; }

    .woocommerce .button,
    .woocommerce button.button,
    .woocommerce input.button,
    .shop-filter-toggle,
    .woocommerce-MyAccount-navigation a {
        transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .woocommerce .button:hover,
    .woocommerce button.button:hover,
    .woocommerce input.button:hover,
    .shop-filter-toggle:hover {
        transform: translateY(-2px);
    }

    .woocommerce .button:active,
    .woocommerce button.button:active,
    .woocommerce input.button:active {
        transform: translateY(0);
    }

    .woocommerce-MyAccount-navigation a:hover,
    .woocommerce-MyAccount-navigation a:focus-visible {
        transform: translateX(3px);
    }

    .football-shop-cart-drawer.is-open .football-shop-cart-drawer__panel {
        animation: football-shop-reveal .24s ease-out both;
    }

    .shop-active-filter {
        animation: football-shop-pulse 1.1s ease-out 1;
    }
}

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