/* Каталог: разделы и фильтры — пакет 11.10.2026 (макет каталога заказчика).
   Карточки товаров — наши (catalog.css, product-card.css, бейджи —
   catalog-filters.css), здесь только раскладка, сайдбар, полоса и шторка. */
.lfc {
  --lfc-line: #e8e4dc;
  --lfc-muted: #70747a;
  --lfc-gold: #98762f;
  --lfc-gold-border: #d7cdbb;
  background: #faf9f6;
  color: var(--color-navy);
  padding-bottom: 48px;
}
.lfc [hidden] { display: none !important; }
/* Сброс только для кнопок каталога (data-lfc) — кнопки карточек не трогаем */
.lfc button[data-lfc] { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; text-transform: none; letter-spacing: normal; }
.lfc button[data-lfc]:disabled { cursor: default; }
.lfc :focus-visible { outline: 3px solid #b18641; outline-offset: 2px; }

.lfc__workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  padding-top: 20px;
  align-items: start;
}

/* ---------- Сайдбар ---------- */
.lfc-sidebar {
  background: #fff;
  border: 1px solid var(--lfc-line);
  border-radius: 8px;
  padding: 12px 10px;
}
.lfc-drawer-head, .lfc-drawer-foot { display: none; }
.lfc-filters { min-height: 0; }

.lfc-sections { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--lfc-line); }
.lfc-sections > summary {
  display: flex; align-items: center; gap: 9px; min-height: 42px;
  list-style: none; cursor: pointer; font-size: 15px; font-weight: 500;
}
.lfc-sections > summary::-webkit-details-marker { display: none; }
.lfc-sections > summary::after { content: "+"; margin-left: auto; color: var(--lfc-muted); font-size: 18px; font-weight: 400; }
.lfc-sections[open] > summary::after { content: "−"; }
.lfc-sections__current { min-width: 0; line-height: 1.35; }
.lfc-sections__current small { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 400; color: var(--lfc-muted); }
.lfc-sections__list { display: grid; gap: 2px; margin-top: 8px; }
.lfc-section {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px;
  padding: 10px 7px; border-radius: 6px; text-align: left; font-size: 14px; line-height: 1.35;
}
.lfc-section .lfc-count { margin-left: auto; opacity: .6; }
.lfc-section:hover:not(.is-selected) { background: var(--color-cream); }
.lfc-section.is-selected { background: var(--color-navy); color: #fff; }
.lfc-section.is-selected .lfc-cat-icon { color: #e9d9b7; }
.lfc-cat-icon { display: grid; place-items: center; width: 24px; flex: 0 0 24px; color: var(--lfc-gold); }
.lfc-cat-icon svg { display: block; width: 24px; height: 24px; }

.lfc-group { padding: 9px 0; border-top: 1px solid var(--lfc-line); }
.lfc-groups > .lfc-group:first-child { border-top: 0; padding-top: 0; }
.lfc-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.4;
}
.lfc-group > summary::-webkit-details-marker { display: none; }
.lfc-group > summary::after { content: "+"; color: var(--lfc-muted); font-size: 18px; font-weight: 400; }
.lfc-group[open] > summary::after { content: "−"; }
.lfc-group__inner { margin-top: 7px; }

.lfc-choice {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 32px;
  padding: 5px 0; text-align: left; font-size: 14px; line-height: 1.4;
}
.lfc-choice__box {
  display: grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px;
  border: 1px solid #c4bdb2; border-radius: 3px; background: #fff; font-size: 12px; line-height: 1;
}
.lfc-count { margin-left: auto; font-size: 12px; color: #8b9097; }
.lfc-choice:hover:not(:disabled):not(.is-selected) .lfc-choice__box { border-color: var(--lfc-gold); }
.lfc-choice.is-selected .lfc-choice__box { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.lfc-choice:disabled { color: #a2a4a6; }
.lfc-choice:disabled .lfc-choice__box { border-style: dashed; border-color: #d8d8d8; }

.lfc-alcohol { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.lfc-alcohol__btn {
  display: flex; align-items: center; gap: 5px; min-height: 35px; padding: 7px 9px;
  border: 1px solid var(--lfc-gold-border) !important; border-radius: 6px; background: #fff !important;
  text-align: left; font-size: 14px;
}
.lfc-alcohol__btn .lfc-count { font-size: 11px; opacity: .8; }
.lfc-alcohol__btn:hover:not(.is-selected):not(:disabled) { background: var(--color-cream) !important; }
.lfc-alcohol__btn.is-selected { background: var(--color-navy) !important; border-color: var(--color-navy) !important; color: #fff; }
.lfc-alcohol__btn.is-selected .lfc-count { color: #fff; }
.lfc-alcohol__btn:disabled { opacity: .4; }
.lfc-age { margin-left: 3px; padding: 1px 4px; border: 1px solid currentColor; border-radius: 3px; font-size: 9px; }

.lfc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lfc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 9px;
  border: 1px solid var(--lfc-gold-border) !important; border-radius: 5px; background: #fff !important; font-size: 13px;
}
.lfc-chip .lfc-count { margin-left: 0; font-size: 11px; }
.lfc-chip:hover:not(.is-selected):not(:disabled) { background: var(--color-cream) !important; }
.lfc-chip.is-selected { background: var(--color-navy) !important; border-color: var(--color-navy) !important; color: #fff; }
.lfc-chip.is-selected .lfc-count { color: #fff; }
.lfc-chip:disabled { opacity: .35; }

.lfc-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--lfc-muted); }
.lfc-reset {
  display: flex !important; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 42px;
  margin-top: 6px; padding: 9px 10px; border: 1px solid #ae8935 !important; border-radius: 5px; background: #fff !important;
  font-size: 14px; font-weight: 500;
}
.lfc-reset svg { width: 18px; height: 18px; flex-shrink: 0; }
.lfc-reset:hover { background: #eee5d3 !important; }

/* ---------- Основная колонка ---------- */
.lfc-main { min-width: 0; }
.lfc-heading { margin-bottom: 16px; }
.lfc-heading__title { margin: 0; font-family: var(--font-heading); font-size: 34px; font-weight: 400; line-height: 1.2; color: var(--color-navy); }

.lfc-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.lfc-pack {
  display: flex !important; align-items: center; gap: 8px; min-height: 64px; padding: 7px 9px;
  border: 1px solid var(--lfc-line) !important; border-radius: 5px; background: #fff !important; text-align: left;
}
.lfc-pack:hover:not(.is-selected):not(:disabled) { border-color: #abb3bd !important; background: #fcfbf8 !important; }
.lfc-pack.is-selected { border-color: var(--color-navy) !important; box-shadow: inset 0 0 0 1px var(--color-navy); background: #f4f5f7 !important; }
.lfc-pack:disabled { opacity: .45; }
.lfc-pack__image { display: flex; align-items: center; justify-content: center; flex: 0 0 45px; width: 45px; height: 46px; overflow: hidden; color: var(--color-navy); }
.lfc-pack__image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lfc-pack__image--all svg { width: 30px; height: 30px; }
.lfc-pack__title { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; }
.lfc-pack__sub { display: block; padding-top: 3px; font-size: 11px; line-height: 1.3; color: var(--lfc-muted); }

.lfc-tools { display: flex; align-items: center; gap: 14px; min-height: 36px; margin: 0 0 14px; }
.lfc-results { font-size: 14px; white-space: nowrap; }
.lfc-results strong { font-size: 16px; font-weight: 600; }
.lfc-sort { position: relative; margin-left: auto; flex-shrink: 0; }
.lfc-sort__trigger {
  display: flex !important; align-items: center; gap: 10px; min-width: 216px; min-height: 44px; padding: 10px 13px;
  border: 1px solid var(--lfc-gold-border) !important; border-radius: 6px; background: #fff !important; font-size: 14px; line-height: 1.4;
}
.lfc-sort__trigger:hover, .lfc-sort__trigger[aria-expanded="true"] { border-color: #ae8935 !important; background: var(--color-cream) !important; }
.lfc-sort__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--lfc-gold); }
.lfc-sort__chevron { width: 12px; height: 12px; margin-left: auto; flex-shrink: 0; transition: transform .15s; }
.lfc-sort__trigger[aria-expanded="true"] .lfc-sort__chevron { transform: rotate(180deg); }
.lfc-sort__options {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 50; width: 250px; max-width: calc(100vw - 32px);
  padding: 7px; background: #fff; border: 1px solid #e3dacc; border-radius: 8px; box-shadow: 0 10px 30px rgba(27, 42, 74, .12);
}
.lfc-sort__caption { padding: 7px 10px 9px; font-size: 11px; color: var(--lfc-muted); }
.lfc-sort__option {
  display: flex !important; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 44px;
  padding: 11px 10px; border-radius: 4px; text-align: left; font-size: 14px;
}
.lfc-sort__option::after { content: "✓"; visibility: hidden; color: var(--lfc-gold); font-weight: 500; }
.lfc-sort__option[aria-selected="true"] { background: var(--color-cream) !important; font-weight: 500; }
.lfc-sort__option[aria-selected="true"]::after { visibility: visible; }
.lfc-sort__option:hover { background: #f4f5f7 !important; }

.lfc-mobile-tools { display: none; }
.lfc-active { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.lfc-active:empty { display: none; }
.lfc-active__chip {
  display: inline-flex !important; align-items: center; gap: 8px; padding: 6px 9px;
  border-radius: 5px; background: #edf0f4 !important; color: var(--color-navy); font-size: 12px;
}
.lfc-active__chip span { font-size: 14px; line-height: 1; }
.lfc-active__reset {
  padding: 6px 10px; border: 1px solid #ae8935 !important; border-radius: 5px;
  background: var(--color-cream) !important; font-size: 12px; font-weight: 500;
}
.lfc-active__reset:hover { background: #eee5d3 !important; }

.lfc-note {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 10px 13px;
  border-left: 3px solid var(--color-gold); background: var(--color-cream); font-size: 13px;
}
.lfc-note strong { white-space: nowrap; }

.lfc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.lfc-grid .card { background: #fff; }
.lfc-grid .card.is-hidden { display: none; }
.lfc-grid .card__image-wrap img { object-fit: contain; }

.lfc-empty { padding: 55px 15px 70px; border: 1px dashed var(--lfc-line); border-radius: 8px; text-align: center; }
.lfc-empty__icon { font-size: 46px; color: var(--color-gold); }
.lfc-empty h2 { margin: 12px 0; font-family: var(--font-heading); font-weight: 400; }
.lfc-empty p { margin-bottom: 22px; font-size: 13px; color: var(--lfc-muted); }
.lfc-primary {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px;
  border-radius: 5px; background: var(--color-navy) !important; color: #fff !important; font-size: 14px;
}
.lfc-primary:hover { background: var(--color-navy-light) !important; }
.lfc-text-link { display: block; margin: 8px auto 0; padding: 12px; font-size: 13px; color: var(--lfc-muted); text-decoration: underline; text-underline-offset: 4px; }

.lfc-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(16, 34, 63, .46); }
body.lfc-no-scroll { overflow: hidden; }

/* Пункт меню шапки текущего раздела (стиль — catalog-filters.css .is-active-filter). */

/* ---------- Адаптив ---------- */
@media (min-width: 1001px) {
  /* На десктопе раздел выбирают в меню шапки */
  .lfc-sections { display: none; }
}
@media (max-width: 1270px) {
  .lfc__workspace { grid-template-columns: 224px minmax(0, 1fr); gap: 22px; }
  .lfc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lfc-pack { gap: 5px; padding: 7px; }
  .lfc-pack__image { flex-basis: 32px; width: 32px; }
  .lfc-pack__title { font-size: 13px; }
  .lfc-pack__sub { font-size: 10px; }
}
@media (max-width: 1000px) {
  .lfc-pack { flex-direction: column; justify-content: center; gap: 5px; min-height: 60px; }
  .lfc-pack__image, .lfc-pack__sub { display: none; }
  .lfc-heading__title { font-size: 30px; }
  .lfc-grid { gap: 20px 12px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .lfc__workspace { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
  .lfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .lfc__workspace { display: block; padding-top: 14px; }
  .lfc-sidebar { display: none; }
  .lfc-sidebar.is-open {
    display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; z-index: 10010;
    width: min(390px, 100%); max-height: 100dvh; padding: 0; border: 0; border-radius: 0; background: #fff;
  }
  .lfc-drawer-head {
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
    padding: 17px 20px; border-bottom: 1px solid var(--lfc-line); background: #fff;
  }
  .lfc-drawer-head strong { font-size: 17px; }
  .lfc-icon-btn { width: 36px; height: 36px; border-radius: 50%; font-size: 26px !important; line-height: 1; }
  .lfc-sidebar.is-open .lfc-filters { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; }
  .lfc-drawer-foot {
    display: block; flex-shrink: 0; padding: 13px 20px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--lfc-line); background: #fff;
  }
  .lfc-drawer-foot .lfc-primary { width: 100%; }
  .lfc-scroll-hint { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 0 0 12px; font-size: 13px; }
  .lfc-sections > summary { font-size: 16px; }
  .lfc-section, .lfc-choice, .lfc-alcohol__btn { font-size: 15px; min-height: 44px; }
  .lfc-group { padding: 12px 0; }
  .lfc-group > summary { font-size: 16px; }
  .lfc-chip { min-height: 44px; font-size: 14px; }
  .lfc-reset { min-height: 46px; }

  .lfc-heading { margin-bottom: 10px; }
  .lfc-heading__title { font-size: 28px; line-height: 1.16; }
  .lfc-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 7px; margin-bottom: 6px; }
  .lfc-pack { flex-direction: row; justify-content: flex-start; gap: 7px; min-height: 44px; padding: 6px 8px; }
  .lfc-pack__image { display: flex; width: 30px; height: 30px; flex: 0 0 30px; }
  .lfc-pack__title { font-size: 13px; }
  .lfc-tools { display: grid; grid-template-columns: minmax(65px, 1fr) auto; gap: 8px 12px; margin-bottom: 0; }
  .lfc-results { font-size: 13px; }
  .lfc-sort__trigger { min-width: 184px; padding: 10px; gap: 8px; font-size: 13px; }

  /* Липкая полоса: раздел + «Фильтры» + выбранные условия */
  .lfc-context {
    position: sticky; top: var(--lfc-header-h, 104px); z-index: 20;
    margin: 0 calc(-1 * var(--space-md)) 10px; padding: 4px var(--space-md);
    background: #faf9f6; border-bottom: 1px solid var(--lfc-line);
  }
  .lfc-mobile-tools { display: flex; gap: 8px; }
  .lfc-current-section, .lfc-open-filters {
    display: flex !important; align-items: center; gap: 7px; min-height: 44px; padding: 8px; border-radius: 5px;
  }
  .lfc-current-section {
    flex: 1; min-width: 0; border: 1px solid var(--lfc-gold-border) !important; background: var(--color-cream) !important; text-align: left;
  }
  #lfcSectionLabel { min-width: 0; font-size: 13px; line-height: 1.25; }
  .lfc-current-section__plus { margin-left: auto; font-size: 18px; line-height: 1; color: var(--lfc-muted); }
  .lfc-open-filters { flex: 0 0 auto; padding: 8px 12px; background: var(--color-navy) !important; color: #fff !important; font-size: 14px; }
  .lfc-open-filters b { padding: 1px 6px; border-radius: 10px; background: #fff; color: var(--color-navy); font-size: 10px; font-weight: 500; }
  .lfc-active {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
    margin: 7px 0 0; padding: 2px 1px 4px; gap: 6px;
  }
  .lfc-active__chip, .lfc-active__reset { flex-shrink: 0; min-height: 38px; padding: 8px 10px; white-space: nowrap; }
  .lfc-note { display: block; font-size: 12px; }
  .lfc-note strong { display: block; margin-bottom: 4px; }
  .lfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}
@media (max-width: 380px) {
  .lfc-heading__title { font-size: 26px; }
  .lfc-pack { padding: 6px; gap: 5px; }
  .lfc-pack__image { width: 26px; flex-basis: 26px; }
}
