@media only screen and (max-width: 1024px) {
    :root {
        --mobile-menubar-item-width: 75px;
    }

    body {
        padding-bottom: 45px;
    }

    /* SOF Mobile Bottom Menu */
    .mobile-header .fixed-mobile-menu {
        position: fixed;
        width: 100%;
        height: var(--mobile-menubar-height, 46px) !important;
        bottom: 0px;
        left: 0px;
        background: var(--color-mobile-bottom-bar-bg, #174477);
        padding: 0px;
        justify-content: center;
    }

    .mobile-header
        .fixed-mobile-menu
        ul
        li
        ul:not(.discounts-list)
        > li:not(:last-child) {
        /* dont judge the selector. be kind */
        border-right: 1px solid #fff;
    }

    .mobile-header
        .fixed-mobile-menu
        ul
        li
        ul:not(.discounts-list)
        > li:first-child {
        border-top-left-radius: 10px;
    }

    .mobile-header
        .fixed-mobile-menu
        ul
        li
        ul:not(.discounts-list)
        > li:last-child {
        border-top-right-radius: 10px;
    }

    .mobile-header .fixed-mobile-menu .menu-trigger .menu-icon::before,
    .mobile-header .fixed-mobile-menu ul li:not(.search) svg,
    .mobile-header .fixed-mobile-menu .search-icon svg {
        fill: #fff;
        color: #fff;
    }
    .mobile-header .fixed-mobile-menu .fa-shopping-cart::before {
        color: #fff !important;
        fill: #fff;
        font-size: 22px;
    }

    .mobile-header .fixed-mobile-menu ul:not(.discounts-list) > li svg {
        width: 22px;
        height: auto;
    }

    .mobile-header .c--asr--products {
        margin-top: 42px;
    }

    .mobile-header .fixed-mobile-menu > ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        width: auto;
        height: 100%;
    }

    .mobile-header .fixed-mobile-menu ul:not(.discounts-list) > li:first-child {
        border-left: 1px solid #fff;
    }

    .mobile-header .fixed-mobile-menu ul:not(.discounts-list) > li {
        border-right: 1px solid #fff;
    }

    .mobile-header .fixed-mobile-menu ul:not(.discounts-list) > li {
        min-width: var(--mobile-menubar-item-width, 75px);
        max-width: var(--mobile-menubar-item-width, 75px);
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
    }

    .mobile-header .fixed-mobile-menu a,
    .mobile-header .fixed-mobile-menu .search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .mobile-header .fixed-mobile-menu .contact ul li {
        background-color: var(--color-mobile-bottom-bar-active-bg);
    }

    .mobile-header .fixed-mobile-menu .contact > ul {
        display: flex;
        position: absolute;
        top: calc(-1 * var(--mobile-menubar-height), 75px);
        background: var(--primary-color);
        height: var(--mobile-menubar-height, 75px);
        align-items: center;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        transform: translateZ(-200px);
        opacity: 0;
        visibility: hidden;
        bottom: var(--mobile-menubar-height, 75px);
        left: calc(-1 * var(--mobile-menubar-item-width, 75px));
        transition: 0.25s ease all;
        border-bottom: 1px solid #fff;
    }

    .mobile-header .fixed-mobile-menu .contact.active {
        background-color: var(--color-mobile-bottom-bar-active-bg);
    }

    .mobile-header .fixed-mobile-menu .contact.active > ul {
        opacity: 1;
        visibility: visible;
    }

    /* SOF mobile search */
    .mobile-header #search.open.animating .dropdown-menu {
        inset: auto;
        top: var(--mobile-header-height);
        position: fixed;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 7px;
    }

    .mobile-header .mobile-search-wrapper {
        width: 100%;
    }

    .mobile-header-active .c--asr--categories,
    .mobile-header-active .c--asr--featured {
        display: none;
    }

    .mobile-header-active .c--asr--products .c--asr--products--title {
        margin-top: 0px;
        margin-bottom: 15px;
    }

    .mobile-header-active .c--asr--products {
        width: 100vw;
    }

    .mobile-header-active .c--advanced-search--results--content {
        max-height: calc(
            100dvh - var(--mobile-header-height) -
                var(--mobile-menubar-height, 46px) - 86px
        );
    }

    .mobile-header-active
        .c--advanced-search-wrapper.open
        .c--advanced-search--results {
        max-height: calc(
            100dvh - var(--mobile-header-height) -
                var(--mobile-menubar-height, 46px) - 87px
        );
    }

    .mobile-header-active .c--advanced-search--results {
        top: calc(var(--mobile-header-height) + 87px);
    }

    .j-menu[data-menu-level="2"] li.back-button {
        flex-basis: 100%;
        padding: 0;
    }

    .j-menu[data-menu-level="2"] li.back-button .back-button-container {
        display: flex;
        border-bottom: solid 1px #b7b7b7;
        padding: 10px;
    }

    .j-menu[data-menu-level="2"] li.back-button .back-button-container .text {
        font-size: 30px;
        flex-basis: 100%;
        text-align: center;
        margin-left: -20px;
    }

    .j-menu[data-menu-level="2"] li.back-button {
        flex-basis: 100%;
    }

    .j-menu[data-menu-level="2"] li.back-button .button {
        margin-left: 10px;
        font-size: 30px;
        cursor: pointer;
        z-index: 1000;
    }

    .main-products-style.product-grid.product-grid .product-thumb .cart-group {
        flex-wrap: nowrap !important;
    }

    .popup-container .left-side-container {
        flex-direction: column;
    }
}

@media only screen and (max-width: 375px) {
    :root {
        --mobile-menubar-item-width: 60px;
    }
}
