/* =========================================================
   NEMAN HEADER V2 + SEARCH
   Structural desktop header. No overlay patches.
   ========================================================= */

/* ---------- desktop host: real header geometry ---------- */
.body_header.neman-header-v2-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-v2-shell > .body_menu {
    display: none !important;
}

.neman-header-v2-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;
}

.neman-header-v2 {
    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-v2__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-v2 .neman-header-v2__logo {
    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;
    text-decoration: none !important;
    z-index: auto !important;
}

.neman-header-v2 .neman-header-v2__logo .logo-picture {
    position: static !important;
    display: block !important;
    width: 190px !important;
    height: 64px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.neman-header-v2 .neman-header-v2__logo .logo-picture img,
.neman-header-v2 .neman-header-v2__logo .logo-picture__default {
    display: block !important;
    width: 190px !important;
    height: 64px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.neman-header-v2 .neman-header-v2__logo .logo-picture__white {
    display: none !important;
}

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

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

.neman-header-v2__phones {
    display: grid;
    width: 172px;
    min-width: 172px;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
}

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

.neman-header-v2__phone-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.neman-header-v2__phone-copy .phone p {
    color: #38434b !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
    font-weight: 700 !important;
}

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

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

.neman-header-v2__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-v2__basket .basket__icon {
    margin-right: 9px !important;
}

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

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

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

.neman-header-v2__menu-toggle {
    display: none !important;
}

/* ---------- desktop navigation: full-width native Neman blue ---------- */
.neman-header-v2 > .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-v2 > .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-v2 > .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-v2 > .topmenu ul.menu > li:first-child {
    border-left: 1px solid rgba(255, 255, 255, .16) !important;
}

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

.neman-header-v2 > .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.15 !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

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

.neman-header-v2 > .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;
}

/* ---------- wide desktop breakpoints ---------- */
@media (max-width: 1450px) and (min-width: 1301px) {
    .neman-header-v2__top {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 560px) minmax(0, 1fr);
        column-gap: 14px;
    }
    .neman-header-v2 .neman-header-v2__logo,
    .neman-header-v2 .neman-header-v2__logo .logo-picture,
    .neman-header-v2 .neman-header-v2__logo .logo-picture img,
    .neman-header-v2 .neman-header-v2__logo .logo-picture__default {
        width: 176px !important;
    }
    .neman-header-v2__phones {
        width: 164px;
        min-width: 164px;
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 6px;
    }
    .neman-header-v2__phone-icon {
        width: 32px;
        height: 32px;
    }
    .neman-header-v2__phone-copy,
    .neman-header-v2__phone-copy .phone,
    .neman-header-v2__phone-copy .phone p {
        width: 126px !important;
    }
    .neman-header-v2__basket {
        min-width: 132px;
    }
}

@media (max-width: 1300px) and (min-width: 1151px) {
    .neman-header-v2__top {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 500px) minmax(0, 1fr);
        column-gap: 12px;
    }
    .neman-header-v2 .neman-header-v2__logo,
    .neman-header-v2 .neman-header-v2__logo .logo-picture,
    .neman-header-v2 .neman-header-v2__logo .logo-picture img,
    .neman-header-v2 .neman-header-v2__logo .logo-picture__default {
        width: 160px !important;
    }
    .neman-header-v2__right {
        gap: 7px;
    }
    .neman-header-v2__phones {
        width: 150px;
        min-width: 150px;
        grid-template-columns: 29px minmax(0, 1fr);
        column-gap: 5px;
    }
    .neman-header-v2__phone-icon {
        width: 29px;
        height: 29px;
    }
    .neman-header-v2__phone-copy,
    .neman-header-v2__phone-copy .phone,
    .neman-header-v2__phone-copy .phone p {
        width: 116px !important;
    }
    .neman-header-v2__phone-copy .phone p {
        font-size: 12px !important;
    }
    .neman-header-v2__basket {
        min-width: 120px;
    }
    .neman-header-v2__basket .basket__info p,
    .neman-header-v2__basket .basket__info p span {
        font-size: 9px !important;
    }
    .neman-header-v2 > .topmenu ul.menu > li > a {
        padding: 0 5px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 1150px) and (min-width: 1001px) {
    .neman-header-v2__top {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 480px) minmax(0, 1fr);
        column-gap: 10px;
    }
    .neman-header-v2 .neman-header-v2__logo,
    .neman-header-v2 .neman-header-v2__logo .logo-picture,
    .neman-header-v2 .neman-header-v2__logo .logo-picture img,
    .neman-header-v2 .neman-header-v2__logo .logo-picture__default {
        width: 150px !important;
    }
    .neman-header-v2__phones {
        display: none !important;
    }
    .neman-header-v2__basket {
        min-width: 120px;
    }
    .neman-header-v2 > .topmenu ul.menu > li > a {
        padding: 0 4px !important;
        font-size: 11px !important;
    }
}

/* ---------- desktop template under zoom / narrow CSS viewport ---------- */
@media (max-width: 1000px) {
    .body_header.neman-header-v2-shell {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .neman-header-v2-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;
        padding: 0 8px !important;
        overflow: visible !important;
    }

    .neman-header-v2 {
        width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;
        overflow: visible !important;
    }

    .neman-header-v2__top {
        display: grid !important;
        width: 100% !important;
        height: 76px !important;
        min-height: 76px !important;
        grid-template-columns: 120px minmax(0, 1fr) 48px 44px !important;
        column-gap: 7px !important;
        align-items: center !important;
    }

    .neman-header-v2 .neman-header-v2__logo,
    .neman-header-v2 .neman-header-v2__logo .logo-picture,
    .neman-header-v2 .neman-header-v2__logo .logo-picture img,
    .neman-header-v2 .neman-header-v2__logo .logo-picture__default {
        width: 116px !important;
        height: 54px !important;
    }

    .neman-header-v2__search {
        width: 100% !important;
        min-width: 0 !important;
        grid-column: 2 !important;
    }

    .neman-header-v2__right {
        display: contents !important;
    }

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

    .neman-header-v2__basket {
        grid-column: 3 !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 76px !important;
        padding: 0 !important;
        justify-self: center !important;
        border: 0 !important;
    }

    .neman-header-v2__basket .basket {
        width: 48px !important;
        min-width: 48px !important;
        height: 76px !important;
        justify-content: center !important;
    }

    .neman-header-v2__basket .basket__icon {
        margin: 0 !important;
    }

    .neman-header-v2__basket .basket__info {
        display: none !important;
    }

    .neman-header-v2__menu-toggle {
        position: static !important;
        display: flex !important;
        float: none !important;
        grid-column: 4 !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 76px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--primaryColor, #2787d8) !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    .neman-header-v2__menu-toggle svg {
        width: 23px !important;
        height: 27px !important;
        fill: currentColor !important;
    }

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

    .neman-search-head-v2__form {
        height: 44px;
    }

    .neman-search-head-v2__icon {
        flex-basis: 38px;
    }

    .neman-search-head-v2__input {
        font-size: 13px !important;
        line-height: 42px !important;
    }

    .neman-search-head-v2__submit {
        flex-basis: 72px;
        min-width: 72px;
        padding: 0 9px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 520px) {
    .neman-header-v2__top {
        grid-template-columns: 94px minmax(0, 1fr) 42px 40px !important;
        column-gap: 5px !important;
    }

    .neman-header-v2 .neman-header-v2__logo,
    .neman-header-v2 .neman-header-v2__logo .logo-picture,
    .neman-header-v2 .neman-header-v2__logo .logo-picture img,
    .neman-header-v2 .neman-header-v2__logo .logo-picture__default {
        width: 92px !important;
        height: 48px !important;
    }

    .neman-header-v2__basket,
    .neman-header-v2__basket .basket {
        width: 42px !important;
        min-width: 42px !important;
    }

    .neman-header-v2__basket .basket__icon svg {
        width: 25px !important;
    }

    .neman-header-v2__menu-toggle {
        width: 40px !important;
        min-width: 40px !important;
    }

    .neman-search-head-v2__icon {
        flex-basis: 34px;
    }

    .neman-search-head-v2__icon svg {
        width: 18px;
        height: 18px;
    }

    .neman-search-head-v2__submit {
        flex-basis: 52px;
        min-width: 52px;
        padding: 0 5px !important;
        font-size: 0 !important;
    }

    .neman-search-head-v2__submit::after {
        content: '→';
        font-size: 20px;
        line-height: 1;
    }
}

/* ---------- REAL mobile_neman host ---------- */
.neman-mobile-search-v2 {
    position: relative !important;
    display: flex !important;
    float: none !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 76px !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;
}

.neman-mobile-search-v2__toggle {
    position: static !important;
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 76px !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;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.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: 76px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    padding: 8px !important;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
    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;
}

@media (max-width: 420px) {
    .neman-mobile-search-v2,
    .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;
    }
}
