.d4u-desktop-menu-slot {
    display: contents;
}

/* DOORS4YOU desktop horizontal catalogue menu. Mobile/tablet (<1200px) is intentionally untouched. */
@media (min-width: 1200px) {
    .header.with-slideshow {
        z-index: 11;
    }

    .header .d4u-header-main-row {
        width: 100%;
        min-width: 0;
        gap: 18px;
    }

    .header .header-search {
        flex: 0 0 280px !important;
        width: 280px;
        max-width: 280px;
        min-width: 240px;
    }

    .header .header-buttons {
        flex: 0 0 auto;
        padding-right: 0 !important;
    }

    .d4u-desktop-nav {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 100%;
        align-items: stretch;
        position: relative;
        z-index: 12020;
    }

    .d4u-desktop-nav__list {
        display: flex;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .d4u-desktop-nav__item {
        position: relative;
        display: flex;
        align-items: stretch;
        min-width: 0;
    }

    .d4u-desktop-nav__link {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 8px 10px;
        color: #1c1c28;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        border-radius: 4px;
        transition: color .18s ease, background-color .18s ease;
    }

    .d4u-desktop-nav__link:hover,
    .d4u-desktop-nav__item:hover > .d4u-desktop-nav__link,
    .d4u-desktop-nav__item:focus-within > .d4u-desktop-nav__link {
        color: #e85b13;
        background: #f8f9fa;
    }

    .d4u-desktop-nav__chevron {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transform-origin: center;
        transition: transform .18s ease;
        flex: 0 0 auto;
    }

    .d4u-desktop-nav__item:hover > .d4u-desktop-nav__link .d4u-desktop-nav__chevron,
    .d4u-desktop-nav__item:focus-within > .d4u-desktop-nav__link .d4u-desktop-nav__chevron {
        transform: rotate(225deg) translate(-1px, -1px);
    }

    .d4u-desktop-nav__dropdown {
        position: absolute;
        top: calc(100% + 0px);
        left: 0;
        width: 340px;
        min-height: 1px;
        background: #fff;
        border: 1px solid #e9eaf0;
        border-radius: 5px;
        box-shadow: 0 12px 30px rgba(28, 28, 40, .14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
        z-index: 12030;
    }

    .d4u-desktop-nav__item:hover > .d4u-desktop-nav__dropdown,
    .d4u-desktop-nav__item:focus-within > .d4u-desktop-nav__dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .d4u-desktop-nav__level2 {
        position: relative;
        width: 100%;
        min-height: 100%;
        padding: 8px 0;
        background: #fff;
        border-radius: 5px;
    }

    .d4u-desktop-nav__subitem {
        position: static;
    }

    .d4u-desktop-nav__sub-link {
        color: #1c1c28;
        text-decoration: none;
    }

    .d4u-desktop-nav__sub-link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
        line-height: 1.25;
        transition: color .15s ease, background-color .15s ease;
    }

    .d4u-desktop-nav__sub-link:hover,
    .d4u-desktop-nav__subitem:hover > .d4u-desktop-nav__sub-link,
    .d4u-desktop-nav__subitem:focus-within > .d4u-desktop-nav__sub-link {
        color: #e85b13;
        background: #f7f7f9;
    }

    .d4u-desktop-nav__sub-image {
        width: 28px;
        height: 28px;
        object-fit: contain;
        flex: 0 0 28px;
    }

    /* Keep the dropdown inside the viewport for menu items closer to the right edge. */
    .d4u-desktop-nav__item:nth-last-child(-n+2) > .d4u-desktop-nav__dropdown {
        left: auto;
        right: 0;
    }

}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header .d4u-header-main-row { gap: 10px; }
    .header .header-search {
        flex-basis: 240px !important;
        width: 240px;
        max-width: 240px;
        min-width: 220px;
    }
    .d4u-desktop-nav__list { gap: 0; }
    .d4u-desktop-nav__link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }
}

/* Doors4You: desktop live search uses the full content-container width.
   Mobile/tablet keep the original OCTemplates sizing unchanged. */
@media (min-width: 1200px) {
    #sc_livesearch {
        max-width: none;
    }
}
