/* Компактная ссылка на корзину: без счётчика и зависимости от сессии. */
.header-top .header-cart {
    flex: 0 0 48px;
}

.header-cart__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    color: var(--header-text-color, #fff);
    text-decoration: none;
    border-radius: 8px;
}

.header-cart__link:hover {
    color: #f27e00;
}

.header-cart__link:focus-visible {
    outline: 2px solid #f27e00;
    outline-offset: 2px;
}

.header-cart__link svg {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-top .container {
        gap: 4px;
    }

    /* Логотип уступает место новой ссылке, контакты и бургер не сжимаются. */
    .header-top .header-logo {
        flex: 0 1 120px;
        min-width: 0;
    }

    .header-top .header-logo img {
        max-width: 100%;
        height: auto;
    }

    .header-top .header-phones,
    .header-top .header-messenger,
    .header-top .menu-toggle {
        flex-shrink: 0;
    }

    .header-top .phone-numbers {
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .header-top .container {
        padding-left: 10px;
        padding-right: 10px;
        gap: 2px;
    }

    .header-top .header-phones a {
        font-size: 13px;
    }

    .header-top .header-messenger svg {
        max-width: 32px;
    }
}
