body.home #main-menu.mfp-hide{display:none!important}

/* Contain accidental horizontal overflow while preserving vertical scrolling. */
@supports (overflow-x:clip) { html:has(body.home), body.home { overflow-x:clip; } }

/* Scoped theme rules do not style their own scope root. Restore the popup
   roots themselves while leaving unrelated front-page elements isolated. */
body.home .mfp-bg { position:fixed; inset:0; width:100%; height:100%; overflow:hidden; z-index:1042; background:#0b0b0b; opacity:0; transition:opacity .25s; }
body.home .mfp-bg.mfp-ready { opacity:.6; }
body.home .mfp-bg.mfp-removing { opacity:0!important; }
body.home .mfp-wrap:not(:has(.product-quick-view-container)) { position:fixed; inset:0; width:100%; height:100%; z-index:1043; outline:none!important; -webkit-backface-visibility:hidden; }
@media (prefers-reduced-motion:reduce) { body.home .mfp-bg { transition:none; } }

/* A scope root cannot satisfy ancestor selectors inside its own @scope.
   Define the popup shell outside that scope, only for the isolated homepage. */
body.home .mfp-wrap:not(:has(.product-quick-view-container)) { overflow-x:hidden; overflow-y:auto; }
body.home .mfp-wrap:not(:has(.product-quick-view-container)) .mfp-container { position:absolute; inset:0; width:100%; height:100%; box-sizing:border-box; padding:30px; text-align:center; }
body.home .mfp-wrap:not(:has(.product-quick-view-container)) .mfp-container::before { content:""; display:inline-block; height:100%; vertical-align:middle; }
body.home .mfp-wrap:not(:has(.product-quick-view-container)).mfp-align-top .mfp-container::before { display:none; }
body.home .mfp-wrap:not(:has(.product-quick-view-container)) .mfp-content { position:relative; z-index:1045; display:inline-block; width:100%; max-width:100%; margin:0 auto; text-align:left; vertical-align:middle; opacity:0; transform:translateY(-30px); transition:transform .5s,opacity .3s; }
body.home .mfp-wrap:not(:has(.product-quick-view-container)).mfp-ready .mfp-content { opacity:1; transform:translateY(0); }
body.home .mfp-wrap:not(:has(.product-quick-view-container)).mfp-removing .mfp-content { opacity:0; }
@media (max-width:767px) { body.home .mfp-wrap:not(:has(.product-quick-view-container)) .mfp-container { padding:16px; } }
@media (prefers-reduced-motion:reduce) { body.home .mfp-wrap:not(:has(.product-quick-view-container)) .mfp-content { transition:none; } }

/* GMC template Quick View: restore the Flatsome lightbox roots on isolated homepages. */
body.homepage-isolated > .mfp-bg:has(~ .mfp-wrap .product-quick-view-container) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    background-color: #0b0b0b;
    opacity: 0;
    transition: opacity .3s;
}
body.homepage-isolated > .mfp-bg.mfp-ready:not(.mfp-removing):has(~ .mfp-wrap .product-quick-view-container) {
    opacity: .6;
}
body.homepage-isolated > .mfp-wrap:has(.product-quick-view-container) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
}
body.homepage-isolated > .mfp-wrap.mfp-ready:not(.mfp-removing) .mfp-content:has(.product-quick-view-container) {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion:reduce) {
    body.homepage-isolated > .mfp-bg:has(~ .mfp-wrap .product-quick-view-container) {
        transition: none;
    }
}
