/* RU-specific header. Preserve the existing purple theme and desktop layout. */
.rp-header-account-mobile { display: none; }

/* Align the actual home, category and product headings below the fixed header. */
#shop-body > .head-1.pt-4,
#shop-body > div[itemscope] > .head-1.pt-4,
#shop-body > h1.fs-5.mb-1,
#shop-body > div[itemscope] > h1.shop-product-title {
    margin-top: 0 !important;
    padding-top: 12px !important;
}

@media (max-width: 1199.98px) {
    .rp-header-actions { height: 48px; }
    .rp-header-actions .rp-header-actions-row {
        box-sizing: border-box;
        height: 48px !important;
        min-height: 48px;
        padding: 0 8px !important;
        flex-wrap: nowrap;
        gap: 0;
    }
    .rp-header-actions .rp-header-account-group,
    .rp-header-actions .rp-header-tools {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 0;
        min-width: 0;
        white-space: nowrap;
    }
    .rp-header-actions .rp-header-account-desktop { display: none !important; }
    .rp-header-actions .rp-header-account-mobile { display: block !important; }
    .rp-header-actions .rp-header-account-toggle,
    .rp-header-actions .rp-header-login-trigger,
    .rp-header-actions .rp-header-favorites,
    .rp-header-actions .rp-header-search,
    .rp-header-actions .rp-header-cart:not(.d-none) {
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        min-width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        gap: 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-family: inherit;
        font-size: 15px;
        line-height: 1.2;
        white-space: nowrap;
        text-decoration: none;
        vertical-align: middle;
    }
    .rp-header-actions .rp-header-favorites { padding: 0 3px !important; }
    .rp-header-actions .rp-header-cart:not(.d-none) { min-width: 60px; gap: 3px; }
    .rp-header-actions .rp-header-favorites-label { display: inline !important; }
    .rp-header-actions .rp-header-login-label,
    .rp-header-actions .rp-header-search-label,
    .rp-header-actions .rp-header-cart:not(.empty-top-b) .rp-header-cart-label { display: none !important; }
    .rp-header-actions .rp-header-account-toggle > i,
    .rp-header-actions .rp-header-login-trigger > i,
    .rp-header-actions .rp-header-favorites > i,
    .rp-header-actions .rp-header-cart > i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        font-size: 22px;
        line-height: 1;
    }
    .rp-header-actions .rp-header-search > img {
        width: 22px;
        height: 22px !important;
        margin-top: 0 !important;
        flex: 0 0 22px;
    }
    .rp-header-actions .rp-header-account-mobile .dropdown-menu { min-width: 176px; margin-top: 2px; }
    .rp-header-actions .rp-header-account-mobile .dropdown-item {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-size: 15px;
    }
    .rp-header-navigation { margin-top: 48px !important; }
    .rp-header-navigation > .container { padding-right: 6px; padding-left: 6px; }
    .rp-header-navigation .rp-header-navigation-row { height: 52px; min-height: 52px; flex-wrap: nowrap !important; }
    .rp-header-navigation .rp-header-brand {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: calc(100% - 88px);
        min-width: 0;
        min-height: 44px;
        margin: 0 auto !important;
        font-size: 20px !important;
        line-height: 1.2;
        letter-spacing: -.45px;
        white-space: nowrap;
    }
    .rp-header-navigation .rp-header-menu-toggle {
        box-sizing: border-box;
        position: absolute;
        top: 4px;
        right: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin: 0;
        padding: 0;
        gap: 5px;
        border: 0;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }
    .rp-header-navigation .rp-header-menu-toggle.mobile-menu-catalog { right: auto; left: 6px; }
    .rp-header-navigation .rp-header-menu-toggle > span {
        position: absolute;
        left: 10px;
        right: auto;
        display: block;
        width: 24px;
        height: 2px;
        margin: 0;
        background: currentColor;
    }
    .rp-header-navigation .rp-header-menu-toggle > span:nth-child(1) { top: 14px; }
    .rp-header-navigation .rp-header-menu-toggle > span:nth-child(2) { top: 21px; }
    .rp-header-navigation .rp-header-menu-toggle > span:nth-child(3) { top: 28px; }
    .rp-header-navigation .rp-header-menu-toggle.d-lg-none { display: flex !important; }
    .rp-header-navigation ul.nav.d-lg-flex,
    .rp-header-navigation .col-lg-auto.text-end.d-lg-block { display: none !important; }
}
@media (max-width: 991.98px) {
    #shop-body > .head-1.pt-4,
    #shop-body > div[itemscope] > .head-1.pt-4,
#shop-body > h1.fs-5.mb-1,
#shop-body > div[itemscope] > h1.shop-product-title { padding-top: 20px !important; }
    #order-items-body-div #order-items-table td.total-order-item-price {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        font-variant-numeric: tabular-nums;
    }
}
@media (max-width: 359.98px) {
    .rp-header-navigation .rp-header-brand { font-size: 17px !important; letter-spacing: -.6px; }
}

/* Keep the desktop contact link on the same row in the 1140px container. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
 .rp-header-navigation ul.nav > .nav-item > .nav-link { padding-left: 12px; padding-right: 12px; }
}

/* RU uses its mobile header up to 1199px; keep the same 16px gap as .com. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #shop-body > .head-1.pt-4,
    #shop-body > div[itemscope] > .head-1.pt-4,
    #shop-body > h1.fs-5.mb-1,
    #shop-body > div[itemscope] > h1.shop-product-title { padding-top: 16px !important; }
}
