/**
 * Будинок Затишку — category listing page. See mebelvdom-redesign-spec.md §6.4.
 */

.bz-catlist { padding: 0 0 var(--space-6); }

.bz-breadcrumbs {
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: var(--space-4);
}
.bz-breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.bz-breadcrumbs a:hover { color: var(--c-coffee); }

.bz-catlist__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.bz-catlist__sort {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--c-card);
}

.bz-catlist__body {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}
.bz-catlist__filters { width: 250px; flex-shrink: 0; } /* design 4l */
.bz-catlist__main { flex: 1; min-width: 0; }

/* Selected-filter chips above the grid (design 4l): one per ticked option
   and per range, each a link to the page without it. */
.bz-catlist__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.bz-catlist__chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s;
}
.bz-catlist__chip:hover,
.bz-catlist__chip:focus-visible { border-color: var(--c-coffee); color: var(--c-text); }
.bz-catlist__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.bz-catlist__grid .ph-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: 12px;
  background: repeating-linear-gradient(45deg, var(--c-line), var(--c-line) 10px, var(--c-bg) 10px, var(--c-bg) 20px);
}

/* "Показати ще" — a real grid item (see the PHP comment above its markup
   in category/default.php), so it naturally lands in whatever gap the
   last row's partial fill leaves rather than needing its own placement
   rule. Roughly matches a card's own footprint (min-height, rounded
   corners) so it doesn't read as a stray control dropped into the grid. */
.bz-catlist__loadmore {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--c-coffee);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.bz-catlist__loadmore:hover:not(:disabled) {
  border-color: var(--c-ginger);
  color: var(--c-ginger);
}
.bz-catlist__loadmore:disabled { opacity: .6; cursor: wait; }

.bz-pagination { margin-top: var(--space-6); display: flex; justify-content: center; }
.bz-pagination ul.pagination {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.bz-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-card);
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
}
.bz-pagination .page-item.active .page-link {
  background: var(--c-coffee);
  border-color: var(--c-coffee);
  color: var(--c-card);
}
/* Marks a page whose products are currently sitting in the grid above —
   see the big comment on .is-loaded in category/default.php. A lighter
   accent than .active (which still wins visually where both apply, since
   its background/border/color declarations above come first and it's
   always the single furthest page reached) so a shopper can tell "already
   on screen" apart from "this is where I am" at a glance. */
.bz-pagination .page-item.is-loaded:not(.active) .page-link {
  border-color: var(--c-ginger);
  color: var(--c-ginger);
}
.bz-pagination .page-item.disabled .page-link { opacity: .4; }

/* Category description / SEO copy below the listing (mockup 2d).
   Renders the category's FULL VirtueMart description — no truncation or
   "читати повністю" toggle (owner). Sits in the product column, under the
   pagination; the stored copy is rich HTML, so style its common children. */
.bz-catlist__desc {
  margin-top: var(--space-6);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5) calc(var(--space-5) + var(--space-1));
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.7;
}
.bz-catlist__desc > :first-child { margin-top: 0; }
.bz-catlist__desc > :last-child { margin-bottom: 0; }
.bz-catlist__desc h1,
.bz-catlist__desc h2,
.bz-catlist__desc h3,
.bz-catlist__desc h4 {
  font-family: var(--font-heading);
  color: var(--c-text);
  line-height: 1.3;
  margin: var(--space-5) 0 var(--space-3);
}
.bz-catlist__desc a { color: var(--c-ginger); }
.bz-catlist__desc img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.bz-catlist__desc ul,
.bz-catlist__desc ol { padding-left: 1.4em; margin: var(--space-3) 0; }
.bz-catlist__desc table { max-width: 100%; }

@media (max-width: 899px) {
  .bz-catlist__body { flex-direction: column; }
  .bz-catlist__filters { width: 100%; }
}

/* Article cards under the filters (design 4l): the module mod_bzarticlecards in the template
   position «category-after-filters», drawn by html/mod_bzarticlecards/default.php. Sizes are the
   design's own; line-height stays `normal` as drawn. Photo, kicker, title and teaser are one
   link; the footer row holds «Читати статтю →» (and «Всі статті» on the last card). */
.bz-catarticles {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: 16px; /* the sidebar column's 12px gap + the card's own 4px, as drawn */
}
.bz-catarticle {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-body);
  line-height: normal;
}
.bz-catarticle__link { display: block; color: inherit; text-decoration: none; }
.bz-catarticle__media { display: block; aspect-ratio: 16 / 9; background: var(--c-bg); }
.bz-catarticle__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bz-catarticle__body { display: block; padding: 13px 15px 0; }
.bz-catarticle__kicker {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ginger);
}
.bz-catarticle__title { display: block; font-weight: 700; font-size: 13px; line-height: 1.4; color: var(--c-text); }
.bz-catarticle__link:hover .bz-catarticle__title { text-decoration: underline; text-underline-offset: 2px; }
.bz-catarticle__teaser { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: var(--c-muted); }
.bz-catarticle__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 15px 15px;
}
.bz-catarticle__more { font-size: 11.5px; font-weight: 700; color: var(--c-ginger); text-decoration: none; }
.bz-catarticle__more:hover { color: var(--c-ginger); text-decoration: underline; }
.bz-catarticle__all { font-size: 11px; font-weight: 600; color: var(--c-muted); text-decoration: underline; }
.bz-catarticle__all:hover { color: var(--c-text); }

/* On a phone the filters stack above the products; the article cards belong after them, so the
   sidebar box dissolves into the column and the cards move to its end. */
@media (max-width: 899px) {
  .bz-catlist__body:has(.bz-catarticles) .bz-catlist__filters { display: contents; }
  .bz-catlist__body .bz-catarticles { order: 2; width: 100%; margin-top: 0; }
  .bz-catlist__body .bz-catlist__main { order: 1; }
}

/* ---------- CustomFilters (mod_cf_filtering) theming, §7.5 ---------- */
/* Real class names, no full sub-template override — matches spec's
   "theme, don't rebuild" guidance for this already-installed extension. */

.bz-catlist__filters .cf_wrapp_all {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
/* Filter cards as drawn in design 4l: a hairline border instead of the
   shadow, 14px corners, a 13px heavy title 10px above the content. */
.bz-catlist__filters .cf_flt_wrapper {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 15px 17px;
  margin: 0 0 12px; /* CF's own CSS gives 10px */
}
.bz-catlist__filters .cf_flt_header {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 13px; /* CF's heading role inherits 19.2px, which sets the line's strut */
  line-height: normal;
}
.bz-catlist__filters .cf_flt_header_text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  line-height: normal;
  color: var(--c-text);
}
.bz-catlist__filters .cf_wrapper_inner { font-size: 14px; color: var(--c-text); }
.bz-catlist__filters .cf_wrapper_inner label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 0;
  cursor: pointer;
}
/* «Ширина, см» (facet field 812): ~25 short numbers ("90 (9)") would make a
   column taller than a screen, so they sit two to a row (three wraps the
   counter under the number in the ~200px sidebar). */
.bz-catlist__filters [id^="cf_list_custom_f_812_"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.bz-catlist__filters [id^="cf_list_custom_f_812_"] label { white-space: nowrap; }
/* «Сбросить фильтр» is a list item too: give it a row of its own so the
   values keep their places in the grid below it. */
.bz-catlist__filters [id^="cf_list_custom_f_812_"] .cf_li_clear { grid-column: 1 / -1; }

/* Long option lists fold behind «Показати всі N» (server side: html/mod_cf_filtering/default.php marks the rows past the first
   three as .bz-cf-extra; the button is category-filters.js). Same look as the manufacturer page's subcategory toggle. */
.bz-catlist__filters .bz-cf-collapsible:not(.is-open) .bz-cf-extra { display: none; }
.bz-catlist__filters .bz-cf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-muted);
  cursor: pointer;
}
.bz-catlist__filters .bz-cf-toggle:hover { color: var(--c-coffee); }
.bz-catlist__filters .bz-cf-toggle__icon { font-size: 9px; transition: transform .15s ease; }
.bz-catlist__filters .bz-cf-toggle[aria-expanded="true"] .bz-cf-toggle__icon { transform: rotate(180deg); }

/* Ticks collected by category-filters.js, waiting for the shopper to pause:
   the changed options are marked, and the whole form dims once it is
   actually loading the result. */
.bz-catlist__filters .cf_filters_list_li.is-pending label { color: var(--c-ginger); font-weight: 700; }
.bz-catlist__filters form.bz-cf-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.bz-catlist__filters [id^="cf_list_custom_f_812_"] .cf_flt_counter { font-size: 12px; color: var(--c-muted); }
.bz-catlist__filters .cf_resetAll_link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--c-muted);
  text-decoration: none;
}
.bz-catlist__filters .cf_resetAll_link:hover { text-decoration: underline; }

/* ---------- Range card: price (design 4l) ---------- */
/* Markup: html/mod_cf_filtering/default_input_text.php (two boxes, no «до»,
   no search button) + CustomFilters' own slider; behaviour in
   category-filters.js. The card has no collapse arrow in the design, and
   collapsing a two-line card buys nothing, so its title is not a toggle. */
.bz-catlist__filters [id^="cf_flt_wrapper_price_"] .headexpand { display: none; }
.bz-catlist__filters [id^="cf_flt_wrapper_price_"] .cf_flt_header { display: block; pointer-events: none; cursor: default; }
/* CF's own «Скинути фільтр» under the slider: the design has none, the
   range's chip above the grid does that job. */
.bz-catlist__filters [id^="cf_flt_wrapper_price_"] div.cf_clear { display: none; }

.bz-catlist__filters .bz-cf-range { padding: 0 !important; }
.bz-catlist__filters .bz-cf-range__boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.bz-catlist__filters .bz-cf-range__box {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 8px 11px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: var(--c-text);
  outline: none;
  transition: border-color .15s;
}
.bz-catlist__filters .bz-cf-range__box::placeholder { color: var(--c-muted); opacity: 1; }
.bz-catlist__filters .bz-cf-range__box:focus { border-color: var(--c-coffee); }
.bz-catlist__filters .bz-cf-range .cf_message:not(:empty) {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--c-sale);
}

/* The slider: a 4px track inset 4px from the card's content edges, 14px
   knobs (white, 2px ginger ring) that stay inside the track, and a coffee
   fill that runs under both knobs, edge to edge. The fill is placed from
   --bz-lo/--bz-hi (0…1, set by category-filters.js); CustomFilters' inline
   pixel margin/width on .slider_bkg are overridden. */
.bz-catlist__filters .cf_filtering_slide_container { --bz-knob: 14px; }
.bz-catlist__filters .cf_filtering_slider_gutter {
  position: relative;
  width: auto;
  margin: 6px 4px !important;
}
.bz-catlist__filters .cf_slider_gutter_m {
  position: relative;
  height: 4px;
  background: var(--c-line) !important;
  border-radius: 99px;
}
.bz-catlist__filters .slider_bkg {
  position: absolute;
  top: 0;
  height: 4px;
  margin-left: 0 !important;
  left: calc((100% - var(--bz-knob)) * var(--bz-lo, 0));
  width: calc((100% - var(--bz-knob)) * (var(--bz-hi, 1) - var(--bz-lo, 0)) + var(--bz-knob)) !important;
  background: var(--c-coffee) !important;
  border-radius: 99px;
}
.bz-catlist__filters .knob_wrapper {
  position: absolute;
  inset: 0;
  margin: 0;
}
.bz-catlist__filters .cf_filtering_knob {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: var(--bz-knob);
  margin: calc(var(--bz-knob) / -2) 0 0;
  padding: 0;
  background: transparent;
}
.bz-catlist__filters .cf_filtering_knob::-webkit-slider-runnable-track { height: var(--bz-knob); background: transparent; }
.bz-catlist__filters .cf_filtering_knob::-moz-range-track { height: var(--bz-knob); background: transparent; }
.bz-catlist__filters .cf_filtering_knob::-webkit-slider-thumb,
.bz-catlist__filters .cf_filtering_knob::-webkit-slider-thumb:hover,
.bz-catlist__filters .cf_filtering_knob::-webkit-slider-thumb:focus {
  -webkit-appearance: none; appearance: none;
  box-sizing: border-box;
  width: var(--bz-knob); height: var(--bz-knob);
  border-radius: 50%;
  background: var(--c-card);
  border: 2px solid var(--c-ginger);
  box-shadow: none;
  cursor: pointer;
}
.bz-catlist__filters .cf_filtering_knob::-moz-range-thumb,
.bz-catlist__filters .cf_filtering_knob::-moz-range-thumb:hover,
.bz-catlist__filters .cf_filtering_knob::-moz-range-thumb:focus {
  box-sizing: border-box;
  width: var(--bz-knob); height: var(--bz-knob);
  border-radius: 50%;
  background: var(--c-card);
  border: 2px solid var(--c-ginger);
  box-shadow: none;
  cursor: pointer;
}
.bz-catlist__filters .cf_filtering_knob:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(232, 130, 30, .28); }
.bz-catlist__filters .cf_filtering_knob:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(232, 130, 30, .28); }

/* A single text box (keyword-search facet) keeps CF's own input + button
   markup: compact it to the same box style. */
.bz-catlist__filters .cf_wrapper_input_text { padding-bottom: 0 !important; }
.bz-catlist__filters .cf_wrapper_input_text .input-group { gap: 0; }
.bz-catlist__filters .cf_search_input.form-control {
  border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  height: auto;
  min-width: 0;
}
.bz-catlist__filters .cf_search_button.btn,
.bz-catlist__filters .cf_search_button.btn-secondary {
  background: var(--c-coffee) !important; border-color: var(--c-coffee) !important;
  color: var(--c-card) !important;
  padding: 8px 12px;
  height: auto;
  line-height: 1;
}
.bz-catlist__filters .cf_search_button.btn[disabled] { opacity: .5; }
.bz-catlist__filters .cf_search_button .icon-search { font-size: 12px; }

/* Checkbox/radio — custom filled square per mockup 1b/2d (cart.css's
   .bz-cart-agreed .form-check-input is the same convention: appearance:none
   already comes from VM's own Bootstrap build, we just size/color it). */
.bz-catlist__filters .form-check-input,
.bz-catlist__filters input[type=checkbox],
.bz-catlist__filters input[type=radio] {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--c-line);
  background-color: var(--c-card);
  flex: none;
}
.bz-catlist__filters input[type=radio] { border-radius: 50%; }
.bz-catlist__filters .form-check-input:checked,
.bz-catlist__filters input[type=checkbox]:checked,
.bz-catlist__filters input[type=radio]:checked {
  background-color: var(--c-coffee);
  border-color: var(--c-coffee);
}

/* ---------- Manufacturer hero (mockup 4c desktop / 4d mobile) ----------
   Renders above the usual header/sort bar, only on a manufacturer's "view
   all products" page ($isManufacturerAllProducts in default.php). Logo +
   name + city/founded-year/warranty meta + description + category pills,
   plus a certificates/documents gallery when the manufacturer has any
   (com_vmmanufacturersettings). Unlike the mockup's "show 2 + view all"
   preview, the real page shows every document — a small furniture
   manufacturer typically has a handful, and hiding real certificates
   behind a click works against the trust signal they're there for. */
.bz-mfhero {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.bz-mfhero__logo {
  flex: none;
  width: 150px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}
.bz-mfhero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bz-mfhero__info { flex: 1; min-width: 0; }
.bz-mfhero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--c-text);
}
.bz-mfhero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
  font-size: 12.5px;
  color: var(--c-muted);
}
.bz-mfhero__meta b { color: var(--c-text); }
.bz-mfhero__desc {
  margin-top: var(--space-3);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
  max-width: 760px;
}
.bz-mfhero__desc > :first-child { margin-top: 0; }
.bz-mfhero__desc > :last-child { margin-bottom: 0; }

/* Long manufacturer description: collapsed under «Показати повністю» (manufacturer-desc.js; the text stays in the page) */
.bz-mfhero__desc.is-clamped {
  position: relative;
  max-height: var(--bz-mfdesc-h, 200px);
  overflow: hidden;
}
.bz-mfhero__desc.is-clamped::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-card));
  pointer-events: none;
}
.bz-mfhero__more {
  display: block;
  margin-top: var(--space-2);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--c-ginger);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.bz-mfhero__more:hover { color: var(--c-coffee); }
.bz-mfhero__docs {
  flex: none;
  /* The description keeps the room it had (its 760px max-width), so the card stays at
     250px unless the hero is wider than logo + description + card: only that spare
     width is given to extra documents (N cards of 96px + gaps + padding, at most the spare). */
  width: max(250px, min(calc(var(--bz-docs-n, 2) * 108px + 20px), calc(100% - 150px - 2 * var(--space-5) - 760px)));
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.bz-mfhero__docs-title {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--space-3);
}
/* Desktop: preview (first 2, single row) + a "Дивитись усі N документів"
   button opening the .bz-mfdocs modal below. Mobile ignores this split
   entirely (see below) and just scrolls through every document — rendered
   separately, CSS picks which variant is visible per breakpoint since PHP
   can't know the viewport. */
.bz-mfhero__docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
/* One row: whatever does not fit falls into zero-height implicit rows and is clipped
   (still reachable through the «Дивитись усі N» modal). */
.bz-mfhero__docs-grid--preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  grid-template-rows: auto;
  grid-auto-rows: 0;
  row-gap: 0;
  overflow: hidden;
}
.bz-mfhero__docs-grid--mobile { display: none; }
.bz-mfhero__docs-more {
  margin-top: var(--space-3);
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-ginger);
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.bz-mfdoc {
  flex: none;
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.bz-mfdoc__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-card);
}
.bz-mfdoc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-mfdoc__pdf { font-size: 11px; font-weight: 800; color: var(--c-muted); }
.bz-mfdoc__title { font-size: 10.5px; color: var(--c-muted); line-height: 1.4; }
.bz-mfdoc:hover .bz-mfdoc__title { color: var(--c-ginger); }

@media (max-width: 899px) {
  .bz-mfhero { flex-direction: column; padding: var(--space-4); }
  .bz-mfhero__logo { width: 88px; height: 60px; }
  .bz-mfhero__title { font-size: 21px; }
  .bz-mfhero__docs { width: 100%; }
  .bz-mfhero__docs-desktop { display: none; }
  .bz-mfhero__docs-grid--mobile {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--space-4) * -1);
    padding: 0 var(--space-4);
  }
}

/* ---------- Manufacturer "Усі документи" modal (mockup 4i / 4j) ----------

   One overlay per manufacturer page, opened from any document card in the
   hero or from "Дивитись усі N документів". Desktop (4i) is a centred
   dialog; at phone widths (4j) the same markup becomes a bottom sheet —
   the only differences are geometry, so the mobile rules live in the one
   media query at the end rather than in a second component. */
.bz-mfdocs {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(42, 33, 24, .55);
}
.bz-mfdocs[hidden] { display: none; }
.bz-mfdocs__panel {
  display: flex;
  flex-direction: column;
  width: 820px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--c-bg);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(28, 21, 15, .4);
}
/* Drag handle — sheet affordance, meaningless on the desktop dialog. */
.bz-mfdocs__grabber { display: none; }
.bz-mfdocs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 22px;
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
}
.bz-mfdocs__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--c-text);
  margin: 0;
}
.bz-mfdocs__sub {
  font-size: 11.5px;
  color: var(--c-muted);
  margin-top: 2px;
}
.bz-mfdocs__close {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-coffee);
  font-size: 14px;
  cursor: pointer;
}
.bz-mfdocs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 13px 22px 0;
}
.bz-mfdocs__chip {
  flex: none;
  padding: 7px 13px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-card);
  color: var(--c-text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bz-mfdocs__chip.is-active {
  background: var(--c-coffee);
  border-color: var(--c-coffee);
  color: var(--c-card);
  font-weight: 700;
}
.bz-mfdocs__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 14px 22px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bz-mfdocs-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: 13px;
  background: var(--c-card);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.bz-mfdocs-card[hidden] { display: none; }
/* The selected ring is an inset box-shadow, NOT an outline. Cassiopeia
   ships `button:focus:not(:focus-visible){outline:0}` (specificity 0,3,1),
   which outranks `.bz-mfdocs-card.is-selected` (0,2,0) and blanked the ring
   for exactly as long as the just-clicked card kept mouse focus — the class
   was still on the element, so it read as the selection blinking out.
   box-shadow is a property that rule does not touch. */
.bz-mfdocs-card.is-selected {
  border-color: var(--c-ginger);
  box-shadow: inset 0 0 0 2px var(--c-ginger);
}
.bz-mfdocs-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  overflow: hidden;
  background: var(--c-bg);
}
.bz-mfdocs-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-mfdocs-card__pdf { font-size: 11px; font-weight: 800; color: var(--c-muted); }
.bz-mfdocs-card__title {
  margin-top: var(--space-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
}
.bz-mfdocs-card__sub {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--c-muted);
}
/* Phone-only reveal for the rest of a filtered set — hidden on desktop,
   where the grid never caps (manufacturer-docs.js owns the cap itself). */
.bz-mfdocs__more {
  padding: 10px 0 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-ginger);
  cursor: pointer;
}
.bz-mfdocs__more[hidden] { display: none; }
.bz-mfdocs__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--c-card);
  border-top: 1px solid var(--c-line);
}
.bz-mfdocs__foot-thumb {
  flex: none;
  width: 48px;
  height: 62px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-bg);
}
.bz-mfdocs__foot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-mfdocs__foot-info { flex: 1; min-width: 0; }
.bz-mfdocs__foot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
}
.bz-mfdocs__foot-meta {
  font-size: 11.5px;
  color: var(--c-muted);
  margin-top: 2px;
}
.bz-mfdocs__foot .bz-btn { flex: none; white-space: nowrap; }

@media (max-width: 899px) {
  .bz-mfdocs {
    align-items: flex-end;
    padding: 0;
  }
  .bz-mfdocs__panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -14px 40px rgba(28, 21, 15, .28);
  }
  .bz-mfdocs__grabber {
    display: flex;
    justify-content: center;
    padding: 9px 0 4px;
  }
  .bz-mfdocs__grabber span {
    width: 38px;
    height: 4px;
    border-radius: var(--radius-pill);
    background: #D8CEC0;
  }
  .bz-mfdocs__head { padding: 6px var(--space-4) var(--space-3); }
  .bz-mfdocs__title { font-size: 16px; }
  .bz-mfdocs__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 11px var(--space-4) 0;
  }
  .bz-mfdocs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: var(--space-3) var(--space-4) 0;
  }
  .bz-mfdocs__more {
    align-self: center;
    padding: 10px var(--space-4) 0;
  }
  /* The sheet's footer is the two actions only (4j) — which document they
     act on is already obvious from the highlighted card right above, and a
     repeat of its thumbnail and title costs a phone a third of the sheet. */
  .bz-mfdocs__foot {
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4) var(--space-4);
    border-top: 0;
    background: transparent;
  }
  .bz-mfdocs__foot-thumb,
  .bz-mfdocs__foot-info { display: none; }
  .bz-mfdocs__foot .bz-btn { flex: 1; }
}

/* SEO landing-page links (mod_bzlandinglinks, position «category-before-products»): the same pill look
   as the selected-filter chips above, one row that scrolls sideways on a phone. */
.mod-bzlandinglinks { margin: 0 0 14px; }
.mod-bzlandinglinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mod-bzlandinglinks__item a,
.mod-bzlandinglinks__item span {
  display: flex;
  align-items: center;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s;
}
.mod-bzlandinglinks__item a:hover,
.mod-bzlandinglinks__item a:focus-visible { border-color: var(--c-coffee); color: var(--c-text); }
.mod-bzlandinglinks__item span[aria-current] { border-color: var(--c-coffee); }
@media (max-width: 899px) {
  .mod-bzlandinglinks__list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
}

/* The manufacturer page has ONE h1 (the hero title); the "Каталог <maker>" heading under it is an h2 that keeps the old h1 look. */
.bz-catlist__header h2 { font-size: 28px; line-height: 34px; margin: 0; }

/* Hover zoom of a card's colour swatch (owner request 2026-11-17) — the same
   look as the product page's .bz-hover-preview for colour pickers: an
   enlarged photo of the finish floats under the swatch, name under it.
   category-colors.js builds one such element per page. The swatch photos are
   only ~165 px wide natively, so never make this wider (it would blur).
   Above the "+N" colour overlay (z-index 200) so the overlay's tiles can use it. */
.bz-card-zoom {
  position: fixed;
  z-index: 1100;
  width: 165px;
  overflow: hidden;
  background: var(--c-card);
  box-shadow: 0 12px 40px rgba(47, 58, 51, .22);
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  display: none;
}
.bz-card-zoom.is-visible { display: block; opacity: 1; }
.bz-card-zoom img { width: 100%; height: auto; display: block; }
.bz-card-zoom__label {
  padding: 6px 10px 8px;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  color: var(--c-text);
}
.bz-card-zoom__label[hidden] { display: none; }
@media (hover: none) { .bz-card-zoom { display: none !important; } }

/* GEO one-sentence summary (2026-11-17) */
.bz-catlist__brief{margin:.25rem 0 1rem;color:var(--bz-muted,#6b6b6b);font-size:.9rem;line-height:1.45;max-width:70ch}
