/* Footer responsive layout */

.footer {
    height: auto !important;
    min-height: 0;
    padding-bottom: 24px;
}

.footer__wrapper {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(110px, 1fr)) minmax(190px, 1.15fr);
    gap: 28px 20px;
    margin-top: 48px;
    align-items: start;
    width: 100%;
}

.footer__box {
    min-width: 0;
}

.footer__wrapper > .footer__box:first-child .footer__inner {
    margin-bottom: 24px;
}

.footer__heddin .footer__catalog.right,
.footer__heddin .footer__time,
.footer__heddin .footer__phone,
.footer__heddin .footer__info {
    text-align: right;
}

.footer__heddin .footer__phone {
    justify-content: flex-end;
}

.footer__heddin .basket-info__img {
    display: flex;
    justify-content: flex-end;
}

.footer__heddin .basket-info__img img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.footer ul li a {
    line-height: 2;
    font-size: 0.92rem;
}

.footer__border {
    margin-top: 40px;
    margin-bottom: 28px;
}

/* Keep contacts visible on desktop/tablet */
@media (min-width: 993px) {
    .footer__heddin {
        display: block !important;
    }
}

@media (max-width: 1200px) {
    .footer__wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 20px;
    }

    .footer__wrapper > .footer__box:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(140px, 220px) 1fr;
        gap: 20px 28px;
        align-items: start;
    }

    .footer__wrapper > .footer__box:first-child .footer__inner {
        margin-top: 0;
        margin-bottom: 0;
    }

    .footer__wrapper > .footer__box.footer__heddin {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
        align-items: start;
    }

    .footer__heddin .footer__catalog.right,
    .footer__heddin .footer__time,
    .footer__heddin .footer__phone,
    .footer__heddin .footer__info {
        text-align: left;
    }

    .footer__heddin .footer__phone {
        justify-content: flex-start;
    }

    .footer__heddin .basket-info__img {
        justify-content: flex-start;
    }
}

@media (max-width: 992px) {
    .footer__wrapper {
        display: none !important;
    }

    .footer__mobile {
        display: block !important;
        width: 100%;
        margin-top: 32px;
    }

    .footer__border {
        margin-top: 24px;
        margin-bottom: 20px;
    }
}

/* Mobile accordion footer */
.footer__nav {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.footer__mobile-collapsible {
    list-style: none;
}

.footer__mobile-box {
    padding: 14px 0;
}

.footer__mobile-catalog {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
}

.footer__mobile-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 4px 0 12px 8px;
}

.footer__mobile-menu li a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 2.1;
}

.footer__mobile-inner {
    margin-top: 28px;
    text-align: center;
}

.footer__mobile-inner a {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
}

.footer__mobile-inner p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer__mobile-contacts {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer__mobile-contacts .footer__catalog {
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.footer__mobile-contacts .footer__info {
    text-align: center;
    font-size: 0.9rem;
    margin: 8px 0 16px;
}

.footer__mobile-contacts .footer__social {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer__mobile-payments {
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.footer__mobile-payments img {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.footer__mobile .footer__box {
    text-align: center;
    margin-bottom: 0;
}

.footer__mobile .footer__box img {
    max-width: 180px;
    height: auto;
}

.footer__mobile .footer__brend p {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 576px) {
    .footer {
        margin-top: 24px;
        padding-bottom: 16px;
    }

    .footer .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer__mobile {
        margin-top: 24px;
    }

    .footer__mobile-inner a {
        font-size: 1.2rem;
    }

    .footer__mobile-catalog {
        font-size: 1rem;
    }
}

/* Bottom bar: full-width links, phone tabs */
body:has(.navigations) {
    padding-bottom: 64px;
}

body:has(.vz-cookie-banner):has(.navigations) {
    padding-bottom: 160px;
}

.navigations {
    height: 64px;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -8px 24px rgba(20, 24, 28, 0.05);
    z-index: 99990;
    overflow: hidden;
}

.navigations__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 1810px) {
    .navigations__wrapper {
        max-width: 1700px;
    }
}

@media (max-width: 1740px) {
    .navigations__wrapper {
        max-width: 1480px;
    }
}

@media (max-width: 1540px) {
    .navigations__wrapper {
        max-width: 1360px;
    }
}

@media (max-width: 1420px) {
    .navigations__wrapper {
        max-width: 1200px;
    }
}

@media (max-width: 1240px) {
    .navigations__wrapper {
        max-width: 1100px;
    }
}

@media (max-width: 1140px) {
    .navigations__wrapper {
        max-width: 992px;
    }
}

.navigations__menu {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    height: 64px;
}

.navigations .navigations__menu nav,
.navigations .navigations__menu nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    height: 64px;
    margin: 0;
    padding: 0;
    gap: 12px;
    list-style: none;
}

.navigations .navigations__menu nav ul li {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
}

.navigations .navigations__menu nav ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 64px;
    margin: 0;
    padding: 0 2px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.navigations .vz-nav-ico {
    display: flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #1a1a1a;
}

.navigations .vz-nav-ico svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.navigations .navigations__menu nav ul li a:hover {
    color: #111;
    background: none;
}

.navigations .navigations__menu nav ul li a:hover .vz-nav-ico {
    color: #111;
}

.navigations .navigations__menu nav ul li.is-active a {
    color: #111;
    background: none;
    border-bottom-color: #ffe14a;
}

.navigations .navigations__menu nav ul li.is-active .vz-nav-ico {
    color: #111;
}

@media (max-width: 1200px) {
    .navigations .navigations__menu nav ul {
        gap: 12px;
    }

    .navigations .navigations__menu nav ul li a {
        gap: 6px;
        font-size: 15px;
    }

    .navigations .vz-nav-ico,
    .navigations .vz-nav-ico svg {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 993px) {
    .menu-mobile {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .navigations {
        height: auto;
        overflow: visible;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .navigations__wrapper {
        height: auto;
        max-width: none;
        min-height: 62px;
        padding: 0;
    }

    .navigations__menu {
        display: none !important;
    }

    .menu-mobile {
        display: block !important;
        width: 100%;
    }

    .menu-mobile__wrapper {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        width: 100%;
        min-height: 62px;
    }

    .menu-mobile__box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 56px;
        padding: 6px 2px 8px;
        color: #2a2a2a;
        text-decoration: none;
    }

    .menu-mobile__home,
    .menu-mobile__catalog,
    .menu-mobile__favery,
    .menu-mobile__basket {
        margin: 0;
    }

    .menu-mobile__item {
        display: block;
        margin: 0;
        max-width: 100%;
        overflow: hidden;
        color: #2a2a2a;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .menu-mobile__favorites,
    .menu-mobile__number {
        top: -6px;
        right: -10px;
    }

    body:has(.navigations) {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    body:has(.vz-cookie-banner):has(.navigations) {
        padding-bottom: calc(164px + env(safe-area-inset-bottom));
    }
}

/* Chat sits above the bar so it does not cover the last links */
#jvLabelWrap,
#jcont {
    bottom: 72px !important;
}

@media (max-width: 992px) {
    #jvLabelWrap,
    #jcont {
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    }
}
