/**
 * Fixes for pages WooCommerce styles.
 *
 * WooCommerce ships this:
 *
 *     .woocommerce img, .woocommerce-page img { height: auto; max-width: 100%; }
 *
 * The theme sizes the header logo with a Tailwind utility, `.h-[71px]`. The
 * WooCommerce selector carries one class plus one element, the utility carries
 * one class, so WooCommerce is the more specific of the two and wins. On every
 * page with a woocommerce body class — shop, cart, checkout, account and each
 * single product — the logo therefore lost its height and fell back to the
 * file's natural size, 1990px wide, dragging the header to 866px tall.
 *
 * These rules restate the heights the utilities ask for, qualified by the same
 * body class so they only apply where the problem is, and anchored on the
 * logo's own utility class so no other image in the header is affected. That
 * puts them at one class more than the WooCommerce rule, which is enough.
 *
 * The pinned-header sizes are not repeated here: those utilities already carry
 * !important, so they were never overridden.
 *
 * Breakpoints match the theme's max-lg (1023px) and max-md (767px).
 */

.woocommerce header img.h-\[71px\],
.woocommerce-page header img.h-\[71px\] {
	height: 71px;
	width: auto;
}

@media (max-width: 1023px) {

	.woocommerce header img.h-\[71px\],
	.woocommerce-page header img.h-\[71px\] {
		height: 65px;
	}
}

@media (max-width: 767px) {

	.woocommerce header img.h-\[71px\],
	.woocommerce-page header img.h-\[71px\] {
		height: 67px;
	}
}
