﻿.mega-menu,
.menu-title,
.mega-menu .dropdown {
    display: none;
}

.category-bold {
    color: rebeccapurple;
    font-size: 20px;
}

a.megamenu-item:not(.category-bold) {
    color: red;
}

.main {
    margin: 10px 0;
    padding: 10px;
}

.main:hover {
    background-color: red;
    margin: 10px 0;
    padding: 10px;
}

.sub-main {
    display: none;
    flex-wrap: wrap;
}

.sub-main.active {
    display: flex;
}

.main:hover+.sub-main {
    display: flex;
}

.subcategory-item .subcategory-title {
    color: #51660a;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.sub-subcategory-content .sub-subcategory-item a {
    color: #444444;
    font-size: 12px;
    font-weight: 400;
}


/* .row-wrapper > .row:first-of-type .box:first-of-type ul.subcategories {
	display: flex;
} */

.header-menu .mega-menu .dropdown .row-wrapper .row-menu .box .subcategories.hover {
    display: flex;
    align-content: flex-start;
    flex-direction: column;
    max-height: 485px;
    position: absolute;
    width: 80%;
    background-color: #fff;
    top: 12px;
    right: 0;
}

.header-menu .mega-menu .dropdown .row-wrapper .row-menu .box .subcategories.hover::-webkit-scrollbar {
    width: 10px;
}

.header-menu .mega-menu .dropdown .row-wrapper .row-menu .box .subcategories.hover::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

.header-menu .mega-menu .dropdown .row-wrapper .row-menu .box .subcategories.hover::-webkit-scrollbar-thumb {
    background: #596e89;
    border-radius: 10px;
}

.picture-title-wrap.active-style {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: #e7e2e238;
}

.picture-title-wrap .title {
    color: #f69e43;
}

.dropdown.categories .subcategories .subcategory.subcategory-title {
    font-size: 13px;
    font-weight: 600;
    color: #f69e43;
}

.dropdown.categories .subcategories .third-child {
    font-size: 11px;
    font-weight: 400;
}

.row-wrapper .box .subcategories .subcategory {
    text-align: left;
    display: inline-flex;
    justify-content: flex-start;
    width: 18%;
    line-height: 2;
}

.subcategory.third-child {
    font-size: 12px;
    font-size: .857rem;
    line-height: 2.27;
    font-weight: 400;
    color: #444444;
}

.box .subcategories .subcategory.subcategory-title {
    position: relative;
}

.box .subcategories .subcategory.subcategory-title::after {
    position: relative;
    display: inline-block;
    content: "";
    background: url(/Themes/venture/Content/img/icons/left-arrow.svg) no-repeat;
    background-size: 10px;
    width: 30px;
    right: 10px;
    top: 9px;
    transform: rotateY(180deg);
}

.row-wrapper .row-menu .box .picture-title-wrap .title .category-icon {
    width: 30px;
    height: 30px;
}

.row-wrapper .row-menu .box:nth-child(1) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/automation.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(2) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/motor.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(3) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/bargh.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(4) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/peneumatic.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(5) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/hydrolic.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(6) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/andaze-giri.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(7) .picture-title-wrap .title .category-icon {
    background: url(/Themes/venture/Content/img/daste-mahsulat/imeni.svg) center no-repeat;
    background-size: 22px;
}

.row-wrapper .row-menu .box:nth-child(1) .picture-title-wrap .title a,
.row-wrapper .row-menu .box:nth-child(2) .picture-title-wrap .title a,
.row-wrapper .row-menu .box:nth-child(3) .picture-title-wrap .title a,
.row-wrapper .row-menu .box:nth-child(4) .picture-title-wrap .title a,
.row-wrapper .row-menu .box:nth-child(5) .picture-title-wrap .title a,
.row-wrapper .row-menu .box:nth-child(6) .picture-title-wrap .title a,
.row-wrapper .row-menu .box:nth-child(7) .picture-title-wrap .title a {
    padding-right: 5px;
}

.mega-menu .row-menu {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

a.subcategory.third-child:hover {
    color: #008dbc;
}

.dropdown.categories .subcategories .subcategory.subcategory-title:hover {
    color: #0772a0;
}

@media all and (min-width: 1201px) {
    .menu-title,
    .close-menu {
        display: none;
    }
    .mega-menu {
        display: flex;
        justify-content: flex-start;
        position: relative;
        padding: 0 12px;
    }
    .mega-menu-responsive {
        display: none !important;
    }
    .mega-menu .with-dropdown-in-grid {
        position: static !important;
    }
    .mega-menu .dropdown {
        display: none;
        position: absolute;
        width: 98%;
        padding: 2px 0 0;
    }
    .mega-menu .row-wrapper {
        background: #fff;
        padding: 0 5px;
        box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.2);
        height: 500px;
    }
    .light-layout .mega-menu .row-wrapper {
        background: #fff;
        height: 450px;
    }
    .mega-menu .dropdown.active {
        display: block;
    }
    .mega-menu .row-menu::before {
        position: absolute;
        display: inline-block;
        content: "";
        width: 1px;
        background-color: #eee;
        height: 100%;
        right: auto;
        top: 0;
        left: 242px;
    }
    .mega-menu .row-menu+.row-menu {
        padding: 7px 0 0;
    }
    .mega-menu .box {
        padding: 8px 0;
    }
    .mega-menu .dropdown .box {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        height: auto;
    }
    /* .mega-menu .dropdown.boxes-2 .box {
        width: 50%;
    }
    .mega-menu .dropdown.boxes-3 .box {
        width: 33.333%;
    }
    .mega-menu .dropdown.boxes-4 .box {
        width: 12.5%;
    }
    .mega-menu .dropdown.boxes-5 .box {
        width: 20%;
    }
    .mega-menu .dropdown.boxes-6 .box {
        width: 16.666%;
    }
    .mega-menu .dropdown.boxes-7 .box {
        width: 14.25%;
    }

    .mega-menu .dropdown.boxes-9 .box {
        width: 20%;
    } */
    .mega-menu .categories .picture-title-wrap {
        position: relative;
        width: 243px;
    }
    .mega-menu .dropdown.manufacturers.fullWidth .box,
    .mega-menu .dropdown.vendors.fullWidth .box {
        position: relative;
        padding-bottom: 45px;
        max-width: 80px;
    }
    .mega-menu .categories .picture {
        overflow: hidden;
        text-align: center;
        margin: 0 0 15px;
        display: none;
    }
    .mega-menu .picture a {
        display: block;
        position: relative;
    }
    .mega-menu .picture a:before {
        content: '';
        display: block;
        padding-top: 100%;
    }
    .mega-menu .categories .picture a:before {
        padding-top: 66%;
    }
    .mega-menu .picture img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        max-width: 100%;
    }
    .mega-menu .categories .picture img {
        bottom: auto;
    }
    .mega-menu .title {
        margin-bottom: 15px;
        padding: 12px 5px;
        color: #07729f;
        text-transform: uppercase;
        text-align: left;
        position: relative;
        font-weight: 700;
    }
    .light-layout .mega-menu .title {
        color: #2c2c2c;
        border-color: #d4d4d4;
    }
    .mega-menu .categories .picture-title-wrap .title {
        margin: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .mega-menu .dropdown.manufacturers.fullWidth .title,
    .mega-menu .dropdown.vendors.fullWidth .title {
        position: absolute;
        bottom: 12px;
        left: 15px;
        right: 15px;
        margin: 0px -4px 3px -7px;
        font-size: 11px;
        font-weight: 300;
    }
    .mega-menu .categories .picture-title-wrap .title a,
    .mega-menu .dropdown.manufacturers.fullWidth .title a,
    .mega-menu .dropdown.vendors.fullWidth .title a {
        display: block;
    }
    .mega-menu .categories .picture-title-wrap .title a span,
    .mega-menu .dropdown.manufacturers.fullWidth .title a span,
    .mega-menu .dropdown.vendors.fullWidth .title a span {
        display: block;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .mega-menu .subcategories {
        text-align: left;
        width: auto;
        display: none;
        flex-wrap: wrap;
        width: 85%;
    }
    .mega-menu .box a {
        display: inline-block;
        text-align: right;
        font-size: 10px;
        -webkit-transition: all 0.2s ease-in-out;
        transition: all 0.2s ease-in-out;
    }
    .subcategories .subcategory.third-child {
        font-weight: 300;
    }
    .mega-menu .box .picture-title-wrap.active-style .title a {
        color: #07729f;
    }
    .mega-menu a.view-all {
        font-weight: bold;
        background: none;
    }
}