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

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

/* OWL WRAPPERS MUST ALLOW OVERFLOW */
.e5-slider-container .owl-carousel,
.e5-slider-container .owl-stage-outer,
.e5-slider-container .owl-stage {
    overflow: visible !important;
}

.e5-slider-container .owl-stage {
    display: flex !important;
}

.e5-slider-container .owl-item {
    height: auto !important;
    display: flex !important;
}

.e5-slider-element-container {
    height: 100% !important;
    display: flex !important;
}

.e5-slider-element {
    height: 100% !important;
    display: flex !important;
    flex-direction: column;
}


.e5-slider-container .owl-stage-outer::before {
    content: "";
    position: absolute;
    top: -5px;
    bottom: 0;
    left: -10px;
    transform: translateX(-100%);
    width: 50vw;
    background: #fff;
    pointer-events: all;
    z-index: 10;
	height: 55vh;
}

.e5-slider-container .owl-item:first-child {
    margin-left: 0 !important;
}

/* SLIDER ELEMENTS */
.e5-slider-elements {
    display: flex;
    align-items: stretch;
}

/* CARD */
.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;
    height: 100%;
    display: flex;
    flex-direction: column;
}



.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;
}

/* ICON */
.e5-slider-icon {
    background:  var(--fs-color-primary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
	position: relative;
}

.e5-slider-icon img {
	filter: brightness(0) invert(1);
    width: 48px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* 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;
}

/* Slider CTA button – match global design */
.e5-slider-cta {
    border-radius: 99px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--fs-color-primary) !important;
    color: #fff !important;
    text-transform: none;
}

/* Hover */
.e5-slider-cta:hover {
    background-color: var(--fs-experimental-link-color-hover) !important;
    color: #fff !important;
}

/* Icon */
.e5-slider-cta i {
    font-size: 16px;
    line-height: 1;
    margin-left: 4px;
}


/* NAVIGATION ARROWS */
.e5-slider-navigation {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 12px;
}

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

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

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

/* DOTS */
.e5-slider-dots {
    display: flex;
    gap: 8px;
}

.e5-slider-dots .owl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #525151;
    padding: 0 !important;
    margin: 0 !important;
    min-height: unset;
    min-width: unset;
	opacity: 0.4;
}

.e5-slider-dots .owl-dot.active {
	opacity: 1;
}

/* ARROWS */
.e5-slider-navigation {
    display: flex;
    gap: 12px;
    position: static !important;
}

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


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

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

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


/* UXB preview */

/* The REAL scroll container in UX Builder */
.uxb-preview .uxb-wrapper--e5-product-category-slider {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    display: block !important;
    white-space: nowrap !important;
}

/* UXB preview – horizontal scroll */
.e5-slider-container.uxb-preview {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.uxb-preview .e5-slider-elements {
    display: inline-flex !important;
    flex-direction: row !important;
	padding-bottom: 30px;
	max-width: 80vw;
}

/* Each UX Builder wrapper = one slide */
.e5-slider-container.uxb-preview .uxb-wrapper.uxb-wrapper--e5-product-category-slider-item {
    display: block !important;
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 260px !important;
}
