/* =========================================================
   TESLA FIRE HERO SLIDER - APPROVED DESIGN
   Version 0.1.6
   ========================================================= */

.tfs-hs-slider {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    height: var(--tfs-hs-height, 80svh);
    min-height: var(--tfs-hs-min-height, 700px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: var(--tfs-hs-top-offset, -10px) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: #000;
    line-height: 0;
}

.elementor-widget-shortcode .tfs-hs-slider,
.elementor-widget-html .tfs-hs-slider,
.elementor-widget-container > .tfs-hs-slider {
    margin-top: var(--tfs-hs-top-offset, -10px) !important;
}

.tfs-hs-slider .swiper-wrapper {
    transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.tfs-hs-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: #000;
}

.tfs-hs-fallback,
.tfs-hs-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.tfs-hs-fallback {
    z-index: 0;
    display: block;
}

.tfs-hs-video {
    z-index: 1;
    display: block;
    opacity: 0;
    background: transparent;
    transition: opacity .35s ease;
}

.tfs-hs-video.is-ready {
    opacity: 1;
}

.tfs-hs-video.is-failed {
    display: none !important;
}

.tfs-hs-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .85) 0%,
        rgba(0, 0, 0, .65) 40%,
        rgba(0, 0, 0, .25) 75%,
        rgba(0, 0, 0, .10) 100%
    );
    pointer-events: none;
}

.tfs-hs-link {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
    line-height: normal;
}

.tfs-hs-link:hover,
.tfs-hs-link:active,
.tfs-hs-link:visited {
    color: inherit;
    text-decoration: none !important;
}

.tfs-hs-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

/* =========================================================
   DESKTOP CONTENT
   ========================================================= */

.tfs-hs-content {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: normal;
}

.tfs-hs-left {
    width: 52%;
    max-width: 600px;
    color: #fff;
    text-align: left;
}

.tfs-hs-left h1 {
    margin: 0 0 20px;
    font-size: 54px;
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.tfs-hs-left h2 {
    margin: 0 0 20px;
    font-size: 38px;
    line-height: 1.5;
    font-weight: 600;
    color: #fff;
}

/* =========================================================
   BUY ONLINE - APPROVED RED BUTTON
   ========================================================= */

.tfs-hs-buy-online {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 0 18px;
    padding: 11px 17px;
    border: 0;
    border-radius: 4px;
    background: #CD303E;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* =========================================================
   SHIPPING - APPROVED BLACK BADGE + RED LINE
   ========================================================= */

.tfs-hs-shipping {
    display: flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-left: 3px solid #CD303E;
    border-radius: 0;
    background: rgba(0, 0, 0, .28);
    box-shadow: none;
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.tfs-hs-buy-online::before,
.tfs-hs-buy-online::after,
.tfs-hs-shipping::before,
.tfs-hs-shipping::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   DESKTOP PRODUCT IMAGE
   ========================================================= */

.tfs-hs-right {
    position: relative;
    width: 48%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-hs-right::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, .08) 0%,
        rgba(255, 255, 255, .03) 45%,
        transparent 75%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.tfs-hs-right img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-height: 650px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    object-fit: contain;
    transform: scale(.95);
    opacity: .98;
    filter:
        brightness(.98)
        contrast(.98)
        saturate(.97)
        drop-shadow(0 30px 60px rgba(0, 0, 0, .45))
        drop-shadow(0 0 20px rgba(255, 255, 255, .06));
    transition: transform .3s ease;
}

.tfs-hs-link:hover .tfs-hs-right img {
    transform: scale(.97);
}

/* =========================================================
   PAGINATION
   ========================================================= */

.tfs-hs-slider .swiper-pagination {
    z-index: 10;
}

.tfs-hs-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: .6;
}

.tfs-hs-slider .swiper-pagination-bullet-active {
    background: #CD303E;
    opacity: 1;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
    .tfs-hs-content {
        padding: 45px 40px;
    }

    .tfs-hs-left h1 {
        font-size: 46px;
    }

    .tfs-hs-left h2 {
        font-size: 28px;
    }

    .tfs-hs-right img {
        max-height: 520px;
    }

    .tfs-hs-buy-online,
    .tfs-hs-shipping {
        font-size: 16px;
    }
}

/* =========================================================
   MOBILE - APPROVED STACKED LAYOUT
   ========================================================= */

@media (max-width: 768px) {

    .tfs-hs-slider {
        height: 70svh;
        min-height: 700px;
        margin-top: var(--tfs-hs-top-offset, -10px) !important;
    }

    /* Mobile video is enabled. Fallback stays visible until video is playing. */
    .tfs-hs-video {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .tfs-hs-fallback {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .tfs-hs-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, .45) 0%,
            rgba(0, 0, 0, .75) 70%,
            rgba(0, 0, 0, .90) 100%
        );
    }

    .tfs-hs-content {
        height: 100%;
        padding: 28px 20px 52px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    /* CONTROL - MOBILE PRODUCT AREA */
    .tfs-hs-right {
        order: 1;
        width: 100%;
        height: 38%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tfs-hs-right::before {
        width: 250px;
        height: 250px;
    }

    /* CONTROL - MOBILE EXTINGUISHER SIZE AND POSITION */
    .tfs-hs-right img {
        position: relative;
        top: -12px;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        height: auto;
        max-height: 280px;
        max-width: 82%;
        margin: 0 auto;
        transform: none;
    }

    .tfs-hs-link:hover .tfs-hs-right img {
        transform: none;
    }

    .tfs-hs-left {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0;
        text-align: center;
    }

    /* CONTROL - MOBILE BUY ONLINE */
    .tfs-hs-buy-online {
        display: flex;
        width: fit-content;
        margin: 0 auto 24px;
        padding: 9px 14px;
        justify-content: center;
        font-size: 14px;
        line-height: 1;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        background: #CD303E;
        color: #fff;
        border-radius: 4px;
        transform: none;
    }

    /* CONTROL - MOBILE HEADING */
    .tfs-hs-left h1 {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 15px;
        font-size: 34px;
        line-height: 1.15;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
    }

    /* CONTROL - MOBILE DESCRIPTION */
    .tfs-hs-left h2 {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 15px;
        font-size: 17px;
        line-height: 1.4;
        font-weight: 600;
        text-align: center;
    }

    /* CONTROL - MOBILE SHIPPING */
    .tfs-hs-shipping {
        display: flex;
        width: fit-content;
        margin: 0 auto;
        padding: 8px 12px;
        justify-content: center;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 600;
        letter-spacing: .6px;
        text-transform: uppercase;
        border-left: 2px solid #CD303E;
        background: rgba(0, 0, 0, .28);
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .tfs-hs-slider {
        min-height: 700px;
    }

    .tfs-hs-content {
        padding: 24px 14px 50px;
        gap: 20px;
    }

    /* CONTROL - SMALL MOBILE EXTINGUISHER */
    .tfs-hs-right img {
        top: -10px;
        max-height: 250px;
        max-width: 78%;
    }

    /* CONTROL - SMALL MOBILE BUY ONLINE */
    .tfs-hs-buy-online {
        margin-bottom: 24px;
        font-size: 14px;
        padding: 9px 14px;
    }

    /* CONTROL - SMALL MOBILE HEADING */
    .tfs-hs-left h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    /* CONTROL - SMALL MOBILE DESCRIPTION */
    .tfs-hs-left h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    /* CONTROL - SMALL MOBILE SHIPPING */
    .tfs-hs-shipping {
        font-size: 14px;
        padding: 8px 12px;
    }
}
