/* Golden Tech — gt_slider product carousel (scoped, no dependencies) */

.gt-slider {
	--gt-gap: 16px;
	--gt-per-view: var(--gt-columns, 4);
	position: relative;
	width: 100%;
	max-width: 100%;
}

.gt-slider__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	color: inherit;
}

.gt-slider__viewport {
	position: relative;
	overflow: hidden;
}

.gt-slider__track {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* keep product-card hover effects inside bounds */
	padding: 6px 2px;
	margin: 0;
}

.gt-slider__track::-webkit-scrollbar {
	display: none;
	height: 0;
}

/* Normalise whatever the theme does to WooCommerce product lists */
.gt-slider__track ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: var(--gt-gap);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.gt-slider__track ul.products::before,
.gt-slider__track ul.products::after {
	content: none !important;
	display: none !important;
}

.gt-slider__track ul.products > li.product {
	flex: 0 0 auto;
	width: calc((100% - (var(--gt-per-view) - 1) * var(--gt-gap)) / var(--gt-per-view)) !important;
	max-width: none !important;
	min-width: 0;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
	scroll-snap-align: start;
}

/* Arrows */
.gt-slider__btn {
	position: absolute;
	top: 42%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gt-slider__btn:hover {
	background: #0b63f6;
	border-color: #0b63f6;
	color: #fff;
}

.gt-slider__btn:focus-visible {
	outline: 2px solid #0b63f6;
	outline-offset: 2px;
}

.gt-slider__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

/* Logical sides: in RTL the browser flips these automatically */
.gt-slider__btn--prev {
	inset-inline-start: 4px;
}

.gt-slider__btn--next {
	inset-inline-end: 4px;
}

@media (max-width: 1024px) {
	.gt-slider {
		--gt-per-view: 3;
	}
}

@media (max-width: 767px) {
	.gt-slider {
		--gt-per-view: 2;
	}

	.gt-slider__btn {
		display: none;
	}
}

@media (max-width: 480px) {
	.gt-slider {
		--gt-per-view: 1.35;
	}
}
