/* One sidebar in document order after h1, shared by all catalog detail pages. */
.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "main" "sidebar";
    align-items: start;
}

.catalog-layout > h1 {
    grid-area: title;
}

.catalog-layout > .catalog-sidebar {
    grid-area: sidebar;
}

.catalog-layout > .catalog-main {
    grid-area: main;
}

.catalog-layout > .catalog-sidebar,
.catalog-layout > .catalog-main {
    float: none;
    width: auto;
    min-width: 0;
}

.catalog-layout > .catalog-recommendations {
    grid-column: 1 / -1;
    min-width: 0;
}

/* Override the legacy rules that hid the desktop sidebar on small screens. */
.catalog-sidebar .product-certificatesSlider {
    display: block;
}

.catalog-sidebar .article-item {
    float: none;
    width: auto;
    margin-right: 0;
}

.catalog-sidebar .page-title-2,
.catalog-sidebar .page-title-3 {
    overflow-wrap: anywhere;
}

@media screen and (min-width: 1233px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
        grid-template-areas: "title title" "main sidebar";
        column-gap: 30px;
    }
}

@media screen and (min-width: 1869px) {
    .catalog-layout {
        grid-template-columns: minmax(0, 1fr) 408px;
        column-gap: 36px;
    }
}
