/**
 * eCom Essentials - Smart Hero Slider Styles
 */

.ecom-essentials-hero-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 300px; /* Safety fallback */
}

/* Ensure swiper-wrapper fills the container height */
.ecom-essentials-hero-slider .swiper-wrapper {
    height: 100%;
}

.ecom-essentials-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.ecom-essentials-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ecom-essentials-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ecom-essentials-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Typography settings */
.ecom-essentials-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: #f1f1f1;
}

.ecom-essentials-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.ecom-essentials-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* Button */
.ecom-essentials-button {
    display: inline-block;
    padding: 15px 30px;
    margin-top: 1rem;
    background-color: #007cba;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ecom-essentials-button:hover {
    background-color: #005a87;
    color: #ffffff;
    text-decoration: none;
}

/* Alignment utilities based on parent inline style */
.swiper-slide[style*="text-align: left"] .ecom-essentials-slide-content {
    align-items: flex-start;
}
.swiper-slide[style*="text-align: center"] .ecom-essentials-slide-content {
    align-items: center;
}
.swiper-slide[style*="text-align: right"] .ecom-essentials-slide-content {
    align-items: flex-end;
}

/* Swiper Controls Customization */
.ecom-essentials-hero-slider .swiper-button-next,
.ecom-essentials-hero-slider .swiper-button-prev {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ecom-essentials-hero-slider .swiper-button-next:hover,
.ecom-essentials-hero-slider .swiper-button-prev:hover {
    opacity: 1;
}

.ecom-essentials-hero-slider .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
}

.ecom-essentials-hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive Stack Adjustments */
@media (max-width: 767px) {
    
    .ecom-essentials-slide-content {
        padding: 0 20px;
        align-items: center !important;
        text-align: center !important;
    }
    
    .ecom-essentials-title {
        font-size: 2rem;
    }
    
    .ecom-essentials-subtitle {
        font-size: 1rem;
    }
    
    .ecom-essentials-description {
        font-size: 1rem;
    }
    
    .ecom-essentials-button {
        padding: 12px 24px;
    }
}


