/* Category headers share the existing page container, not a separate centered grid. */
.catalog-category-view .xbau-category-hero {
    box-sizing: border-box;
    clear: both;
    float: none;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.catalog-category-view .xbau-category-hero:has(.xbau-category-banner) {
    display: block;
    margin-bottom: 32px;
}
.catalog-category-view .xbau-category-heading {
    max-width: 100%;
    margin: 28px 0 0;
    color: #4D4D4F;
    font-family: inherit;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    overflow-wrap: anywhere;
}
.catalog-category-view .xbau-category-banner {
    display: block;
    width: 100%;
    min-height: 160px;
    aspect-ratio: 5 / 1;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f7f7;
}
.xbau-category-banner picture,
.xbau-category-banner img {
    display: block;
    width: 100%;
    height: 100%;
}
.xbau-category-banner img {
    object-fit: cover;
    object-position: center;
}
@media (min-width: 768px) and (max-width: 1024px) {
    .catalog-category-view .xbau-category-banner {
        aspect-ratio: 3 / 1;
    }
}
@media (max-width: 767px) {
    .catalog-category-view .xbau-category-banner {
        aspect-ratio: 5 / 2;
        border-radius: 14px;
    }
    .catalog-category-view .xbau-category-heading {
        font-size: clamp(20px, 5vw, 26px);
        margin-top: 20px;
    }
    .catalog-category-view .xbau-category-hero:has(.xbau-category-banner) {
        margin-bottom: 24px;
    }
}
