/* Catalog-only spacing; preserve product pages, cards and the shared header. */
body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
	background: var(--woodcha-section-background);
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main {
	padding-top: 32px;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb {
	margin-bottom: 12px;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header {
	align-items: end;
	border-bottom: 1px solid var(--woodcha-line);
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
	margin-bottom: 16px;
	padding-bottom: 16px;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header__title {
	font-size: clamp(44px, 3.4vw, 48px);
	font-weight: 520;
	letter-spacing: var(--woodcha-section-heading-tracking);
	line-height: 1.1;
	margin: 0;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header__description {
	color: color-mix(in srgb, var(--woodcha-ink) 70%, transparent);
	font-size: 15px;
	line-height: 1.55;
	max-width: 410px;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-result-count,
body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-ordering {
	color: color-mix(in srgb, var(--woodcha-ink) 66%, transparent);
	font-size: 13px;
	margin: 0 0 20px;
}

body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-ordering select {
	appearance: none;
	background: var(--woodcha-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2324211d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--woodcha-line);
	border-radius: var(--woodcha-radius-pill);
	color: var(--woodcha-ink);
	font: inherit;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 40px 10px 16px;
}

@media (max-width: 680px) {
	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .site-main {
		padding-top: 24px;
	}

	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header {
		align-items: start;
		grid-template-columns: 1fr;
	}

	body:is(.woocommerce-shop, .tax-product_cat, .tax-product_tag) .woocommerce-products-header__title {
		font-size: 32px;
	}
}
