/* Quiet movement: brief feedback, small distances, no continuous effects. */
:root {
	--to-motion-ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: no-preference) {
	body .wp-site-blocks :is(.toh-hero__btn, .tod-add-to-cart, .toc-view-all, .toh-icon-btn,
		.toh-search__btn, .wp-element-button, .tod-filter-btn, .tof-social-link) {
		transition: translate 180ms var(--to-motion-ease),
			background-color 180ms ease, color 180ms ease,
			border-color 180ms ease, box-shadow 180ms ease;
	}

	body .wp-site-blocks :is(.toc-category-card, .tod-card) {
		transition: translate 260ms var(--to-motion-ease),
			box-shadow 260ms ease, border-color 200ms ease;
	}

	.tofq-answer { transition: max-height 280ms var(--to-motion-ease); }
	.tofq-arrow { transition: transform 220ms var(--to-motion-ease); }
	.toh-hero__dot { transition: background-color 200ms ease, width 220ms var(--to-motion-ease); }
	.tof-col-list a, .tof-copyright a {
		text-underline-offset: 3px;
		transition: color 160ms ease, text-decoration-color 160ms ease;
	}

	@media (hover: hover) and (pointer: fine) {
		body .wp-site-blocks :is(.toc-category-card, .tod-card):hover {
			transform: none;
			translate: 0 -3px;
			box-shadow: 0 8px 22px rgb(15 23 42 / 8%);
		}
		body .wp-site-blocks :is(.toh-hero__btn, .tod-add-to-cart, .toh-icon-btn,
			.wp-element-button, .tof-social-link):hover { translate: 0 -2px; }
		/* Temper the existing product zoom to match the quieter motion. */
		body .wp-site-blocks .tod-card:hover .tod-card-img img { transform: scale(1.035); }
	}

	body .wp-site-blocks :is(.toh-hero__btn, .tod-add-to-cart, .toh-icon-btn,
		.toh-search__btn, .wp-element-button, .tod-filter-btn):active { translate: 0 1px; }
}

:where(.toh-hero__btn, .tod-add-to-cart, .toc-category-card, .toh-icon-btn,
	.tod-filter-btn, .tof-social-link, .tof-copyright a):focus-visible {
	outline: 2px solid var(--brand-primary, #2563eb);
	outline-offset: 4px;
}

/* Include legacy theme movement when the visitor requests less motion. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
