.related.products.hb-related-carousel {
	position: relative;
}

.related.products .hb-related-carousel-viewport {
	position: relative;
	isolation: isolate;
	width: 100%;
	overflow: visible;
}

.related.products .hb-related-carousel-track,
.related.products > ul.products {
	display: flex !important;
	grid-template-columns: none !important;
	flex-wrap: nowrap !important;
	gap: var(--grid-columns-gap, 30px);
	width: 100%;
	margin: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	position: relative;
	z-index: 1;
}

.related.products .hb-related-carousel-track::-webkit-scrollbar,
.related.products > ul.products::-webkit-scrollbar {
	display: none;
}

.related.products .hb-related-carousel-track > li.product,
.related.products > ul.products > li.product {
	flex: 0 0 calc((100% - (3 * var(--grid-columns-gap, 30px))) / 4) !important;
	width: calc((100% - (3 * var(--grid-columns-gap, 30px))) / 4) !important;
	max-width: none !important;
	min-width: 0;
	scroll-snap-align: start;
}

.hb-related-carousel-button {
	position: absolute;
	top: 50%;
	z-index: 50;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-height: 48px;
	padding: 0;
	border: 1px solid rgba(26, 31, 34, 0.14);
	border-radius: 50%;
	color: var(--theme-text-color, #30363a);
	background: #fff;
	box-shadow: 0 8px 24px rgba(26, 31, 34, 0.14);
	transform: translateY(-50%);
	cursor: pointer;
	pointer-events: auto;
	touch-action: manipulation;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hb-related-carousel-button:hover:not(:disabled),
.hb-related-carousel-button:focus-visible:not(:disabled) {
	border-color: var(--theme-palette-color-1, #b28a46);
	color: #fff;
	background: var(--theme-palette-color-1, #b28a46);
}

.hb-related-carousel-button:focus-visible {
	outline: 2px solid var(--theme-palette-color-1, #b28a46);
	outline-offset: 3px;
}

.hb-related-carousel-button:disabled {
	opacity: 0.32;
	cursor: default;
}

.hb-related-carousel-button[hidden] {
	display: none;
}

.hb-related-carousel-button-prev {
	left: 10px;
}

.hb-related-carousel-button-next {
	right: 10px;
}

.hb-related-carousel-button span {
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
}

@media (max-width: 999.98px) {
	.related.products .hb-related-carousel-track > li.product,
	.related.products > ul.products > li.product {
		flex-basis: calc((100% - (2 * var(--grid-columns-gap, 24px))) / 3) !important;
		width: calc((100% - (2 * var(--grid-columns-gap, 24px))) / 3) !important;
	}

	.hb-related-carousel-button-prev {
		left: 8px;
	}

	.hb-related-carousel-button-next {
		right: 8px;
	}
}

@media (max-width: 689.98px) {
	.related.products .hb-related-carousel-track,
	.related.products > ul.products {
		gap: 14px;
	}

	.related.products .hb-related-carousel-track > li.product,
	.related.products > ul.products > li.product {
		flex-basis: calc((100% - 14px) / 2) !important;
		width: calc((100% - 14px) / 2) !important;
	}

	.hb-related-carousel-button {
		width: 44px;
		height: 44px;
		min-height: 44px;
	}

	.hb-related-carousel-button-prev {
		left: 6px;
	}

	.hb-related-carousel-button-next {
		right: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.related.products .hb-related-carousel-track,
	.related.products > ul.products {
		scroll-behavior: auto;
	}
}
