/**
 * WST WooCommerce Helper - Oxygen/WooCommerce archive grid.
 *
 * Override the custom properties on body.wst-wh-product-grid or on the
 * Oxygen Products List wrapper to match a project's design system.
 */
body.wst-wh-product-grid {
	--wst-grid-columns: 3;
	--wst-grid-gap-x: 28px;
	--wst-grid-gap-y: 44px;
	--wst-card-text: #14463a;
	--wst-card-ink: #46504a;
	--wst-card-muted: #8b8f86;
	--wst-card-accent: #bf9a44;
	--wst-card-panel-accent: #d8b85a;
	--wst-card-line: #ece4d6;
	--wst-card-surface: #faf7f2;
	--wst-card-stage: #f2ece0;
	--wst-card-radius: 16px;
	--wst-card-image-fit: cover;
	--wst-card-image-position: center;
}

/* Reset WooCommerce's floated product columns and let CSS Grid own the loop. */
body.wst-wh-product-grid ul.products {
	display: grid;
	grid-template-columns: repeat(var(--wst-grid-columns), minmax(0, 1fr));
	gap: var(--space-xl) var(--space-xl);
	align-items: start;
	margin: 0 !important;
	padding: 30px 0 10px !important;
	list-style: none !important;
	font-family: var(--text-font-family);
}

body.wst-wh-product-grid ul.products::before,
body.wst-wh-product-grid ul.products::after {
	display: none !important;
	content: none !important;
}

body.wst-wh-product-grid ul.products li.product.wst-product-card {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

.wst-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	color: var(--wst-card-text);
	animation: wst-card-rise 420ms ease both;
}

.wst-card__media {
	position: relative;
	min-width: 0;
	container-type: inline-size;
}

.wst-card__image-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.wst-card__image-link:focus-visible {
	outline: none;
}

.wst-card__image-link:focus-visible .wst-card__stage {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wst-card-accent) 68%, transparent);
}

.wst-card__stage {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--wst-card-radius) var(--wst-card-radius) 12px 12px;
	isolation: isolate;
}

body.wst-wh-product-grid ul.products li.product .wst-card__image {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: var(--wst-card-image-fit);
	object-position: var(--wst-card-image-position);
	backface-visibility: hidden;
	transition: opacity 430ms ease, transform 650ms ease;
	border: none;
}

.wst-card__image--front {
	opacity: 1;
}

/* HTML hover panel: this replaces the old second-image crossfade. */
.wst-card__hover-panel {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	background:
		radial-gradient(110% 70% at 18% 5%, rgba(255, 255, 255, 0.12), transparent 48%),
		linear-gradient(165deg, var(--wst-panel-color-start, #8f241d), var(--wst-panel-color-end, #c43a2e));
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: scale(1.012);
	transition: opacity 430ms ease, transform 650ms ease;
}

.wst-card__hover-panel::after {
	position: absolute;
	inset: 0;
	background: radial-gradient(75% 55% at 90% 100%, rgba(0, 0, 0, 0.16), transparent 65%);
	content: "";
	pointer-events: none;
}

.wst-card__hover-panel-inner {
	position: relative;
	z-index: 1;
	display: flex;
	height: 100%;
	min-height: 0;
	flex-direction: column;
	padding: var(--space-m);
}

.wst-card__hover-heading {
	display: block;
	margin: 0 0 14px;
	color: var(--wst-card-panel-accent);
	font-size: clamp(13px, 1.15vw, 18px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
}

.wst-card__hover-facts {
	display: block;
	width: 100%;
}

.wst-card__hover-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	min-height: clamp(42px, 10%, 58px);
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.36);
	font-size: clamp(11px, 0.95vw, 14px);
	line-height: 1.35;
}

.wst-card__hover-row span {
	min-width: 0;
	font-weight: 400;
}

.wst-card__hover-row strong {
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.wst-card__hover-mark {
	display: block;
	width: clamp(36px, 14%, 58px);
	aspect-ratio: 1;
	margin: 30px auto;
	color: var(--wst-card-panel-accent);
}

.wst-card__hover-mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wst-card__hover-mark--category {
	background-color: var(--wst-card-panel-accent);

	-webkit-mask-image: var(--wst-category-icon);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;

	mask-image: var(--wst-category-icon);
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.wst-card__hover-claims {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 7px;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(8px, 0.72vw, 10px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.11em;
	text-align: center;
	text-transform: uppercase;
}

.wst-card__hover-claims > span + span::before {
	margin-right: 7px;
	content: "\00b7";
}

/* Native WooCommerce sale flash, restyled for this card. */
body.wst-wh-product-grid ul.products li.product .onsale {
	position: absolute !important;
	top: 12px !important;
	right: auto !important;
	left: 12px !important;
	z-index: 11;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	background: var(--wst-card-accent) !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 500;
	line-height: 1.2 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Wishlist button is hidden until the card is hovered or keyboard-focused. */
body.wst-wh-product-grid .wst-card__wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 12;
	display: inline-flex;
	visibility: hidden;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(250, 247, 242, 0.92);
	box-shadow: 0 8px 24px rgba(14, 58, 48, 0.12);
	color: var(--wst-card-text);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-5px);
	cursor: pointer;
	transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, background-color 160ms ease;
	backdrop-filter: blur(6px);
}

body.wst-wh-product-grid .wst-card__wishlist svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.7;
	transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
}

body.wst-wh-product-grid .wst-card__wishlist:hover,
body.wst-wh-product-grid .wst-card__wishlist:focus-visible {
	background: var(--wst-card-surface);
}

body.wst-wh-product-grid .wst-card__wishlist:focus-visible {
	outline: 2px solid var(--wst-card-panel-accent);
	outline-offset: 2px;
}

body.wst-wh-product-grid .wst-card__wishlist:hover svg {
	transform: scale(1.08);
}

body.wst-wh-product-grid .wst-card__wishlist.is-active {
	color: var(--wst-card-accent);
}

body.wst-wh-product-grid .wst-card__wishlist.is-active svg {
	fill: currentColor;
	stroke: currentColor;
}

.wst-card__quick-add {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	z-index: 10;
	display: flex;
	visibility: hidden;
	flex-direction: column;
	padding: 10px;
	border: 1px solid var(--wst-card-line);
	border: 1px solid color-mix(in srgb, var(--wst-card-line) 75%, transparent);
	border-radius: 10px;
	background: rgba(250, 247, 242, 0.96);
	background: color-mix(in srgb, var(--wst-card-surface) 96%, transparent);
	box-shadow: 0 12px 32px rgba(14, 58, 48, 0.1);
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
	backdrop-filter: blur(8px);
}

.wst-card__quick-title {
	display: block;
	margin: 0 0 8px;
	color: var(--neutral);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.wst-card__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice,
body.wst-wh-product-grid .wst-card__quick-add a.wst-card__choice.button {
	display: inline-flex !important;
	min-width: 0;
	min-height: 36px;
	flex: 1 1 76px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 8px 9px !important;
	border: 1px solid 1px solid var(--base-light) !important !important;
	border-radius: 7px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wst-card-text) !important;
	font-size: var(--text-xs);
	font-weight: 400;
	line-height: 1.15 !important;
	text-align: center;
	text-decoration: none !important;
	white-space: normal;
	cursor: pointer;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice--wide {
	flex-basis: 100%;
}
body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice:hover,
body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice:focus-visible,
body.wst-wh-product-grid .wst-card__quick-add a.wst-card__choice.button:hover {
	border-color: var(--primary) !important;
	background: var(--primary) !important;
	color: var(--white) !important;
	outline: none;
}

body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice.is-loading {
	cursor: wait;
	opacity: 0.62;
}

body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice.is-added {
	border-color: var(--wst-card-text) !important;
	background: var(--wst-card-text) !important;
	color: var(--wst-card-surface) !important;
}

body.wst-wh-product-grid .wst-card__quick-add .wst-card__choice.is-disabled {
	cursor: not-allowed;
	opacity: 0.42;
	text-decoration: line-through !important;
}

/* WooCommerce inserts a View cart link after a successful legacy AJAX add. */
.wst-card__quick-add .added_to_cart.wc-forward {
	display: none !important;
}

.wst-card__info {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
	padding-top: 15px;
	container-type: inline-size;
	container-name: wst-card-info;
}

.wst-card__summary-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	min-height: 20px;
	margin-bottom: var(--space-s);
}

.wst-card__price-wrap {
	min-width: max-content;
	justify-self: end;
	text-align: right;
}

.wst-card__rating {
	display: flex;
	min-width: 0;
	flex-wrap: nowrap;
	align-items: center;
	gap: 7px;
	min-height: 16px;
}

.wst-card__review-count {
	color: var(--wst-card-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* "From" label shown before the lowest price of variable products. */
body.wst-wh-product-grid ul.products li.product .wst-card__price .wst-card__price-from {
	color: var(--wst-card-muted);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
}

.woocommerce ul.products li.product .price.wst-card__price {
	align-items: baseline;
}

/* Narrow cards: tighten the rating so it still fits beside the price. */
@container wst-card-info (max-width: 300px) {
	.wst-card__summary-row {
		gap: 8px;
	}

	.wst-card__info .wst-card__rating {
		gap: 5px;
	}

	.wst-card__info .wst-card__stars svg {
		width: 18px;
		height: 18px;
		flex-basis: 18px;
	}

	.wst-card__info .wst-card__review-count {
		font-size: 13px;
	}

	/*
	 * Float "From" above the amount so the price column stays narrow
	 * without making this row taller than on simple-product cards.
	 */
	.woocommerce ul.products li.product .wst-card__info .price.wst-card__price {
		position: relative;
	}

	body.wst-wh-product-grid ul.products li.product .wst-card__price .wst-card__price-from {
		position: absolute;
		right: 0;
		bottom: 100%;
		font-size: 11px;
		line-height: 1;
	}
}

body.wst-wh-product-grid ul.products li.product .wst-card__title {
  padding: 0 !important;
  color: var(--neutral-dark);
  font-size: var(--text-l);
  font-family: var(--heading-font-family);
  font-weight: 500;
}

.wst-card__title a {
	color: inherit;
	text-decoration: none;
}

.wst-card__title a:hover,
.wst-card__title a:focus-visible {
	color: var(--wst-card-accent);
}

.wst-card__description,
.wst-card__meta {
	margin: 0;
}

.wst-card__description {
  color: var(--neutral);
  font-size: var(--text-m);
}

.wst-card__meta {
	color: var(--wst-card-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

body.wst-wh-product-grid ul.products li.product .wst-card__price, body.wst-wh-product-grid ul.products li.product .wst-card__price .amount {
  color: var(--neutral);
  /*font-size: calc(var(--text-m) *1.2);*/
  font-weight: 600;
  line-height: 1.3;
  font-family: var(--heading-font-family);
}
.woocommerce ul.products li.product .price.wst-card__price {
  display: flex;
  gap: 5px;
}
body.wst-wh-product-grid ul.products li.product .wst-card__price {
	margin: 0;
	white-space: nowrap;
}

body.wst-wh-product-grid ul.products li.product .wst-card__price ins {
	background: transparent;
	text-decoration: none;
}

body.wst-wh-product-grid ul.products li.product .wst-card__price del,
body.wst-wh-product-grid ul.products li.product .wst-card__price del .amount {
	color: var(--wst-card-muted) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
}


@container (max-width: 300px) {
	.wst-card__hover-panel-inner {
		padding: 28px 20px 94px;
	}

	.wst-card__hover-heading {
		margin-bottom: 8px;
		font-size: 12px;
	}

	.wst-card__hover-row {
		min-height: 36px;
		padding: 7px 0;
		font-size: 10px;
	}

	.wst-card__hover-mark {
		width: 34px;
		margin-bottom: 12px;
	}

	.wst-card__hover-claims {
		margin-top: auto;
		font-size: 7px;
		letter-spacing: 0.08em;
	}
}


@container (max-width: 240px) {
	.wst-card__summary-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.wst-card__price-wrap {
		justify-self: start;
		text-align: left;
	}
}

@media (hover: hover) and (pointer: fine) {
	/*.wst-card__media.has-hover-panel:hover .wst-card__image--front,
	.wst-card__media.has-hover-panel:focus-within .wst-card__image--front {
		opacity: 0;
		transform: scale(1.01);
	}*/

	.wst-card__media.has-hover-panel:hover .wst-card__hover-panel,
	.wst-card__media.has-hover-panel:focus-within .wst-card__hover-panel {
		opacity: 1;
		transform: scale(1);
	}

	.wst-card__media:hover .wst-card__quick-add,
	.wst-card__media:focus-within .wst-card__quick-add {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.wst-card__media:hover .wst-card__wishlist,
	.wst-card__media:focus-within .wst-card__wishlist,
	.wst-card__wishlist:focus-visible {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}
}



/* Touch devices keep the image visible and move quick add below it. */
@media (hover: none), (pointer: coarse) {
	body.wst-wh-product-grid .wst-card__wishlist {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.wst-card__quick-add,
	.wst-card__quick-add.is-static {
		position: static;
		visibility: visible;
		margin-top: 10px;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		backdrop-filter: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wst-card,
	.wst-card__image,
	.wst-card__hover-panel,
	.wst-card__wishlist,
	.wst-card__quick-add,
	.wst-card__choice {
		animation: none !important;
		transition: none !important;
	}
}

@keyframes wst-card-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


.wst-card__stars {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	line-height: 0;
	vertical-align: middle;
}

.wst-card__stars-base,
.wst-card__stars-fill-inner {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 0px;
}

.wst-card__stars svg {
	display: block;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

.wst-card__stars-base svg {
	fill: var(--secondary);
}

.wst-card__stars-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	pointer-events: none;
}

.wst-card__stars-fill-inner svg {
	fill: var(--wst-card-accent, #d4a83a);
}



/* =========================================================
   SHOP TOOLBAR
   ========================================================= */

.wst-shop-toolbar {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 26px 0 48px;
	padding: 18px 0;
	border-top: 1px solid var(--wst-card-line, #ece4d6);
	border-bottom: 1px solid var(--wst-card-line, #ece4d6);
}

.wst-shop-toolbar__left,
.wst-shop-toolbar__right {
	display: flex;
	align-items: center;
}

.wst-shop-toolbar__right {
	justify-content: flex-end;
	gap: 22px;
}

.wst-shop-toolbar__filter {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: var(--wst-card-text);
	font-family: var(--text-font-family);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.wst-shop-toolbar__filter svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

.wst-shop-toolbar__filter:hover {
	color: var(--wst-card-accent);
}

.wst-shop-toolbar__count {
	color: var(--wst-card-muted, #8b8f86);
	font-size: 13px;
	font-weight: 400;
	white-space: nowrap;
}

/* Grid switcher */

.wst-shop-toolbar__grid-switcher {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wst-grid-button {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wst-card-line, #ece4d6);
	border-radius: 7px;
	background: transparent;
	color: var(--wst-card-text, #14463a);
	cursor: pointer;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.wst-grid-button svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.35;
}

.wst-grid-button:hover {
	border-color: var(--wst-card-text, #14463a);
}

.wst-grid-button.is-active {
	border-color: var(--wst-card-text, #14463a);
	background: var(--wst-card-text, #14463a);
	color: var(--wst-card-surface, #faf7f2);
}

/* Native WooCommerce sorting form */

.wst-shop-toolbar__sorting {
	position: relative;
	min-width: 190px;
}

.wst-shop-toolbar__sorting::after {
	position: absolute;
	top: 50%;
	right: 5px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	color: var(--wst-card-text, #14463a);
	content: "";
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.wst-shop-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
	width: 100%;
}

.wst-shop-toolbar .woocommerce-ordering select {
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 6px 34px 6px 6px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: var(--wst-card-text, #14463a);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	appearance: none;
	cursor: pointer;
	background: transparent !important;
}
.wst-shop-toolbar .woocommerce-ordering select:focus {
	outline: none !important;
	border: none !important;
}

/*.wst-shop-toolbar .woocommerce-ordering select:focus-visible {
	outline: 2px solid var(--wst-card-accent, #bf9a44);
	outline-offset: 3px;
}
*/
/* Grid column states */

body.wst-wh-product-grid ul.products.wst-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.wst-wh-product-grid ul.products.wst-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tablet should always use two columns. */
@media only screen and (max-width: 1080px) {
	body.wst-wh-product-grid {
		--wst-grid-columns: 3;
	}
	body.wst-wh-product-grid ul.products.wst-columns-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.wst-wh-product-grid ul.products.wst-columns-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

	.wst-card__hover-panel-inner {
		padding-right: 12%;
		padding-left: 12%;
	}
	.wst-card__stars svg {
	  width: 16px;
	  height: 16px;
	  flex: 0 0 16px;
	}
	.wst-product-results .price span {
  font-size: var(--text-m);
}
}


@media (max-width: 900px) {
	body.wst-wh-product-grid ul.products.wst-columns-3,
	body.wst-wh-product-grid ul.products.wst-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wst-shop-toolbar {
		margin-bottom: 34px;
	}

	.wst-shop-toolbar__right {
		gap: 14px;
	}
}


/* Mobile */
@media (max-width: 760px) {
	body.wst-wh-product-grid {
		--wst-grid-columns: 2;
		--wst-grid-gap-x: 16px;
		--wst-grid-gap-y: 32px;
	}
}
@media (max-width: 640px) {
	.wst-shop-toolbar {
		align-items: stretch;
		gap: 14px;
		padding: 14px 0;
	}

	.wst-shop-toolbar__right {
		justify-content: space-between;
	}

	.wst-shop-toolbar__count {
		display: none;
	}

	.wst-shop-toolbar__grid-switcher {
		display: none;
	}

	.wst-shop-toolbar__sorting {
		width: 100%;
		min-width: 0;
	}

	body.wst-wh-product-grid ul.products.wst-columns-3,
	body.wst-wh-product-grid ul.products.wst-columns-4 {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 440px) {
	body.wst-wh-product-grid {
		--wst-grid-columns: 1;
	}
}


/* =========================================================
   PRODUCT FILTER DRAWER
   ========================================================= */

html.wst-filter-scroll-lock,
html.wst-filter-scroll-lock body {
	overflow: hidden !important;
}

/* Overlay */
.wst-filter-overlay {
	position: fixed;
	z-index: 99998;
	inset: 0;
	background: rgba(14, 58, 48, 0.4);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	cursor: pointer;
	transition:
		opacity 300ms ease,
		visibility 300ms ease;
}

body.wst-product-filter-open .wst-filter-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Drawer shell */
#wst-product-filter.wst-filter-drawer {
	position: fixed;
	z-index: 2147483640;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	width: 368px;
	max-width: 90vw;
	height: 100vh;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--wst-card-surface, #faf7f2);
	box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
	visibility: hidden;
	transform: translateX(-100%);
	transition:
		transform 340ms ease,
		visibility 340ms ease;
}

body.wst-product-filter-open
	#wst-product-filter.wst-filter-drawer {
	visibility: visible;
	transform: translateX(0);
}

/* Drawer header */
#wst-product-filter .wst-filter-drawer__header {
	display: flex;
	min-height: 78px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	margin: 0;
	padding: 24px 28px;
	border: 0;
	border-bottom: 1px solid var(--wst-card-line, #ece4d6);
	background: var(--wst-card-surface, #faf7f2);
}


#wst-product-filter .wst-filter-drawer__header h2 {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--wst-card-text, #14463a);
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

#wst-product-filter .wst-filter-drawer__close {
	display: inline-flex;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wst-card-text, #14463a) !important;
	cursor: pointer;
	appearance: none;
}

#wst-product-filter .wst-filter-drawer__close:hover,
#wst-product-filter .wst-filter-drawer__close:focus-visible {
	background: var(--wst-card-stage, #f2ece0) !important;
	outline: none;
}

#wst-product-filter .wst-filter-drawer__close:focus-visible {
	box-shadow: 0 0 0 2px var(--wst-card-accent, #bf9a44) !important;
}

#wst-product-filter .wst-filter-drawer__close svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

/* Scrollable drawer content */
#wst-product-filter .wst-filter-drawer__content {
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	margin: 0;
	padding: 8px 28px 20px;
	background: var(--wst-card-surface, #faf7f2);
	scrollbar-width: thin;
	scrollbar-color: #cfc6b7 transparent;
}

#wst-product-filter .wst-filter-drawer__content::-webkit-scrollbar {
	width: 6px;
}

#wst-product-filter .wst-filter-drawer__content::-webkit-scrollbar-track {
	background: transparent;
}

#wst-product-filter .wst-filter-drawer__content::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background: #cfc6b7;
}

/* Filter groups */
#wst-product-filter .wst-filter-group {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 20px 0 !important;
	border: 0;
	border-bottom: 1px solid var(--wst-card-line, #ece4d6);
}

#wst-product-filter .wst-filter-group:last-child {
	border-bottom: 0;
}

#wst-product-filter .wst-filter-group__heading {
	display: flex;
	width: 100%;
	min-width: 0;
	min-height: 0;
	align-items: center;
	justify-content: space-between;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wst-card-text, #14463a) !important;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	appearance: none;
}

#wst-product-filter .wst-filter-group__heading:hover,
#wst-product-filter .wst-filter-group__heading:focus-visible {
	color: var(--wst-card-accent, #bf9a44) !important;
	outline: none;
}

#wst-product-filter .wst-filter-group__arrow {
	display: block;
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	margin: -3px 3px 0 12px;
	border: 0;
	border-right: 1.4px solid currentColor;
	border-bottom: 1.4px solid currentColor;
	transform: rotate(45deg);
	transition: transform 200ms ease;
}

#wst-product-filter .wst-filter-group.is-closed .wst-filter-group__arrow {
	margin-top: 3px;
	transform: rotate(225deg);
}

#wst-product-filter .wst-filter-group__options {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 13px;
	margin: 0 !important;
	padding: 16px 0 0 !important;
}

#wst-product-filter .wst-filter-group.is-closed .wst-filter-group__options {
	display: none;
}

/* Checkbox rows */
#wst-product-filter .wst-filter-option {
	position: relative;
	display: flex;
	width: 100%;
	min-width: 0;
	min-height: 18px;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--wst-card-ink, #46504a);
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.35;
	cursor: pointer;
}

#wst-product-filter .wst-filter-option::before,
#wst-product-filter .wst-filter-option::after {
	display: none !important;
	content: none !important;
}

#wst-product-filter .wst-filter-option input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0;
	pointer-events: none;
}

#wst-product-filter .wst-filter-option__box {
	display: inline-flex;
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
	flex: 0 0 18px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 1.4px solid var(--wst-card-text, #14463a);
	border-radius: 3px;
	background: transparent;
	box-sizing: border-box;
	transition:
		border-color 160ms ease,
		background-color 160ms ease;
}

#wst-product-filter .wst-filter-option__box svg {
	display: block;
	width: 11px;
	height: 11px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	opacity: 0;
}

#wst-product-filter .wst-filter-option input:checked + .wst-filter-option__box {
	border-color: var(--wst-card-text, #14463a);
	background: var(--wst-card-text, #14463a);
}

#wst-product-filter .wst-filter-option input:checked + .wst-filter-option__box svg {
	opacity: 1;
}

#wst-product-filter .wst-filter-option:hover .wst-filter-option__box {
	border-color: var(--wst-card-accent, #bf9a44);
}

#wst-product-filter .wst-filter-option input:focus-visible + .wst-filter-option__box {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wst-card-accent, #bf9a44) 45%, transparent);
}

#wst-product-filter .wst-filter-option__name {
	min-width: 0;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	color: var(--wst-card-ink, #46504a);
	line-height: 1.35;
}

#wst-product-filter .wst-filter-option input:checked ~ .wst-filter-option__name {
	color: var(--wst-card-text, #14463a);
	font-weight: 600;
}

/* Hide any legacy term-count markup if it still exists. */
#wst-product-filter .wst-filter-option__count,
#wst-product-filter .count {
	display: none !important;
}

/* Price range */
#wst-product-filter .wst-filter-group--price .wst-filter-group__options {
	gap: 12px;
}

#wst-product-filter .wst-filter-price {
	display: block;
	width: 100%;
	height: 18px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
	box-shadow: none !important;
	accent-color: var(--wst-card-text, #14463a);
	cursor: pointer;
}

#wst-product-filter .wst-filter-price__label {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--wst-card-ink, #46504a);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

#wst-product-filter .wst-filter-price__label strong {
	color: var(--wst-card-text, #14463a);
	font-weight: 600;
}

/* Fixed drawer footer */
#wst-product-filter .wst-filter-drawer__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: 12px;
	flex: 0 0 auto;
	margin: 0;
	padding: 18px 28px;
	border: 0;
	border-top: 1px solid var(--wst-card-line, #ece4d6);
	background: var(--wst-card-surface, #faf7f2);
}

#wst-product-filter .wst-filter-drawer__reset,
#wst-product-filter .wst-filter-drawer__view {
	display: inline-flex;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 12px 14px !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: capitalize;
	white-space: normal;
	cursor: pointer;
	appearance: none;
}

#wst-product-filter .wst-filter-drawer__reset {
	border: 1px solid #e2d8c7 !important;
	background: transparent !important;
	color: var(--wst-card-text, #14463a) !important;
}

#wst-product-filter .wst-filter-drawer__reset:hover,
#wst-product-filter .wst-filter-drawer__reset:focus-visible {
	border-color: var(--wst-card-text, #14463a) !important;
	outline: none;
}

#wst-product-filter .wst-filter-drawer__view {
	border: 1px solid var(--wst-card-text, #14463a) !important;
	background: var(--wst-card-text, #14463a) !important;
	color: var(--wst-card-surface, #faf7f2) !important;
}

#wst-product-filter .wst-filter-drawer__view:hover,
#wst-product-filter .wst-filter-drawer__view:focus-visible {
	border-color: #0e3a30 !important;
	background: #0e3a30 !important;
	outline: none;
}

/* =========================================================
   ACTIVE FILTER CHIPS
   ========================================================= */

.wst-filter-chips {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin: -22px 0 38px;
}

.wst-filter-chips.is-empty {
	display: none;
}

.wst-filter-chip {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	gap: 9px;
	margin: 0 !important;
	padding: 7px 10px 7px 16px !important;
	border: 1px solid var(--wst-card-line, #e8dfcf) !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wst-card-text, #14463a) !important;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
	transition:
		border-color 180ms ease,
		color 180ms ease;
}

.wst-filter-chip:hover,
.wst-filter-chip:focus-visible {
	border-color: var(--wst-card-accent, #bf9a44) !important;
	color: var(--wst-card-accent, #bf9a44) !important;
	outline: none;
}

.wst-filter-chip__remove {
	color: var(--wst-card-muted, #8b8f86);
	font-size: 16px;
	line-height: 1;
}

.wst-filter-clear {
	margin: 0 !important;
	padding: 7px 3px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wst-card-accent, #bf9a44) !important;
	font: inherit;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	appearance: none;
}

/* =========================================================
   AJAX LOADING
   ========================================================= */

.wst-product-results ul.products,
.wst-product-results .woocommerce-pagination {
	transition: opacity 180ms ease;
}

body.wst-products-loading .wst-product-results ul.products,
body.wst-products-loading .wst-product-results .woocommerce-pagination {
	opacity: 0.42;
	pointer-events: none;
}

body.wst-products-loading {
	cursor: progress;
}

/* Mobile */
@media (max-width: 640px) {
	.wst-filter-chips {
		margin-top: 18px;
		margin-bottom: 28px;
	}

	.wst-filter-chip {
		min-height: 34px;
		padding: 6px 9px 6px 13px !important;
	}
}

@media (max-width: 480px) {
	#wst-product-filter.wst-filter-drawer {
		width: 90vw;
		max-width: 90vw;
	}

	#wst-product-filter .wst-filter-drawer__header {
		padding: 21px 22px;
	}

	#wst-product-filter .wst-filter-drawer__content {
		padding-right: 22px;
		padding-left: 22px;
	}

	#wst-product-filter .wst-filter-drawer__footer {
		grid-template-columns: 1fr;
		padding: 16px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wst-filter-overlay,
	#wst-product-filter.wst-filter-drawer,
	#wst-product-filter .wst-filter-group__arrow,
	.wst-product-results ul.products,
	.wst-product-results .woocommerce-pagination {
		transition: none !important;
	}
}
