/* Megaflex: scoped changes from the client document 28.09.2026.
   Existing CSS, product values, forms and unrelated sliders are kept. */

/* Reserve side gutters for the previous/next arrows on desktops and laptops. */
.row.t122.mf-product-page > .wrap,
.row.t122.mf-product-page > .title-b-top > .wrap {
    max-width: 1668px;
    width: 100%;
    padding-left: 84px;
    padding-right: 84px;
    box-sizing: border-box;
}
.row.t122.mf-product-page .mf-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 16px 0 44px;
    min-width: 0;
}
.row.t122.mf-product-page .mf-product-hero > .ce-col-l,
.row.t122.mf-product-page .mf-product-hero > .ce-col-r {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    margin: 0;
    order: 0;
}
.row.t122.mf-product-page .mf-product-hero h1 {
    font-size: 40px;
    font-size: clamp(30px, 3.15vw, 50px);
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
.row.t122.mf-product-page .ce-subtitle,
.row.t122.mf-product-page .ce-description {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
.row.t122.mf-product-page .ce-img-main,
.row.t122.mf-product-page .ce-img-slider-wrap {
    display: block;
    max-width: 620px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.row.t122.mf-product-page .ce-col-r:after { content: none; }
.row.t122.mf-product-page .ce-btns {
    gap: 10px;
    width: 100%;
    max-width: 100%;
}
.row.t122.mf-product-page .ce-btns .btn {
    flex: 1 1 185px;
    width: auto;
    min-width: 0;
    max-width: 270px;
    margin: 0;
}
.row.t122.mf-product-page .catalog-navigation { pointer-events: none; }
.row.t122.mf-product-page .catalog-navigation a {
    pointer-events: auto;
    top: -25px;
}
.row.t122.mf-product-page .catalog-navigation a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Category-only dropdown. All labels link to existing category/filter records. */
.menu > div.mf-catalog-root { position: relative; }
.menu > div.mf-catalog-root > .mf-category-dropdown {
    top: 100%;
    left: 0;
    width: 390px;
    max-width: calc(100vw - 40px);
    max-height: none;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
    transition: opacity .15s ease, visibility .15s ease;
}
.menu > div.mf-catalog-root:hover > .mf-category-dropdown,
.menu > div.mf-catalog-root:focus-within > .mf-category-dropdown {
    padding: 12px 0;
    max-height: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.menu > div.mf-catalog-root > .mf-category-dropdown > .wrap {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.mf-category-links {
    display: block;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mf-category-links > a,
.mf-category-links > span {
    display: block;
    padding: 10px 22px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    color: var(--main-text-color, #4b4c4e);
}
.menu .mf-category-links > a:hover,
.menu .mf-category-links > a:focus-visible,
.menu .mf-category-links > a.active {
    color: var(--green, #008d36);
    background: #f1f7f3;
    text-decoration: none;
}

/* Allow the longer approved footer labels to wrap at word boundaries. */
.footer-right.mf-footer-navigation { gap: 24px; }
.footer-right.mf-footer-navigation > div {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.footer-right.mf-footer-navigation .footer-menu a,
.footer-right.mf-footer-navigation .footer-menu span {
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
@media (max-width: 1200px) {
    .footer-right.mf-footer-navigation > div { flex-basis: calc(50% - 24px); }
}
@media (max-width: 1023px) {
    .row.t122.mf-product-page > .wrap,
    .row.t122.mf-product-page > .title-b-top > .wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
    .row.t122.mf-product-page .mf-product-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .row.t122.mf-product-page .catalog-navigation {
        position: relative;
        top: auto;
        left: auto;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
        height: auto;
        padding: 16px 24px 0;
        box-sizing: border-box;
    }
    .row.t122.mf-product-page .catalog-navigation a {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 40px;
        height: 40px;
    }
    .row.t122.mf-product-page .ce-img-main { max-width: 380px; }
}
@media (max-width: 480px) {
    .row.t122.mf-product-page > .wrap,
    .row.t122.mf-product-page > .title-b-top > .wrap { padding-left: 16px; padding-right: 16px; }
    .row.t122.mf-product-page .catalog-navigation { padding-right: 16px; }
    .row.t122.mf-product-page .ce-btns .btn { flex-basis: 100%; max-width: none; }
    .footer-right.mf-footer-navigation > div { flex-basis: 100%; }
}

/* Dense desktop header remains on one line at laptop widths. */
@media (min-width: 1201px) and (max-width: 1599px) {
    .mf-site-header .header-top-col { gap: 14px; }
    .mf-site-header .header-top-col > .logo { flex: 0 0 135px; min-width: 0; }
    .mf-site-header .header-top-col > .logo img { max-width: 135px; height: auto; }
    .mf-site-header .menu > div + div { margin-left: 12px; }
    .mf-site-header .menu > div > a,
    .mf-site-header .menu > div > span { font-size: 12px; letter-spacing: 0; }
    .mf-site-header .header-top-col > div:last-child { flex-shrink: 0; }
    .mf-site-header .header-top-col > div:last-child > .btn { font-size: 13px; padding-left: 16px; padding-right: 16px; }
    .mf-site-header .header-phone { font-size: 13px; }
}
/* Readable fallback before the fixed-header size observer initializes. */
@media (max-width: 767px) {
    .mf-site-header .mobile-header { min-height: 154px !important; }
}
