/* Accepted order scope: shop and product-category archive grid spacing only. */
body.post-type-archive-product.woocommerce ul.products,
body.tax-product_cat.woocommerce ul.products {
	column-gap: 14px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 18px;
}

body.post-type-archive-product.woocommerce ul.products::before,
body.post-type-archive-product.woocommerce ul.products::after,
body.tax-product_cat.woocommerce ul.products::before,
body.tax-product_cat.woocommerce ul.products::after {
	display: none;
}

body.post-type-archive-product.woocommerce ul.products li.product,
body.tax-product_cat.woocommerce ul.products li.product {
	box-sizing: border-box;
	clear: none !important;
	float: none !important;
	margin: 0 !important;
	min-width: 0;
	width: 100% !important;
}

body.post-type-archive-product.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.tax-product_cat.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: block;
	min-width: 0;
	width: 100%;
}

body.post-type-archive-product.woocommerce ul.products li.product img,
body.tax-product_cat.woocommerce ul.products li.product img {
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
	border: 1px solid #ededed;
	border-radius: 3px;
	box-sizing: border-box;
	display: block;
	height: auto;
	margin: 0 auto !important;
	max-width: 280px;
	object-fit: contain;
	padding: 10px;
	width: 100% !important;
}

body.post-type-archive-product.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px;
	line-height: 1.35;
	margin: 0 auto;
	max-width: 280px;
	overflow-wrap: break-word;
	width: 100%;
}

body.post-type-archive-product.woocommerce ul.products li.product .price,
body.tax-product_cat.woocommerce ul.products li.product .price {
	font-size: 14px;
	line-height: 1.35;
	margin: 0 auto !important;
	max-width: 280px;
	width: 100%;
}

body.post-type-archive-product.woocommerce .woocommerce-products-header__title.page-title,
body.tax-product_cat.woocommerce .woocommerce-products-header__title.page-title {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	overflow-wrap: break-word;
}

@media (max-width: 980px) {
	body.post-type-archive-product.woocommerce ul.products,
	body.tax-product_cat.woocommerce ul.products {
		column-gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
	}
}

@media (max-width: 767px) {
	body.post-type-archive-product.woocommerce ul.products,
	body.tax-product_cat.woocommerce ul.products {
		column-gap: 10px;
		grid-template-columns: minmax(0, 1fr);
		row-gap: 14px;
	}

	body.post-type-archive-product.woocommerce .woocommerce-result-count,
	body.post-type-archive-product.woocommerce .woocommerce-ordering,
	body.tax-product_cat.woocommerce .woocommerce-result-count,
	body.tax-product_cat.woocommerce .woocommerce-ordering {
		float: none;
		width: 100%;
	}

	body.post-type-archive-product.woocommerce .woocommerce-ordering,
	body.tax-product_cat.woocommerce .woocommerce-ordering {
		margin: 10px 0 22px;
	}

	body.post-type-archive-product.woocommerce .woocommerce-ordering select,
	body.tax-product_cat.woocommerce .woocommerce-ordering select {
		box-sizing: border-box;
		max-width: 360px;
		width: 100%;
	}

}
