/* -------- Products Slider Styles ------- */
.products-slider {
    padding: 60px 50px;
    background-color: #f5f5f5; 
    position: relative;
}

.slider-title {
    margin-bottom: 48px;
    padding-bottom: 16px;
    font-size: 24px;
    line-height: 32px; 
    font-weight: 700;
    color: #00B98E; 
    position: relative;
    text-transform: capitalize;
    text-align: center; 
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);  */
}

.slider-title::before,
.slider-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); 
    height: 4px;
    border-radius: 2px;
}

.slider-title::before {
    width: 100%;
    background: #e0f2f1; 
}

.slider-title::after {
    width: 80px; 
    background: #00B98E; 
}

.products-carousel .carousel-item {
    margin: 0 15px;
    width: 320px;
    height: 400px;
    display: flex;
    align-items: flex-end;
    background: #343434 no-repeat center center / cover;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease-in-out; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    transform: scale(1); 
}

.products-carousel .carousel-item:hover {
  
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); 
    z-index: 1; 
}

.products-carousel .owl-carousel {
    display: flex;
    align-items: flex-end;
}


.products-carousel .carousel-item:hover .carousel-desc {
    transform: none; /* Show text on hover */
}

.products-carousel .carousel-overlay {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)); 
    transition: all 0.5s ease-in-out;
    opacity: 0; 
}

.products-carousel .carousel-item:hover .carousel-overlay {
    opacity: 0.5; 
}

.products-carousel .carousel-desc {
    padding: 20px;
    color: #fff;
    position: relative;
    z-index: 1;
    transform: translateY(calc(100% - 54px));
    transition: all 0.5s ease-in-out;
}

.products-carousel .carousel-desc h3 {
    margin: 0 0 10px;
    font-size: 20px; 
    line-height: 32px;
    color:#0E2E50; /
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);  */
}

.products-carousel .carousel-desc p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out 0.2s; 
}

.products-carousel .carousel-item:hover .carousel-desc p {
    opacity: 1;
    transform: translateY(0);
}

.products-carousel .owl-theme .owl-dots {
    margin-top: 20px;
    text-align: center;
}

.products-carousel .owl-theme .owl-dots .owl-dot {
    background: #00B98E; 
}

.products-carousel .owl-theme .owl-dots .owl-dot.active {
    background: #00796b; 
}

/* Responsive CSS */
@media (min-width: 992px) and (max-width: 1199px) {
    .slider-title {
        margin-bottom: 32px;
    }
    .products-carousel .carousel-item {
        margin: 0 12px;
        width: 260px;
        height: 360px;
    }
    .products-carousel .carousel-item:hover {
        width: 330px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .slider-title {
        margin-bottom: 32px;
    }
    .products-carousel .carousel-item {
        margin: 0 12px;
        width: 240px;
        height: 330px;
    }
    .products-carousel .carousel-item:hover {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .products-slider {
        font-size: 14px;
    }
    .slider-title {
        margin-bottom: 20px;
    }
    .products-carousel .carousel-item {
        margin: 0 10px;
        width: 200px;
        height: 280px;
    }
    .products-carousel .carousel-item:hover {
        width: 250px;
    }
    .products-carousel .carousel-desc {
        padding: 0 10px 5px;
        transform: translateY(calc(100% - 42px));
    }
}