.products-slider.products-slider--with-heading {
    padding-top: 24px;
}

.products-slider__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: center;
    overflow-wrap: anywhere;
}

.products-slider__title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.products-slider__subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.products-slider__heading :is(p, h1, h2, h3, h4, h5, h6) {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.products-slider__heading :is(b, strong) {
    font-weight: 700;
}

.products-slider__heading .products-slider__responsive-text {
    font-size: var(--font-size-desktop, inherit);
    font-weight: var(--font-weight-desktop, inherit);
}

@media (max-width: 767px) {
    .products-slider.products-slider--with-heading {
        padding-top: 16px;
    }

    .products-slider__title {
        font-size: 18px;
    }

    .products-slider__heading .products-slider__responsive-text {
        font-size: var(--font-size-mobile, var(--font-size-desktop, inherit));
        font-weight: var(--font-weight-mobile, var(--font-weight-desktop, inherit));
    }
}
