/**
 * eCom Essentials - Smart Hero Slider Styles
 * High-performance, responsive styling with 9-point alignment grid,
 * content box cards, and LCP-friendly transitions.
 */

.ecom-essentials-hero-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    min-height: 250px;
    height: var(--ee-slider-height, 600px);
}

@media (max-width: 1024px) {
    .ecom-essentials-hero-slider {
        height: var(--ee-slider-tab-height, 500px);
    }
}

@media (max-width: 767px) {
    .ecom-essentials-hero-slider {
        height: var(--ee-slider-mob-height, 400px);
    }
}

/* Ensure Swiper wrapper and slides fill height */
.ecom-essentials-hero-slider .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.ecom-essentials-slide {
    position: relative;
    display: flex;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 40px 60px;
}

/* Background Image & Picture */
.ecom-essentials-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.ecom-essentials-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .ecom-essentials-slide-bg img {
    transform: scale(1.03);
}

/* Pure Graphic Art Banner Mode */
.ecom-essentials-slide.is-pure-banner {
    padding: 0;
}

/* -------------------------------------------------------------------------
 * 9-Point Alignment Grid (Horizontal & Vertical)
 * ------------------------------------------------------------------------- */
/* Vertical Align */
.ecom-essentials-slide[data-valign="top"] {
    align-items: flex-start;
    padding-top: 50px;
}

.ecom-essentials-slide[data-valign="center"] {
    align-items: center;
}

.ecom-essentials-slide[data-valign="bottom"] {
    align-items: flex-end;
    padding-bottom: 60px;
}

/* Horizontal Align */
.ecom-essentials-slide[data-align="left"] {
    justify-content: flex-start;
}

.ecom-essentials-slide[data-align="left"] .ecom-essentials-slide-content {
    align-items: flex-start;
    text-align: left;
}

.ecom-essentials-slide[data-align="center"] {
    justify-content: center;
}

.ecom-essentials-slide[data-align="center"] .ecom-essentials-slide-content {
    align-items: center;
    text-align: center;
}

.ecom-essentials-slide[data-align="right"] {
    justify-content: flex-end;
}

.ecom-essentials-slide[data-align="right"] .ecom-essentials-slide-content {
    align-items: flex-end;
    text-align: right;
}

/* -------------------------------------------------------------------------
 * Slide Content Container & Cards
 * ------------------------------------------------------------------------- */
.ecom-essentials-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    box-sizing: border-box;
}

/* Frosted Glass Container */
.ecom-essentials-slide-content.ecom-essentials-box-frosted_glass {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 34px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Solid/Translucent Dark Card Container */
.ecom-essentials-slide-content.ecom-essentials-box-solid_card {
    background: rgba(15, 23, 42, 0.78);
    border-radius: 14px;
    padding: 34px 40px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* -------------------------------------------------------------------------
 * Typography Elements
 * ------------------------------------------------------------------------- */
/* Eyebrow / Pill Badge */
.ecom-essentials-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.85rem;
    width: fit-content;
}

/* Title */
.ecom-essentials-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.85rem 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Subtitle */
.ecom-essentials-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.85rem 0;
    color: #f1f1f1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Description */
.ecom-essentials-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    color: #e5e5e5;
    max-width: 680px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------
 * Action Buttons & Links
 * ------------------------------------------------------------------------- */
.ecom-essentials-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}

.ecom-essentials-slide[data-align="center"] .ecom-essentials-buttons-wrap {
    justify-content: center;
}

.ecom-essentials-slide[data-align="right"] .ecom-essentials-buttons-wrap {
    justify-content: flex-end;
}

.ecom-essentials-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.2;
    position: relative;
    z-index: 10;
}

.ecom-essentials-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Full Slide Overlay Link */
.ecom-essentials-slide-overlay-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: block;
    cursor: pointer;
}

/* -------------------------------------------------------------------------
 * Swiper Navigation Controls & Styling
 * ------------------------------------------------------------------------- */
.ecom-essentials-hero-slider .swiper-button-next,
.ecom-essentials-hero-slider .swiper-button-prev {
    transition: all 0.25s ease;
    opacity: 0.85;
    z-index: 15;
}

.ecom-essentials-hero-slider .swiper-button-next:hover,
.ecom-essentials-hero-slider .swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.08);
}

.ecom-essentials-hero-slider .swiper-pagination {
    z-index: 15;
    bottom: 20px !important;
}

.ecom-essentials-hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.ecom-essentials-hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Expanding Pill Pagination Style */
.ecom-essentials-hero-slider[data-pagination="pill"] .swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ecom-essentials-hero-slider[data-pagination="pill"] .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
}

/* -------------------------------------------------------------------------
 * Responsive Adjustments (Tablet & Mobile)
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ecom-essentials-slide {
        padding: 30px 40px;
    }

    .ecom-essentials-slide[data-valign="top"] {
        padding-top: 40px;
    }

    .ecom-essentials-slide[data-valign="bottom"] {
        padding-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .ecom-essentials-slide {
        padding: 24px 20px;
    }

    .ecom-essentials-slide[data-valign="top"] {
        padding-top: 24px;
    }

    .ecom-essentials-slide[data-valign="bottom"] {
        padding-bottom: 45px;
    }

    .ecom-essentials-slide-content {
        max-width: 100%;
    }

    .ecom-essentials-slide-content.ecom-essentials-box-frosted_glass,
    .ecom-essentials-slide-content.ecom-essentials-box-solid_card {
        padding: 20px 22px;
        border-radius: 12px;
    }

    .ecom-essentials-buttons-wrap {
        gap: 8px;
    }

    .ecom-essentials-button {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }

    .ecom-essentials-hero-slider .swiper-pagination {
        bottom: 12px !important;
    }
}