/* ==========================================================================
   Nuvyaa motion layer. Not loaded inside the Elementor editor.
   Reveals use opacity + transform only, so they cause no layout shift.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	/* Page change cross-fade in supporting browsers; others simply navigate. */
	@view-transition {
		navigation: auto;
	}

	html {
		scroll-behavior: smooth;
	}

	.nuvyaa-reveal-pending {
		opacity: 0;
		transform: translateY(22px);
	}

	.nuvyaa-reveal-run {
		transition: opacity 0.6s var(--herbal-ease), transform 0.6s var(--herbal-ease);
		transition-delay: var(--nuvyaa-delay, 0ms);
	}

	/* Shop cards: image zoom to match the homepage cards. */
	.herbal-site.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
		transition: transform 0.5s ease;
	}

	.herbal-site.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img {
		transform: scale(1.05);
	}

	.herbal-site .herbal-loop-actions .button,
	.herbal-site .single_add_to_cart_button,
	.herbal-site .herbal-enquiry .herbal-btn-enquire {
		transition: background-color 0.25s, color 0.25s, transform 0.2s;
	}

	.herbal-site .herbal-loop-actions .button:hover,
	.herbal-site .herbal-card__action .button:hover,
	.herbal-site .single_add_to_cart_button:hover {
		transform: scale(1.02);
	}

	.herbal-site .herbal-loop-actions .button:active,
	.herbal-site .herbal-card__action .button:active,
	.herbal-site .single_add_to_cart_button:active {
		transform: scale(0.98);
	}

	/* Add to Cart confirms itself when WooCommerce marks it added. */
	.herbal-site .add_to_cart_button.added {
		animation: nuvyaa-added 0.45s var(--herbal-ease);
	}

	@keyframes nuvyaa-added {
		40% {
			transform: scale(1.06);
		}
	}
}

/* Header on scroll: shadow only. The height never changes, so content does not jump. */
.herbal-el-part--header {
	transition: box-shadow 0.3s ease;
}

.herbal-el-part--header.nuvyaa-header-scrolled {
	box-shadow: 0 10px 24px -18px rgba(11, 61, 46, 0.45);
}
