@media(min-width:1600px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 1200px) {
    li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu {
        display: none !important;
    }

    li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li>ul.sub-menu {
        /* second sub menu here  */
        display: none !important;
    }

    li.menu-item-has-children:hover ul.sub-menu {
        display: block !important;
    }

    li.menu-item-has-children>ul.sub-menu>li:hover ul.sub-menu {
        display: block !important;
    }

    li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li:hover ul.sub-menu {
        display: block !important;
    }



    li.menu-item-has-children .sub-menu li a:hover {
        background: var(--color-red);
        color: var(--color-white);

    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:hover>a,
    li.menu-item-has-children>ul.sub-menu:hover>li.menu-item-has-children>a:hover {
        color: var(--color-white);
        background: var(--color-red);
    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:hover::after {
        border-color: var(--color-white);
        transform: rotate(-45deg);
    }

    ul.top-navlist li a:hover,
    ul.bottom-navlists li a:hover {
        color: var(--color-red);
    }

    li.menu-item-has-children:hover>a,
    li.menu-item-has-children:has(ul.sub-menu:hover)>a {
        color: var(--color-red);
    }

    li.menu-item-has-children .sub-menu li {
        background: var(--color-white);
        padding: 0px 15px;
    }

    li.menu-item-has-children:hover::after {
        border-color: var(--color-red);
        transform: rotate(-135deg);
    }

    @keyframes slideup {
        0% {
            opacity: 0;
            /* clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); */
            clip-path: polygon(0 98%, 100% 98%, 100% 100%, 0% 100%);
        }

        100% {
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
            opacity: 1;
        }
    }

}


@media(max-width:1600px) {

    .grid-bottom,
    .all-here {
        gap: 25px;
    }

    .main-logo {
        max-width: 280px;
    }

    ul.bottom-navlists {
        gap: 15px;
    }

    .request-quote a {
        padding: 15px;
    }

    ul.top-navlist li a,
    ul.bottom-navlists li a,
    .grid-serachbar input,
    .grid-serachbar input::-webkit-input-placeholder {
        font-size: 13px;
    }
}

@media(max-width:1400px) {
    .main-logo {
        max-width: 200px;
    }

    .request-quote a {
        padding: 10px 15px;
    }

    ul.top-navlist li a,
    ul.bottom-navlists li a,
    .grid-serachbar input,
    .grid-serachbar input::-webkit-input-placeholder {
        font-size: 12px;
    }

    .all-here {
        width: initial;
    }

    ul.bottom-navlists {
        gap: 15px;
    }

    .grid-bottom,
    .all-here {
        gap: 20px;
    }

    .request-quote a {
        padding: 10px 15px;
        font-size: 13px;
    }

    ul.sub-menu {
        min-width: 250px;
        padding-top: 30px;
    }

    li.menu-item-has-children .sub-menu li {
        padding: 0px 10px;
    }

    li.menu-item-has-children .sub-menu li a {
        padding: 8px 30px 10px 10px;
    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:first-child::after {
        top: 26px !important;
    }

    li.menu-item-has-children>ul.sub-menu li.menu-item-has-children:last-child::after {
        top: 10px !important;
    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after {
        right: 21px;
    }
}

@media(max-width:1199px) {

    .grid-bottom,
    ul.bottom-navlists {
        flex-direction: column;
        align-items: start;
    }

    .all-here {
        display: none;
        width: 100%;
        height: 70vh;
        overflow-y: scroll;
    }

    ul.bottom-navlists,
    ul.top-navlist {
        gap: 15px;
        width: 100%;
    }

    ul.bottom-navlists li {
        width: 100%;
    }

    ul.sub-menu {
        position: static !important;
        padding: 0 !important;
    }

    li.menu-item-has-children .sub-menu li:first-child {
        padding-top: initial !important;
    }

    li.menu-item-has-children .sub-menu li:last-child {
        padding-bottom: initial !important;
    }

    li.menu-item-has-children .sub-menu li {
        padding: 0 !important;
    }

    li.menu-item-has-children .sub-menu li a {
        padding: 10px 5px;
    }

    li.menu-item-has-children .sub-menu li {
        background: transparent !important;
    }



    .menu-item-has-children {
        padding-right: 0;
        background: transparent !important;
    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after {
        right: 0;
    }



    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:first-child::after,
    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after {
        top: 4px !important;
    }


    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after,
    li.menu-item-has-children::after {
        right: 4%;

    }

    li.menu-item-has-children .sub-menu li:last-child,
    li.menu-item-has-children .sub-menu li:first-child {
        border-radius: 0px !important;
    }

    ul.top-navlist li a,
    ul.bottom-navlists li a,
    .grid-serachbar input,
    .grid-serachbar input::-webkit-input-placeholder,
    .request-quote a {
        font-size: 14px;
        white-space: normal;

    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:first-child::after,
    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after,
    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after,
    li.menu-item-has-children::after {
        top: 8px !important;
        /* border-color: var(--color-white); */
    }

    .menu-icon {

        display: block;
    }

    .mobile-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .bottom-header {
        padding: 0;
    }

    .main-logo {
        max-width: 230px;
    }

    .top-menu {
        display: block;
    }

    .grid-topheader {
        flex-direction: column-reverse;
        align-items: start;
        width: 100%;
        gap: 20px;

    }

    .only-mobile {
        display: flex;
        align-items: center;

        justify-content: space-between;
        width: 100%;
    }








    .all-here {
        position: fixed;
        width: 360px;
        z-index: 99;
        background: #fff;
        top: 0;
        height: 100vh;
        padding: 20px 10px;
        right: -100%;
        overflow-y: auto;
        transition: 0.3s ease-out;
        display: block;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }

    .all-here.open {
        right: 0;
    }

    .close-here {
        display: block;
    }

    ul.bottom-navlists li a {
        max-width: fit-content;
    }

    .bottom-header .grid-topheader {
        display: block;
    }

    ul.top-navlist {
        flex-direction: column;
        margin-top: 20px;
    }

    .top-header {
        display: none;
    }

    .grid-serachbar input,
    .grid-serachbar input::-webkit-input-placeholder {
        color: #000;
    }

    .grid-serachbar {
        border-color: #000;
    }

    .serachbars-top button img {
        filter: invert(1);
    }

    .serachbars-top {
        max-width: 100%;
        width: 100%;
        padding: 20px 0px;
    }



    /* li.menu-item-has-children ul.sub-menu li a:hover{
        color: #fff !important;
    } */

    li.menu-item-has-children ul.sub-menu {
        background: var(--color-red) !important;
        color: var(--color-white) !important;
        /* padding: 0px 10px !important; */
    }

    li.menu-item-has-children ul.sub-menu {
        /* margin: 5px 0px; */
        /* padding: 15px 10px !important; */
    }

    li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li>ul.sub-menu {
        background: #fff !important;
        color: #000 !important;
        /* padding: 10px 9px !important; */
    }

    li.menu-item-has-children ul.sub-menu li.menu-item-has-children ul.sub-menu {
        /* background: #fff !important; */
        /* color: #000 !important; */
        /* padding: 10px 5px !important; */
    }

    li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li>ul.sub-men>li>ul.sub-menu {
        opacity: 0;
    }

    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children:first-child::after,
    li.menu-item-has-children>ul.sub-menu>li.menu-item-has-children::after {
        border-color: #fff !important;
    }
}