@media (max-width: 767px) {
    .product-range-category img {
        height: 40px!important;
        width: 40px!important;
    }
}
/* Mobile-only sidebar minor styles & JS: opens/closes from left */

/* Only apply mobile sidebar styling under large (lg) breakpoint */
@media (max-width: 991.98px) {
    .first-category {
        min-width: 250px !important;
        max-width: 300px !important;
        display: block;
    }
    
    .mobile-sidebar .menu-text {
        position: absolute;
        top: 60px;
        left: 30px;
        height: 110px;
        padding-bottom: 20px;
        background-color: #fff;
    }

    .mobile-sidebar .menu-text .nav-item {
        border: 1px solid #BD9738;
        padding: 10px 32px!important;
        color: #BD9738;
    }

    .sidebar {
        padding-top: 80px;
    }

    .product-range-category {
        border-bottom: 1px solid #404627;
        padding-bottom: 10px;
        width: 260px;
    }

    .product-range-category img {
        height: 40px;
        width: 40px;
        border-radius: 100%;
        margin: 0;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        margin-right: 10px;
    }

    .product-range-category:hover span {
        border-bottom: 0;
        width: 215px;
    }

    .product-range-category i {
        font-size: 20px;
        line-height:25px;
        width: auto;
        align-content: center;
        text-align: right;
        color: #BD9738;
        float: right;
        font-weight: 600;
        height: auto;
    }

    .product-range-category:hover i {
        background-color: transparent;
        cursor: pointer;
        width: 35px;
        height: auto;
        line-height: 20px;
        vertical-align: middle;
        float: right;
    }

    .sidebar-left, .sidebar-right {
        overflow-y: auto;
        min-height: 60vh;
        max-height: 60vh;
        height: auto;
        overflow-x: hidden;
        width: 800px !important;
        max-width: 800px !important;
    }  

    .sidebar-right {
        display: none;
    }

    .first-category .dropdown a {
        color: #BD9738;
        font-weight: 600;
    }
    /* Make the sub-menu a fixed sidebar that slides in from the left */
    #sub-menu-container.mobile-sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* hidden by default */
        height: 100%;
        width: 80vw; /* mobile sidebar width */
        max-width: 360px;
        background: #fff;
        overflow-y: auto;
        z-index: 2000;
        -webkit-box-shadow: 4px 0 10px rgba(0,0,0,0.15);
        box-shadow: 4px 0 10px rgba(0,0,0,0.15);
        transition: left 0.25s ease-in-out;
        padding: 1rem;
    }
    /* When open, slide into view */
       #sub-menu-container.mobile-sidebar.open {
        left: 0;
        width: 100%;
        overflow-y: hidden;
        z-index: 999999;
        max-width: 400px;
        top: 70px;
    }

    /* When we request the 'right' pane be visible on mobile */
    #sub-menu-container.mobile-sidebar.open-right .sidebar-right { 
        display: block !important; 
    }
    #sub-menu-container.mobile-sidebar.open-right .sidebar-left { 
        display: none !important; 
    }

    /* Overlay to dim the page when sidebar is open */
    #mobileSidebarOverlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease-in-out, visibility 0s linear 0.25s;
        width: auto;
    }
    /* Show overlay when active */
    #mobileSidebarOverlay.active {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    /* Close button styles */
    .close-sidebar {
        display: inline-block;
        border: none;
        background: transparent;
        font-size: 40px;
        line-height: 1;
        padding: 0px 0;
        position: absolute;
        top: 10px;
        right: auto;
        cursor: pointer;
        z-index: 9999999999;
    }

    /* Back button in right pane - mobile only placement */
    #sub-menu-container.mobile-sidebar .sidebar-right .sidebar-right-header { 
        position: relative; 
        padding: 0.5rem 1rem; 
    }

    #sub-menu-container.mobile-sidebar .sidebar-right .back-btn {
        position: absolute;
        left: 0;
        top: 8px;
        z-index: 10000;
        border: 0;
        background: transparent;
        font-size: 1rem;
        color: #131010;
        padding: 6px 0px;
    }

    /* Hide desktop layout details that may conflict */
    #mainNavDesktop .menu-wrap { display: none; }

    .sidebar-left {
        text-align: left;
    }

    .navbar-dark .navbar-nav .nav-link.active {
        color: #131010;
    }

    .sidebar-left {
        border-right: 0;
        max-width: 800px!important;
    }

    .sidebar-items {
        padding-top: 20px;
    }

    .dropdown-item {
        font-weight: 400!important;
    }

    .menu-body .dropdown-menu {
        padding-left: 50px;
    }

    .menu-body img {
        height: 35px;
        width: 35px;
    }

    .menu-body {
        padding: 0px 0px 10px 0px;
        min-height: 60vh;
        width: 350px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .menu-body li {
        display: grid;
    }

    .menu.sidebar .col-12 {
        padding: 0px 0px 0px 15px;
    }

    .header2 .navbar-nav .nav-link {
        padding-right: 0;
        padding-left: 0;
        color: #000;
        font-weight: 600;
        text-transform: uppercase;
        width: 230px;
        display: inline-block;
    }
    
}

@media (min-width: 992px) {
    /* Revert any mobile-only changes on desktop */
    /* #sub-menu-container.mobile-sidebar { 
        position: absolute;
        background-color: #fff;
        left: -30px;
        right: 0;
        width: 110%;
        top: 116%;
    } */
    #mobileSidebarOverlay { display: none; }
    .close-sidebar { display: none !important; }
}
