/*
 * Homepage product sliders use the same Woo Template markup as catalogue cards.
 * This layer carries over the approved hierarchy without touching Splide sizing.
 */
body.home .wp-block-kadence-productcarousel {
	--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;
}

body.home .wp-block-kadence-productcarousel ul.products li.product {
	box-sizing: border-box;
	display: flex !important;
	height: auto !important;
	min-width: 0 !important;
	padding: 0 !important;
}

body.home .wp-block-kadence-productcarousel 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.home .wp-block-kadence-productcarousel 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.home .wp-block-kadence-productcarousel .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;
	width: 100% !important;
}

body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .rating-slot {
	display: none !important;
}

body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-card-rating:empty {
	display: none !important;
}

body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-card-rating .star-rating::before {
	color: #d8dee8 !important;
}

body.home .wp-block-kadence-productcarousel .ep-card-rating .star-rating span::before {
	color: #f5ad19 !important;
}

body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-card-title h2,
body.home .wp-block-kadence-productcarousel 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.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-klub-price,
body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-klub-price__current,
body.home .wp-block-kadence-productcarousel .ep-klub-price__current .amount,
body.home .wp-block-kadence-productcarousel .price > .amount,
body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-klub-price__regular,
body.home .wp-block-kadence-productcarousel .price del,
body.home .wp-block-kadence-productcarousel .price del .amount {
	color: #8793a4 !important;
	float: none !important;
	font-size: 12px !important;
	font-weight: 650 !important;
	inset: auto !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	max-width: 100% !important;
	position: static !important;
	transform: none !important;
	white-space: nowrap !important;
}

body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-card-cta {
	box-sizing: border-box;
	margin: auto 0 0 !important;
	padding: 14px !important;
	width: 100%;
}

body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel 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.home .wp-block-kadence-productcarousel a:focus-visible {
	outline: 3px solid rgba(40, 90, 150, .35) !important;
	outline-offset: 2px !important;
}

@media (hover: hover) and (pointer: fine) {
	body.home .wp-block-kadence-productcarousel 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.home .wp-block-kadence-productcarousel ul.products li.product > .wp-block-kadence-column {
		border-radius: 13px !important;
	}

	body.home .wp-block-kadence-productcarousel .kwt-image-wrap {
		padding: 7px !important;
	}

	body.home .wp-block-kadence-productcarousel .ep-card-title {
		padding: 11px 10px 0 !important;
	}

	body.home .wp-block-kadence-productcarousel .ep-card-title h2,
	body.home .wp-block-kadence-productcarousel h2.woocommerce-loop-product__title {
		font-size: 15px !important;
		line-height: 1.3 !important;
		min-height: 2.6em;
	}

	body.home .wp-block-kadence-productcarousel .ep-card-price {
		gap: 4px !important;
		padding: 9px 10px 0 !important;
	}

	body.home .wp-block-kadence-productcarousel .ep-card-rating {
		height: 21px !important;
		margin: 6px 0 -3px !important;
		padding-inline: 10px !important;
	}

	body.home .wp-block-kadence-productcarousel .ep-card-rating .star-rating {
		font-size: 13px !important;
		letter-spacing: 1.5px !important;
	}

	body.home .wp-block-kadence-productcarousel .ep-klub-price__current,
	body.home .wp-block-kadence-productcarousel .ep-klub-price__current .amount,
	body.home .wp-block-kadence-productcarousel .price > .amount,
	body.home .wp-block-kadence-productcarousel .price ins .amount {
		font-size: 18px !important;
	}

	body.home .wp-block-kadence-productcarousel .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.home .wp-block-kadence-productcarousel .ep-card-cta {
		padding: 11px 10px 10px !important;
	}

	body.home .wp-block-kadence-productcarousel .ep-card-cta .button {
		font-size: 13px !important;
		min-height: 46px !important;
		padding: 9px 7px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .wp-block-kadence-productcarousel ul.products li.product > .wp-block-kadence-column {
		transition: none;
	}
}
/*
 * Keep the heavy below-the-fold homepage sections out of the initial layout
 * and paint pass. The intrinsic sizes match the current blocks closely, so
 * the browser can reserve their space without introducing a visible jump.
 */
@supports (content-visibility: auto) {
	body.home .wp-block-kadence-productcarousel {
		content-visibility: auto;
		contain-intrinsic-size: auto 620px;
	}

	body.home .wp-block-kadence-advancedgallery {
		content-visibility: auto;
		contain-intrinsic-size: auto 230px;
	}

	body.home .ep-google-reviews {
		content-visibility: auto;
		contain-intrinsic-size: auto 965px;
	}

	body.home .site-footer.ep-footer {
		content-visibility: auto;
		contain-intrinsic-size: auto 960px;
	}
}
