/* Desktop/laptop navigation replacement. Mobile remains on its existing path. */

@media (min-width: 901px) {
    html body .mr-home-admin-horizontal-menu[data-mr-home-horizontal-menu],
    html body .mr-pixelcut-nav-shell[data-mr-pixelcut-horizontal-header],
    html body [data-mr-global-desktop-sidebar] {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.mr-global-has-desktop-sidebar {
        --mr-global-sidebar-w: 0px !important;
        --mr-global-sidebar-gap: 0px !important;
        --mr-global-content-left: 0px !important;
        --mr-global-content-w: calc(100vw - 15px) !important;
        padding-left: 0 !important;
    }

    body.mr-home-has-desktop-sidebar {
        --mr-home-desktop-sidebar-w: 0px !important;
        --mr-home-desktop-sidebar-gap: 0px !important;
        --mr-home-desktop-right-gap: 0px !important;
        --mr-home-desktop-content-w: calc(100vw - 15px) !important;
        --mr-home-desktop-frame-w: min(1180px, var(--mr-home-desktop-content-w)) !important;
        --mr-home-desktop-fullbleed-offset: calc((var(--mr-home-desktop-frame-w) - var(--mr-home-desktop-content-w)) / 2) !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-reserved-stage {
        display: none !important;
        position: relative !important;
        z-index: 600 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-moving-cards-slot {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        margin: 20px 0 0 !important;
        padding: 0 !important;
        transform: translateY(-10px) !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-moving-cards-slot:has(.mr-card-transfer-scene) {
        transform: none !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-moving-cards-slot .mr-moving-cards { margin: 0 !important; }
    body.mr-home-has-desktop-sidebar:has(.mr-home-moving-cards-slot .mr-moving-cards) .mr-home-clean-main { margin-top: 100px !important; }
    body.mr-home-has-desktop-sidebar .mr-home-orbit-showroom { translate: 0 0 !important; }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell > .mr-umbrel-carousel-wrap {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    html body.mr-home-has-desktop-sidebar
    .mr-home-desktop-content-shell
    #quickProforma.quick-proforma-section
    > .mr-quick-proforma-refine-title {
        pointer-events: auto !important;
    }

    html body.mr-home-has-desktop-sidebar
    .mr-home-desktop-content-shell
    #quickProforma.quick-proforma-section
    > .mr-quick-proforma-refine-title
    .mr-quick-proforma-refine-title__text {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        font-family: var(--mr-public-persian-font, "MR Arad Persian"), "Vazirmatn", sans-serif !important;
        font-size: clamp(11px, .82vw, 14px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        direction: rtl !important;
        text-align: center !important;
        white-space: nowrap !important;
        text-shadow: 0 6px 16px rgba(0, 0, 0, .34) !important;
        background: none !important;
        background-image: none !important;
        filter: none !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    html body.mr-home-has-desktop-sidebar
    .mr-home-desktop-content-shell
    #quickProforma.quick-proforma-section
    .mr-quick-proforma-refine-title__label--desktop {
        display: inline !important;
    }

    html body.mr-home-has-desktop-sidebar
    .mr-home-desktop-content-shell
    #quickProforma.quick-proforma-section
    .mr-quick-proforma-refine-title__label--mobile {
        display: none !important;
    }

    html body.mr-home-has-desktop-sidebar
    .mr-home-desktop-content-shell
    #quickProforma.quick-proforma-section
    > .mr-quick-proforma-refine-title
    .mr-quick-proforma-refine-title__text::before,
    html body.mr-home-has-desktop-sidebar
    .mr-home-desktop-content-shell
    #quickProforma.quick-proforma-section
    > .mr-quick-proforma-refine-title
    .mr-quick-proforma-refine-title__text::after {
        content: none !important;
        display: none !important;
    }
}

/* Desktop-only: align the Orbit surface with the physical left viewport edge.
   The section's existing responsive left padding remains as the safety gutter. */
@media (min-width: 1180px) {
    body.mr-home-has-desktop-sidebar {
        --mr-home-families-title-gap: clamp(216px, 14.8vw, 280px) !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell .mr-home-orbit-showroom[data-mr-home-orbit-section] {
        margin-bottom: clamp(44px, 3.1vw, 60px) !important;
    }

    html body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell .mr-home-twelve-card-strip[data-mr-home-twelve-cards] .mr-home-gap-refine-title {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    html body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell .mr-home-twelve-card-strip[data-mr-home-twelve-cards] .mr-home-gap-refine-title {
        width: clamp(480px, 37.6vw, 688px) !important;
    }

    html body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell #quickProforma.quick-proforma-section > .quick-proforma-wrap {
        translate: 30px 0 !important;
    }

    html body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell #quickProforma.quick-proforma-section > .mr-quick-proforma-refine-title {
        translate: none !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell .mr-home-orbit-showroom .mr-home-orbit-stage {
        margin-left: 0 !important;
        margin-right: auto !important;
        justify-content: left !important;
        justify-items: left !important;
        place-items: center left !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell .mr-home-orbit-showroom .mr-home-orbit {
        width: min(760px, calc(100vw - 36px)) !important;
        max-width: min(760px, calc(100vw - 36px)) !important;
        margin-left: clamp(18px, 1vw, 20px) !important;
        margin-right: auto !important;
        justify-self: left !important;
    }
}


/* Wide desktop only: restore the approved Umbrel carousel to the physical
   right of Orbit. Laptop and mobile remain fully hidden and unchanged. */
@media (max-width: 1399px) {
    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell > .mr-umbrel-carousel-wrap {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell .mr-home-orbit-showroom .mr-home-orbit {
        margin-left: calc(clamp(18px, 1vw, 20px) + 10px) !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell > .mr-home-orbit-side-refine-title.mr-orbit-title-is-detached .mr-home-orbit-side-refine-title__text {
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell > .mr-umbrel-carousel-wrap {
        position: absolute !important;
        z-index: 40 !important;
        top: var(--mr-umbrel-orbit-top, 0px) !important;
        left: var(--mr-umbrel-orbit-left, 840px) !important;
        right: auto !important;
        display: block !important;
        width: min(736px, calc(100% - var(--mr-umbrel-orbit-left, 840px) - 20px)) !important;
        height: var(--mr-umbrel-card-h, 355px) !important;
        min-height: var(--mr-umbrel-card-h, 355px) !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell > .mr-umbrel-carousel-wrap:not([data-mr-umbrel-positioned="true"]) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.mr-home-has-desktop-sidebar .mr-home-desktop-content-shell > .mr-umbrel-carousel-wrap[data-mr-umbrel-positioned="true"] {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
