/* Under a product: «Коллекция» and «Хиты продаж» as two rows (partials/product/more, product/ribbon; the rows and cards
   themselves: home-bestsellers.css, as «Хиты продаж» on the home page) */

.lfpm { padding: 24px 0 8px; border-top: 1px solid #e9e6e1; }
.lfpm .lfbs { margin: 48px auto; }
.lfpm .lfbs-title { font-size: 28px; }

@media (max-width: 767px) {
    .lfpm .lfbs { margin: 36px auto; }
    .lfpm .lfbs-title { font-size: 24px; }
}

/* «Журнал» under «Хиты продаж» (2026-12-01): the same distance as from «Коллекция» to «Хиты продаж» (cards → next title:
   58px on a computer, 46px on a phone); it was 138px (the last block's margin + this block's padding + the journal's 72px) */
.lfpm > .lfbs:last-child { margin-bottom: 0; }
.lfpm ~ .lfm { margin-top: 92px; }   /* «Журнал» on its white card (home-magazine.css, 2026-12-02): the card 68px under «Хиты продаж» */
@media (max-width: 767px) {
    .lfpm ~ .lfm { margin-top: 64px; }
}

/* «Коллекция» and «Хиты продаж» each on a white card, as the product above them and «Журнал» under them (product-info.css,
   home-magazine.css), 2026-12-02: the site's background is grey #f9f9f9. The line above the rows goes: the cards part them.
   68px between the cards on a computer (the product card reaches 28px under its form, these cards 32px past the rows) */
.lfpm { padding: 0; border-top: 0; }
.lfpm .lfbs { position: relative; z-index: 0; margin: 132px auto 0; }
.lfpm .lfbs::before {
    content: ''; position: absolute; z-index: -1; top: -32px; right: -24px; bottom: -32px; left: -24px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
.lfpm ~ .lfm { margin-top: 132px; }
@media (max-width: 1147px) { .lfpm .lfbs { padding: 0 28px; } .lfpm .lfbs::before { right: 8px; left: 8px; } }
@media (max-width: 767px) {
    .lfpm .lfbs { margin: 96px auto 0; padding: 0 16px; }
    .lfpm .lfbs::before { top: -24px; right: 8px; bottom: -24px; left: 8px; }
    .lfpm ~ .lfm { margin-top: 96px; }
}
