/**
 * SBS single-product visual refresh.
 * Medium-weight product typography and a KNXSupply-inspired image gallery.
 */

/* Keep the site's configured typeface while removing the overly heavy title. */
body.single-product .woocommerce div.product .product_title,
body.single-product .woocommerce div.product h1.product_title,
body.single-product .elementor-widget-woocommerce-product-title .product_title,
body.single-product .elementor-widget-woocommerce-product-title h1,
body.single-product .elementor-widget-theme-post-title h1 {
	font-weight: 500 !important;
	font-synthesis: none;
	letter-spacing: -0.018em;
	line-height: 1.22;
}

body.single-product .woocommerce div.product .summary .price,
body.single-product .woocommerce div.product .summary .woocommerce-Price-amount {
	font-weight: 600;
}

body.single-product .woocommerce div.product .summary .product_meta,
body.single-product .woocommerce div.product .summary .product_meta a,
body.single-product .woocommerce div.product .summary .woocommerce-product-details__short-description,
body.single-product .woocommerce div.product form.cart .variations label {
	font-weight: 400;
}

body.single-product .woocommerce div.product form.cart .variations th,
body.single-product .woocommerce div.product form.cart .variations label,
body.single-product .woocommerce div.product .woocommerce-tabs .panel > h2,
body.single-product .woocommerce div.product .woocommerce-tabs .panel > h3 {
	font-weight: 500;
}

/* Gallery: vertical thumbnail rail + large square product stage. */
body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery {
	--sbs-gallery-thumb-width: 82px;
	--sbs-gallery-gap: 20px;
	--sbs-gallery-radius: 5px;
	--sbs-gallery-border: #d9dde3;
	--sbs-gallery-active: #d7a600;
	display: grid !important;
	grid-template-columns: var(--sbs-gallery-thumb-width) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) 42px;
	column-gap: var(--sbs-gallery-gap);
	row-gap: 10px;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .flex-viewport,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .flex-viewport {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 100%;
	min-width: 0;
	aspect-ratio: 1 / 1;
	height: auto !important;
	background: #fff;
	border: 1px solid var(--sbs-gallery-border);
	border-radius: var(--sbs-gallery-radius);
	overflow: hidden;
	box-sizing: border-box;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery > .woocommerce-product-gallery__wrapper,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery > .woocommerce-product-gallery__wrapper {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 100%;
	min-width: 0;
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--sbs-gallery-border);
	border-radius: var(--sbs-gallery-radius);
	overflow: hidden;
	box-sizing: border-box;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__wrapper,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image,
body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image > a,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image > a {
	height: 100%;
	min-height: 0;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image > a,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(14px, 2.4vw, 34px);
	box-sizing: border-box;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image img,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	margin: 0 !important;
	object-fit: contain;
	object-position: center;
	box-shadow: none !important;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100% !important;
	height: 100%;
	max-height: 100%;
	margin: 0 !important;
	padding: 0 2px 0 0 !important;
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-behavior: smooth;
	scroll-snap-type: y proximity;
	scrollbar-width: none;
	box-sizing: border-box;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs::-webkit-scrollbar,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li {
	flex: 0 0 auto;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 4px !important;
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--sbs-gallery-border);
	border-radius: var(--sbs-gallery-radius);
	overflow: hidden;
	scroll-snap-align: start;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li:hover,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li:hover {
	border-color: #aeb5bf;
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li:has(img.flex-active),
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--sbs-gallery-active);
	box-shadow: 0 0 0 1px var(--sbs-gallery-active);
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li.sbs-thumb-active,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li.sbs-thumb-active {
	border-color: var(--sbs-gallery-active);
	box-shadow: 0 0 0 1px var(--sbs-gallery-active);
}

body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs img,
body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
	object-position: center;
	border: 0 !important;
	border-radius: 2px;
	opacity: 1 !important;
	cursor: pointer;
}

body.single-product .sbs-gallery-thumb-controls {
	grid-column: 1;
	grid-row: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	height: 42px;
	border: 1px solid var(--sbs-gallery-border);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}

body.single-product .sbs-gallery-thumb-control {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0;
	color: #333b45;
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease;
}

body.single-product .sbs-gallery-thumb-control + .sbs-gallery-thumb-control {
	border-left: 1px solid var(--sbs-gallery-border);
}

body.single-product .sbs-gallery-thumb-control:hover,
body.single-product .sbs-gallery-thumb-control:focus-visible {
	color: #0067ad;
	background: #f5f7f9;
	outline: none;
}

body.single-product .sbs-gallery-thumb-control:focus-visible {
	box-shadow: inset 0 0 0 2px #0067ad;
}

body.single-product .sbs-gallery-thumb-control[disabled] {
	color: #aab0b8;
	background: #fafafa;
	cursor: default;
}

body.single-product .sbs-gallery-thumb-control svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) .sbs-gallery-thumb-controls {
	display: none;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) {
	grid-template-rows: minmax(0, 1fr);
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) .flex-viewport,
body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) > .woocommerce-product-gallery__wrapper {
	grid-row: 1;
}


body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) {
	align-items: center;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) ol.flex-control-thumbs {
	align-self: center;
	justify-content: center;
	height: auto;
	max-height: 100%;
	padding: 0 !important;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) ol.flex-control-thumbs li {
	width: 100% !important;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) .flex-viewport,
body.single-product .woocommerce-product-gallery.sbs-knx-gallery:not(.sbs-gallery-has-overflow) > .woocommerce-product-gallery__wrapper {
	align-self: center;
}

/* Tablets: slightly narrower rail while retaining the reference layout. */
@media (max-width: 1024px) and (min-width: 768px) {
	body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery {
		--sbs-gallery-thumb-width: 82px;
		--sbs-gallery-gap: 14px;
	}
}

/* Phones: main image first, horizontal thumbnail strip below. */
@media (max-width: 767px) {
	body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery {
		display: flex !important;
		flex-direction: column;
		gap: 12px;
	}

	body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery .flex-viewport,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery .flex-viewport,
	body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery > .woocommerce-product-gallery__wrapper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery > .woocommerce-product-gallery__wrapper {
		order: 1;
		width: 100%;
		aspect-ratio: 1 / 1;
	}

	body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs {
		order: 2;
		flex-direction: row;
		gap: 9px;
		width: 100% !important;
		height: auto;
		padding: 1px 0 4px !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
	}

	body.single-product .woocommerce div.product .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery ol.flex-control-thumbs li {
		flex: 0 0 76px;
		width: 76px !important;
	}

	body.single-product .sbs-gallery-thumb-controls {
		display: none !important;
	}

	body.single-product .woocommerce div.product .product_title,
	body.single-product .woocommerce div.product h1.product_title,
	body.single-product .elementor-widget-woocommerce-product-title .product_title,
	body.single-product .elementor-widget-woocommerce-product-title h1,
	body.single-product .elementor-widget-theme-post-title h1 {
		line-height: 1.26;
		letter-spacing: -0.012em;
	}
}

/* Desktop cursor-follow zoom panel, matching the supplied product-gallery reference. */
body.single-product .woocommerce-product-gallery.sbs-knx-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery.sbs-knx-gallery > .woocommerce-product-gallery__wrapper {
	position: relative;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery .zoomImg {
	display: none !important;
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-no-thumbs {
	grid-template-columns: minmax(0, 1fr);
}

body.single-product .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-no-thumbs .flex-viewport,
body.single-product .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-no-thumbs > .woocommerce-product-gallery__wrapper {
	grid-column: 1;
}

body.single-product .sbs-gallery-zoom-lens {
	position: absolute;
	display: none;
	z-index: 8;
	margin: 0;
	padding: 0;
	border: 2px solid var(--sbs-gallery-active, #d7a600);
	background: rgba(215, 166, 0, 0.13);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	box-sizing: border-box;
	pointer-events: none;
}

body.single-product .sbs-gallery-zoom-lens.is-visible {
	display: block;
}

body.single-product .sbs-gallery-zoom-panel {
	position: fixed;
	display: none;
	z-index: 2147482000;
	margin: 0;
	padding: 0;
	background-color: #fff;
	background-repeat: no-repeat;
	border: 1px solid var(--sbs-gallery-active, #d7a600);
	border-radius: var(--sbs-gallery-radius, 5px);
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
	box-sizing: border-box;
	overflow: hidden;
	pointer-events: none;
}

body.single-product .sbs-gallery-zoom-panel.is-visible {
	display: block;
}

@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
	body.single-product .woocommerce-product-gallery.sbs-knx-gallery .flex-viewport,
	body.single-product .woocommerce-product-gallery.sbs-knx-gallery > .woocommerce-product-gallery__wrapper {
		cursor: crosshair;
	}

	body.single-product .woocommerce-product-gallery.sbs-knx-gallery .woocommerce-product-gallery__trigger {
		cursor: zoom-in;
	}
}

@media (max-width: 1099px), (hover: none), (pointer: coarse) {
	body.single-product .sbs-gallery-zoom-lens,
	body.single-product .sbs-gallery-zoom-panel {
		display: none !important;
	}
}

/* v2.1.74: SBS theme Swiper compatibility — vertical thumbnail rail. */
@media (min-width: 640px) {
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready {
		display: grid !important;
		grid-template-columns: var(--sbs-gallery-thumb-width, 82px) minmax(0, 1fr) !important;
		grid-template-rows: minmax(0, 1fr) !important;
		align-items: stretch !important;
		column-gap: var(--sbs-gallery-gap, 20px) !important;
		row-gap: 0 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		overflow: visible !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper {
		grid-column: 2 !important;
		grid-row: 1 !important;
		align-self: center !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		aspect-ratio: 1 / 1 !important;
		background: #fff !important;
		border: 1px solid var(--sbs-gallery-border, #d9dde3) !important;
		border-radius: var(--sbs-gallery-radius, 5px) !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-wrapper,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-slide,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-wrapper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a {
		width: 100% !important;
		height: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: clamp(14px, 2.4vw, 34px) !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image img,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		margin: 0 auto !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper {
		grid-column: 1 !important;
		grid-row: 1 !important;
		align-self: stretch !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 100% !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper::before,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper::after,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper::before,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper::after {
		display: none !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-wrapper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-wrapper {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 0 10px !important;
		padding: 4px !important;
		flex: 0 0 auto !important;
		aspect-ratio: 1 / 1 !important;
		background: #fff !important;
		border: 1px solid var(--sbs-gallery-border, #d9dde3) !important;
		border-radius: var(--sbs-gallery-radius, 5px) !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li:last-child,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide:last-child,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li:last-child,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide:last-child {
		margin-bottom: 0 !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper img,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		object-fit: contain !important;
		object-position: center center !important;
		opacity: 1 !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-button-prev,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-button-next,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-pagination,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready > .sbs-gallery-arrow,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-button-prev,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-button-next,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-pagination,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready > .sbs-gallery-arrow {
		display: none !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-arrow,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-arrow {
		left: 50% !important;
		right: auto !important;
		width: calc(100% - 8px) !important;
		height: 28px !important;
		min-width: 0 !important;
		min-height: 28px !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: translateX(-50%) !important;
		background: rgba(255, 255, 255, .96) !important;
		border: 1px solid var(--sbs-gallery-border, #d9dde3) !important;
		box-shadow: 0 2px 8px rgba(16, 24, 40, .10) !important;
		z-index: 7 !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-prev,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-prev {
		top: 4px !important;
		bottom: auto !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-next,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-next {
		top: auto !important;
		bottom: 4px !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-prev::before,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-prev::before {
		content: "⌃" !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-next::before,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-next::before {
		content: "⌄" !important;
	}
}

@media (max-width: 639px) {
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready {
		display: flex !important;
		flex-direction: column !important;
		gap: 12px !important;
	}
}



/* v2.1.78: stable compact gallery sizing without stretching or collapsing thumbnails. */
@media (min-width: 640px) {
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready {
		grid-template-rows: var(--sbs-gallery-stage-size, 460px) !important;
		height: var(--sbs-gallery-stage-size, 460px) !important;
		min-height: 0 !important;
		max-height: var(--sbs-gallery-stage-size, 460px) !important;
		align-items: stretch !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper {
		height: var(--sbs-gallery-stage-size, 460px) !important;
		min-height: 0 !important;
		max-height: var(--sbs-gallery-stage-size, 460px) !important;
		aspect-ratio: auto !important;
		border: 1px solid var(--sbs-gallery-border, #d9dde3) !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-wrapper,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-slide,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-wrapper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a {
		height: 100% !important;
		min-height: 0 !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a {
		padding: clamp(10px, 1.7vw, 22px) !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image img,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image img {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper {
		height: var(--sbs-gallery-stage-size, 460px) !important;
		min-height: 0 !important;
		max-height: var(--sbs-gallery-stage-size, 460px) !important;
		overflow: hidden !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-wrapper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-wrapper {
		height: auto !important;
		min-height: 0 !important;
		justify-content: flex-start !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide {
		flex: 0 0 var(--sbs-gallery-thumb-width, 82px) !important;
		width: 100% !important;
		height: var(--sbs-gallery-thumb-width, 82px) !important;
		min-height: var(--sbs-gallery-thumb-width, 82px) !important;
		max-height: var(--sbs-gallery-thumb-width, 82px) !important;
		aspect-ratio: 1 / 1 !important;
	}
}

@media (max-width: 639px) {
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready {
		height: auto !important;
		max-height: none !important;
	}
}


/* v2.1.79: compact gallery and guaranteed visible frame. */
@media (min-width: 640px) {
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready {
		--sbs-gallery-thumb-width: 82px;
		--sbs-gallery-gap: 16px;
		grid-template-rows: var(--sbs-gallery-stage-size, 460px) !important;
		height: var(--sbs-gallery-stage-size, 460px) !important;
		max-height: var(--sbs-gallery-stage-size, 460px) !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper {
		height: var(--sbs-gallery-stage-size, 460px) !important;
		max-height: var(--sbs-gallery-stage-size, 460px) !important;
		border: 0 !important;
		border-radius: var(--sbs-gallery-radius, 5px) !important;
		background: #fff !important;
		box-shadow: inset 0 0 0 1px var(--sbs-gallery-border, #d9dde3) !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-wrapper,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-slide,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-wrapper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a {
		height: 100% !important;
		min-height: 0 !important;
		box-sizing: border-box !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image > a {
		padding: 16px !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image img,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-main-swiper .woocommerce-product-gallery__image img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper {
		height: var(--sbs-gallery-stage-size, 460px) !important;
		max-height: var(--sbs-gallery-stage-size, 460px) !important;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide {
		flex: 0 0 82px !important;
		height: 82px !important;
		min-height: 82px !important;
		max-height: 82px !important;
		aspect-ratio: 1 / 1 !important;
	}
}

@media (min-width: 640px) and (max-width: 1024px) {
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready {
		--sbs-gallery-thumb-width: 74px;
		--sbs-gallery-gap: 12px;
	}

	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.sbs-product-layout-page div.product div.images.woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .flex-control-thumbs li,
	body.single-product .elementor-widget-woocommerce-product-images .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-swiper-ready .sbs-product-thumb-swiper .swiper-slide {
		flex-basis: 74px !important;
		height: 74px !important;
		min-height: 74px !important;
		max-height: 74px !important;
	}
}


/* v2.1.80: keep thumbnail navigation available for continuous wrap-around. */
@media (min-width: 640px) {
	body.single-product .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-loop-enabled
	.sbs-product-thumb-swiper:not(.sbs-thumb-no-navigation).sbs-thumb-no-prev .sbs-product-thumb-prev,
	body.single-product .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-loop-enabled
	.sbs-product-thumb-swiper:not(.sbs-thumb-no-navigation).sbs-thumb-no-next .sbs-product-thumb-next,
	body.single-product .woocommerce-product-gallery.sbs-knx-gallery.sbs-gallery-loop-enabled
	.sbs-product-thumb-swiper:not(.sbs-thumb-no-navigation) .sbs-product-thumb-arrow.swiper-button-disabled {
		display: flex !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}
