/**
 * Spektar Product Carousel — layout and nav (tiny-slider base in vendor CSS).
 * Pre-JS: horizontal row + constrained slide width via --spektar-cols-* (set inline on .spektar-pc).
 */

.spektar-pc {
	position: relative;
	margin-bottom: 1.5rem;
	--spektar-cols: var(--spektar-cols-xs, 1);
	--spektar-img-max: 72%;
	--spektar-pc-accent: #dd5b3f;
	--spektar-pc-surface: #f3f2ef;
}

@media (min-width: 480px) {
	.spektar-pc {
		--spektar-cols: var(--spektar-cols-sm, 2);
	}
}

@media (min-width: 768px) {
	.spektar-pc {
		--spektar-cols: var(--spektar-cols-md, 3);
	}
}

@media (min-width: 993px) {
	.spektar-pc {
		--spektar-cols: var(--spektar-cols-lg, 4);
	}
}

@media (min-width: 1200px) {
	.spektar-pc {
		--spektar-cols: var(--spektar-cols-xl, 5);
	}
}

@media (min-width: 1400px) {
	.spektar-pc {
		--spektar-cols: var(--spektar-cols-2xl, 6);
	}
}

.spektar-pc__nav-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.spektar-pc__slider-shell {
	flex: 1;
	min-width: 0;
}

/* Pagination dots live inside .tns-outer (tiny-slider default nav; do not use empty navContainer). */
.spektar-pc:not(.spektar-ic) .tns-outer .tns-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	margin: 1rem 0 0;
	padding: 0;
	text-align: center;
}

.spektar-pc:not(.spektar-ic) .tns-outer .tns-nav button {
	width: 8px;
	height: 8px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: #c9c8c5;
	cursor: pointer;
	line-height: 0;
	transition: background 0.15s ease, transform 0.15s ease;
}

.spektar-pc:not(.spektar-ic) .tns-outer .tns-nav button:hover,
.spektar-pc:not(.spektar-ic) .tns-outer .tns-nav button:focus-visible {
	background: #a8a7a3;
	outline: none;
}

.spektar-pc:not(.spektar-ic) .tns-outer .tns-nav button.tns-nav-active {
	background: var(--spektar-pc-accent);
	transform: scale(1.05);
}

.spektar-pc__prev,
.spektar-pc__next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	font-size: 1.35rem;
	line-height: 1;
	color: #222;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.spektar-pc__prev:hover,
.spektar-pc__next:hover,
.spektar-pc__prev:focus-visible,
.spektar-pc__next:focus-visible {
	background: #f5f5f5;
}

/* Pre-JS: force horizontal row (div defaults + theme .products would stack). */
.spektar-pc .spektar-pc__track:not(.tns-slider) {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: stretch;
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
}

.spektar-pc .spektar-pc__track:not(.tns-slider) > .spektar-ic__slide,
.spektar-pc .spektar-pc__track:not(.tns-slider) > .product {
	box-sizing: border-box;
	flex: 0 0
		calc(
			(
					100% - (var(--spektar-cols, 1) - 1) *
						var(
							--spektar-gap,
							16px
						)
				) / var(--spektar-cols, 1)
		);
	max-width: calc(
		(
				100% - (var(--spektar-cols, 1) - 1) *
					var(
						--spektar-gap,
						16px
					)
			) / var(--spektar-cols, 1)
	);
	min-width: 0;
	margin: 0;
}

/*
 * Post–tiny-slider: keep horizontal slide flow if base tns CSS is missing or
 * theme sets .product { display: flex } (must be inline-block for subpixel mode).
 */
.spektar-pc .spektar-pc__track.tns-horizontal.tns-subpixel {
	white-space: nowrap !important;
}

.spektar-pc .spektar-pc__track.tns-horizontal.tns-subpixel > .tns-item {
	display: inline-block !important;
	vertical-align: top;
	white-space: normal;
	box-sizing: border-box;
}

.spektar-pc .spektar-pc__track.tns-horizontal.tns-no-subpixel::after {
	content: '';
	display: table;
	clear: both;
}

.spektar-pc .spektar-pc__track.tns-horizontal.tns-no-subpixel > .tns-item {
	float: left;
}

/* Product carousel: card link is flex; slide wrapper must stay inline-level once tiny-slider runs. */
.spektar-pc:not(.spektar-ic) .spektar-pc__product-card {
	width: 100%;
	box-sizing: border-box;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-card:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-cat {
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #6f6e6b;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-price {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
	margin-top: 0.15rem;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-price .price {
	margin: 0;
	font: inherit;
	color: inherit;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-price del {
	font-weight: 400;
	color: #8b8a87;
	font-size: 0.875em;
	margin-right: 0.25rem;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-price ins {
	text-decoration: none;
	font-weight: 700;
	color: #111;
}

/* Image carousel: icon left, label right */
.spektar-pc.spektar-ic .spektar-ic__img {
	display: block;
	flex-shrink: 0;
	width: auto;
	height: auto;
	max-width: 3.5rem;
	max-height: 3rem;
	object-fit: contain;
	margin: 0;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-media {
	overflow: hidden;
	border-radius: 8px;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-img {
	transform: scale(1);
	transform-origin: center center;
	transition: transform 0.35s ease;
}

.spektar-pc:not(.spektar-ic) .spektar-pc__product-card:hover .spektar-pc__product-img,
.spektar-pc:not(.spektar-ic) .spektar-pc__product-card:focus-visible .spektar-pc__product-img {
	transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
	.spektar-pc:not(.spektar-ic) .spektar-pc__product-card {
		transition: none;
	}

	.spektar-pc:not(.spektar-ic) .spektar-pc__product-img {
		transition: none;
	}

	.spektar-pc:not(.spektar-ic) .spektar-pc__product-card:hover .spektar-pc__product-img,
	.spektar-pc:not(.spektar-ic) .spektar-pc__product-card:focus-visible .spektar-pc__product-img {
		transform: none;
	}

	.spektar-pc:not(.spektar-ic) .tns-outer .tns-nav button {
		transition: none;
	}
}

.spektar-pc .tns-outer {
	position: relative;
}

.spektar-pc .tns-ovh {
	overflow: hidden;
}

.spektar-ic__card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	min-height: 3.25rem;
	padding: 0.65rem 1rem;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.spektar-ic__card:hover {
	background: #f5f5f5;
}

.spektar-ic__link.spektar-ic__card {
	text-decoration: none;
	color: inherit;
}

.spektar-ic__link.spektar-ic__card:hover {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.spektar-ic__link.spektar-ic__card:focus-visible {
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	outline: 2px solid #111;
	outline-offset: 2px;
}

.spektar-pc:not(.spektar-ic) .product {
	text-align: left;
}

.spektar-ic__caption {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	color: #111;
}

.spektar-pc .spektar-pc__track.spektar-ic__track {
	padding-top: 10px;
	padding-bottom: 10px;
}

.spektar-pc .spektar-pc__track.spektar-ic__track .spektar-ic__card {
	box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.06);
}

.home-new-products .spektar-pc:not(.spektar-ic) .spektar-pc__product-body {
	gap: 16px;
}

.home-new-products .spektar-pc:not(.spektar-ic) .spektar-pc__product-title {
	font-weight: 500;
	font-size: 14px;
}

.home-new-products .spektar-pc__prev,
.home-new-products .spektar-pc__next {
	margin-bottom: 20px;
}