/* MEGA MENU STYLE */

.icon-1 > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/i1.png);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 30px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 20px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}


.icon-laptops > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/laptops-icon.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 28px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}
.icon-pc > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/pc-icon.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 28px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}
.icon-ram > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/ram-icon.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 28px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}
.icon-ssd > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/ssd-icon-1.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 22px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}
.icon-accessories > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/accessories-icon1.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 18px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}

.icon-monitors > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/monitors-icon.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 28px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}





.icon-components > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/components-icon.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 28px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}

.icon-peripherals > a:first-of-type::before {
    background-image: url(/wp-content/themes/ems-lapzone-child/ems-assets/images/icons/m/peripherals-icon.svg);
    content: '';
    position: relative;
    left: 0;
    top: 0;
    width: 38px;
    height: 22px;
    z-index: 9999;
    background-repeat: no-repeat;
    background-size: 28px;
    /* filter: invert(1); */
    margin-right: 13px;
    background-position: center;
}


nav.ems-side-menu li a:before {
    background-color: #323232;
        height: 36px !important;
}

/* Контейнер на менюто */
.ems-side-menu {
    width: 300px;
    /* position: relative; */
    position: absolute;
    background: #212222;
    /* box-shadow: -1px 1px 10px 0px #ededed; */
    z-index: 99;
        height: 322px;
}
/* ul#menu-main-1 li a {
    color: black;
} */
ul#menu-main-1 li a {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: flex-start;
    font-family: 'Roboto';
    font-size: 14px;
}

/* Основен списък */
.ems-side-menu .menu {
    list-style: none;
    margin: 0;
    /* padding: 0; */
        padding: 0 0 15px 0px;
}

/* Елемент в основното меню */
/* .ems-side-menu .menu > li {
    position: relative;
} */

/* Линковете */
.ems-side-menu .menu li a {
    /* display: block;
    padding: 10px 15px;
    text-decoration: none; */
    display: flex;
    padding: 10px 10px;
    text-decoration: none;
    align-items: center;
    color: #fff;
    font-family: 'Roboto';
    padding-bottom: 0;
    padding-top: 0;
        font-size: 18px;
    text-transform: uppercase;
        font-weight: 300;
            letter-spacing: 1px;
}
li.mega-col.custom-col a {
    padding-left: 0;
    padding-bottom: 5px;
}

/* Скриваме подменютата */
.ems-side-menu .menu li .sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    list-style: none;
    margin: 0;
    padding: 0;
}
li.mega-col.default-links {
    /* background: #efefef; */
        background: #505050;
        border-right: 1px solid #676767;
}
li.mega-col.default-links a {
    font-size: 16px;
        padding: 5px 10px;
}
li.mega-col.default-links ul {
    list-style: none;
    padding: 0;
}
li.mega-col.custom-col ul {
    list-style: none;
    padding: 0;
}
li.mega-col.custom-col h4 {
    font-size: 16px;
    position: relative;
    font-weight: 400;
    /* font-family: 'Roboto'; */
    color: #212222;
        margin-top: 15px;
}
li.mega-col.custom-col:nth-child(2) {
    margin-left: 25px;
}
li.mega-col.custom-col h4:after {
    content: "";
    width: 49px;
    height: 2px;
    color: #8C8C8C;
    background: #8C8C8C;
    position: absolute;
    bottom: -5px;
    left: 0;
}
/* Показваме при hover */
/* .ems-side-menu .menu li:hover > .sub-menu {
    display: block;
} */
/* .ems-side-menu .menu li:hover > .sub-menu {
    display: flex;
    width: 100%;
    min-width: max-content;
    background: white;
    width: 900px;
    z-index: 9999;
} */
 /* само на устройства, които поддържат hover (десктоп) */
@media (hover: hover) and (pointer: fine) {
  .ems-side-menu .menu li:hover > .sub-menu {
    display: flex;
    width: 900px;
    /* min-width: max-content; */
    /* background: white; */
    background: #505050;
    z-index: 9999;
    min-height: 100%;
            height: 100%;
  }
  ul.sub-menu.ems-mega-wrapper.ems-only-defaults.actif {
    width: 100%;
}
ul.sub-menu.ems-mega-wrapper.ems-only-defaults.actif .default-links {
    width: 100%;
}
}
/* li.mega-col.mega-image img {
    width: 100%;
    height: 302px;
    object-fit: cover;
} */
 li.mega-col.mega-image img {
    width: 80%;
    height: 302px;
    object-fit: contain;
}
li.mega-col.mega-image a {
    width: 100%;
    height: 100%;
        padding: 10px;
            justify-content: end;
}
li.mega-col.mega-image {
    /* position: absolute; */
    right: 0;
    bottom: 0;
    width: 50%;
}
.mega {
    position: unset;
}
/* Стрелка за елементи с дропдаун */
/* .ems-side-menu .menu > li.menu-item-has-children > a::after {
    content: "\25B6";    
    float: right;
    margin-left: 8px;
    font-size: 0.8em;
    line-height: 1;
    transition: transform .2s ease;
} */
 li.mega-col.default-links {
    width: 20%;
    padding: 20px 10px;
        overflow: auto;
}
/* make custom scorllbar for li.mega-col.default-links */
/* width */
li.mega-col::-webkit-scrollbar {
  width: 5px;
}

/* Track */
li.mega-col::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
li.mega-col::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
li.mega-col::-webkit-scrollbar-thumb:hover {
  background: #9c9c9c; 
}
.ems-side-menu li.mega-col.custom-col {
    width: 10%;
    padding: 10px;
    /* margin-bottom: 20px; */
}
.ems-side-menu .menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    transition: transform 0.2s ease;
    right: 15px;
    position: absolute;
}


/* Анимирана стрелка при hover */
.ems-side-menu .menu > li.menu-item-has-children:hover > a::after {
    transform: translateX(4px);
}

.ems-hamburger-icon {
  width: 28px;
  height: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-right: 10px;
}
span.ems-menu-title {
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Roboto';
}
.ems-menu-container:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    transition: transform 0.2s ease;
    color: white;
    transform: rotate(90deg);
    right: 15px;
    position: absolute;
}

.ems-hamburger-icon span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s ease;
}
.ems-menu-container {
    background: #212222;
    width: 300px;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    height: 50px;
    position: relative;
    padding: 10px 10px !important;
    z-index: 99;
}
/* span.ems-menu-badge {
    position: absolute;
    font-size: 10px;
    top: -8px;
    right: 10px;
    color: rgba(255, 255, 255, 1);
    background: rgba(3, 168, 78, 1);
    padding: 1px;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 2px;
} */


@media(max-width: 1024px) {
    ul.sub-menu.ems-mega-wrapper.ems-level2.actif {
    margin: 0 !important;
    padding: 0 !important;
    border: unset !important;
}
    .ems-hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    }
    .ems-hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    }
    .ems-hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    }
    
    li.mega-col.custom-col:nth-child(2) {
    margin-left: 0px;
    }
    .ems-side-menu {
    height: auto;
    }
    .ems-menu-container {
    padding: 0 !important;
}
    .ems-menu-container.mob {
        width: auto;
    }
    span.ems-menu-title {
    color: #FFF;
    font-family: "Albert Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 106%;
    letter-spacing: 1.08px;
    text-transform: uppercase;
}
    .ems-menu-container.mob {
    padding: 0 !important;
}
.home nav.ems-side-menu {
    display: none;
}
.ems-mob-ham-right button.elementskit-menu-hamburger.elementskit-menu-toggler {
    height: 50px;
    background: #cc0000;
    border-radius: unset !important;
    width: 60px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}
.ems-mob-ham-right span.elementskit-menu-hamburger-icon {
    width: 28px !important;
    height: 3px !important;
    margin-right: 0 !important;
    background: white !important;
}

.ems-login-text {
    display: none !important;
}
/* .ems-header-search-container {
    display: none !important;
} */
.ems-icon-leveling-pc .elementor-widget-container{
    align-items: center;
    justify-content: center;
    display: flex;
}
span.ems-hs-si.mob {
    border-left: unset;
    /* border-right: 1px solid rgba(0, 0, 0, .1); */
    height: 35px;
    /* margin: 0 12px; */
    color: #ff0000;
    position: relative;
    margin-left: 0;
    margin-right: 10px;
    width: 30px;
}
.ems-profile-button {
    margin-right: 10px;
}
span.ems-hs-si.mob i {
    font-size: 25px;
}
li.header-divider {
    display: none;
}




    .ems-side-menu li.mega-col {
    width: 100% !important;
}
li.mega-col.mega-image {
    display: none;
}
.ems-side-menu .menu .custom-col li a {
    padding: 5px 10px !important;
}
li.mega-col.custom-col h4 {
    font-size: 12px;
    text-transform: uppercase;
}
ul.sub-menu.ems-mega-wrapper.actif {
    background: #505050 !important;
}
/* .mob span.ems-menu-title {
    display: none;
} */
/* .mob.ems-menu-container {
    width: 65px !important;
} */
 .ems-menu-container.mob {
    gap: 10px !important;
}
.mob.ems-menu-container:after
    {
        display: none !important;
}
.mob .ems-hamburger-icon {
    margin-right: 0px !important;
}
/* .ems-side-menu .menu li:hover > .sub-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: max-content;
    background: white;
    width: 900px;
    z-index: 9999;
    position: unset;
} */
.sub-menu.actif {
    /* display: flex !important; */
    flex-direction: column !important;
    width: 100% !important;
    min-width: max-content !important;
    background: white !important;
    /* width: 900px !important; */
    z-index: 9999 !important;
    position: unset !important;
    /* transition: all 0.3s ease-in-out; */
}
}
/* END OF MEGA MENU STYLE */


ul.sub-menu.ems-mega-wrapper.ems-level2.actif {
    border-left: 1px solid #676767;
    padding-left: 25px;
    width: 80% !important;
}
.ems-level2 li.mega-col.custom-col {
    width: auto;
}

.ems-level2 a {
    padding-left: 0 !important;
}

.ems-level2{
    left: 20% !important;
}

.ems-has-class>a:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    transition: transform 0.2s ease;
    right: 15px;
    /* position: absolute; */
}

/* .mega>a {
    width: max-content;
}
.mega>li {
    width: max-content;
} */