header.main-header {
    width: 100vw;
    text-align: center;
    z-index: 999999;
    background: #fff;
}

header.main-header ul.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

header.main-header ul.menu li {
    margin: 0 20px;
}

header.main-header .header-bottom-blocks ul.menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: -30px;
    width: 100vw;
    opacity: 0;
    pointer-events: none;
    transition: .3s ease-in-out;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-30px);
    z-index: -1;
}

header.main-header .header-bottom-blocks ul.menu li:hover ul.sub-menu  {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: all;
}

header.main-header > div {
    padding: 5px 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

header.main-header .header-top-block > div {
    width: 33.3%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header.main-header .header-top-block {
    background-color: var(--color-3);
}

header.main-header .header-top-block * {
    color: #fff;
    font-size: 14px;
}

header.main-header .header-top-block .details a {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-right: 15px;
}

header.main-header .header-top-block .details a i {
    margin-right: 5px;
}

/* header.main-header .header-middle-block {
    border-bottom: none;
} */

header.main-header .header-middle-block .woo-links,
header.main-header .header-middle-block a.main-logo {
    width: 200px;
}

header.main-header .header-middle-block .pages {
    width: 100%;
}

header.main-header .header-middle-block .pages ul li {
    position: relative;
}

header.main-header .header-middle-block .pages ul li:not(:first-child)::before {
    content: "•";
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translate(50%, -50%);
    color: var(--color-3);
    font-weight: bold;
    font-size: 23px;
}

header.main-header .header-middle-block .woo-links {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
}

header.main-header .header-middle-block .woo-links .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

header.main-header .header-middle-block .woo-links .item:last-child {
    margin-right: 0;
}

header.main-header .header-middle-block .woo-links .item.mobile {
    display: none;
}

header.main-header .header-middle-block .woo-links .item > span.item-title {
    display: none;
    margin-top: 7px;
}

header.main-header .header-middle-block .woo-links .item i {
    color: var(--color-3);
    font-size: 25px;
    cursor: pointer;
}

header.main-header .header-bottom-blocks {
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 15px;
}

header.main-header .header-bottom-blocks .categories {
    width: 100%;
    position: relative;
    z-index: 1;
    z-index: 99999;
}

header.main-header .header-bottom-blocks .categories ul.menu li {
    /* padding-bottom: 5px; */
}

header.main-header .categories ul.menu > li::after {
    content: "\276F";
    display: inline-block;
    transform: rotate(-90deg);
    margin-right: 5px;
    transition: .3s ease;
}

header.main-header .header-bottom-blocks .categories ul.menu > li:hover::after {
    transform: rotate(-270deg);
}

header.main-header .header-bottom-blocks .categories ul.sub-menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

header.main-header .header-bottom-blocks .categories ul.sub-menu li .cat-img-container {
    position: relative;
    width: 130px;
    height: 130px;
    box-shadow: 0 0 10px 0px var(--border-color);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border-color);
    transition: .6s ease;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header.main-header .header-bottom-blocks .header-search {
    z-index: 9999;
}

header.main-header .header-bottom-blocks .search_form {

}

header.main-header .header-bottom-blocks .new-custom-search-form form {
    position: relative;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

header.main-header .header-bottom-blocks .new-custom-search-form form button {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 16px;
}

header.main-header .header-bottom-blocks .new-custom-search-form form input[type="search"] {
    border: none;
    width: 350px;
    background: transparent;
}

header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
}

header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products li p.not-results {
    font-weight: bold;
    padding: 10px;
    color: #000;
}

header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products li.product {
    padding: 5px 15px;
    border-bottom: 1px solid #000;
}


header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products li.product a {
    display: flex;
    align-items: center;
    min-height: 51px;
    color: #000;
}

header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products li.product a img {
    height: auto;
    width: 50px;
    max-height: 50px;
}

header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products li.product a p.product-title {
    margin-right: 10px;
    font-size: 15px;
    color: #000;
}

header.main-header .header-bottom-blocks .new-custom-search-form form .autocomplete-products li:not(.product) button {
    width: 100%;
    background: transparent;
    color: #000;
    font-size: 12px;
    border: none;
    padding: 7px;
    min-height: auto;
    letter-spacing: normal;
    color: #818181 !important;
}

header.main-header .mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    header.main-header > div {
        padding: 10px 15px;
    }

    header.main-header .header-top-block {
        justify-content: center;
    }

    header.main-header .header-top-block > div {
        width: 90%;
    }

    header.main-header .header-top-block .details {
        display: none;
    }

    header.main-header .header-middle-block {
        flex-direction: row-reverse !important;
        border-bottom: none;
    }

    header.main-header .header-bottom-blocks .categories,
    header.main-header .header-middle-block .pages {
        display: none;
    }

    header.main-header .mobile-menu .mobile-menu-container .menu-top a.main-logo,
    header.main-header .header-middle-block a.main-logo {
        width: 150px;
        min-width: 150px;
        display: block;
    }

    header.main-header .header-middle-block .woo-links {
        width: 100%;
        justify-content: flex-end;
        align-items: flex-end;
    }

    header.main-header .header-middle-block .woo-links .item {
        margin-right: 5%;
    }

    header.main-header .header-middle-block .woo-links .item i {
        font-size: 20px;
    }

    header.main-header .header-middle-block .woo-links .item.mobile {
        display: flex;
    }

    header.main-header .header-middle-block .woo-links .item > span.item-title {
        display: block;
    }

    header.main-header .header-middle-block .woo-links button.hamburger {
        padding: 0;
    }

    header.main-header .header-middle-block .woo-links button.hamburger .hamburger-box {
        width: 25px;
        height: 20px;
    }

    header.main-header .header-middle-block .woo-links button.hamburger .hamburger-box .hamburger-inner,
    header.main-header .header-middle-block .woo-links button.hamburger .hamburger-box .hamburger-inner:after,
    header.main-header .header-middle-block .woo-links button.hamburger .hamburger-box .hamburger-inner:before {
        width: 25px;
        height: 3px;
    }

    header.main-header .header-middle-block .woo-links button.hamburger:not(.is-active) .hamburger-box .hamburger-inner:before {
        top: -8px;
    }

    header.main-header .header-middle-block .woo-links button.hamburger:not(.is-active) .hamburger-box .hamburger-inner:after {
        bottom: -8px;
    }

    header.main-header .header-bottom-blocks {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header.main-header .header-bottom-blocks .header-search {
        width: 100%;
    }

    header.main-header .header-bottom-blocks .new-custom-search-form form input[type="search"] {
        width: 100%;
    }

    header.main-header .header-bottom-blocks .new-custom-search-form form {
        margin-top: 0;
    }

    header.main-header .mobile-menu {
        display: block;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0px;
        right: 0px;
        bottom: 0px;
        opacity: 0;
        pointer-events: none;
        z-index: 2147483647;
        transition: 0.6s;
    }

    header.main-header .mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    header.main-header .mobile-menu .mobile-menu-container {
        position: absolute;
        top: 0px;
        right: -100%;
        height: 100%;
        width: 450px;
        max-width: 90%;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 1;
        border: 1px solid var(--color-3);
        background: #fff;
        transition: 0.6s;
    }

    header.main-header .mobile-menu.open .mobile-menu-container {
        right: 0;
    }

    header.main-header .mobile-menu .mobile-menu-black-screen {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        width: 100vw;
        height: 100vh;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.6);
    }

    header.main-header ul.menu {
        flex-direction: column;
        align-items: flex-start;
    }

    header.main-header ul.menu li {
        margin: 10px 0;
        width: 100%;
        text-align: right;
        position: relative;
    }

    header.main-header .categories ul.menu > li::after {
        transform: translateY(-50%);
        margin: 0;
        position: absolute;
        top: 50%;
        left: 0;
        font-size: 20px;
    }

    header.main-header ul.menu li a {
        display: block;
        width: 100%;
        font-size: 20px;
        font-weight: bold;
    }
    
    header.main-header .mobile-menu .mobile-menu-container > div {
        padding: 10px 0;
    }

    header.main-header .mobile-menu .mobile-menu-container > div:not(:first-child) {
        border-top: 2px solid var(--border-color);
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu {
        position: fixed;
        opacity: 0;
        pointer-events: none;
        top: 0;
        right: -100%;
        height: 100%;
        width: 450px;
        max-width: 90%;
        padding: 0 20px;
        transition: 0.6s;
        list-style: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        background: #fff;
        z-index: 99;
        border: 1px solid var(--color-3);
        align-content: flex-start;
        padding-top: 65px;
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu::before {
        content: "\f061";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 25px;
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu::after {
        content: attr(data-title);
        position: absolute;
        top: 23px;
        font-size: 25px;
        font-weight: bold;
        width: 100%;
        text-align: center;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 10px;
        pointer-events: none;
    }

    header.main-header .mobile-menu.open ul.menu li.open ul.sub-menu {
        right: 0;
        opacity: 1;
        pointer-events: all;
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu > li {
        width: 100px;
        margin: 15px;
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu > li a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu > li a img {
        width: 100px;
        height: 100px;
        box-shadow: 0 0 10px 0px var(--border-color);
        border-radius: 50%;
        background: #fff;
        border: 2px solid var(--border-color);
        margin-bottom: 15px;
        overflow: hidden;
        padding: 10px;
    }

    header.main-header .mobile-menu ul.menu li ul.sub-menu > li a span {
        display: block;
        max-width: 85%;
        text-align: center;
        margin: 0 auto;
        font-size: 18px;
    }

    header.main-header .mobile-menu .mobile-menu-container .menu-top {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header.main-header .mobile-menu .mobile-menu-container .menu-top button.close-menu-window {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 40px;
        z-index: 9999;
    }
}
  