/**
 * Sparkton Product Category Slider
 * Scoped styles to avoid conflicts with Astra and WooCommerce templates.
 */
.spcs-slider,
.spcs-slider *,
.spcs-slider *::before,
.spcs-slider *::after {
	box-sizing: border-box;
}

.spcs-slider {
	--spcs-items-desktop: 8;
	--spcs-items-tablet: 5;
	--spcs-items-mobile: 3;
	--spcs-items: var(--spcs-items-desktop);
	--spcs-effective-items: var(--spcs-items);
	--spcs-gap: 10px;
	--spcs-scroll-items: 1;
	--spcs-arrow-size: 34px;
	--spcs-arrow-offset: -8px;
	position: relative;
	width: 100%;
	min-width: 0;
	isolation: isolate;
}

@media (max-width: 1024px) {
	.spcs-slider {
		--spcs-items: var(--spcs-items-tablet);
	}
}

@media (max-width: 767px) {
	.spcs-slider {
		--spcs-items: var(--spcs-items-mobile);
	}
}

.spcs-viewport {
	width: 100%;
	min-width: 0;
	overflow: hidden;
	padding: 3px;
	margin: -3px;
}

.spcs-track {
	display: flex;
	align-items: stretch;
	gap: var(--spcs-gap);
	width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0;
	margin: 0;
	scroll-snap-type: inline mandatory;
	scroll-behavior: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	touch-action: pan-y pinch-zoom;
	cursor: grab;
}

.spcs-track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.spcs-track:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.spcs-slider.spcs-drag-disabled .spcs-track {
	cursor: auto;
}

.spcs-track.spcs-is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.spcs-slider.spcs-is-animating .spcs-track {
	scroll-snap-type: none;
	scroll-behavior: auto;
	will-change: scroll-position;
}

.spcs-track.spcs-is-dragging a {
	pointer-events: none;
}

.spcs-item {
	flex: 0 0 calc((100% - (var(--spcs-effective-items) - 1) * var(--spcs-gap)) / var(--spcs-effective-items));
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.spcs-card,
.spcs-card:visited {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 112px;
	padding: 10px 8px 9px;
	margin: 0;
	background: #fff;
	border: 1px solid #e7e9ee;
	border-radius: 7px;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
	pointer-events: auto;
	cursor: pointer;
	touch-action: manipulation;
	transition-property: transform, background-color, border-color, box-shadow, color;
	transition-duration: 200ms;
	transition-timing-function: ease;
}

.spcs-card:hover,
.spcs-card:focus,
.spcs-card:active,
.spcs-card:focus-visible {
	text-decoration: none !important;
}

.spcs-card:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.spcs-image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	min-width: 0;
	margin: 0 0 7px;
	overflow: hidden;
	line-height: 0;
}

.spcs-image-wrap img,
.spcs-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	box-shadow: none !important;
	object-fit: contain;
}

.spcs-title {
	display: -webkit-box;
	width: 100%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #171a1f;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
}

.spcs-count {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	color: #737983;
	font-size: 10px;
	line-height: 1.2;
	text-align: center;
}

.spcs-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	width: var(--spcs-arrow-size);
	height: var(--spcs-arrow-size);
	min-width: var(--spcs-arrow-size);
	min-height: var(--spcs-arrow-size);
	padding: 0;
	margin: 0;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(16, 24, 40, 0.1);
	color: #22262c;
	line-height: 1;
	cursor: pointer;
	transition: opacity 160ms ease, visibility 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.spcs-slider.spcs-is-ready[data-arrows="yes"] .spcs-nav {
	display: flex;
}

.spcs-prev {
	inset-inline-start: var(--spcs-arrow-offset);
}

.spcs-next {
	inset-inline-end: var(--spcs-arrow-offset);
}

.spcs-nav svg {
	display: block;
	width: 15px;
	height: 15px;
	pointer-events: none;
}

.spcs-nav:hover,
.spcs-nav:focus-visible {
	transform: translateY(-50%) scale(1.04);
}

.spcs-nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.spcs-nav[disabled] {
	cursor: default;
	opacity: 0.35;
}

.spcs-slider.spcs-hide-disabled .spcs-nav[disabled] {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.spcs-slider.spcs-no-overflow .spcs-nav {
	display: none !important;
}

.spcs-editor-message {
	padding: 14px 16px;
	border: 1px dashed #c8cdd6;
	border-radius: 6px;
	background: #f7f8fa;
	color: #4c5564;
	font-size: 13px;
	line-height: 1.5;
}

@media (max-width: 767px) {
	.elementor-element.spcs-hide-arrows-mobile-yes .spcs-nav {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spcs-track,
	.spcs-card,
	.spcs-nav {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
