/* ==========================================================================
   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-header-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-theme-general-accent, var(--rp-accent, #fd314a));
    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: var(--rp-type-header_navigation-size, 13px);
    font-weight: var(--rp-type-header_navigation-weight, 400);
    line-height: 1.2;
    white-space: nowrap;
    transition: color .18s ease;
}

@media (min-width: 769px) {
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li {
        display: flex;
        align-items: center;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li > a {
        min-height: 24px;
    }
}

.rp-main-menu a:is(:hover, :focus-visible) {
    color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a));
}

.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: var(--rp-type-header_navigation-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: var(--rp-type-header_navigation-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: var(--rp-header-sticky-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 {
    font-size: 12.5px;
}

.rp-is-scrolled .rp-main-menu a {
    font-size: var(--rp-type-header_navigation-size, 13px);
}

@media (max-width: 782px) {
    .admin-bar .rp-header {
        top: var(--rp-header-sticky-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;
    }

    /* The drawer is inside the header stacking context, while the notice is a body sibling. */
    body.rp-mobile-menu-open .rp-header {
        z-index: 1003;
    }

    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: 50px;
        padding: 10px 22px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.45;
    }

    .rp-mobile-drawer-menu .sub-menu a {
        min-height: 44px;
        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) {
    /* iOS zooms focused form controls whose computed font size is below 16px. */
    html body input[type="search"],
    html body form[role="search"] input[name="s"] {
        font-size: 16px !important;
    }

    .rp-mobile-drawer-tabs--single {
        grid-template-columns: minmax(0, 1fr);
    }

    html body input[type="search"]::placeholder,
    html body form[role="search"] input[name="s"]::placeholder {
        font-size: 16px !important;
    }

    .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: 44px;
        font-size: 13px;
        font-weight: 700;
        border-bottom-width: 2px;
    }

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

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

    :is(.rp-mobile-drawer-menu, .rp-mobile-submenu-menu) a.has-mobile-submenu::after {
        content: '';
        position: absolute;
        left: 24px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-top: 2px solid var(--rp-theme-header-text, #343a40);
        border-left: 2px solid var(--rp-theme-header-text, #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: 50px;
        padding: 10px 22px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: var(--rp-text-strong);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.45;
    }
}


/* 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:not(.rp-menu-mega-ready)::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-clear {
    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-clear svg {
    width: 20px;
    height: 20px;
}

.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, 50px);
    }

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

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

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

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

/* Search surface with live results; inline geometry overrides are defined below. */
.rp-search-overlay {
    z-index: 3200;
}

.rp-search-overlay.rp-search-inline {
    transition: opacity .32s ease, visibility .32s ease;
}

.rp-search-inline .rp-search-overlay-backdrop {
    background: transparent !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

html body .rp-search-inline .rp-search-overlay-panel {
    position: absolute;
    top: var(--rp-inline-search-top);
    right: var(--rp-inline-search-right);
    left: auto;
    width: var(--rp-inline-search-width);
    margin: 0;
    transform: none;
    max-height: calc(100dvh - var(--rp-inline-search-top) - 12px);
    transition: width .32s cubic-bezier(.22, .61, .36, 1);
}

html body.rp-search-open .rp-search-inline .rp-search-overlay-panel {
    width: var(--rp-inline-search-expanded-width);
    transform: none;
}

html body .rp-search-inline .rp-search-overlay-form {
    min-height: var(--rp-inline-search-height);
}

@media (prefers-reduced-motion: reduce) {
    html body .rp-search-overlay.rp-search-inline,
    html body .rp-search-inline .rp-search-overlay-panel {
        transition: none;
    }
}

.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-clear {
    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-clear svg {
    width: 18px;
    height: 18px;
}

.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-history {
    padding: 12px 18px 4px;
    border-top: 1px solid #edf0ef;
    background: #fff;
    direction: rtl;
}

.rp-search-history[hidden] {
    display: none !important;
}

.rp-search-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.rp-search-history__head strong {
    color: #343a40;
    font-size: var(--rp-search-badge-size, var(--rp-type-meta-size, 12px)) !important;
    font-weight: var(--rp-search-badge-weight, var(--rp-type-meta-weight, 400)) !important;
}

.rp-search-history__head button {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #8a4b48;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.rp-search-history__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.rp-search-history__chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    overflow: hidden;
    border: 1px solid #dce5e2;
    border-radius: 16px;
    background: #f4f8f7;
}

.rp-search-history__chip button {
    min-width: 0;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #31534d;
    font: inherit;
    cursor: pointer;
}

.rp-search-history__apply {
    max-width: 190px;
    padding-inline: 11px 7px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px !important;
}
.rp-search-history__remove {
    color: var(--rp-search-badge-color, #31534d) !important;
}

.rp-search-history__remove {
    width: 28px;
    flex: 0 0 28px;
    color: #7d8986 !important;
    font-size: 17px !important;
}

.rp-search-history__chip:hover {
    border-color: #a9c1bb;
}

.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;
    color: #343a40;
    background-color: currentColor;
    -webkit-mask: var(--rp-header-account-icon) center / contain no-repeat;
    mask: var(--rp-header-account-icon) center / contain no-repeat;
    transition: color .18s ease;
}

.rp-account-pill-icon img {
    width: 24px;
    height: 24px;
    display: block;
    opacity: 0;
    pointer-events: none;
}

.rp-account-pill:is(:hover, :focus-visible) .rp-account-pill-icon {
    color: var(--rp-accent, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)));
}

@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;
    object-position: right center;
}
.rp-search-results a:focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: -2px;
    border-radius: 6px;
}

@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, 50px) !important;
        max-width: var(--rp-header-logo-width-mobile, 50px) !important;
        height: auto !important;
        max-height: 40px !important;
        object-fit: contain;
    }

    .rp-mobile-header-search-logo {
        width: var(--rp-mobile-search-logo-width, 50px) !important;
        max-width: var(--rp-mobile-search-logo-width, 50px) !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-clear {
    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;
}

/* A mobile submenu replaces the tab row with its Back control. The tabs used
 * to sit above this overlay because a legacy global stacking override gave
 * them the maximum z-index, hiding the Back control underneath. */
@media (max-width: 768px) {
    html body.rp-mobile-menu-open .rp-mobile-drawer.is-submenu-open .rp-mobile-drawer-tabs {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    html body.rp-mobile-menu-open .rp-mobile-drawer.is-submenu-open .rp-mobile-submenu-view.is-active {
        z-index: 2147483647 !important;
    }
}

/* Brand results are intentionally a horizontal rail: names and logos are
 * independently configurable, while fixed-size items never overlap. */
.rp-live-search-row--brands .rp-live-search-chips {
    gap: var(--rp-search-brand-item-gap, 10px);
    overscroll-behavior-inline: contain;
}
.rp-live-search-row--terms-carousel .rp-live-search-terms-carousel-track {
    cursor: grab;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    touch-action: pan-x pan-y pinch-zoom;
    -ms-overflow-style: none;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: none !important;
}
.rp-live-search-row--terms-carousel .rp-live-search-terms-carousel-track::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}
.rp-live-search-row--terms-carousel .rp-live-search-terms-carousel-track.is-rp-dragging {
    cursor: grabbing;
    user-select: none;
}

.rp-live-search-row--brands .rp-live-search-brand-chip {
    flex: 0 0 auto;
    min-height: calc(var(--rp-search-brand-image-size, 42px) + 12px);
    gap: var(--rp-search-brand-item-gap, 10px);
    scroll-snap-align: start;
}

.rp-live-search-row--brands .rp-live-search-brand-chip img,
.rp-live-search-row--brands .rp-live-search-brand-chip .attachment-thumbnail {
    width: var(--rp-search-brand-image-size, 42px);
    height: var(--rp-search-brand-image-size, 42px);
    max-width: var(--rp-search-brand-image-size, 42px);
    flex: 0 0 var(--rp-search-brand-image-size, 42px);
    border-radius: 7px;
    object-fit: contain;
    background: #fff;
}


/* 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, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)));
    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-clear {
    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-clear:hover {
    color: #202428 !important;
    background: #f0f1f2 !important;
}

.rp-search-overlay-form .rp-search-overlay-clear svg {
    width: 17px !important;
    height: 17px !important;
}

.rp-search-overlay-field::-webkit-search-cancel-button,
#rp-search-overlay-field::-webkit-search-cancel-button {
    display: none;
}

:is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"]) .rp-search-overlay-form .rp-search-overlay-clear,
body:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark) .rp-search-overlay-form .rp-search-overlay-clear {
    color: #cbd5e1 !important;
}
:is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"]) .rp-search-overlay-form .rp-search-overlay-clear:hover,
body:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark) .rp-search-overlay-form .rp-search-overlay-clear:hover {
    color: #ffffff !important;
    background: #29313c !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: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eef0f2;
    text-align: right;
    direction: rtl;
}

.rp-account-dropdown-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 100%;
    overflow: hidden;
    background: #eef0f2;
}

.rp-account-dropdown-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

.rp-account-dropdown-head-text {
    min-width: 0;
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
}

.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, var(--rp-theme-general-accent, var(--rp-accent, #fd314a))) !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;
    }
}


/* Frost the visible sticky surface without changing its configured color/opacity. */
@media (min-width: 769px) {
    body.rp-header-sticky-enabled.rp-is-scrolled:not(.rp-search-open) .rp-header {
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }
}

@media (max-width: 768px) {
    body.rp-header-sticky-enabled.rp-header-mobile-sticky-enabled.rp-is-scrolled:not(.rp-search-open) .rp-header {
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }
}

/* Native header field expansion and its non-modal results dropdown. */
html body .rp-search-overlay:not(.rp-search-in-header) {
    display: none !important;
}
.rp-inline-search-host { position: relative; }
html body .rp-search-form {
    width: 142px;
    max-width: calc(100vw - 24px);
    transition: width .32s cubic-bezier(.22, .61, .36, 1);
}
html body .rp-search-form.rp-search-expanded { width: min(560px, 48vw); }
html body .rp-mobile-header-searchbar input[type="search"],
html body .rp-mobile-sticky-search input[type="search"] {
    min-width: 0;
    padding-inline: 12px;
    transition: width .32s ease, flex-grow .32s ease;
}
html body .rp-search-expanded input[type="search"] { flex: 1 1 auto; width: 100%; }
html body .rp-search-expanded .rp-mobile-header-search-logo,
html body .rp-search-expanded .rp-mobile-header-search-name {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width .32s ease, opacity .32s ease;
}
html body .rp-search-in-header {
    position: absolute;
    inset: auto 0 auto auto;
    top: 100%;
    width: 100%;
    z-index: 3200;
}
@media (min-width: 769px) {
    html body .rp-header-search .rp-search-in-header {
        /* Layout copy at its final width, so wrapping cannot pump the height. */
        width: min(560px, 48vw);
        max-width: calc(100vw - 24px);
    }
}
@media (max-width: 768px) {
    html body .rp-search-in-header {
        width: var(--rp-search-anchor-width, 100%);
        left: var(--rp-search-anchor-left, 0px);
        right: auto;
        top: var(--rp-search-anchor-top, 100%);
    }
    html body .rp-search-in-header .rp-search-overlay-panel {
        width: 100%;
        box-sizing: border-box;
    }
}
html body .rp-search-in-header .rp-search-overlay-panel {
    position: relative;
    inset: auto;
    margin: 6px 0 0 !important;
    width: 100%;
    max-height: min(480px, 60dvh);
    transform: none;
    display: flex;
    flex-direction: column;
}
html body .rp-search-in-header .rp-search-history { flex: 0 0 auto; }
html body .rp-search-in-header #rp-search-results {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rp-accent) transparent;
}
@supports selector(::-webkit-scrollbar) {
    html body .rp-search-in-header #rp-search-results {
        scrollbar-width: auto !important;
        scrollbar-color: auto !important;
    }
    html body .rp-search-in-header #rp-search-results::-webkit-scrollbar {
        width: 4px;
    }
    html body .rp-search-in-header #rp-search-results::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }
    html body .rp-search-in-header #rp-search-results::-webkit-scrollbar-track {
        background: transparent;
    }
    html body .rp-search-in-header #rp-search-results::-webkit-scrollbar-thumb {
        background: var(--rp-accent);
        border-radius: 999px;
    }
}
html body .rp-search-in-header .rp-search-overlay-form,
html body .rp-search-in-header .rp-search-overlay-backdrop { display: none; }
/* Reveal dropdown copy only after the .32s field-width transition finishes. */
html body .rp-search-in-header .rp-search-results,
html body .rp-search-in-header .rp-search-history {
    visibility: hidden !important;
    opacity: 0 !important;
    transition: none !important;
}
html body.rp-search-open .rp-search-in-header.is-content-ready .rp-search-results,
html body.rp-search-open .rp-search-in-header.is-content-ready .rp-search-history {
    visibility: visible !important;
    opacity: 1 !important;
}
html body.rp-search-open { overflow: auto; }
html body.rp-search-open .rp-header { background: var(--rp-theme-header-background, var(--rp-bg)) !important; }
html body.rp-search-open .rp-header-top,
html body.rp-search-open .rp-header-bottom,
html body.rp-search-open .rp-mobile-header-searchbar,
html body.rp-search-open .rp-mobile-sticky-search {
    filter: none !important;
    opacity: 1;
    overflow: visible;
}
html body.rp-search-open .rp-header-search button svg,
html body.rp-search-open .rp-mobile-sticky-search button svg { opacity: 1; }
html body.rp-search-open .rp-header-search button::before,
html body.rp-search-open .rp-header-search button::after,
html body.rp-search-open .rp-mobile-sticky-search button::before,
html body.rp-search-open .rp-mobile-sticky-search button::after { display: none; }
@media (prefers-reduced-motion: reduce) {
    html body .rp-search-form { transition: none; }
    html body .rp-search-in-header .rp-search-results,
    html body .rp-search-in-header .rp-search-history {
        transition: none;
        transition-delay: 0s;
    }
}

/* mobile search modal position */
@media (max-width: 768px) {
    .rp-search-overlay-panel {
        margin-top: calc(var(--rp-search-overlay-notice-offset, 0px) + 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: none;
    opacity: 1;
}

/* Cheap search scrim: animate opacity, never filter the page content. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--rp-search-scrim-color, rgba(0, 0, 0, .18));
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

html body button.rp-inline-search-close,
html body button.rp-inline-search-clear {
    display: none !important;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rp-text);
    cursor: pointer;
}
html body .rp-search-expanded button.rp-inline-search-close,
html body .rp-search-expanded button.rp-inline-search-clear { display: inline-flex !important; }
html body button.rp-inline-search-close svg,
html body button.rp-inline-search-clear svg { width: 20px; height: 20px; }
/* The explicit eraser replaces the browser's ambiguous in-field cross. */
html body .rp-search-form input[type="search"]::-webkit-search-cancel-button,
html body .rp-mobile-header-searchbar input[type="search"]::-webkit-search-cancel-button,
html body .rp-mobile-sticky-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

.rp-mobile-search-row { display: none; }
@media (max-width: 768px) {
    html body .rp-mobile-search-row {
        display: flex;
        align-items: center;
        gap: 12px;
        direction: rtl;
        width: 100%;
        min-width: 0;
    }
    html body .rp-mobile-search-brand {
        order: -1;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: right;
    }
    html body .rp-mobile-search-brand .rp-mobile-header-search-logo {
        margin: 0 !important;
        width: var(--rp-header-logo-width-mobile, 50px) !important;
        max-width: var(--rp-header-logo-width-mobile, 50px) !important;
        height: auto !important;
        max-height: none !important;
        object-position: right center;
    }
    html body .rp-mobile-search-field-host { flex: 1 1 0; min-width: 0; position: relative; }
    html body .rp-mobile-search-field-host .rp-mobile-header-searchbar {
        width: 100%;
        box-sizing: border-box;
        margin-inline-start: 0;
        transition: width .32s cubic-bezier(.22,.61,.36,1), margin-inline-start .32s cubic-bezier(.22,.61,.36,1);
    }
    html body .rp-mobile-search-field-host .rp-mobile-header-searchbar.rp-search-expanded {
        width: calc(100% + var(--rp-mobile-search-brand-space, 62px));
        margin-inline-start: calc(-1 * var(--rp-mobile-search-brand-space, 62px));
    }
    html body .rp-mobile-search-row:has(.rp-search-expanded) .rp-mobile-search-brand { opacity: 0; pointer-events: none; }
    html body .rp-mobile-search-field-host input[type="search"] { flex: 1 1 0; min-width: 0; max-width: none; width: 100%; }
    html body .rp-mobile-search-field-host .rp-search-in-header {
        width: 100%;
        left: 0;
        right: auto;
        transition: width .32s cubic-bezier(.22,.61,.36,1), opacity .2s ease, visibility .2s ease;
    }
    html body.rp-search-open .rp-mobile-search-field-host .rp-search-in-header {
        width: calc(100% + var(--rp-mobile-search-brand-space, 62px));
    }
    @media (prefers-reduced-motion: reduce) {
        html body .rp-mobile-search-field-host .rp-search-in-header { transition: none; }
    }
    html body.rp-header-sticky-enabled.rp-is-scrolled .rp-mobile-search-row { display: none; }
}

body.rp-search-open:not(.rp-is-scrolled)::after { opacity: 1; }

/* Extend the same scrim across the header, keeping only search above it. */
.rp-header::after {
    content: "";
    position: absolute;
    /* Cover the header's border box as well, avoiding a bright 1px seam. */
    inset: 0 0 -1px;
    z-index: 10;
    background: var(--rp-search-scrim-color, rgba(0, 0, 0, .18));
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

body.rp-search-open:not(.rp-is-scrolled) .rp-header::after { opacity: 1; }

/* Mobile dimming follows the results panel, not the sticky-header state. */
@media (max-width: 768px) {
    body.rp-search-open:not(.rp-search-panel-visible)::after,
    body.rp-search-open:not(.rp-search-panel-visible) .rp-header::after { opacity: 0; }
    body.rp-search-open.rp-search-panel-visible::after,
    body.rp-search-open.rp-search-panel-visible .rp-header::after { opacity: 1; }
}

html body.rp-search-open .rp-header {
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

html body.rp-search-open .rp-header-inner,
html body.rp-search-open .rp-header-top,
html body.rp-search-open .rp-header-bottom {
    transform: none !important;
    -webkit-transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    will-change: auto !important;
}

html body.rp-search-open .rp-inline-search-host {
    position: relative;
    z-index: 11;
}

@media (prefers-reduced-motion: reduce) {
    body::after,
    .rp-header::after { transition: none; }
}

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 {
    font-size: inherit !important;
}

body.rp-header-sticky-enabled.rp-is-scrolled .rp-main-menu a {
    font-size: var(--rp-type-header_navigation-size, 13px) !important;
    font-weight: var(--rp-type-header_navigation-weight, 400) !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: var(--rp-type-header_navigation-size, 13px) !important;
        font-weight: var(--rp-type-header_navigation-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: var(--rp-type-header_navigation-size, 13px) !important;
        font-weight: var(--rp-type-header_navigation-weight, 400) !important;
        line-height: 1.2 !important;
    }
}

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

/* Mobile sticky must not depend on the page's overflow container. Product,
 * cart and checkout templates may clip horizontal overflow, which prevents a
 * position:sticky header from following the viewport. JS switches this state
 * only after the normal-flow header reaches the viewport edge. */
@media (max-width: 768px) {
    html body.rp-header-sticky-enabled.rp-header-mobile-sticky-enabled.rp-is-scrolled .rp-header {
        position: fixed !important;
        top: var(--rp-header-sticky-top, 0px) !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 2000 !important;
        transform: translateZ(0) !important;
        background: var(--rp-theme-header-background, #fff) !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: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !important;
    background: color-mix(in srgb, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) 10%, var(--rp-theme-header-background, #fff)) !important;
}

.rp-main-menu .menu-item-has-children:not(.rp-menu-mega-ready):hover > a,
.rp-header-menu-sticky .rp-main-menu .menu-item-has-children:not(.rp-menu-mega-ready):hover > a,
body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu .menu-item-has-children:not(.rp-menu-mega-ready):hover > a {
    color: var(--rp-theme-general-accent, var(--rp-accent, #fd314a)) !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;
}

/* Safari on iPhone zooms focused form controls whose computed font size is below 16px. */
html body input[type="search"] {
    font-size: 16px !important;
}

html body input[type="search"]::placeholder {
    font-size: 16px !important;
}

/* Desktop compact Sticky Header contains only navigation/actions. Keep the
 * expanded logo/search row paint-contained even though the normal account
 * dropdown deliberately uses overflow: visible. This prevents the desktop
 * logo from leaking beside page breadcrumbs after the header collapses. */
.rp-header-sticky-logo {
    display: none;
}

@media (min-width: 769px) {
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom > .rp-header-sticky-logo {
        display: inline-flex;
        flex: 0 0 auto;
        order: 0;
        align-items: center;
        justify-content: center;
        width: var(--rp-sticky-header-logo-width, 110px);
        max-width: min(240px, 20vw);
        height: 40px;
        line-height: 0;
    }

    .rp-header-sticky-logo img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 40px;
        object-fit: contain;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header > .rp-header-inner > .rp-header-top,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header .rp-brand-search,
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header .rp-header-logo {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

/* Responsive Site Search Bar settings (Desktop-first with device overrides). */
.rp-search-form,
.rp-mobile-header-searchbar,
.rp-mobile-sticky-search,
.rp-search-overlay-panel {
    color: var(--rp-search-text, #202428);
}

.rp-search-overlay-form {
    background: var(--rp-search-bg, #fff) !important;
    color: var(--rp-search-text, #202428) !important;
    border: var(--rp-search-border-width, 0) solid var(--rp-search-border, #dfe4e2) !important;
    border-radius: var(--rp-search-radius, 0) !important;
    padding: var(--rp-search-padding, 10px 12px) !important;
}
.rp-search-overlay-form input[type="search"] {
    color: var(--rp-search-text, #202428) !important;
    background: transparent !important;
    font-size: var(--rp-search-input-size, 14px) !important;
    font-weight: var(--rp-search-input-weight, 500) !important;
}
:is(.rp-search-form,.rp-mobile-header-searchbar,.rp-mobile-sticky-search) input[type="search"] {
    font-size: var(--rp-search-input-size, 14px) !important;
    font-weight: var(--rp-search-input-weight, 500) !important;
}
.rp-search-overlay-form input[type="search"]::placeholder {
    color: var(--rp-search-placeholder, #777d83) !important;
    opacity: 1 !important;
}
.rp-live-search-price .woocommerce-Price-currencySymbol,
.rp-live-search-currency-image {
    display: inline-block;
    box-sizing: content-box;
    color: var(--rp-search-currency-color, #555b60) !important;
    font-size: var(--rp-search-currency-size, 12px) !important;
    font-weight: var(--rp-search-currency-weight, 400) !important;
    padding: var(--rp-search-currency-padding, 0 4px 0 0) !important;
    vertical-align: middle;
}
.rp-live-search-currency-image-shell {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    vertical-align: middle;
}
.rp-live-search-currency-image {
    width: var(--rp-search-currency-image-size, 12px) !important;
    height: var(--rp-search-currency-image-size, 12px) !important;
    max-width: none !important;
    object-fit: contain !important;
}
.rp-live-search-product--no-image {
    grid-template-columns: minmax(0, 1fr) !important;
}
.rp-live-search-products > h3 {
    color: var(--rp-search-count-color, #202428) !important;
    background: transparent !important;
    font-size: var(--rp-search-count-size, 13px) !important;
    font-weight: var(--rp-search-count-weight, 500) !important;
    text-align: var(--rp-search-count-align, right) !important;
    justify-content: var(--rp-search-count-justify, flex-start) !important;
    padding: var(--rp-search-count-padding, 0) !important;
    margin: var(--rp-search-count-margin, 0 0 10px) !important;
    border-radius: var(--rp-search-count-radius, 0) !important;
}
:is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"]) .rp-search-overlay-panel .rp-live-search-products > h3,
body:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark) .rp-search-overlay-panel .rp-live-search-products > h3 {
    color: #f8fafc !important;
    background: transparent !important;
}
.rp-live-search-price {
    color: var(--rp-search-price-color, #555b60) !important;
    font-size: var(--rp-search-price-size, 12px) !important;
    font-weight: var(--rp-search-price-weight, 400) !important;
    padding: var(--rp-search-price-padding, 0) !important;
    margin: var(--rp-search-price-margin, 0) !important;
    text-align: var(--rp-search-price-align, left) !important;
    justify-content: var(--rp-search-price-justify, flex-end) !important;
}
.rp-live-search-product {
    grid-template-columns: var(--rp-search-image-size, 48px) minmax(0, 1fr) !important;
}
.rp-live-search-product.rp-live-search-product--no-image {
    grid-template-columns: minmax(0, 1fr) !important;
}
.rp-live-search-product-img,
.rp-live-search-product-img img {
    width: var(--rp-search-image-size, 48px) !important;
    height: var(--rp-search-image-size, 48px) !important;
    border-radius: var(--rp-search-image-radius, 8px) !important;
    object-fit: cover !important;
}
.rp-search-history__chip {
    background: var(--rp-search-badge-bg, #f4f8f7) !important;
    color: var(--rp-search-badge-color, #31534d) !important;
    border: var(--rp-search-badge-border-width, 1px) solid var(--rp-search-badge-border, #dce5e2) !important;
    border-radius: var(--rp-search-badge-radius, 16px) !important;
}
.rp-search-history__apply {
    color: var(--rp-search-badge-color, #31534d) !important;
    font-size: var(--rp-search-badge-size, 12px) !important;
    font-weight: var(--rp-search-badge-weight, 400) !important;
    padding: var(--rp-search-badge-padding, 0 11px 0 7px) !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;
}

/* Dark header search and live-search modal.
 * Support every runtime dark-mode marker used by the theme toggle. */
:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-search-form, .rp-mobile-sticky-search, .rp-mobile-header-searchbar) {
    background: #151a20 !important;
    border-color: #343b45 !important;
    color: #f5f7fa !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-search-form, .rp-mobile-sticky-search, .rp-mobile-header-searchbar) :is(input, button, svg) {
    color: #f5f7fa !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-search-form, .rp-mobile-sticky-search, .rp-mobile-header-searchbar) input::placeholder {
    color: #aeb6c2 !important;
    opacity: 1 !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) .rp-search-overlay-panel {
    background: #11161c !important;
    border-color: #303844 !important;
    color: #f5f7fa !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58) !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-search-overlay-form, .rp-search-results, .rp-search-history) {
    background: #11161c !important;
    border-color: #303844 !important;
    color: #f5f7fa !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) .rp-search-overlay-form :is(input[type="search"], button, svg) {
    color: #f5f7fa !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) .rp-search-overlay-form input[type="search"]::placeholder {
    color: #aeb6c2 !important;
    opacity: 1 !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) .rp-search-overlay-panel :is(
    h1, h2, h3, h4, p, span, strong, small,
    .rp-search-empty-state,
    .rp-live-search-price,
    .rp-search-history__head strong
) {
    color: #f5f7fa !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-live-search-row, .rp-search-history) {
    border-color: #303844 !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-live-search-chip, .rp-live-search-product, .rp-search-history__chip) {
    background: #1a2028 !important;
    border-color: #38424e !important;
    color: #f5f7fa !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) :is(.rp-live-search-chip, .rp-live-search-product, .rp-search-history__chip):is(:hover, :focus-within) {
    background: #242c36 !important;
    border-color: var(--rp-accent) !important;
}

:is(
    body.rp-theme-color-preset-dark,
    body.rp-theme-dark,
    body.is-dark,
    html[data-rp-user-theme="dark"] body,
    html[data-rp-theme-mode="dark"] body
) .rp-search-history__chip button {
    color: #e6eaf0 !important;
}

/* Destructive search actions stay red in every theme and interaction state. */
.rp-search-history__head button[data-rp-search-history-clear],
.rp-search-history__head button[data-rp-search-history-clear]:is(:hover, :focus, :focus-visible, :active) {
    background: transparent !important;
    color: #e0313d !important;
    -webkit-text-fill-color: #e0313d !important;
}

.rp-search-overlay-form .rp-search-overlay-clear,
.rp-search-overlay-form .rp-search-overlay-clear:is(:hover, :focus, :focus-visible, :active),
:is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"]) .rp-search-overlay-form .rp-search-overlay-clear,
body:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark) .rp-search-overlay-form .rp-search-overlay-clear {
    color: #e0313d !important;
    -webkit-text-fill-color: #e0313d !important;
}

.rp-search-overlay-form .rp-search-overlay-clear svg {
    transform: scaleX(-1) !important;
    transform-origin: center !important;
    width: 24px !important;
    height: 24px !important;
}

html body .rp-search-overlay-form #rp-search-overlay-field {
    padding-inline: 12px !important;
    box-sizing: border-box;
}

html body .rp-search-overlay-form #rp-search-overlay-field,
html body .rp-search-form #rp-header-search-field {
    border-radius: 8px !important;
}

html body .rp-search-overlay-form #rp-search-overlay-field:is(:focus, :focus-visible),
html body .rp-search-form #rp-header-search-field:is(:focus, :focus-visible) {
    outline: 1px solid var(--rp-search-border, #dfe4e2) !important;
    outline-offset: 0;
    box-shadow: none !important;
    border-color: var(--rp-search-border, #dfe4e2) !important;
}

:is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"]) body .rp-search-overlay-form #rp-search-overlay-field:is(:focus, :focus-visible),
html body:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark) .rp-search-overlay-form #rp-search-overlay-field:is(:focus, :focus-visible),
:is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"]) body .rp-search-form #rp-header-search-field:is(:focus, :focus-visible),
html body:is(.rp-theme-color-preset-dark, .rp-theme-dark, .is-dark) .rp-search-form #rp-header-search-field:is(:focus, :focus-visible) {
    outline-color: #303844 !important;
    border-color: #303844 !important;
}

/* The expanding header form provides the focus context, not an inner input ring. */
html body .rp-search-form input#rp-header-search-field:is(:focus, :focus-visible),
html body .rp-mobile-header-searchbar input#rp-mobile-header-search-field:is(:focus, :focus-visible),
html body .rp-mobile-sticky-search input#rp-mobile-sticky-search-field:is(:focus, :focus-visible) {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* Optional visitor Light/Dark switch beside the header FAQ link. */
.rp-header-theme-toggle {
    width: 58px;
    height: 32px;
    flex: 0 0 58px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #343a40;
    cursor: pointer;
    line-height: 1;
}

.rp-header-theme-toggle__track {
    position: relative;
    width: 58px;
    height: 32px;
    display: block;
    border: 1px solid #d7dce1;
    border-radius: inherit;
    background: #e8ebee;
    transition: background-color .2s ease, border-color .2s ease;
}

.rp-header-theme-toggle__thumb {
    position: absolute;
    top: 3px;
    right: 29px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
    transition: right .2s ease, background-color .2s ease, color .2s ease;
}

.rp-header-theme-toggle__moon {
    display: block;
    color: #3b82f6;
}

.rp-header-theme-toggle__sun {
    display: none;
    color: #f59e0b;
}

.rp-header-theme-toggle[data-rp-theme-mode="dark"] {
    color: #ffffff;
}

.rp-header-theme-toggle[data-rp-theme-mode="dark"] .rp-header-theme-toggle__track {
    border-color: #171a20;
    background: #171a20;
}

.rp-header-theme-toggle[data-rp-theme-mode="dark"] .rp-header-theme-toggle__thumb {
    right: 4px;
    background: #303540;
}

.rp-header-theme-toggle[data-rp-theme-mode="dark"] .rp-header-theme-toggle__moon {
    display: none;
}

.rp-header-theme-toggle[data-rp-theme-mode="dark"] .rp-header-theme-toggle__sun {
    display: block;
}

.rp-header-theme-toggle:focus-visible {
    outline: 2px solid var(--rp-theme-header-accent, var(--rp-accent));
    outline-offset: 3px;
}

body.rp-header-user-hover-disabled .rp-account-dropdown {
    display: none !important;
}

/* Keep the desktop account trigger and its offset dropdown in one continuous
   hover corridor. Without this bridge, crossing the 10px visual gap briefly
   closes the menu and makes it appear to require a second hover. */
@media (min-width: 769px) {
    .rp-account-wrap.is-logged-in::after {
        content: "";
        position: absolute;
        top: 100%;
        left: -12px;
        z-index: 2199;
        width: 267px;
        height: 16px;
        background: transparent;
        pointer-events: none;
    }

    .rp-account-wrap.is-logged-in:is(:hover, :focus-within)::after {
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rp-header-theme-toggle__track,
    .rp-header-theme-toggle__thumb {
        transition: none;
    }
}

/* ========================================================================== 
   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;
        transform: scale(1.2);
        transform-origin: center;
        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;
    }
}

/* Distribute mobile drawer controls across the full header width. */
@media (max-width: 768px) {
    html body #rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-home {
        padding: 0 !important;
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        flex-basis: 44px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        gap: 0 !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head-actions {
        display: contents !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 {
        order: 1 !important;
        grid-column: 1 !important;
        justify-self: start !important;
        flex-basis: 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-theme-toggle,
    html body.rp-mobile-menu-open .rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-theme-toggle {
        order: 2 !important;
        flex: 0 0 54px !important;
        width: 54px !important;
        height: 54px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        grid-column: 2 !important;
        justify-self: center !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 {
        order: 3 !important;
        grid-column: 3 !important;
        justify-self: end !important;
    }

    /* Equal edge controls keep their centers equally inset from both sides. */
    html body #rp-mobile-drawer .rp-mobile-drawer-head .rp-mobile-drawer-close {
        flex-basis: 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !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;
  }
}

/* Keep trust badges anchored in the active drawer tab. Only the menu list
 * scrolls, so badges remain visible at the bottom while browsing long menus. */
@media (max-width: 768px) {
    /* Standard scrollbar colors override WebKit button styling in Chromium. */
    @supports selector(::-webkit-scrollbar) {
        #rp-mobile-drawer :is(.rp-mobile-drawer-menu, .rp-mobile-submenu-view, .rp-mobile-submenu-menu) {
            scrollbar-width: auto !important;
            scrollbar-color: auto !important;
        }
        #rp-mobile-drawer :is(.rp-mobile-drawer-menu, .rp-mobile-submenu-view, .rp-mobile-submenu-menu)::-webkit-scrollbar {
            width: 8px;
        }
        #rp-mobile-drawer :is(.rp-mobile-drawer-menu, .rp-mobile-submenu-view, .rp-mobile-submenu-menu)::-webkit-scrollbar-button {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }
        #rp-mobile-drawer :is(.rp-mobile-drawer-menu, .rp-mobile-submenu-view, .rp-mobile-submenu-menu)::-webkit-scrollbar-track {
            background: transparent;
        }
        #rp-mobile-drawer :is(.rp-mobile-drawer-menu, .rp-mobile-submenu-view, .rp-mobile-submenu-menu)::-webkit-scrollbar-thumb {
            background: var(--rp-theme-mobile-menu-accent, var(--rp-theme-general-accent, var(--rp-accent, #fd314a)));
            border-radius: 999px;
        }
    }

    .rp-mobile-drawer {
        overflow-y: hidden !important;
    }

    .rp-mobile-drawer-tabs {
        flex: 0 0 auto;
    }

    .rp-mobile-drawer-pane.is-active {
        min-height: 0;
        flex: 1 1 auto;
        display: flex !important;
        flex-direction: column;
        overflow: hidden !important;
    }

    .rp-mobile-drawer-pane.is-active .rp-mobile-drawer-menu {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .rp-mobile-drawer-pane.is-active .rp-mobile-drawer-menu.has-more-below {
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 52px), transparent 100%);
        mask-image: linear-gradient(to bottom, #000 calc(100% - 52px), transparent 100%);
    }

    .rp-mobile-drawer-pane.is-active .rp-mobile-drawer-badges {
        flex: 0 0 auto;
        margin-top: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* Final Safari input authority; must remain after all responsive Search rules. */
html body input[type="search"] {
    font-size: 16px !important;
}
html body input[type="search"]::placeholder {
    font-size: 16px !important;
}

/* Header search typography is audit-owned, including its visible placeholder.
 * This scoped rule must follow the generic Safari search-input fallback above. */
html body :is(#rp-search-type-override,.rp-search-form,.rp-search-overlay-form,.rp-mobile-header-searchbar,.rp-mobile-sticky-search) input[type="search"],
html body :is(#rp-search-type-override,.rp-search-form,.rp-search-overlay-form,.rp-mobile-header-searchbar,.rp-mobile-sticky-search) input[type="search"]::placeholder {
    font-size: var(--rp-search-input-size, var(--rp-type-search_input-size, 14px)) !important;
    font-weight: var(--rp-search-input-weight, var(--rp-type-search_input-weight, 500)) !important;
}

/* Visitor theme switch belongs to the expanded header only. */
/* Desktop handoff occurs only after the expanded header leaves the viewport.
 * Its placeholder preserves document height while compact mode is fixed. */
.rp-header-flow-placeholder { height: 0; padding: 0; margin: 0; border: 0; }
@media (min-width: 769px) {
    html body.rp-header-sticky-enabled:not(.rp-is-scrolled) .rp-header {
        position: relative !important;
        top: auto !important;
    }
    html body.rp-header-sticky-enabled.rp-is-scrolled .rp-header {
        position: fixed !important;
        top: var(--rp-header-sticky-top, 0px) !important;
        inset-inline: 0;
        width: 100%;
        box-sizing: border-box;
    }
    body.rp-header-sticky-enabled .rp-header {
        transition: opacity 180ms ease, transform 180ms ease !important;
        will-change: opacity, transform;
    }

    html body.rp-header-sticky-enabled:not(.rp-is-scrolled):not(.rp-header-sticky-transitioning) .rp-header {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: opacity 280ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1) !important;
    }

    html body.rp-header-sticky-enabled:not(.rp-is-scrolled).rp-header-return-start .rp-header {
        opacity: 0 !important;
        transform: translateY(-16px) !important;
        transition: none !important;
    }

    body.rp-header-sticky-enabled.rp-header-sticky-transitioning .rp-header {
        opacity: 0 !important;
        transform: translateY(-14px) !important;
        pointer-events: none !important;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled:not(.rp-header-sticky-transitioning) .rp-header {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.rp-header-sticky-enabled .rp-header {
        transition: none !important;
        will-change: auto;
    }
}

body.rp-is-scrolled .rp-header-bottom .rp-header-theme-toggle {
    display: none !important;
}

/* Mobile drawer actions stay above every sticky commerce surface. */
@media (max-width: 768px) {
    .rp-mobile-drawer-head-actions {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-inline-start: auto;
    }

    .rp-mobile-drawer-theme-toggle {
        display: inline-flex;
        position: relative;
        z-index: 2147483647;
    }

    .rp-mobile-drawer-theme-toggle .rp-header-theme-toggle {
        display: inline-flex !important;
        width: 52px;
        height: 30px;
        flex-basis: 52px;
    }

    .rp-mobile-drawer-theme-toggle .rp-header-theme-toggle__track {
        width: 52px;
        height: 30px;
    }

    .rp-mobile-drawer-theme-toggle .rp-header-theme-toggle__thumb {
        top: 3px;
        right: 25px;
        width: 22px;
        height: 22px;
    }

    .rp-mobile-drawer-theme-toggle .rp-header-theme-toggle[data-rp-theme-mode="dark"] .rp-header-theme-toggle__thumb {
        right: 4px;
    }

    html body.rp-mobile-menu-open :is(
        .rp-sticky-add-to-cart,
        .rp-product-service-strip,
        .rp-footer-mobile-links,
        .rp-mobile-bottom-bar
    ) {
        z-index: 1 !important;
        pointer-events: none !important;
    }

    html body.rp-product-modal-open .rp-product-service-strip {
        z-index: 1 !important;
        pointer-events: none !important;
    }

    html body:is(.rp-search-open, .rp-mobile-menu-open, .rp-shop-filters-open, .rp-cart-sidebar-open, .rp-product-lightbox-open, .rp-product-modal-open, .rp-product-option-toast-open) .rp-product-service-strip {
        z-index: 1 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Level-three dropdowns share the top edge of the previous panel in normal
   and sticky headers. The second-level items cannot be positioning contexts:
   the nested panel must be positioned against their parent dropdown. */
@media (min-width: 769px) {
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu .sub-menu {
        border-radius: 10px;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li > .sub-menu > li {
        position: static;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu .sub-menu > li > .sub-menu {
        top: 0;
        right: calc(100% - 2px);
        left: auto;
        transform: translateX(6px);
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu .sub-menu > li:is(:hover, :focus-within) > .sub-menu {
        transform: translateX(0);
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu .sub-menu > li.menu-item-has-children > a::after {
        transform: rotate(135deg) !important;
    }
}

/* The drawer opens each level in its dedicated panel, not inline. */
@media (max-width: 768px) {
    .rp-mobile-submenu-menu .sub-menu {
        display: none !important;
    }
}

/* A root with three or four levels becomes one wide panel. All branches are
   visible together; roots with only one submenu retain the compact dropdown. */
@media (min-width: 769px) {
    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-menu-sticky .rp-main-menu > li.menu-item-has-children > a::after,
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.menu-item-has-children > a::after {
        display: none !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready.rp-mega-open > a {
        color: var(--rp-theme-header-accent, var(--rp-accent)) !important;
    }

    .rp-header-bottom {
        position: relative;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega {
        position: static;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.rp-mega-menu-open .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready.rp-mega-open > .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
        pointer-events: auto !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu {
        top: calc(100% + var(--rp-mega-header-gap, 0px));
        right: 0;
        left: auto;
        width: min(1080px, 100%);
        height: auto;
        min-height: 250px;
        max-height: 500px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-content: start;
        gap: 24px;
        padding: 24px;
        overflow-y: auto;
        border-radius: 0 0 14px 14px;
        box-sizing: border-box;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu > li {
        min-width: 0;
        padding: 0 0 0 20px;
        border-left: 1px solid var(--rp-theme-header-border, var(--rp-line));
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu > li > a {
        width: 100%;
        padding: 0 0 14px;
        border-bottom: 1px solid var(--rp-theme-header-border, var(--rp-line));
        color: var(--rp-theme-header-accent, var(--rp-accent));
        white-space: normal;
        box-sizing: border-box;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu .sub-menu {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        max-height: none;
        margin: 0;
        padding: 8px 0 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        pointer-events: auto;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu .sub-menu li {
        min-width: 0;
        padding: 0;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu .sub-menu a {
        width: 100%;
        padding: 10px 8px;
        white-space: normal;
        line-height: 1.55;
        box-sizing: border-box;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu .sub-menu .sub-menu {
        padding: 0 12px 8px 0;
        border-right: 1px solid var(--rp-theme-header-border, var(--rp-line)) !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu .sub-menu .sub-menu a {
        padding: 7px 10px;
        color: var(--rp-theme-header-muted, var(--rp-text));
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu .sub-menu .menu-item-has-children > a::after {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega > .sub-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Progressive enhancement: one independent, ordered column per menu depth. */
@media (min-width: 769px) {
    /* The footer script converts nested items into columns. Never expose the
       unconverted list when the visitor hovers during initial page loading. */
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega:not(.rp-menu-mega-ready) > .sub-menu {
        display: none !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu {
        --rp-mega-column-base: #fff;
        height: var(--rp-mega-panel-height, 250px);
        width: min(var(--rp-mega-panel-width), calc(100vw - 48px));
        transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
        align-content: stretch;
        grid-template-columns: var(--rp-mega-grid-tracks);
        grid-template-rows: minmax(0, 1fr);
        gap: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column {
        min-width: 0;
        min-height: 0;
        padding: 16px 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--rp-theme-header-accent, var(--rp-accent)) transparent;
        background-color: var(--rp-mega-column-base);
        border-inline-end: 1px solid var(--rp-theme-header-border, var(--rp-line));
        border-left: 0;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column:nth-child(n+3) {
        background-color: color-mix(in srgb, var(--rp-mega-column-base) 95%, black 5%);
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column::-webkit-scrollbar {
        width: 5px;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column::-webkit-scrollbar-thumb {
        background-color: var(--rp-theme-header-accent, var(--rp-accent));
        border-radius: 5px;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column:last-child {
        border-inline-end: 0;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu > .rp-mega-column[hidden],
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li[hidden] {
        display: none !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li {
        position: static;
        padding: 0;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li > a {
        display: flex;
        width: 100%;
        min-height: 50px;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        text-align: right;
        padding: 12px 10px;
        white-space: normal;
        line-height: 1.5;
        box-sizing: border-box;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li.rp-mega-active > a {
        color: var(--rp-theme-header-accent, var(--rp-accent));
        background: transparent;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list .menu-item-has-children > a::after {
        display: inline-block !important;
        opacity: 0 !important;
        margin-inline-start: auto !important;
        margin-inline-end: 2px !important;
        border: 0 !important;
        border-left: 1.5px solid currentColor !important;
        border-bottom: 1.5px solid currentColor !important;
        transform: rotate(45deg) !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list .menu-item-has-children > a:is(:hover, :focus-visible)::after,
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li.rp-mega-active.menu-item-has-children > a::after {
        opacity: 1 !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li > a,
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li.rp-mega-active > a {
        background: transparent !important;
        border-radius: 0;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li > a:is(:hover, :focus-visible),
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list > li.rp-mega-active > a {
        color: var(--rp-theme-header-accent, var(--rp-accent)) !important;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list .rp-menu-item-copy {
        flex: 1 1 auto;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list .rp-menu-item-description {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready .rp-mega-column-list .rp-menu-item-image {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
        flex-basis: 36px;
    }

    :is(html[data-rp-user-theme="dark"], html[data-rp-theme-mode="dark"], html[data-theme="dark"], body.rp-theme-color-preset-dark, body.rp-theme-dark, body.is-dark)
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) .rp-main-menu > li.rp-menu-mega-ready > .sub-menu {
        --rp-mega-column-base: var(--rp-theme-header-surface, var(--rp-surface, #17191e));
    }
}

.rp-main-menu .rp-menu-has-image > a,
.rp-mobile-drawer-menu .rp-menu-has-image > a,
.rp-mobile-submenu-menu .rp-menu-has-image > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

:is(.rp-main-menu, .rp-mobile-drawer-menu, .rp-mobile-submenu-menu) .rp-menu-item-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 4px;
    text-align: start;
}

:is(.rp-mobile-drawer-menu, .rp-mobile-submenu-menu) .rp-menu-item-copy {
    flex: 1 1 auto;
}

:is(.rp-main-menu, .rp-mobile-drawer-menu, .rp-mobile-submenu-menu) .rp-menu-item-description {
    display: block;
    max-width: 100%;
    color: var(--rp-theme-header-muted, var(--rp-text-muted, #9298a0));
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.rp-main-menu .rp-menu-item-image,
.rp-mobile-drawer-menu .rp-menu-item-image,
.rp-mobile-submenu-menu .rp-menu-item-image {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .rp-mobile-drawer-menu .rp-menu-has-image > a,
    .rp-mobile-submenu-menu .rp-menu-has-image > a {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }
}

/* The desktop mega panel stays above the cart-style page veil, while the
   regular or sticky header remains clear and interactive. */
@media (min-width: 769px) {
    .rp-mega-backdrop {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2990;
        border: 0;
        background: rgba(0, 0, 0, .16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: opacity .2s ease, visibility .2s ease;
    }

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

    body.rp-mega-menu-open:not(.woocommerce-checkout) .rp-header {
        z-index: 3000 !important;
    }

    body.woocommerce-checkout.rp-mega-menu-open .rp-mega-backdrop {
        z-index: 99980;
    }
}

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

/* On narrow desktop widths only the top-level strip scrolls. Fixed submenus
   escape its scrollport and remain anchored below the header. */
@media (min-width: 769px) {
    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        margin-left: 18px;
    }

    .rp-header-menu:is(.rp-header-menu-desktop, .rp-header-menu-sticky) > .rp-main-menu {
        flex: 0 0 max-content;
        width: max-content;
    }

    body.rp-header-sticky-enabled.rp-is-scrolled .rp-header-bottom > .rp-header-menu-sticky.rp-menu-scroll-active,
    .rp-header-menu.rp-menu-scroll-active {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        scroll-behavior: smooth;
        overscroll-behavior-inline: contain;
        touch-action: pan-x;
        cursor: grab;
    }

    .rp-header-menu.rp-menu-scroll-active.is-rp-menu-dragging { cursor: grabbing; scroll-behavior: auto; }
    .rp-header-menu.rp-menu-scroll-active::-webkit-scrollbar { display: none; }

    .rp-header-menu.rp-menu-scroll-active .rp-main-menu > li > .sub-menu {
        position: fixed !important;
        top: var(--rp-menu-scroll-panel-top) !important;
        right: var(--rp-menu-scroll-panel-right) !important;
        left: auto !important;
    }

    .rp-header-menu-edge-fade {
        position: absolute;
        z-index: 1;
        width: 48px;
        pointer-events: none;
    }

    .rp-header-menu-edge-fade[hidden] { display: none !important; }
    .rp-header-menu-edge-fade.is-left { background: linear-gradient(to right, var(--rp-theme-header-background, var(--rp-bg)), transparent); }
    .rp-header-menu-edge-fade.is-right { background: linear-gradient(to left, var(--rp-theme-header-background, var(--rp-bg)), transparent); }
}
