/* Mobile header: menu | [logo centered in gap] | wishlist | cart | compare */

@media (max-width: 991.98px) {
    .header-bottom .header-wrap {
        flex-wrap: wrap;
        min-height: 58px;
    }

    .header-bottom {
        padding: 4px 0 !important;
    }

    .header-bottom .header-wrap > .header-nav,
    .header-bottom .header-wrap > .hotline {
        width: 100%;
    }

    .nest-mobile-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 4px;
        width: 100%;
        min-height: 58px;
        padding: 2px 0;
    }

    .nest-mobile-header:has(.nest-mobile-header__cart) {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .nest-mobile-header:has(.nest-mobile-header__cart):has(.nest-mobile-header__compare) {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    }

    .nest-mobile-header:not(:has(.nest-mobile-header__wishlist)):has(.nest-mobile-header__cart) {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .nest-mobile-header__menu {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        grid-column: 1;
        z-index: 2;
        min-width: 44px;
    }

    .nest-mobile-header__menu .burger-icon {
        margin: 0;
    }

    .nest-mobile-header__logo-slot {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 0 2px;
        z-index: 1;
    }

    .nest-mobile-header__logo {
        position: static !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        text-align: center;
        max-width: 100%;
        line-height: 0;
    }

    .nest-mobile-header__logo a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        max-width: 100%;
    }

    .nest-mobile-header__logo a img,
    .nest-mobile-header__logo-img {
        height: 68px !important;
        max-height: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        object-fit: contain;
        display: block;
        vertical-align: middle;
    }

    .nest-mobile-header__wishlist {
        grid-column: 3;
    }

    .nest-mobile-header__cart {
        grid-column: 4;
    }

    .nest-mobile-header__compare {
        grid-column: 5;
    }

    .nest-mobile-header:not(:has(.nest-mobile-header__wishlist)) .nest-mobile-header__cart {
        grid-column: 3;
    }

    .nest-mobile-header:not(:has(.nest-mobile-header__wishlist)) .nest-mobile-header__compare {
        grid-column: 4;
    }

    .nest-mobile-header__icon {
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0;
        justify-self: end;
    }

    .nest-mobile-header__icon > a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        line-height: 1;
    }

    .nest-mobile-header__icon > a img {
        max-width: 22px;
        max-height: 22px;
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .nest-mobile-header__icon > a .pro-count {
        position: absolute;
        right: -5px;
        top: -4px;
        bottom: auto !important;
        left: auto !important;
        min-width: 18px;
        height: 18px;
        width: 18px;
        line-height: 18px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 50%;
        background-color: var(--color-brand, #3bb77e) !important;
        color: #fff !important;
        text-align: center;
        padding: 0;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .nest-mobile-header__icon > a .pro-count.d-none {
        display: none !important;
    }

    .logo.logo-width-1:not(.nest-mobile-header__logo) {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .nest-mobile-header {
        min-height: 54px;
        column-gap: 2px;
    }

    .nest-mobile-header__icon > a {
        width: 36px;
        height: 36px;
    }

    .nest-mobile-header__logo a img,
    .nest-mobile-header__logo-img {
        height: 60px !important;
    }
}
