.mheays-ajax-shop {
	--mheays-shop-gap: clamp(14px, 2vw, 26px);
	display: grid;
	gap: var(--mheays-shop-gap);
	margin: 0 auto;
	max-width: none;
	position: relative;
	width: 100%;
}

.mheays-ajax-shop.is-loading {
	opacity: 0.68;
	pointer-events: none;
}

.mheays-ajax-shop__controls {
	display: grid;
	gap: 12px;
	width: 100%;
}

.mheays-ajax-shop__toggles {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mheays-shop-toggle {
	background: #fff;
	border: 1px solid rgba(var(--crk-brand-green-rgb, 31, 59, 28), 0.28);
	border-radius: 0;
	color: var(--crk-brand-green, #1f3b1c);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	min-height: 36px;
	padding: 8px 13px;
	text-transform: uppercase;
}

.mheays-shop-toggle.is-active,
.mheays-shop-toggle[data-state="expanded"] {
	background: var(--crk-brand-green, #1f3b1c);
	border-color: var(--crk-brand-green, #1f3b1c);
	color: #fff;
}

.mheays-shop-toggle--all {
	margin-left: auto;
}

.post-type-archive-product .crk-shop-ajax,
.tax-product_cat .crk-shop-ajax,
.page .crk-shop-ajax {
	box-sizing: border-box;
	--mheays-shop-header-clearance: calc(var(--crk-site-header-height, 102px) + clamp(8px, 1vw, 18px));
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	max-width: min(1440px, calc(100% - clamp(32px, 6vw, 96px))) !important;
	padding: var(--mheays-shop-header-clearance) 0 clamp(58px, 7vw, 96px);
	width: 100%;
}

.post-type-archive-product .mheays-ajax-shop,
.tax-product_cat .mheays-ajax-shop,
.page .mheays-ajax-shop {
	max-width: none;
}

.mheays-tool-panel,
.mheays-ajax-shop__bar {
	background: #fff;
	border: 1px solid rgba(var(--crk-brand-green-rgb, 31, 59, 28), 0.14);
	padding: 26px 34px;
}

.mheays-tool-panel--filters {
	display: grid;
	gap: clamp(14px, 1.6vw, 22px);
	grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.mheays-tool-panel[hidden],
.mheays-ajax-shop__bar[hidden] {
	display: none !important;
}

.mheays-tool-panel label,
.mheays-ajax-shop__bar label {
	display: grid;
	gap: 10px;
	margin: 0;
}

.mheays-tool-panel span,
.mheays-ajax-shop__bar span,
.mheays-tool-panel legend {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mheays-tool-panel fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.mheays-tool-panel input[type="search"],
.mheays-tool-panel select,
.mheays-ajax-shop__bar select {
	background: #fff;
	border: 1px solid rgba(var(--crk-brand-green-rgb, 31, 59, 28), 0.24);
	border-radius: 0;
	box-sizing: border-box;
	font: inherit;
	font-size: 18px;
	line-height: 1.25;
	margin: 0;
	min-height: 44px;
	padding: 8px 11px;
	width: 100%;
}

.mheays-tool-panel--search input[type="search"] {
	display: block;
}

.mheays-filter-choices {
	display: grid;
	gap: 7px;
	margin-top: 9px;
}

.mheays-filter-choice {
	align-items: center;
	display: grid;
	gap: 8px;
	grid-template-columns: 16px minmax(0, 1fr);
	line-height: 1.25;
	min-height: 22px;
}

.mheays-filter-choice input[type="checkbox"] {
	height: 14px;
	margin: 0;
	width: 14px;
}

.mheays-filter-choice span {
	font-size: 13px;
}

.mheays-filter-choice--button input {
	position: absolute;
	visibility: hidden;
}

.mheays-filter-choice--button span {
	border: 1px solid rgba(var(--crk-brand-green-rgb, 31, 59, 28), 0.24);
	cursor: pointer;
	display: inline-flex;
	font-size: 13px;
	padding: 9px 12px;
}

.mheays-filter-choice--button input:checked + span {
	background: var(--crk-brand-orange, #ef7a1c);
	border-color: var(--crk-brand-orange, #ef7a1c);
	color: #fff;
}

.mheays-ajax-shop__bar {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-start;
}

.mheays-ajax-shop__bar label {
	box-sizing: border-box;
	flex: 0 0 min(100%, 332px);
	max-width: min(100%, 332px);
	min-width: 0;
}

.mheays-ajax-shop__status {
	font-size: clamp(15px, 1.1vw, 20px);
	font-weight: 700;
}

.mheays-products-grid {
	display: grid;
	gap: clamp(14px, 1.45vw, 24px);
	grid-template-columns: repeat(var(--mheays-shop-columns, 5), minmax(0, 1fr));
}

.mheays-product-card {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
	text-align: center;
}

.mheays-product-card__image {
	align-items: center;
	background: transparent;
	aspect-ratio: 3 / 4;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	margin-bottom: clamp(12px, 1.2vw, 16px);
	overflow: hidden;
	width: 100%;
}

.mheays-product-card__image img {
	aspect-ratio: 3 / 4;
	display: block;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	width: 100%;
}

.mheays-product-card h3 {
	display: -webkit-box;
	font-size: clamp(18px, 1.15vw, 24px);
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 8px;
	min-height: 2.3em;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-wrap: balance;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mheays-product-card h3 a {
	color: inherit;
	text-decoration: none;
}

.mheays-product-card__price {
	font-weight: 500;
	margin: 0;
	min-height: 1.35em;
}

.mheays-products-empty {
	grid-column: 1 / -1;
	margin: 0;
}

.mheays-product-slider {
	--mheays-slider-gap: clamp(16px, 1.8vw, 28px);
	--mheays-slider-arrow-top: 38%;
	--mheays-slider-control-size: 46px;
	--mheays-slider-arrow-offset: calc(var(--mheays-slider-control-size) * -1.05);
	--mheays-slider-item-size: 25%;
	display: grid;
	gap: clamp(14px, 1.6vw, 22px);
	width: 100%;
}

.mheays-product-slider--visible-1 {
	--mheays-slider-item-size: 100%;
}

.mheays-product-slider--visible-2 {
	--mheays-slider-item-size: 50%;
}

.mheays-product-slider--visible-3 {
	--mheays-slider-item-size: 33.333%;
}

.mheays-product-slider--visible-4 {
	--mheays-slider-item-size: 25%;
}

.mheays-product-slider--visible-5 {
	--mheays-slider-item-size: 20%;
}

.mheays-product-slider--visible-6 {
	--mheays-slider-item-size: 16.666%;
}

.mheays-product-slider__stage {
	position: relative;
}

.mheays-product-slider__viewport {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 0 0 4px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.mheays-product-slider__viewport:focus,
.mheays-product-slider__viewport:focus-visible {
	box-shadow: none;
	outline: 0;
}

.mheays-product-slider__viewport::-webkit-scrollbar {
	display: none;
}

.mheays-product-slider__track {
	display: flex;
}

.mheays-product-slider__slide {
	box-sizing: border-box;
	flex: 0 0 var(--mheays-slider-item-size);
	min-width: 0;
	padding-right: var(--mheays-slider-gap);
	scroll-snap-align: start;
}

.mheays-product-slider__slide .mheays-product-card {
	height: 100%;
}

.mheays-product-slider__controls {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: center;
}

.mheays-product-slider__arrow {
	align-items: center;
	appearance: none;
	background: var(--crk-brand-orange, #ef7a1c);
	border: 1px solid var(--crk-brand-orange, #ef7a1c);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	font-weight: 700;
	height: var(--mheays-slider-control-size);
	justify-content: center;
	line-height: 1;
	min-height: var(--mheays-slider-control-size);
	min-width: var(--mheays-slider-control-size);
	padding: 0;
	position: absolute;
	top: var(--mheays-slider-arrow-top);
	transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
	transform: translateY(-50%);
	width: var(--mheays-slider-control-size);
	z-index: 2;
}

.mheays-product-slider__arrow--prev {
	left: var(--mheays-slider-arrow-offset);
}

.mheays-product-slider__arrow--next {
	right: var(--mheays-slider-arrow-offset);
}

.mheays-product-slider__arrow:hover,
.mheays-product-slider__arrow:focus-visible {
	background: var(--crk-brand-green-2, #17805b);
	border-color: var(--crk-brand-green-2, #17805b);
	color: #fff;
	outline: 0;
	transform: translateY(calc(-50% - 1px));
}

.mheays-product-slider__arrow:disabled {
	cursor: default;
	opacity: .34;
	transform: translateY(-50%);
}

.mheays-product-slider__all {
	color: var(--crk-brand-green, #1f3b1c);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
}

.mheays-product-slider__all:hover,
.mheays-product-slider__all:focus-visible {
	color: var(--crk-brand-orange, #ef7a1c);
}

.mheays-shop-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: clamp(24px, 4vw, 44px);
}

.mheays-shop-pagination button {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0;
	color: #111;
	cursor: pointer;
	font: inherit;
	min-height: 42px;
	min-width: 42px;
}

.mheays-shop-pagination button:disabled {
	background: #111;
	color: #fff;
	cursor: default;
}

@media (max-width: 1280px) {
	.mheays-products-grid {
		grid-template-columns: repeat(var(--mheays-shop-columns, 5), minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.mheays-tool-panel--filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mheays-products-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mheays-product-slider {
		--mheays-slider-item-size: 33.333%;
	}

	.mheays-shop-toggle--all {
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	.mheays-tool-panel--filters {
		grid-template-columns: 1fr;
	}

	.mheays-products-grid {
		gap: clamp(14px, 4vw, 18px);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mheays-product-slider {
		--mheays-slider-item-size: 50%;
		--mheays-slider-arrow-offset: 4px;
		--mheays-slider-control-size: 40px;
	}

	.mheays-ajax-shop__bar {
		align-items: stretch;
		flex-direction: column;
	}

	.mheays-ajax-shop__bar label {
		flex-basis: auto;
		max-width: 100%;
		width: 100%;
	}

	.mheays-shop-toggle {
		flex: 1 1 calc(50% - 8px);
	}

	.mheays-shop-toggle--all {
		flex-basis: 100%;
	}
}

@media (max-width: 420px) {
	.mheays-products-grid {
		grid-template-columns: 1fr;
	}

	.mheays-product-slider {
		--mheays-slider-item-size: 100%;
	}
}
