/* =========================================================
   NAVKAR MEGA MENU
   - "All Products": 20% category list / 80% category content
   - Category dropdowns: sub-category cards (image + name + products)
   ========================================================= */

.np-mega { display: none; }

@media (min-width: 1200px) {

    .header-main .main-menu > ul > li.np-has-mega,
    .header-main .main-menu nav > ul > li.np-has-mega {
        position: static !important;
    }

    .header-main .main-menu .np-mobile-only {
        display: none !important;
    }

    .np-mega {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99999;
        background: #fff;
        border: 1px solid var(--np-border, #eceef4);
        border-radius: 16px;
        box-shadow: 0 24px 60px rgba(25, 31, 56, .16);
        visibility: hidden;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        overflow: hidden;
    }

    li.np-has-mega:hover > .np-mega,
    li.np-has-mega:focus-within > .np-mega {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

.mean-container .np-mega { display: none !important; }

/* ---------- All Products layout ---------- */

.np-mega-all {
    display: flex;
    min-height: min(380px, var(--np-drop-max, 380px));
    max-height: min(var(--np-drop-max, 72vh), 620px);
}

.np-mega-left {
    flex: 0 0 20%;
    max-width: 20%;
    background: var(--np-soft, #f8f9fc);
    border-right: 1px solid var(--np-border, #eceef4);
    overflow-y: auto;
    padding: 12px 0;
}

.np-mega-right {
    flex: 0 0 80%;
    max-width: 80%;
    overflow-y: auto;
    padding: 22px 26px;
}

.np-cat-list,
.np-sub-products {
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-cat-list li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 16px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--np-dark, #09052f) !important;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.np-cat-list li a img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #fff;
}

.np-cat-list li a span { flex: 1; line-height: 1.3; }

.np-cat-list li a i {
    font-size: 11px;
    opacity: .5;
    transform: none !important;
}

.np-cat-list li.active a,
.np-cat-list li a:hover {
    background: #fff;
    color: var(--np-pink, #e7287c) !important;
    border-left-color: var(--np-pink, #e7287c);
}

.np-cat-pane { display: none; }
.np-cat-pane.active { display: block; animation: npFade .2s ease; }

@keyframes npFade { from { opacity: 0; } to { opacity: 1; } }

.np-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--np-border, #eceef4);
}

.np-pane-head h4 {
    margin: 0;
    font-size: 20px;
    color: var(--np-dark, #09052f);
}

.np-pane-head a {
    font-size: 13px;
    font-weight: 600;
    color: var(--np-pink, #e7287c) !important;
    white-space: nowrap;
}

/* ---------- Colour key: blue = sub-category, pink = product ---------- */

:root {
    --np-sub: #2873ba;
    --np-sub-soft: #eef5fc;
    --np-sub-line: #cfe2f5;
    --np-prod: #e7287c;
    --np-prod-soft: #fdeef5;
    --np-prod-line: #f7cde0;
}

.np-pane-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
}

.np-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.np-key i { font-size: 11px; }
.np-key-sub { background: var(--np-sub-soft); color: var(--np-sub); }
.np-key-prod { background: var(--np-prod-soft); color: var(--np-prod); }

/* Section labels inside a category pane */
.np-mm-section + .np-mm-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--np-border, #eceef4);
}

.np-mm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.np-mm-label span {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0;
    text-align: center;
    color: #fff;
}

.np-mm-label-sub { color: var(--np-sub); }
.np-mm-label-sub span { background: var(--np-sub); }
.np-mm-label-prod { color: var(--np-prod); }
.np-mm-label-prod span { background: var(--np-prod); }

/* ---------- Sub-category card (blue) ---------- */

.np-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.np-sub-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--np-sub-line);
    border-top: 3px solid var(--np-sub);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--np-sub-soft) 0, #fff 120px);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.np-sub-card:hover {
    border-color: var(--np-sub);
    box-shadow: 0 12px 30px rgba(40, 115, 186, .14);
    transform: translateY(-2px);
}

.header-main .main-menu a.np-sub-head {
    display: block !important;
    padding: 10px 10px 0 !important;
    color: var(--np-dark, #09052f) !important;
}

.np-sub-media {
    position: relative;
    display: block;
}

.np-sub-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--np-sub-line);
}

.np-sub-tag {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--np-sub);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(40, 115, 186, .3);
}

.header-main .main-menu .np-sub-tag i { margin: 0 !important; font-size: 10px; transform: none !important; }

.np-sub-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 2px 8px;
}

.np-sub-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.np-sub-head:hover .np-sub-name { color: var(--np-sub); }

.np-sub-count {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--np-sub);
    white-space: nowrap;
}

.np-sub-products {
    list-style: none;
    margin: 0;
    padding: 0 10px 6px !important;
}

.header-main .main-menu .np-sub-products li { display: block; margin: 0 !important; }

.header-main .main-menu .np-sub-products li a {
    display: flex !important;
    align-items: flex-start;
    gap: 7px;
    padding: 4px 0 !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--np-text, #555b6d) !important;
}

.header-main .main-menu .np-sub-products li a i {
    margin: 2px 0 0 !important;
    font-size: 10px;
    color: var(--np-prod) !important;
    opacity: .75;
    transform: none !important;
}

.header-main .main-menu .np-sub-products li a:hover { color: var(--np-prod) !important; }
.header-main .main-menu .np-sub-products li a:hover i { opacity: 1; }

.header-main .main-menu a.np-sub-all {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 12px !important;
    border-top: 1px solid var(--np-sub-line);
    background: var(--np-sub-soft);
    color: var(--np-sub) !important;
    font-size: 12.5px;
    font-weight: 700;
}

.header-main .main-menu a.np-sub-all i { margin: 0 !important; transform: none !important; transition: transform .2s ease; }
.header-main .main-menu a.np-sub-all:hover i { transform: translateX(3px) !important; }

/* ---------- Product tile (pink) ---------- */

.np-prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.header-main .main-menu a.np-prod-tile {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px !important;
    border: 1px solid var(--np-prod-line);
    border-left: 3px solid var(--np-prod);
    border-radius: 12px;
    background: #fff;
    color: var(--np-dark, #09052f) !important;
    transition: background .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.header-main .main-menu a.np-prod-tile:hover {
    background: var(--np-prod-soft);
    border-color: var(--np-prod);
    box-shadow: 0 8px 22px rgba(231, 40, 124, .12);
}

.np-prod-tile img {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--np-prod-line);
}

.np-prod-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.np-prod-name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-prod-cta {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--np-prod);
}

.header-main .main-menu .np-prod-cta i { margin-left: 2px !important; font-size: 11px; transform: none !important; }

.np-empty {
    color: var(--np-text, #555b6d);
    font-size: 14px;
}

/* =========================================================
   CATEGORY FLYOUT: sub-category list -> hover panel
   (image + name, underline, all products)
   ========================================================= */

.np-fly { display: none; }

.mean-container .np-fly { display: none !important; }

@media (min-width: 1200px) {

    .np-fly {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 99999;
        width: 250px;
        background: #fff;
        border: 1px solid var(--np-border, #eceef4);
        border-top: 3px solid var(--np-pink, #e7287c);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 18px 50px rgba(25, 31, 56, .14);
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        /* Never taller than the space below the header (set by JS) */
        display: flex;
        flex-direction: column;
        max-height: var(--np-drop-max, calc(100vh - 160px));
    }

    li.np-has-fly:hover > .np-fly,
    li.np-has-fly:focus-within > .np-fly {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* Open towards the left when there is no room on the right */
    li.np-has-fly.np-fly-left > .np-fly { left: auto; right: 0; }
    li.np-has-fly.np-fly-left .np-fly-panel { left: auto; right: 100%; }
}

.np-fly ul { list-style: none; margin: 0; padding: 0; }

.np-fly-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 0 !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.np-fly a.np-fly-all { flex-shrink: 0; }

/* Thin scrollbars for all dropdown scroll areas */
.np-fly-list,
.np-fly-panel,
.np-mega-left,
.np-mega-right {
    scrollbar-width: thin;
    scrollbar-color: #d5d8e3 transparent;
}

.np-fly-list::-webkit-scrollbar,
.np-fly-panel::-webkit-scrollbar,
.np-mega-left::-webkit-scrollbar,
.np-mega-right::-webkit-scrollbar { width: 6px; }

.np-fly-list::-webkit-scrollbar-thumb,
.np-fly-panel::-webkit-scrollbar-thumb,
.np-mega-left::-webkit-scrollbar-thumb,
.np-mega-right::-webkit-scrollbar-thumb {
    background: #d5d8e3;
    border-radius: 6px;
}

/* Reset the theme's inline menu item styles */
.header-main .main-menu .np-fly li {
    display: block;
    margin: 0 !important;
    padding: 0;
}

/* Items are static so the panel is positioned against the whole dropdown */
.header-main .main-menu .np-fly-list > li { position: static; }

.header-main .main-menu .np-fly-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 18px !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--np-dark, #09052f) !important;
    border-left: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.header-main .main-menu .np-fly-list > li > a i,
.header-main .main-menu .np-fly-list > li:hover > a i {
    font-size: 11px;
    opacity: .45;
    transform: none !important;
}

.header-main .main-menu .np-fly-list > li:hover > a {
    background: var(--np-soft, #f8f9fc);
    color: var(--np-pink, #e7287c) !important;
    border-left-color: var(--np-pink, #e7287c);
}

.header-main .main-menu .np-fly a.np-fly-all {
    display: block;
    padding: 11px 18px !important;
    border-top: 1px solid var(--np-border, #eceef4);
    font-size: 13px;
    font-weight: 700;
    color: var(--np-pink, #e7287c) !important;
}

/* Hover panel */
.np-fly-panel {
    position: absolute;
    top: -3px;
    left: 100%;
    width: 440px;
    max-width: calc(100vw - 290px);
    min-height: calc(100% + 3px);
    max-height: var(--np-drop-max, min(70vh, 560px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    border-top: 3px solid var(--np-pink, #e7287c);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 50px rgba(25, 31, 56, .14);
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s ease, visibility .15s;
}

.np-fly-item:hover > .np-fly-panel,
.np-fly-item:focus-within > .np-fly-panel {
    visibility: visible;
    opacity: 1;
}

.header-main .main-menu .np-fly a.np-fly-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 14px !important;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--np-pink, #e7287c);
    color: var(--np-dark, #09052f) !important;
}

.np-fly-head img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 10px;
    background: var(--np-soft, #f8f9fc);
    border: 1px solid var(--np-border, #eceef4);
}

.np-fly-head span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.header-main .main-menu .np-fly a.np-fly-head:hover span { color: var(--np-pink, #e7287c); }

.np-fly-products {
    column-count: 2;
    column-gap: 20px;
}

.header-main .main-menu .np-fly-products li { break-inside: avoid; }

.header-main .main-menu .np-fly-products li a {
    display: block;
    position: relative;
    padding: 5px 0 5px 12px !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--np-text, #555b6d) !important;
}

.header-main .main-menu .np-fly-products li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d5d8e3;
}

.header-main .main-menu .np-fly-products li a:hover { color: var(--np-pink, #e7287c) !important; }

.header-main .main-menu .np-fly-products li a:hover::before { background: var(--np-pink, #e7287c); }

.np-fly-empty { margin: 0; font-size: 13px; color: var(--np-text, #555b6d); }

/* ---------- Flyout: sub-category vs product rows ---------- */

.header-main .main-menu .np-fly-list > li.np-fly-group {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.header-main .main-menu .np-fly-list > li.np-fly-group-sub { color: var(--np-sub); }

.header-main .main-menu .np-fly-list > li.np-fly-group-prod {
    margin-top: 6px !important;
    padding-top: 12px;
    border-top: 1px dashed var(--np-border, #eceef4);
    color: var(--np-prod);
}

.header-main .main-menu .np-fly-list > li > a .np-fly-label { flex: 1; min-width: 0; }

.header-main .main-menu .np-fly-list > li > a .np-fly-ico,
.header-main .main-menu .np-fly-list > li:hover > a .np-fly-ico {
    flex-shrink: 0;
    width: 16px;
    margin: 0 !important;
    font-size: 13px;
    opacity: 1;
    text-align: center;
}

.header-main .main-menu .np-fly-sub > a .np-fly-ico { color: var(--np-sub) !important; }
.header-main .main-menu .np-fly-prod > a .np-fly-ico { color: var(--np-prod) !important; font-size: 12px !important; }

.header-main .main-menu .np-fly-list > li > a .np-fly-count {
    flex-shrink: 0;
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 20px;
    background: var(--np-sub-soft);
    color: var(--np-sub);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.header-main .main-menu .np-fly-list > li > a .np-fly-arrow { margin: 0 !important; }

/* Sub-category hover: blue */
.header-main .main-menu .np-fly-list > li.np-fly-sub:hover > a {
    background: var(--np-sub-soft);
    color: var(--np-sub) !important;
    border-left-color: var(--np-sub);
}

.header-main .main-menu .np-fly-list > li.np-fly-sub:hover > a .np-fly-count { background: var(--np-sub); color: #fff; }

/* Product rows: lighter weight, pink hover */
.header-main .main-menu .np-fly-list > li.np-fly-prod > a { font-weight: 500; }

.header-main .main-menu .np-fly-list > li.np-fly-prod:hover > a {
    background: var(--np-prod-soft);
    color: var(--np-prod) !important;
    border-left-color: var(--np-prod);
}

/* Side panel: sub-category header in blue, products with pink cubes */
.np-fly-panel { border-top-color: var(--np-sub); }

.header-main .main-menu .np-fly a.np-fly-head { border-bottom-color: var(--np-sub-line); }

.np-fly-head > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.np-fly-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--np-sub);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.header-main .main-menu .np-fly-tag i { margin: 0 !important; font-size: 10px; transform: none !important; }

.np-fly-head .np-fly-head-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.np-fly-head .np-fly-head-count { font-size: 12px; font-weight: 700; color: var(--np-sub); }

.header-main .main-menu .np-fly a.np-fly-head:hover .np-fly-head-name { color: var(--np-sub); }

.header-main .main-menu .np-fly-products li a {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 5px 0 !important;
}

.header-main .main-menu .np-fly-products li a::before { display: none; }

.header-main .main-menu .np-fly-products li a i {
    margin: 3px 0 0 !important;
    font-size: 10px;
    color: var(--np-prod) !important;
    opacity: .7;
    transform: none !important;
}

.header-main .main-menu .np-fly-products li a:hover i { opacity: 1; }

/* Category with only direct products: the dropdown is the sub-category panel itself */
@media (min-width: 1200px) {
    .np-fly.np-fly-direct {
        width: 440px;
        max-width: calc(100vw - 40px);
        border-top-color: var(--np-sub);
    }
}

.np-fly-direct-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d5d8e3 transparent;
}

/* =========================================================
   HEADER ROW: categories that don't fit move into "More"
   ========================================================= */

.np-nav-more { display: none !important; }
.mean-container .np-nav-more { display: none !important; }

@media (min-width: 1200px) {

    /* Let the header column shrink to the window instead of overflowing it */
    .main-header-wrapper > .main-header-items {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Menu takes the space between logo and icons, centred */
    .header-main .header-left {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        justify-content: center;
        padding: 0 12px;
    }

    .header-main .header-right { flex-shrink: 0; }
    .header-main .logo { flex-shrink: 0; }

    .header-main .main-menu nav > ul > li.np-nav-hidden { display: none !important; }

    .header-main .main-menu nav > ul > li.np-nav-more.is-active { display: inline-block !important; }

    .np-nav-more .np-fly-item.np-more-off { display: none !important; }

    /* Before JS runs, keep the row to one line */
    .header-main .main-menu nav > ul { flex-wrap: nowrap; }
}

/* Tighter spacing so "All Products" + 7 menus fit on laptop screens */
@media (min-width: 1200px) and (max-width: 1599px) {
    /* Win back space from the theme's wide side padding and logo gap */
    .header-section-2 .container-fluid { padding: 0 20px; }
    .main-header-wrapper { gap: 20px; }
    .header-main .header-left { padding: 0 4px; }

    .header-main .main-menu nav > ul { gap: 2px; }

    .header-main .main-menu nav > ul > li > a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 13.5px !important;
    }

    .header-main .main-menu nav > ul > li > a::before { left: 9px; right: 9px; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .header-main .main-menu nav > ul { gap: 0; }

    .header-main .main-menu nav > ul > li > a {
        gap: 3px;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 12.5px !important;
        letter-spacing: -.1px;
    }

    .header-main .main-menu nav > ul > li > a i { margin-left: 0; font-size: 9px; }

    .header-main .main-menu nav > ul > li > a::before { left: 6px; right: 6px; }
}

/* Small laptops: drop the dropdown arrows (hover still opens the menu) */
@media (min-width: 1200px) and (max-width: 1299px) {
    .header-main .main-menu nav > ul > li > a > i { display: none; }
}

/* =========================================================
   HEADER LIVE SEARCH: categories left, products right
   ========================================================= */

/* With results showing, pin the search box near the top so the panel has room */
.search-wrap.np-sr-open .search-cell {
    top: 70px;
    transform: none;
}

.search-wrap.np-sr-open .search-field-holder {
    width: min(1060px, 92%);
}

.search-wrap .main-search-input { text-transform: none; }

.np-sr {
    margin-top: 18px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(25, 31, 56, .16);
    overflow: hidden;
    animation: npFade .2s ease;
}

.np-sr[hidden] { display: none; }

.np-sr.is-loading .np-sr-right { opacity: .5; }

.np-sr mark {
    padding: 0;
    background: rgba(231, 40, 124, .14);
    color: inherit;
    border-radius: 3px;
}

.np-sr-box {
    display: flex;
    max-height: calc(100vh - 250px);
    min-height: 260px;
}

.np-sr-left {
    flex: 0 0 280px;
    max-width: 280px;
    overflow-y: auto;
    padding: 16px 0;
    background: var(--np-soft, #f8f9fc);
    border-right: 1px solid var(--np-border, #eceef4);
}

.np-sr-left h6,
.np-sr-head h6 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--np-blue, #2873ba);
}

.np-sr-left h6 { padding: 0 18px 10px; }

.np-sr-left ul { list-style: none; margin: 0; padding: 0; }

.np-sr-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 18px;
    border-left: 3px solid transparent;
    color: var(--np-dark, #09052f);
    font-size: 14px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.np-sr-cat-text { min-width: 0; line-height: 1.3; }

.np-sr-cat-text small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--np-text, #555b6d);
}

.np-sr-cat b {
    flex-shrink: 0;
    min-width: 26px;
    padding: 1px 8px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--np-border, #eceef4);
    font-size: 12px;
    text-align: center;
    color: var(--np-text, #555b6d);
}

.np-sr-cat:hover,
.np-sr-cat.active {
    background: #fff;
    color: var(--np-pink, #e7287c);
    border-left-color: var(--np-pink, #e7287c);
}

.np-sr-cat.active b { border-color: var(--np-pink, #e7287c); color: var(--np-pink, #e7287c); }

.np-sr-right {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 18px 22px;
    transition: opacity .15s ease;
}

.np-sr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--np-pink, #e7287c);
}

.np-sr-head h6 {
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--np-dark, #09052f);
}

.np-sr-head a {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--np-pink, #e7287c);
}

.np-sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.np-sr-card {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 1px solid var(--np-border, #eceef4);
    border-radius: 12px;
    background: #fff;
    color: var(--np-dark, #09052f);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.np-sr-card:hover {
    border-color: rgba(231, 40, 124, .35);
    box-shadow: 0 10px 26px rgba(25, 31, 56, .08);
}

.np-sr-img {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--np-soft, #f8f9fc);
}

.np-sr-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.np-sr-info { display: block; padding: 8px 2px 2px; }

.np-sr-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}

.np-sr-card:hover .np-sr-name { color: var(--np-pink, #e7287c); }

.np-sr-cat-name {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--np-text, #555b6d);
}

.np-sr-none,
.np-sr-msg {
    margin: 0;
    font-size: 14px;
    color: var(--np-text, #555b6d);
}

.np-sr-msg {
    padding: 26px 22px;
    text-align: center;
}

.np-sr-msg i {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
    color: var(--np-pink, #e7287c);
}

.np-sr-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid var(--np-border, #e1e4ec);
    border-top-color: var(--np-pink, #e7287c);
    border-radius: 50%;
    animation: npSrSpin .8s linear infinite;
}

@keyframes npSrSpin { to { transform: rotate(360deg); } }

.np-sr-foot {
    padding: 12px 22px;
    border-top: 1px solid var(--np-border, #eceef4);
    background: var(--np-soft, #f8f9fc);
    text-align: right;
}

.np-sr-foot a {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--np-pink, #e7287c);
}

@media (max-width: 767px) {
    .search-wrap.np-sr-open .search-cell { top: 60px; }

    .np-sr-box {
        flex-direction: column;
        max-height: calc(100vh - 210px);
    }

    /* Categories become a horizontal chip row above the products */
    .np-sr-left {
        flex: none;
        max-width: none;
        padding: 12px 0 10px;
        border-right: 0;
        border-bottom: 1px solid var(--np-border, #eceef4);
        overflow: visible;
    }

    .np-sr-left h6 { padding: 0 14px 8px; }

    .np-sr-left ul {
        display: flex;
        gap: 8px;
        padding: 0 14px;
        overflow-x: auto;
    }

    .np-sr-cat {
        padding: 6px 12px;
        white-space: nowrap;
        border: 1px solid var(--np-border, #eceef4);
        border-radius: 20px;
        background: #fff;
    }

    .np-sr-cat-text small { display: none; }

    .np-sr-right { padding: 14px; overflow-y: auto; }

    .np-sr-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .np-sr-foot { text-align: center; }
}

/* ---------- Cart badge bump ---------- */

.cart-icon.np-bump { animation: npBump .45s ease; }

@keyframes npBump {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.25); }
}

/* "More" dropdown panel: sub-categories (blue folder) vs products (pink cube) */
.header-main .main-menu .np-fly-products li.np-more-sub a { font-weight: 700; color: var(--np-dark, #09052f) !important; }
.header-main .main-menu .np-fly-products li.np-more-sub a i { color: var(--np-sub) !important; opacity: 1; font-size: 11px; }
.header-main .main-menu .np-fly-products li.np-more-sub a:hover { color: var(--np-sub) !important; }
