.header .header__container {
    padding-top: 24px;
    padding-bottom: 24px;
}
.header{
    border-bottom: 1px solid rgba(182, 182, 182, 0.5);
    background: #FFF;
    z-index: 10000000;
}


.header {
    position: fixed;
    top: 0; /* Изначально хедер виден */
    left: 0;
    width: 100%;
    transition: top 0.3s ease;
}

.wp-admin .header {
    position: relative;
}
.header.show {
    top: 0; /* Хедер виден */
}

.header.hide {
    top: -100px; /* Хедер скрыт */
}
.wp-toolbar body{
	padding:0;
}
@media screen and (min-width: 1024px){
    body{
        padding-top: 99px;
    }
}
@media screen and (min-width: 600px) and (max-width: 1024px){
    body{
        padding-top: 103px;
    }
}

@media screen and (max-width: 600px){
    body{
        padding-top: 63px;
    }
}


.header__navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 77px;
}

.header__container{
    background: #fff;
}
.header__mobile-wrapper {
    display: none;
    transform: translateY(-150%);
    transition: all 0.5s ease;
    z-index: -1;
    background: #fff;
}

.header__logo-link {
    position: relative;
    z-index: 100;
    width: 100px;
    height: 50px;
    display: flex;

}

.header__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header__navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 47.5px;
    align-items: center;
}

.header__navigation ul li a {
    font-weight: 400;
    font-size: 12px;
    line-height: 131%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: center;
    color: #151515;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__menu-button {
    display: none;
}

.header__actions {
    z-index: 100;
    position: relative;
    display: flex;
    gap: 28px;
    align-items: center;
}


.mobile-logo {
    display: none;
}

.header__navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    padding-top: 0px;
}

.menu-item {
    opacity: 0.5;
    transition: all 0.5s ease;
}

.current_page_item.menu-item {
    opacity: 1;
}

body .menu-image-title-after.menu-image-not-hovered img,
body .menu-image-hovered.menu-image-title-after .menu-image-hover-wrapper,
body.menu-image-title-before.menu-image-title.menu-image {
    padding-right: 0;
}

body .menu-image-title-before.menu-image-not-hovered img,
body .menu-image-hovered.menu-image-title-before .menu-image-hover-wrapper,
body .menu-image-title-after.menu-image-title {
    padding-left: 0;
}

.menu-item,
.header__logo-link {
    z-index: 10001;
    cursor: pointer;
}

.header__navigation ul li.menu-item:hover {
    opacity: 1;
}

.menu-item:hover > .sub-menu {
    display: block;
}

.menu-item:has(.sub-menu)::after {
    content: "";
    display: inline-block;
    width: 22px; /* Adjusted to match the SVG width */
    height: 20px; /* Adjusted to match the SVG height */
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.51758 8.32454L10.8926 12.4912L15.2676 8.32454" stroke="%230B0B0B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 4px;
    margin-bottom: 2px;
    vertical-align: bottom;
    transition: all 0.5s ease;
}

.menu-item:has(.sub-menu):hover::after {
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.51758 8.32454L10.8926 12.4912L15.2676 8.32454" stroke="%232F27CE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
}

.header__phone-numbers {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 28px;
    transition: all 0.3s ease;
}

.header__phone-numbers-wrapper {
    display: flex;
    flex-direction: column;
}

.header__phone-number {
    font-size: 14px;
    color: #151515;
	text-align-last: justify;
}


.header__left-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__mobile-phones-btn {
    display: none;
    font-size: 12px;
    line-height: 133%;
    text-align: center;
    color: #753c10;
    transition: all 0.5s ease;
}

.header__phone-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.header__phone-icon.phone-icon-mobile {
    display: none;
    transition: all 0.5s ease;
}

.header__phone-icon-close {
    display: none;
    width: 14px;
    height: 14px;
    transition: all 0.5s ease;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
}

@media screen and (max-width: 1343.98px) {
    .header__phone-numbers {
        margin-right: 0;
    }
    .header__navigation ul {
        gap: 30px;
    }
}


@media screen and (max-width: 1199.98px) {
    .header__navigation ul {
        gap: 15px;
    }

    .header__content-wrapper {
        gap: 10px;
    }

    .header__navigation-wrapper {
      gap: 15px;
    }
}

@media screen and (max-width: 1023.98px) {
    .header .header__container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    body .header.opened{
        top: 0;
    }


    .overflow{
        overflow: hidden;
    }

    .header__mobile-wrapper.opened {
        transform: translateX(0%);
        width: 100%;
    }

    #wpadminbar {
        display: none;
    }

    .header__mobile-wrapper {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: fit-content;
        background: #FFF;
        padding: 0px 20px 0px 20px;
    }
    .header__navigation ul li a {
        font-size: 14px;
    }

    .header__menu-button {
        display: flex;
        flex-direction: column;
        gap: 4px;
        border: 0;
        background: none;
        /*width: 18px;*/
        /*height: 14px;*/
        position: relative;
        z-index: 100;
        justify-content: center;
        padding: 12px 15px;
    }

    .header__desktop-navigation {
        display: none;
    }


    .header__logo-img.mobile-logo {
        display: block;
    }


    .header__menu-button span {
        width: 100%;
        align-self: flex-end;
        transition: all 0.3s ease;
    }

    .header__menu-button span, .header__menu-button:before, .header__menu-button:after {
        content: '';
        min-height: 2px;
        width: 18px;
        background-color: #000000;
        position: relative;
        display: block;
        border-radius: 10px;
    }

    .header__menu-button:before, .header__menu-button:after {
        width: 100%;
        align-self: flex-end;
        transition: all 0.5s ease;
    }

    .opened .header__menu-button span {
        background-color: transparent;
    }

    .opened .header__menu-button:before {
        transform: rotate(45deg) translate(3px, 5px);
    }

    .opened .header__menu-button:after {
        transform: rotate(-45deg) translate(3px, -5.5px);
    }

    .header__mobile-body-wrapper {
        margin-top: 122px;
        margin-bottom: 56px;
    }

    .header__mobile-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .header__login.login-mobile {
        display: block;
        width: 100%;
        padding: 16px 9px;
    }

    .header__search-form {
        min-width: 200px;
        left: -116px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header__search-form.search-show {
        padding-right: 10px;
        padding-left: 10px;
    }

    .header__cart,
    .header__search {
        max-height: 22px;
    }



    .header__mobile-navigation ul.sub-menu {
        position: relative;
        display: block;
        padding-top: 0;
        max-height: 0;
        overflow-y: hidden;
        transition: all 0.5s ease;
    }


    .header__logo-link {
        height: 40px;
    }

    .header.opened .header__overlay {
        background: rgb(0 0 0 / 50%);
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }


}

@media screen and (max-width: 599.98px) {
    
    .header.opened-phones .header__overlay{
        background: rgb(0 0 0 / 50%);
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .header__mobile-body-wrapper {
        margin-top: 91px;
    }

    body .header.opened-phones {
        top: 0;
    }

    .header__mobile-wrapper.opened-phones {
        transform: translateX(0%);
        width: 100%;
    }

    .header__phone-icon-close {
        display: block;
        opacity: 0;
    }

    .opened-phones .header__phone-icon-close {
        opacity: 1;
    }

    .opened-phones .header__phone-icon.phone-icon-mobile {
        opacity: 0;
        width: 0;
    }

    .opened-phones .header__mobile-phones-btn {
        font-size: 0;
    }

    .header__phone-numbers.opened-phones {
        /*min-width: fit-content;*/
    }


    .header .header__container{
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header__logo-link {
        width: 76px;
        height: 30px;
    }

    .opened .header__menu-button:before {
        transform: rotate(45deg) translate(3px, 5px);
    }

    .header__phone-numbers {
        border: 1px solid #ece9d4;
        padding: 10px 12px;
        background: #fefbe7;
        max-width: 133px;
        align-items: center;
        cursor: pointer;
        position: relative;
        z-index: 1000;
        font-size: 12px;
        line-height: 133%;
        text-align: center;
        color: #753c10;
    }

    .header__phone-numbers-wrapper.phone-numbers-wrapper-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .phone-numbers-wrapper-mobile__text {
        font-size: 12px;
        line-height: 131%;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        text-decoration: underline;
        text-decoration-skip-ink: none;
        color: #151515;
        margin-top: 23px;
    }


    .phone-numbers-wrapper-mobile .header__phone-number {
        font-size: 20px;
        color: #151515;
    }

    .header__phone-numbers-wrapper,
    .header__phone-icon {
        display: none;
    }

    .header__mobile-phones-btn,
    .header__phone-icon.phone-icon-mobile {
        display: block;
    }
}

@media screen and (max-width: 374.98px) {
    .header__search-form .search-field {
        font-size: 20px;
    }
}
