:root {
    --mrx-hmd-top-bg: #133B25;
    --mrx-hmd-top-fg: #FFFFFF;
    --mrx-hmd-bg: #FFFFFF;
    --mrx-hmd-ink: #161A18;
    --mrx-hmd-primary: #133B25;
    --mrx-hmd-gold: #C2934B;
    --mrx-hmd-border: #E6DFD5;
    --mrx-hmd-logo-h: 42px;
    --mrx-hmd-logo-hmob: 34px;
    --mrx-hmd-h-desk: 72px;
    --mrx-hmd-h-mob: 58px;
}

.mrx-is-guest .mrx-hmd-member-only { display: none !important; }
.mrx-is-logged-in .mrx-hmd-guest-only { display: none !important; }

@keyframes mrxHmdSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mrxHmdPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.mrx-hmd-header {
    position: relative;
    z-index: 9990;
    width: 100%;
    max-width: 100vw;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--mrx-hmd-ink);
    box-sizing: border-box;
    animation: mrxHmdSlideDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 1121px) {
    .mrx-hmd-header.is-sticky-desktop {
        position: sticky;
        top: 0;
        z-index: 9999;
    }
    .admin-bar .mrx-hmd-header.is-sticky-desktop {
        top: 32px;
    }
}
@media (max-width: 1120px) {
    .mrx-hmd-header.is-sticky-mobile {
        position: sticky;
        top: 0;
        z-index: 9999;
    }
}
/* Fixed-position fallback is managed by JS so sticky works even inside theme wrappers with overflow/transform. */
.mrx-hmd-header.mrx-hmd-fixed-active {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    animation: none !important;
    z-index: 99999 !important;
}
.mrx-hmd-sticky-spacer { display: block; width: 100%; height: 0; pointer-events: none; }

.mrx-hmd-container {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;
}

/* Rotating Ticker */
.mrx-hmd-topbar {
    background: var(--mrx-hmd-top-bg);
    color: var(--mrx-hmd-top-fg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 36px;
}

.mrx-hmd-header.is-scrolled .mrx-hmd-topbar {
    max-height: 0;
    opacity: 0;
}

.mrx-hmd-ticker-wrap {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mrx-hmd-ticker-item {
    position: absolute;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mrx-hmd-ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* Main Header Bar: Logo Left, Search Center, Icons Right */
.mrx-hmd-main {
    background: var(--mrx-hmd-bg);
    border-bottom: 1px solid var(--mrx-hmd-border);
    box-shadow: 0 4px 22px rgba(18, 22, 20, 0.04);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mrx-hmd-header.has-glass.is-scrolled .mrx-hmd-main {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(18, 22, 20, 0.08);
}

.mrx-hmd-bar {
    height: var(--mrx-hmd-h-desk);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: height 0.28s ease;
}

.mrx-hmd-header.is-scrolled .mrx-hmd-bar {
    height: calc(var(--mrx-hmd-h-desk) - 10px);
}

.mrx-hmd-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.mrx-hmd-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    width: 38px;
    height: 38px;
    border-radius: 11px !important;
    border: 1.5px solid var(--mrx-hmd-border) !important;
    background: #FAF7F4 !important;
    padding: 0 9px !important;
    cursor: pointer;
    flex-shrink: 0;
}

.mrx-hmd-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--mrx-hmd-ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mrx-hmd-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mrx-hmd-burger.is-open span:nth-child(2) { opacity: 0; }
.mrx-hmd-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mrx-hmd-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
}

.mrx-hmd-brand img {
    max-height: var(--mrx-hmd-logo-h);
    width: auto;
    max-width: 185px;
    object-fit: contain;
    display: block;
    transition: max-height 0.28s ease;
}

.mrx-hmd-brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.mrx-hmd-brand-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--mrx-hmd-ink);
    white-space: nowrap;
}

.mrx-hmd-brand-tag {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--mrx-hmd-gold);
    margin-top: 2px;
}

/* Center Search Bar */
.mrx-hmd-search-center {
    flex: 1;
    max-width: 480px;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.mrx-hmd-search-wrap {
    position: relative;
    width: 100%;
}

.mrx-hmd-search-form {
    display: flex;
    align-items: center;
    background: #FAF7F4;
    border: 1.5px solid var(--mrx-hmd-border);
    border-radius: 999px;
    padding: 3px 4px 3px 16px;
    width: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.mrx-hmd-search-form:focus-within {
    border-color: var(--mrx-hmd-primary);
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(19, 59, 37, 0.1);
}

.mrx-hmd-search-input {
    flex: 1;
    min-width: 0;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    font-size: 13.5px !important;
    color: var(--mrx-hmd-ink) !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.mrx-hmd-search-submit {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    border: none !important;
    background: var(--mrx-hmd-primary) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.mrx-hmd-search-submit:hover {
    transform: scale(1.06);
}

.mrx-hmd-search-results,
.mrx-hmd-mob-sresults {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--mrx-hmd-border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 44px rgba(18, 22, 20, 0.15);
    z-index: 9998;
    animation: mrxHmdPopIn 0.22s ease;
}

.mrx-hmd-mob-sresults {
    position: static;
    margin-top: 8px;
    box-shadow: none;
}

.mrx-hmd-sitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--mrx-hmd-ink) !important;
}

.mrx-hmd-sitem:hover {
    background: #FAF7F4;
}

.mrx-hmd-sitem img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.mrx-hmd-sitem-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.mrx-hmd-sitem-price {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--mrx-hmd-primary);
}

/* Right Actions */
.mrx-hmd-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mrx-hmd-cta-pill {
    height: 38px;
    padding: 0 15px;
    border-radius: 999px;
    background: #FAF7F4;
    border: 1.5px solid var(--mrx-hmd-gold);
    color: var(--mrx-hmd-ink) !important;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.mrx-hmd-acct-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mrx-hmd-acct-dropdown-wrap {
    position: relative;
}

.mrx-hmd-acct-pill {
    height: 38px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    border: none !important;
    background: var(--mrx-hmd-primary) !important;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(19, 59, 37, 0.16);
}

.mrx-hmd-txt-mob { display: none; }

.mrx-hmd-acct-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 195px;
    background: #FFFFFF;
    border: 1px solid var(--mrx-hmd-border);
    border-radius: 16px;
    padding: 7px;
    box-shadow: 0 18px 40px rgba(18, 22, 20, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s ease;
    z-index: 9997;
}

.mrx-hmd-acct-dropdown-wrap:hover .mrx-hmd-acct-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mrx-hmd-acct-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mrx-hmd-ink) !important;
    text-decoration: none !important;
}

.mrx-hmd-acct-menu a:hover {
    background: #FAF7F4;
}

.mrx-hmd-acct-menu a.is-logout {
    color: #DC2626 !important;
    border-top: 1px solid #F1F5F9;
    margin-top: 4px;
}

.mrx-hmd-icon-circle {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50% !important;
    border: 1.5px solid var(--mrx-hmd-border) !important;
    background: #FAF7F4 !important;
    color: var(--mrx-hmd-ink) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
}

.mrx-hmd-logout-circle:hover {
    border-color: #FECACA !important;
    background: #FEF2F2 !important;
    color: #DC2626 !important;
}

.mrx-hmd-mobile-search-btn { display: none !important; }

.mrx-hmd-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mrx-hmd-gold);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SECONDARY ROW: Desktop Navigation Menu Bar Below Main Header */
.mrx-hmd-subbar {
    background: var(--mrx-hmd-bg);
    border-bottom: 1px solid var(--mrx-hmd-border);
    padding: 0;
}

.mrx-hmd-desktop-nav > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.mrx-hmd-desktop-nav > ul > li {
    position: relative;
    margin: 0 !important;
}

.mrx-hmd-desktop-nav > ul > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mrx-hmd-ink) !important;
    text-decoration: none !important;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.mrx-hmd-desktop-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--mrx-hmd-gold);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mrx-hmd-desktop-nav > ul > li > a:hover {
    color: var(--mrx-hmd-primary) !important;
}

.mrx-hmd-desktop-nav > ul > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.mrx-hmd-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #FFFFFF;
    border: 1px solid var(--mrx-hmd-border);
    border-radius: 14px;
    padding: 8px;
    list-style: none !important;
    margin: 0 !important;
    box-shadow: 0 16px 38px rgba(18, 22, 20, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.22s ease;
    z-index: 9995;
}

.mrx-hmd-desktop-nav li.has-sub:hover .mrx-hmd-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mrx-hmd-submenu li a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mrx-hmd-ink) !important;
    text-decoration: none !important;
}

.mrx-hmd-submenu li a:hover {
    background: #FAF7F4;
    color: var(--mrx-hmd-primary) !important;
}

/* Mobile Search Bar */
.mrx-hmd-mobile-search-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--mrx-hmd-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

.mrx-hmd-mobile-search-bar.is-open {
    max-height: 420px;
    opacity: 1;
    padding: 10px 0 12px;
}

.mrx-hmd-mob-sform {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mrx-hmd-mob-sinput {
    flex: 1;
    height: 40px !important;
    border: 1.5px solid var(--mrx-hmd-primary) !important;
    border-radius: 999px !important;
    background: #FAF7F4 !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    outline: none !important;
}

.mrx-hmd-mob-ssubmit {
    height: 40px !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 999px !important;
    background: var(--mrx-hmd-primary) !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.mrx-hmd-mob-sclose {
    width: 34px;
    height: 34px;
    border: none !important;
    background: transparent !important;
    font-size: 22px;
    color: var(--mrx-hmd-ink) !important;
    cursor: pointer;
    padding: 0 !important;
}

/* Mobile Drawer & Modal (Body Root) */
.mrx-hmd-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 14, 0.58);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mrx-hmd-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mrx-hmd-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(330px, 85vw);
    background: #FFFFFF;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(-104%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.22);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mrx-hmd-drawer.is-open {
    transform: translateX(0);
}

.mrx-hmd-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mrx-hmd-border);
}

.mrx-hmd-drawer-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
}

.mrx-hmd-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    border: 1px solid var(--mrx-hmd-border) !important;
    background: #FAF7F4 !important;
    font-size: 20px;
    cursor: pointer;
    padding: 0 !important;
}

.mrx-hmd-drawer-user {
    padding: 14px 18px;
    background: #FAF7F4;
    border-bottom: 1px solid var(--mrx-hmd-border);
}

.mrx-hmd-drawer-login-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 999px !important;
    background: var(--mrx-hmd-primary) !important;
    color: #FFFFFF !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.mrx-hmd-duser-info strong {
    display: block;
    font-size: 14.5px;
}

.mrx-hmd-duser-info span {
    font-size: 12px;
    color: #5C635F;
}

.mrx-hmd-duser-btns {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mrx-hmd-duser-btns a {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--mrx-hmd-primary);
    color: #FFFFFF !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.mrx-hmd-duser-btns a.is-out {
    background: #FFFFFF;
    border: 1px solid var(--mrx-hmd-border);
    color: #DC2626 !important;
}

.mrx-hmd-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 18px;
}

.mrx-hmd-drawer-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mrx-hmd-drawer-nav > ul > li {
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.28s ease, transform 0.3s ease;
    transition-delay: calc(var(--mrx-stagger, 0) * 40ms + 70ms);
}

.mrx-hmd-drawer.is-open .mrx-hmd-drawer-nav > ul > li {
    opacity: 1;
    transform: translateX(0);
}

.mrx-hmd-dlink-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F1F5F9;
}

.mrx-hmd-dlink-row a {
    flex: 1;
    padding: 12px 4px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mrx-hmd-ink) !important;
    text-decoration: none !important;
}

.mrx-hmd-acc-toggle {
    width: 32px;
    height: 32px;
    border: none !important;
    background: #FAF7F4 !important;
    border-radius: 8px !important;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 !important;
}

.mrx-hmd-dsub {
    display: none;
    padding-left: 14px !important;
    background: #FAF7F4;
    border-radius: 10px;
    margin: 6px 0 !important;
}

.mrx-hmd-dsub.is-open { display: block; }

.mrx-hmd-dsub li a {
    display: block;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
}

.mrx-hmd-drawer-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--mrx-hmd-border);
    background: #FAF7F4;
}

.mrx-hmd-dcontact-row {
    display: flex;
    gap: 8px;
}

.mrx-hmd-dcontact-row a {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--mrx-hmd-border);
    color: var(--mrx-hmd-ink) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.mrx-hmd-dcontact-row a.is-wa {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF !important;
}

.mrx-hmd-dnote {
    margin: 10px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: #5C635F;
}

/* Modal Popup */
.mrx-hmd-auth-modal-back {
    position: fixed;
    inset: 0;
    background: rgba(12, 16, 14, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.mrx-hmd-auth-modal-back.is-open { display: flex; }

.mrx-hmd-auth-modal {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--mrx-hmd-border);
    border-radius: 22px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: mrxHmdPopIn 0.25s ease;
    box-sizing: border-box;
    margin: auto;
}

.mrx-hmd-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    border: 1px solid var(--mrx-hmd-border) !important;
    background: #FAF7F4 !important;
    font-size: 19px;
    cursor: pointer;
    padding: 0 !important;
}

.mrx-hmd-amodal-head { text-align: center; margin-bottom: 14px; }
.mrx-hmd-amodal-head h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.85rem; font-weight: 700; margin: 0 0 4px 0; }
.mrx-hmd-amodal-head p { margin: 0; font-size: 12.5px; color: #5C635F; }

.mrx-hmd-amodal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #FAF7F4;
    border: 1px solid var(--mrx-hmd-border);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 14px;
}

.mrx-hmd-atab {
    border: none !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #5C635F !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    cursor: pointer;
}

.mrx-hmd-atab.is-active {
    background: #FFFFFF !important;
    color: #161A18 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mrx-hmd-amodal-alert {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.mrx-hmd-aform { display: none; flex-direction: column; gap: 10px; }
.mrx-hmd-aform.is-active { display: flex; }
.mrx-hmd-aform input { width: 100% !important; height: 44px !important; border: 1.5px solid var(--mrx-hmd-border) !important; border-radius: 12px !important; background: #FAF7F4 !important; padding: 0 14px !important; font-size: 13.5px !important; box-sizing: border-box !important; outline: none !important; }
.mrx-hmd-asubmit { height: 45px !important; border: none !important; border-radius: 999px !important; background: var(--mrx-hmd-primary) !important; color: #FFFFFF !important; font-size: 14px !important; font-weight: 700 !important; cursor: pointer; margin-top: 4px; }

/* Sticky Mobile Bottom App Bar */
.mrx-hmd-bottom-bar { display: none; }

@media (max-width: 1120px) {
    .mrx-hmd-burger { display: inline-flex; }
    .mrx-hmd-desktop-nav,
    .mrx-hmd-search-center,
    .mrx-hmd-cta-pill { display: none !important; }
    .mrx-hmd-mobile-search-btn { display: inline-flex !important; }
}

@media (max-width: 640px) {
    .mrx-hmd-container { padding: 0 12px; }
    .mrx-hmd-bar { height: var(--mrx-hmd-h-mob); gap: 6px; }
    .mrx-hmd-left { gap: 8px; }
    .mrx-hmd-brand img { max-height: var(--mrx-hmd-logo-hmob); max-width: 135px; }
    .mrx-hmd-brand-text { font-size: 20px; }
    .mrx-hmd-brand-tag { display: none; }
    .mrx-hmd-right { gap: 6px; }
    .mrx-hmd-hide-xs, .mrx-hmd-logout-circle { display: none !important; }
    .mrx-hmd-txt-desk { display: none; }
    .mrx-hmd-txt-mob { display: inline; }
    .mrx-hmd-acct-pill { padding: 0 11px !important; font-size: 12px !important; height: 34px !important; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
    .mrx-hmd-icon-circle, .mrx-hmd-burger { width: 34px; height: 34px; }
    .mrx-hmd-subbar { display: none !important; }

    /* Classic Full-Width Bottom Bar Style */
    .mrx-hmd-bottom-bar.is-style-classic_bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--mrx-hmd-bbar-bg, var(--mrx-hmd-bg, #FFFFFF)) !important;
        border-top: 1px solid var(--mrx-hmd-border);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        z-index: 99996;
        box-shadow: 0 -6px 24px rgba(18, 22, 20, 0.06);
        font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .mrx-hmd-bottom-bar.is-style-classic_bar a,
    .mrx-hmd-bottom-bar.is-style-classic_bar button {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: none !important;
        background: transparent !important;
        color: #5C635F !important;
        text-decoration: none !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        padding: 4px 0 !important;
        cursor: pointer;
    }
    .mrx-hmd-bottom-bar.is-style-classic_bar a.is-active { color: var(--mrx-hmd-primary) !important; }
    .mrx-hmd-bottom-bar.is-style-classic_bar .mrx-hmd-bbar-ico-wrap { position: relative; display: inline-flex; }
    .mrx-hmd-bottom-bar.is-style-classic_bar .mrx-hmd-bbar-ico-wrap em {
        position: absolute;
        top: -4px;
        right: -8px;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        border-radius: 999px;
        background: var(--mrx-hmd-gold);
        color: #FFFFFF;
        font-style: normal;
        font-size: 9.5px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Reference Floating Liquid-Glass Pill Dock Style */
    .mrx-hmd-bottom-bar.is-style-glass_dock {
        position: fixed !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        left: 14px !important;
        right: 14px !important;
        max-width: 440px;
        margin: 0 auto !important;
        height: 62px !important;
        padding: 5px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.78) !important;
        background-color: rgba(255, 255, 255, 0.78) !important;
        backdrop-filter: blur(22px) saturate(185%) !important;
        -webkit-backdrop-filter: blur(22px) saturate(185%) !important;
        border: 1px solid rgba(255, 255, 255, 0.75) !important;
        box-shadow:
            inset 0 1.5px 1px rgba(255, 255, 255, 0.92),
            inset 0 -1px 2px rgba(15, 23, 42, 0.06),
            0 12px 32px rgba(15, 23, 42, 0.18),
            0 2px 8px rgba(15, 23, 42, 0.08) !important;
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        gap: 2px;
        z-index: 99996;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-item {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100% !important;
        border-radius: 999px !important;
        border: none !important;
        background: transparent !important;
        color: #161A18 !important;
        text-decoration: none !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer;
        position: relative;
        transition: background-color 0.22s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-item:active {
        transform: scale(0.92);
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-item.is-active {
        background: rgba(18, 22, 20, 0.085) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55);
        color: #111413 !important;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-item.is-active svg.mrx-hmd-ico-home {
        fill: currentColor;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-lbl {
        display: none !important;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-ico-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-ico-wrap svg {
        width: 23px;
        height: 23px;
        stroke-width: 2.15;
    }

    .mrx-hmd-bbar-avatar {
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        object-fit: cover;
        border: 1.5px solid rgba(255, 255, 255, 0.92);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
        display: block;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-ico-wrap em {
        position: absolute;
        bottom: 1px;
        right: -2px;
        width: 8px;
        height: 8px;
        min-width: 8px;
        padding: 0;
        border-radius: 50%;
        background: #EF233C;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0;
        border: 1.5px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 1px 4px rgba(239, 35, 60, 0.45);
        display: inline-block;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mrx-hmd-bottom-bar.is-style-glass_dock .mrx-hmd-bbar-ico-wrap em[data-count="0"] {
        opacity: 0;
        transform: scale(0);
    }

    body { padding-bottom: 84px; }
}



/* Logo & Search Bar background customizer control */
.mrx-hmd-main {
    background-color: var(--mrx-hmd-bg) !important;
}
.mrx-hmd-search-form {
    background-color: var(--mrx-hmd-searchbox-bg, #FAF7F4) !important;
}
.mrx-hmd-header.has-glass.is-scrolled .mrx-hmd-main {
    background-color: var(--mrx-hmd-bg) !important;
    opacity: 0.96;
}

/* Sticky behaviour is opt-in and device-specific via dashboard settings. */
.mrx-hmd-header.is-sticky-desktop,
.mrx-hmd-header.is-sticky-mobile { z-index: 9999; }

/* Gorgeous Luxury Mobile Menu Style */
.mrx-hmd-drawer {
    background: linear-gradient(165deg, #133B25 0%, #0B2416 100%) !important;
    color: #FFFFFF !important;
    width: min(345px, 88vw) !important;
}

.mrx-hmd-drawer .mrx-hmd-drawer-head {
    border-bottom: 1px solid rgba(194, 147, 75, 0.2) !important;
}

.mrx-hmd-drawer .mrx-hmd-drawer-brand {
    color: #FFFFFF !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    letter-spacing: 0.02em;
}

.mrx-hmd-drawer .mrx-hmd-drawer-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(194, 147, 75, 0.3) !important;
    color: #FFFFFF !important;
}

.mrx-hmd-drawer .mrx-hmd-drawer-user {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(194, 147, 75, 0.2) !important;
}

.mrx-hmd-drawer .mrx-hmd-drawer-login-cta {
    background: var(--mrx-hmd-gold, #C2934B) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(194, 147, 75, 0.3);
}

.mrx-hmd-drawer .mrx-hmd-duser-info strong {
    color: #FFFFFF !important;
}
.mrx-hmd-drawer .mrx-hmd-duser-info span {
    color: rgba(255, 255, 255, 0.7) !important;
}
.mrx-hmd-drawer .mrx-hmd-duser-btns a.is-out {
    background: transparent !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
    color: #FCA5A5 !important;
}

.mrx-hmd-drawer .mrx-hmd-dlink-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.mrx-hmd-drawer .mrx-hmd-dlink-row a {
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.mrx-hmd-drawer .mrx-hmd-dlink-row a:hover {
    color: var(--mrx-hmd-gold, #C2934B) !important;
}

.mrx-hmd-drawer .mrx-hmd-acc-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: none !important;
}

.mrx-hmd-drawer .mrx-hmd-dsub {
    background: rgba(0, 0, 0, 0.2) !important;
}

.mrx-hmd-drawer .mrx-hmd-dsub li a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.mrx-hmd-drawer .mrx-hmd-drawer-foot {
    background: rgba(0, 0, 0, 0.25) !important;
    border-top: 1px solid rgba(194, 147, 75, 0.2) !important;
}

.mrx-hmd-drawer .mrx-hmd-dcontact-row a {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(194, 147, 75, 0.3) !important;
    color: #FFFFFF !important;
}

.mrx-hmd-drawer .mrx-hmd-dnote {
    color: rgba(255, 255, 255, 0.6) !important;
}



/* Optional desktop navigation subbar styling; it scrolls normally by default. */
.mrx-hmd-subbar {
    background: var(--mrx-hmd-bg, #FFFFFF);
    border-bottom: 1px solid var(--mrx-hmd-border, #E6DFD5);
    box-shadow: 0 4px 16px rgba(18, 22, 20, 0.03);
}

@media (max-width: 1120px) {
    .mrx-hmd-subbar {
        display: none !important; /* On mobile/tablets, subbar links are inside the slide-out drawer */
    }
}


/* v4.3 premium motion polish and accessibility */
.mrx-hmd-header .mrx-hmd-icon-circle,
.mrx-hmd-header .mrx-hmd-cta-pill,
.mrx-hmd-header .mrx-hmd-acct-pill,
.mrx-hmd-header .mrx-hmd-search-form {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.mrx-hmd-header .mrx-hmd-icon-circle:hover,
.mrx-hmd-header .mrx-hmd-cta-pill:hover,
.mrx-hmd-header .mrx-hmd-acct-pill:hover {
    transform: translateY(-2px);
}
.mrx-hmd-header .mrx-hmd-brand img { transition: transform .28s ease, max-height .28s ease; }
.mrx-hmd-header .mrx-hmd-brand:hover img { transform: scale(1.035); }
.mrx-hmd-drawer { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
    .mrx-hmd-header, .mrx-hmd-header *, .mrx-hmd-drawer, .mrx-hmd-drawer * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


.mrx-hmd-header.anim-fade { animation-name: mrxHmdFadeIn; }
.mrx-hmd-header.anim-none { animation: none !important; }
@keyframes mrxHmdFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Integrated Header & Mobile Drawer Country/Currency Switcher */
.mrx-hmd-country-pill {
    height: 38px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1.5px solid var(--mrx-hmd-border) !important;
    background: #FAF7F4 !important;
    color: var(--mrx-hmd-ink) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.mrx-hmd-country-pill:hover {
    border-color: var(--mrx-hmd-primary) !important;
    background: #FFFFFF !important;
    transform: translateY(-2px);
}

.mrx-hmd-cpill-flag {
    font-size: 16px;
    line-height: 1;
}

.mrx-hmd-cpill-curr {
    color: var(--mrx-hmd-primary);
    font-weight: 800;
}

.mrx-hmd-drawer-country-wrap {
    margin-top: 10px;
}

.mrx-hmd-drawer-country-btn {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(194, 147, 75, 0.35) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    cursor: pointer;
    text-align: left;
}

.mrx-hmd-dcountry-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mrx-hmd-dcountry-flag {
    font-size: 20px;
    line-height: 1;
}

.mrx-hmd-dcountry-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mrx-hmd-dcountry-text strong {
    font-size: 13px;
    color: #FFFFFF;
}

.mrx-hmd-dcountry-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.mrx-hmd-dcountry-change {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--mrx-hmd-gold, #C2934B);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mrx-hmd-cpill-code {
        display: none;
    }
    .mrx-hmd-country-pill {
        height: 34px !important;
        padding: 0 9px !important;
        font-size: 11.5px !important;
        gap: 4px;
    }
    .mrx-hmd-cpill-flag {
        font-size: 14px;
    }
}


/* ==========================================================================
   Instagram-Style Bottom Sheet Popup Menu (v4.5.0)
   ========================================================================== */
.mrx-hmd-ig-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 38, 23, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mrx-hmd-ig-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mrx-hmd-ig-sheet {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-width: 440px;
    margin: 0 auto;
    z-index: 99995;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(24px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(185%) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow:
        inset 0 1.5px 1px rgba(255, 255, 255, 0.92),
        0 18px 46px rgba(15, 23, 42, 0.22) !important;
    padding: 10px 14px 16px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s ease;
}

.mrx-hmd-ig-sheet.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.mrx-hmd-ig-handle-bar {
    display: flex;
    justify-content: center;
    padding: 4px 0 10px;
}

.mrx-hmd-ig-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #D6CFC2;
}

.mrx-hmd-ig-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #F1ECE1;
}

.mrx-hmd-ig-head strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--mrx-hmd-primary, #133B25);
}

.mrx-hmd-ig-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid var(--mrx-hmd-border, #E6DEC8) !important;
    background: #FAF8F4 !important;
    color: #161A18 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
}

.mrx-hmd-ig-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mrx-hmd-ig-row {
    display: flex !important;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 11px 10px !important;
    border-radius: 14px !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    text-align: left !important;
    color: #161A18 !important;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.mrx-hmd-ig-row:active,
.mrx-hmd-ig-row:hover {
    background: #FAF7F2 !important;
}

.mrx-hmd-ig-row-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(19, 59, 37, 0.07);
    color: var(--mrx-hmd-primary, #133B25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mrx-hmd-ig-row-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mrx-hmd-ig-row-title {
    font-size: 14px;
    font-weight: 700;
    color: #161A18;
    line-height: 1.25;
}

.mrx-hmd-ig-row-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    line-height: 1.25;
}

.mrx-hmd-ig-chevron {
    font-size: 20px;
    font-weight: 600;
    color: var(--mrx-hmd-gold, #C2934B);
    line-height: 1;
    flex-shrink: 0;
}

.mrx-hmd-bbar-popup-trigger.is-active {
    color: var(--mrx-hmd-primary, #133B25) !important;
}
