/*
 * Reversible catalogue-card layer.
 *
 * Kadence Woo Templates keeps ownership of the card content. Core Tools only
 * improves the visual hierarchy and responsive layout on product archives.
 */

body.ep-core-catalog-cards {
	--ep-card-border: #d9e4ee;
	--ep-card-border-active: #9ab7d8;
	--ep-card-surface: #fff;
	--ep-card-soft: #f7faff;
	--ep-card-text: #172236;
	--ep-card-muted: #66758a;
	--ep-card-blue: #285a96;
	--ep-card-blue-dark: #1f4778;
}

/* Active FiboFilters results are finite by design. Kadence's status element
 * must not reserve space or suggest that another unfiltered page will load. */
body.ep-core-filtered-results .page-load-status,
body.ep-core-filtered-results .ep-core-filtered-load-status {
	display: none !important;
}

body.ep-core-catalog-cards .woocommerce ul.products,
body.ep-core-catalog-cards.woocommerce-page ul.products {
	align-items: stretch !important;
	display: grid !important;
	gap: 18px !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products::before,
body.ep-core-catalog-cards .woocommerce ul.products::after,
body.ep-core-catalog-cards.woocommerce-page ul.products::before,
body.ep-core-catalog-cards.woocommerce-page ul.products::after {
	display: none !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product {
	box-sizing: border-box;
	display: flex !important;
	float: none !important;
	height: auto !important;
	margin: 0 !important;
	max-width: none !important;
	min-width: 0 !important;
	padding: 0 !important;
	width: auto !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product > .wp-block-kadence-column,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product > .wp-block-kadence-column {
	background: var(--ep-card-surface) !important;
	border: 1px solid var(--ep-card-border) !important;
	border-radius: 16px !important;
	box-shadow: 0 7px 22px rgba(31, 58, 91, .055) !important;
	box-sizing: border-box !important;
	height: 100% !important;
	min-width: 0 !important;
	overflow: hidden !important;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product > .wp-block-kadence-column > .kt-inside-inner-col,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product > .wp-block-kadence-column > .kt-inside-inner-col {
	align-items: stretch !important;
	background: transparent !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	height: 100% !important;
	justify-content: flex-start !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .kwt-image-wrap,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .kwt-image-wrap {
	align-items: center !important;
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #fff 0%, var(--ep-card-soft) 100%) !important;
	border-bottom: 1px solid #e8eef5;
	box-sizing: border-box;
	display: grid !important;
	justify-items: center !important;
	margin: 0 !important;
	min-width: 0 !important;
	overflow: hidden !important;
	padding: 12px !important;
	position: relative;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .kwt-image-wrap > a,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .kwt-image-wrap > a {
	align-items: center;
	display: grid !important;
	height: 100% !important;
	justify-items: center;
	margin: 0 !important;
	min-width: 0;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .kwt-image-wrap img,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .kwt-image-wrap img {
	height: 100% !important;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: contain !important;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .rating-slot,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .rating-slot {
	display: none !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating {
	box-sizing: border-box;
	margin: 0 !important;
	padding: 10px 14px 0 !important;
	text-align: left !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating:empty,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating:empty {
	display: none !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-title,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-title {
	box-sizing: border-box;
	margin: 0 !important;
	min-width: 0;
	padding: 14px 14px 0 !important;
	text-align: left !important;
	width: 100%;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-title h2,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-title h2,
body.ep-core-catalog-cards .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--ep-card-text) !important;
	display: -webkit-box !important;
	font-size: 16px !important;
	font-weight: 750 !important;
	letter-spacing: -.012em !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	min-height: 2.7em;
	overflow: hidden;
	padding: 0 !important;
	text-align: left !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-price,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-price {
	align-items: flex-start !important;
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column !important;
	gap: 5px !important;
	margin: 0 !important;
	min-width: 0 !important;
	padding: 11px 14px 0 !important;
	text-align: left !important;
	width: 100%;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-price .ep-klub-price__regular,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-price .ep-klub-price__regular {
	display: none !important;
	float: none !important;
	inset: auto !important;
	margin: 0 !important;
	max-width: 100% !important;
	position: static !important;
	transform: none !important;
	white-space: nowrap !important;
}

/* Keep the duplicated member regular price from escaping Kadence cards. */
body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__meta > del.ep-klub-price__regular,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__meta > del.ep-klub-price__regular {
	display: none !important;
	float: none !important;
	inset: auto !important;
	position: static !important;
	transform: none !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating {
	align-items: center !important;
	box-sizing: border-box;
	display: flex !important;
	height: 24px !important;
	justify-content: flex-start !important;
	margin: 7px 0 -4px !important;
	min-width: 0;
	overflow: hidden;
	padding: 0 14px !important;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating:empty,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating:empty {
	display: none !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating .star-rating,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating .star-rating {
	color: #f5ad19 !important;
	font-size: 15px !important;
	height: 1em !important;
	letter-spacing: 2px !important;
	line-height: 1 !important;
	margin: 0 !important;
	overflow: hidden !important;
	width: 6.4em !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating .star-rating::before,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating .star-rating::before {
	color: #d8dee8 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating .star-rating span::before,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating .star-rating span::before {
	color: #f5ad19 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price,
body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__main,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__main {
	align-items: flex-start !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	margin: 0 !important;
	min-width: 0 !important;
	text-align: left !important;
	width: 100%;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__label,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__label {
	color: var(--ep-card-blue) !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	letter-spacing: .055em !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__current,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__current,
body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__current .amount,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__current .amount,
body.ep-core-catalog-cards .woocommerce ul.products li.product .price > .amount,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price > .amount,
body.ep-core-catalog-cards .woocommerce ul.products li.product .price ins .amount,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price ins .amount {
	color: var(--ep-card-text) !important;
	font-size: 21px !important;
	font-weight: 850 !important;
	letter-spacing: -.025em !important;
	line-height: 1.08 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__suffix,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__suffix,
body.ep-core-catalog-cards .woocommerce ul.products li.product .woocommerce-price-suffix,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .woocommerce-price-suffix {
	color: var(--ep-card-muted) !important;
	font-size: 10px !important;
	font-weight: 650 !important;
	letter-spacing: 0 !important;
	margin-left: 4px !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__meta,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__meta {
	align-items: center !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 5px 7px !important;
	inset: auto !important;
	justify-content: flex-start !important;
	margin: 0 !important;
	max-width: 100% !important;
	min-width: 0 !important;
	position: static !important;
	transform: none !important;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__meta > .ep-klub-price__regular,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__meta > .ep-klub-price__regular,
body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__meta > .ep-klub-price__chip,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__meta > .ep-klub-price__chip {
	flex: 0 1 auto !important;
	order: 0 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__regular,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__regular,
body.ep-core-catalog-cards .woocommerce ul.products li.product .price del,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price del,
body.ep-core-catalog-cards .woocommerce ul.products li.product .price del .amount,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price del .amount {
	color: #8793a4 !important;
	font-size: 12px !important;
	font-weight: 650 !important;
	line-height: 1.2 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__chip,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__chip {
	background: #edf4ff !important;
	border-radius: 999px !important;
	color: var(--ep-card-blue) !important;
	font-size: 11px !important;
	font-weight: 750 !important;
	line-height: 1.2 !important;
	padding: 4px 7px !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-badge--loop,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-badge--loop {
	align-items: baseline !important;
	color: var(--ep-card-blue) !important;
	display: flex !important;
	flex-wrap: wrap !important;
	font-size: 12px !important;
	gap: 3px !important;
	justify-content: flex-start !important;
	line-height: 1.3 !important;
	margin: 3px 0 0 !important;
	min-width: 0;
	text-align: left !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-badge--loop .ep-klub-badge__title,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-badge--loop .ep-klub-badge__title {
	font-weight: 800 !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-stock,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-stock {
	align-self: flex-start !important;
	font-size: 11px !important;
	justify-content: flex-start !important;
	line-height: 1.25 !important;
	margin: 10px 14px 0 !important;
	max-width: calc(100% - 28px) !important;
	min-height: 29px !important;
	padding: 6px 9px !important;
	text-align: left !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-cta,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-cta {
	box-sizing: border-box;
	margin: auto 0 0 !important;
	padding: 14px !important;
	width: 100%;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-cta .button,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-cta .button {
	align-items: center !important;
	background: var(--ep-card-blue) !important;
	border: 0 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	color: #fff !important;
	display: flex !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	justify-content: center !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	min-height: 46px !important;
	padding: 10px 12px !important;
	text-align: center !important;
	white-space: normal !important;
	width: 100% !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-cta .button:hover,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-cta .button:hover {
	background: var(--ep-card-blue-dark) !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product > .wp-block-kadence-column:focus-within,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product > .wp-block-kadence-column:focus-within {
	border-color: var(--ep-card-border-active) !important;
	box-shadow: 0 0 0 3px rgba(40, 90, 150, .12), 0 12px 28px rgba(31, 58, 91, .09) !important;
}

body.ep-core-catalog-cards .woocommerce ul.products li.product a:focus-visible,
body.ep-core-catalog-cards.woocommerce-page ul.products li.product a:focus-visible {
	outline: 3px solid rgba(40, 90, 150, .35) !important;
	outline-offset: 2px !important;
}

@media (hover: hover) and (pointer: fine) {
	body.ep-core-catalog-cards .woocommerce ul.products li.product > .wp-block-kadence-column:hover,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product > .wp-block-kadence-column:hover {
		border-color: var(--ep-card-border-active) !important;
		box-shadow: 0 14px 32px rgba(31, 58, 91, .105) !important;
		transform: translateY(-2px);
	}
}

@media (max-width: 767px) {
	body.ep-core-catalog-cards .woocommerce ul.products,
	body.ep-core-catalog-cards.woocommerce-page ul.products {
		gap: 10px !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product > .wp-block-kadence-column,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product > .wp-block-kadence-column {
		border-radius: 13px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .kwt-image-wrap,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .kwt-image-wrap {
		padding: 7px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-rating,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-rating {
		padding: 8px 10px 0 !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-title,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-title {
		padding: 11px 10px 0 !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-title h2,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-title h2,
	body.ep-core-catalog-cards .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product h2.woocommerce-loop-product__title {
		-webkit-line-clamp: 3;
		font-size: 15px !important;
		line-height: 1.3 !important;
		min-height: 3.9em;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-price,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-price {
		gap: 4px !important;
		padding: 9px 10px 0 !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__current,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__current,
	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__current .amount,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__current .amount,
	body.ep-core-catalog-cards .woocommerce ul.products li.product .price > .amount,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price > .amount,
	body.ep-core-catalog-cards .woocommerce ul.products li.product .price ins .amount,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price ins .amount {
		font-size: 18px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__regular,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__regular,
	body.ep-core-catalog-cards .woocommerce ul.products li.product .price del,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price del,
	body.ep-core-catalog-cards .woocommerce ul.products li.product .price del .amount,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .price del .amount {
		font-size: 11px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-price__chip,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-price__chip,
	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-klub-badge--loop,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-klub-badge--loop {
		font-size: 10.5px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-stock,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-stock {
		font-size: 10.5px !important;
		margin: 9px 10px 0 !important;
		max-width: calc(100% - 20px) !important;
		min-height: 28px !important;
		padding: 5px 8px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-cta,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-cta {
		padding: 11px 10px 10px !important;
	}

	body.ep-core-catalog-cards .woocommerce ul.products li.product .ep-card-cta .button,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product .ep-card-cta .button {
		font-size: 13px !important;
		min-height: 46px !important;
		padding: 9px 7px !important;
	}
}

/* JS inserts the category-only view control; desktop keeps its existing layout. */
body.ep-core-catalog-cards--category .ep-catalog-view-switch {
	display: none;
}

body.ep-core-catalog-cards--category .ep-catalog-view-switch[hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	/* Keep the native Kadence/Woo content, including prices and actual ratings. */
	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product > .wp-block-kadence-column {
		box-shadow: 0 2px 5px rgba(23, 37, 58, .035) !important;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .kwt-image-wrap {
		aspect-ratio: auto;
		background: #fff !important;
		border-bottom: 0;
		height: clamp(116px, 32vw, 148px) !important;
		min-height: 0;
		padding: 8px !important;
	}

	/* A two-column photo must stay square after returning from list view.
	 * Size the link independently of the image's intrinsic/% height, otherwise
	 * Kadence can leave a 160px image inside a 125px overflow-hidden wrapper. */
	body.ep-core-catalog-cards.ep-core-catalog-cards--category:not(.ep-core-catalog-cards--mobile-list) ul.products li.product .kwt-image-wrap {
		aspect-ratio: 1 / 1;
		flex: 0 0 auto !important;
		height: auto !important;
		min-height: 0;
		position: relative;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category:not(.ep-core-catalog-cards--mobile-list) ul.products li.product .kwt-image-wrap > a {
		height: auto !important;
		inset: 8px !important;
		min-height: 0 !important;
		position: absolute !important;
		width: auto !important;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category:not(.ep-core-catalog-cards--mobile-list) ul.products li.product .kwt-image-wrap img {
		height: 100% !important;
		max-height: 100% !important;
		max-width: 100% !important;
		object-fit: contain !important;
		object-position: center;
		width: 100% !important;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-card-title h2,
	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product h2.woocommerce-loop-product__title {
		-webkit-line-clamp: unset;
		display: block !important;
		font-size: 15px !important;
		font-weight: 650 !important;
		height: auto !important;
		line-height: 1.4 !important;
		max-height: none !important;
		min-height: 0;
		overflow: visible;
		overflow-wrap: anywhere;
		white-space: normal !important;
		word-break: normal;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-card-rating {
		flex-wrap: wrap;
		gap: 4px;
		height: auto !important;
		min-height: 0;
		overflow: visible;
	}

	/* Currency values and ranges may wrap, but are never clipped or ellipsized. */
	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-card-price,
	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-card-price :is(.price, .amount, bdi, ins, del, .ep-klub-price, .ep-klub-price__main, .ep-klub-price__current, .ep-klub-price__regular, .ep-klub-price__meta, .ep-klub-badge--loop) {
		max-width: 100% !important;
		min-width: 0 !important;
		overflow: visible !important;
		overflow-wrap: anywhere;
		text-overflow: clip;
		white-space: normal !important;
		word-break: normal;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-card-price :is(.ep-klub-price__current, .ep-klub-price__current .amount, .price > .amount, .price ins .amount) {
		font-size: clamp(18px, 5.2vw, 21px) !important;
		font-variant-numeric: tabular-nums;
		line-height: 1.2 !important;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-stock {
		align-items: flex-start;
		border-radius: 5px;
		font-size: 11px !important;
		line-height: 1.35 !important;
		overflow-wrap: anywhere;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-stock::before {
		margin-top: 4px;
	}

	body.ep-core-catalog-cards.ep-core-catalog-cards--category ul.products li.product .ep-card-cta .button {
		border-radius: 8px !important;
		font-weight: 650 !important;
		min-height: 46px !important;
	}

	/* Full-width title, compact image, and unmodified commerce content alongside. */
	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products {
		gap: 12px !important;
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product > .wp-block-kadence-column > .kt-inside-inner-col {
		align-items: start !important;
		display: grid !important;
		grid-template-areas:
			"title title"
			"image rating"
			"image price"
			"image stock"
			"cta cta";
		grid-template-columns: 124px minmax(0, 1fr);
		grid-template-rows: auto auto auto 1fr auto;
		column-gap: 14px !important;
		padding: 12px !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .kwt-image-wrap {
		align-self: center !important;
		border: 0;
		border-radius: 7px;
		grid-area: image;
		height: 124px !important;
		min-height: 0;
		padding: 3px !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-title {
		grid-area: title;
		padding: 0 0 12px !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-title h2,
	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product h2.woocommerce-loop-product__title {
		font-size: 16px !important;
		line-height: 1.38 !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-rating {
		grid-area: rating;
		margin: 0 !important;
		padding: 0 0 8px !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-price {
		grid-area: price;
		padding: 0 !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-price :is(.ep-klub-price__current, .ep-klub-price__current .amount, .price > .amount, .price ins .amount) {
		font-size: clamp(18px, 5.8vw, 23px) !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-stock {
		grid-area: stock;
		font-size: 12px !important;
		margin: 10px 0 0 !important;
		max-width: 100% !important;
		min-height: 0 !important;
		padding: 5px 7px !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-cta {
		grid-area: cta;
		padding: 12px 0 0 !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .ep-card-cta .button {
		font-size: 14px !important;
	}

	body.ep-core-catalog-cards--category .ep-catalog-view-switch {
		align-items: center;
		background: #fff;
		border: 1px solid var(--ep-card-border);
		border-radius: 9px;
		box-sizing: border-box;
		display: flex;
		gap: 2px;
		justify-content: flex-end;
		margin: 0 0 12px auto;
		padding: 2px;
		width: fit-content;
	}

	/* Share the existing ordering row instead of reserving another mobile row. */
	body.ep-core-catalog-cards--category .ep-catalog-ordering-slot {
		flex: 0 0 100% !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	body.ep-core-catalog-cards--category form.woocommerce-ordering.ep-catalog-ordering-with-view {
		align-items: center !important;
		display: grid !important;
		float: none !important;
		gap: 8px !important;
		grid-template-columns: minmax(0, 1fr) auto;
		margin: 0 !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	body.ep-core-catalog-cards--category .ep-catalog-ordering-with-view select.orderby {
		box-sizing: border-box;
		font-size: 16px !important;
		height: 48px !important;
		margin: 0 !important;
		max-width: 100% !important;
		min-width: 0 !important;
		width: 100% !important;
	}

	body.ep-core-catalog-cards--category .ep-catalog-ordering-with-view .ep-catalog-view-switch {
		margin: 0 !important;
	}

	body.ep-core-catalog-cards--category .ep-catalog-view-switch__button {
		align-items: center;
		appearance: none;
		background: transparent;
		border: 0;
		border-radius: 6px;
		box-shadow: none;
		color: var(--ep-card-muted);
		cursor: pointer;
		display: flex;
		justify-content: center;
		margin: 0;
		min-height: 44px;
		min-width: 44px;
		padding: 10px;
	}

	body.ep-core-catalog-cards--category .ep-catalog-view-switch__button[aria-pressed="true"] {
		background: #eaf1fa;
		color: var(--ep-card-blue);
	}

	body.ep-core-catalog-cards--category .ep-catalog-view-switch__button:focus-visible {
		outline: 3px solid var(--ep-card-blue);
		outline-offset: 2px;
	}

	body.ep-core-catalog-cards--category :is(.ep-catalog-view-switch__icon--list, .ep-catalog-view-switch__icon--grid) {
		display: block;
		flex: 0 0 18px;
		height: 18px;
		pointer-events: none;
		width: 18px;
	}

	body.ep-core-catalog-cards--category .ep-catalog-view-switch__icon--list {
		background: linear-gradient(currentColor, currentColor) 0 1px / 18px 3px no-repeat,
			linear-gradient(currentColor, currentColor) 0 7px / 18px 3px no-repeat,
			linear-gradient(currentColor, currentColor) 0 13px / 18px 3px no-repeat;
	}

	body.ep-core-catalog-cards--category .ep-catalog-view-switch__icon--grid {
		background: linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat,
			linear-gradient(currentColor, currentColor) 11px 0 / 7px 7px no-repeat,
			linear-gradient(currentColor, currentColor) 0 11px / 7px 7px no-repeat,
			linear-gradient(currentColor, currentColor) 11px 11px / 7px 7px no-repeat;
	}
}

@media (max-width: 359px) {
	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product > .wp-block-kadence-column > .kt-inside-inner-col {
		column-gap: 10px !important;
		grid-template-columns: 108px minmax(0, 1fr);
		padding: 10px !important;
	}

	body.ep-core-catalog-cards--category.ep-core-catalog-cards--mobile-list ul.products li.product .kwt-image-wrap {
		height: 108px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.ep-core-catalog-cards .woocommerce ul.products li.product > .wp-block-kadence-column,
	body.ep-core-catalog-cards.woocommerce-page ul.products li.product > .wp-block-kadence-column {
		transition: none;
	}
}
