/* Lista produktów (ekran „Kategoria”): filtry, sortowanie, „Pokaż kolejne”, arkusz filtrów. */

.fm-listing { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; }
.fm-listing--nofilters { grid-template-columns: minmax(0, 1fr); }

.fm-filters { display: flex; flex-direction: column; gap: 24px; background: #fff; border-radius: 20px; padding: 26px; position: sticky; top: 88px; }
.admin-bar .fm-filters { top: 120px; }
.fm-fgroup { display: flex; flex-direction: column; gap: 12px; }
.fm-fgroup__h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fm-fgroup__items { display: flex; flex-direction: column; gap: 10px; }
.fm-fitem { cursor: pointer; border: none; background: transparent; padding: 0; display: flex; gap: 10px; align-items: center; text-align: left; font-size: 14px; color: var(--ink); line-height: normal; }
.fm-fitem__box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #fff; color: #fff; }
.fm-fitem.is-on .fm-fitem__box { background: var(--ink); }
.fm-fitem__l { flex: 1 1 auto; font-weight: 500; }
.fm-fitem__n { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.fm-filters__clear { border: 1px solid var(--line); background: var(--paper); border-radius: 100px; padding: 12px 16px; font-size: 13px; font-weight: 700; text-align: center; line-height: normal; }
.fm-theme .fm-filters__clear:hover { border-color: var(--ink); color: var(--ink); }

.fm-listing__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fm-listing.is-loading .fm-listing__main { opacity: 0.5; transition: opacity 150ms; }
.fm-listing__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.fm-listing__count { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.fm-listing__fbtn { display: none; cursor: pointer; border: 1px solid var(--ink); background: #fff; border-radius: 100px; height: 44px; padding: 0 18px; font-size: 14px; font-weight: 700; align-items: center; gap: 8px; }
.fm-listing__fn { background: var(--red); color: #fff; border-radius: 100px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; }
.fm-theme .fm-sort { font-size: 14px; font-weight: 700; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 100px; background: #fff; color: var(--ink); height: auto; line-height: normal; }
.fm-achips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fm-achip { cursor: pointer; border: none; background: var(--ink); color: #fff; border-radius: 100px; padding: 9px 14px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; line-height: normal; }
.fm-achip__x { color: var(--sage); }
.fm-listing__more { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 28px 0 0; }
.fm-listing__prog { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.fm-listing__track { width: 220px; height: 4px; border-radius: 100px; background: var(--line); overflow: hidden; }
.fm-listing__track span { display: block; height: 100%; background: var(--ink); transition: width 200ms; }
.fm-listing__none { background: #fff; border-radius: 20px; padding: 28px; font-size: 15px; color: var(--muted); }

/* Arkusz filtrów (mobile) */
.fm-sheet__bg { position: fixed; inset: 0; background: rgba(20, 20, 18, 0.5); z-index: 70; }
.fm-sheet__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: #fff; border-radius: 24px 24px 0 0; max-height: 85vh; overflow: auto; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 22px; }
.fm-sheet__top { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.fm-sheet .fm-fgroup__items { gap: 4px; }
.fm-fitem--sheet { padding: 10px 0; min-height: 44px; gap: 12px; font-size: 16px; }
.fm-fitem--sheet .fm-fitem__box { width: 22px; height: 22px; }
.fm-fitem--sheet .fm-fitem__n { font-size: 12px; }
.fm-sheet__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.fm-sheet__clear, .fm-sheet__go { cursor: pointer; border-radius: 100px; height: 50px; font-size: 15px; font-weight: 700; }
.fm-sheet__clear { border: 1px solid var(--line); background: var(--paper); }
.fm-sheet__go { border: none; background: var(--ink); color: #fff; }
