/* Coverflow Carousel v3 - frontend */

.cfcar-wrap {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
	padding: 20px 0 50px;
	box-sizing: border-box;
}

.cfcar-track {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 480px;
}

.cfcar-slide {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300px;
	transition: transform var(--cfcar-transition, 500ms) ease,
		opacity var(--cfcar-transition, 500ms) ease,
		filter var(--cfcar-transition, 500ms) ease;
	transform: translate(-50%, -50%) scale(var(--cfcar-side-scale, 0.7));
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	cursor: pointer;
}

.cfcar-slide.cfcar-active {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
	z-index: 3;
	pointer-events: auto;
	cursor: default;
}

.cfcar-slide.cfcar-left {
	transform: translate(calc(-50% - var(--cfcar-gap, 320px)), -50%) scale(var(--cfcar-side-scale, 0.7));
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
	filter: brightness(0.92);
}

.cfcar-slide.cfcar-right {
	transform: translate(calc(-50% + var(--cfcar-gap, 320px)), -50%) scale(var(--cfcar-side-scale, 0.7));
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
	filter: brightness(0.92);
}

.cfcar-slide.cfcar-far-left {
	transform: translate(calc(-50% - (var(--cfcar-gap, 320px) * 1.75)), -50%) scale(calc(var(--cfcar-side-scale, 0.7) * 0.8));
	opacity: 0.35;
	z-index: 1;
}

.cfcar-slide.cfcar-far-right {
	transform: translate(calc(-50% + (var(--cfcar-gap, 320px) * 1.75)), -50%) scale(calc(var(--cfcar-side-scale, 0.7) * 0.8));
	opacity: 0.35;
	z-index: 1;
}

.cfcar-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 380px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	text-decoration: none;
}

.cfcar-img-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	width: 100%;
}

.cfcar-img-box img {
	max-width: 100%;
	max-height: 240px;
	object-fit: contain;
	display: block;
}

.cfcar-caption { margin-top: 18px; text-align: center; width: 100%; }

.cfcar-title {
	font-weight: 700;
	font-style: italic;
	line-height: 1.2;
	color: var(--cfcar-title-color, #fff);
	font-size: var(--cfcar-title-size, 20px);
}

.cfcar-subtitle {
	margin-top: 6px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--cfcar-subtitle-color, #fff);
	font-size: var(--cfcar-subtitle-size, 14px);
}

.cfcar-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: var(--cfcar-arrow-size, 44px);
	height: var(--cfcar-arrow-size, 44px);
	border-radius: 50%;
	border: none;
	background: var(--cfcar-arrow-bg, #F7941E);
	color: var(--cfcar-arrow-icon, #fff);
	font-size: calc(var(--cfcar-arrow-size, 44px) * 0.4);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	line-height: 1;
}

.cfcar-arrow:hover {
	background: var(--cfcar-arrow-hover, #d97b06);
	transform: translateY(-50%) scale(1.1);
}

.cfcar-prev { left: 20px; }
.cfcar-next { right: 20px; }

.cfcar-dots {
	position: absolute;
	bottom: 15px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}

.cfcar-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--cfcar-dot-inactive, rgba(255,255,255,0.4));
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}

.cfcar-dot.cfcar-dot-active { background: var(--cfcar-dot, #F7941E); }

@media (max-width: 782px) {
	.cfcar-slide { width: 260px; }
	.cfcar-slide.cfcar-left,
	.cfcar-slide.cfcar-far-left {
		transform: translate(calc(-50% - 200px), -50%) scale(0.6);
		opacity: 0.4;
	}
	.cfcar-slide.cfcar-right,
	.cfcar-slide.cfcar-far-right {
		transform: translate(calc(-50% + 200px), -50%) scale(0.6);
		opacity: 0.4;
	}
	.cfcar-track { min-height: 400px; }
	.cfcar-card { min-height: 320px; }
}

@media (max-width: 480px) {
	.cfcar-slide.cfcar-left,
	.cfcar-slide.cfcar-right,
	.cfcar-slide.cfcar-far-left,
	.cfcar-slide.cfcar-far-right {
		opacity: 0;
		pointer-events: none;
	}
}
