.native-product-carousel {
	min-width: 0;
	position: relative;
}

.native-product-carousel__header {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.native-product-carousel__header h2 {
	margin-bottom: 0;
}

.native-product-carousel__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.native-product-carousel__controls button {
	align-items: center;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--main-color);
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background-color .2s ease, color .2s ease, opacity .2s ease;
	width: 38px;
}

.native-product-carousel__controls button:hover:not(:disabled),
.native-product-carousel__controls button:focus-visible {
	background: var(--main-color);
	color: #fff;
}

.native-product-carousel__controls button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.native-product-carousel__controls button:disabled {
	cursor: default;
	opacity: .3;
}

.native-product-carousel__track {
	cursor: grab;
	display: grid;
	gap: 30px;
	grid-auto-columns: calc((100% - 90px) / 4);
	grid-auto-flow: column;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding-bottom: 10px;
	scroll-behavior: smooth;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	user-select: none;
}

.native-product-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.native-product-carousel__track::-webkit-scrollbar {
	display: none;
}

.native-product-carousel__track > .native-product-carousel__item {
	margin: 0;
	max-width: none;
	min-width: 0;
	padding-left: 0;
	padding-right: 0;
	scroll-snap-align: start;
	width: auto;
}

@media (max-width: 1023px) {
	.native-product-carousel__track {
		grid-auto-columns: calc((100% - 60px) / 3);
	}
}

@media (max-width: 766px) {
	.native-product-carousel__track {
		grid-auto-columns: calc((100% - 30px) / 2);
	}
}

@media (max-width: 499px) {
	.native-product-carousel__header {
		align-items: flex-start;
	}

	.native-product-carousel__track {
		gap: 20px;
		grid-auto-columns: min(82%, 280px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.native-product-carousel__track {
		scroll-behavior: auto;
	}
}

body#dark .native-product-carousel__controls button {
	color: #fff;
}
