.jd-main-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 10px 18px;
    border-radius: 18px;
    background: linear-gradient(112deg, var(--jd-primary, #1d448e), var(--jd-primary-dark, #173970));
    color: #fff;
    box-shadow: 0 8px 20px rgba(29, 68, 142, .14);
}

.jd-main-menu-center {
    flex: 1 1 auto;
    min-width: 0;
}

.jd-menu-category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 12px;
    background: #fff;
    color: var(--jd-primary, #1d448e);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.jd-menu-category-btn:hover,
    .jd-menu-category-btn:focus-visible {
    border-color: #d9e5f8;
    background: #edf3ff;
    color: var(--jd-primary-dark, #173970);
    transform: translateY(-1px);
    outline: none;
}

.jd-menu-category-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jd-menu-category-chevron {
    display: block;
    width: 15px;
    height: 15px;
    margin-inline-start: 2px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

.jd-menu-category-btn[aria-expanded="true"] .jd-menu-category-chevron {
    transform: rotate(180deg);
}

.jd-main-menu-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.7vw, 26px);
    min-width: 0;
    white-space: nowrap;
}

.jd-main-menu-links a {
    position: relative;
    display: block;
    padding: 8px 0;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
    text-decoration: none;
    transition: color .16s ease;
}

.jd-main-menu-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 99px;
    background: #b9d0ff;
    transition: width .18s ease;
}

.jd-main-menu-links a:hover,
    .jd-main-menu-links a:focus-visible {
    color: #e6eeff;
    outline: none;
}

.jd-main-menu-links a:hover::after,
    .jd-main-menu-links a:focus-visible::after {
    width: 100%;
}

.jd-main-menu-wrapper {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.jd-main-menu-links a,
    .jd-maincats-list button,
    .jd-subcat-links a,
    .jd-hm-cat-link,
    .jd-hm-quick a {
    text-decoration: none !important;
}

@media (max-width: 1100px) and (min-width: 992px) {
    .jd-main-menu {
        gap: 12px;
        padding-inline: 14px;
    }
    .jd-main-menu-links {
        gap: 12px;
    }
    .jd-main-menu-links a {
        font-size: 11px;
    }
    .jd-menu-category-btn {
        padding-inline: 12px;
        font-size: 11px;
    }
}

.jd-categories-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.jd-categories-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.jd-categories-dialog {
    background: #ffffff;
    border-radius: 24px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    text-align: right;
}

.jd-category-search {
    flex: 0 0 auto;
    padding: 17px 22px 10px;
    margin: 0;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
}

.jd-category-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px;
    border: 1px solid #dfe7f2;
    border-radius: 13px;
    background: #f8faff;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.jd-category-search-field:focus-within {
    border-color: #a5bce3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,68,142,.07);
}

.jd-category-search-field input[type="search"] {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #26364e;
    font: inherit;
    font-size: 12px;
}

.jd-category-search-field input[type="search"]:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.jd-category-search-field input[type="search"]::placeholder {
    color: #8996aa;
}

.jd-category-search-field button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #1d448e;
    border-radius: 9px;
    background: #1d448e;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.jd-category-search-field button svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jd-category-search-field button:not(.jd-popup-close):hover,
    .jd-category-search-field button:not(.jd-popup-close):focus-visible {
    border-color: #173970;
    background: #173970;
    color: #fff;
    outline: none;
}

.jd-category-search-field #jdCategorySearchReset {
    border-color: #dce4f0;
    background: #fff;
    color: #52627a;
}

.jd-category-search-field #jdCategorySearchReset:hover,
    .jd-category-search-field #jdCategorySearchReset:focus-visible {
    border-color: #c6d4e9;
    background: #edf3ff;
    color: #1d448e;
}

.jd-category-search [hidden] {
    display: none !important;
}

.jd-category-search-status {
    margin: 7px 3px 0;
    color: #65758d;
    font-size: 11px;
    line-height: 1.7;
}

.jd-category-search-hidden {
    display: none !important;
}

.jd-categories-dialog.is-searching .jd-subcat-group {
    display: none !important;
}

.jd-categories-dialog.is-searching .jd-subcat-group.jd-search-match-group {
    display: block !important;
}

.jd-categories-dialog.is-searching .jd-subcats-panel {
    display: block;
}

.jd-category-search-field button.jd-popup-close {
    position: static;
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    background: #f3f6fb;
    color: #40516b;
    font: inherit;
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.jd-category-search-field button.jd-popup-close:hover,
    .jd-category-search-field button.jd-popup-close:focus-visible {
    border-color: #c7d5ea;
    background: #e9eff9;
    color: #1d448e;
    outline: none;
}

.jd-categories-layout {
    display: grid;
    grid-template-columns: 260px minmax(0,1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.jd-maincats-list {
    background: #f5f7fb;
    padding: 1.1rem 1.3rem;
    border-left: 1px solid #e0e4f0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 0;
    overflow-y: auto;
    text-align: right;
}

.jd-maincats-list h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #111827;
}

.jd-maincats-list button {
    position: relative;
    text-align: right;
    border: none;
    background: transparent;
    padding: 0.45rem 1.7rem 0.45rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: #1f2937;
}

.jd-maincats-list button::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.jd-maincats-list button.active,
    .jd-maincats-list button:hover {
    background: #1d448e;
    color: #ffffff;
}

.jd-maincats-list button.active::before {
    opacity: 1;
    background-color: #ffffff;
}

.jd-subcats-panel {
    padding: 1.2rem 1.6rem 1.3rem;
    min-height: 0;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
}

.jd-subcat-group {
    display: none;
}

.jd-subcat-group.active {
    display: block;
}

.jd-subcat-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.jd-subcat-header h3 {
    font-size: 1.1rem;
    color: #111827;
    text-align: right;
}

.jd-view-all {
    font-size: 0.85rem;
    color: #1d448e;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid #1d448e;
    padding: 0.25rem 0.7rem;
    white-space: nowrap;
}

.jd-view-all:hover {
    background: #1d448e;
    color: #fff;
}

.jd-subcat-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 1.1rem;
}

.jd-subcat-block {
    background: #f9fafb;
    border-radius: 16px;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e5e7eb;
}

.jd-subcat-title {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #111827;
    text-decoration: none;
}

.jd-subcat-title:hover {
    color: #1d448e;
}

.jd-subcat-title.not-link {
    cursor: default;
}

.jd-subcat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-top: 0.3rem;
}

.jd-subcat-links a {
    font-size: 0.8rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.jd-subcat-links a:hover {
    background: #1d448e;
    color: #ffffff;
}

.jd-subcat-comingsoon {
    font-size: 0.9rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

.jd-hm-test {
    display: none;
    position: relative;
    z-index: 10000;
    width: 44px;
    height: 44px;
    font-family: inherit;
}

.jd-hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 13px;
    background: var(--jd-primary, #1d448e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(29, 68, 142, .16);
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.jd-hm-btn:hover,
    .jd-hm-btn:focus-visible {
    background: var(--jd-primary-dark, #173970);
    color: #fff;
    outline: 3px solid rgba(29, 68, 142, .16);
    outline-offset: 2px;
}

.jd-hm-btn:active {
    transform: translateY(1px);
}

.jd-hm-icon {
    position: relative;
    width: 21px;
    height: 16px;
}

.jd-hm-icon span {
    position: absolute;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: top .18s ease, transform .18s ease, opacity .14s ease;
}

.jd-hm-icon span:nth-child(1) {
    top: 0;
}

.jd-hm-icon span:nth-child(2) {
    top: 7px;
}

.jd-hm-icon span:nth-child(3) {
    top: 14px;
}

.jd-hm-test.jd-open .jd-hm-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.jd-hm-test.jd-open .jd-hm-icon span:nth-child(2) {
    opacity: 0;
}

.jd-hm-test.jd-open .jd-hm-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.jd-hm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(13, 28, 52, .46);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.jd-hm-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: min(430px, 94vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    border: 0;
    border-right: 1px solid #edf1f7;
    border-radius: 0;
    background: #fff;
    color: #26364e;
    box-shadow: -16px 0 36px rgba(15, 35, 70, .14);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.22, .75, .25, 1), visibility .28s ease;
    overscroll-behavior: contain;
}

.jd-hm-test.jd-open .jd-hm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jd-hm-test.jd-open .jd-hm-panel {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.jd-hm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 17px;
    border-bottom: 1px solid #edf1f7;
    background: #fff;
    color: #1d448e;
}

.jd-hm-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 200px;
}

.jd-hm-logo {
    display: block;
    width: min(190px,100%);
    max-width: 100%;
    height: auto;
    max-height: 46px;
    object-fit: contain;
}

.jd-hm-close {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    background: #fff;
    color: #1d448e;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.jd-hm-close:hover,
    .jd-hm-close:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--jd-primary, #1d448e);
    outline: none;
}

.jd-hm-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 20px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #c4d0e2 transparent;
    overscroll-behavior: contain;
}

.jd-hm-scroll::-webkit-scrollbar {
    width: 5px;
}

.jd-hm-scroll::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #c4d0e2;
}

.jd-hm-block {
    margin: 0 0 14px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid #edf1f7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.jd-hm-block__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.jd-hm-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #243650;
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.jd-hm-search-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jd-hm-search-field {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 43px;
    padding: 4px 7px 4px 5px;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.jd-hm-search-field:focus-within {
    border-color: #9eb7e4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 68, 142, .07);
}

.jd-hm-test .jd-hm-search-field,
    .jd-hm-test .jd-hm-search-field:focus-within,
    .jd-hm-test .jd-hm-search-input,
    .jd-hm-test .jd-hm-search-input:focus,
    .jd-hm-test .jd-hm-search-icon,
    .jd-hm-test .jd-hm-search-icon:focus {
    outline: none !important;
    box-shadow: none;
}

.jd-hm-test .jd-hm-search-field input.jd-hm-search-input {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin: 0;
    padding: 0 7px;
    border: 0;
    background: transparent !important;
    color: #293b55 !important;
    font: inherit;
    font-size: 11.5px;
    line-height: 1.7;
    text-align: right;
    direction: rtl;
}

.jd-hm-search-input::placeholder {
    color: #94a2b7;
}

.jd-hm-search-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    width: auto;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--jd-primary, #1d448e);
    border-radius: 8px;
    background: var(--jd-primary, #1d448e);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .16s ease;
}

.jd-hm-search-icon:hover,
    .jd-hm-search-icon:focus-visible {
    background: var(--jd-primary-dark, #173970);
    color: #fff;
    outline: none;
}

.jd-hm-quick {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 0;
}

.jd-hm-quick a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 39px;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid #f0f2f6;
    border-radius: 0;
    background: transparent;
    color: #35465f;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color .16s ease;
}

.jd-hm-quick a span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.jd-hm-quick a:hover,
    .jd-hm-quick a:focus-visible {
    background: transparent;
    color: var(--jd-primary-dark, #173970);
    outline: none;
}

.jd-hm-acc {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.jd-hm-acc-item + .jd-hm-acc-item {
    border-top: 1px solid #edf1f7;
}

.jd-hm-acc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 10px 2px;
    border: 0;
    background: #fff;
    color: #2e415d;
    cursor: pointer;
    transition: background-color .16s ease;
}

.jd-hm-acc-toggle:hover,
    .jd-hm-acc-toggle:focus-visible {
    background: #f8faff;
    outline: none;
}

.jd-hm-acc-toggle-main {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    direction: rtl;
}

.jd-hm-acc-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    text-align: right;
}

.jd-hm-acc-title {
    width: 100%;
    color: #2c3e58;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.8;
    text-align: right;
}

.jd-hm-acc-arrow {
    display: grid;
    flex: 0 0 20px;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-inline-start: 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7b8ba4;
    transition: transform .18s ease, color .18s ease;
}

.jd-hm-acc-arrow::before {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.jd-hm-acc-item.jd-open .jd-hm-acc-arrow {
    transform: rotate(180deg);
    color: var(--jd-primary, #1d448e);
}

.jd-hm-acc-body {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height .24s ease;
}

.jd-hm-acc-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 3px 11px;
}

.jd-hm-subgroup {
    padding-top: 8px;
    border-top: 1px solid #f0f2f6;
}

.jd-hm-subgroup:first-child {
    padding-top: 0;
    border-top: 0;
}

.jd-hm-subgroup-title {
    margin-bottom: 6px;
    color: #71819a;
    font-size: 10.5px;
    font-weight: 800;
    text-align: right;
}

.jd-hm-subgroup-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.jd-hm-cat-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    min-height: 32px;
    padding: 5px 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #566781;
    font-size: 11.5px;
    line-height: 1.7;
    text-align: right;
    direction: rtl;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.jd-hm-cat-link span {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: right;
}

.jd-hm-cat-link:hover,
    .jd-hm-cat-link:focus-visible {
    background: #f6f8fc;
    color: var(--jd-primary-dark, #173970);
    outline: none;
}

.jd-hm-cat-link--wide {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .jd-hm-panel {
        width: min(400px, 100vw);
        border-radius: 0;
    }
    .jd-hm-header {
        padding: 14px 13px;
    }
    .jd-hm-brand {
        max-width: 176px;
    }
    .jd-hm-logo {
        max-height: 42px;
    }
    .jd-hm-scroll {
        padding: 10px 13px 15px;
    }
    .jd-hm-block {
        padding: 0 0 11px;
        margin-bottom: 12px;
    }
    .jd-hm-quick {
        column-gap: 12px;
    }
    .jd-hm-quick a {
        padding: 7px 1px;
        font-size: 11.5px;
    }
    .jd-hm-acc-inner {
        padding-inline: 3px;
    }
}

.jd-site-header {
    position: relative;
    z-index: 120;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.jd-site-header::before,
    .jd-site-header::after {
    content: none !important;
}

.jd-site-header .jd-container {
    width: min(calc(100% - 48px), var(--jd-container, 1295px));
    max-width: var(--jd-container, 1295px);
    margin-inline: auto;
}

.jd-header-main {
    display: grid;
    grid-template-columns: minmax(230px, 286px) minmax(0, 1fr) auto;
    grid-template-areas: "brand search tools";
    align-items: center;
    gap: 20px;
    min-height: 104px;
    padding: 18px 0 16px;
    direction: rtl;
}

.jd-brand {
    display: flex;
    grid-area: brand;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 286px;
    visibility: visible;
    opacity: 1;
}

.jd-brand-logo {
    display: block !important;
    width: min(286px, 100%) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
    transform-origin: center;
    transition: transform .18s ease;
}

.jd-brand:hover .jd-brand-logo {
    transform: translateY(-1px);
}

.jd-desktop-search {
    display: flex;
    grid-area: search;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    background: #f9fbff;
    box-shadow: 0 5px 16px rgba(22, 45, 85, .055);
    direction: rtl;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.jd-desktop-search:focus-within {
    border-color: #9fb8e4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 68, 142, .09), 0 7px 19px rgba(22, 45, 85, .06);
}

.jd-desktop-search input[type="search"] {
    display: block;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 0 !important;
    border-radius: 10px !important;
    outline: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #263852 !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 12.5px;
    line-height: 1.7;
}

.jd-desktop-search input[type="search"]::placeholder {
    color: #91a0b5;
}

.jd-desktop-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.jd-desktop-search button[type="submit"] {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--jd-primary, #1d448e) !important;
    border-radius: 12px !important;
    background: var(--jd-primary, #1d448e) !important;
    background-image: none !important;
    color: #fff !important;
    font: inherit;
    font-size: 11.5px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.jd-desktop-search button[type="submit"]:hover,
    .jd-desktop-search button[type="submit"]:focus-visible,
    .jd-desktop-search button[type="submit"]:active {
    border-color: var(--jd-primary-dark, #173970) !important;
    background: var(--jd-primary-dark, #173970) !important;
    background-color: var(--jd-primary-dark, #173970) !important;
    color: #fff !important;
}

.jd-desktop-search button[type="submit"]:focus-visible {
    outline: 3px solid rgba(29, 68, 142, .18);
    outline-offset: 2px;
}

.jd-header-tools {
    display: flex;
    grid-area: tools;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    direction: ltr;
}

.jd-header-icon {
    position: relative;
    display: grid;
    flex: 0 0 49px;
    place-items: center;
    width: 49px;
    height: 49px;
    border: 1px solid #1d448e;
    border-radius: 14px;
    background: var(--jd-primary, #1d448e);
    color: #fff !important;
    box-shadow: 0 4px 11px rgba(29, 68, 142, .13);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.jd-header-icon:hover,
    .jd-header-icon:focus-visible,
    .jd-header-icon:active {
    background: var(--jd-primary-dark, #173970) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.jd-header-icon:focus-visible {
    outline: 3px solid rgba(29, 68, 142, .18);
    outline-offset: 2px;
}

.jd-header-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jd-header-icon .jd-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 99px;
    background: #e83e50;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
}

.jd-mobile-menu-slot {
    display: none;
}

.jd-header-navigation {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0 0 17px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.jd-categories-overlay {
    z-index: 9990 !important;
}

.jd-categories-overlay:not(.is-open) {
    visibility: hidden !important;
}

.jd-categories-overlay.is-open {
    visibility: visible !important;
}

.jd-categories-dialog {
    height: min(86vh, 820px) !important;
    max-height: min(90vh, 820px) !important;
}

.jd-categories-layout {
    min-height: 0 !important;
    max-height: none !important;
}

.jd-subcats-panel {
    max-height: none !important;
    overscroll-behavior: contain;
}

.jd-maincats-list button:hover,
    .jd-maincats-list button.active {
    background: var(--jd-primary, #1d448e) !important;
    color: #fff !important;
}

@media (max-width: 1100px) and (min-width: 992px) {
    .jd-site-header .jd-container {
        width: min(calc(100% - 36px), var(--jd-container, 1295px));
    }
    .jd-header-main {
        grid-template-columns: minmax(205px, 248px) minmax(0, 1fr) auto;
        gap: 14px;
    }
    .jd-brand {
        max-width: 248px;
    }
    .jd-brand-logo {
        width: min(248px, 100%) !important;
        max-height: 64px !important;
    }
    .jd-desktop-search {
        height: 50px;
    }
    .jd-desktop-search input[type="search"] {
        height: 40px;
        font-size: 12px;
    }
    .jd-desktop-search button[type="submit"] {
        min-width: 70px;
        height: 40px;
        min-height: 40px;
        padding-inline: 12px;
    }
    .jd-header-tools {
        gap: 7px;
    }
    .jd-header-icon {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        border-radius: 13px;
    }
    .jd-header-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 991px) {
    .jd-site-header {
        padding-top: 0;
        background: transparent;
        border-bottom: 0;
        box-shadow: none;
    }
    .jd-site-header .jd-container {
        width: calc(100% - 24px);
    }
    .jd-header-main {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "tools brand menu";
        align-items: center;
        gap: 8px;
        min-height: 70px;
        margin: 0 0 8px;
        padding: 9px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        direction: ltr;
    }
    .jd-brand {
        grid-area: brand;
        justify-self: center;
        justify-content: center;
        width: auto;
        max-width: 160px;
    }
    .jd-brand-logo {
        width: 154px !important;
        max-height: 43px !important;
    }
    .jd-desktop-search {
        display: none !important;
    }
    .jd-header-tools {
        grid-area: tools;
        justify-self: start;
        justify-content: flex-start;
        gap: 6px;
    }
    .jd-header-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        box-shadow: 0 3px 8px rgba(29, 68, 142, .11);
    }
    .jd-header-icon svg {
        width: 20px;
        height: 20px;
    }
    .jd-header-tools .jd-header-account {
        display: none !important;
    }
    .jd-header-phone {
        display: none !important;
    }
    .jd-mobile-menu-slot {
        display: block;
        grid-area: menu;
        justify-self: end;
        width: 44px;
        max-width: 44px;
        height: 44px;
    }
    .jd-header-navigation {
        display: none !important;
    }
    .jd-hm-test {
        display: block !important;
        width: 44px;
        height: 44px;
    }
    .jd-hm-btn {
        width: 44px;
        height: 44px;
    }
    .jd-hm-test {
        z-index: 10000;
    }
}

@media (max-width: 520px) {
    .jd-site-header .jd-container {
        width: calc(100% - 20px);
    }
    .jd-header-main {
        min-height: 61px;
        gap: 5px;
        margin-bottom: 7px;
        padding: 8px 8px;
        border-radius: 16px;
    }
    .jd-brand {
        max-width: 146px;
    }
    .jd-brand-logo {
        width: 142px !important;
        max-height: 39px !important;
    }
    .jd-header-tools {
        gap: 4px;
    }
    .jd-header-icon {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }
    .jd-header-icon svg {
        width: 19px;
        height: 19px;
    }
    .jd-mobile-menu-slot,
        .jd-hm-test,
        .jd-hm-btn {
        width: 39px;
        height: 39px;
        max-width: 39px;
    }
    .jd-hm-icon {
        width: 20px;
        height: 16px;
    }
}

@media (max-width: 359px) {
    .jd-brand {
        max-width: 130px;
    }
    .jd-brand-logo {
        width: 128px !important;
        max-height: 36px !important;
    }
    .jd-header-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
    .jd-mobile-menu-slot,
        .jd-hm-test,
        .jd-hm-btn {
        width: 37px;
        height: 37px;
        max-width: 37px;
    }
}

body .woocommerce a.button,
    body .woocommerce button.button,
    body .woocommerce input.button,
    body .woocommerce #respond input#submit,
    body .woocommerce .single_add_to_cart_button,
    body .woocommerce .add_to_cart_button,
    body .jd-button,
    body .jahandeliver-add-to-cart,
    body .jdw-add-to-cart,
    body input[type=submit],
    body button[type=submit] {
    background: var(--jd-primary,#1d448e) !important;
    background-color: var(--jd-primary,#1d448e) !important;
    background-image: none !important;
    border-color: var(--jd-primary,#1d448e) !important;
    color: #fff !important;
    transition: transform .14s ease,box-shadow .14s ease !important;
}

body .woocommerce a.button:hover,
    body .woocommerce a.button:focus-visible,
    body .woocommerce a.button:active,
    body .woocommerce button.button:hover,
    body .woocommerce button.button:focus-visible,
    body .woocommerce button.button:active,
    body .woocommerce input.button:hover,
    body .woocommerce input.button:focus-visible,
    body .woocommerce input.button:active,
    body .woocommerce #respond input#submit:hover,
    body .woocommerce #respond input#submit:focus-visible,
    body .woocommerce .single_add_to_cart_button:hover,
    body .woocommerce .add_to_cart_button:hover,
    body .jd-button:hover,
    body .jahandeliver-add-to-cart:hover,
    body .jdw-add-to-cart:hover,
    body input[type=submit]:hover,
    body button[type=submit]:hover {
    background: var(--jd-primary-dark,#173970) !important;
    background-color: var(--jd-primary-dark,#173970) !important;
    background-image: none !important;
    border-color: var(--jd-primary-dark,#173970) !important;
    color: #fff !important;
}

.jd-product-badge-stack {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    max-width: calc(100% - 20px);
}

.jd-product-badge-sale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 9px;
    background: #fff0ee;
    color: #d83d42;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.4;
    white-space: nowrap;
}

.jd-product-rating-star {
    display: inline-grid;
    place-items: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border: 1px solid #f6df9a;
    border-radius: 9px;
    background: #fff9e7;
    color: #e7a628;
    box-shadow: 0 2px 7px rgba(90,65,12,.08);
}

.jd-product-rating-star svg {
    width: 15px;
    height: 15px;
    fill: #f3b52d;
    stroke: #f3b52d;
    stroke-width: 1;
}

.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link {
    position: relative;
    display: block;
}

.woocommerce ul.products li.product .jd-loop-product-badges {
    position: absolute;
    z-index: 6;
    top: 9px;
    right: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    max-width: calc(100% - 18px);
}

.woocommerce ul.products li.product .jd-loop-product-badges .jd-product-rating-star {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.woocommerce ul.products li.product .jd-loop-product-badges .jd-product-badge-sale {
    min-height: 24px;
    padding: 3px 7px;
}

.woocommerce ul.products li.product .onsale {
    display: none !important;
}

.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product .jd-loop-product-badges {
    pointer-events: none;
}

.jahandeliver-product-image .jd-product-badge-stack {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
    max-width: calc(100% - 18px);
}

.woocommerce ul.products li.product .star-rating,
    .woocommerce-page ul.products li.product .star-rating,
    .jd-product-rating-star,
    .jd-product-badge-stack .jd-product-rating-star,
    .jd-loop-product-badges .jd-product-rating-star,
    .jdw-product-card .star-rating,
    .jahandeliver-product-card .star-rating {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.jd-product-badge-stack:empty,
    .jd-loop-product-badges:empty {
    display: none !important;
}

@media (min-width: 992px) {
    .jd-categories-dialog {
        width: min(1160px, calc(100vw - 48px)) !important;
        max-width: 1160px !important;
        max-height: min(86vh, 820px) !important;
        border: 1px solid #e7edf6 !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }
    .jd-categories-dialog {
        height: min(86vh, 820px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .jd-categories-layout {
        grid-template-columns: 244px minmax(0, 1fr) !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    .jd-category-search {
        padding: 17px 22px 10px !important;
    }
    .jd-maincats-list {
        gap: 5px !important;
        padding: 20px 14px !important;
        background: #f5f7fb !important;
        border-left: 1px solid #e5eaf3 !important;
    }
    .jd-maincats-list h3 {
        margin: 0 0 10px !important;
        padding: 0 8px 12px !important;
        border-bottom: 1px solid #e4eaf3 !important;
        font-size: 14px !important;
        font-weight: 900 !important;
    }
    .jd-maincats-list button {
        position: relative !important;
        min-height: 42px !important;
        padding: 9px 15px 9px 10px !important;
        border: 1px solid transparent !important;
        border-radius: 11px !important;
        background: transparent !important;
        color: #35445b !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        transition: background-color .14s ease, color .14s ease, border-color .14s ease !important;
    }
    .jd-maincats-list button::before {
        right: 5px !important;
        width: 3px !important;
        height: 19px !important;
        border-radius: 99px !important;
        background: #1d448e !important;
    }
    .jd-maincats-list button.active,
        .jd-maincats-list button:hover,
        .jd-maincats-list button:focus-visible {
        border-color: #dbe5f5 !important;
        background: #fff !important;
        color: #1d448e !important;
        outline: none !important;
    }
    .jd-maincats-list button.active::before {
        opacity: 1 !important;
    }
    .jd-subcats-panel {
        padding: 24px 24px 22px !important;
        background: #fff !important;
        overscroll-behavior: contain;
    }
    .jd-subcat-header {
        align-items: center !important;
        padding: 0 0 14px !important;
        margin: 0 0 15px !important;
        border-bottom: 1px solid #edf1f7 !important;
    }
    .jd-subcat-header h3 {
        margin: 0 !important;
        font-size: 17px !important;
        font-weight: 900 !important;
        color: #162844 !important;
    }
    .jd-view-all {
        border: 1px solid #dbe5f5 !important;
        border-radius: 9px !important;
        padding: 8px 12px !important;
        background: #f5f8fe !important;
        color: #1d448e !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        transition: background-color .14s ease, color .14s ease, border-color .14s ease !important;
    }
    .jd-view-all:hover {
        background: #1d448e !important;
        border-color: #1d448e !important;
        color: #fff !important;
    }
    .jd-subcat-columns {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
        gap: 12px !important;
    }
    .jd-subcat-block {
        min-width: 0 !important;
        padding: 13px !important;
        border: 1px solid #edf1f7 !important;
        border-radius: 13px !important;
        background: #fbfcff !important;
        transition: border-color .14s ease, background-color .14s ease !important;
    }
    .jd-subcat-block:hover {
        border-color: #d6e1f2 !important;
        background: #fff !important;
    }
    .jd-subcat-title {
        color: #243651 !important;
        font-size: 12px !important;
        font-weight: 850 !important;
        line-height: 1.9 !important;
    }
    .jd-subcat-links {
        gap: 5px !important;
        margin-top: 8px !important;
    }
    .jd-subcat-links a {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 27px !important;
        padding: 4px 8px !important;
        border: 1px solid #e8edf5 !important;
        border-radius: 7px !important;
        background: #fff !important;
        color: #67758a !important;
        font-size: 10.5px !important;
        transition: background-color .14s ease, border-color .14s ease, color .14s ease !important;
    }
    .jd-subcat-links a:hover {
        background: #eef3fc !important;
        border-color: #d0def3 !important;
        color: #173970 !important;
    }
    .jd-category-search-field button.jd-popup-close {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        border: 1px solid #dbe4f1 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-main-menu,
        .jd-maincats-list button,
        .jd-subcat-block,
        .jd-subcat-links a,
        .jd-view-all {
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .jd-category-search {
        padding: 12px 12px 9px;
    }
    .jd-category-search-field {
        gap: 5px;
    }
    .jd-category-search-field button {
        padding-inline: 9px;
    }
}

@media (min-width: 992px) {
    .jd-categories-overlay {
        padding: 24px !important;
        background: rgba(13, 27, 49, .48) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        backdrop-filter: blur(5px) !important;
    }
    .jd-categories-dialog {
        border: 1px solid #e2e8f2 !important;
        border-radius: 20px !important;
        box-shadow: 0 24px 70px rgba(10, 25, 50, .24) !important;
    }
    .jd-categories-layout {
        min-height: 0 !important;
        max-height: none !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }
    .jd-maincats-list {
        padding: 20px 16px !important;
        gap: 6px !important;
        background: #f7f9fd !important;
        border-left: 1px solid #e6ebf4 !important;
    }
    .jd-maincats-list h3 {
        margin: 2px 0 12px !important;
        color: #253650 !important;
        font-size: 14px !important;
        font-weight: 850 !important;
    }
    .jd-maincats-list button {
        min-height: 40px;
        padding: 9px 27px 9px 11px !important;
        border: 1px solid transparent !important;
        border-radius: 10px !important;
        color: #46556d !important;
        font-size: 12px !important;
        font-weight: 650;
        transition: color .16s ease, background-color .16s ease, border-color .16s ease !important;
    }
    .jd-maincats-list button::before {
        right: 11px !important;
        width: 5px !important;
        height: 5px !important;
    }
    .jd-maincats-list button.active,
        .jd-maincats-list button:hover {
        border-color: #dbe5f5 !important;
        background: #eaf0fb !important;
        color: #1d448e !important;
    }
    .jd-maincats-list button.active::before {
        background: #1d448e !important;
    }
    .jd-subcats-panel {
        padding: 18px 24px 24px !important;
        max-height: none !important;
        min-height: 0 !important;
    }
    .jd-subcat-header {
        align-items: center !important;
        margin: 0 0 16px !important;
    }
    .jd-subcat-header h3 {
        color: #243650 !important;
        font-size: 17px !important;
        font-weight: 850 !important;
    }
    .jd-view-all {
        padding: 7px 11px !important;
        border: 1px solid #d5e1f4 !important;
        border-radius: 9px !important;
        background: #f4f7fc !important;
        color: #1d448e !important;
        font-size: 11px !important;
        font-weight: 750 !important;
        transition: background-color .16s ease, border-color .16s ease !important;
    }
    .jd-view-all:hover {
        background: #e7effc !important;
        border-color: #bdcfee !important;
        color: #173970 !important;
    }
    .jd-subcat-columns {
        gap: 12px !important;
    }
    .jd-subcat-block {
        padding: 13px !important;
        border: 1px solid #e6ebf3 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 7px rgba(17, 42, 79, .025) !important;
    }
    .jd-subcat-title {
        color: #283a56 !important;
        font-size: 12px !important;
        font-weight: 850 !important;
    }
    .jd-subcat-title:hover {
        color: #1d448e !important;
    }
    .jd-subcat-links {
        gap: 5px 6px !important;
    }
    .jd-subcat-links a {
        padding: 5px 8px !important;
        border: 1px solid #edf1f7 !important;
        border-radius: 7px !important;
        background: #f6f8fc !important;
        color: #56657b !important;
        font-size: 10.5px !important;
        transition: color .14s ease, background-color .14s ease, border-color .14s ease !important;
    }
    .jd-subcat-links a:hover,
        .jd-subcat-links a:focus-visible {
        border-color: #cad8f0 !important;
        background: #eaf0fb !important;
        color: #173970 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jd-main-menu,
        .jd-main-menu-links a,
        .jd-menu-category-btn,
        .jd-maincats-list button,
        .jd-subcat-block,
        .jd-subcat-links a,
        .jd-view-all,
        .jd-hm-panel,
        .jd-hm-overlay,
        .jd-hm-quick a,
        .jd-hm-cat-link {
        transition: none !important;
        animation: none !important;
    }
}
