.nm-auto-wrap {
    max-width: 1540px;
    margin: 0 auto;
}

.nm-auto-search-shell {
    margin-bottom: 18px;
}

.nm-auto-search-bar {
    background: #fff;
    border: 1px solid #d9dce1;
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.nm-auto-search-main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 240px;
    align-items: center;
    gap: 0;
}

.nm-search-segment {
    position: relative;
    min-height: 66px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    min-width: 0;
}

.nm-search-segment:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: #d9d9d9;
}

.nm-search-native-wrap,
.nm-search-popup-toggle {
    width: 100%;
    position: relative;
}

.nm-search-native-select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.nm-search-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 85px;
    width: 100%;
    cursor: pointer;
}

.nm-search-display-text {
    min-width: 0;
    flex: 0 1 auto;
    max-width: calc(100% - 14px);
}

.nm-search-title {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 700;
    color: #2f2f2f;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nm-search-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.15;
    color: #a8a8a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 15px;
}

.nm-search-chevron {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 1px solid #111;
    border-bottom: 1px solid #111;
    transform: rotate(45deg);
    margin-top: -2px;
    margin-left: 1px;
}

.nm-search-button-wrap {
    padding-left: 14px;
    padding-top: 4px;
    padding-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nm-search-submit {
    height: 56px;
    width: 100%;
    border: 0;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #4d67e8 0%, #3f5fe0 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
    appearance: none;
    -webkit-appearance: none;
}
.nm-search-submit {
    transition: background 0.2s ease, opacity 0.2s ease;
}

.nm-search-submit:hover {
    background: linear-gradient(180deg, #5a73ee 0%, #4a69e6 100%);
}

.nm-search-submit:active {
    opacity: 0.92;
}

.nm-search-submit svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.nm-search-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding-top: 14px;
    flex-wrap: nowrap;
}

.nm-search-action-link svg,
.nm-search-action-button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke: currentColor;
}
.nm-search-action-link,
.nm-search-action-button {
    border: 0;
    background: transparent !important;
    padding: 0;
    color: #2f2f2f !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    box-shadow: none !important;
    cursor: pointer !important;
}

.nm-search-action-link:hover,
.nm-search-action-link:focus,
.nm-search-action-link:active,
.nm-search-action-button:hover,
.nm-search-action-button:focus,
.nm-search-action-button:active {
    color: #2f2f2f !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.nm-search-action-button *,
.nm-search-action-link * {
    cursor: pointer !important;
}
.nm-search-action-button {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.nm-search-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15,23,42,.14);
    padding: 14px;
    z-index: 50;
    display: none;
}

.nm-search-popup.is-open {
    display: block;
}

.nm-search-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.nm-search-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nm-search-popup label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475467;
    margin-bottom: 6px;
}

.nm-search-popup input:not([type="range"]),
.nm-search-popup select {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #d7deea;
    background: #fff;
    padding: 0 10px;
    font-size: 13px;
    box-sizing: border-box;
}

.nm-search-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.nm-search-popup-clear,
.nm-search-popup-apply {
    height: 38px;
    border: 0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.nm-search-popup-clear {
    background: #edf1f6;
    color: #1f2937;
}

.nm-search-popup-apply {
    background: #3f5fe0;
    color: #fff;
    flex: 1;
}

.nm-price-range-wrap {
    margin-top: 8px;
    margin-bottom: 18px;
}

.nm-price-values {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #111827;
    font-weight: 700;
}

.nm-price-sliders {
    position: relative;
    width: 100%;
    height: 24px;
    margin: 0;
}

.nm-price-track {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 999px;
    background: #d7deea;
    z-index: 1;
}

.nm-price-track-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 999px;
    background: #3f5fe0;
    z-index: 2;
}

.nm-price-range {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

#nm-cena-range-min {
    z-index: 4;
}

#nm-cena-range-max {
    z-index: 5;
}

.nm-price-range:focus {
    outline: none;
}

.nm-price-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.nm-price-range::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.nm-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #3f5fe0;
    box-shadow: none;
}

.nm-price-range::-moz-range-thumb {
    pointer-events: auto;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #3f5fe0;
    box-shadow: none;
}

.nm-auto-results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 18px;
    gap: 20px;
}

.nm-auto-results-head h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
}

.nm-auto-results-head p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.nm-auto-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.nm-auto-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nm-auto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.nm-auto-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f4f6f8;
}

.nm-auto-card-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.nm-auto-card-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}

.nm-auto-card-gallery-img.is-active {
    opacity: 1;
    pointer-events: auto;
}

.nm-auto-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
    z-index: 3;
    padding: 0;
    text-align: center;
}

.nm-auto-gallery-prev {
    left: 12px;
    padding-left: 0;
}

.nm-auto-gallery-next {
    right: 12px;
    padding-left: 2px;
}

.nm-auto-image-wrap:hover .nm-auto-gallery-arrow {
    opacity: 1;
    pointer-events: auto;
}

.nm-auto-gallery-arrow:hover {
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-50%) scale(1.05);
}

.nm-auto-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 9px 13px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    z-index: 4;
}

.nm-auto-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.nm-auto-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
    color: #0f172a;
}

.nm-auto-desc {
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nm-auto-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2px;
}

.nm-auto-spec {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}

.nm-auto-spec small {
    display: block;
    color: #667085;
    font-size: 11px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nm-auto-spec strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.nm-auto-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 6px;
}

.nm-auto-price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nm-auto-old-price {
    color: #98a2b3;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 700;
}

.nm-auto-price {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.nm-auto-saving-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #16a34a;
    background: transparent;
    border-radius: 999px;
    padding: 0;
    line-height: 1;
    box-shadow: none;
}

.nm-auto-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 999px;
    padding: 0 18px;
    background: #0f172a;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: .2s ease;
}

.nm-auto-link:hover {
    transform: translateY(-1px);
}

.nm-auto-empty {
    padding: 34px 24px;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    text-align: center;
    color: #667085;
    box-shadow: 0 12px 34px rgba(17,24,39,.05);
}

.nm-advanced-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.nm-advanced-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.nm-advanced-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 430px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -18px 0 50px rgba(15, 23, 42, .16);
    transform: translateX(100%);
    transition: .3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.nm-advanced-sidebar.is-open {
    transform: translateX(0);
}

.nm-advanced-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 16px;
    border-bottom: 1px solid #eef2f6;
}

.nm-advanced-head h4 {
    margin: 0;
    font-size: 24px;
    color: #0f172a;
}

.nm-advanced-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 0;
    background: #eff3f8;
    cursor: pointer;
    font-size: 20px;
    color: #0f172a;
}

.nm-advanced-body {
    padding: 22px;
    overflow: auto;
    display: grid;
    gap: 14px;
    flex: 1;
}

.nm-advanced-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.nm-advanced-grid label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #1e293b;
}

.nm-advanced-grid input,
.nm-advanced-grid select {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #d9e2ec;
    background: #fff;
    padding: 0 12px;
    box-sizing: border-box;
}

.nm-advanced-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid #eef2f6;
    background: #ffffff;
}

.nm-single-auto {
    max-width: 1200px;
    margin: 30px auto;
}

.nm-single-top {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start;
}

.nm-single-gallery,
.nm-single-info {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(17,24,39,.06);
}

.nm-single-gallery {
    padding: 18px;
}

.nm-single-main-img img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.nm-single-thumbs {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-top: 12px;
}

.nm-single-thumbs img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.nm-single-info {
    padding: 24px;
}

.nm-single-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
}

.nm-single-price-old {
    color: #98a2b3;
    text-decoration: line-through;
    font-weight: 700;
    margin-bottom: 6px;
}

.nm-single-price {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 18px;
}

.nm-single-specs {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.nm-single-specs div {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 12px 14px;
}

.nm-single-specs small {
    display: block;
    color: #667085;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 11px;
}

.nm-single-specs strong {
    color: #111827;
}

.nm-single-desc {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(17,24,39,.06);
}

@media (max-width: 1400px) {
    .nm-auto-search-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .nm-search-segment {
        border-right: 1px solid #e7e7e7;
    }

    .nm-search-segment:nth-child(3n) {
        border-right: 0;
    }

    .nm-search-segment:not(:first-child)::before {
        display: none;
    }

    .nm-search-button-wrap {
        grid-column: 1 / -1;
        padding-left: 0;
        padding-top: 14px;
    }

    .nm-search-submit {
        height: 52px;
        border-radius: 999px;
    }
}

@media (max-width: 1100px) {
    .nm-auto-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nm-auto-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-auto-search-bar {
        border-radius: 26px;
        padding: 10px;
    }

    .nm-auto-search-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nm-search-segment {
        min-height: 62px;
        padding: 0 14px;
        border-right: 1px solid #e7e7e7;
    }

    .nm-search-segment:nth-child(2n) {
        border-right: 0;
    }

    .nm-search-title {
        font-size: 15px;
    }

    .nm-search-subtitle {
        font-size: 12px;
    }

    .nm-search-actions {
        gap: 18px;
    }

    .nm-single-top {
        grid-template-columns: 1fr;
    }

    .nm-single-thumbs {
        grid-template-columns: repeat(2,1fr);
    }

    .nm-single-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nm-auto-grid {
        grid-template-columns: 1fr;
    }

    .nm-auto-search-bar {
        border-radius: 22px;
        padding: 10px;
    }

    .nm-auto-search-main {
        grid-template-columns: 1fr;
    }

    .nm-search-segment {
        border-right: 0 !important;
        padding: 0 12px;
        min-height: 58px;
    }

    .nm-search-segment:not(:first-child)::before {
        display: none;
    }

    .nm-search-button-wrap {
        padding-top: 10px;
    }

    .nm-search-submit {
        height: 48px;
        font-size: 14px;
        border-radius: 999px;
    }

    .nm-search-popup {
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
    }

    .nm-search-popup-grid {
        grid-template-columns: 1fr;
    }

    .nm-search-actions {
        justify-content: flex-start;
        gap: 16px;
        padding-left: 4px;
    }

    .nm-advanced-grid {
        grid-template-columns: 1fr;
    }

    .nm-auto-results-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .nm-advanced-sidebar {
        width: 100%;
    }
}