.home-product-carousel {
	position: relative;
	margin-top: 32px;
}

.home-product-carousel__controls {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 16px;
}

.home-product-carousel__button {
	display: grid;
	width: 50px;
	height: 50px;
	padding: 0;
	place-items: center;
	border: 3px solid #0064b0;
	border-radius: 50%;
	background: #fff;
	color: #0064b0;
	cursor: pointer;
	font: inherit;
	font-size: 1.4rem;
	font-weight: 900;
	line-height: 1;
	transition: background-color .18s ease;
}

.home-product-carousel__button span {
	font-weight: 900;
	-webkit-text-stroke: .35px currentColor;
}

.home-product-carousel__button:hover {
	background: #eaf3f8;
}

.home-product-carousel__button:active {
	background: #eaf3f8;
}

.home-product-carousel__button:focus-visible,
.home-product-carousel__viewport:focus-visible {
	outline: 3px solid #09669b;
	outline-offset: 4px;
}

.home-product-carousel__button:disabled {
	display: none;
}

.home-product-carousel__viewport {
	overflow: hidden;
	padding: 1px;
	margin: -1px;
	transition: height .24s ease;
}

.home-product-carousel .home-product-grid {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	margin-top: 0;
	transition: transform .38s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.home-product-slide {
	display: flex;
	align-self: flex-start;
	min-width: 0;
	flex: 0 0 calc((100% - 48px) / 3);
}

.home-product-slide > .rental-card {
	width: 100%;
}

.home-product-carousel .rental-card__body {
	padding: 20px;
}

.home-product-carousel .rental-card h3 {
	display: -webkit-box;
	min-height: 2.4em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-product-carousel .rental-card__excerpt {
	display: -webkit-box;
	min-height: 3.3em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-product-carousel .rental-price-condition {
	overflow: hidden;
	margin-bottom: 14px;
	padding: 7px 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-product-carousel .rental-card__bottom {
	gap: 14px;
}

@media (max-width: 960px) {
	.home-product-slide {
		flex-basis: calc((100% - 24px) / 2);
	}
}

@media (max-width: 640px) {
	.home-product-carousel {
		margin-top: 16px;
	}

	.home-product-carousel__controls {
		position: absolute;
		top: 12px;
		right: 12px;
		z-index: 3;
		justify-content: flex-end;
		gap: 6px;
		margin: 0;
	}

	.home-product-carousel__button {
		width: 36px;
		height: 36px;
		border-width: 2px;
		font-size: 1rem;
		box-shadow: 0 2px 8px rgba(24, 57, 70, .12);
	}

	.home-product-slide {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-product-carousel .home-product-grid,
	.home-product-carousel__viewport,
	.home-product-carousel__button {
		transition: none;
	}
}
