/* VSEP desktop mega menu: fluid layout without fixed block dimensions */
.catalog-nav--new {
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 28px rgba(15, 32, 73, .14);
    background: #fff;
}

@media (min-width: 1081px) {
    .header .catalog-nav--new {
        top: 115px !important;
        z-index: 1001;
    }

    .catalog-nav--new .catalog-nav__header {
        display: none !important;
    }

    .catalog-nav--new .popup__close.js-catalog-close {
        display: block !important;
        top: 12px;
        right: 12px;
        z-index: 5;
    }

    .catalog-nav--new .catalog-nav__main {
        display: flex;
        width: 100%;
        max-width: none;
        margin: 0;
        align-items: stretch;
        background: #fff;
    }

    .catalog-nav--new .catalog-nav__chapters {
        flex: 0 0 22%;
        overflow: hidden;
        background: #f7f9fc;
    }

    .catalog-nav--new .chapters__list { padding: 12px 10px; }
    .catalog-nav--new .chapters__item { margin: 0; }
    .catalog-nav--new .chapters__link {
        position: relative;
        display: flex;
        padding: 10px 40px 10px 24px;
        align-items: center;
        gap: 14px;
        border-radius: 9px;
        color: #0e0e48;
        font-size: 14px;
        line-height: 1.2;
        text-decoration: none;
    }

    .catalog-nav--new .chapters__link:hover,
    .catalog-nav--new .chapters__link.active {
        background: #edf1ff;
        color: #113b93;
        font-weight: 800;
    }

    .catalog-nav--new .chapters__link::after {
        position: absolute;
        top: 50%;
        right: 16px;
        color: #5d6472;
        content: '›';
        font-size: 21px;
        font-weight: 300;
        line-height: 1;
        transform: translateY(-50%);
    }

    .catalog-nav--new .vsep-mega__nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 21px;
        width: 21px;
        height: 21px;
        color: #2b5fb9;
    }

    .catalog-nav--new .vsep-mega__nav-icon svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .catalog-nav--new .vsep-mega__nav-icon img {
        display: block;
        width: 19px;
        height: 19px;
        object-fit: contain;
    }

    .catalog-nav--new .chapters__item:first-child .vsep-mega__nav-icon svg {
        fill: currentColor;
        stroke: none;
    }

    .catalog-nav--new .chapters__link-text {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

    .catalog-nav--new .chapters__link.active > .chapters__link-text::before {
        position: absolute;
        top: 50%;
        left: -60px;
        width: 4px;
        height: 24px;
        border-radius: 4px;
        background: #ff6a00;
        content: '';
        transform: translateY(-50%);
    }

    .catalog-nav--new .catalog-nav__subchapters {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .catalog-nav--new .catalog-nav__subchapters-wrap,
    .catalog-nav--new .subchapters.active,
    .catalog-nav--new .subchapters__content.vsep-mega {
        overflow: visible;
    }

    .vsep-mega__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(18%, 22%);
        gap: 2%;
        padding: 22px;
        align-items: stretch;
        box-sizing: border-box;
    }

    .vsep-mega__main { min-width: 0; }
    .vsep-mega__columns {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2%;
    }

    .vsep-mega__column-title {
        margin: 4px 0 12px;
        color: #0e1a58;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .vsep-mega__list,
    .vsep-mega__simple-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .vsep-mega__list li + li { margin-top: 0; }
    .vsep-mega__list a {
        position: relative;
        display: block;
        padding: 5px 22px 5px 0;
        color: #3d4350;
        font-size: 14px;
        line-height: 1.25;
        text-decoration: none;
    }

    .vsep-mega__list a:hover { color: #123d93; }
    .vsep-mega__list a::after {
        position: absolute;
        top: 50%;
        right: 0;
        content: '›';
        color: #5d6472;
        font-size: 20px;
        font-weight: 300;
        line-height: 1;
        transform: translateY(-50%);
    }

    .vsep-mega__cta {
        align-self: center;
        padding: 22px 18px;
        overflow: hidden;
        border-radius: 14px;
        background-color: #111b54;
        background-image: linear-gradient(90deg, rgba(12, 21, 79, .96) 25%, rgba(17, 30, 84, .35) 72%, rgba(20, 36, 91, .08)), url('/upload/vsep-content/catalog/forklift-selection.png');
        background-position: center, 70% bottom;
        background-size: cover, auto 100%;
        background-repeat: no-repeat;
        color: #fff;
    }

    .vsep-mega__cta-title {
        margin: 0 0 10px;
        font-size: 20px;
        font-weight: 900;
        line-height: 1.2;
    }

    .vsep-mega__cta-text {
        margin: 0 0 18px;
        color: rgba(255, 255, 255, .85);
        font-size: 14px;
        line-height: 1.4;
    }

    .vsep-mega__cta-btn {
        display: inline-flex;
        padding: 12px 18px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #ff6a00;
        color: #fff;
        font-weight: 800;
        text-decoration: none;
    }

    .vsep-mega__cta-phone {
        display: block;
        margin-top: 14px;
        color: #fff;
        font-weight: 800;
        text-decoration: none;
    }
}
/* VSEP mega menu restored horizontal layout 2026-07-14 */
@media (min-width: 1081px) {
    .catalog-nav--new .catalog-nav__chapters { flex-basis: 390px; }
    .vsep-mega__body { grid-template-columns: minmax(0, 1fr) 320px; }
    .vsep-mega__cta {
        position: relative;
        overflow: hidden;
    }
    .vsep-mega__cta::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 58%;
        background: url('/upload/vsep-content/catalog/forklift-selection.png') 72% bottom / auto 100% no-repeat;
        content: '';
        pointer-events: none;
    }
    .vsep-mega__cta > * { position: relative; z-index: 1; }
}

@media (min-width: 1501px) {
    .header .catalog-nav--new {
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 52px) !important;
        max-width: none !important;
        transform: translateX(-50%) !important;
    }
    .catalog-nav--new .catalog-nav__main { width: 100%; max-width: none; }
}
/* VSEP mega menu top offset correction 2026-07-14 */
@media (min-width: 1081px) {
    .catalog-nav--new .subchapters__title { display: none; }
    .catalog-nav--new .vsep-mega__cta { align-self: start; }
}
/* VSEP mobile mega menu 2026-07-14 */
@media (max-width: 1080px) {
    .mobile-nav.open {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .mobile-nav__content {
        height: 95dvh;
        max-height: 95dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-nav--new.open {
        position: fixed !important;
        top: var(--vsep-mobile-viewport-top, 0px);
        right: 0;
        bottom: auto;
        left: 0;
        height: var(--vsep-mobile-viewport-height, 100dvh);
        max-height: var(--vsep-mobile-viewport-height, 100dvh);
        z-index: 1200;
        overflow: hidden;
        border-radius: 0;
        background: #fff;
    }

    .catalog-nav--new .catalog-nav__header,
    .catalog-nav--new .catalog-nav__main,
    .catalog-nav--new .catalog-nav__subchapters > .popup__close,
    .catalog-nav--new .catalog-nav__subchapters-wrap { display: none !important; }

    .vsep-mobile-mega {
        display: block;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        background: #fff;
    }
    .vsep-mobile-mega__view {
        display: none;
        height: 100%;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        -webkit-overflow-scrolling: touch;
    }
    .vsep-mobile-mega__view[data-view="root"],
    .vsep-mobile-mega[data-active-view="hub"] .vsep-mobile-mega__view[data-view="hub"],
    .vsep-mobile-mega[data-active-view="group-0"] .vsep-mobile-mega__view[data-view="group-0"],
    .vsep-mobile-mega[data-active-view="group-1"] .vsep-mobile-mega__view[data-view="group-1"],
    .vsep-mobile-mega[data-active-view="group-2"] .vsep-mobile-mega__view[data-view="group-2"],
    .vsep-mobile-mega[data-active-view="group-3"] .vsep-mobile-mega__view[data-view="group-3"] { display: block; }
    .vsep-mobile-mega[data-active-view] .vsep-mobile-mega__view[data-view="root"] { display: none; }

    .vsep-mobile-mega__view-header {
        display: grid;
        grid-template-columns: 44px 1fr;
        min-height: 56px;
        align-items: center;
        background: #0e0e48;
        color: #fff;
    }
    .vsep-mobile-mega__back {
        border: 0;
        background: transparent;
        color: #fff;
        font: inherit;
        font-size: 0;
    }
    .vsep-mobile-mega__back::before { content: '←'; font-size: 23px; }
    .vsep-mobile-mega__view-title { font-size: 15px; font-weight: 700; }
    .vsep-mobile-mega__list { padding: 8px 0; }
    .vsep-mobile-mega__link {
        position: relative;
        display: block;
        padding: 14px 42px 14px 18px;
        border-bottom: 1px solid #eef0f4;
        color: #353945;
        font-size: 15px;
        line-height: 1.3;
        text-decoration: none;
    }
    .vsep-mobile-mega__link::after {
        position: absolute;
        top: 50%;
        right: 18px;
        color: #777f8d;
        content: '›';
        font-size: 23px;
        font-weight: 300;
        transform: translateY(-50%);
    }
    .vsep-mobile-mega__link.is-current {
        margin: 0 8px;
        padding-left: 10px;
        border-bottom: 0;
        border-radius: 8px;
        background: #edf1ff;
        color: #123d93;
        font-weight: 700;
    }
}
/* VSEP mobile menu close 2026-07-14 */
@media (max-width: 1080px) {
    .vsep-mobile-mega__view[data-view="root"] { position: relative; }
    .vsep-mobile-mega__root-header {
        grid-template-columns: 1fr 56px;
    }
    .vsep-mobile-mega__close {
        position: static;
        z-index: 1;
        display: flex;
        width: 56px;
        height: 56px;
        align-items: center;
        justify-content: center;
        justify-self: end;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 30px;
        line-height: 1;
    }
}
/* VSEP mobile split actions 2026-07-14 */
@media (max-width: 1080px) {
    .vsep-mobile-mega__root-row {
        display: flex;
        min-height: 50px;
        align-items: stretch;
        border-bottom: 1px solid #eef0f4;
    }
    .vsep-mobile-mega__root-row .vsep-mobile-mega__link {
        flex: 0 1 auto;
        padding-right: 12px;
        border-bottom: 0;
    }
    .vsep-mobile-mega__root-row .vsep-mobile-mega__link::after { display: none; }
    .vsep-mobile-mega__trigger {
        position: relative;
        flex: 1 1 auto;
        min-width: 54px;
        border: 0;
        background: transparent;
    }
    .vsep-mobile-mega__trigger::after {
        position: absolute;
        top: 50%;
        right: 18px;
        color: #777f8d;
        content: '›';
        font-size: 23px;
        font-weight: 300;
        transform: translateY(-50%);
    }
    .vsep-mobile-mega__root-direct { flex: 1 1 auto !important; }
    .vsep-mobile-mega__root-direct::after { display: block !important; }
}
/* VSEP mobile layer desktop visibility 2026-07-14 */
.vsep-mobile-mega { display: none; }

@media (max-width: 1080px) {
    .vsep-mobile-mega { display: block; }
}

/* VSEP mega brand showcase */
@media (min-width: 1081px) {
    .catalog-nav--new .vsep-mega__brand-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        align-content: start;
    }

    .catalog-nav--new .vsep-mega__brand-card {
        display: flex;
        min-height: 116px;
        flex-direction: column;
        justify-content: space-between;
        gap: 12px;
        padding: 18px;
        border: 1px solid #dce3ef;
        border-radius: 8px;
        background: #ffffff;
        color: #0e0e48;
        text-decoration: none;
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .catalog-nav--new .vsep-mega__brand-card:hover {
        border-color: #ff6a00;
        box-shadow: 0 10px 22px rgba(14, 14, 72, .12);
        color: #0e0e48;
        transform: translateY(-2px);
    }

    .catalog-nav--new .vsep-mega__brand-title {
        color: #0e0e48;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.2;
    }

    .catalog-nav--new .vsep-mega__brand-text {
        color: #59657a;
        font-size: 13px;
        line-height: 1.42;
    }

    .catalog-nav--new .vsep-mega__brand-card--all {
        background: #f4f7fc;
    }
}
