
.mobile-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: 320px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
    height: 100vh;
    overflow: hidden;
    overflow-y: auto;
    background: #fff;
    z-index: 100;
    padding: 50px 0 20px;
    transform: translateX(-105%);
    transition: all 0.3s;
}

.mobile-menu.visible {
    transform: translateX(0);
}

.mobile-menu__holder {
    transition: all 0.3s;
}

.mobile-menu__catalog ul li, .mobile-menu__top ul li, .mobile-menu__main ul li {
    border-top: 1px solid var(--bg-gray-darken);
}

.mobile-menu__catalog ul li a, .mobile-menu__top ul li a, .mobile-menu__main ul li a {
    display: block;
    padding: 15px 30px 15px 15px;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu__catalog ul li.menu-back a, .mobile-menu__top ul li.menu-back a, .mobile-menu__main ul li.menu-back a {
    padding-left: 30px;
    position: relative;
}

.mobile-menu__catalog ul li.menu-back a::before, .mobile-menu__top ul li.menu-back a::before, .mobile-menu__main ul li.menu-back a::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
    display: block;
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
}

.mobile-menu__catalog ul li.menu-title > a, .mobile-menu__top ul li.menu-title > a, .mobile-menu__main ul li.menu-title > a {
    font-weight: 700;
    background: var(--bg-gray);
}

.mobile-menu__closer {
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
}

.mobile-menu__closer::before, .mobile-menu__closer::after {
    display: block;
    content: "";
    height: 30px;
    width: 2px;
    background: var(--accent);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__closer::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu li.holder > a {
    position: relative;
}

.mobile-menu li.holder > a::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    display: block;
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
}

.mobile-menu li.holder > ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    opacity: 1;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    min-width: unset;
    width: 100%;
}

.mobile-menu li.holder.opened > ul {
    display: block;
}

.mobile-menu a:hover {
    text-decoration: none;
    color: var(--accent);
}

.mobile-menu-opener {
    display: none;
    flex: 0 0 30px;
    height: 26px;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    cursor: pointer;
    position: relative;
    text-indent: -9999px;
    margin-left: 20px;
}

.mobile-menu-opener::before, .mobile-menu-opener::after {
    display: block;
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
}

.header-top__wrapper {
    background: var(--bg-gray);
}

.header-top svg {
    fill: var(--icons-gray-color);
}

.header__city {
    position: relative;
    flex: 0 0 240px;
}

.header__current-city {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}

.header__current-city svg {
    fill: var(--text-main);
}

.header__city-popup {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    min-width: 303px;
    max-height: 496px;
    z-index: -10;
    opacity: 0;
    transition: opacity 0.3s;
}

.header__city-popup.visible {
    z-index: 10;
    opacity: 1;
}

.header__city-popup-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.header__city-popup input {
    flex-shrink: 0;
}

.header__city-list {
    margin-top: 10px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 13px;
}

.header__city-list li {
    cursor: pointer;
    padding: 9px 15px;
    border-radius: 4px;
}

.header__city-list li:hover {
    background: var(--bg-gray);
}

.header__menu-top {
    flex-grow: 1;
    padding: 0 30px 0 0;
}

.header__menu-top > ul {
    display: flex;
    align-items: center;
    column-gap: 40px;
}

.header__menu-top > ul > li {
    padding-top: 10px;
    padding-bottom: 10px;
}

.header__menu-top a:hover {
    text-decoration: none;
    color: var(--accent);
}

.header__contacts {
    display: flex;
    align-items: center;
    column-gap: 32px;
}

.header__button {
    flex-shrink: 0;
    margin-left: 30px;
}

.header-middle {
    display: flex;
    align-items: center;
}

.header-middle__wrapper {
    padding: 15px 0;
}

.header__logo {
    flex: 0 0 240px;
    padding-right: 20px;
}

.header__logo img {
    display: block;
    margin: 0;
}

.header__main-nav {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    border-radius: var(--border-radius-middle);
    height: 56px;
    padding: 0 60px;
}

.header__catalog {
    flex: 0 0 140px;
    margin-right: 15px;
}

.header__catalog .btn {
    width: 100%;
}

.header__search {
    flex-grow: 1;
    background: #fff;
}

.header__search-wrapper {
    position: relative;
    flex: 0 0 35px;
    margin-right: 25px;
    margin-left: auto;
}

.header__search-wrapper .header__search {
    position: absolute;
    right: 0;
    top: -9999px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.header__search-wrapper .header__search.visible {
    top: 50%;
    z-index: 10;
    opacity: 1;
}

.header__search-opener {
    cursor: pointer;
    display: flex;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    background: var(--bg-gray);
    border-radius: var(--border-radius-little);
}

.header__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 40px;
    margin-left: 25px;
}

.header__cart-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 30px;
}

.header-bottom__wrapper {
    padding: 10px 0 21px;
}

.header__menu-main {
    flex-grow: 1;
}

.header__menu-main a:hover {
    color: var(--accent);
    text-decoration: none;
}

.header__menu-main > ul {
    display: flex;
    align-items: center;
    column-gap: 50px;
}

li.parent {
    position: relative;
    padding-right: 16px;
}

li.parent::after {
    display: block;
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -1px;
    transform: translateY(-50%) rotate(45deg);
    cursor: pointer;
}

li.parent.opened::after {
    transform: translateY(-50%) rotate(225deg);
}

li.parent ul {
    position: absolute;
    z-index: 10;
    left: 0;
    top: -9999px;
    opacity: 0;
    padding: 5px 0;
    margin-top: 20px;
    transition: opacity 0.3s, margin 0.3s;
    background: #fff;
    border-radius: var(--border-radius);
    min-width: 220px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    overflow: hidden;
}

li.parent ul li {
    white-space: nowrap;
}

li.parent ul li a {
    display: block;
    padding: 10px 20px;
}

li.parent ul li a:hover {
    background: var(--bg-gray);
}

li.parent:hover ul {
    top: 100%;
    opacity: 1;
    margin-top: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-link > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    font-size: 15px;
}

.cart-link > span.filled {
    background: var(--accent);
    color: #fff;
}

.header--two .header__logo {
    flex: 0 0 215px;
}

.header--two .header-middle__wrapper {
    padding-bottom: 10px;
}

.header__main-nav .catalog-popup-opener {
    padding: 0;
}

.header__main-nav .catalog-popup-opener:hover {
    background: transparent;
    color: var(--accent);
}

.header__main-nav .header__menu-main {
    flex-grow: 1;
    font-weight: 500;
}

.header__main-nav .header__menu-main > ul {
    justify-content: space-around;
}

.header--three .header-middle {
    justify-content: center;
}

.header--three .header__button {
    margin-right: auto;
}

.header--three .header__city {
    flex: 0 0 auto;
    margin-right: 40px;
}

.header--three .header__contacts {
    margin-right: 40px;
}

.header--three .header__button {
    margin-left: 0;
}

.header--three .header__logo {
    flex: 0 0 auto;
    padding: 0 20px;
}

.header--four .header__logo {
    flex: 0 0 215px;
}

.header--four .header__contacts {
    margin-left: 20px;
    gap: 20px;
}

.header--four .header__button {
    margin-left: 20px;
}

.header--four .header__links {
    margin-left: 70px;
}

.header--four .header-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header--four .header__catalog {
    flex: 0 0 106px;
    margin-right: 65px;
}

.header--four .header__main-nav {
    padding: 8px;
}

.header--four .header__main-nav .catalog-popup-opener {
    padding: 9px 15px;
    line-height: 22px;
}

.header--four .header__main-nav .catalog-popup-opener:hover {
    background: var(--accent-hover);
    color: #fff;
}

.header--four .header__main-nav .header__menu-main > ul {
    justify-content: flex-start;
    column-gap: 65px;
}

.catalog-popup-opener {
    display: inline-flex;
    align-items: center;
    column-gap: 7px;
    font-size: 16px;
}

.catalog-popup {
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.09);
    border-radius: var(--border-radius);
    position: absolute;
    z-index: -10;
    opacity: 0;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(var(--container-width) - 30px);
    width: 100vw;
    padding: 30px;
    transition: margin 0.2s linear 0s, opacity 0.2s ease-in-out;
    margin-top: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.catalog-popup.visible {
    opacity: 1;
    margin-top: 0;
}

.catalog-popup.z100 {
    z-index: 100;
}

.catalog-popup__categories {
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
    column-gap: 100px;
}

.catalog-popup__category {
    flex: 1 0 calc((100% - 200px) / 3);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.catalog-popup__category-img {
    flex: 0 0 120px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.catalog-popup__category-img img {
    max-height: 100%;
}

.catalog-popup__category-info {
    flex-grow: 1;
}

.catalog-popup__category-title {
    font-size: 18px;
    line-height: 1.23;
    font-weight: 600;
    margin-bottom: 10px;
}

.catalog-popup__category-list li {
    margin-bottom: 10px;
}

.catalog-popup__category-list li.hidden {
    display: none;
}

.catalog-popup__category-more {
    font-weight: 500;
    cursor: pointer;
    padding-right: 15px;
    position: relative;
}

.catalog-popup__category-more::after {
    display: block;
    content: "";
    border-top: 5px solid var(--text-main);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid transparent;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-2px);
}

.catalog-popup__category-more.opened::after {
    transform: translateY(-5px) rotate(180deg);
}

.contacts-item {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.header-link {
    text-align: center;
    font-size: 13px;
    line-height: 18px;
}

.header-link__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
}