/* Catalog (pages/category.htm): the filter panel «Панель» (.lfc-f1) and the product grid «Карточки» (.lfc-c2) on every category */

.lfc {
    --ink: #111;
    --muted: #6b6b6b;
    --line: #e9e6e1;
    --soft: #f7f5f2;
    --gold: #b08d57;
    --red: #a3141f;
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
}
.lfc .category_head { font-size: 26px; letter-spacing: .02em; color: var(--ink); }

/* ===================== Filters: the toolbar ===================== */
.lfc-f1 .mall-products-filter{
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    max-width: 1100px; margin: 26px auto 0; padding: 0 16px;
}
.lfc-f1 .category_filters{
    width: auto; height: 42px; margin: 0; padding: 0 22px; gap: 8px;
    border: 1px solid var(--ink); border-radius: 21px; background: #fff;
    font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
    transition: background .2s, color .2s;
}
.lfc-f1 .category_filters:hover{ background: var(--ink); color: #fff; }
.lfc-f1 .category_filters span.symbol{ display: none; }
.lfc-f1 .category_filters::before{
    content: ''; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 6h18M6 12h12M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 6h18M6 12h12M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* the chosen filters (pages/category.htm): removable chips next to «Фильтры» on desktop, «Фильтры: N» on phones */
.lfc-f1 .lfc-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; order: 1; flex: 1 1 0; min-width: 0; }
.lfc-f1 .lfc-active:empty { display: none; }
.lfc-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; margin: 0; padding: 0 10px 0 14px;
    border: 1px solid var(--line); border-radius: 17px; background: var(--soft);
    font-family: inherit; font-size: 13px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.lfc-chip span { font-size: inherit; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfc-chip i { font-style: normal; font-size: 16px; line-height: 1; color: var(--muted); transition: color .15s; }
.lfc-chip:hover { border-color: var(--ink); background: #fff; }
.lfc-chip:hover i { color: var(--red); }
.lfc-f1 .category_filters .lfc-count { display: none; }

/* sort as a pill on the right of the toolbar */
.lfc-f1 .mall-products-filter > .mall-filter{ margin-left: auto; order: 2; }
.lfc-f1 .category_sort{ margin: 0; }
.lfc-f1 .category_sort select{
    width: auto; height: 42px; padding: 0 40px 0 18px; border: 1px solid var(--line); border-radius: 21px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
    font-size: 14px; color: var(--ink); text-align: left !important; text-align-last: left !important;
}
.lfc-f1 .category_sort select:hover{ border-color: var(--ink); }

/* buttons «Применить» / «Сбросить фильтры» */
.lfc-f1 .filter_block_btn{ flex-direction: row; justify-content: flex-end; gap: 10px; width: auto; margin: 0; }
.lfc-f1 .mall-property__clear-filter{ width: auto; min-width: 0; max-width: none; }
.lfc-f1 .filter_block_btn div button{
    width: auto; margin: 0 !important; padding: 0 24px; height: 42px;
    border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fff;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.lfc-f1 .filter_block_btn .js-mall-clear-filter{ background: #fff; color: var(--ink); }

/* the options */
.lfc .filter_in li { width: auto; margin: 0; padding: 0; border: 0 !important; font-size: 14px; }
.lfc .filter_in li label { margin: 0; font-size: 14px; cursor: pointer; }
.lfc .selected-values, .lfc .selected-values span { font-size: inherit !important; color: var(--gold); }
.lfc #price-select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; width: 100%; }

/* ===================== Filters 1 · «Панель»: a card under the toolbar, groups in columns, values as chips ===================== */
/* the card look belongs to the block itself, not to «open_filters»: closing drops that class before the slide-up,
   which left the folding content without its background */
.lfc-f1 .filter_block { order: 3; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 22px 18px; }
.lfc-f1 .filters_group { width: 100%; margin: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; background: none; }
.lfc-f1 .filters_group li[class^="filter_"] {
    width: 100%; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line);
    justify-content: space-between; font-size: 14px; color: var(--ink); cursor: pointer;
}
.lfc-f1 .filters_group li[class^="filter_"] span.symbol { order: 2; margin: 0 0 0 auto; color: var(--muted); }
.lfc-f1 .filters_group .filter_in.open_filters { max-height: 260px; padding: 12px 0 4px; }
.lfc-f1 .filters_group .filter_in .mall-filter--set { display: flex; flex-wrap: wrap; gap: 8px; }
.lfc-f1 .filter_in li label { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: #333; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s; }
.lfc-f1 .filter_in li label input { position: absolute; opacity: 0; pointer-events: none; }
.lfc-f1 .filter_in li label:hover { border-color: var(--ink); color: var(--ink); }
.lfc-f1 .filter_in li.mall-filter__option--selected label { background: var(--ink); border-color: var(--ink); color: #fff; }
.lfc-f1 .filter_block_btn { margin-top: 18px; }


/* ===================== Product grid «Карточки» (.lfc-c2) ===================== */
.lfc-c2 .category_body{
    display: grid; justify-content: stretch; max-width: 1100px; margin: 30px auto 0; padding: 0 16px; column-gap: 24px; row-gap: 34px;
}
.lfc-c2 .category_body { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; column-gap: 20px; }
.lfc-c2 .category_body .category_item{
    width: auto; max-width: none; margin: 0; padding: 0; border-radius: 0; box-shadow: none; background: none; align-items: stretch; text-align: left;
}
.lfc-c2 .category_item a{ align-items: stretch; }
.lfc-c2 .category_item a .thumb{
    width: 100%; align-self: stretch; height: auto !important; aspect-ratio: 1; justify-content: center; overflow: hidden;  /* full card width: a narrow photo no longer makes a smaller, lower box */
}
.lfc-c2 .category_item a .thumb img{
    max-width: 78% !important; max-height: 78% !important; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease;
}
.lfc-c2 .category_item:hover a .thumb img{ transform: scale(1.05); }
.lfc .category_body .category_item a .brands, .lfc .category_body .category_item a .name, .lfc .category_body .category_item a .price { margin: 0; color: var(--ink); }


/* framed cards, everything centred, the «В корзину» bar */
.lfc-c2 .category_body .category_item { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px 18px 64px; text-align: center; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.lfc-c2 .category_body .category_item:hover { border-color: #d8d2c8; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.lfc-c2 .category_item a { align-items: center; }
.lfc-c2 .category_body .category_item a .brands { margin-top: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lfc-c2 .category_body .category_item a .name { margin-top: 4px; font-size: 15px; }
.lfc-c2 .category_body .category_item a .price { margin-top: 8px; font-size: 16px; }
.lfc-c2 .category_body .category_item .wishlist { top: 16px; left: auto; right: 16px; width: 24px; }
.lfc-c2 .category_body .category_item .cart { top: auto; left: 18px; right: 18px; bottom: 16px; width: auto; }
.lfc-c2 .category_body .category_item .cart a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 38px; border: 1px solid var(--ink); border-radius: 6px; color: var(--ink); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; }
.lfc-c2 .category_body .category_item .cart a::after { content: 'В корзину'; }
.lfc-c2 .category_body .category_item .cart .card-icon { width: 14px; }
.lfc-c2 .category_body .category_item .cart a:hover { background: var(--ink); color: #fff; }
.lfc-c2 .category_item .card-discount { top: 16px; left: 16px; transform: none; width: 38px; height: 38px; }


/* «Загрузить ещё»: its own pill size, the colours and hover of the /login button (login.css .lfl-btn) */
.lfc .paging__button {
    height: 44px; padding: 0 30px; border: 1px solid var(--ink); border-radius: 22px; background: var(--ink); color: #fff;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s;
}
.lfc .paging__button:hover { background: #333; border-color: #333; color: #fff; }
.lfc .paging__button:disabled { opacity: .35; cursor: default; background: var(--ink); }
/* more room between the last cards and «Загрузить ещё» (2026-12-02; was 10px) */
.lfc .paging__loader { margin-top: 32px; }
@media (max-width: 767px) { .lfc .paging__loader { margin-top: 24px; } }

/* ===================== phone ===================== */
@media (max-width: 767px) {
    .lfc .category_head { font-size: 22px; }
    .lfc-f1 .filters_group { grid-template-columns: 1fr; }
    /* phones: no chips, the count on the button instead */
    .lfc-f1 .lfc-active { display: none; }
    .lfc-f1 .category_filters .lfc-count { display: inline; font-size: inherit; letter-spacing: inherit; }
    /* the button and the sort stay on one line with the count shown */
    .lfc-f1 .category_filters { padding: 0 16px; }
    .lfc-f1 .category_filters.lfc-has-count { background: var(--ink); color: #fff; }
    /* «Применить» over «Сбросить фильтры», full width: side by side they do not fit a phone */
    .lfc-f1 .filter_block_btn { flex-direction: column; align-items: stretch; gap: 8px; }
    .lfc-f1 .filter_block_btn > div { width: 100%; }
    .lfc-f1 .filter_block_btn div button { width: 100%; }
    .lfc-f1 .category_sort select{ max-width: 170px; }

    .lfc-c2 .category_body { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 22px; }
    .lfc-c2 .category_body .category_item { padding: 12px 12px 58px; }
    .lfc-c2 .category_body .category_item .cart { left: 12px; right: 12px; bottom: 12px; }
    .lfc-c2 .category_body .category_item .cart a::after { content: 'Купить'; }
}

/* the group headers: the name and its chosen value flow as one line of text (a flex row split them into columns,
   so a long value wrapped inside its own narrow column); «+» sits apart on the right */
.lfc .filters_group li[class^="filter_"] { display: block; position: relative; padding-right: 28px; line-height: 1.45; }
.lfc .filters_group li[class^="filter_"] span.symbol { position: absolute; right: 0; top: 50%; margin: 0; transform: translateY(-50%); }
.lfc .filters_group li[class^="filter_"] .selected-values,
.lfc .filters_group li[class^="filter_"] .selected-values span { margin: 0; }
.lfc-f1 .filters_group .filter_in .mall-filter--set > li { display: block; width: auto; }
/* chips (1) flow as inline blocks: works for the brand list (ul > li) and the property sets (ul > div > li) */
.lfc-f1 .filters_group .filter_in > li, .lfc-f1 .filters_group .filter_in .mall-filter--set > li { display: inline-block; width: auto; margin: 0 6px 8px 0; padding: 0; vertical-align: top; }
.lfc-f1 .filters_group .filter_in .mall-filter--set { display: block; }
.lfc-f1 .filter_in li label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 2: «В корзину» bar: icon and word in one row (the theme makes card links columns), the bar is one line high */
.lfc-c2 .category_body .category_item .cart { height: 38px; }
.lfc-c2 .category_body .category_item .cart a { flex-direction: row; height: 38px; }

/* page numbers (partials/products/pagination.htm): round buttons, the current page black — the theme draws grey
   boxes and Bootstrap a blue current page */
.lfc .mall-pagination .pagination {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
    width: auto; max-width: 100%; margin: 18px auto 0; padding: 0;
}
.lfc .mall-pagination .pagination > li { display: block; margin: 0; padding: 0; border: 0; background: none; }
.lfc .mall-pagination .page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; margin: 0; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: none;
    font-family: inherit; font-size: 14px !important; line-height: 1; color: var(--ink); text-decoration: none;
    transition: border-color .2s, background .2s, color .2s;
}
.lfc .mall-pagination a.page-link:hover { border-color: var(--ink); background: #fff; color: var(--ink); text-decoration: none; }
.lfc .mall-pagination .page-item.active .page-link { border-color: var(--ink); background: var(--ink); color: #fff; z-index: auto; }
.lfc .mall-pagination .page-item.disabled .page-link { min-width: 24px; padding: 0; border-color: transparent; background: none; color: var(--muted); }
.lfc .mall-pagination .page-item.first .page-link, .lfc .mall-pagination .page-item.last .page-link { font-size: 16px !important; }
.lfc .mall-pagination .page-link:focus { outline: none; box-shadow: 0 0 0 3px rgba(17,17,17,.12); }
@media (max-width: 767px) {
    /* nine page buttons in one row on a phone */
    .lfc .mall-pagination .pagination { gap: 4px; }
    .lfc .mall-pagination .page-link { min-width: 34px; height: 34px; padding: 0 8px; font-size: 13px !important; }
    .lfc .mall-pagination .page-item.disabled .page-link { min-width: 18px; }
}

/* sort (pages/category.htm): a pill and a list in the site's look instead of the browser's select popup */
.lfc .lfc-sort__native { display: none !important; }
.lfc-sort { position: relative; }
.lfc-sort__pill {
    display: inline-flex; align-items: center; gap: 12px; height: 42px; margin: 0; padding: 0 16px 0 18px;
    border: 1px solid var(--line); border-radius: 21px; background: #fff;
    font-family: inherit; font-size: 14px; color: var(--ink); white-space: nowrap; cursor: pointer;
    transition: border-color .2s;
}
.lfc-sort__pill span { font-size: inherit; }
.lfc-sort__pill:hover, .lfc-sort.is-open .lfc-sort__pill { border-color: var(--ink); }
.lfc-sort__pill i { width: 7px; height: 7px; margin-top: -4px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); transition: transform .2s, margin .2s; }
.lfc-sort.is-open .lfc-sort__pill i { transform: rotate(225deg); margin-top: 3px; }
.lfc-sort__list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 6px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.1);
    visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .16s, transform .16s, visibility .16s;
}
.lfc-sort.is-open .lfc-sort__list { visibility: visible; opacity: 1; transform: none; }
.lfc-sort__option {
    position: relative; display: block; width: 100%; margin: 0; padding: 11px 36px 11px 14px; border: 0; border-radius: 6px;
    background: none; font-family: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer;
}
.lfc-sort__option:hover { background: var(--soft); }
.lfc-sort__option.is-on::after {
    content: ''; position: absolute; right: 16px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
    border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg);
}

@media (max-width: 767px) {
    /* phones: the same popover under the pill, with rows a little taller for a finger */
    .lfc-sort__option { padding: 14px 40px 14px 14px; font-size: 15px; }
    .lfc-sort__pill { padding: 0 14px 0 16px; }
}

/* the number of products next to a filter option (productsFilter/scripts, LuxFair.Shop FilterFacets counts), as on /search */
.lfc .filter_in li label .lfc-n { margin-left: 6px; font-size: 11px; color: var(--muted); }
.lfc .filter_in li label .lfc-n:empty { display: none; }
.lfc-f1 .filter_in li input:checked + .lfc-n, .lfc-f1 .filter_in li label:has(input:checked) .lfc-n { color: inherit; opacity: .75; }
/* the smaller count sits on the name's baseline, not above it */
.lfc .filter_in li label .lfc-n { position: relative; top: 2px; }

/* phones: ticks wait for «Применить» (productsFilter/scripts); it stays at the bottom of the screen while the panel scrolls */
@media (max-width: 767px) {
    .lfc-f1 .filter_block_btn {
        position: sticky; bottom: 0; z-index: 3; margin: 12px -22px -18px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #fff;
    }
}

/* «Цена»: the same pill with an arrow as the sort select (.category_sort) */
.lfc #price-select {
    height: 42px; padding: 0 40px 0 18px; border: 1px solid var(--line); border-radius: 21px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
    font-size: 14px; color: var(--ink); text-align: left; text-align-last: left; transition: border-color .2s;
}
.lfc #price-select:hover { border-color: var(--ink); }
.lfc #price-select:focus { outline: none; border-color: var(--ink); }
.lfc #price-select:focus-visible { box-shadow: 0 0 0 3px rgba(17, 17, 17, .12); }
/* the price list under its title, the full width of the group, as the other filters' options */
.lfc #filter_in_price { width: 100%; align-self: stretch; padding-bottom: 0; }
.lfc #filter_in_price .mall-filter--range { width: 100%; }
.lfc #price-select { display: block; width: 100%; margin: 0; }

/* the price pill (pages/category.htm pillSelect): the width of its group, the list under it from the left */
.lfc .lfc-sort--price { display: block; width: 100%; }
.lfc .lfc-sort--price .lfc-sort__pill { width: 100%; justify-content: space-between; }
.lfc .lfc-sort--price .lfc-sort__list { left: 0; right: auto; width: 100%; min-width: 0; }
/* the price's list opens over the panel: its group has no height limit / own scroll as the option lists */
.lfc #filter_in_price, .lfc #filter_in_price .mall-filter--range { max-height: none !important; overflow: visible !important; }
.lfc .lfc-sort--price.is-open { z-index: 70; }

/* Phones (2026-12-01): the heart «В избранное» was a 24×21px target; padding with an equal negative margin makes it
   about 44px to tap while the icon stays where it was */
@media (max-width: 767px) {
    .lfc-c2 .category_body .category_item .wishlist button,
    .lfc-c2 .category_body .category_item .wishlist a { box-sizing: content-box; padding: 11px; margin: -11px; }
}

/* The struck-through old price on the cards (2026-12-02): #6f6f6f instead of the theme's #8c8c8c (3.4:1 on white) —
   catalogue, «Скидки», search */
body .category_body .category_item a .price--discount .price__old,
body .category_item .price--discount .price__old { color: #6f6f6f; text-decoration-color: rgba(111, 111, 111, .8); }

/* Room above the footer on phones, as on a computer (40px; the footer has no top margin since 2026-12-02) */
@media (max-width: 767px) { .lfc.category_page { padding-bottom: 40px; } }

/* The photo starts no higher than the heart's bottom at any width (2026-12-02), as «Хиты продаж» does with its badge
   (home-bestsellers.css): the heart sits at the card's top (top 16px, 21px tall, under the 1px border), so the square's
   top gets the room from the card's padding down to the heart's bottom. Every card gets it, so the photos stay level */
.lfc-c2 .category_body .category_item { --lfc-pad-top: 18px; }
.lfc-c2 .category_item a .thumb { box-sizing: border-box; padding-top: calc(16px + 21px - var(--lfc-pad-top)); }
@media (max-width: 767px) { .lfc-c2 .category_body .category_item { --lfc-pad-top: 12px; } }
/* a tall photo fills the square under the heart (2026-12-02): its top right at the heart's bottom, not 78% centred below it */
.lfc-c2 .category_item a .thumb img { max-height: 100% !important; }
