/* v685 – unified wide desktop frame: header, detail surface and footer share one width. */
@media (min-width: 1200px) {
    html body:has(#product-offer) {
        --luna-wide-frame: min(1400px, calc(100% - 48px));
    }

    /* Keep the complete category strip visible; it must not crop into the breadcrumb. */
    html body:has(#product-offer) #jtl-nav-wrapper {
        height: 98px !important;
        min-height: 98px !important;
        overflow: visible !important;
        position: static !important;
        z-index: 20 !important;
    }

    html body:has(#product-offer) #jtl-nav-wrapper > .hide-navbar,
    html body:has(#product-offer) #jtl-nav-wrapper > [class*='menu-center-'] {
        width: var(--luna-wide-frame) !important;
        max-width: var(--luna-wide-frame) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible !important;
    }

    html body:has(#product-offer) #jtl-nav-wrapper > [class*='menu-center-'],
    html body:has(#product-offer) #jtl-nav-wrapper > [class*='menu-center-'] > .navbar {
        height: 30px !important;
        min-height: 30px !important;
        overflow: visible !important;
    }

    html body:has(#product-offer) #jtl-nav-wrapper > [class*='menu-center-'] .nav-link {
        display: flex !important;
        align-items: center !important;
        min-height: 30px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    /* All content columns use the same wide frame. */
    html body:has(#product-offer) .breadcrumb-container,
    html body:has(#product-offer) #result-wrapper > .container,
    html body:has(#product-offer) #result-wrapper .luna-detail-lower-grid {
        width: var(--luna-wide-frame) !important;
        max-width: var(--luna-wide-frame) !important;
    }

    /* The original template marks the header as fixed. On detail pages that would
       cover the breadcrumb after scrolling, so restore normal document flow. */
    html body:has(#product-offer) #main-wrapper,
    html body:has(#product-offer) #content-wrapper {
        margin-top: 0 !important;
    }

    html body:has(#product-offer) #product-offer.product-detail {
        grid-template-columns: 680px minmax(0, 1fr) !important;
    }

    html body:has(#product-offer) #product-offer > .product-gallery {
        width: 680px !important;
        max-width: 680px !important;
        padding-left: 44px !important;
    }

    html body:has(#product-offer) #result-wrapper .luna-detail-lower-grid {
        grid-template-columns: 450px 430px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    /* The footer must close the page as one dark surface, not as detached white cards. */
    html body:has(#product-offer) #footer {
        margin-top: 0 !important;
        padding: 0 !important;
        background: linear-gradient(110deg, #171c20 0%, #111619 100%) !important;
        color: #bec2c4 !important;
        border: 0 !important;
    }

    html body:has(#product-offer) #footer > .container {
        box-sizing: border-box !important;
        width: var(--luna-wide-frame) !important;
        max-width: var(--luna-wide-frame) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html body:has(#product-offer) #footer .luna-v562-footer {
        min-height: 128px !important;
        padding: 20px 20px 38px !important;
    }

    html body:has(#product-offer) #footer .luna-v562-footer a,
    html body:has(#product-offer) #footer .luna-v562-footer p {
        color: #bec2c4 !important;
    }

    html body:has(#product-offer) #copyright {
        min-height: 28px !important;
        background: #0e1215 !important;
    }

    html body:has(#product-offer) #copyright > .container-fluid {
        width: var(--luna-wide-frame) !important;
        max-width: var(--luna-wide-frame) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body:has(#product-offer) #copyright .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        min-height: 28px !important;
        margin: 0 !important;
    }

    html body:has(#product-offer) #copyright #system-credits {
        width: auto !important;
        margin-left: auto !important;
        padding: 0 !important;
        white-space: nowrap !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
}
