/* ==========================================================================
   CSS هدر راهکارپویش
   --------------------------------------------------------------------------
   01. هدر دسکتاپ
   02. منو و زیرمنو
   03. جستجو
   04. حساب کاربری
   05. سبد خرید
   06. هدر موبایل
   07. drawer موبایل
   08. sticky
   ========================================================================== */

.rp-header {
    width: 100%;
    min-height: 142px;
    background: var(--rp-bg);
    border-bottom: 1px solid var(--rp-line);
}

.rp-header-inner {
    width: 100%;
    max-width: var(--rp-max-width);
    min-height: 142px;
    margin: 0 auto;
    padding: 28px 36px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
}

.rp-header-top,
.rp-header-bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
}

.rp-brand-search {
    display: flex;
    align-items: center;
    gap: 34px;
    direction: rtl;
}

.rp-header-logo,
.rp-header-logo a,
.rp-header-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.rp-header-logo img,
.rp-header-logo .custom-logo {
    width: auto;
    max-width: 230px;
    max-height: 58px;
}

.rp-site-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--rp-text-strong);
    line-height: 1.1;
    white-space: nowrap;
}

.rp-header-search {
    flex: 0 0 auto;
}

.rp-search-form {
    width: 142px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    direction: rtl;
    padding: 0 13px 0 12px;
    background: var(--rp-surface);
    border: 1px solid rgba(0, 0, 0, 0.035);
    border-radius: var(--rp-radius-pill);
    color: var(--rp-text);
}

.rp-search-form input {
    width: 78px;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--rp-font);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--rp-text);
    text-align: right;
    line-height: 1;
}

.rp-search-form input::placeholder {
    color: #6f7376;
    opacity: 1;
}

.rp-search-form button {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rp-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rp-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    direction: ltr;
}

.rp-action-link {
    width: 24px;
    height: 24px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.rp-action-link img {
    width: 24px;
    height: 24px;
}

.rp-cart-dot {
    position: absolute;
    top: 4px;
    left: -16px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--rp-accent);
}

.rp-header-bottom {
    align-items: center;
}

.rp-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    color: #595d60;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    transition: color .18s ease, transform .18s ease;
}

.rp-faq-link img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.rp-faq-link:hover {
    color: var(--rp-text-strong);
    transform: translateY(-1px);
}

.rp-header-menu {
    display: flex;
    align-items: center;
    direction: rtl;
}

.rp-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    direction: rtl;
}

.rp-main-menu li {
    position: relative;
    margin: 0;
    padding: 0 20px;
    line-height: 1;
}

.rp-main-menu li:first-child {
    padding-right: 0;
}

.rp-main-menu li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 20px;
    transform: translateY(-50%);
    background: #dadad7;
}

.rp-main-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rp-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .18s ease;
}

.rp-main-menu a:hover {
    color: var(--rp-text-strong);
}

.rp-main-menu .menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-inline-start: 2px;
    border-inline-end: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .75;
}

.rp-main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--rp-line);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
    z-index: 999;
}

.rp-main-menu li:hover > .sub-menu,
.rp-main-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rp-main-menu .sub-menu li {
    padding: 0;
}

.rp-main-menu .sub-menu li::before {
    display: none;
}

.rp-main-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .rp-header-inner {
        padding-inline: 24px;
    }

    .rp-brand-search {
        gap: 22px;
    }

    .rp-site-title {
        font-size: 30px;
    }

    .rp-main-menu li {
        padding-inline: 14px;
    }
}

@media (max-width: 768px) {
    .rp-header {
        min-height: auto;
    }

    .rp-header-inner {
        min-height: auto;
        padding: 18px 16px;
        gap: 18px;
    }

    .rp-header-top,
    .rp-header-bottom {
        gap: 18px;
    }

    .rp-brand-search {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }

    .rp-header-search {
        order: 2;
    }

    .rp-search-form {
        width: 126px;
        height: 38px;
    }

    .rp-header-logo img,
    .rp-header-logo .custom-logo {
        max-height: 44px;
        max-width: 180px;
    }

    .rp-site-title {
        font-size: 25px;
    }

    .rp-header-actions {
        gap: 18px;
    }

    .rp-header-bottom {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .rp-header-menu {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .rp-main-menu {
        min-width: max-content;
    }

    .rp-main-menu li {
        padding-inline: 13px;
    }

    .rp-main-menu a {
        font-size: 13px;
    }

    .rp-faq-link {
        align-self: flex-start;
        font-size: 12.5px;
    }
}

/* هدر sticky و شفاف */
.rp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 247, 246, .86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: min-height .22s ease, background-color .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.admin-bar .rp-header {
    top: 32px;
}

.rp-header-top,
.rp-header-inner {
    transition: min-height .22s ease, padding .22s ease, gap .22s ease, opacity .18s ease, transform .22s ease, max-height .22s ease;
}

.rp-is-scrolled .rp-header {
    min-height: 38px;
    background: rgba(247, 247, 246, .72);
    border-bottom-color: rgba(0, 0, 0, .06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .09);
}

.rp-is-scrolled .rp-header-inner {
    min-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
}

.rp-is-scrolled .rp-header-top {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    pointer-events: none;
}

.rp-is-scrolled .rp-header-bottom {
    min-height: 38px;
}

.rp-is-scrolled .rp-faq-link,
.rp-is-scrolled .rp-main-menu a {
    font-size: 12.5px;
}

@media (max-width: 782px) {
    .admin-bar .rp-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    .rp-is-scrolled .rp-header-inner {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .rp-is-scrolled .rp-header-bottom {
        flex-direction: row;
        align-items: center;
        min-height: 36px;
    }

    .rp-is-scrolled .rp-header-menu {
        flex: 1 1 auto;
    }

    .rp-is-scrolled .rp-faq-link {
        flex: 0 0 auto;
    }
}

.rp-header-logo-img {
    width: auto;
    height: auto;
    max-width: 230px;
    max-height: 58px;
    object-fit: contain;
}

.rp-header-menu-mobile {
    display: none;
}

body:not(.rp-header-sticky-enabled) .rp-header {
    position: relative;
    top: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-header,
body:not(.rp-header-sticky-enabled) .rp-header {
    min-height: 142px;
}

body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-header-top {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .rp-header-menu-desktop {
        display: none;
    }

    .rp-header-menu-mobile {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .rp-header-menu-mobile .rp-main-menu {
        min-width: max-content;
    }
}

/* sticky height and mobile header layout */
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header {
    min-height: 50px;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner {
    min-height: 50px;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom {
    min-height: 50px;
}

.rp-mobile-menu-toggle,
.rp-header-mobile-tagline,
.rp-header-mobile-logo-link,
.rp-header-mobile-logo-img {
    display: none;
}

@media (max-width: 768px) {
    .rp-header-inner {
        padding: 14px 18px 12px;
    }

    .rp-header-top {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 10px;
        direction: ltr;
    }

    .rp-header-actions {
        grid-column: 1;
        justify-self: start;
        gap: 15px;
    }

    .rp-brand-search {
        grid-column: 2;
        justify-self: center;
        width: auto;
        justify-content: center;
    }

    .rp-header-search {
        display: none;
    }

    .rp-mobile-menu-toggle {
        grid-column: 3;
        justify-self: end;
        width: 26px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }

    .rp-mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        border-radius: 999px;
        background: var(--rp-text);
        display: block;
    }

    .rp-header-logo.has-mobile-logo .custom-logo-link,
    .rp-header-logo.has-mobile-logo .rp-header-logo-desktop-link {
        display: none;
    }

    .rp-header-logo.has-mobile-logo .rp-header-mobile-logo-link,
    .rp-header-logo.has-mobile-logo .rp-header-mobile-logo-img {
        display: block;
    }

    .rp-header-mobile-logo-img {
        width: auto;
        height: auto;
        max-width: 150px;
        max-height: 44px;
        object-fit: contain;
    }

    .rp-header-mobile-tagline {
        display: block;
        margin-top: 8px;
        text-align: center;
        font-size: 12px;
        font-weight: 400;
        color: var(--rp-text-strong);
        line-height: 1.9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rp-header-bottom {
        display: none;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0,0,0,.06);
    }

    body.rp-mobile-menu-open .rp-header-bottom {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 14px;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner {
        min-height: 50px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top {
        max-height: none;
        opacity: 1;
        overflow: visible;
        transform: none;
        pointer-events: auto;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-mobile-tagline {
        display: none;
    }
}

/* mobile off-canvas sidebar menu */
.rp-mobile-drawer,
.rp-mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 768px) {
    body.rp-mobile-menu-open {
        overflow: hidden;
    }

    body.rp-mobile-menu-open .rp-header-bottom {
        display: none;
    }

    .rp-mobile-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 3000;
        width: min(78vw, 420px);
        height: 100dvh;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        box-shadow: -18px 0 44px rgba(0,0,0,.18);
        transform: translateX(105%);
        transition: transform .28s ease;
        overflow-y: auto;
        direction: rtl;
    }

    body.rp-mobile-menu-open .rp-mobile-drawer {
        transform: translateX(0);
    }

    .rp-mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2990;
        display: block;
        background: rgba(0,0,0,.16);
        border: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: opacity .25s ease, visibility .25s ease;
    }

    body.rp-mobile-menu-open .rp-mobile-drawer-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .rp-mobile-drawer-head {
        min-height: 70px;
        padding: 0 26px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #ececec;
    }

    .rp-mobile-drawer-close {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        border: 0;
        padding: 0;
        background: transparent;
        color: var(--rp-text-strong);
        font-family: var(--rp-font);
        cursor: pointer;
    }

    .rp-mobile-drawer-close span {
        font-size: 34px;
        line-height: 1;
        font-weight: 300;
    }

    .rp-mobile-drawer-close strong {
        font-size: 18px;
        font-weight: 700;
    }

    .rp-mobile-drawer-search {
        min-height: 78px;
        padding: 0 24px;
        display: flex;
        align-items: center;
        gap: 16px;
        border-bottom: 1px solid #ececec;
        color: #777;
    }

    .rp-mobile-drawer-search input {
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: var(--rp-font);
        font-size: 18px;
        font-weight: 600;
        color: var(--rp-text);
        text-align: right;
    }

    .rp-mobile-drawer-search input::placeholder {
        color: #777;
        opacity: 1;
    }

    .rp-mobile-drawer-search button {
        width: 34px;
        height: 34px;
        border: 0;
        padding: 0;
        background: transparent;
        color: #676b6f;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .rp-mobile-drawer-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid #ececec;
        background: #f5f5f5;
    }

    .rp-mobile-drawer-tab {
        min-height: 62px;
        border: 0;
        border-bottom: 3px solid transparent;
        background: transparent;
        font-family: var(--rp-font);
        font-size: 16px;
        font-weight: 700;
        color: #8b8b8b;
        cursor: pointer;
    }

    .rp-mobile-drawer-tab.is-active {
        color: var(--rp-text-strong);
        border-bottom-color: var(--rp-accent);
        background: #ffffff;
    }

    .rp-mobile-drawer-pane {
        display: none;
    }

    .rp-mobile-drawer-pane.is-active {
        display: block;
    }

    .rp-mobile-drawer-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .rp-mobile-drawer-menu li {
        margin: 0;
        border-bottom: 1px solid #ececec;
    }

    .rp-mobile-drawer-menu a {
        min-height: 68px;
        padding: 16px 28px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: var(--rp-text-strong);
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.5;
    }

    .rp-mobile-drawer-menu .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #fafafa;
    }

    .rp-mobile-drawer-menu .sub-menu a {
        min-height: 54px;
        padding-right: 46px;
        font-size: 15px;
        color: #444;
    }
}


/* robust SVG logo sizing */
.rp-header-logo-img.is-svg-logo,
.rp-header-mobile-logo-img.is-svg-logo,
.rp-header-logo img[src$=".svg"],
.rp-header-logo img[src*=".svg?"] {
    display: block;
    width: auto;
    height: auto;
    min-width: 80px;
    min-height: 24px;
    object-fit: contain;
}

.rp-header-logo-img.is-svg-logo,
.rp-header-logo img[src$=".svg"] {
    max-width: 230px;
    max-height: 58px;
}

@media (max-width: 768px) {
    .rp-header-mobile-logo-img.is-svg-logo,
    .rp-header-logo img.rp-header-mobile-logo-img[src$=".svg"],
    .rp-header-logo img.rp-header-mobile-logo-img[src*=".svg?"] {
        width: 150px;
        max-width: 150px;
        height: 44px;
        max-height: 44px;
    }
}


/* equal mobile header side spacing */
@media (max-width: 768px) {
    .rp-header-inner {
        padding-left: 34px;
        padding-right: 18px;
    }

    .rp-header-actions {
        margin-left: 0;
    }

    .rp-cart-dot {
        left: -10px;
    }
}


/* mobile header spacing, sticky height and drawer typography */
@media (max-width: 768px) {
    .rp-header-inner {
        padding-left: 22px;
        padding-right: 22px;
    }

    .rp-cart-dot {
        left: -7px;
    }

    .rp-header-mobile-tagline {
        display: none !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top {
        min-height: 65px;
        height: 65px;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner {
        padding-top: 8px;
        padding-bottom: 8px;
        display: flex;
        align-items: center;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top {
        width: 100%;
    }

    .rp-mobile-drawer-menu a {
        min-height: 56px;
        padding: 13px 24px;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.55;
    }

    .rp-mobile-drawer-menu .sub-menu a {
        min-height: 46px;
        padding-right: 40px;
        font-size: 13px;
    }
}

/* mobile drawer navigation, sticky search and cart dot */
.rp-mobile-sticky-search {
    display: none;
}

.rp-cart-dot {
    right: -8px;
    left: auto;
}

@media (max-width: 768px) {
    .rp-header-mobile-logo-img,
    .rp-header-mobile-logo-img.is-svg-logo,
    .rp-header-logo img.rp-header-mobile-logo-img[src$=".svg"],
    .rp-header-logo img.rp-header-mobile-logo-img[src*=".svg?"] {
        width: auto;
        max-width: 150px;
        height: 40px;
        max-height: 40px;
    }

    .rp-cart-dot {
        right: -7px;
        left: auto;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top {
        display: none;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-mobile-sticky-search {
        width: 100%;
        height: 46px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 16px;
        border-radius: 999px;
        background: #f4f4f3;
        color: #70757a;
        direction: rtl;
    }

    .rp-mobile-sticky-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: var(--rp-font);
        font-size: 14px;
        font-weight: 500;
        color: #343a40;
        text-align: right;
    }

    .rp-mobile-sticky-search input::placeholder {
        color: #777;
        opacity: 1;
    }

    .rp-mobile-sticky-search button {
        width: 28px;
        height: 28px;
        border: 0;
        background: transparent;
        color: #676b6f;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .rp-mobile-drawer {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .rp-mobile-drawer-head {
        min-height: 58px;
        padding: 0 22px;
    }

    .rp-mobile-drawer-close strong {
        font-size: 16px;
    }

    .rp-mobile-drawer-tabs {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .rp-mobile-drawer-tab {
        min-height: 48px;
        font-size: 14px;
        font-weight: 700;
        border-bottom-width: 2px;
    }

    .rp-mobile-drawer-menu .sub-menu {
        display: none !important;
    }

    .rp-mobile-drawer-menu a.has-mobile-submenu {
        position: relative;
        padding-left: 56px;
    }

    .rp-mobile-drawer-menu a.has-mobile-submenu::after {
        content: '';
        position: absolute;
        left: 24px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-top: 2px solid #343a40;
        border-left: 2px solid #343a40;
        transform: translateY(-50%) rotate(-45deg);
    }

    .rp-mobile-submenu-view {
        position: absolute;
        inset: 0;
        z-index: 5;
        display: flex;
        flex-direction: column;
        background: #fff;
        transform: translateX(-105%);
        transition: transform .25s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .rp-mobile-submenu-view.is-active {
        transform: translateX(0);
    }

    .rp-mobile-submenu-back {
        min-height: 54px;
        display: grid;
        grid-template-columns: 54px 1fr;
        align-items: center;
        border: 0;
        border-bottom: 1px solid #ececec;
        background: #ffffff;
        color: #343a40;
        font-family: var(--rp-font);
        padding: 0;
        text-align: right;
        cursor: pointer;
    }

    .rp-mobile-submenu-back strong {
        padding: 0 22px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
    }

    .rp-mobile-submenu-back-icon {
        width: 100%;
        height: 100%;
        border-left: 1px solid #ececec;
        position: relative;
        display: block;
    }

    .rp-mobile-submenu-back-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-top: 2px solid #343a40;
        border-right: 2px solid #343a40;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .rp-mobile-submenu-title {
        display: none;
    }

    .rp-mobile-submenu-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .rp-mobile-submenu-menu li {
        border-bottom: 1px solid #ececec;
    }

    .rp-mobile-submenu-menu a {
        min-height: 54px;
        padding: 13px 24px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: var(--rp-text-strong);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.55;
    }
}


/* prevent desktop/mobile logo duplication */
.rp-header-logo .rp-header-mobile-logo-link,
.rp-header-logo .rp-header-mobile-logo-img {
    display: none !important;
}

@media (min-width: 769px) {
    .rp-header-logo .rp-header-mobile-logo-link,
    .rp-header-logo .rp-header-mobile-logo-img {
        display: none !important;
    }

    .rp-header-logo .rp-header-logo-desktop-link,
    .rp-header-logo .custom-logo-link {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .rp-header-logo.has-mobile-logo .rp-header-logo-desktop-link,
    .rp-header-logo.has-mobile-logo .custom-logo-link {
        display: none !important;
    }

    .rp-header-logo.has-mobile-logo .rp-header-mobile-logo-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .rp-header-logo.has-mobile-logo .rp-header-mobile-logo-img {
        display: block !important;
    }
}


/* desktop dropdown hover bridge - prevents jumping/flicker */
@media (min-width: 769px) {
    .rp-main-menu > .menu-item-has-children::after {
        content: '';
        position: absolute;
        right: 0;
        left: 0;
        top: 100%;
        height: 18px;
        display: block;
        background: transparent;
    }

    .rp-main-menu .sub-menu {
        top: calc(100% + 8px);
        transform: translateY(4px);
        transition: opacity .14s ease, visibility .14s ease, transform .14s ease;
        pointer-events: none;
    }

    .rp-main-menu li:hover > .sub-menu,
    .rp-main-menu li:focus-within > .sub-menu {
        pointer-events: auto;
        transform: translateY(0);
    }
}

/* logo width controls and search overlay */
.rp-header-logo-img,
.rp-header-logo .custom-logo {
    max-width: var(--rp-header-logo-width-desktop, 230px);
}

.rp-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 3200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

body.rp-search-open {
    overflow: hidden;
}

body.rp-search-open .rp-search-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rp-search-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.rp-search-overlay-panel {
    position: relative;
    min-height: 340px;
    padding: 62px 36px 70px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #ececec;
    direction: rtl;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
    transform: translateY(-16px);
    transition: transform .22s ease;
}

body.rp-search-open .rp-search-overlay-panel {
    transform: translateY(0);
}

.rp-search-overlay-close {
    position: absolute;
    top: 34px;
    left: 36px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #202428;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rp-search-overlay-close span {
    font-size: 42px;
    line-height: 1;
    font-weight: 300;
}

.rp-search-overlay-panel h2 {
    margin: 0 0 32px;
    color: #202428;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.45;
}

.rp-search-overlay-panel p {
    margin: 0 0 18px;
    color: #8a8f94;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
}

.rp-search-overlay-form {
    width: min(680px, 92vw);
    margin: 0 auto;
    min-height: 56px;
    padding: 6px 8px 6px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7e9;
    border-radius: 999px;
    background: #f7f7f6;
}

.rp-search-overlay-form input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--rp-font);
    color: #202428;
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}

.rp-search-overlay-form button {
    min-width: 92px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #343a40;
    color: #fff;
    font-family: var(--rp-font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease;
}

.rp-search-overlay-form button:hover {
    transform: scale(.96);
    background: var(--rp-accent);
}

body.rp-search-open .rp-header-search button svg,
body.rp-search-open .rp-mobile-sticky-search button svg {
    opacity: 0;
}

body.rp-search-open .rp-header-search button,
body.rp-search-open .rp-mobile-sticky-search button {
    position: relative;
}

body.rp-search-open .rp-header-search button::before,
body.rp-search-open .rp-header-search button::after,
body.rp-search-open .rp-mobile-sticky-search button::before,
body.rp-search-open .rp-mobile-sticky-search button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #343a40;
}

body.rp-search-open .rp-header-search button::before,
body.rp-search-open .rp-mobile-sticky-search button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

body.rp-search-open .rp-header-search button::after,
body.rp-search-open .rp-mobile-sticky-search button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 768px) {
    .rp-header-mobile-logo-img,
    .rp-header-mobile-logo-img.is-svg-logo {
        max-width: var(--rp-header-logo-width-mobile, 150px);
    }

    .rp-search-overlay-panel {
        min-height: 300px;
        padding: 54px 20px 46px;
    }

    .rp-search-overlay-close {
        top: 18px;
        left: 18px;
    }

    .rp-search-overlay-panel h2 {
        margin-bottom: 22px;
        font-size: 26px;
    }

    .rp-search-overlay-form {
        width: 100%;
    }
}

/* compact search modal with live results */
.rp-search-overlay {
    z-index: 3200;
}

.rp-search-overlay-backdrop {
    background: rgba(255,255,255,.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rp-search-overlay-panel {
    width: min(680px, calc(100vw - 32px));
    min-height: 0;
    max-height: min(680px, calc(100dvh - 90px));
    margin: 76px auto 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e2e4e6;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,.14);
    transform: translateY(-8px) scale(.98);
}

body.rp-search-open .rp-search-overlay-panel {
    transform: translateY(0) scale(1);
}

.rp-search-overlay-form {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 6px 10px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    background: #ffffff;
}

.rp-search-overlay-icon,
.rp-search-overlay-close {
    position: static;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #343a40;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rp-search-overlay-close span {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

.rp-search-overlay-form input[type="search"] {
    height: 34px;
    font-size: 14px;
    font-weight: 500;
}

.rp-search-overlay-form button[type="submit"] {
    min-width: 34px;
    height: 34px;
    background: transparent;
    color: #343a40;
    transform: none;
}

.rp-search-overlay-form button[type="submit"]:hover {
    transform: none;
    background: transparent;
    color: var(--rp-accent);
}

.rp-search-results {
    max-height: calc(min(680px, 100dvh - 90px) - 48px);
    overflow-y: auto;
    padding: 14px 18px 16px;
    background: #fff;
    direction: rtl;
    -webkit-overflow-scrolling: touch;
}

.rp-search-results.is-loading {
    opacity: .62;
}

.rp-search-empty-state {
    padding: 22px 12px;
    color: #777d83;
    font-size: 13px;
    line-height: 1.9;
    text-align: center;
}

.rp-live-search-row {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eeeeee;
}

.rp-live-search-row h3,
.rp-live-search-products h3 {
    margin: 0 0 10px;
    color: #202428;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.rp-live-search-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.rp-live-search-chip {
    min-height: 42px;
    padding: 6px 9px;
    border-radius: 10px;
    background: #f6f7f8;
    color: #202428;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
}

.rp-live-search-chip img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    object-fit: cover;
}

.rp-live-search-products {
    display: grid;
    gap: 8px;
}

.rp-live-search-product {
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f6f7f8;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: #202428;
    text-decoration: none;
}

.rp-live-search-product:hover {
    background: #eef0f2;
}

.rp-live-search-product-img,
.rp-live-search-product-img img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.rp-live-search-product-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rp-live-search-product-info strong {
    color: #202428;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.65;
}

.rp-live-search-price {
    color: #555b60;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .rp-search-overlay-panel {
        width: calc(100vw - 18px);
        margin-top: 70px;
        max-height: calc(100dvh - 140px);
        border-radius: 10px;
    }

    .rp-search-results {
        max-height: calc(100dvh - 190px);
        padding: 12px 14px 14px;
    }
}


/* desktop top header account pill */
.rp-header-actions {
    gap: 12px;
}

.rp-account-pill {
    width: auto;
    min-width: 164px;
    height: 42px;
    padding: 0 14px 0 12px;
    border: 1px solid #dadbdd;
    border-radius: 12px;
    background: #f8f8f7;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #343a40;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rp-account-pill:hover {
    transform: translateY(-1px);
    border-color: #cfd2d4;
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
    background: #ffffff;
}

.rp-account-pill-text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #343a40;
}

.rp-account-pill-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.rp-account-pill-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 768px) {
    .rp-header-actions {
        gap: 15px;
    }

    .rp-account-pill {
        min-width: 0;
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        justify-content: center;
    }

    .rp-account-pill:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
        background: transparent;
    }

    .rp-account-pill-text {
        display: none;
    }
}

/* mobile header search-only bar */
.rp-mobile-header-searchbar {
    display: none;
}

@media (max-width: 768px) {
    .rp-header {
        min-height: 64px;
    }

    .rp-header-inner {
        min-height: 64px;
        padding: 8px 12px;
        justify-content: center;
        gap: 0;
    }

    .rp-header-top,
    .rp-mobile-sticky-search {
        display: none !important;
    }

    .rp-mobile-header-searchbar {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 12px;
        border: 1px solid #e5e7e9;
        border-radius: 10px;
        background: #ffffff;
        color: #343a40;
        direction: rtl;
        box-shadow: 0 1px 0 rgba(0,0,0,.02);
    }

    .rp-mobile-header-searchbar button {
        width: 28px;
        height: 28px;
        border: 0;
        padding: 0;
        background: transparent;
        color: #343a40;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .rp-mobile-header-searchbar input[type="search"] {
        width: auto;
        flex: 0 0 auto;
        min-width: 66px;
        max-width: 85px;
        height: 34px;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: var(--rp-font);
        color: #343a40;
        font-size: 13px;
        font-weight: 500;
        text-align: right;
        padding: 0;
    }

    .rp-mobile-header-searchbar input[type="search"]::placeholder {
        color: #343a40;
        opacity: 1;
    }

    .rp-mobile-header-search-logo {
        width: auto;
        max-width: 84px;
        height: 24px;
        max-height: 24px;
        object-fit: contain;
        display: block;
        flex: 0 0 auto;
    }

    .rp-mobile-header-search-name {
        color: #343a40;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner {
        min-height: 64px;
        height: 64px;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-mobile-header-searchbar {
        display: flex !important;
    }
}

/* force logo width controls for SVG/PNG in header */
.rp-header-logo .rp-header-logo-img,
.rp-header-logo .custom-logo,
.rp-header-logo .rp-header-logo-img.is-svg-logo,
.rp-header-logo img[src$=".svg"],
.rp-header-logo img[src*=".svg?"] {
    width: var(--rp-header-logo-width-desktop, 230px) !important;
    max-width: var(--rp-header-logo-width-desktop, 230px) !important;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .rp-header-logo.has-mobile-logo .rp-header-mobile-logo-img,
    .rp-header-logo.has-mobile-logo .rp-header-mobile-logo-img.is-svg-logo,
    .rp-header-logo img.rp-header-mobile-logo-img[src$=".svg"],
    .rp-header-logo img.rp-header-mobile-logo-img[src*=".svg?"] {
        width: var(--rp-header-logo-width-mobile, 150px) !important;
        max-width: var(--rp-header-logo-width-mobile, 150px) !important;
        height: auto !important;
        max-height: 40px !important;
        object-fit: contain;
    }

    .rp-mobile-header-search-logo {
        width: var(--rp-header-logo-width-mobile, 84px) !important;
        max-width: var(--rp-header-logo-width-mobile, 84px) !important;
        height: 24px !important;
        object-fit: contain;
    }
}


/* search modal: no close button, 3-letter live search */
.rp-search-overlay-form {
    grid-template-columns: 34px minmax(0, 1fr) !important;
}

.rp-search-overlay-close {
    display: none !important;
}


/* live search result layout refinements */
.rp-search-results,
.rp-search-results * {
    direction: rtl;
    text-align: right;
}

.rp-live-search-products h3 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.rp-live-search-product {
    grid-template-columns: 48px minmax(0, 1fr);
    direction: rtl;
}

.rp-live-search-product-info {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.rp-live-search-product-info strong {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-live-search-price {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: left;
}

.rp-live-search-price del,
.rp-live-search-price ins {
    text-decoration: none;
}

.rp-live-search-chip img,
.rp-live-search-chip .attachment-thumbnail,
.rp-live-search-product-img img,
.rp-live-search-product-img .attachment-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.rp-live-search-chip img,
.rp-live-search-chip .attachment-thumbnail {
    width: 30px;
    height: 30px;
}


/* force live search RTL and single-row product price */
.rp-search-overlay-panel,
.rp-search-results,
.rp-search-results div,
.rp-search-results h3,
.rp-search-results a,
.rp-search-results span,
.rp-search-results strong {
    text-align: right !important;
    direction: rtl !important;
}

.rp-live-search-row h3,
.rp-live-search-products h3 {
    width: 100% !important;
    margin: 0 0 10px !important;
    color: #202428 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    text-align: right !important;
}

.rp-live-search-chip {
    font-weight: 400 !important;
    text-align: right !important;
}

.rp-live-search-product {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    direction: rtl !important;
    text-align: right !important;
}

.rp-live-search-product-info {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    direction: rtl !important;
    text-align: right !important;
}

.rp-live-search-product-info strong {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #202428 !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    text-align: right !important;
}

.rp-live-search-price {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    color: #555b60 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    text-align: left !important;
    direction: rtl !important;
}


/* live search spinner in input row */
.rp-search-overlay-form {
    position: relative;
}

.rp-search-overlay-form::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(52, 58, 64, .18);
    border-top-color: var(--rp-accent, #00c99b);
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: rpSearchSpin .72s linear infinite;
}

.rp-search-overlay-form.is-loading::after {
    opacity: 1;
    visibility: visible;
}

.rp-search-overlay-form.is-loading input[type="search"] {
    padding-left: 26px;
}

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


/* small close button inside search input row */
.rp-search-overlay-form {
    grid-template-columns: 34px minmax(0, 1fr) 28px !important;
}

.rp-search-overlay-form .rp-search-overlay-close {
    position: static !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border: 0 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: transparent !important;
    color: #777d83 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.rp-search-overlay-form .rp-search-overlay-close:hover {
    color: #202428 !important;
    background: #f0f1f2 !important;
}

.rp-search-overlay-form .rp-search-overlay-close span {
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.rp-search-overlay-form::after {
    left: 44px;
}


/* subtle border around desktop account pill */
.rp-account-pill {
    border: 1px solid rgba(52, 58, 64, .18) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.02) !important;
}

.rp-account-pill:hover {
    border-color: rgba(52, 58, 64, .30) !important;
}


/* mobile search logo spacing and desktop account dropdown */
@media (max-width: 768px) {
    .rp-mobile-header-searchbar {
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .rp-mobile-header-searchbar input[type="search"] {
        flex: 0 0 auto !important;
        width: 74px !important;
        max-width: 74px !important;
    }

    .rp-mobile-header-search-logo {
        margin-right: 20px !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
    }
}

.rp-account-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rp-account-wrap .rp-account-pill {
    min-width: 164px !important;
    height: 38px !important;
    padding: 0 12px !important;
    border: 1px solid #dfe2e5 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    gap: 9px !important;
    direction: rtl;
}

.rp-account-wrap .rp-account-pill-text {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #202428 !important;
}

.rp-account-wrap .rp-account-pill-icon,
.rp-account-wrap .rp-account-pill-icon img {
    width: 24px !important;
    height: 24px !important;
}

.rp-account-wrap .rp-account-pill:hover {
    transform: none !important;
    border-color: #cfd3d7 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.04) !important;
}

.rp-account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 255px;
    border: 1px solid #e1e4e7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(0,0,0,.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    z-index: 3100;
    overflow: hidden;
    direction: rtl;
}

.rp-account-wrap:hover .rp-account-dropdown,
.rp-account-wrap:focus-within .rp-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rp-account-dropdown-head {
    padding: 13px 16px 12px;
    display: grid;
    gap: 4px;
    border-bottom: 1px solid #eef0f2;
    text-align: right;
}

.rp-account-dropdown-head strong {
    color: #202428;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.rp-account-dropdown-head span {
    color: #697077;
    font-size: 12px;
    font-weight: 400;
    direction: ltr;
    text-align: right;
}

.rp-account-dropdown a {
    min-height: 45px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef0f2;
    color: #202428;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    transition: background-color .16s ease, color .16s ease;
}

.rp-account-dropdown a:last-child {
    border-bottom: 0;
}

.rp-account-dropdown a:hover {
    background: #f7f8f9;
    color: var(--rp-accent);
}

.rp-account-dropdown-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .rp-account-dropdown {
        display: none !important;
    }

    .rp-account-wrap .rp-account-pill {
        min-width: 0 !important;
        width: 24px !important;
        height: 24px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}


/* logged-in account icon-only and cart count badge */
.rp-header-actions {
    gap: 18px !important;
}

.rp-cart-link {
    margin-inline-end: 4px;
}

.rp-cart-dot {
    min-width: 16px !important;
    width: auto !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: var(--rp-accent, #00c99b) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: -7px !important;
    right: -9px !important;
    left: auto !important;
}

.rp-account-wrap.is-logged-in .rp-account-pill {
    min-width: 0 !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 0 !important;
}

.rp-account-wrap.is-logged-in .rp-account-pill:hover {
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
}

.rp-account-wrap.is-logged-in .rp-account-pill-text {
    display: none !important;
}

.rp-account-wrap.is-logged-in .rp-account-pill-icon,
.rp-account-wrap.is-logged-in .rp-account-pill-icon img {
    width: 26px !important;
    height: 26px !important;
}

.rp-account-wrap.is-logged-in .rp-account-dropdown {
    left: -12px;
}

@media (max-width: 768px) {
    .rp-header-actions {
        gap: 18px !important;
    }

    .rp-cart-dot {
        top: -8px !important;
        right: -9px !important;
    }
}


/* mobile search logo left and smaller placeholder */
@media (max-width: 768px) {
    .rp-mobile-header-searchbar input[type="search"] {
        width: 72px !important;
        max-width: 72px !important;
        font-size: 11px !important;
    }

    .rp-mobile-header-searchbar input[type="search"]::placeholder {
        font-size: 11px !important;
    }

    .rp-mobile-header-search-logo {
        margin-right: auto !important;
        margin-left: 0 !important;
    }
}


/* mobile search placeholder text and size */
@media (max-width: 768px) {
    .rp-mobile-header-searchbar input[type="search"] {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        font-size: 13px !important;
    }

    .rp-mobile-header-searchbar input[type="search"]::placeholder {
        font-size: 13px !important;
        color: #343a40 !important;
        opacity: 1 !important;
    }

    .rp-mobile-header-search-logo {
        margin-right: 20px !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
    }
}


/* mobile search modal position */
@media (max-width: 768px) {
    .rp-search-overlay-panel {
        margin-top: 10px !important;
    }
}


/* search modal background blur for whole page */
body.rp-search-open .rp-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom-color: transparent !important;
}

body.rp-search-open .rp-header-top,
body.rp-search-open .rp-header-bottom,
body.rp-search-open .rp-mobile-header-searchbar,
body.rp-search-open .rp-mobile-sticky-search,
body.rp-search-open .rp-main,
body.rp-search-open .rp-footer {
    filter: blur(4px);
    opacity: .72;
    transition: filter .18s ease, opacity .18s ease;
}

body.rp-search-open .rp-search-overlay,
body.rp-search-open .rp-search-overlay * {
    filter: none !important;
}

body.rp-search-open .rp-search-overlay-backdrop {
    background: rgba(255, 255, 255, .42) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}


/* sticky header flicker guard */
.rp-header,
.rp-header-inner,
.rp-header-top,
.rp-header-bottom {
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.rp-header,
.rp-header-inner,
.rp-header-top {
    transition-property: background-color, box-shadow, border-color !important;
}

.rp-is-scrolled .rp-header-top,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top {
    transform: none !important;
}

@media (max-width: 768px) {
    .rp-header,
    .rp-header-inner,
    .rp-header-top,
    .rp-header-bottom {
        transition: background-color .16s ease, box-shadow .16s ease, border-color .16s ease !important;
    }
}


/* sticky desktop header cart icon beside FAQ link */
.rp-header-bottom-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    direction: ltr;
    flex: 0 0 auto;
}

.rp-header-sticky-cart {
    display: none !important;
    width: 24px !important;
    height: 24px !important;
    position: relative !important;
    flex: 0 0 24px !important;
}

.rp-is-scrolled .rp-header-sticky-cart {
    display: inline-flex !important;
}

.rp-header-sticky-cart img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

.rp-header-sticky-cart .rp-cart-dot {
    top: -7px !important;
    right: -9px !important;
    left: auto !important;
}

@media (max-width: 768px) {
    .rp-header-bottom-actions {
        display: none !important;
    }

    .rp-header-sticky-cart {
        display: none !important;
    }
}


/* checkout-only sticky header stability */
body.woocommerce-checkout .rp-site-header,
body.woocommerce-checkout .rp-header,
body.woocommerce-checkout .rp-desktop-header,
body.woocommerce-checkout .rp-header-main,
body.woocommerce-checkout .rp-header-bottom {
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
    transition: none !important;
}


/* mobile sticky header toggle; default is disabled */
@media (max-width: 768px) {
    body:not(.rp-header-mobile-sticky-enabled) .rp-header {
        position: relative !important;
        top: auto !important;
        min-height: auto !important;
        background: rgba(247, 247, 246, .96) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        transition: none !important;
    }

    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header,
    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-inner,
    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-top,
    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-bottom {
        min-height: auto !important;
        max-height: none !important;
        padding-top: inherit;
        padding-bottom: inherit;
        opacity: 1 !important;
        overflow: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-top {
        display: grid !important;
    }

    body:not(.rp-header-mobile-sticky-enabled) .rp-mobile-sticky-search {
        position: relative !important;
        top: auto !important;
    }
}


/* stable sticky header: remove scroll-collapse flicker everywhere */
body.rp-header-sticky-enabled .rp-header,
body.rp-header-sticky-enabled .rp-header-inner,
body.rp-header-sticky-enabled .rp-header-top,
body.rp-header-sticky-enabled .rp-header-bottom {
    transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: auto !important;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-header,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom {
    min-height: unset !important;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner {
    padding-top: inherit !important;
    padding-bottom: inherit !important;
    gap: inherit !important;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-faq-link,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-main-menu a {
    font-size: inherit !important;
}

/* Cart dot must be identical before and after ajax, without needing refresh. */
.rp-cart-dot,
.rp-cart-link .rp-cart-dot,
.rp-header-sticky-cart .rp-cart-dot,
.rp-action-link .rp-cart-dot {
    min-width: 16px !important;
    width: auto !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #FF5722 !important;
    background-color: #FF5722 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: -7px !important;
    right: -9px !important;
    left: auto !important;
    position: absolute !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
}

/* desktop sticky header compact mode + safe account dropdown */

/* Account dropdown should open fully in the normal header and not be clipped. */
.rp-header,
.rp-header-inner,
.rp-header-top,
.rp-brand-search,
.rp-header-actions,
.rp-account-wrap {
    overflow: visible !important;
    contain: none !important;
}

.rp-header-top {
    position: relative !important;
    z-index: 1200 !important;
}

.rp-account-wrap {
    position: relative !important;
    z-index: 1300 !important;
}

.rp-account-dropdown {
    z-index: 2200 !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: auto !important;
    width: 255px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 96px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    clip-path: none !important;
}

/* Desktop sticky state: exactly 50px, only menu + cart icon. */
@media (min-width: 769px) {
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        background: rgba(247, 247, 246, .90) !important;
        border-bottom-color: rgba(0, 0, 0, .06) !important;
        box-shadow: 0 10px 26px rgba(0, 0, 0, .07) !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-inner {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-top,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-mobile-header-searchbar,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-mobile-sticky-search {
        display: none !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom {
        width: 100% !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 24px !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        flex: 0 0 auto !important;
        order: 1 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-sticky-cart {
        display: inline-flex !important;
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        position: relative !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-faq-link {
        display: none !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        order: 2 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-main-menu {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-main-menu li {
        padding-inline: 16px !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-main-menu a {
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* sticky header menu can use a separate Customizer-selected menu */
.rp-header-menu-sticky {
    display: none !important;
}

@media (min-width: 769px) {
    .rp-header-menu-desktop {
        display: flex !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-desktop {
        display: none !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        order: 2 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu li {
        padding-inline: 16px !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu a {
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 768px) {
    .rp-header-menu-sticky {
        display: none !important;
    }
}


/* sticky menu isolation: prevent multiple menus stacking */
.rp-header-menu-sticky {
    display: none !important;
}

@media (min-width: 769px) {
    body.rp-header-sticky-enabled:not(.rp-is-scrolled) .rp-header-menu-desktop {
        display: flex !important;
    }

    body.rp-header-sticky-enabled:not(.rp-is-scrolled) .rp-header-menu-sticky {
        display: none !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom > .rp-header-menu-desktop,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom > .rp-header-menu-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        max-width: 0 !important;
        flex: 0 0 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom > .rp-header-menu-sticky {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
        order: 2 !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky > .rp-main-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky > .rp-main-menu > li {
        flex: 0 0 auto !important;
    }
}

@media (max-width: 768px) {
    .rp-header-menu-sticky {
        display: none !important;
    }
}


/* sticky menu right alignment */
@media (min-width: 769px) {
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom {
        direction: rtl !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom > .rp-header-menu-sticky {
        justify-content: flex-start !important;
        direction: rtl !important;
        text-align: right !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky > .rp-main-menu {
        justify-content: flex-start !important;
        direction: rtl !important;
        margin-right: 0 !important;
        margin-left: auto !important;
        text-align: right !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom-actions {
        margin-right: auto !important;
        margin-left: 0 !important;
        order: 3 !important;
    }
}

/* exact submenu down chevron + orange submenu hover */
/* Use physical right/bottom borders, not logical inline borders; in RTL logical borders made the icon point left. */
.rp-main-menu .menu-item-has-children > a::after,
.rp-header-menu-sticky .rp-main-menu .menu-item-has-children > a::after,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu .menu-item-has-children > a::after {
    content: "" !important;
    width: 7px !important;
    height: 7px !important;
    margin-inline-start: 7px !important;
    margin-inline-end: 0 !important;
    border: 0 !important;
    border-right: 1.6px solid currentColor !important;
    border-bottom: 1.6px solid currentColor !important;
    transform: rotate(45deg) translateY(-2px) !important;
    transform-origin: center !important;
    opacity: .75 !important;
    display: inline-block !important;
    flex: 0 0 7px !important;
}

.rp-main-menu .sub-menu a:hover,
.rp-main-menu .sub-menu li:hover > a,
.rp-header-menu-sticky .rp-main-menu .sub-menu a:hover,
.rp-header-menu-sticky .rp-main-menu .sub-menu li:hover > a,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu .sub-menu a:hover,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu .sub-menu li:hover > a {
    color: #FF5722 !important;
    background: #fff7f3 !important;
}

.rp-main-menu .menu-item-has-children:hover > a,
.rp-header-menu-sticky .rp-main-menu .menu-item-has-children:hover > a,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu .menu-item-has-children:hover > a {
    color: #FF5722 !important;
}

/* checkout-specific dropdown clipping guard */
body.woocommerce-checkout .rp-header,
body.woocommerce-checkout .rp-header-inner,
body.woocommerce-checkout .rp-header-top,
body.woocommerce-checkout .rp-header-bottom,
body.woocommerce-checkout .rp-header-actions,
body.woocommerce-checkout .rp-header-menu,
body.woocommerce-checkout .rp-main-menu,
body.woocommerce-checkout .rp-main-menu > li,
body.woocommerce-checkout .rp-account-wrap {
    overflow: visible !important;
    contain: none !important;
    isolation: auto !important;
}

body.woocommerce-checkout .rp-header {
    z-index: 99990 !important;
}

body.woocommerce-checkout .rp-main-menu .sub-menu,
body.woocommerce-checkout .rp-account-dropdown {
    z-index: 100002 !important;
}

/* never show empty cart badges in header/mobile footer */
.rp-cart-dot[hidden],
.rp-mobile-bottom-count[hidden],
.rp-cart-link.is-empty-cart .rp-cart-dot,
.rp-mobile-bottom-link.is-cart.is-empty-cart .rp-mobile-bottom-count {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.rp-cart-link.is-empty-cart .rp-cart-dot,
.rp-mobile-bottom-link.is-cart.is-empty-cart .rp-mobile-bottom-icon::before,
.rp-mobile-bottom-link.is-cart:not(.has-cart) .rp-mobile-bottom-icon::before,
html.rp-cart-is-empty .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon::before,
body.rp-cart-is-empty .rp-mobile-bottom-link.is-cart .rp-mobile-bottom-icon::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* موبایل: وقتی هدر چسبان موبایل غیرفعال است، حالت scrolled نباید فضا/پرش بسازد. */
@media (max-width: 768px) {
    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header,
    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-inner,
    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-top,
    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-mobile-header-searchbar {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        min-height: 64px !important;
        max-height: none !important;
        margin-top: 0 !important;
    }

    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-inner {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-mobile-header-searchbar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-mobile-tagline,
    body.rp-header-sticky-enabled:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-bottom {
        display: none !important;
    }
}

/* v0.1.389: hard guard for disabled sticky header states.
   When sticky is off globally, or mobile sticky is off on mobile, no scrolled layout may be applied. */
body:not(.rp-header-sticky-enabled) .rp-header,
body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-header {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    height: auto !important;
    background: rgba(247, 247, 246, .96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
}

body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-header-inner,
body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-header-top,
body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-header-bottom,
body:not(.rp-header-sticky-enabled).rp-is-scrolled .rp-mobile-header-searchbar {
    min-height: unset !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
}

@media (max-width: 768px) {
    body:not(.rp-header-mobile-sticky-enabled) .rp-header,
    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header {
        position: relative !important;
        top: auto !important;
        min-height: 64px !important;
        height: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: none !important;
        box-shadow: none !important;
    }

    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-inner {
        min-height: 64px !important;
        height: auto !important;
        padding: 8px 12px !important;
        gap: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-mobile-header-searchbar {
        display: flex !important;
        min-height: 46px !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-top,
    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-header-bottom,
    body:not(.rp-header-mobile-sticky-enabled).rp-is-scrolled .rp-mobile-sticky-search {
        display: none !important;
    }
}

/* v0.1.452 - Header account dropdown uses account dashboard menu SVGs. */
.rp-account-dropdown-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: none;
}

.rp-account-dropdown-item--customer-logout {
    color: #ef3d25 !important;
}

/* ========================================================================== 
   v0.1.512 - Mobile drawer overflow fix and fixed home action
   ========================================================================== */
@media (max-width: 768px) {
    html.rp-mobile-menu-open,
    body.rp-mobile-menu-open {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .rp-mobile-drawer,
    .rp-mobile-drawer *,
    .rp-mobile-submenu-view,
    .rp-mobile-submenu-view * {
        box-sizing: border-box;
    }

    .rp-mobile-drawer {
        width: min(78vw, 420px) !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overscroll-behavior-x: none !important;
        contain: layout paint;
    }

    .rp-mobile-drawer-pane,
    .rp-mobile-drawer-menu,
    .rp-mobile-drawer-menu li,
    .rp-mobile-drawer-menu a,
    .rp-mobile-submenu-view,
    .rp-mobile-submenu-content,
    .rp-mobile-submenu-menu,
    .rp-mobile-submenu-menu li,
    .rp-mobile-submenu-menu a {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .rp-mobile-drawer-menu a,
    .rp-mobile-submenu-menu a {
        min-width: 0 !important;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .rp-mobile-submenu-view {
        width: 100% !important;
        max-width: 100% !important;
        right: 0;
        left: 0;
        overflow-x: hidden !important;
    }

    .rp-mobile-drawer-home {
        position: sticky;
        bottom: 0;
        z-index: 4;
        width: calc(100% - 24px);
        min-height: 48px;
        margin: auto 12px 12px;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid rgba(255, 87, 34, .18);
        border-radius: 16px;
        background: #ffffff;
        color: #ff5722;
        text-decoration: none;
        font-family: var(--rp-font);
        box-shadow: 0 10px 28px rgba(17, 24, 32, .08);
    }

    .rp-mobile-drawer-home::before {
        content: '';
        position: absolute;
        inset: -14px 0 100% 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255,255,255,0), #fff 75%);
    }

    .rp-mobile-drawer-home strong {
        position: relative;
        z-index: 1;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
    }

    .rp-mobile-drawer-home-icon {
        position: relative;
        z-index: 1;
        width: 18px;
        height: 18px;
        display: inline-block;
        flex: 0 0 18px;
    }

    .rp-mobile-drawer-home-icon::before,
    .rp-mobile-drawer-home-icon::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        border: 2px solid currentColor;
    }

    .rp-mobile-drawer-home-icon::before {
        top: 7px;
        width: 13px;
        height: 9px;
        border-top: 0;
        border-radius: 0 0 4px 4px;
    }

    .rp-mobile-drawer-home-icon::after {
        top: 2px;
        width: 11px;
        height: 11px;
        border-left: 0;
        border-bottom: 0;
        transform: translateX(-50%) rotate(-45deg);
        border-radius: 2px;
    }
}


/* ========================================================================== 
   v0.1.512 - Mobile drawer must stay above all sticky/footer/cart layers
   ========================================================================== */
@media (max-width: 768px) {
    .rp-mobile-drawer-backdrop {
        z-index: 1999990 !important;
    }

    .rp-mobile-drawer,
    body.rp-mobile-menu-open .rp-mobile-drawer {
        z-index: 2000000 !important;
    }

    .rp-mobile-submenu-view,
    .rp-mobile-drawer-home {
        z-index: 2000001 !important;
    }

    body.rp-mobile-menu-open .rp-footer-mobile-links.rp-mobile-bottom-bar,
    body.rp-mobile-menu-open .rp-sticky-add-to-cart,
    body.rp-mobile-menu-open .rp-mobile-cart-toast {
        z-index: 1000 !important;
    }
}

/* ========================================================================== 
   v0.1.512 - Mobile drawer absolute top layer
   ========================================================================== */
@media (max-width: 1024px) {
    html body.rp-mobile-menu-open {
        isolation: isolate !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-drawer-backdrop,
    html body.rp-mobile-menu-open .rp-mobile-drawer,
    html body.rp-mobile-menu-open .rp-mobile-drawer * {
        transform-style: flat !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-drawer-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483645 !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-drawer,
    html body.rp-mobile-menu-open .rp-mobile-drawer[aria-hidden="false"] {
        position: fixed !important;
        z-index: 2147483646 !important;
        isolation: isolate !important;
        will-change: transform !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-drawer-head,
    html body.rp-mobile-menu-open .rp-mobile-drawer-tabs,
    html body.rp-mobile-menu-open .rp-mobile-drawer-home,
    html body.rp-mobile-menu-open .rp-mobile-drawer-close {
        position: relative !important;
        z-index: 2147483647 !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-bottom-nav,
    html body.rp-mobile-menu-open .rp-sticky-add-to-cart,
    html body.rp-mobile-menu-open .rp-mobile-sticky-add-to-cart,
    html body.rp-mobile-menu-open .rp-single-sticky-add-to-cart,
    html body.rp-mobile-menu-open .rp-cart-drawer,
    html body.rp-mobile-menu-open .rp-cart-drawer-backdrop,
    html body.rp-mobile-menu-open .rp-feedback-toast,
    html body.rp-mobile-menu-open .rp-toast,
    html body.rp-mobile-menu-open .woocommerce-store-notice,
    html body.rp-mobile-menu-open .wp-block-woocommerce-customer-account,
    html body.rp-mobile-menu-open .admin-bar,
    html body.rp-mobile-menu-open #wpadminbar {
        z-index: 1 !important;
    }
}

/* ========================================================================== 
   v0.1.513 - Mobile drawer home icon in header row
   ========================================================================== */
@media (max-width: 768px) {
    .rp-mobile-drawer-head {
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-home {
        position: relative !important;
        inset: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 2147483647 !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 42px !important;
        order: 2 !important;
        border: 1px solid #ececec !important;
        border-radius: 14px !important;
        background: #fff !important;
        color: #111820 !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-close {
        order: 1 !important;
    }

    .rp-mobile-drawer-home::before,
    .rp-mobile-drawer-home strong {
        display: none !important;
        content: none !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-home-icon {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        color: currentColor !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-drawer-head .rp-mobile-drawer-home {
        z-index: 2147483647 !important;
    }
}

/* ========================================================================== 
   v0.1.678 - Mobile drawer submenu header overlap fix
   ========================================================================== */
@media (max-width: 768px) {
    .rp-mobile-drawer-head {
        position: relative !important;
        z-index: 20 !important;
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) 58px !important;
        align-items: center !important;
        min-height: 70px !important;
        padding: 0 14px !important;
        gap: 8px !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-close {
        grid-column: 3 !important;
        justify-self: end !important;
        order: 0 !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        padding: 0 !important;
        gap: 0 !important;
        justify-content: center !important;
        border-left: 1px solid #ececec !important;
        box-sizing: border-box !important;
        background: transparent !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-close strong {
        display: none !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-close span {
        display: block !important;
        font-size: 32px !important;
        line-height: 1 !important;
    }

    .rp-mobile-drawer-head .rp-mobile-drawer-home {
        grid-column: 1 !important;
        justify-self: start !important;
        order: 0 !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;
        border-radius: 18px !important;
    }

    .rp-mobile-submenu-view {
        top: 70px !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        height: auto !important;
        z-index: 10 !important;
    }

    .rp-mobile-submenu-back {
        min-height: 56px !important;
        grid-template-columns: 56px minmax(0, 1fr) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 3 !important;
        background: #fff !important;
    }

    .rp-mobile-submenu-back strong {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 16px !important;
        font-size: 14px !important;
    }
}


/* ========================================================================== 
   v0.1.679 - Mobile drawer close and home buttons in one header row
   ========================================================================== */
@media (max-width: 768px) {
    .rp-mobile-drawer .rp-mobile-drawer-head,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        direction: ltr !important;
        min-height: 70px !important;
        height: 70px !important;
        padding: 8px 14px !important;
        gap: 12px !important;
        box-sizing: border-box !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close {
        position: relative !important;
        inset: auto !important;
        order: 1 !important;
        flex: 0 0 54px !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        grid-column: auto !important;
        justify-self: auto !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close span,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close span {
        display: block !important;
        font-size: 34px !important;
        line-height: 1 !important;
        transform: none !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close strong,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close strong {
        display: none !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-home,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-home {
        position: relative !important;
        inset: auto !important;
        order: 2 !important;
        flex: 0 0 54px !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        grid-column: auto !important;
        justify-self: auto !important;
        border: 1px solid #ececec !important;
        border-radius: 18px !important;
        background: #fff !important;
        color: #111820 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-home::before,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-home::before {
        display: none !important;
        content: none !important;
    }
}

/* ========================================================================== 
   v0.1.687 - Mobile drawer trust badges slider from footer customizer settings
   ========================================================================== */
@media (max-width: 768px) {
    .rp-mobile-drawer-badges {
        width: 100% !important;
        margin: 16px 0 18px !important;
        padding: 0 !important;
        direction: rtl !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border-top: 1px solid #f0f1f2 !important;
        border-bottom: 1px solid #f0f1f2 !important;
        background: #fff !important;
    }

    .rp-mobile-drawer-badges-track {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 18px 14px !important;
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: calc((100% - 16px) / 3) !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        direction: rtl !important;
    }

    .rp-mobile-drawer-badges-track::-webkit-scrollbar {
        display: none !important;
    }

    .rp-mobile-drawer-badge,
    .rp-mobile-drawer-badge--html {
        min-width: 0 !important;
        width: 100% !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        scroll-snap-align: start !important;
        border: 1px solid #eef1f4 !important;
        border-radius: 14px !important;
        background: #f8f9fa !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        overflow: hidden !important;
    }

    .rp-mobile-drawer-badge img,
    .rp-mobile-drawer-badge--html img,
    .rp-mobile-drawer-badge--html a img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: 46px !important;
        max-height: 46px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .rp-mobile-drawer-badge--html a,
    .rp-mobile-drawer-badge--html span {
        width: 100% !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
    }
}

/* ========================================================================== 
   v0.1.688 - Mobile drawer trust badges sizing and track spacing
   ========================================================================== */
@media (max-width: 768px) {
  .rp-mobile-drawer-badge,
  .rp-mobile-drawer-badge--html {
    min-width: 50px !important;
    width: 65px !important;
    height: 65px !important;
    min-height: 55px !important;
    padding: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    scroll-snap-align: start !important;
    border: 1px solid #eef1f4 !important;
    border-radius: 4px !important;
    background: #f8f9fa !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    overflow: hidden !important;
  }
}

@media (max-width: 768px) {
  .rp-mobile-drawer-badges-track {
    width: 260px !important;
    max-width: 100% !important;
    padding: 12px 18px 14px !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 16px) / 3) !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    margin-right: 15px !important;
  }
}

.rp-mobile-drawer-badges {
  margin-top: 50px !important;
}

@media (max-width: 768px) {
  .rp-mobile-drawer-badges {
    width: 100% !important;
    margin: 16px 0 18px !important;
    margin-top: 16px !important;
    padding: 0 !important;
    direction: rtl !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-top: 0px solid #f0f1f2 !important;
    border-bottom: 0px solid #f0f1f2 !important;
    background: #fff !important;
  }
}
