.bps-hero,
.bps-products {
	--bps-accent: #292929;
	--bps-surface: #f5f5f5;
	box-sizing: border-box;
	position: relative;
	width: 100%;
}

.bps-hero *,
.bps-products * {
	box-sizing: border-box;
}

.bps-hero {
	background: #fff;
	padding-bottom: 28px;
	overflow: hidden;
}

.bps-hero__viewport {
	overflow: hidden;
	background: var(--bps-surface);
}

.bps-hero__track {
	display: flex;
	transform: translate3d(0, 0, 0);
	transition: transform 500ms cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.bps-hero__slide {
	flex: 0 0 100%;
	margin: 0;
	min-width: 0;
	aspect-ratio: 3 / 2;
	background: var(--bps-surface);
}

.bps-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.bps-hero__image.is-deferred {
	background: var(--bps-surface);
}

.bps-control {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(35, 35, 35, .76);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 180ms ease, background-color 180ms ease;
}

.bps-control svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.bps-control--prev {
	left: 14px;
}

.bps-control--next {
	right: 14px;
}

.bps-hero:hover .bps-control,
.bps-products:hover .bps-control,
.bps-control:focus-visible {
	opacity: 1;
}

.bps-control:hover {
	background: rgba(35, 35, 35, .94);
}

.bps-control:disabled {
	opacity: .28 !important;
	cursor: default;
}

.bps-control:focus-visible,
.bps-hero__dot:focus-visible,
.bps-product:focus-visible,
.bps-products__track:focus-visible {
	outline: 2px solid var(--bps-accent);
	outline-offset: 3px;
}

.bps-status {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bps-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 7px;
	display: flex;
	gap: 5px;
	transform: translateX(-50%);
}

.bps-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #999;
	cursor: pointer;
}

.bps-hero__dot.is-active {
	background: var(--bps-accent);
}

.bps-products {
	margin-block: 22px;
}

.bps-products__track {
	display: flex;
	gap: 10px;
	width: 100%;
	padding: 4px 2px 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.bps-products__track.is-programmatic {
	scroll-snap-type: none;
}

.bps-products__track::-webkit-scrollbar {
	display: none;
}

.bps-product {
	display: grid;
	place-items: center;
	flex: 0 0 calc((100% - 30px) / 4);
	min-width: 0;
	aspect-ratio: 1;
	padding: 8px;
	background: #fff;
	color: inherit;
	scroll-snap-align: start;
	text-decoration: none;
}

.bps-product__image,
.bps-product img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 220ms ease;
}

.bps-product:hover img {
	transform: scale(1.035);
}

.bps-products .bps-control {
	top: 50%;
	opacity: 1;
}

.bps-products.is-static .bps-control {
	display: none;
}

@media (max-width: 900px) {
	.bps-product {
		flex-basis: calc((100% - 20px) / 3);
	}
}

@media (max-width: 600px) {
	.bps-hero {
		padding-bottom: 25px;
	}

	.bps-control {
		width: 38px;
		height: 38px;
		opacity: .88;
	}

	.bps-control--prev {
		left: 8px;
	}

	.bps-control--next {
		right: 8px;
	}

	.bps-product {
		flex-basis: 42%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bps-hero__track,
	.bps-product__image,
	.bps-product img {
		transition: none;
	}

	.bps-products__track {
		scroll-behavior: auto;
	}
}
