/* =========================================================
   NEMAN HEADER V3 + SEARCH
   BRW-parity architecture:
   - normal desktop >=1001: dedicated desktop top + nav
   - desktop <=1000: dedicated compact mobile-like top
   - real mobile_neman: separate structural 64px bar
   No legacy logo geometry is reused.
   ========================================================= */

/* ---------- normal desktop shell ---------- */
.body_header.neman-header-v3-shell {
    position: relative !important;
    width: 100% !important;
    height: 126px !important;
    min-height: 126px !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .22) !important;
    z-index: 1048 !important;
}

.body_header.neman-header-v3-shell > .body_menu {
    display: none !important;
}

.neman-header-v3-container {
    position: relative !important;
    width: 100% !important;
    max-width: 1440px !important;
    height: 126px !important;
    min-height: 126px !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

@media (min-width: 1001px) {
    .body_header.neman-header-v3-shell > .container.neman-header-v3-container {
        width: calc(100% - 40px) !important;
        max-width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.neman-header-v3 {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 126px !important;
    min-height: 126px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
}

.neman-header-v3__desktop-top {
    position: relative;
    display: grid !important;
    width: 100% !important;
    height: 82px !important;
    min-height: 82px !important;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 620px) minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    overflow: visible !important;
    box-sizing: border-box;
}

.neman-header-v3__brand {
    position: static !important;
    display: flex !important;
    float: none !important;
    width: 190px !important;
    max-width: 100% !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    background: transparent !important;
    text-decoration: none !important;
}

.neman-header-v3__brand-img {
    position: static !important;
    display: block !important;
    width: 190px !important;
    height: 64px !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.neman-header-v3__search {
    position: relative;
    width: 100%;
    min-width: 0;
    justify-self: center;
    z-index: 100050;
}

.neman-header-v3__right {
    position: relative;
    display: flex !important;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 12px;
}

.neman-header-v3__phones {
    display: grid !important;
    width: 180px !important;
    min-width: 180px !important;
    grid-template-columns: 35px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    align-items: center !important;
}

.neman-header-v3__phone-icon {
    display: inline-flex !important;
    width: 35px !important;
    height: 35px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid var(--primaryColor, #2787d8) !important;
    border-radius: 50% !important;
    color: var(--primaryColor, #2787d8) !important;
    box-sizing: border-box !important;
}

.neman-header-v3__phone-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.neman-header-v3__phone-copy,
.neman-header-v3__phone-copy .phone,
.neman-header-v3__phone-copy .phone p {
    width: 136px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.neman-header-v3__phone-copy .phone,
.neman-header-v3__phone-copy .phone p {
    position: static !important;
    float: none !important;
    background: none !important;
    background-image: none !important;
}

.neman-header-v3__phone-copy .phone::before,
.neman-header-v3__phone-copy .phone::after,
.neman-header-v3__phone-copy .phone p::before,
.neman-header-v3__phone-copy .phone p::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.neman-header-v3__phone-copy .phone p {
    color: #38434b !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.neman-header-v3__phone-copy .phone p span {
    color: #7a8790 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

.neman-header-v3__basket {
    display: flex !important;
    min-width: 142px !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.neman-header-v3__basket .basket {
    position: static !important;
    display: flex !important;
    float: none !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.neman-header-v3__basket .basket__icon {
    margin-right: 9px !important;
}

.neman-header-v3__basket .basket__icon svg {
    width: 29px !important;
    fill: var(--primaryColor, #2787d8) !important;
}

.neman-header-v3__basket .basket__info p {
    margin: 0 !important;
    color: #4c5962 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.neman-header-v3__basket .basket__info p span {
    color: #7a8790 !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

.neman-header-v3__compact-top {
    display: none !important;
}

/* ---------- desktop navigation ---------- */
.neman-header-v3 > .topmenu {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: var(--primaryColor, #2787d8) !important;
    overflow: visible !important;
}

.neman-header-v3 > .topmenu ul.menu {
    display: grid !important;
    float: none !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    list-style: none !important;
    background: none !important;
}

.neman-header-v3 > .topmenu ul.menu > li {
    position: relative !important;
    display: flex !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    border-right: 1px solid rgba(255, 255, 255, .16) !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.neman-header-v3 > .topmenu ul.menu > li:first-child {
    border-left: 1px solid rgba(255, 255, 255, .16) !important;
}

.neman-header-v3 > .topmenu ul.menu > li.search {
    display: none !important;
}

.neman-header-v3 > .topmenu ul.menu > li > a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.neman-header-v3 > .topmenu ul.menu > li:hover,
.neman-header-v3 > .topmenu ul.menu > li.active {
    background: rgba(0, 0, 0, .13) !important;
}

.neman-header-v3 > .topmenu ul.menu > li.active::after {
    display: none !important;
}

/* ---------- search form shared by desktop/mobile ---------- */
.neman-search-head-v2,
.neman-search-head-v2__panel {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}

.neman-search-head-v2__panel[hidden],
.neman-search-head-v2__popup[hidden] {
    display: none !important;
}

.neman-search-head-v2__form {
    position: relative;
    display: flex;
    width: 100%;
    height: 46px;
    min-width: 0;
    align-items: stretch;
    border: 1px solid #cad6df;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 5px rgba(20, 58, 86, .08);
    overflow: hidden;
    box-sizing: border-box;
}

.neman-search-head-v2__icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: #52636f;
}

.neman-search-head-v2__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.neman-search-head-v2__input {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 10px 0 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #25343d !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px !important;
    line-height: 44px !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.neman-search-head-v2__input::placeholder {
    color: #8a969e;
    opacity: 1;
}

.neman-search-head-v2__submit {
    display: inline-flex;
    flex: 0 0 94px;
    min-width: 94px;
    margin: -1px -1px -1px 0 !important;
    padding: 0 15px !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 5px 5px 0;
    background: var(--primaryColor, #2787d8) !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: none !important;
    cursor: pointer;
    box-shadow: none !important;
}

.neman-search-head-v2__submit:hover {
    filter: brightness(.93);
}

.neman-search-head-v2__popup {
    position: absolute;
    z-index: 100060;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 560px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d6e0e7;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20, 53, 76, .18);
    box-sizing: border-box;
}

.neman-search-head-v2__popup,
.neman-search-head-v2__popup * {
    box-sizing: border-box;
}

.neman-search-popup-v1__title,
.neman-search-popup-v1__item,
.neman-search-popup-v1__all,
.neman-search-popup-v1__empty {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.neman-search-popup-v1__title {
    display: block !important;
    min-height: 0 !important;
    padding: 8px 11px !important;
    border-bottom: 1px solid #e4ebf0;
    background: #f5f8fa;
    color: #73818b !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    letter-spacing: .03em;
}

.neman-search-popup-v1__item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) auto !important;
    min-width: 0 !important;
    min-height: 76px !important;
    padding: 7px 10px !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
    border-bottom: 1px solid #edf1f4;
    background: #fff !important;
    color: #24313a !important;
    text-align: left !important;
    text-decoration: none !important;
}

.neman-search-popup-v1__item:hover {
    background: #f7fafc !important;
}

.neman-search-popup-v1__image {
    display: flex !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 60px !important;
    padding: 2px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
}

.neman-search-popup-v1__image img {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}

.neman-search-popup-v1__copy,
.neman-search-popup-v1__name,
.neman-search-popup-v1__meta {
    display: block !important;
    float: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: left !important;
}

.neman-search-popup-v1__name {
    color: #24313a !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

.neman-search-popup-v1__meta {
    margin-top: 3px !important;
    color: #71808b !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.neman-search-popup-v1__price {
    display: inline-flex !important;
    float: none !important;
    width: auto !important;
    min-width: 92px !important;
    min-height: 31px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    background: #2e668b !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.neman-search-popup-v1__price strong {
    margin-right: 3px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.neman-search-popup-v1__all,
.neman-search-popup-v1__empty {
    display: block !important;
    min-height: 0 !important;
    padding: 11px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.neman-search-popup-v1__all {
    color: #1769ad !important;
    font-weight: 700 !important;
}

.neman-search-popup-v1__empty {
    color: #71808b !important;
}

/* ---------- V3 normal-desktop breakpoints ---------- */
@media (max-width: 1450px) and (min-width: 1301px) {
    .neman-header-v3__desktop-top {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 560px) minmax(0, 1fr) !important;
        column-gap: 14px !important;
    }
    .neman-header-v3__brand,
    .neman-header-v3__brand-img {
        width: 176px !important;
    }
    .neman-header-v3__phones {
        width: 165px !important;
        min-width: 165px !important;
        grid-template-columns: 33px minmax(0, 1fr) !important;
        column-gap: 6px !important;
    }
    .neman-header-v3__phone-icon {
        width: 33px !important;
        height: 33px !important;
    }
    .neman-header-v3__phone-copy,
    .neman-header-v3__phone-copy .phone,
    .neman-header-v3__phone-copy .phone p {
        width: 126px !important;
    }
    .neman-header-v3__phone-copy .phone p {
        font-size: 14px !important;
    }
    .neman-header-v3__basket {
        min-width: 132px !important;
    }
}

@media (max-width: 1300px) and (min-width: 1151px) {
    .neman-header-v3__desktop-top {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 500px) minmax(0, 1fr) !important;
        column-gap: 12px !important;
    }
    .neman-header-v3__brand,
    .neman-header-v3__brand-img {
        width: 160px !important;
    }
    .neman-header-v3__right {
        gap: 7px !important;
    }
    .neman-header-v3__phones {
        width: 154px !important;
        min-width: 154px !important;
        grid-template-columns: 31px minmax(0, 1fr) !important;
        column-gap: 5px !important;
    }
    .neman-header-v3__phone-icon {
        width: 31px !important;
        height: 31px !important;
    }
    .neman-header-v3__phone-copy,
    .neman-header-v3__phone-copy .phone,
    .neman-header-v3__phone-copy .phone p {
        width: 118px !important;
    }
    .neman-header-v3__phone-copy .phone p {
        font-size: 13px !important;
    }
    .neman-header-v3__phone-copy .phone p span {
        font-size: 10px !important;
    }
    .neman-header-v3__basket {
        min-width: 120px !important;
    }
    .neman-header-v3 > .topmenu ul.menu > li > a {
        padding: 0 5px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 1150px) and (min-width: 1001px) {
    .neman-header-v3__desktop-top {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 480px) minmax(0, 1fr) !important;
        column-gap: 10px !important;
    }
    .neman-header-v3__brand,
    .neman-header-v3__brand-img {
        width: 150px !important;
    }
    .neman-header-v3__phones {
        display: none !important;
    }
    .neman-header-v3__basket {
        min-width: 120px !important;
    }
    .neman-header-v3 > .topmenu ul.menu > li > a {
        padding: 0 4px !important;
        font-size: 11px !important;
    }
}

/* ---------- shared mobile/compact search action ---------- */
.neman-mobile-search-v2 {
    position: relative !important;
    display: flex !important;
    float: none !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    z-index: 100020 !important;
}

.neman-mobile-search-v2__toggle {
    position: static !important;
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.neman-mobile-search-v2__toggle svg {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.neman-search-head-v2__panel--mobile {
    position: fixed !important;
    z-index: 100050 !important;
    top: 64px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding: 8px !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.neman-search-head-v2__panel--mobile .neman-search-head-v2__popup {
    max-height: 55vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.neman-search-head-v2__panel--mobile .neman-search-popup-v1__item {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    min-height: 82px !important;
    padding: 8px !important;
    column-gap: 9px !important;
    row-gap: 5px !important;
    align-items: center !important;
}

.neman-search-head-v2__panel--mobile .neman-search-popup-v1__image {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 64px !important;
    align-self: center !important;
}

.neman-search-head-v2__panel--mobile .neman-search-popup-v1__copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
}

.neman-search-head-v2__panel--mobile .neman-search-popup-v1__price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    align-self: start !important;
    min-width: 94px !important;
}

.neman-search-head-v2__panel--mobile .neman-search-popup-v1__name {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.neman-search-head-v2__panel--mobile .neman-search-popup-v1__meta {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* ---------- desktop host <=1000: dedicated compact header ---------- */
@media (max-width: 1000px) {
    .body_header.neman-header-v3-shell {
        position: fixed !important;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        background: var(--primaryColor, #2787d8) !important;
        overflow: visible !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .26) !important;
        z-index: 1048 !important;
    }

    .body_header.neman-header-v3-shell > .container.neman-header-v3-container {
        width: 100% !important;
        max-width: none !important;
        height: 64px !important;
        min-height: 64px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        overflow: visible !important;
    }

    .neman-header-v3 {
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        background: var(--primaryColor, #2787d8) !important;
        overflow: visible !important;
    }

    .neman-header-v3__desktop-top {
        display: none !important;
    }

    .neman-header-v3__compact-top {
        position: relative !important;
        display: flex !important;
        width: 100% !important;
        height: 64px !important;
        min-height: 64px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: transparent !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .neman-header-v3__compact-brand {
        position: static !important;
        display: flex !important;
        float: none !important;
        width: 150px !important;
        max-width: 150px !important;
        height: 64px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 150px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .neman-header-v3__compact-brand-img {
        position: static !important;
        display: block !important;
        width: 142px !important;
        height: 46px !important;
        max-width: 100% !important;
        max-height: 46px !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    .neman-header-v3__compact-actions {
        position: static !important;
        display: flex !important;
        width: auto !important;
        height: 64px !important;
        min-width: 0 !important;
        margin: 0 0 0 auto !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 0 0 auto !important;
    }

    .neman-header-v3__compact-action {
        position: static !important;
        display: flex !important;
        float: none !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 64px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 44px !important;
        border: 0 !important;
        background: transparent !important;
        color: #fff !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    .neman-header-v3__compact-action svg {
        display: block !important;
        width: 25px !important;
        height: 25px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 2.1 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    .neman-header-v3 > .topmenu {
        display: none !important;
    }

    .neman-header-v3 > .mobile-menu {
        display: block;
    }
}

@media (max-width: 520px) {
    .body_header.neman-header-v3-shell > .container.neman-header-v3-container {
        padding: 0 6px !important;
    }
    .neman-header-v3__compact-brand {
        width: 128px !important;
        max-width: 128px !important;
        flex-basis: 128px !important;
    }
    .neman-header-v3__compact-brand-img {
        width: 122px !important;
        height: 42px !important;
        max-height: 42px !important;
    }
    .neman-header-v3__compact-action,
    .neman-mobile-search-v2,
    .neman-mobile-search-v2__toggle {
        width: 42px !important;
        min-width: 42px !important;
        flex-basis: 42px !important;
    }
}

@media (max-width: 390px) {
    .neman-header-v3__compact-brand {
        width: 112px !important;
        max-width: 112px !important;
        flex-basis: 112px !important;
    }
    .neman-header-v3__compact-brand-img {
        width: 108px !important;
        height: 40px !important;
        max-height: 40px !important;
    }
    .neman-header-v3__compact-action,
    .neman-mobile-search-v2,
    .neman-mobile-search-v2__toggle {
        width: 40px !important;
        min-width: 40px !important;
        flex-basis: 40px !important;
    }
}

/* ---------- real mobile_neman: separate V3 structural bar ---------- */
header.neman-mobile-header-v3 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: var(--primaryColor, #1c83e8) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25) !important;
    z-index: 1048 !important;
}

header.neman-mobile-header-v3.h-fixed {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
}

header.neman-mobile-header-v3 .neman-mobile-header-v3__bar {
    position: relative !important;
    display: flex !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

header.neman-mobile-header-v3 .neman-mobile-header-v3__logo {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    float: none !important;
    width: 150px !important;
    max-width: 150px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 150px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border: 0 !important;
    background: transparent !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

header.neman-mobile-header-v3 .neman-mobile-header-v3__logo img {
    position: static !important;
    display: block !important;
    float: none !important;
    width: 142px !important;
    height: 46px !important;
    max-width: 100% !important;
    max-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

header.neman-mobile-header-v3 .neman-mobile-header-v3__actions {
    position: static !important;
    display: flex !important;
    float: none !important;
    width: auto !important;
    height: 64px !important;
    min-width: 0 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
}

header.neman-mobile-header-v3 .mobile-phones,
header.neman-mobile-header-v3 .mobile-cart,
header.neman-mobile-header-v3 .neman-mobile-header-v3__menu {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex !important;
    float: none !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    vertical-align: middle !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

header.neman-mobile-header-v3 .mobile-phones a,
header.neman-mobile-header-v3 .mobile-cart a,
header.neman-mobile-header-v3 .neman-mobile-header-v3__menu {
    position: static !important;
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

header.neman-mobile-header-v3 .mobile-phones a:hover,
header.neman-mobile-header-v3 .mobile-phones a:focus,
header.neman-mobile-header-v3 .mobile-cart a:hover,
header.neman-mobile-header-v3 .mobile-cart a:focus,
header.neman-mobile-header-v3 .neman-mobile-header-v3__menu:hover,
header.neman-mobile-header-v3 .neman-mobile-header-v3__menu:focus {
    background: rgba(0, 0, 0, .08) !important;
    color: #fff !important;
}

header.neman-mobile-header-v3 .mobile-cart .price {
    display: none !important;
}

header.neman-mobile-header-v3 .neman-mobile-search-v2,
header.neman-mobile-header-v3 .neman-mobile-search-v2__toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 64px !important;
    flex-basis: 44px !important;
}

header.neman-mobile-header-v3 .neman-mobile-search-v2__toggle {
    color: #fff !important;
}

header.neman-mobile-header-v3 .sticky-menu__wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 520px) {
    header.neman-mobile-header-v3 .neman-mobile-header-v3__bar {
        padding: 0 6px !important;
    }
    header.neman-mobile-header-v3 .neman-mobile-header-v3__logo {
        width: 128px !important;
        max-width: 128px !important;
        flex-basis: 128px !important;
    }
    header.neman-mobile-header-v3 .neman-mobile-header-v3__logo img {
        width: 122px !important;
        height: 42px !important;
        max-height: 42px !important;
    }
    header.neman-mobile-header-v3 .mobile-phones,
    header.neman-mobile-header-v3 .mobile-cart,
    header.neman-mobile-header-v3 .neman-mobile-header-v3__menu,
    header.neman-mobile-header-v3 .mobile-phones a,
    header.neman-mobile-header-v3 .mobile-cart a,
    header.neman-mobile-header-v3 .neman-mobile-search-v2,
    header.neman-mobile-header-v3 .neman-mobile-search-v2__toggle {
        width: 42px !important;
        min-width: 42px !important;
        flex-basis: 42px !important;
    }
}

@media (max-width: 390px) {
    header.neman-mobile-header-v3 .neman-mobile-header-v3__logo {
        width: 112px !important;
        max-width: 112px !important;
        flex-basis: 112px !important;
    }
    header.neman-mobile-header-v3 .neman-mobile-header-v3__logo img {
        width: 108px !important;
        height: 40px !important;
        max-height: 40px !important;
    }
    header.neman-mobile-header-v3 .mobile-phones,
    header.neman-mobile-header-v3 .mobile-cart,
    header.neman-mobile-header-v3 .neman-mobile-header-v3__menu,
    header.neman-mobile-header-v3 .mobile-phones a,
    header.neman-mobile-header-v3 .mobile-cart a,
    header.neman-mobile-header-v3 .neman-mobile-search-v2,
    header.neman-mobile-header-v3 .neman-mobile-search-v2__toggle {
        width: 40px !important;
        min-width: 40px !important;
        flex-basis: 40px !important;
    }

    .neman-search-head-v2__panel--mobile .neman-search-popup-v1__item {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        column-gap: 7px !important;
    }
    .neman-search-head-v2__panel--mobile .neman-search-popup-v1__image {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        height: 58px !important;
    }
}

/* ---------- existing /search/ result page, retained and cleaned ---------- */
.neman-search-page-v1 {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 15px 50px;
    color: #24313a;
    box-sizing: border-box;
}

.neman-search-page-v1__head {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dbe4eb;
}

.neman-search-page-v1__head h1 {
    margin: 0 0 7px;
    font-size: 28px;
}

.neman-search-page-v1__head div,
.neman-search-page-v1__section-head span {
    color: #71808b;
    font-size: 13px;
}

.neman-search-page-v1__message {
    padding: 18px;
    border: 1px solid #dbe4eb;
    background: #fff;
    color: #56646e;
}

.neman-search-page-v1__section {
    margin-top: 28px;
}

.neman-search-page-v1__section h2 {
    margin: 0 0 14px;
    font-size: 21px;
}

.neman-search-page-v1__section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
}

.neman-search-page-v1__collections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.neman-search-collection-v1 {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 96px;
    align-items: center;
    border: 1px solid #dbe4eb;
    border-radius: 4px;
    background: #fff;
    color: #24313a !important;
    text-decoration: none !important;
    overflow: hidden;
}

.neman-search-collection-v1__image {
    display: flex;
    width: 120px;
    height: 94px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.neman-search-collection-v1__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.neman-search-collection-v1 strong,
.neman-search-collection-v1 small {
    display: block;
    padding: 0 12px;
}

.neman-search-collection-v1 strong {
    font-size: 14px;
}

.neman-search-collection-v1 small {
    margin-top: 4px;
    color: #71808b;
}

.neman-search-products-v1 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.neman-search-product-v1 {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #dbe4eb;
    border-radius: 4px;
    background: #fff;
}

.neman-search-product-v1__image {
    display: flex;
    height: 300px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.neman-search-product-v1__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.neman-search-product-v1__body {
    display: flex;
    min-height: 120px;
    padding: 14px 16px 16px;
    flex-direction: column;
}

.neman-search-product-v1__name {
    color: #24313a !important;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none !important;
}

.neman-search-product-v1__collection {
    margin-top: 8px;
    color: #1769ad !important;
    font-size: 12px;
    text-decoration: none !important;
}

.neman-search-product-v1__price {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    margin-top: auto;
    padding: 6px 10px;
    align-items: center;
    border-radius: 6px;
    background: #2e668b;
    color: #fff;
    font-size: 12px;
}

.neman-search-product-v1__price strong {
    font-size: 16px;
}

.neman-search-pagination-v1 {
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.neman-search-pagination-v1 a,
.neman-search-pagination-v1 span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4eb;
    background: #fff;
    color: #24313a !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.neman-search-pagination-v1 span {
    border-color: var(--primaryColor, #2787d8);
    background: var(--primaryColor, #2787d8);
    color: #fff !important;
}

@media (max-width: 1000px) {
    .neman-search-page-v1 {
        padding: 14px 10px 38px;
    }
    .neman-search-products-v1,
    .neman-search-page-v1__collections {
        grid-template-columns: minmax(0, 1fr);
    }
    .neman-search-product-v1__image {
        height: 250px;
    }
}

@media (max-width: 420px) {
    .neman-search-product-v1__image {
        height: 220px;
    }
}
