/* Small fixes on top of the compiled Tailwind stylesheet. */

body {
	overflow-x: hidden;
}

/* Keep the animated menu from blocking clicks while it is closed. */
main {
	position: relative;
}

/* The original site slides the full-screen menu up with a spring-like
 * ease-out (stiffness 100 / damping 18). Keep this duration in sync with
 * MENU_TRANSITION_MS in main.js. */
#main-menu {
	transition: transform 600ms cubic-bezier(0.25, 0.2, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
	#main-menu {
		transition: none;
	}
}

/* Product cards hidden by the filter/load-more script. */
#product-grid .product-card.hidden {
	display: none;
}

/* The filter buttons do not fit on one line on small phones. Wrap them so the
 * products section cannot create horizontal overflow. */
@media (max-width: 639px) {
	.product-filters {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem;
	}

	.product-filters .filter-btn {
		white-space: nowrap;
	}
}

/* Accordion panels generated for the product information section. */
.bl-panel.hidden {
	display: none;
}

/* Images inserted inside rich text blocks. */
.page-content img,
.bl-panel img {
	max-width: 100%;
	height: auto;
}

/* The live site uses these marker classes without extra styling. */
.min-h-paragraph {
	min-height: 0;
}
