.efc-carousel {
	--efc-slides-visible: 3;
	--efc-inactive-scale: .78;
	--efc-active-scale: 1;
	--efc-inactive-opacity: .42;
	--efc-gap: 24px;
	--efc-active-image-width: 84%;
	--efc-inactive-image-width: 70%;
	--efc-active-image-max-height: 390px;
	--efc-inactive-image-max-height: 280px;
	--efc-image-safe-top: 86px;
	--efc-image-safe-bottom: 76px;
	position: relative;
	width: 100%;
	padding: 34px 0 54px;
	overflow: hidden;
}

.efc-swiper {
	width: 100%;
	overflow: visible;
}

.efc-slide {
	width: calc(100% / var(--efc-slides-visible));
	box-sizing: border-box;
	padding-inline: calc(var(--efc-gap) / 2);
	cursor: pointer;
	perspective: 1400px;
}

.efc-card {
	position: relative;
	height: 560px;
	box-sizing: border-box;
	overflow: hidden;
	background: transparent;
	transform: scale(var(--efc-inactive-scale));
	opacity: var(--efc-inactive-opacity);
	transform-origin: center center;
	transition:
		transform .7s cubic-bezier(.22, 1, .36, 1),
		opacity .5s ease,
		background-color .4s ease,
		box-shadow .45s ease;
	will-change: transform, opacity;
}

.efc-slide.swiper-slide-active {
	z-index: 5;
	cursor: default;
}

.efc-slide.swiper-slide-active .efc-card {
	transform: scale(var(--efc-active-scale));
	opacity: 1;
}

/*
 * The UI and hero image are intentionally independent layers.
 * Title/button no longer participate in layout, so they cannot push or resize
 * the product during the focus animation.
 */
.efc-stage {
	position: relative;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 28px;
}

.efc-title-wrap,
.efc-button-wrap {
	position: absolute;
	left: 28px;
	right: 28px;
	display: flex;
	width: auto;
	justify-content: center;
	z-index: 12;
	pointer-events: none;
}

.efc-title-wrap {
	top: 28px;
	overflow: visible;
}

.efc-button-wrap {
	bottom: 28px;
}

.efc-title {
	margin: 0;
	color: #111;
	font-size: clamp(24px, 2.5vw, 46px);
	line-height: 1.02;
	transform-origin: 50% 0%;
	will-change: transform, opacity, clip-path;
}

.efc-image-zone {
	position: absolute;
	left: 0;
	right: 0;
	top: var(--efc-image-safe-top);
	bottom: var(--efc-image-safe-bottom);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	z-index: 4;
	pointer-events: none;
	perspective: 1400px;
}

.efc-image-shell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--efc-inactive-image-width);
	max-height: var(--efc-inactive-image-max-height);
	transform-origin: center center;
}

.efc-image-motion,
.efc-image-float,
.efc-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: transparent;
	transform-style: preserve-3d;
}

.efc-image-motion,
.efc-image-float {
	will-change: transform, opacity;
}

.efc-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: var(--efc-inactive-image-max-height);
	object-fit: contain;
	object-position: center;
	background: transparent;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.efc-slide.swiper-slide-active .efc-image-shell {
	width: var(--efc-active-image-width);
	max-height: var(--efc-active-image-max-height);
}

.efc-slide.swiper-slide-active .efc-image img {
	max-height: var(--efc-active-image-max-height);
}

.efc-image-shadow .efc-slide.swiper-slide-active .efc-image img {
	filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .18));
}

.efc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	text-decoration: none;
	pointer-events: auto;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.efc-button:hover,
.efc-button:focus-visible {
	transform: translateY(-2px);
}

/* Visibility can be controlled independently for active and inactive states. */
.efc-carousel:not(.efc-active-title-show) .efc-slide.swiper-slide-active .efc-title-wrap,
.efc-carousel:not(.efc-active-image-show) .efc-slide.swiper-slide-active .efc-image-zone,
.efc-carousel:not(.efc-active-button-show) .efc-slide.swiper-slide-active .efc-button-wrap,
.efc-carousel:not(.efc-inactive-title-show) .efc-slide:not(.swiper-slide-active) .efc-title-wrap,
.efc-carousel:not(.efc-inactive-image-show) .efc-slide:not(.swiper-slide-active) .efc-image-zone,
.efc-carousel:not(.efc-inactive-button-show) .efc-slide:not(.swiper-slide-active) .efc-button-wrap {
	display: none;
}

/* Keep the product visually floating: background is optional per state. */
.efc-carousel:not(.efc-active-bg-on) .efc-slide.swiper-slide-active .efc-card,
.efc-carousel:not(.efc-inactive-bg-on) .efc-slide:not(.swiper-slide-active) .efc-card {
	background-color: transparent !important;
}

.efc-nav {
	position: absolute;
	top: 50%;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform .2s ease, opacity .2s ease;
}

.efc-nav:hover,
.efc-nav:focus-visible {
	transform: translateY(-50%) scale(1.06);
}

.efc-prev { left: 14px; }
.efc-next { right: 14px; }
.efc-nav.swiper-button-disabled { opacity: .3; cursor: default; }

.efc-pagination {
	position: absolute;
	left: 50% !important;
	bottom: 8px !important;
	width: auto !important;
	transform: translateX(-50%);
}

.efc-empty {
	padding: 24px;
	border: 1px dashed #bbb;
	border-radius: 10px;
	text-align: center;
}

.elementor-editor-active .efc-image { pointer-events: none; }

@media (max-width: 767px) {
	.efc-carousel { padding-inline: 0; }
	.efc-nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.efc-card,
	.efc-button,
	.efc-nav {
		transition-duration: .01ms !important;
	}
}
