﻿.jx-topbar {
    width: 100%;
    height: 62px;
    border-bottom: 1px solid #e7ebf1;
}

.jx-topbar-inner {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jx-topbar-left {
    min-width: 0;
}

.jx-topbar-left h1,
.jx-topbar-left b {
    display: block;
    margin: 0;
    padding: 0;
    color: #172033;
    font-size: 14px;
    line-height: 62px;
    font-weight: normal !important;
    white-space: nowrap;
}

.jx-topbar-right {
    display: flex;
    align-items: center;
    height: 62px;
    flex-shrink: 0;
}

.jx-topbar-link {
    display: inline-flex;
    align-items: center;
    height: 62px;
    color: #172033;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.jx-topbar-link:hover {
    color: #0a5ef3;
}

.jx-topbar-line {
    display: block;
    width: 1px;
    height: 20px;
    margin: 0 20px;
    background: #dfe3ea;
}

.jx-topbar-phone {
    display: inline-flex;
    align-items: center;
    height: 62px;
    margin-left: 24px;
    color: #172033;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none;
}

.jx-topbar-phone i {
    margin-right: 11px;
    color: #0a5ef3;
    font-size: 18px;
}

.jx-topbar-phone:hover {
    color: #0a5ef3;
}

/* Main header */
.jx-header {
    width: 100%;
    background: #fff;
}

.jx-header-inner {
    height: 98px;
    display: flex;
    align-items: center;
}

.jx-header-logo {
    width: 280px;
    flex-shrink: 0;
}

.jx-header-logo a {
    display: inline-block;
}

.jx-header-logo img {
    display: block;
    width: auto;
    max-width: 277px;
    max-height: 70px;
}

.jx-header-search {
    flex: 1;
    min-width: 0;
    margin: 0 50px 0 38px;
}

.jx-header-search form {
    width: 100%;
}

.jx-search-box {
    position: relative;
    width: 100%;
    height: 52px;
    border: 2px solid #0a5ef3;
    border-radius: 28px;
    background: #fff;
    overflow: hidden;
}

.jx-search-box input {
    width: 100%;
    height: 48px;
    padding: 0 96px 0 20px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    outline: none;
}

.jx-search-box input::placeholder {
    color: #667085;
}

.jx-search-box button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 82px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #0a5ef3;
    color: #fff;
    cursor: pointer;
}

.jx-search-box button i {
    color: #fff;
    font-size: 18px;
}

.jx-search-box button:hover {
    background: #084bc4;
}

.jx-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jx-header-bom,
.jx-header-cart {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    font-size: 14px;
    text-decoration: none;
}

.jx-header-bom {
    min-width: 164px;
    padding: 0 28px;
    border: 1px solid #ff5935;
    background: #ff5935;
    color: #fff !important;
}

.jx-header-bom i {
    margin-right: 10px;
    color: #fff;
    font-size: 18px;
}

.jx-header-bom:hover {
    border-color: #f44724;
    background: #f44724;
}

.jx-header-cart {
    min-width: 164px;
    margin-left: 18px;
    padding: 0 20px;
    border: 1px solid #0a5ef3;
    background: #fff;
    color: #172033 !important;
}

.jx-header-cart > i {
    margin-right: 10px;
    color: #0a5ef3;
    font-size: 20px;
}

.jx-header-cart em {
    min-width: 22px;
    height: 22px;
    margin-left: 12px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0a5ef3;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
}

.jx-header-cart:hover {
    color: #0a5ef3 !important;
}

/* Main navigation */
.jx-mainnav {
    position: relative;
    width: 100%;
    height: 66px;
    background: #fff;
    border-bottom: 2px solid #0a5ef3;
    z-index: 500;
}

.jx-mainnav-inner {
    position: relative;
    height: 66px;
    display: flex;
    align-items: stretch;
}

.jx-products-menu {
    position: static;
    width: 340px;
    flex-shrink: 0;
}

.jx-products-trigger {
    width: 100%;
    height: 66px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a5ef3;
    color: #fff !important;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
}

.jx-products-trigger i {
    color: #fff;
    font-size: 22px;
}

.jx-nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jx-nav-links > a {
    position: relative;
    height: 66px;
    margin: 0 24px;
    display: flex;
    align-items: center;
    color: #111;
    font-size: 18px;
    text-decoration: none;
}

.jx-nav-links > a:hover {
    color: #0a5ef3;
}

.jx-nav-links > a:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0a5ef3;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.jx-nav-links > a:hover:after {
    width: 100%;
}

/* Mega menu */
.jx-category-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    width: 100%;
    min-height: 440px;
    background: #fff;
    border: 1px solid #e3eaf5;
    border-top: 2px solid #0a5ef3;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 45px rgba(18, 38, 63, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    overflow: hidden;
    transition: all .2s ease;
}

.jx-products-menu:hover .jx-category-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.jx-category-left {
    width: 340px;
    min-height: 440px;
    padding: 8px 0;
    background: #f7f9fc;
    border-right: 1px solid #e5eaf2;
}

.jx-category-row {
    position: static;
    width: 100%;
}

.jx-category-item {
    width: 100%;
    min-height: 44px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #222;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.jx-category-item span {
    max-width: calc(100% - 24px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jx-category-item i {
    flex-shrink: 0;
    margin-left: 8px;
    color: #8995a8;
    font-size: 15px;
}

.jx-category-row.active > .jx-category-item {
    background: #0a5ef3;
    color: #fff;
    border-left-color: #0a5ef3;
}

.jx-category-row.active > .jx-category-item i {
    color: #fff;
}

.jx-category-panel {
    position: absolute;
    left: 340px;
    right: 0;
    top: 0;
    min-height: 440px;
    padding: 18px 30px 24px;
    background: #fff;
    display: none;
    overflow: visible;
}

.jx-category-row.active > .jx-category-panel {
    display: block;
}

.jx-category-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 4px;
}

.jx-category-column {
    min-width: 0;
}

.jx-category-group {
    margin-bottom: 14px;
}

.jx-category-group h3 {
    margin: 0 0 7px;
    padding: 0 0 7px;
    border-bottom: 1px solid #e5eaf2;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
}

.jx-category-group h3 a {
    position: relative;
    display: block;
    padding-left: 13px;
    color: #0a5ef3;
    text-decoration: none;
}

.jx-category-group h3 a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0a5ef3;
}

.jx-category-group h3 a:hover {
    color: #0a5ef3;
}

.jx-category-group ul {
    margin: 0;
    padding: 0;
}

.jx-category-group ul li {
    position: relative;
    margin: 0;
    padding: 0 0 0 13px;
}

.jx-category-group ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9db5dc;
}

.jx-category-group ul li a {
    display: block;
    padding: 2px 0;
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.jx-category-group ul li a:hover {
    padding-left: 3px;
    color: #0a5ef3;
}

.jx-mainnav {
    transition: box-shadow .25s ease;
}

.jx-mainnav.current {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 5px 20px rgba(18, 38, 63, .12);
    animation: jxNavDown .3s ease;
}

.jx-mainnav.current .jx-products-trigger {
    border-radius: 0;
}

@keyframes jxNavDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

.jx-mobile-menu-toggle {
    display: none;
}


@media screen and (max-width: 767px) {

    .jx-topbar {
        height: 48px;
    }

    .jx-topbar-inner {
        height: 48px;
    }

    .jx-topbar-left {
        display: none;
    }

    .jx-topbar-right {
        width: 100%;
        height: 48px;
        justify-content: flex-end;
    }

    .jx-topbar-link {
        height: 48px;
        font-size: 14px;
    }

    .jx-topbar-line {
        height: 16px;
        margin: 0 12px;
    }

    .jx-topbar-phone {
        height: 48px;
        margin-left: 16px;
        font-size: 14px;
    }

    .jx-topbar-phone i {
        margin-right: 7px;
        font-size: 16px;
    }

    .jx-header {
        background: #fff;
    }

    .jx-header-inner {
        height: auto;
        padding: 15px 0;
        display: flex;
        flex-wrap: wrap;
    }

    .jx-header-logo {
        width: calc(100% - 110px);
    }

    .jx-header-logo img {
        max-width: 190px;
        max-height: 52px;
    }

    .jx-header-actions {
        width: 110px;
        justify-content: flex-end;
    }

    .jx-header-bom,
    .jx-header-cart {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .jx-header-cart {
        position: relative;
        margin-left: 8px;
    }

    .jx-header-bom span,
    .jx-header-cart span {
        display: none;
    }

    .jx-header-bom i,
    .jx-header-cart > i {
        margin: 0;
        font-size: 17px;
    }

    .jx-header-cart em {
        position: absolute;
        right: -5px;
        top: -5px;
        min-width: 18px;
        width: auto;
        height: 18px;
        margin: 0;
        padding: 0 5px;
        font-size: 10px;
        line-height: 18px;
    }

    .jx-header-search {
        order: 3;
        width: 100%;
        flex: none;
        margin: 14px 0 0;
    }

    .jx-search-box {
        height: 46px;
        border-radius: 24px;
    }

    .jx-search-box input {
        height: 42px;
        padding: 0 75px 0 16px;
        font-size: 14px;
    }

    .jx-search-box button {
        right: 3px;
        top: 3px;
        width: 68px;
        height: 36px;
    }

    .jx-mainnav {
        height: auto;
        padding-bottom: 12px;
        background: #fff;
        border-bottom: 1px solid #e5eaf2;
    }

    .jx-mainnav-inner {
        height: auto;
        display: block;
    }

    .jx-mobile-menu-toggle {
        width: 100%;
        height: 50px;
        margin-bottom: 10px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #d9e6ff;
        border-radius: 5px;
        background: #fff;
        color: #172033 !important;
        font-size: 16px;
        text-decoration: none;
    }

    .jx-mobile-menu-toggle i {
        color: #0a5ef3;
        font-size: 19px;
    }

    .jx-mobile-menu-toggle.active {
        border-color: #0a5ef3;
        color: #0a5ef3 !important;
    }

    .jx-mobile-menu-toggle.active i:before {
        content: "\f00d";
    }

    .jx-products-menu {
        width: 100%;
    }

    .jx-products-trigger {
        height: 52px;
        padding: 0 16px;
        justify-content: flex-start;
        border-radius: 5px;
        font-size: 16px;
    }

    .jx-products-trigger i {
        display: none;
    }

    .jx-category-mega {
        display: none !important;
    }

    .jx-nav-links {
        width: 100%;
        margin-top: 10px;
        padding: 5px 15px;
        display: none;
        background: #f7f9fc;
        border: 1px solid #e5eaf2;
        border-radius: 6px;
    }

    .jx-nav-links > a {
        width: 100%;
        height: 46px;
        margin: 0;
        padding: 0 5px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 1px solid #e7ebf1;
        color: #172033;
        font-size: 14px;
    }

    .jx-nav-links > a:last-child {
        border-bottom: 0;
    }

    .jx-nav-links > a:after {
        display: none;
    }

    .jx-nav-links > a:hover {
        color: #0a5ef3;
    }

    .jx-mainnav.current {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        box-shadow: none;
        animation: none;
    }

}

/* Product mega menu alignment */
.jx-products-trigger,
.jx-category-left {
    box-sizing: border-box;
}

.jx-category-mega {
    border-top-left-radius: 0;
}

.jx-category-left {
    border-bottom-left-radius: 8px;
    overflow: hidden;
}

/* Responsive enhancements */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .jx-header-logo {
        width: 220px;
    }

    .jx-header-logo img {
        max-width: 215px;
    }

    .jx-header-search {
        margin: 0 24px;
    }

    .jx-header-bom,
    .jx-header-cart {
        min-width: 120px;
        padding: 0 16px;
    }

    .jx-header-cart {
        margin-left: 12px;
    }

    .jx-products-menu {
        width: 280px;
    }

    .jx-nav-links > a {
        margin: 0 11px;
        font-size: 16px;
    }

    .jx-category-left {
        width: 280px;
    }

    .jx-category-panel {
        left: 280px;
        padding: 16px 22px 22px;
    }

    .jx-category-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 22px;
        row-gap: 4px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .jx-topbar {
        height: 52px;
    }

    .jx-topbar-inner {
        height: 52px;
    }

    .jx-topbar-left h1,
    .jx-topbar-left b,
    .jx-topbar-right,
    .jx-topbar-link,
    .jx-topbar-phone {
        height: 52px;
        line-height: 52px;
    }

    .jx-topbar-left h1,
    .jx-topbar-left b {
        max-width: 470px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .jx-header-inner {
        height: 88px;
    }

    .jx-header-logo {
        width: 190px;
    }

    .jx-header-logo img {
        max-width: 180px;
        max-height: 58px;
    }

    .jx-header-search {
        margin: 0 16px;
    }

    .jx-search-box {
        height: 46px;
    }

    .jx-search-box input {
        height: 42px;
    }

    .jx-search-box button {
        width: 68px;
        height: 34px;
    }

    .jx-header-bom,
    .jx-header-cart {
        min-width: 92px;
        height: 44px;
        padding: 0 12px;
    }

    .jx-header-cart {
        margin-left: 8px;
    }

    .jx-header-bom span,
    .jx-header-cart span {
        font-size: 13px;
    }

    .jx-mainnav {
        height: auto;
        padding: 10px 0;
        border-bottom: 1px solid #e5eaf2;
    }

    .jx-mainnav-inner {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .jx-mobile-menu-toggle {
        width: 100%;
        height: 52px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #d9e6ff;
        border-radius: 6px;
        background: #fff;
        color: #172033 !important;
        font-size: 16px;
    }

    .jx-mobile-menu-toggle i {
        color: #0a5ef3;
        font-size: 19px;
    }

    .jx-products-menu {
        width: 100%;
    }

    .jx-products-trigger {
        height: 52px;
        border-radius: 6px;
        font-size: 16px;
    }

    .jx-products-trigger i,
    .jx-category-mega {
        display: none !important;
    }

    .jx-nav-links {
        grid-column: 1 / -1;
        width: 100%;
        padding: 5px 16px;
        display: none;
        background: #fff;
        border: 1px solid #e5eaf2;
        border-radius: 6px;
    }

    .jx-nav-links > a {
        width: 100%;
        height: 44px;
        margin: 0;
        padding: 0 6px;
        border-bottom: 1px solid #eef2f7;
        font-size: 14px;
    }

    .jx-nav-links > a:last-child {
        border-bottom: 0;
    }

    .jx-nav-links > a:after {
        display: none;
    }

    .jx-mainnav.current {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        box-shadow: none;
        animation: none;
    }
}

@media screen and (max-width: 480px) {
    .jx-topbar-line {
        margin: 0 8px;
    }

    .jx-topbar-phone {
        margin-left: 10px;
        font-size: 12px;
    }

    .jx-topbar-phone i {
        margin-right: 5px;
    }

    .jx-header-logo {
        width: calc(100% - 100px);
    }

    .jx-header-logo img {
        max-width: 165px;
    }

    .jx-header-actions {
        width: 100px;
    }

    .jx-header-bom,
    .jx-header-cart {
        min-width: 40px;
        width: 40px;
        height: 40px;
    }

    .jx-header-search {
        margin-top: 12px;
    }

    .jx-mobile-menu-toggle,
    .jx-products-trigger {
        height: 48px;
        font-size: 15px;
    }

    .jx-nav-links > a {
        height: 43px;
    }
}


/* Dynamic product category menu */
#category-list {
    margin: 0;
    list-style: none;
    overflow: visible;
}

.header-category-primary-item {
    position: static;
    width: 100%;
}

.header-category-primary-link {
    width: 100%;
    min-height: 42px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #222;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color .2s ease, background-color .2s ease;
}

.header-category-primary-text {
    max-width: calc(100% - 24px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-category-primary-arrow {
    position: relative;
    width: 7px;
    height: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.header-category-primary-arrow:before,
.header-category-primary-arrow:after {
    content: "";
    position: absolute;
    right: 0;
    width: 7px;
    height: 1px;
    background: #8995a8;
}

.header-category-primary-arrow:before {
    top: 3px;
    transform: rotate(45deg);
}

.header-category-primary-arrow:after {
    bottom: 3px;
    transform: rotate(-45deg);
}

.header-category-primary-item.active > .header-category-primary-link {
    background: #0a5ef3;
    color: #fff;
    border-left-color: #0a5ef3;
}

.header-category-primary-item.active > .header-category-primary-link .header-category-primary-arrow:before,
.header-category-primary-item.active > .header-category-primary-link .header-category-primary-arrow:after {
    background: #fff;
}

.header-category-primary-item:not(.active) > .header-category-primary-link:hover {
    background: #eef4ff;
    color: #0a5ef3;
}

.header-category-primary-link.no-children {
    padding-right: 24px;
}

.header-category-mega {
    position: absolute;
    left: 340px;
    right: 0;
    top: 0;
    min-height: 440px;
    padding: 18px 30px 24px;
    display: none;
    overflow: hidden;
    background: #fff;
    z-index: 2;
}

.header-category-primary-item.active > .header-category-mega {
    display: block;
    z-index: 3;
}

.header-category-mega-inner {
    width: 100%;
    min-width: 0;
    display: grid;
    align-content: start;
    column-gap: 32px;
    row-gap: 14px;
}

.header-category-mega-inner.header-category-columns-1 {
    grid-template-columns: minmax(0, 1fr);
}

.header-category-mega-inner.header-category-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.header-category-mega-inner.header-category-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.header-category-direct {
    grid-column: 1 / -1;
    min-width: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5eaf2;
}

.header-category-direct-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.header-category-direct-link {
    position: relative;
    padding: 3px 0 3px 13px;
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.header-category-direct-link:before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9db5dc;
}

.header-category-direct-link:hover {
    color: #0a5ef3;
}

.header-category-group {
    min-width: 0;
    margin: 0;
}

.header-category-group-title {
    position: relative;
    margin-bottom: 7px;
    padding: 0 0 7px 13px;
    display: block;
    border-bottom: 1px solid #e5eaf2;
    color: #0a5ef3;
    font-size: 15px;
    line-height: 22px;
    font-weight: 600;
    text-decoration: none;
}

.header-category-group-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0a5ef3;
}

.header-category-group-title:hover {
    color: #084bc4;
}

.header-category-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-category-group ul li {
    position: relative;
    margin: 0;
    padding: 0 0 0 13px;
}

.header-category-group ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9db5dc;
}

.header-category-group ul li a {
    display: block;
    padding: 2px 0;
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.header-category-group ul li a:hover {
    padding-left: 3px;
    color: #0a5ef3;
}

.header-category-more {
    width: 100%;
    list-style: none;
}

.header-category-more > a {
    min-height: 42px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    color: #0a5ef3;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    border-top: 1px solid #e5eaf2;
}

.header-category-more > a:hover {
    background: #edf4ff;
}

.header-category-loading,
.header-category-empty {
    min-height: 42px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    color: #667085;
    font-size: 14px;
    line-height: 20px;
    list-style: none;
}


/* Quick search */
.jx-header-search {
    position: relative;
    z-index: 800;
}

.search-window {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    box-shadow: 0 16px 38px rgba(18, 38, 63, .15);
    z-index: 9999;
}

.search-rst {
    width: 100%;
    max-height: 360px;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    list-style: none;
}

.search-rst > li {
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.search-rst > li:last-child {
    border-bottom: 0;
}

.search-rst > li > a {
    width: 100%;
    min-height: 64px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #172033;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.search-rst > li > a:hover {
    background: #f4f8ff;
    color: #0a5ef3;
}

.search-rst > li > a img {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    border: 1px solid #edf1f6;
    border-radius: 5px;
    background: #fff;
}

.search-rst > li > a span,
.search-rst > li > a strong,
.search-rst > li > a b,
.search-rst > li > a em {
    min-width: 0;
}

.search-rst > li > a strong,
.search-rst > li > a b {
    color: #172033;
    font-weight: 500;
}

.search-rst > li > a:hover strong,
.search-rst > li > a:hover b {
    color: #0a5ef3;
}

.search-loading,
.search-empty,
.search-error {
    min-height: 54px;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    color: #667085;
    font-size: 14px;
    line-height: 20px;
}

.search-loading:before {
    content: "";
    width: 15px;
    height: 15px;
    margin-right: 9px;
    flex-shrink: 0;
    border: 2px solid #d9e6ff;
    border-top-color: #0a5ef3;
    border-radius: 50%;
    animation: jxSearchLoading .7s linear infinite;
}

.search-error {
    color: #c0392b;
}

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


/* Dynamic menu and quick search responsive */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .header-category-mega {
        left: 280px;
        padding: 16px 22px 22px;
    }

    .header-category-mega-inner {
        column-gap: 22px;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .jx-category-mega,
    .header-category-mega {
        display: none !important;
    }

    .search-window {
        top: calc(100% + 7px);
    }
}

@media screen and (max-width: 767px) {
    .jx-category-mega,
    .header-category-mega {
        display: none !important;
    }

    .jx-header-search {
        z-index: 900;
    }

    .search-window {
        top: calc(100% + 7px);
        border-radius: 7px;
    }

    .search-rst {
        max-height: 280px;
    }

    .search-rst > li > a {
        min-height: 58px;
        padding: 7px 10px;
        gap: 9px;
        font-size: 14px;
    }

    .search-rst > li > a img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}


/* Category menu scroll refinement */
.header-category-more {
    display: none !important;
}

.jx-category-mega {
    height: 440px;
    min-height: 440px;
}

.header-category-mega {
    top: 0;
    bottom: 0;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0a5ef3 #edf3fb;
}

.header-category-mega::-webkit-scrollbar {
    width: 6px;
}

.header-category-mega::-webkit-scrollbar-track {
    background: #edf3fb;
    border-radius: 6px;
}

.header-category-mega::-webkit-scrollbar-thumb {
    background: #0a5ef3;
    border-radius: 6px;
}

.header-category-mega::-webkit-scrollbar-thumb:hover {
    background: #084bc4;
}

.header-category-mega-inner {
    min-height: 100%;
    padding-right: 4px;
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .jx-category-mega {
        height: 440px;
        min-height: 440px;
    }
}

/* =========================================================
   HOME ONLY: first-level categories remain visible beside hero.
   Inner pages keep the original hover-to-open mega menu behavior.
   ========================================================= */
@media screen and (min-width: 1025px) {
    body#home .jx-mainnav:not(.current) .jx-category-mega {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        transition: none;
    }

    body#home .jx-mainnav:not(.current) .jx-category-left {
        height: 440px;
        min-height: 440px;
        padding: 8px 0;
        overflow-x: hidden;
        overflow-y: auto;
        pointer-events: auto;
        background: #f7f9fc;
        border-left: 1px solid #e3eaf5;
        border-right: 1px solid #e5eaf2;
        border-bottom: 1px solid #e3eaf5;
        border-radius: 0 0 0 8px;
        box-sizing: border-box;
        scrollbar-width: thin;
        scrollbar-color: #c7d4e8 #f1f4f8;
    }

    body#home .jx-mainnav:not(.current) .jx-category-left::-webkit-scrollbar {
        width: 5px;
    }

    body#home .jx-mainnav:not(.current) .jx-category-left::-webkit-scrollbar-track {
        background: #f1f4f8;
    }

    body#home .jx-mainnav:not(.current) .jx-category-left::-webkit-scrollbar-thumb {
        background: #c7d4e8;
        border-radius: 5px;
    }

    body#home .jx-mainnav:not(.current) .header-category-primary-item > .header-category-mega,
    body#home .jx-mainnav:not(.current) .jx-category-row > .jx-category-panel {
        display: none !important;
    }

    body#home .jx-mainnav:not(.current) .header-category-primary-item.home-category-hover > .header-category-mega,
    body#home .jx-mainnav:not(.current) .jx-category-row.home-category-hover > .jx-category-panel {
        display: block !important;
        pointer-events: auto;
        background: #fff;
        border: 1px solid #e3eaf5;
        border-top: 0;
        box-shadow: 12px 14px 34px rgba(18, 38, 63, .12);
    }

    body#home .jx-mainnav:not(.current) .header-category-primary-item.active:not(.home-category-hover) > .header-category-primary-link,
    body#home .jx-mainnav:not(.current) .jx-category-row.active:not(.home-category-hover) > .jx-category-item {
        background: transparent;
        color: #222;
        border-left-color: transparent;
    }

    body#home .jx-mainnav:not(.current) .header-category-primary-item.active:not(.home-category-hover) > .header-category-primary-link .header-category-primary-arrow:before,
    body#home .jx-mainnav:not(.current) .header-category-primary-item.active:not(.home-category-hover) > .header-category-primary-link .header-category-primary-arrow:after {
        background: #8995a8;
    }

    body#home .jx-mainnav:not(.current) .jx-category-row.active:not(.home-category-hover) > .jx-category-item i {
        color: #8995a8;
    }

    body#home .jx-mainnav:not(.current) .header-category-primary-item.home-category-hover > .header-category-primary-link,
    body#home .jx-mainnav:not(.current) .jx-category-row.home-category-hover > .jx-category-item {
        background: #0a5ef3;
        color: #fff;
        border-left-color: #0a5ef3;
    }

    body#home .jx-mainnav:not(.current) .header-category-primary-item.home-category-hover > .header-category-primary-link .header-category-primary-arrow:before,
    body#home .jx-mainnav:not(.current) .header-category-primary-item.home-category-hover > .header-category-primary-link .header-category-primary-arrow:after {
        background: #fff;
    }

    body#home .jx-mainnav:not(.current) .jx-category-row.home-category-hover > .jx-category-item i {
        color: #fff;
    }

    body#home .jx-mainnav:not(.current) .header-category-mega,
    body#home .jx-mainnav:not(.current) .jx-category-panel {
        height: 440px;
        min-height: 440px;
        max-height: 440px;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }
}

