.navbar {
    background: #fff;
    border: none;
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* FIX MOBILE/TABLET DROPDOWN CLIPPING */
.navbar {
    height: auto;
    overflow: visible;
}

.navbar-collapse {
    overflow: visible;
}


.navbar-brand img {
    width: 15rem;
    height: auto;
}

.navbar-right {
    margin-right: 50px;
}

/* GAP BETWEEN TOP MENUS */
.navbar-nav>li {
    margin-left: 35px;
}

.navbar-nav>li>a {
    padding: 30px 20px;
    font-weight: 600;
    font-size: 18px;
    color: #000000 !important;
    transition: all 0.2s ease;
}

.navbar-nav>li>a:hover,
.navbar-nav>li.open>a {
    background: none;
    color: #e22234 !important;
}

.custom-dropdown {
    position: relative;
}

/* .custom-dropdown-menu {
    min-width: 300px;
    padding: 0;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    top: 100%;
    left: 0;
    margin-top: 0;
} */

.custom-dropdown-menu {
    min-width: 200px;
    padding: 0;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    top: 100%;
    left: 40%;
    transform: translateX(40%);
    margin-top: 0;
}




/* LEFT RED BAR */
/* .custom-dropdown-menu:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: #e60000;
} */
.custom-dropdown-menu {
    border-left: 5px solid #e22234;
}

.custom-dropdown-menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    color: #000000;
    font-size: 15px;
    transition: all 0.2s ease;
}

.custom-dropdown-menu li a:hover {
    color: #e22234;
    background: #f9f9f9;
    padding-left: 25px;
}

.custom-dropdown-menu li:last-child a {
    border-bottom: none;
}

/* REQUIRED FOR MOBILE/TABLET */
.custom-dropdown.open>.dropdown-menu {
    display: block;
}


/* CARET COLOR ON HOVER */
.navbar-nav>li>a:hover .caret,
.navbar-nav>li.open>a .caret {
    border-top-color: #e22234;
    border-bottom-color: #e22234;
}

/* ACTIVE MAIN MENU ITEM */
.navbar-nav > li.active > a,
.navbar-nav > li.active > a:hover,
.navbar-nav > li.active > a:focus {
    color: #e22234 !important;
    background: none !important;
    font-weight: 600;
}



@media (min-width:768px) {
    .custom-dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width:767px) {

    .navbar-brand {
        height: 7.4rem;
    }

    .navbar-nav>li {
        margin-left: 0;
    }

    .navbar-nav>li>a {
        padding: 15px;
        font-size: 16px;
    }

    .custom-dropdown-menu {
        width: 100%;
        box-shadow: none;
    }

    .custom-dropdown-menu:before {
        display: none;
    }

    .navbar-default .navbar-nav .open .dropdown-menu>li>a {
        color: #000000;
    }
}

@media (max-width:480px) {
    .navbar-brand img {
        width: 12rem;
        height: auto;
    }
}

@media (max-width:767px) {

    .navbar-right {
        float: none !important;
        margin-right: 0 !important;
    }

    .navbar-collapse {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-nav>li {
        margin-left: 0 !important;
    }

    .navbar-nav>li>a {
        text-align: left;
        padding-left: 15px;
    }

    .navbar-nav .open .dropdown-menu {
        position: relative !important;
        width: 100%;
        margin: 0;
        padding: 0;
        left: 0;
        right: auto;
        transform: none;
    }

    /* .custom-dropdown-menu:before {
        display: none;
    } */

    .custom-dropdown-menu {
        border-left: none;
    }

    .navbar-nav>li>a {
        text-align: left;
        padding-left: 3rem;
    }

    .navbar-nav .open .dropdown-menu>li>a {
        padding-left: 4rem;
    }
}


/* ===============================
   MOBILE / TABLET SCROLL FIX
================================ */
@media (max-width: 767px) {

    /* Allow vertical scrolling inside menu */
    .navbar-collapse {
        max-height: calc(100vh - 60px);
        /* adjust if logo height differs */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure dropdowns stay inside flow */
    .navbar-nav .open .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        max-height: none;
        overflow: visible;
    }

}

@media (min-width: 768px) {

    /* Scroll only Products dropdown */
    .products-dropdown .custom-dropdown-menu {
        max-height: 340px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        /* Firefox */
        min-width: 300px;
        left: 0%;
        transform: translateX(0%);
    }

    /* Smooth scrolling */
    .products-dropdown .custom-dropdown-menu {
        -webkit-overflow-scrolling: touch;
    }
}