.bfcs-catalog {
  --bfcs-ink: #242820;
  --bfcs-muted: #74786f;
  --bfcs-line: #e6e8e2;
  --bfcs-soft: #f8f4f4;
  --bfcs-green: #9bb820;
  --bfcs-orange: #f58212;
  color: var(--bfcs-ink);
  font-family: inherit;
  width: 100%;
}

.bfcs-catalog *,
.bfcs-catalog *::before,
.bfcs-catalog *::after { box-sizing: border-box; }
.bfcs-catalog a { color: inherit; text-decoration: none; }
.bfcs-catalog button,
.bfcs-catalog input,
.bfcs-catalog select { font: inherit; }

.bfcs-catalog__layout {
  display: grid;
  grid-template-columns: minmax(220px, 268px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  margin: 0;
}

.bfcs-catalog .bfcs-filter-toggle { display: none; }

.bfcs-filters {
  align-self: start;
  background: #fff;
  border: 1px solid var(--bfcs-line);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 24px;
}

.bfcs-filters__heading,
.bfcs-toolbar,
.bfcs-card__footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.bfcs-filters__heading { margin-bottom: 18px; }
.bfcs-filters__heading strong { font-size: 19px; }
.bfcs-filters__heading a { color: var(--bfcs-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.bfcs-search {
  align-items: center;
  background: var(--bfcs-soft);
  border: 1px solid transparent;
  border-radius: 11px;
  display: flex;
  gap: 9px;
  padding: 0 12px;
}
.bfcs-search:focus-within { border-color: var(--bfcs-green); box-shadow: 0 0 0 3px rgba(155,184,32,.12); }
.bfcs-search svg { fill: none; height: 18px; min-width: 18px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; width: 18px; }
.bfcs-search input { background: transparent; border: 0; box-shadow: none; color: inherit; min-width: 0; outline: 0; padding: 13px 0; width: 100%; }

.bfcs-filter { border-bottom: 1px solid var(--bfcs-line); padding: 16px 0; }
.bfcs-filter summary { cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; position: relative; }
.bfcs-filter summary::-webkit-details-marker { display: none; }
.bfcs-filter summary::after { content: "+"; font-size: 19px; font-weight: 400; line-height: 1; position: absolute; right: 1px; top: 0; }
.bfcs-filter[open] summary::after { content: "−"; }
.bfcs-filter__options { display: grid; gap: 10px; max-height: 190px; overflow: auto; padding: 13px 2px 1px; scrollbar-width: thin; }
.bfcs-filter__options label { align-items: center; cursor: pointer; display: grid; font-size: 14px; gap: 9px; grid-template-columns: 17px 1fr auto; }
.bfcs-filter__options input { accent-color: var(--bfcs-green); height: 16px; margin: 0; width: 16px; }
.bfcs-filter__options small { color: var(--bfcs-muted); }

.bfcs-price-filter { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; padding-top: 13px; }
.bfcs-price-filter label span { color: var(--bfcs-muted); display: block; font-size: 11px; margin-bottom: 5px; text-transform: uppercase; }
.bfcs-price-filter input { border: 1px solid var(--bfcs-line); border-radius: 9px; min-width: 0; padding: 10px; width: 100%; }

.bfcs-button {
  align-items: center;
  background: var(--bfcs-ink);
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
}
.bfcs-button:hover { background: var(--bfcs-orange); }
.bfcs-button--filter { margin-top: 18px; width: 100%; }
.bfcs-has-js .bfcs-button--filter { display: none; }

.bfcs-catalog.is-loading .bfcs-results { opacity: .45; pointer-events: none; }
.bfcs-catalog.is-loading .bfcs-filters { pointer-events: none; }
.bfcs-catalog__notice { background: #fff3e9; border: 1px solid #e77d25; border-radius: 9px; color: var(--bfcs-ink); margin: 0 0 16px; padding: 11px 13px; }

.bfcs-results { min-width: 0; }
.bfcs-toolbar { gap: 16px; margin: 0 0 18px; }
.bfcs-toolbar p { color: var(--bfcs-muted); font-size: 14px; margin: 0; }
.bfcs-toolbar p strong { color: var(--bfcs-ink); }
.bfcs-toolbar select { background: #fff; border: 1px solid var(--bfcs-line); border-radius: 999px; color: inherit; min-width: 166px; padding: 10px 36px 10px 16px; }

.bfcs-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bfcs-card { background: #fff; border: 1px solid var(--bfcs-line); border-radius: 17px; box-shadow: 0 12px 30px rgba(31,35,27,.06); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.bfcs-card:hover { box-shadow: 0 17px 38px rgba(31,35,27,.11); transform: translateY(-3px); }
.bfcs-card__image { align-items: center; aspect-ratio: 4 / 3; background: #fff; display: flex; justify-content: center; overflow: hidden; padding: 14px; }
.bfcs-card__image img { display: block; height: 100% !important; margin: 0 !important; max-height: 100%; max-width: 100%; object-fit: contain !important; width: 100% !important; }
.bfcs-card__body { display: flex; flex: 1; flex-direction: column; padding: 19px; }
.bfcs-card__brand { color: var(--bfcs-orange); font-size: 11px; font-weight: 800; letter-spacing: .11em; margin: 0 0 7px; text-transform: uppercase; }
.bfcs-card h3 {
  color: var(--bfcs-ink) !important;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0;
  min-height: 44px;
}
.bfcs-card h3 a { color: var(--bfcs-ink) !important; }
.bfcs-card h3 a:hover { color: var(--bfcs-orange) !important; }
.bfcs-card__specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 22px; padding: 0; }
.bfcs-card__specs li { background: var(--bfcs-soft); border-radius: 999px; color: var(--bfcs-muted); font-size: 11px; padding: 6px 9px; }
.bfcs-card__footer { align-items: flex-end; gap: 12px; margin-top: auto; }
.bfcs-card__price { color: var(--bfcs-green) !important; font-size: 16px !important; font-weight: 900; line-height: 1.2; white-space: nowrap; }
.bfcs-card__price del { color: var(--bfcs-muted); display: block; font-size: 11px; font-weight: 400; opacity: .75; }
.bfcs-card__price ins { color: var(--bfcs-green) !important; text-decoration: none; }
.bfcs-card__link {
  align-items: center;
  background: var(--bfcs-orange) !important;
  border: 1px solid var(--bfcs-orange);
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
}
.bfcs-card__link:hover { background: #d96705 !important; border-color: #d96705; color: #fff !important; }

.bfcs-pagination { display: flex; gap: 7px; justify-content: center; margin-top: 34px; }
.bfcs-pagination .page-numbers { align-items: center; border: 1px solid var(--bfcs-line); border-radius: 50%; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.bfcs-pagination .current,
.bfcs-pagination a:hover { background: var(--bfcs-ink); border-color: var(--bfcs-ink); color: #fff; }
.bfcs-empty { background: var(--bfcs-soft); border-radius: 17px; padding: clamp(28px, 5vw, 64px); text-align: center; }
.bfcs-empty h3 { margin: 0 0 8px; }
.bfcs-empty p { color: var(--bfcs-muted); margin: 0 0 20px; }

@media (max-width: 1024px) {
  .bfcs-catalog__layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .bfcs-grid { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfcs-card__body { padding: 15px; }
  .bfcs-card h3 { font-size: 17px !important; }
  .bfcs-card__price { font-size: 15px !important; }
  .bfcs-card__footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767px) {
  .bfcs-catalog__layout { display: block; }
  .bfcs-has-js .bfcs-catalog .bfcs-filter-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--bfcs-line);
    border-radius: 999px;
    color: var(--bfcs-ink);
    display: flex;
    font-weight: 700;
    gap: 9px;
    justify-content: center;
    margin: 0 0 18px;
    min-height: 46px;
    padding: 10px 19px;
    width: 100%;
  }
  .bfcs-filter-toggle svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-width: 2; width: 18px; }
  .bfcs-filter-toggle small { align-items: center; background: var(--bfcs-orange); border-radius: 50%; color: #fff; display: inline-flex; font-size: 10px; height: 20px; justify-content: center; min-width: 20px; }
  .bfcs-filters { margin-bottom: 22px; position: static; }
  .bfcs-has-js .bfcs-filters { display: none; }
  .bfcs-has-js .bfcs-filters.is-open { display: block; }
  .bfcs-grid { grid-template-columns: 1fr; }
  .bfcs-toolbar { align-items: stretch; flex-direction: column; }
  .bfcs-toolbar select { width: 100%; }
  .bfcs-card__footer { align-items: flex-end; flex-direction: row; }
}
