
/* Header spacing and responsive layout for JMart style 1. */
.header-style-1 .header-top {
    height: auto;
    min-height: 40px;
    line-height: normal;
    position: relative;
    z-index: 5;
}

.header-style-1 .row-topheader,
.header-style-1 .language-currency-top,
.header-style-1 .header-work__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.header-style-1 .row-topheader {
    min-height: 40px;
    justify-content: space-between;
    gap: 4px 12px;
    padding-block: 4px;
}

.header-style-1 .language-currency-top {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    gap: 4px 12px;
}

.header-style-1 .language-currency-top .contactbox-link,
.header-style-1 .header-work__info {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    transform: none;
    line-height: 1.35;
}

.header-style-1 .header-work__info {
    column-gap: 10px;
    row-gap: 4px;
    justify-content: flex-start;
    text-align: left;
}

.header-style-1 .header-work__info > span {
    white-space: nowrap;
}

.header-style-1 .header-work__info > span > i:empty {
    margin-right: 0 !important;
}

.header-style-1 .header-work__info button {
    white-space: nowrap;
}

.header-style-1 .header-top .contactbox-link h5 {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}

.header-style-1 .header-top .contactbox-link a {
    white-space: nowrap;
}

.header-style-1 .header-top-links {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
}

.header-style-1 .header-top-links .toplinks-wrapper ul.links {
    display: flex;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 0;
}

.header-style-1 .header-top-links .toplinks-wrapper ul.links > li {
    float: none;
}

.header-style-1 .header-middle {
    height: auto;
    padding: 23px 0;
}

.header-style-1 .header-middle > .container > .row {
    align-items: center;
}

.header-style-1 .logo-header .logo-image {
    max-width: 100%;
    height: auto;
}

.header-style-1 .header-middle .header-middle-right .middle-right-content {
    position: static;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
}

.header-style-1 .middle-right-content > .sp-module {
    margin: 0;
}

.header-style-1 .middle-right-content > .sp-module:has(.sj_jshopping_search-wrapper) {
    flex: 1 1 0;
    min-width: 0;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper,
.header-style-1 .header-middle-right .sj_jshopping_search-wrapper form {
    width: 100%;
    margin: 0;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding-right: 44px;
    inset: auto;
    border: 1px solid #203c8e;
    border-radius: 4px;
    background: #fff;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search .select_category {
    flex: 0 0 148px;
    max-width: 42%;
    width: auto;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search #show_categories_filter {
    width: 100%;
    max-width: none;
    height: 42px;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search .autosearch-input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    font-size: 14px;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search .input-group-btn {
    position: absolute;
    inset: 0 0 0 auto;
    width: 44px;
    height: 42px;
    border-radius: 0 3px 3px 0;
    background: #203c8e;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search .btn-primary {
    inset: 0;
    width: 44px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: #203c8e;
    opacity: 1;
    cursor: pointer;
}

.header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search .button-search {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    inset: 0;
    width: 44px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    pointer-events: none;
}

.header-style-1 .middle-right-content .shopping_cart:has(a[href="/cart/view"]) {
    display: none;
}

body.site .header-style-1 .header-middle .header-middle-right .middle-right-content .shopping_cart,
body.site .header-style-1 .header-middle .header-middle-right .middle-right-content .shopping_wishlist {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    height: auto;
}

.header-style-1 .middle-right-content .down-click {
    border-radius: 4px;
}

.header-style-1 .middle-right-content .mini_cart_img {
    position: relative;
}

.header-style-1 .middle-right-content .mini_cart_img .mycart_mini_txt {
    top: -7px;
    right: -7px;
    left: auto;
}

@media (min-width: 992px) {
    .header-style-1 .header-bottom .main-megamenu {
        display: flex;
        align-items: center;
        min-height: 50px;
    }

    .header-style-1 .header-bottom .sp-megamenu-wrapper,
    .header-style-1 .header-bottom .sp-megamenu-parent.d-lg-block {
        height: 50px;
    }

    .header-style-1 .header-bottom .sp-megamenu-parent.d-lg-block {
        display: flex !important;
        align-items: center;
        margin: 0;
        padding: 0;
        line-height: normal;
    }

    .header-style-1 .header-bottom .sp-megamenu-parent > li {
        display: flex;
        align-items: center;
        height: 50px;
        margin: 0;
        padding: 0;
    }

    .header-style-1 .header-bottom .sp-megamenu-parent > li > a {
        display: flex;
        align-items: center;
        height: 50px;
        line-height: normal;
        vertical-align: top;
    }

    .header-style-1 .header-bottom .sp-megamenu-parent > li > a.main-link-m {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .header-style-1 {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: 'top top' 'logo menu' 'tools tools';
        align-items: center;
    }

    .header-style-1 .header-top {
        grid-area: top;
    }

    .header-style-1 .header-middle,
    .header-style-1 .header-bottom,
    .header-style-1 .header-middle > .container,
    .header-style-1 .header-bottom > .container,
    .header-style-1 .header-middle > .container > .row,
    .header-style-1 .header-bottom > .container > .row {
        display: contents;
    }

    .header-style-1 .header-middle .logo-header {
        grid-area: logo;
        justify-content: flex-start;
        padding: 12px 0 12px max(15px, calc((100vw - 690px) / 2));
    }

    .header-style-1 .logo-header .logo-image {
        width: 223px;
        max-width: 100%;
    }

    .header-style-1 .header-bottom .sidebar-megamenu {
        display: none;
    }

    .header-style-1 .header-bottom .main-megamenu {
        grid-area: menu;
        width: auto;
        max-width: none;
        padding: 0 max(15px, calc((100vw - 690px) / 2)) 0 12px;
    }

    .header-style-1 .header-bottom #offcanvas-toggler {
        display: grid !important;
        place-items: center;
        float: none;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border-radius: 4px;
        line-height: 1;
    }

    .header-style-1 .header-middle-right {
        grid-area: tools;
        width: 100%;
        max-width: none;
        padding: 9px max(15px, calc((100vw - 690px) / 2));
        background: #203c8e;
    }

    .header-style-1 .middle-right-content {
        gap: 11px;
    }
}

@media (max-width: 575.98px) {
    .header-style-1 .row-topheader {
        align-items: flex-start;
        column-gap: 0;
    }

    .header-style-1 .language-currency-top {
        padding-right: 4px;
        font-size: 12px;
    }

    .header-style-1 .header-top .contactbox-link h5 {
        font-size: 12px;
    }

    .header-style-1 .header-work__info {
        font-size: 11px;
        flex-direction: row;
        gap: 3px 7px;
    }

    .header-style-1 .row-topheader .language-currency-top {
        padding-left: 15px;
    }

    .header-style-1 .header-work__info > span {
        white-space: normal;
    }

    .header-style-1 .header-top-links {
        padding-left: 4px;
    }

    .header-style-1 .header-middle-right .sj_jshopping_search-wrapper .search .select_category {
        display: none;
    }
}
