/* MAIN CONTAINER */
.e5-slider-container {
	position: relative;
	width: 100%;
	margin: 40px 0;
	overflow: visible;
}

/* OVERRIDE FLATSOME COLUMN CLIPPING */
.e5-slider-container .col,
.e5-slider-container .col-inner {
	overflow: visible !important;
}

/* SWIPER ROOT */
.e5-slider-elements.swiper {
	width: 100%;
	overflow: visible !important;
	position: relative;
	padding-bottom: 40px;
}

/* SWIPER INTERNAL LAYOUT */
.e5-slider-elements .swiper-wrapper {
	overflow: visible !important;
	display: flex;
	align-items: stretch;
}

.e5-slider-elements .swiper-slide {
	flex-shrink: 0;
	margin-right: 18px;
	display: flex;
	height: auto;
}

/* LEFT MASK */
.e5-slider-container::before {
	content: "";
	position: absolute;
	top: -5px;
	bottom: 0;
	left: -10px;
	transform: translateX(-100%);
	width: 50vw;
	background: #fff;
	pointer-events: all;
	z-index: 10;
	height: calc(100% + 20px);
}

/* Desktop: 4 items */
@media (min-width: 1280px) {
	.e5-slider-elements .swiper-slide {
		width: calc(25% - 18px);
	}
}

/* Large tablet: 3 items */
@media (min-width: 1024px) and (max-width: 1279px) {
	.e5-slider-elements .swiper-slide {
		width: calc(33.333% - 18px);
	}
}

/* Tablet: 2.2 items */
@media (min-width: 768px) and (max-width: 1023px) {
	.e5-slider-elements .swiper-slide {
		width: calc(45% - 18px);
	}
}

/* Mobile: 1.6 items */
@media (min-width: 480px) and (max-width: 767px) {
	.e5-slider-elements .swiper-slide {
		width: calc(65% - 18px);
	}
}

/* Small mobile: 1.2 items */
@media (max-width: 479px) {
	.e5-slider-elements .swiper-slide {
		width: calc(80% - 18px);
	}
}

/* CARD */
.e5-slider-element-container {
	display: flex;
	height: 100%;
}

.e5-slider-element {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.e5-slider-element:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.e5-slider-img {
	width: 100%;
	height: 220px;
	overflow: hidden;
}

.e5-slider-img .slider-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* CONTENT */
.e5-slider-content {
	padding: 0 22px 22px 22px;
	display: flex;
	margin-top: -45px;
	flex-direction: column;
	flex-grow: 1;
}

/* TITLE */
.e5-slider-title {
	font-size: 20px;
	font-weight: 700;
	margin: 12px 0;
	color: var(--fs-color-primary);
}

/* DESCRIPTION */
.e5-slider-text {
	font-size: 15px;
	line-height: 1.5;
	margin-bottom: 22px;
	flex-grow: 1;
}

/* BUTTON */
.e5-slider-button {
	margin-top: auto;
}

/* NAVIGATION ARROWS */
.e5-slider-navigation {
	position: absolute;
	bottom: -60px;
	right: 0;
	display: flex;
	gap: 12px;
	width: 110px;
	height: 50px;
	z-index: 20;
}

.e5-slider-navigation img {
	width: 36px;
	height: 36px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.e5-slider-navigation img:hover {
	opacity: 0.7;
}

.arrow-left {
	transform: rotate(180deg);
	margin-right: 10px;
}

/* DOTS (Swiper pagination) */
.e5-slider-dots.swiper-pagination {
	display: none !important;
}

/* FOOTER */
.e5-slider-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 25px;
	padding: 0 5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.e5-slider-img {
		height: 150px;
	}

	.e5-slider-title {
		font-size: 18px;
	}

	.e5-slider-text {
		font-size: 14px;
	}
}

/* UX BUILDER PREVIEW */
/* UX BUILDER PREVIEW FIX */
.uxb-draggable .e5-slider-container {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	-webkit-overflow-scrolling: touch;
	display: flex !important;
	flex-direction: row !important;
	gap: 18px !important;
	padding-bottom: 20px;
	width: auto !important;
}

.uxb-draggable .e5-slider-element-container {
	flex-direction:column !important;
}

/* Each preview item behaves like a card */
.uxb-draggable .e5-slider-container .uxb-wrapper--e5-product-category-slider-item {
	flex: 0 0 260px !important;
	width: 260px !important;
	max-width: 260px !important;
	display: block !important;
}

/* Remove Swiper behavior inside UXB */
.uxb-draggable .e5-slider-container .swiper-wrapper,
.uxb-draggable .e5-slider-container .swiper-slide {
	transform: none !important;
	width: auto !important;
	height: auto !important;
}

.uxb-draggable .e5-slider-container .swiper,
.uxb-draggable .e5-slider-container .swiper-wrapper,
.uxb-draggable .e5-slider-container .swiper-slide {
	overflow: visible !important;
}

/* Remove left mask */
.uxb-draggable .e5-slider-container::before {
	display: none !important;
}

/* Remove arrows + dots */
.uxb-draggable .e5-slider-container .e5-slider-navigation,
.uxb-draggable .e5-slider-container .e5-slider-dots {
	display: none !important;
}
