/*
 * Homepage-only responsive layer.
 * Loaded after the theme CSS and scoped to body.m2s-home
 * so other public pages keep their existing layout.
 */

.m2s-home .wsus__single_slider_img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

/* Homepage hero text only. Light slides are the default. */
.m2s-home #wsus__banner .wsus__single_slider_text {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    box-shadow: none;
    padding: 22px 24px 20px;
    width: min(620px, 52%);
    max-width: 620px;
}

.m2s-home #wsus__banner .wsus__single_slider_text h1 {
    color: #132F3A;
    font-weight: 700;
    text-transform: none;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.1;
    margin: 0 0 10px;
}

.m2s-home #wsus__banner .wsus__single_slider_text h6 {
    color: #16485A;
    font-weight: 500;
    text-transform: none;
    font-size: clamp(15px, 1.35vw, 20px);
    line-height: 1.4;
    margin: 0 0 18px;
}

.m2s-home #wsus__banner .wsus__single_slider_text .common_btn {
    background: #004B5F;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    padding: 12px 22px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m2s-home #wsus__banner .wsus__single_slider_text .common_btn:hover {
    background: #003B4B;
    color: #FFFFFF;
}

.m2s-home #wsus__banner .wsus__single_slider.is-dark .wsus__single_slider_text {
    background: rgba(0, 38, 54, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
}

.m2s-home #wsus__banner .wsus__single_slider.is-dark .wsus__single_slider_text h1 {
    color: #FFFFFF;
}

.m2s-home #wsus__banner .wsus__single_slider.is-dark .wsus__single_slider_text h6 {
    color: #F3F7F8;
}

.m2s-home #wsus__banner .slick-dots {
    z-index: 3;
}

.m2s-home #wsus__banner .slick-dots li button {
    background: rgba(0, 75, 95, 0.35);
}

.m2s-home #wsus__banner .slick-dots li.slick-active button {
    background: #004B5F;
}

/* Desktop and laptop: keep the approved overlay hero. */
@media (min-width: 992px) {
    .m2s-home {
        --m2s-hero-height: 540px;
    }

    .m2s-home .wsus__single_slider {
        position: relative;
        display: block;
        height: var(--m2s-hero-height);
        padding: 0;
        overflow: hidden;
        background: none !important;
    }

    /* Browse Categories must match the hero column and never push promo banners. */
    .m2s-home #wsus__banner .wsus__banner_content {
        margin-top: 0;
    }

    .m2s-home #wsus__banner > .container > .row {
        align-items: stretch;
    }

    .m2s-home #wsus__banner > .container > .row > [class*="col-"]:first-child {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: var(--m2s-hero-height);
        z-index: 20;
    }

    .m2s-home #wsus__banner .m2s-home-cat-panel {
        position: relative;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        width: 100%;
        height: var(--m2s-hero-height);
        max-height: var(--m2s-hero-height);
        min-height: 0;
        overflow: visible;
        z-index: 20;
    }

    .m2s-home #wsus__banner .m2s-home-cat-list {
        position: static;
        flex: 1 1 auto;
        width: 100%;
        height: 100% !important;
        max-height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #2a9cf5 #e8f4fc;
    }

    .m2s-home #wsus__banner .m2s-home-cat-list::-webkit-scrollbar {
        width: 6px;
    }

    .m2s-home #wsus__banner .m2s-home-cat-list::-webkit-scrollbar-track {
        background: #e8f4fc;
        border-radius: 8px;
    }

    .m2s-home #wsus__banner .m2s-home-cat-list::-webkit-scrollbar-thumb {
        background: #2a9cf5;
        border-radius: 8px;
    }

    .m2s-home #wsus__banner .m2s-home-cat-list > li > a {
        display: flex;
        align-items: center;
        min-height: 46px;
        line-height: 46px;
    }

    .m2s-home #wsus__banner .m2s-home-cat-panel .wsus_menu_cat_droapdown,
    .m2s-home #wsus__banner .m2s-home-cat-panel .wsus__sub_category {
        height: 100%;
        max-height: 100%;
        overflow: visible;
    }

    .m2s-home .wsus__single_slider_media {
        position: absolute;
        inset: 0;
    }

    .m2s-home #wsus__banner .wsus__single_slider_text {
        position: absolute;
        z-index: 2;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: min(620px, 52%);
    }
}

/*
 * Two-column promo banners. One scrim and one text treatment for every image.
 * --banner-overlay-strength can be lowered on .is-dark for already-dark artwork.
 */
.m2s-home .wsus__single_banner_content {
    --banner-overlay-strength: 1;
    position: relative;
    height: auto;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.m2s-home .wsus__single_banner_content.is-dark {
    --banner-overlay-strength: 0.45;
}

.m2s-home .wsus__single_banner_img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.m2s-home .wsus__single_banner_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.m2s-home .wsus__single_banner_img:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: var(--banner-overlay-strength);
    pointer-events: none;
    background-color: transparent;
    background-image: linear-gradient(
        90deg,
        rgba(0, 25, 35, 0.72) 0%,
        rgba(0, 25, 35, 0.52) 38%,
        rgba(0, 25, 35, 0.12) 70%,
        rgba(0, 25, 35, 0) 100%
    );
}

.m2s-home .wsus__single_banner_text {
    z-index: 2;
    left: clamp(24px, 4vw, 50px);
    right: auto;
    top: 50%;
    width: max-content;
    max-width: 55%;
    margin: 0;
    transform: translateY(-50%);
}

.m2s-home .wsus__single_banner_text h6,
.m2s-home .wsus__single_banner_text h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    overflow-wrap: break-word;
}

.m2s-home .wsus__single_banner_text h6 {
    display: block;
    font-size: clamp(14px, 1.2vw, 20px);
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 6px;
}

.m2s-home .wsus__single_banner_text h3 {
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 12px;
}

.m2s-home .wsus__single_banner_text .shop_btn {
    background: #004B5F;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.m2s-home .wsus__single_banner_text .shop_btn:hover {
    background: #ffffff;
    color: #004B5F;
    border-color: #ffffff;
}

/* Tablet and phone: image and copy are one card, not a narrow overlay. */
@media (max-width: 991.98px) {
    .m2s-home #wsus__topbar {
        display: none;
    }

    .m2s-home header {
        position: sticky;
        top: 0;
        left: 0;
        height: 64px;
        padding: 0;
        background: #fff;
        z-index: 1000;
    }

    .m2s-home header > .container,
    .m2s-home header > .container > .row {
        height: 100%;
    }

    .m2s-home header > .container > .row {
        align-items: center;
        flex-wrap: nowrap;
    }

    .m2s-home header .row > [class*="col-"] {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .m2s-home .wsus__mobile_menu_area,
    .m2s-home .wsus_logo_area,
    .m2s-home .wsus__call_icon_area {
        width: 100%;
    }

    .m2s-home .wsus__mobile_menu_icon {
        float: none;
        margin-top: 0;
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .m2s-home .wsus_logo_area {
        display: flex;
        justify-content: center;
    }

    .m2s-home .wsus__header_logo {
        width: auto;
        max-width: 100%;
        height: 64px;
        line-height: 1;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .m2s-home .wsus__header_logo img {
        width: auto !important;
        max-width: min(112px, 38vw) !important;
        max-height: 32px !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: contain;
        object-position: center;
    }

    .m2s-home .wsus__call_icon_area,
    .m2s-home .wsus__icon_area {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .m2s-home .wsus__icon_area li {
        display: flex;
        align-items: center;
    }

    .m2s-home .wsus__cart_icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        margin-top: 0 !important;
    }

    .m2s-home #wsus__banner,
    .m2s-home #wsus__banner.home_2 {
        margin-top: 0 !important;
    }

    .m2s-home .wsus__banner_content {
        margin-top: 16px;
    }

    .m2s-home #wsus__mobile_menu {
        width: min(320px, 88vw);
    }

    .m2s-home .wsus__mobile_menu_close {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .m2s-home:has(#wsus__mobile_menu.show_m_menu) {
        overflow: hidden;
    }

    .m2s-home .wsus__mini_cart {
        width: min(350px, 100vw);
    }

    .m2s-home #wsus__banner .banner_slider {
        margin-left: 0;
        margin-right: 0;
    }

    .m2s-home #wsus__banner .banner_slider > [class*="col-"],
    .m2s-home #wsus__banner .slick-slide > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .m2s-home .wsus__single_slider {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        background: #fff !important;
    }

    .m2s-home #wsus__banner .slick-slide,
    .m2s-home #wsus__banner .slick-slide > div {
        height: auto !important;
    }

    .m2s-home .wsus__single_slider_media {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: 250px;
        overflow: hidden;
        background: #f3f7fb;
        flex: 0 0 auto;
    }

    .m2s-home .wsus__single_slider_img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .m2s-home #wsus__banner .wsus__single_slider_text,
    .m2s-home #wsus__banner .wsus__single_slider.is-dark .wsus__single_slider_text {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        z-index: 1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 14px 16px 16px;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .m2s-home #wsus__banner .wsus__single_slider.is-dark .wsus__single_slider_text h1 {
        color: #132F3A;
    }

    .m2s-home #wsus__banner .wsus__single_slider.is-dark .wsus__single_slider_text h6 {
        color: #16485A;
    }

    .m2s-home #wsus__banner .wsus__single_slider_text h1 {
        margin: 0 0 6px;
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.15;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .m2s-home #wsus__banner .wsus__single_slider_text h6 {
        margin: 0 0 12px;
        font-size: clamp(14px, 3.6vw, 16px);
        line-height: 1.4;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .m2s-home #wsus__banner .wsus__single_slider_text .common_btn {
        min-height: 44px;
        padding: 10px 18px;
    }

    .m2s-home #wsus__banner .slick-dots {
        position: static;
        display: flex !important;
        justify-content: center;
        margin: 0;
        padding: 0 0 12px;
        left: auto;
        bottom: auto;
    }

    .m2s-home #wsus__banner .slick-dots li {
        display: flex;
        align-items: center;
        min-height: 28px;
    }

    .m2s-home .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .m2s-home #wsus__single_banner {
        padding-top: 28px;
    }

    .m2s-home #wsus__single_banner .col-lg-6,
    .m2s-home #wsus__single_banner .col-xl-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m2s-home .wsus__single_banner_content {
        height: auto !important;
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
        margin-top: 0;
        margin-bottom: 16px;
    }

    .m2s-home .wsus__single_banner_img,
    .m2s-home .wsus__single_banner_img img {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center;
    }

    .m2s-home .wsus__single_banner_img:before {
        background-image: linear-gradient(
            90deg,
            rgba(0, 25, 35, 0.78) 0%,
            rgba(0, 25, 35, 0.56) 55%,
            rgba(0, 25, 35, 0.08) 100%
        );
    }

    .m2s-home .wsus__single_banner_text {
        left: 16px;
        right: auto;
        top: 50%;
        width: max-content;
        max-width: 65%;
        transform: translateY(-50%);
    }

    .m2s-home .wsus__single_banner_text h6,
    .m2s-home .wsus__single_banner_text h3 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .m2s-home .wsus__single_banner_text h6 {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .m2s-home .wsus__single_banner_text h3 {
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .m2s-home .wsus__single_banner_text .shop_btn {
        font-size: 14px;
        min-height: 36px;
        padding: 7px 12px;
    }

    .m2s-home .wsus__flash_coundown {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 14px;
        padding: 18px 12px;
    }

    .m2s-home .wsus__flash_coundown .end_text {
        margin: 0;
        font-size: clamp(1.25rem, 5vw, 1.7rem);
        line-height: 1.25;
    }

    .m2s-home .wsus__flash_coundown .simply-countdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: min(100%, 280px);
    }

    .m2s-home .wsus__flash_coundown .simply-section {
        width: 100% !important;
        min-height: 74px;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .m2s-home .wsus__flash_coundown .common_btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .m2s-home #wsus__home_services .col-sm-6,
    .m2s-home #wsus__home_services .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m2s-home .wsus__home_services_single {
        margin-bottom: 12px;
        padding: 22px 16px;
    }

    .m2s-home #wsus__monthly_top .col-lg-4,
    .m2s-home #wsus__monthly_top .col-lg-8,
    .m2s-home #wsus__monthly_top .grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m2s-home .wsus__monthly_top_banner {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 8;
        max-height: 260px;
        margin-bottom: 16px;
    }

    .m2s-home .wsus__monthly_top_banner_img,
    .m2s-home .wsus__monthly_top_banner_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .m2s-home .wsus__monthly_top_banner_text {
        width: 100%;
        left: 0;
        right: 0;
        padding: 0 16px;
        text-align: center;
    }

    .m2s-home .monthly_top_filter,
    .m2s-home .monthly_top_filter2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 12px;
    }

    .m2s-home .monthly_top_filter button,
    .m2s-home .monthly_top_filter2 button {
        margin: 0 !important;
        min-height: 40px;
        padding: 8px 12px;
    }

    .m2s-home #wsus__hot_deals .grid2 > [class*="col-"],
    .m2s-home #wsus__weekly_best > .container > .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m2s-home .wsus__product_item,
    .m2s-home .wsus__hot_deals__single,
    .m2s-home .wsus__hot_deals_offer {
        max-width: 100%;
    }

    .m2s-home .wsus__product_item .wsus__pro_link img,
    .m2s-home .wsus__hot_deals__single_img img,
    .m2s-home .wsus__hot_deals_img img {
        max-width: 100%;
        object-fit: cover;
    }

    .m2s-home .wsus__product_details .wsus__pro_name,
    .m2s-home .wsus__hot_deals__single_text h5 {
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .m2s-home #wsus__brand_sleder .prv_arr {
        left: 4px;
    }

    .m2s-home #wsus__brand_sleder .nxt_arr {
        right: 4px;
        left: auto;
    }

    .m2s-home .wsus__brand_logo {
        height: 84px;
        margin: 8px;
        padding: 8px 36px;
        box-sizing: border-box;
    }

    .m2s-home .wsus__brand_logo img {
        object-fit: contain;
        width: 100% !important;
        height: 100%;
    }

    .m2s-home #wsus__subscribe {
        padding: 28px 0;
    }

    .m2s-home #wsus__subscribe .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m2s-home #wsus__subscribe .wsus__subs_form,
    .m2s-home #wsus__subscribe .wsus__subs_form form {
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        transform: none;
    }

    .m2s-home #wsus__subscribe .wsus__subs_form form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .m2s-home #wsus__subscribe .wsus__subs_form form input,
    .m2s-home #wsus__subscribe .wsus__subs_form form button {
        position: relative;
        width: 100%;
        min-height: 48px;
        right: auto;
        top: auto;
        border-radius: 5px;
    }

    .m2s-home footer .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m2s-home .wsus__footer_content {
        margin-bottom: 22px;
    }

    .m2s-home .wsus__footer_content img {
        width: auto;
        max-width: 120px;
        max-height: 46px;
        height: auto;
        object-fit: contain;
    }

    .m2s-home .wsus__footer_menu li a {
        line-height: 1.5;
        padding: 8px 0;
        min-height: 40px;
    }

    .m2s-home .wsus__footer_social li a {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .m2s-home .wsus__copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .m2s-home .wsus__copyright p {
        overflow-wrap: anywhere;
    }

    .m2s-home .wsus__copyright p img {
        display: block;
        width: auto;
        max-width: min(180px, 100%);
        height: auto;
        margin: 8px 0 0;
    }
}

@media (max-width: 575.98px) {
    .m2s-home .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .m2s-home .wsus__single_banner_text {
        left: 14px;
        max-width: 68%;
    }

    .m2s-home .wsus__single_slider_media {
        aspect-ratio: 16 / 10;
        max-height: 230px;
    }

    .m2s-home .wsus__section_header h3 {
        text-align: center;
    }
}

@media (max-width: 359.98px) {
    .m2s-home .wsus__single_banner_text h6 {
        font-size: 13px;
    }

    .m2s-home .wsus__single_banner_text h3 {
        font-size: 20px;
    }

    .m2s-home .wsus__single_banner_text .shop_btn {
        font-size: 13px;
        min-height: 34px;
        padding: 6px 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .m2s-home #wsus__home_services .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .m2s-home #wsus__hot_deals .grid2 > [class*="col-"],
    .m2s-home #wsus__monthly_top .grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .m2s-home .wsus__flash_coundown {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .m2s-home .wsus__flash_coundown .simply-countdown {
        display: flex;
        width: auto;
    }
}

.m2s-home a:focus-visible,
.m2s-home button:focus-visible {
    outline: 2px solid #2a9cf5;
    outline-offset: 2px;
}
