.coverflow-slider {
	--slide-width: 300px;
	--slide-height: 320px;
	--slide-spacing: 150px;
	--scale-falloff: 0.16;
	position: relative;
	width: 100%;
	padding: 60px 0 40px;
}

.coverflow-slider .nav {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 14px;
	z-index: 50;
}

.coverflow-slider .nav button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #f6e9ea;
	color: #c2536a;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.coverflow-slider .nav button:hover {
	background: #c2536a;
	color: #fff;
	transform: translateY(-1px);
}

.coverflow-slider .track-viewport {
	position: relative;
	height: calc(var(--slide-height) + 20px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.coverflow-slider .slide {
	position: absolute;
	width: var(--slide-width);
	height: var(--slide-height);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 18px 34px rgba(30, 20, 10, 0.28);
	transition: transform 0.5s cubic-bezier(0.22, 0.75, 0.32, 1), opacity 0.5s ease, z-index 0s 0.25s;
	cursor: pointer;
}

.coverflow-slider .slide.center {
	cursor: default;
}

.coverflow-slider .slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
}

.coverflow-slider .dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.coverflow-slider .dots button {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: #cfc6b8;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.coverflow-slider .dots button.active {
	background: #c2536a;
	transform: scale(1.3);
}

@media (max-width: 640px) {
	.coverflow-slider .track-viewport {
		height: calc(var(--slide-height) * 0.8 + 20px);
	}
	.coverflow-slider .slide {
		width: calc(var(--slide-width) * 0.75);
		height: calc(var(--slide-height) * 0.75);
	}
}

@media (prefers-reduced-motion: reduce) {
	.coverflow-slider .slide {
		transition: none;
	}
}
