/**
 * Будинок Затишку — product detail page. See mebelvdom-redesign-spec.md §6.5.
 */

.bz-product { padding: 0 0 var(--space-6); }  /* top spacing now comes from the breadcrumb-adjacent override in chrome.css, not this */

.bz-product__layout {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Gallery gets more of the layout's width than info so the main image
   reads as the dominant element. Neither column is max-width-capped: the
   two must fill the whole --wide container edge-to-edge with no leftover
   white strip on the right (design 2c), and the container itself already
   caps the overall width. */
.bz-product__gallery { flex: 1.2; min-width: 320px; }
/* Main photo fills a borderless rounded card, edge-to-edge (design 2c). */
.bz-product__main-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.bz-product__main-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Tapping a thumbnail paints that thumbnail into the main frame at once and
   swaps the full-size photo in when it has decoded (productdetails.js,
   showFullImage). Blurring the stand-in makes the low-res instant read as
   "loading" rather than as a bad photo, and the transition makes the swap a
   sharpening rather than a flash. Nothing here is load-bearing: with the CSS
   absent the gallery behaves identically, just more abruptly. */
.bz-product__main-image img.is-loading { filter: blur(6px); transform: scale(1.02); }
.bz-product__main-image img { transition: filter .18s ease-out, transform .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .bz-product__main-image img { transition: none; }
}

/* Generic spec-tile row (design frames 5e/5f) — see
   BzMegaCatalog::getProductSpecTiles(). Same card look/spacing as the
   size-picker's .bz-tile so the two rhyme visually, but centered content
   (icon on top) since there is no name/price pair here. */
.bz-spec-tiles { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.bz-spec-tile {
  flex: 1;
  min-width: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.bz-spec-tile__icon { font-size: 20px; line-height: 1; }
.bz-spec-tile__value { font-weight: 800; font-size: 15px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bz-spec-tile__label { font-size: 12px; color: var(--c-muted); }
@media (max-width: 640px) {
  .bz-spec-tiles { flex-wrap: wrap; }
  .bz-spec-tile { flex: 1 1 calc(33.33% - var(--space-2)); }
}
/* Extreme-tall images (full-height elevation drawings, e.g. a 320x820 pantry)
   crop to an unreadable top slice under cover. productdetails.js flags the
   wrapper .is-tall and they letterbox (contain) centered on the card bg,
   showing the whole product. Same rule/threshold as the category cards. */
.bz-product__main-image.is-tall img { object-fit: contain; padding: var(--space-3); box-sizing: border-box; }
.bz-product__main-image .ph-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: 14px;
  background: repeating-linear-gradient(45deg, var(--c-line), var(--c-line) 10px, var(--c-bg) 10px, var(--c-bg) 20px);
}
/* Zoom affordance, bottom-right of the main photo — opens the lightbox. */
.bz-product__zoom {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 249, .92);
  color: var(--c-coffee);
  font-size: 19px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
}
.bz-product__zoom:hover { background: var(--c-card); }

/* Anything that opens the full-size zoom overlay gets a zoom cursor. */
.bz-zoomable { cursor: zoom-in; }

/* Configurator module image — enlarged preview shown on hover, floating next
   to the thumb (borderless, just a rounded card + soft shadow). */
.bz-hover-preview {
  position: fixed;
  z-index: 1100;
  width: 300px;
  max-width: 42vw;
  border-radius: var(--radius-lg);
  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-hover-preview.is-visible { display: block; opacity: 1; }
.bz-hover-preview img { width: 100%; height: auto; display: block; }
@media (hover: none) { .bz-hover-preview { display: none !important; } }

/* Swatch color-zoom (design 2c) — the source catalog photos for these are
   only 165px wide natively (vip-master.ua's own color-swatch images, same
   size the manufacturer itself displays them at). The default 300px width
   above is sized for the configurator's real product photography, which is
   much higher-res — reusing it for swatches would force the browser to
   stretch a 165px image to 300px via the width:100% rule just above,
   producing the exact blur this narrower width avoids. Never make this
   wider than the source images' native resolution. Sharp corners on
   purpose: swatch zooms are a straight material/color reference photo,
   not stylized product photography, so the rounded corner + overflow
   crop from the base .bz-hover-preview would clip real facade detail. */
.bz-hover-preview--swatch { width: 165px; border-radius: 0; }

/* Colour-name caption (owner request 2026-08-02) — the zoomed swatch photo
   alone doesn't say WHICH colour it is (the name lived only in the browser
   tooltip), so productdetails.js repeats it as a text line under the photo. */
.bz-hover-preview__label {
  padding: 6px 10px 8px;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  color: var(--c-text);
}

/* Surcharge of the hovered colour (owner request 2026-08-14) — this caption
   is now the ONLY hover-time price preview, since the group title above the
   swatch row must stay on the SELECTED option. Its own block line rather
   than a trailing word: the swatch preview is a fixed 165px wide, so an
   appended "+ 138 грн" wraps in the middle of the price. */
.bz-hover-preview__price {
  display: block;
  margin-top: 2px;
  /* Same weight and ink as the headline price (.bz-price) — this line IS a
     price, so it reads as one; only the size stays at the caption's own
     13px, since it sits under a 165px-wide swatch photo. */
  font-weight: 800;
  color: var(--c-text);
  white-space: nowrap;
}

/* Facade-tile zoom (taburetka wardrobe import, 2026-07-23) — same "real
   material photo, not stylized product shot" reasoning as the swatch rule
   above (sharp corners, no crop). Width is NOT fixed here: unlike swatches
   (one uniform source resolution), facade photos vary tile to tile, so
   productdetails.js sets an explicit inline width per hover, capped to at
   most 2x the hovered tile's own on-page size (see sizeFacadePreview()) —
   this rule only supplies the corner/crop treatment. */
.bz-hover-preview--facade { border-radius: 0; }

/* Thumbnails sit on a single left-aligned row. Their size scales with the
   gallery width (≈ the main image) rather than stretching to fill the row:
   flex-basis is a share of the thumb row (= gallery width), clamped so it
   never shrinks below a legible ~88px on narrow screens nor grows past
   ~156px on wide ones. So a product with only 2–3 photos shows proportioned
   thumbs (not giants), and they read larger on desktop than the old fixed
   88px. They can shrink but never grow; overflow collapses into the "+N"
   tile (design 2c/2g). */
.bz-product__thumbs { display: flex; gap: var(--space-2); flex-wrap: nowrap; }
.bz-product__thumb {
  flex: 0 1 clamp(88px, 17%, 156px);
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--c-card);
  box-sizing: border-box;
}
.bz-product__thumb.is-active { border-color: var(--c-ginger); }
.bz-product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-product__thumb--more {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-coffee);
  background: var(--c-bg);
}
.bz-product__thumb--more:hover { border-color: var(--c-ginger); }
/* Video thumb (design 5d/5e) — a solid tile + play glyph, not a real video
   frame: the source is an external link (YouTube/Vimeo/direct file, never
   re-hosted here), so there is no local file to pull a poster frame from
   without an extra fetch — matches the mockup's own placeholder-tile look
   anyway, not a corner cut for it. */
.bz-product__thumb--video { display: flex; align-items: center; justify-content: center; background: var(--c-coffee); position: relative; }
.bz-product__thumb-play {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-coffee);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px;
  padding-left: 2px; /* optical centering of ▶ */
}

/* "Відео про товар" section (design frames 5a/5b) — a dedicated,
   scrollable row of video cards, separate from the older single-video
   gallery thumb above (.bz-product__thumb--video, zero live usage). See
   BzMegaCatalog::getProductVideos(). Duration badges from the mockup are
   deliberately omitted (2026-09-14 owner decision): no YouTube API key
   wired up to fetch a real duration, and a made-up one would be worse
   than none. Click wiring (openVideoZoom reuse) is in productdetails.js. */
.bz-product__videos { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--c-line); }
.bz-product__videos-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); }
.bz-product__videos-title { font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.bz-product__videos-note { font-size: 12.5px; color: var(--c-muted); }
.bz-product__videos-row { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.bz-product__videos-row::-webkit-scrollbar { display: none; }
.bz-product__video-card {
  flex: 0 0 clamp(120px, 24%, 168px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
/* var(--c-coffee) is the fallback background for a non-YouTube URL (Vimeo/
   direct file — see youtubeThumbUrl()'s own comment): those have no
   equally free thumbnail-by-URL-pattern shortcut, so they stay a solid
   placeholder + play glyph, same as the mockup's own tile. A YouTube URL
   gets its real hqdefault.jpg poster frame as an absolutely-positioned
   <img> UNDER the gradient (added 2026-09-15) — same hotlink-the-source
   treatment as the player embed itself, never downloaded/re-hosted. */
.bz-product__video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-coffee);
  display: flex; align-items: center; justify-content: center;
}
.bz-product__video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-product__video-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 21, 15, .18), rgba(28, 21, 15, .55));
}
.bz-product__video-play {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .94);
  color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  padding-left: 2px; /* optical centering of ▶ */
  box-shadow: var(--shadow-card);
}
.bz-product__video-title { font-size: 13px; font-weight: 600; color: var(--c-text); line-height: 1.35; }
.bz-product__video-source { font-size: 12px; color: var(--c-muted); }
@media (min-width: 900px) {
  .bz-product__video-card { flex-basis: clamp(140px, 20%, 168px); }
  .bz-product__video-title { font-size: 13px; }
  .bz-product__video-source { font-size: 12px; }
  .bz-product__video-play { width: 40px; height: 40px; font-size: 18px; }
}

.bz-product__info { flex: 1; min-width: 300px; }

/* ---------- Gallery lightbox (design 2g) ---------- */
.bz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bz-lightbox[hidden] { display: none; }
.bz-lightbox__backdrop { position: absolute; inset: 0; background: rgba(26, 20, 15, .82); }
.bz-lightbox__dialog {
  position: relative;
  width: min(92vw, 1000px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.bz-lightbox__stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--c-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bz-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* Video player (design 5d/5e) — see productdetails.js openVideoZoom(). Sits
   in the same .bz-lightbox__stage box as the image, toggled via [hidden]. */
.bz-lightbox__video { width: 100%; height: 100%; }
.bz-lightbox__video[hidden] { display: none; }
.bz-lightbox__video iframe, .bz-lightbox__video video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.bz-lightbox__close {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--c-card);
  color: var(--c-coffee);
  font-size: 19px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.bz-lightbox__nav {
  position: absolute;
  top: calc(50% - 60px);
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 249, .92);
  color: var(--c-coffee);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.bz-lightbox__nav--prev { left: -14px; }
.bz-lightbox__nav--next { right: -14px; }
/* Group/tag filter chips (design 5d) — sit on the dark backdrop above the
   light .bz-lightbox__stage box, so they get their own (light-on-dark)
   palette rather than reusing .bz-tiles__filter's card-on-cream one. */
.bz-lightbox__filters { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; max-width: 100%; }
.bz-lightbox__filter {
  background: rgba(255, 253, 249, .12);
  border: 1px solid rgba(255, 253, 249, .28);
  color: var(--c-card);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.bz-lightbox__filter span { margin-left: 5px; opacity: .75; }
.bz-lightbox__filter:hover { border-color: var(--c-ginger); }
.bz-lightbox__filter.is-active { background: var(--c-ginger); border-color: var(--c-ginger); color: var(--c-card); }
.bz-lightbox__filter.is-active span { opacity: .85; }
.bz-lightbox__strip {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.bz-lightbox__thumb {
  width: 64px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--c-card);
}
.bz-lightbox__thumb.is-active { border-color: var(--c-ginger); }
.bz-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-product__meta { font-size: 15px; color: var(--c-muted); margin-bottom: var(--space-2); }
/* Page-title H1 -- artboard 1b token (28/34), same role as the category
   title. Steps down on narrow screens because product names are long. */
.bz-product__info h1 { font-size: 28px; line-height: 34px; margin-bottom: var(--space-2); }
@media (max-width: 640px) {
  .bz-product__info h1 { font-size: 24px; line-height: 27px; }
}
.bz-product__rating { font-size: 15px; color: var(--c-muted); margin-bottom: var(--space-4); }
.bz-product__rating .bz-stars { color: var(--c-ginger); }
.bz-product__rating a { color: var(--c-coffee); }

.bz-product__price-block { margin-bottom: var(--space-4); }
.bz-price--lg { font-size: 28px; }
/* "за 1 погонний метр" next to the price for a from-price category (item 6). */
.bz-product__price-unit { margin-left: var(--space-2); font-size: 14px; color: var(--c-muted); }

/* §7.4b — each product can have several independent priced pickers (a
   wardrobe has 10), so they're laid out two per row instead of one long
   stack — this also naturally keeps each <select> narrower/shorter
   instead of stretching the full info-column width. */
.bz-product__options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 479px) {
  .bz-product__options-grid { grid-template-columns: 1fr; }
}
.bz-product__option label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--c-muted);
  margin-bottom: var(--space-2);
}
.bz-product__select {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--c-card);
}
.bz-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Design §2c — image-swatch and pill pickers (e.g. "Кухня Альбіна Люкс"
   body/facade/tabletop colors, tabletop thickness). A picker opts into
   this look per custom field (see getProductVariantGroups' display_hint) —
   every other product's picker keeps the plain <select> above unchanged. */
.bz-product__option-value { color: var(--c-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.bz-swatch-row, .bz-pill-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.bz-swatch {
  width: 40px; height: 40px;
  border-radius: 9px;
  border: 1px solid var(--c-line);
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg);
  padding: 0;
  cursor: pointer;
}
.bz-swatch.is-selected { border: 2px solid var(--c-ginger); }
.bz-pill {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.bz-pill.is-selected { background: var(--c-coffee); border-color: var(--c-coffee); color: var(--c-card); }
.bz-pill__price { color: var(--c-muted); font-weight: 700; }
.bz-pill.is-selected .bz-pill__price { color: inherit; opacity: .85; }

/* "What's the difference?" popup trigger under a 'pill' picker (design
   frame 5f, material toggle) — owner request 2026-08-28: was a no-JS
   <details> disclosure that pushed the price/CTA block down the page
   whenever opened; now a link that opens .bz-info-modal below instead
   (see bzInfoModal() in default.php — a generic, reusable popup, not a
   one-off for this picker). Only rendered when the custom field's own
   custom_desc admin text is filled in. */
.bz-info-modal-trigger {
  display: inline-block;
  margin-top: var(--space-2);
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.bz-info-modal-trigger:hover { color: var(--c-ginger); }

/* 'facade' picker (taburetka wardrobe import, 2026-07-23) — full-size door
   tiles like the source shop's facade galleries: the image IS the option
   (tall door render at its natural proportions), with the option name and
   price delta captioned underneath. Same hidden-<select> sync mechanism as
   swatches/pills; .bz-facade-tile--none is the imageless "Не обрано"
   default. */
.bz-facade-row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: stretch; }
.bz-facade-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 9px;
  cursor: pointer;
  max-width: 96px;
}
.bz-facade-tile img {
  height: 200px;
  width: auto;
  max-width: 84px;
  object-fit: contain;
  border-radius: 4px;
}
.bz-facade-tile__name {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--c-text);
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.bz-facade-tile__price { font-size: 12.5px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.bz-facade-tile.is-selected { border: 2px solid var(--c-ginger); padding: 5px; }
.bz-facade-tile--none { justify-content: center; min-height: 120px; }

/* Long-picker tile grid (design 2e/5e) — the DEFAULT for any picker with
   enough options that a dropdown stops being readable (mattress/bed size
   lists run to 24 near-identical entries). Engaged from the option VALUES
   alone, see BzMegaCatalog::buildOptionTileGrid(), so there's no custom_tip
   token here: the swatch / pill / facade / counter pickers above are
   structurally unreachable from this branch and are unchanged. When the
   values parse as dimensions the grid also gets a size-class filter row.
   Spans the full info column — .bz-product__options-grid is two-up, which is
   sized for short pickers. */
.bz-product__option--tiles { grid-column: 1 / -1; }
/* Chip (pill) pickers take the whole info column instead of one half of the two-up
   grid: a picker such as the fabric category has 8 chips with a surcharge each, which wrapped two to a row
   in a half-width cell (owner request 2026-11-15). */
.bz-product__option--pill { grid-column: 1 / -1; }
.bz-tiles__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--c-line);
}
/* .bz-tiles__label mirrors .bz-product__option label's own "Label: value"
   look (bold caps title + muted-600 value via the shared
   .bz-product__option-value class) so this picker's title reads the same
   as every swatch/pill picker instead of the old run-on axes line. */
.bz-tiles__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--c-muted);
}
.bz-tiles__count {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-muted);
}
.bz-tiles__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
.bz-tiles__filter {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.bz-tiles__filter:hover { border-color: var(--c-ginger); }
.bz-tiles__filter-count { margin-left: 6px; color: var(--c-muted); }
.bz-tiles__filter.is-active { background: var(--c-coffee); border-color: var(--c-coffee); color: var(--c-card); }
.bz-tiles__filter.is-active .bz-tiles__filter-count { color: var(--c-pillow); }
/* Extra filter rows (Матеріал / Крок ламелей on Estella beds — see
   BzMegaCatalog::buildOptionTileGrid()): same chip look as the size-class
   row above, just each row gets its own label so it reads as a standalone
   picker rather than a continuation of the size-class row's chip list. */
.bz-tiles__filters--extra { align-items: center; gap: var(--space-2); margin-top: 0; }
.bz-tiles__filters-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  margin-right: 2px;
}
/* auto-fill rather than a fixed 4 columns (the same self-adapting pattern
   .bz-color-modal__grid uses): 4 across the desktop info column, 3 on a
   phone, with no extra breakpoint. The --narrow/--medium/--wide modifier
   comes from the longest VALUE in the group, so a 14-option list of 49-char
   facade names doesn't get squeezed into a size-sized tile. */
.bz-tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
.bz-tiles--medium .bz-tiles__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bz-tiles--wide .bz-tiles__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bz-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 10px;
  text-align: left;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
}
/* The UA's own [hidden] { display: none } loses to the display:flex above,
   so a filtered-out tile would stay on screen without this. */
.bz-tile[hidden] { display: none; }
.bz-tile__name { font-size: 15px; font-weight: 800; color: var(--c-text); overflow-wrap: anywhere; }
.bz-tiles--wide .bz-tile__name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.bz-tile__variant { font-size: 12px; line-height: 1.2; color: var(--c-muted); overflow-wrap: anywhere; }
.bz-tile__price { font-size: 12.5px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.bz-tile:hover { border-color: var(--c-ginger); }
.bz-tile.is-selected { border: 2px solid var(--c-ginger); padding: 8px 9px; }
.bz-tiles__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.bz-tiles__foot:empty { margin-top: 0; }
.bz-tiles__more[hidden] { display: none; }
.bz-tiles__more {
  border: none;
  background: transparent;
  padding: var(--space-2) 0;
  color: var(--c-ginger);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.bz-tiles__more:hover { color: var(--c-coffee); }
/* A <button> since 2026-08-11 (it opens the contacts popup, it doesn't
   navigate) — the button's own chrome is reset so it keeps reading as the
   quiet text link it has always looked like. */
.bz-tiles__custom {
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.bz-tiles__custom:hover { color: var(--c-ginger); }
@media (max-width: 479px) {
  .bz-tiles__grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .bz-tiles--medium .bz-tiles__grid,
  .bz-tiles--wide .bz-tiles__grid { grid-template-columns: 1fr; }
  .bz-tiles__label,
  .bz-tiles__count { font-size: 12px; }
}
/* Unavailable at the currently selected height/profile (price-matrix
   products — the combination simply isn't offered at the source, e.g.
   Milano profiles at 270 см): greyed and unclickable, but still visible
   so the customer understands the option exists at other dimensions.
   Applies to facade tiles and profile swatches alike. */
.bz-facade-tile.is-unavailable,
.bz-swatch.is-unavailable {
  opacity: .35;
  filter: grayscale(1);
  pointer-events: none;
  cursor: default;
}

/* 'counter' picker (taburetka wardrobe import, 2026-07-26) — a quantity
   add-on (0..N of one item, e.g. extra shelves): item photo + unit price
   + a [− qty +] stepper. The group label above already carries the item's
   own name (one counter group per item), see bzRenderVariantGroup(). */
.bz-counter { display: flex; align-items: center; gap: var(--space-3); }
.bz-counter__img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  display: block;
}
.bz-counter__unit { font-size: 13px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.bz-counter__stepper { display: flex; align-items: center; gap: 2px; margin-left: auto; }
/* Same minimal −/[n]/+ look as the configurator cards' stepper (owner
   request 2026-09-27): bare glyphs, tinted count box, 32px hit area. */
.bz-counter__btn {
  width: 28px; height: 32px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--c-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.bz-counter__btn:hover { color: var(--c-ginger); }
.bz-counter__qty {
  min-width: 36px;
  height: 28px;
  padding: 0 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-coffee);
}

/* Full-page-width "Можливі варіанти фасадів" panel (SENAM factory
   wardrobes, category 138 — see productdetails/default.php's
   $facadeSectionGroups split): the "Фасад: …" pickers + art-design
   catalogs, pulled out of the right column, shown above "Опис товару" in
   the same panel-card shape. Groups stack full-width (unlike the
   two-per-row right-column grid) so a 25-tile facade row can breathe. */
.bz-product__facades-wrap { padding-top: var(--space-6); }

/* ===================== e1 compact configurator ======================
   Design "Wardrobe Configurator" e1a (desktop) / e1b (mobile), 2026-08-19.
   The door miniature (#bzDoors) lives INSIDE the gallery card behind a
   photo ⇄ configurator toggle; it is fluid — the door boxes fill the card
   at the wardrobe's real W:H aspect ratio (inline aspect-ratio, updated
   live from the height picker). Span overlays are measured off the real
   boxes in JS, so no fixed pixel constants here any more. */
/* Permanent card under the photo/presets (design rev. 2026-08-20 — the
   old photo ⇄ configurator toggle is gone). */
.bz-e1-config { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-4); margin-top: var(--space-3); }
/* Sticky configurator (owner request 2026-09-27): while the shopper picks
   facades in the library down the right column, the door card stays in
   view, pinned under the sticky header (--bz-header-h, published by
   chrome.js), and lets go when «Опис товару» arrives. That end point is
   free: the description is the first block after .bz-product__layout, so
   stretching the gallery column to the layout's full height (it is
   flex-start by default, i.e. only as tall as its own content) gives the
   sticky card exactly that much track. --e1 is set by the template in e1
   mode only, so no other product page's column changes height.
   Two-column widths only: below 768px the card lives in the buy bar's
   bottom sheet instead (productdetails.js placeConfig()). A card taller
   than the viewport under the header is left unpinned (.is-unpinned,
   productdetails.js fitStickyConfig()) so its foot is never held
   off-screen. */
@media (min-width: 768px) {
  .bz-product__gallery--e1 { align-self: stretch; }
  .bz-product__gallery--e1 > .bz-e1-config:not(.is-unpinned) {
    position: sticky;
    top: calc(var(--bz-header-h, 0px) + var(--space-3));
    z-index: 5;
  }
}
.bz-e1-config__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
/* "i" info button: hidden on desktop, where .bz-e1-config__note still
   renders inline below the stage exactly as before. Shown (and the note
   converted into the popover it toggles) only in the mobile media query
   further down — see .bz-e1-config__info/.bz-e1-config__note.is-open. */
.bz-e1-config__info {
  display: none;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-muted);
  font: italic 700 12px/1 Georgia, serif;
  cursor: pointer;
}
.bz-e1-config__kicker {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .07em;
  color: var(--c-muted);
}
/* Rev. 2026-08-19 for LOW-RES facade photos (~53×200 px): the doors are
   no longer stretched into a big wardrobe frame — fixed-size boxes near
   the photos' native resolution (JS snaps the width to the base image's
   real aspect on load), butted together in one rounded drop-shadowed row.
   The wardrobe's real geometry shows in the scheme mini-map beside them. */
/* Doors dock to the RIGHT of the card (design rev. 2026-08-20,
   row-reverse); the scheme mini-map + note column sits left, hugging the
   doors with right-aligned content. */
/* --bz-e1-door-h is the miniature's own height, published here because the
   scheme mini-map is capped to it (see .bz-e1-schem) -- the two are drawings
   of the same wardrobe and must not drift apart. */
/* justify-content: center (owner request 2026-09-26): the side column used
   to be flex:1 (see below), which absorbed all the row's spare width INSIDE
   itself -- since its own content is right-aligned, that spare width showed
   up as a big empty gap between the fill drawing and the schem mini-map,
   not at the row's outer edges. Now every item is its own natural size and
   the row centers as one tight group instead. Gap trimmed 22->16px: with
   the Фенікс fill drawing as a third item, doors + side + fill landed
   within a pixel of the container width at common viewports (684.65 vs
   683.82 measured live at 1440px) and wrapped to two lines on a hair --
   the extra margin keeps the common case on one line. */
.bz-e1-config__stage { display: flex; flex-direction: row-reverse; gap: 16px; align-items: flex-end; flex-wrap: wrap; justify-content: center; --bz-e1-door-h: 242px; }
.bz-doors { position: relative; flex: none; }
/* position:relative so span overlays (.bz-doors__span-img, added for
   door-count-tiered art-design facades, see productdetails.js
   renderSpanOverlays()) can be positioned absolutely against the real,
   MEASURED door boxes (left/top/width/height set inline per run). */
.bz-doors__images {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 18px -10px rgba(58, 44, 32, .4);
}
.bz-doors__img { flex: none; width: var(--bz-e1-door-w, 64px); height: var(--bz-e1-door-h, 242px); position: relative; overflow: hidden; cursor: pointer; background: var(--c-card); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
/* No selection outline on the door itself (owner request 2026-08-19: the
   wardrobe must look ± like the real thing) — the ginger number badge
   below and the scheme mini-map carry the selection accent. And no
   z-index either (a leftover of the removed outline): a raised selected
   door painted its own cover-cropped slice OVER the multi-door span
   overlay (z-index 1), visually ripping a tiered design apart whenever a
   section was selected. The badge/name keep their own z-index, so they
   stay readable above the overlay without lifting the whole door. */
.bz-doors__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Right edge of each door reads as the sliding-rail shadow (design e1a). */
.bz-doors__img::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: rgba(0, 0, 0, .12); }
/* Scheme mini-map: the wardrobe's true W:H proportions (inline
   aspect-ratio, height follows the Висота picker live) with one numbered
   clickable cell per door — clicking mirrors a door click. */
/* flex: none (was 1) -- see the .bz-e1-config__stage comment above: this
   box no longer grows to fill spare row width, which is what created the
   gap between the fill drawing and the schem mini-map. min-width dropped
   (was 140px, a leftover from the flex:1 era when the box needed a floor
   to keep growing usefully) -- with flex:none there's nothing to keep it
   OPEN to, and it silently forced the box wider than its own content
   whenever a label happened to be short, contributing to the same
   near-miss overflow the gap comment above describes. */
.bz-e1-config__side { flex: none; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 9px; }
/* max-width caps the label to the schem's own max width (170px, see
   .bz-e1-schem below) so a long label WRAPS instead of forcing this
   column -- and so the whole stage row -- wider than the schem itself
   needs. Without this the label ("СХЕМА ФАСАДУ · 2200 × 2100 ММ") measured
   ~190px unwrapped, pushing the row a few px past the container width at
   common viewports and wrapping the fill drawing onto its own line. */
.bz-e1-schem__label { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .07em; color: var(--c-muted); text-align: right; max-width: 170px; }
.bz-e1-schem {
  /* 170px wide, UNLESS the wardrobe's proportions would then make it taller
     than the door miniature beside it -- in which case the height is what
     gets pinned and the width follows, so a narrow wardrobe reads as a tall
     thin scheme instead of stretching the whole stage. A 240x210 four-door
     is unaffected (170px already yields 149px, well under the miniature); a
     90x210 two-door was 397px tall before this and is now exactly the
     miniature's height at ~104px wide. --bz-e1-schem-ar is the ratio as a
     bare number (the template emits it next to aspect-ratio, and the height
     picker keeps both in step). */
  width: min(170px, calc(var(--bz-e1-door-h, 242px) * var(--bz-e1-schem-ar, 1)));
  border: 1.5px solid #c8bfae;
  border-radius: 5px;
  padding: 5px;
  box-sizing: border-box;
  background: var(--c-bg);
  display: flex;
  gap: 3px;
}
.bz-e1-schem__cell {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  border-radius: 3px;
  background: var(--c-card);
  box-shadow: inset 0 0 0 1px var(--c-line);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.bz-e1-schem__cell:hover { box-shadow: inset 0 0 0 1px var(--c-ginger); }
.bz-e1-schem__cell.is-selected { background: var(--c-ginger); color: var(--c-card); box-shadow: none; }
.bz-e1-config__note { font-size: 12.5px; line-height: 1.55; color: var(--c-muted); }
.bz-e1-config__note b { color: #b5713f; }
.bz-doors__num {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 253, 249, .92);
  color: var(--c-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  pointer-events: none;
  z-index: 2;
}
.bz-doors__img.is-selected .bz-doors__num { background: var(--c-ginger); color: var(--c-card); }
/* Facade-name pill inside the door (design e1a): shrink-wrapped dark
   pill, centered; hidden when the name would be wider than the door box
   can readably hold is handled by the ellipsis + max-width clamp. */
.bz-doors__doorname {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-card);
  background: rgba(58, 44, 32, .6);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  pointer-events: none;
  z-index: 3;
}
/* Single spanning image for a door-count-tiered design (e.g. a "2 двері"
   art pattern) — ONE continuous picture over its run of doors; geometry
   set inline by renderSpanOverlays() from the measured boxes.
   object-fit:fill on purpose: the overlay's box IS the design's intended
   footprint. pointer-events:none lets section clicks fall through. */
.bz-doors__span-img {
  position: absolute;
  object-fit: fill;
  display: block;
  pointer-events: none;
  z-index: 1;
}
/* «Обрані двері: №N — {фасад}» + «Застосувати цей фасад до всіх дверей»
   (design rev. 2026-08-20 — this link replaces the old «Комплект»
   toggle; a door is always selected). */
.bz-e1-config__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-line);
}
.bz-e1-config__sel { font-size: 13px; color: var(--c-text); }
.bz-e1-config__sel b { color: var(--c-ginger); }
.bz-e1-applyall {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-coffee);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bz-e1-applyall:hover { color: var(--c-ginger); }
.bz-product__facades > .bz-product__option { margin-top: var(--space-5); }
.bz-product__facades > .bz-product__option .bz-product__select:not(.bz-visually-hidden) { max-width: 420px; }
.bz-product__facades > .bz-product__vitrina { margin-top: var(--space-5); }

/* "Вітрина" showcase gallery (owner request 2026-08-28): reduced-size,
   non-selectable photo row above the option pickers — was previously
   unstyled (bare <figure>/<img>/<figcaption>), so each photo rendered at
   its full native size (~165px wide). Every photo is server-rendered;
   productdetails.js measures the row's actual width and hides whatever
   doesn't fit behind a "+N" tile that opens .bz-vitrina-modal below — same
   "+N" → popup idea as the colour-swatch overflow (.bz-color-modal,
   components.css), but with no selection state (static photo viewer, never
   a picker) and a real measured fit instead of a fixed per-breakpoint
   count (a 72px vitrina photo doesn't fit the same row math as a 40px
   swatch). The UA's own [hidden]{display:none} loses to the display:flex
   below, same gotcha as .bz-tile[hidden] above — needs its own override. */
.bz-product__vitrina-title { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 var(--space-2); }
.bz-product__vitrina-intro { font-size: 15px; line-height: 1.5; color: var(--c-text); margin: 0 0 var(--space-3); }
.bz-product__vitrina-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bz-product__vitrina-item { width: 72px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bz-product__vitrina-item[hidden] { display: none; }
.bz-product__vitrina-item img { display: block; width: 72px; height: auto; border-radius: 7px; border: 1px solid var(--c-line); }
.bz-product__vitrina-item figcaption {
  font-size: 12px;
  line-height: 1.3;
  color: var(--c-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-product__vitrina-more {
  width: 72px; height: 72px;
  align-self: flex-start;
  border-radius: 7px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.bz-product__vitrina-more[hidden] { display: none; }
.bz-product__vitrina-note { font-size: 13px; color: var(--c-muted); margin-top: var(--space-2); }

/* "+N" popup for the overflowed vitrina photos — same visual language as
   .bz-color-modal (components.css) but simplified: no Apply/Selected
   footer, since there's no selection to confirm here. */
.bz-vitrina-modal[hidden] { display: none; }
.bz-vitrina-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.bz-vitrina-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 21, 15, .5); }
.bz-vitrina-modal__panel {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.bz-vitrina-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--c-line);
}
.bz-vitrina-modal__head h3 { margin: 0; font-family: var(--font-heading); font-size: 17px; color: var(--c-coffee); }
.bz-vitrina-modal__close { background: none; border: none; font-size: 17px; color: var(--c-muted); cursor: pointer; padding: 4px; }
.bz-vitrina-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  overflow-y: auto;
}
.bz-vitrina-modal__item { margin: 0; text-align: center; }
.bz-vitrina-modal__item img { width: 100%; height: auto; border-radius: 7px; border: 1px solid var(--c-line); }
.bz-vitrina-modal__item figcaption { font-size: 12.5px; color: var(--c-text); margin-top: 4px; }

/* Generic small-content popup (bzInfoModal() in default.php) — same
   shell as .bz-vitrina-modal just above, with a plain text body instead
   of a photo grid. First use: the pill picker's "Чим відрізняється?"
   text (owner request 2026-08-28); reuse for any future case that needs
   a titled text popup rather than growing its own bespoke widget. */
.bz-info-modal[hidden] { display: none; }
.bz-info-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.bz-info-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 21, 15, .5); }
.bz-info-modal__panel {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--c-card);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.bz-info-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--c-line);
}
.bz-info-modal__head h3 { margin: 0; font-family: var(--font-heading); font-size: 17px; color: var(--c-coffee); }
.bz-info-modal__close { background: none; border: none; font-size: 17px; color: var(--c-muted); cursor: pointer; padding: 4px; }
.bz-info-modal__body {
  padding: var(--space-4);
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
}
.bz-info-modal__body p { margin: 0 0 var(--space-3); }
.bz-info-modal__body p:last-child { margin-bottom: 0; }
.bz-info-modal__lead { display: block; color: var(--c-coffee); margin-bottom: 2px; }

/* Fabric library: «Підібрати тканину та колір» under the fabric category chips and its popup (bzFabricPicker() in default.php,
   productdetails.js «Fabric library popup»). Swatches are small crops of the supplier's own catalogue photos. */
.bz-fabric { margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.bz-fabric__open {
  background: none; border: 1px solid var(--c-ginger); color: var(--c-ginger); font: inherit; font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer;
}
.bz-fabric__open:hover { background: var(--c-ginger); color: var(--c-card); }
.bz-fabric__chosen {
  display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--c-line); background: var(--c-card);
  border-radius: var(--radius-pill); padding: 3px 6px 3px 3px; font-size: 13px; font-weight: 600;
}
.bz-fabric__chosen[hidden] { display: none; }
.bz-fabric__chosen-img { border-radius: 50%; object-fit: cover; }
.bz-fabric__clear { background: none; border: none; color: var(--c-muted); cursor: pointer; font-size: 13px; padding: 2px 6px; }
.bz-fabric-modal__panel { width: min(820px, calc(100vw - 24px)); max-height: min(760px, calc(100vh - 24px)); }
.bz-fabric-modal__intro { margin: 0; padding: var(--space-3) var(--space-4) 0; font-size: 14px; color: var(--c-muted); }
.bz-fabric-modal__tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--c-line); }
.bz-fabric-modal__tabs .bz-pill { padding: 6px 12px; }
.bz-fabric-modal__body { flex: 1 1 auto; min-height: 220px; }
.bz-fabric-modal__empty { color: var(--c-muted); }
.bz-fabric-modal__foot { margin: 0; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--c-line); font-size: 12.5px; color: var(--c-muted); }
.bz-fabric-modal__foot a { color: var(--c-ginger); }
.bz-fabric-sup + .bz-fabric-sup { margin-top: var(--space-5); }
.bz-fabric-sup__name { margin: 0 0 var(--space-2); font-family: var(--font-heading); font-size: 16px; color: var(--c-coffee); }
.bz-fabric-coll { content-visibility: auto; contain-intrinsic-size: auto 120px; margin-bottom: var(--space-4); }
.bz-fabric-coll__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.bz-fabric-coll__name { font-weight: 700; font-size: 14px; }
.bz-fabric-coll__link { font-size: 12px; color: var(--c-muted); text-decoration: underline; }
.bz-fabric-coll__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--space-2); }
.bz-fabric-sw { background: none; border: 1px solid transparent; border-radius: 9px; padding: 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; }
.bz-fabric-sw:hover, .bz-fabric-sw:focus-visible { border-color: var(--c-ginger); }
.bz-fabric-sw img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--c-line); display: block; }
.bz-fabric-sw__name { font-size: 11px; line-height: 1.15; color: var(--c-text); text-align: center; overflow-wrap: anywhere; }

/* Quick presets card (design e1a "Швидкі схеми"). */
.bz-e1-presets { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-4); margin-top: var(--space-3); }
.bz-e1-presets__title { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; letter-spacing: .07em; color: var(--c-muted); margin-bottom: var(--space-2); }
.bz-e1-presets__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bz-e1-preset {
  flex: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-line);
}
.bz-e1-preset:hover { border-color: var(--c-ginger); }
.bz-e1-preset.is-active { background: var(--c-coffee); border-color: var(--c-coffee); color: var(--c-card); }
.bz-e1-preset.is-unavailable { opacity: .4; cursor: not-allowed; }

/* Facade library card (design e1a right column). */
.bz-e1-lib { margin: var(--space-4) 0; }
.bz-e1-lib__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.bz-e1-lib__title { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; letter-spacing: .05em; color: var(--c-muted); text-transform: uppercase; }
.bz-e1-lib__title b { color: var(--c-ginger); }
.bz-e1-lib__brand { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.bz-e1-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bz-e1-tab {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  flex: none;
  font-family: var(--font-body);
  text-align: left;
}
.bz-e1-tab:hover { border-color: var(--c-ginger); }
.bz-e1-tab.is-active { background: var(--c-coffee); border-color: var(--c-coffee); }
.bz-e1-tab__name { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; color: var(--c-text); }
.bz-e1-tab.is-active .bz-e1-tab__name { color: var(--c-card); }
.bz-e1-tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ginger); flex: none; }
.bz-e1-tab__sub { font-size: 11px; color: var(--c-muted); }
.bz-e1-tab.is-active .bz-e1-tab__sub { color: #d8cbb8; }
.bz-e1-tab__sub i { font-style: normal; }
/* No sub-section chips (owner 2026-08-19): the active tab shows ALL its
   groups at once as ONE wrapped tile row — the group/option/row wrappers
   go display:contents so every tile becomes a direct flex item of
   .bz-e1-groups, while the DOM (and every closest() lookup the picker
   machinery relies on) stays intact. Which tiles are visible is decided
   by JS sampling (bz-e1-clip); the modal shows the same group nodes
   moved in wholesale, block-per-group with their titles. Scoped to
   `.bz-e1-groups >` on purpose so none of this applies once a group sits
   in the modal. */
.bz-e1-groups { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bz-e1-groups > .bz-e1-group:not([hidden]),
.bz-e1-groups > .bz-e1-group:not([hidden]) > .bz-product__option,
.bz-e1-groups > .bz-e1-group:not([hidden]) > .bz-product__option > .bz-facade-row { display: contents; }
/* Scheme titles («№3 · 14 вар.», «На 2 двері · 5 вар.») exist in every
   multi-group tab's markup but surface only inside the modal. */
.bz-e1-group__title { display: none; }
.bz-e1-modal__body .bz-e1-group__title {
  display: block;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}
.bz-e1-modal__body .bz-e1-group { margin-bottom: var(--space-4); }
.bz-e1-modal__body .bz-e1-group:last-child { margin-bottom: 0; }
/* In the compact library the group's own "Фасад: …" label is redundant —
   the tab + sub-chip already say it — but the element must stay in the
   DOM: hover previews and the tile click handler write the current option
   name into its [data-option-label] span. */
.bz-e1-group > .bz-product__option > label { display: none; }
/* Library tiles are EXACTLY the size of the miniature's door boxes
   (owner request 2026-08-19): same --bz-e1-door-w width (snapped by JS to
   the base photo's real aspect at the 242px door height), so what the
   shopper picks on the right is what lands on the left, pixel for pixel.
   Wrapped flex row instead of a stretch grid — the tile dictates its own
   size now. */
.bz-e1-group .bz-facade-row,
.bz-e1-modal__body .bz-facade-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bz-e1-group .bz-facade-tile,
.bz-e1-modal__body .bz-facade-tile {
  box-sizing: border-box;
  max-width: none;
  flex: none;
  width: calc(var(--bz-e1-door-w, 64px) + 12px); /* content door-w + 5px padding + 1px border per side */
  padding: 5px;
}
.bz-e1-group .bz-facade-tile img,
.bz-e1-modal__body .bz-facade-tile img {
  height: 242px;
  max-width: none;
  width: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.bz-e1-group .bz-facade-tile .bz-facade-tile__name,
.bz-e1-modal__body .bz-facade-tile .bz-facade-tile__name { font-size: 12px; }
/* A facade with no matrix cell at the current height×profile is HIDDEN
   entirely in the e1 library, not greyed (owner 2026-08-20) — the
   shopper only ever sees what is actually orderable. A scheme whose
   every tile is unavailable hides wholesale (bz-e1-group--none, set in
   bzE1.afterChips) — title included, both in the preview flow and in
   the modal — and a fully-empty tab hides its chip (hidden attribute).
   !important beats the display:contents/flex layout rules above. */
.bz-e1-lib .bz-facade-tile.is-unavailable { display: none !important; }
.bz-e1-group.bz-e1-group--none { display: none !important; }

/* The selected tile's 2px border (global .bz-facade-tile.is-selected
   rule) would shrink its image 2px inside the fixed-width box — trade
   padding for border so every image stays exactly door-sized. */
.bz-e1-group .bz-facade-tile.is-selected,
.bz-e1-modal__body .bz-facade-tile.is-selected { padding: 4px; }
.bz-e1-group .bz-facade-tile.bz-e1-clip { display: none; }
/* A door-count-tiered design occupies N sections in the wardrobe, so its
   tile is N door-widths wide — the wide art photo shows whole instead of
   being cover-cropped into a single door strip (owner report 2026-08-19:
   Худ. матування / Малюнок looked broken). Covers the in-card preview
   AND the modal — both live inside .bz-e1-lib. */
.bz-e1-lib [data-tier-doors="2"] .bz-facade-tile { width: calc(var(--bz-e1-door-w, 64px) * 2 + 12px); }
.bz-e1-lib [data-tier-doors="3"] .bz-facade-tile { width: calc(var(--bz-e1-door-w, 64px) * 3 + 12px); }
.bz-e1-lib [data-tier-doors="4"] .bz-facade-tile { width: calc(var(--bz-e1-door-w, 64px) * 4 + 12px); }
/* …and their art is never cropped in the picker, whatever the catalog
   photo's own aspect turns out to be. */
.bz-e1-lib [data-tier-doors] .bz-facade-tile img { object-fit: contain; }
.bz-e1-more {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  text-align: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ginger);
  background: none;
  border: 1.5px dashed #e8b878;
  border-radius: 10px;
  padding: 10px 0;
}
.bz-e1-more:hover { background: var(--c-bg); }

/* "The tiles are a selection — here is the factory's full sample book."
   Sits under its facade family's tiles (inside the e1 library it is
   toggled with the tab, same data-meta as the groups). Deliberately quiet:
   it qualifies the picker above it, it isn't a call to action competing
   with the price. */
.bz-facade-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--c-bg);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--c-muted);
}
.bz-facade-hint__doc {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: var(--c-ginger);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.bz-facade-hint__doc:hover { color: var(--c-ink); }
/* The weight warning stays legible but never louder than the link. */
.bz-facade-hint__meta { font-weight: 600; font-size: 12.5px; opacity: .7; white-space: nowrap; }
.bz-e1-hint[hidden] { display: none; }

/* "Всі N варіантів" modal — the ACTIVE group's real tile row moves in
   here (and back on close), so every existing tile behaviour just works. */
.bz-e1-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bz-e1-modal[hidden] { display: none; }
.bz-e1-modal__backdrop { position: absolute; inset: 0; background: rgba(28, 21, 15, .55); }
.bz-e1-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--c-card);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 24px 60px rgba(28, 21, 15, .4);
}
.bz-e1-modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); }
.bz-e1-modal__title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--c-text); }
.bz-e1-modal__close { background: none; border: 0; cursor: pointer; color: var(--c-muted); font-size: 18px; padding: 4px 8px; }
.bz-e1-modal__close:hover { color: var(--c-text); }
/* Modal tiles share the door-box sizing rules declared with the in-card
   grid above. */
.bz-e1-modal__note { font-size: 12.5px; color: var(--c-muted); margin-top: var(--space-3); }
body.bz-e1-modal-open { overflow: hidden; }

/* Itemized dark price card (design e1a). */
.bz-e1-total { background: var(--c-coffee); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-4) var(--space-4); margin: var(--space-4) 0; }
/* Font sizes bumped site-wide on this card 2026-09-27 (owner: "make all
   fonts of the product preview bigger") — was 11.5px/12.5px/28px. */
.bz-e1-total__lines { display: flex; flex-direction: column; gap: 7px; }
.bz-e1-total__line { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 15px; color: #c8bfae; }
.bz-e1-total__line b { color: var(--c-line); font-weight: 600; white-space: nowrap; }
.bz-e1-total__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 253, 249, .18);
  margin-bottom: var(--space-3);
}
.bz-e1-total__label { font-size: 16px; color: #c8bfae; }
.bz-e1-total .bz-e1-total__price { font-family: var(--font-heading); font-weight: 700; font-size: 30px; color: var(--c-card); }
/* «Ціна вказана за базову комплектацію (ДСП)» — right under the price,
   only while the configuration is the default (productdetails.js toggles
   [hidden]); pulls up into the row's bottom margin so it reads as the
   price's caption, not a separate block. */
.bz-e1-total__note { margin: calc(-1 * var(--space-2)) 0 var(--space-3); text-align: right; font-size: 13px; line-height: 1.35; color: #c8bfae; }
.bz-e1-total__note[hidden], .bz-e1-buybar__note[hidden] { display: none; }
.bz-e1-total .bz-product__ctas { margin-bottom: 0; }
/* On the coffee card the site's coffee primary button disappears — the
   mockup gives the main CTA the ginger fill and the secondary a light
   outline (design e1a dark card). */
.bz-e1-total .bz-btn--primary { background: var(--c-ginger); border-color: var(--c-ginger); color: var(--c-card); }
.bz-e1-total .bz-btn--primary:hover { background: #d4731a; border-color: #d4731a; }
.bz-e1-total .bz-btn--accent { background: transparent; border: 1.5px solid rgba(255, 253, 249, .4); color: var(--c-card); }
.bz-e1-total .bz-btn--accent:hover { border-color: rgba(255, 253, 249, .7); background: rgba(255, 253, 249, .08); }

/* Mobile sticky buy bar (design e1b) — pinned above the site's own bottom
   nav; desktop keeps the in-flow dark card only. */
.bz-e1-buybar { display: none; }
@media (max-width: 767px) {
  /* design e1b rev. 2026-08-20: the bar is a bottom SHEET — drag handle,
     collapsible panel holding the relocated configurator card
     (productdetails.js moves the real node in/out per breakpoint), then
     the price / «Фасади ▴» chip / «До кошика» row. */
  .bz-e1-buybar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--bz-bottomnav-h, calc(59px + env(safe-area-inset-bottom, 0px)));
    z-index: 95;
    background: var(--c-card);
    border-top: 1px solid var(--c-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 34px rgba(58, 44, 32, .14);
  }
  .bz-e1-buybar[hidden] { display: none; }
  .bz-e1-buybar__handle { display: flex; justify-content: center; width: 100%; padding: 8px 0 2px; background: none; border: 0; cursor: pointer; }
  .bz-e1-buybar__handle span { display: block; width: 38px; height: 4px; border-radius: var(--radius-pill); background: #d8cfbf; }
  /* No internal scroll (owner 2026-09-04): the sheet used to cap itself at
     58vh and scroll past that, which is exactly what made a swipe-down
     gesture ambiguous with "scroll the sheet's own content" and left it
     unresponsive. Content now has to actually fit — the note-to-popover
     move and the 25% shrink just below are what make that true, not a
     workaround for it. */
  .bz-e1-buybar__sheet { padding: 6px var(--space-3) 0; }
  /* Whole configurator scaled down 25% on phones (owner request) — `zoom`
     (not `transform: scale`) so every declared size, gap and font inside
     shrinks together and the box actually takes less layout space instead
     of just painting smaller inside its old-sized box. position:relative
     is the anchor for the info popover below. */
  .bz-e1-buybar__sheet .bz-e1-config { margin-top: 0; background: var(--c-bg); position: relative; zoom: .75; }
  .bz-e1-buybar__row { display: flex; align-items: center; gap: var(--space-2); padding: 5px var(--space-4) 13px; }
  .bz-e1-buybar__chip {
    flex: none;
    background: var(--c-pillow);
    color: var(--c-text);
    border: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 11px;
    border-radius: var(--radius-pill);
    cursor: pointer;
  }
  .bz-e1-buybar__price { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--c-text); white-space: nowrap; }
  .bz-e1-buybar__note { display: block; margin-top: 1px; font-size: 11px; line-height: 1.2; color: var(--c-muted); white-space: nowrap; }
  /* nowrap: at the bumped 2026-09-27 type scale a 375px phone otherwise
     breaks «В корзину» onto two lines. */
  .bz-e1-buybar__btn { flex: 1; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
  /* Tiles keep the exact door-box size on phones too (owner request) —
     the wrapped flex row just fits fewer per line. */
  .bz-e1-group .bz-facade-tile .bz-facade-tile__name { font-size: 11px; }
  .bz-e1-modal { padding: 12px; }
  /* design e1b: centered door row, no scheme mini-map (the caption под
     дверима carries the geometry line instead). */
  .bz-e1-config__stage { justify-content: center; gap: var(--space-3); }
  .bz-e1-schem__label,
  .bz-e1-schem { display: none; }
  /* display:none (was flex-basis:100%) -- with the schem/label hidden this
     box has no visible content left, but flex-basis:100% still forced it to
     claim a whole row width, pushing the fill drawing and doors apart onto
     separate wrapped lines. Removing it from flow lets them sit on one
     centered row together (owner request 2026-09-26). */
  .bz-e1-config__side { display: none; }
  /* The note is now an "i" popover, not inline text (owner 2026-09-04) —
     .bz-e1-config__info shown here (base rule is display:none, desktop
     keeps the plain inline note untouched). Anchored top-right against
     the card's own position:relative set above; toggled via
     .is-open by #bzE1InfoBtn's click handler in productdetails.js. */
  .bz-e1-config__info { display: flex; align-items: center; justify-content: center; }
  .bz-e1-config__note {
    display: none;
    position: absolute;
    top: 46px;
    right: var(--space-4);
    left: var(--space-4);
    z-index: 6;
    text-align: left;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: 0 8px 20px rgba(58, 44, 32, .16);
  }
  .bz-e1-config__note.is-open { display: block; }
}

.bz-product__ctas { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.bz-product__ctas .bz-btn { flex: 1; min-width: 160px; }
/* Buy buttons are real <form>s (see productdetails/default.php) — the
   form itself takes no box, so its button participates directly in this
   flex row exactly as a bare button would. */
.bz-product__ctas form { display: contents; }

/* Скласти комплект — outline pill, matched to design 2c/1h source exactly
   (border 1.5px coffee, coffee text, cream --c-card fill — NOT the filled
   .bz-btn--primary style, and NOT transparent like .bz-btn--outline: the
   mockup gives it its own subtle card-like fill against the page's slightly
   darker background). Shown below the buy-button row, together with it —
   the design renders both even for a modular product, it just doesn't model
   our from-price "no direct purchase" business rule. */
.bz-product__compose {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: var(--space-4);
  padding: 13px 0;
  border: 1.5px solid var(--c-coffee);
  border-radius: var(--radius-lg);
  background: var(--c-card);
  color: var(--c-coffee);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bz-product__compose:hover { background: var(--c-bg); text-decoration: none; }

/* "габарити" icons row (design 2c component library, 1b) — width/height/
   depth, each with its own icon, whichever dimension custom fields
   (Ширина/Высота/Глубина) are set on this product. Plain inline row, no
   card/border — matches the design exactly (a boxed/outlined version was
   used before, which read as its own separate panel; removed). */
.bz-product__dims-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  align-self: flex-start;
  margin-bottom: var(--space-4);
}
.bz-product__dim {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--c-muted);
}
.bz-product__dim b { font-weight: 700; font-size: 15px; color: var(--c-text); }
.bz-product__dims-unit { font-size: 12px; color: var(--c-muted); }
@media (max-width: 479px) {
  .bz-product__dims-row { gap: var(--space-3); flex-wrap: wrap; }
}

.bz-product__phone-nudge { font-size: 15px; color: var(--c-muted); margin-bottom: var(--space-4); text-align: center; }
.bz-product__phone-nudge a { color: var(--c-coffee); font-weight: 600; text-decoration: none; }

/* "Дополнительное описание справа" (BzMegaCatalog::getProductRightDescription())
   — a dedicated card in the info column, below "Скласти комплект" (or the
   price if that's absent). Own card treatment, not a bare .bz-prose block,
   since it sits among bordered/filled sidebar elements rather than the
   wide full-width "Опис товару" section. */
.bz-product__right-desc {
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-card);
  font-size: 15px;
}

/* Mobile-only "show more" clamp for long free-text description blocks
   (owner request 2026-09-04) -- shared by this sidebar card AND the
   full-width "Опис товару" section below (.bz-product__desc .bz-prose),
   since both render arbitrary admin HTML that can run long and push
   everything below it far down a phone screen. productdetails.js wraps
   each block's own content in a .bz-desc-clamp element (leaving the
   card's own border/padding/background alone) and measures whether that
   wrapped content actually overflows the clamped height, revealing the
   "show more" button below only when it does -- same measure-then-decide
   approach as the row-clamp pattern used for the "<X> комплектом"
   cross-sell grid further down this file. Desktop is unaffected -- no
   clamp outside this breakpoint. See bzClampLongDescription() in
   productdetails.js for both call sites. */
@media (max-width: 767px) {
  .bz-desc-clamp {
    position: relative;
    max-height: 132px;
    overflow: hidden;
  }
  .bz-desc-clamp::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 44px;
    background: linear-gradient(to bottom, transparent, var(--c-card));
    pointer-events: none;
  }
  .bz-desc-clamp.is-expanded {
    max-height: none;
  }
  .bz-desc-clamp.is-expanded::after {
    content: none;
  }
}
.bz-desc-clamp-more {
  display: none;
  width: 100%;
  margin-top: var(--space-2);
  padding: var(--space-2) 0 0;
  border: none;
  border-top: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ginger);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.bz-desc-clamp-more:hover { color: var(--c-coffee); }

.bz-product__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 15px;
  color: var(--c-text);
  border-top: 1px solid var(--c-line);
  padding-top: var(--space-3);
}

/* ---------- Modular configurator (§7.4a) ---------- */

.bz-configurator {
  /* Keep the container's left/right gutter (item 3) — it was being zeroed by
     this rule's shorthand, so the card ran edge-to-edge while every other
     section sat at var(--space-4). No bottom padding: the section below (Опис
     товару) supplies the gap via its own padding-top, so the
     configurator→description gap matches description→characteristics (item 1). */
  padding: var(--space-6) var(--space-4) 0;
  border-top: 1px solid var(--c-line);
  margin-top: var(--space-6);
}

.bz-configurator__card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: var(--space-5);
}

.bz-configurator__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.bz-configurator__header h2 { margin-bottom: var(--space-1); }
.bz-configurator__header > div > p { margin: 0; }
/* Count badge, top-right of the header row */
.bz-configurator__count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--c-pillow);
  color: var(--c-coffee);
  font-weight: 800;
  font-size: 15px;
}

/* Search + sort row above the module grid (design 5b) — search box grows to
   fill remaining space, sort pills stay their natural width. */
.bz-configurator__toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.bz-configurator__search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  color: var(--c-muted);
}
.bz-configurator__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--c-text);
}
.bz-configurator__search input::placeholder { color: var(--c-muted); }
.bz-configurator__sort-label { font-size: 13px; color: var(--c-muted); }
.bz-configurator__sort {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-card);
  color: var(--c-text);
  padding: 9px 13px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.bz-configurator__sort.is-active {
  border-color: var(--c-coffee);
  background: var(--c-coffee);
  color: var(--c-card);
  font-weight: 700;
}
.bz-configurator__empty,
.bz-configurator__loading {
  margin: var(--space-4) 0 0;
  text-align: center;
  color: var(--c-muted);
  font-size: 15px;
}

/* Big image cards, hard-capped at 5 per row (never more, even on very wide
   monitors — the --wide container is not narrow enough to bound it), stepping
   down as the configurator card narrows (container queries below). Each module image also shows an enlarged photo
   on hover (see .bz-hover-preview). */
.bz-configurator__grid {
  display: grid;
  grid-template-columns: repeat(var(--cfg-cols), minmax(0, 1fr));
  gap: var(--space-3);
  --cfg-cols: 5;
  /* minmax(0, auto), not plain `auto`: a subgrid row track that has ZERO
     items placed in it ANYWHERE (e.g. the colors row when literally no
     module in the whole product has colour swatches) otherwise gets a
     sizeable non-zero "phantom" auto size from the browser instead of
     collapsing to 0 — this explicitly floors every implicit row track's
     minimum at 0 so an empty one truly takes no space, while `auto` still
     lets it grow normally for rows that do have content. */
  grid-auto-rows: minmax(0, auto);
}
/* Column count follows the space the grid really has, not the viewport
   (owner request 2026-09-27: bigger dims/price/stepper on every card): a
   card is never narrower than ~226px, the least that holds a 5-digit price
   next to the stepper and a three-value dims row on one line each. Step =
   226px card + 12px gap, so N columns need N×238 − 12 px. The card, not
   the grid, is the size container — a container can't query itself. */
.bz-configurator__card { container: bzcfg / inline-size; }
@container bzcfg (max-width: 1177px) { .bz-configurator__grid { --cfg-cols: 4; } }
@container bzcfg (max-width: 939px)  { .bz-configurator__grid { --cfg-cols: 3; } }
@container bzcfg (max-width: 701px)  { .bz-configurator__grid { --cfg-cols: 2; } }
@container bzcfg (max-width: 463px)  { .bz-configurator__grid { --cfg-cols: 1; } }
/* Text that must stay on one line (dims row, price) is sized off the real
   card: content box = (grid width − gaps) / columns − 26px (12px padding +
   1px border each side). The dims row divides it by its own length (see
   .bz-configurator__dims). */
.bz-configurator__grid > * {
  --cfg-card: calc((100cqw - (var(--cfg-cols) - 1) * var(--space-3)) / var(--cfg-cols) - 26px);
  --cfg-price-fs: clamp(17px, calc(var(--cfg-card) * .09), 21px);
}
/* Card sections align across a row via CSS subgrid (owner request
   2026-08-03): a taller (wrapped) name on one card no longer knocks that
   card's sku/dims/price/colours/stepper out of alignment with its
   neighbours. Each of the 7 semantic rows below (media/name/sku/dims/
   price/colors/stepper) is pinned to its own row TRACK via `grid-row`,
   and that track is SHARED across every card in the same visual grid
   row — so the tallest name in a row stretches that row's "name" track
   for every card in it, keeping everything below flush, independent of
   whether a given card even has that row's content (sku/dims/colors are
   optional per module). .bz-configurator__item-body is `display: contents`
   so its children register directly against the item's own subgrid
   instead of being one opaque flex block the grid can't see inside. */
.bz-configurator__item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 7;
  /* Explicit 0, not just omitted: a subgrid item that doesn't set its own
     row-gap INHERITS the parent .bz-configurator__grid's `gap` (12px) for
     its internal tracks, not "no gap" — that inherited 12px would then
     apply around EVERY row track unconditionally, even ones with zero
     content anywhere in a given row (sku/dims/colors are optional per
     module — a row with no colours on any card would still get a bare
     12px spacer between price and stepper). Spacing instead lives on each
     row's own element as margin-top, which naturally disappears along
     with the element when it isn't rendered. */
  row-gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--c-bg);
}
.bz-configurator__item.is-hidden { display: none; }

/* Current module (viewing a child module's own page) — highlighted + badge. */
.bz-configurator__item.is-current { border-color: var(--c-ginger); box-shadow: inset 0 0 0 1px var(--c-ginger); }
.bz-configurator__here {
  position: absolute; top: var(--space-2); left: var(--space-2);
  background: var(--c-ginger); color: var(--c-card);
  font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill);
}
/* Parent quick-return card (first slot on a child module's page) — no
   stepper, just a link back to the whole set. Its own content (badge,
   name, back link) doesn't match the 7-row scheme above, so it opts back
   out of subgrid and lays itself out as a plain flex column instead —
   still spanning the same 7 tracks (grid-row above) so grid auto-placement
   starts the NEXT visual row of cards at the right track regardless of
   this one's own internal layout. */
.bz-configurator__item--parent {
  display: flex;
  flex-direction: column;
  background: var(--c-pillow);
  border-color: var(--c-pillow);
}
.bz-configurator__parent-tag {
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-coffee);
}
.bz-configurator__parent-back { align-self: flex-start; margin-top: auto; }

/* A real <a> now (opens the module's own page, same as its title — click on
   the image should be a shortcut to it, not just a hover-zoom target), so
   it needs its own block/no-underline reset since <a> defaults to inline. */
.bz-configurator__item-media {
  grid-row: 1;
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--c-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: var(--space-2);
  box-sizing: border-box;
  text-decoration: none;
}
.bz-configurator__item-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bz-configurator__item-media .ph-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: 12.5px;
  background: repeating-linear-gradient(45deg, var(--c-line), var(--c-line) 8px, var(--c-bg) 8px, var(--c-bg) 16px);
}
.bz-configurator__item-body { display: contents; }
.bz-configurator__name {
  grid-row: 2;
  align-self: start;
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--c-coffee);
  text-decoration: none;
}
.bz-configurator__name:hover { text-decoration: underline; }
.bz-configurator__sku { grid-row: 3; align-self: start; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--c-muted); }
/* Dimensions spread across the whole card width, black values next to
   muted axis icons (owner request 2026-09-27, modelled on dybok.com.ua's
   component cards: grey label + black value, one per third of the card).
   Each dim carries its own "см" (the partial renders one per value) so the
   three read as equal, self-contained columns. */
.bz-configurator__dims {
  grid-row: 4;
  align-self: start;
  margin-top: var(--space-2);
  padding: 6px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px var(--space-1);
  /* Fit the row to the card: measured in Manrope 700, a row needs ~2.8em
     per value (icon, gaps, «см») + 0.51-0.59em per character (digits are
     proportional — «0 2 8» are wider than «1»), so 2.85 / 0.6 is the safe
     upper bound; the partial supplies --dims-n / --dims-len per card.
     12px = the two minimum gaps + 4px slack. 11px floor (owner OK'd
     smaller dims, 2026-10-01) still fits the widest possible 15-character
     row («208.8 208.8 208.8») on the narrowest (200px) card; flex-wrap
     above stays only as a last resort. */
  font-size: clamp(11px, calc((var(--cfg-card) - 12px) / (2.85 * var(--dims-n, 3) + .6 * var(--dims-len, 8))), 17px);
  font-weight: 700;
  color: var(--c-text);
}
.bz-configurator__dim { display: flex; align-items: center; gap: .3em; white-space: nowrap; }
/* Stand-in for a missing dimension (a module with no depth): invisible but
   occupies the slot, so the other dims keep their columns. */
.bz-configurator__dim--empty { visibility: hidden; }
/* Icons scale with the dims text (em), so a smaller card shrinks both. */
.bz-configurator__dim svg { flex: none; color: var(--c-muted); }
.bz-configurator__dim svg[viewBox="0 0 26 12"] { width: 1.4em; height: .65em; }
.bz-configurator__dim svg[viewBox="0 0 12 26"] { width: .65em; height: 1.4em; }
.bz-configurator__dim svg[viewBox="0 0 20 20"] { width: 1.05em; height: 1.05em; }
.bz-configurator__dims-unit { margin-left: .12em; font-size: .76em; font-weight: 600; color: var(--c-text); }
/* Price + stepper on the card's bottom row (price left, stepper right, as
   on dybok) — .bz-configurator__buy renders only for a priced card; the
   zero-price card's .bz-configurator__open link takes row 7 instead. Row 5
   (the price's old track) is left empty and collapses (grid-auto-rows
   floors at 0). flex-wrap drops the stepper under the price on a card too
   narrow for both, instead of the two overlapping. */
.bz-configurator__buy {
  grid-row: 7;
  align-self: end;
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px var(--space-2);
}
.bz-configurator__price { font-size: var(--cfg-price-fs, 21px); white-space: nowrap; }
/* Minimal stepper (owner request 2026-09-27, after dybok): no outline, bare
   −/+ glyphs either side of a small tinted count box. Buttons keep a
   32px hit area even though they draw no chrome of their own. */
.bz-configurator__stepper {
  margin-left: auto;
  border: none;
  border-radius: 0;
  overflow: visible;
  gap: 2px;
}
.bz-configurator__stepper .bz-stepper__btn {
  width: 26px;
  height: 32px;
  background: none;
  color: var(--c-text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  border-radius: 6px;
}
.bz-configurator__stepper .bz-stepper__btn:hover { background: none; color: var(--c-ginger); }
.bz-configurator__stepper .bz-stepper__value {
  min-width: 32px;
  width: auto;
  height: 28px;
  padding: 0 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-line);
  border-radius: 6px;
  color: var(--c-coffee);
  font-size: 16px;
  font-weight: 700;
}
.bz-configurator__open { grid-row: 7; align-self: end; width: 100%; margin-top: var(--space-2); text-align: center; justify-content: center; }

/* Per-module colour swatches (design 2c desktop / 1h mobile) — a row of
   small rounded-square swatches on each "Складові елементи" card, current
   one ringed ginger, "+N" opens the shared colour-picker modal scoped to
   that module. Squares, not circles, per design feedback (2026-07-30). */
.bz-configurator__colors { grid-row: 6; align-self: start; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bz-configurator__swatch {
  width: 24px; height: 24px;
  border-radius: 5px;
  border: 1px solid var(--c-line);
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg);
  padding: 0;
  cursor: pointer;
}
.bz-configurator__swatch.is-selected { border: 2px solid var(--c-ginger); }
.bz-configurator__swatch--static { cursor: default; }
.bz-configurator__colors--static { grid-row: 6; align-self: start; margin-top: 4px; }
.bz-configurator__swatch-more {
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid var(--c-line);
  background: var(--c-card);
  color: var(--c-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 767px) {
  .bz-configurator__swatch, .bz-configurator__swatch-more { width: 22px; height: 22px; }
  .bz-configurator__swatch-more { width: auto; padding: 0 6px; }
}

/* Ginger "show all" text row, full width, its own separated strip (design 2c). */
.bz-configurator__more {
  display: block;
  width: 100%;
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  border: none;
  border-top: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ginger);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}
.bz-configurator__more:hover { color: var(--c-coffee); }

/* Dark coffee summary bar along the card bottom (design 2c). */
.bz-configurator__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-5) calc(-1 * var(--space-5)) calc(-1 * var(--space-5));
  padding: var(--space-4) var(--space-5);
  background: var(--c-coffee);
  flex-wrap: wrap;
}
.bz-configurator__summary-label { font-weight: 600; color: var(--c-pillow); }
.bz-configurator__summary-right { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.bz-configurator__summary-total { font-weight: 800; color: var(--c-card); }
.bz-configurator__summary-price { font-size: 20px; color: var(--c-card); }
#bzConfiguratorAddAll:disabled { opacity: .5; cursor: not-allowed; }

/* Sticky action-bar state (item 4): pinned to the viewport bottom while
   modules are selected and the real bar is scrolled out of view — set by
   productdetails.js, which also holds the vacated space with a spacer. */
.bz-configurator__summary.is-floating {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  z-index: 45;
  padding: var(--space-3) var(--space-5);
  border-radius: 0;
  box-shadow: 0 -8px 28px rgba(47, 58, 51, .28);
}
.bz-configurator__summary.is-floating.is-entering { animation: bzFooterUp .18s ease; }
@keyframes bzFooterUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 767px) {
  .bz-configurator__card { padding: var(--space-4); }
  .bz-configurator__summary {
    margin: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-4));
    padding: var(--space-3) var(--space-4);
    flex-direction: column;
    align-items: stretch;
  }
  .bz-configurator__summary.is-floating { margin: 0; padding: var(--space-3) var(--space-4); }
  .bz-configurator__summary-right { justify-content: space-between; }
  #bzConfiguratorAddAll { flex: 1; }
  .bz-product__compose { padding: 12px 0; font-size: 15px; }
}

/* ---------- Characteristics + reviews (§6.5) ---------- */

.bz-product__secondary {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: var(--space-6);
}
.bz-panel-card {
  flex: 1;
  min-width: 300px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.bz-panel-card h2 { margin-bottom: var(--space-3); }

/* Weight & packaging-volume table (design 5e/5f) — see
   BzMegaCatalog::getWeightMatrix(). One ROW per size, three narrow
   columns (2026-08-11): the earlier transposed layout put a column per
   size, which on a six-size bed overflowed the card and had to scroll
   sideways. Nothing here needs to scroll any more. */
.bz-product__weightmatrix { overflow-x: auto; }
.bz-weightmatrix { border-collapse: collapse; width: 100%; font-size: 13px; }
.bz-weightmatrix th, .bz-weightmatrix td { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--c-line); }
.bz-weightmatrix tr:first-child th { color: var(--c-muted); font-weight: 600; }
.bz-weightmatrix th[scope="row"], .bz-weightmatrix tr:first-child th:first-child { text-align: left; }
.bz-weightmatrix th[scope="row"] { color: var(--c-text); font-weight: 600; }
.bz-weightmatrix td { color: var(--c-text); font-weight: 600; }
.bz-weightmatrix tr:last-child th, .bz-weightmatrix tr:last-child td { border-bottom: none; }

.bz-specs-list { margin: 0; }
.bz-specs-list__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
}
.bz-specs-list__row:last-child { border-bottom: none; }
.bz-specs-list__row dt { color: var(--c-muted); margin: 0; }
.bz-specs-list__row dd { margin: 0; font-weight: 600; color: var(--c-text); text-align: right; }
/* «i» after a МДФ/ДСП material value (owner request 2026-11-17): opens #bzMaterialInfo, a short
   explanation with a link to the MDF-vs-chipboard article (BzMegaCatalog::materialInfoArticle()). */
.bz-spec-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: none;
  color: var(--c-muted);
  font: italic 700 11px/1 Georgia, serif;
  vertical-align: 1px;
  cursor: pointer;
}
.bz-spec-info:hover,
.bz-spec-info:focus-visible { color: var(--c-ginger); }

.bz-product__reviews .bz-product__rating { margin-bottom: var(--space-3); }

/* Reviews + questions list (item 6) */
.bz-reviews-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.bz-reviews-list:empty { display: none; }
.bz-review {
  border-bottom: 1px dashed var(--c-line);
  padding-bottom: var(--space-3);
}
.bz-review:last-child { border-bottom: none; padding-bottom: 0; }
.bz-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.bz-review__author { font-weight: 700; font-size: 15px; color: var(--c-text); }
.bz-review__stars { font-size: 13px; color: var(--c-ginger); }
.bz-review__tag { font-size: 12.5px; color: var(--c-muted); }
.bz-review__text { font-size: 15px; color: var(--c-text); margin: var(--space-1) 0 0; line-height: 1.5; }
.bz-review__meta { font-size: 12.5px; color: var(--c-muted); margin-top: var(--space-1); }
/* Waiting for moderation: shown to its author only (plg_system_bzreviews) */
.bz-review--pending { opacity: .8; }
.bz-review__pending { font-size: 12.5px; color: var(--c-ginger); margin-top: var(--space-1); }
/* The shop's public answer, indented under the review it answers */
.bz-review__reply { margin: var(--space-2) 0 0 var(--space-3); padding-left: var(--space-3); border-left: 3px solid var(--c-line); }
.bz-review__reply-head { display: flex; align-items: baseline; gap: var(--space-2); }
.bz-review__reply-who { font-weight: 700; font-size: 14px; color: var(--c-coffee); }
.bz-review__reply-head .bz-review__meta { margin-top: 0; }
.bz-review__reply .bz-review__text { margin-top: 2px; }

/* Add-review / ask-a-question form (item 6) */
.bz-review-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--c-line);
  padding-top: var(--space-4);
}
.bz-review-form__tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-1); }
.bz-review-form__tab {
  border: 1px solid var(--c-line);
  background: var(--c-card);
  color: var(--c-muted);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.bz-review-form__tab.is-active { background: var(--c-coffee); color: var(--c-card); border-color: var(--c-coffee); }
.bz-review-form__stars { display: flex; gap: 2px; }
.bz-review-form__star {
  border: none;
  background: none;
  padding: 0 2px;
  font-size: 24px;
  line-height: 1;
  color: var(--c-line);
  cursor: pointer;
}
.bz-review-form__star.is-on { color: var(--c-ginger); }
.bz-review-form.is-question .bz-review-form__stars { display: none; }
.bz-review-form__name,
.bz-review-form__text {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--c-card);
  color: var(--c-text);
}
.bz-review-form__text { resize: vertical; }
.bz-review-form__foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.bz-review-form__note { font-size: 12.5px; color: var(--c-muted); }
.bz-review-form__note.is-success { color: var(--c-leaf, #7d8f63); font-weight: 600; }

/* ---------- Related rows: "Схожі …" + "Ви нещодавно переглядали" (items 7 & 8) ---------- */
.bz-product__related {
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  border-top: 1px solid var(--c-line);
}
.bz-product__related[hidden] { display: none; }
.bz-product__related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.bz-product__related-head h2 { margin: 0; }
.bz-product__related-all {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ginger);
  text-decoration: none;
}
.bz-product__related-clear {
  border: none;
  background: none;
  color: var(--c-muted);
  font-family: var(--font-body);
  cursor: pointer;
}
.bz-card-grid { display: grid; gap: var(--space-4); }
.bz-card-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .bz-card-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .bz-card-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .bz-card-grid--5 { grid-template-columns: 1fr; } }

/* Single-row cross-sell block ("<X> комплектом", owner rule 2026-08-31):
   only the first grid row is shown until its "Показать все" button is
   pressed. Done here rather than in JS so nothing flashes at full height
   before scripts run -- one rule per .bz-card-grid--5 breakpoint above, and
   each nth-child threshold is (that breakpoint's column count + 1). Keep the
   two lists in step: productdetails.js reveals the button by asking whether
   the LAST card computed to display:none, so a mismatch here silently
   leaves cards unreachable. */
.bz-product__related--rowclamp:not(.is-expanded) .bz-card-grid--5 > *:nth-child(n+6) { display: none; }
@media (max-width: 1100px) {
  .bz-product__related--rowclamp:not(.is-expanded) .bz-card-grid--5 > *:nth-child(n+4) { display: none; }
}
@media (max-width: 700px) {
  .bz-product__related--rowclamp:not(.is-expanded) .bz-card-grid--5 > *:nth-child(n+3) { display: none; }
}
@media (max-width: 460px) {
  .bz-product__related--rowclamp:not(.is-expanded) .bz-card-grid--5 > *:nth-child(n+2) { display: none; }
}

/* Same visual language as the configurator's own show-more control. */
.bz-product__related-more {
  display: block;
  width: 100%;
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  border: none;
  border-top: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ginger);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}
.bz-product__related-more:hover { color: var(--c-coffee); }
.bz-product__related-more[hidden] { display: none; }


/* Опис товару (§6.5, mockup 2c) — renders the real VM product_desc HTML */
.bz-product__desc-wrap { padding-top: var(--space-6); }
/* 15px, one step under the 2026-09-27 bump (owner: "a bit" smaller for long copy). */
.bz-product__desc .bz-prose { font-size: 15px; line-height: 1.65; color: var(--c-text); }
.bz-prose > *:first-child { margin-top: 0; }
.bz-prose p { margin: 0 0 var(--space-3); }
.bz-prose ul, .bz-prose ol { margin: 0 0 var(--space-3) var(--space-5); }
.bz-prose li { margin-bottom: var(--space-1); }
.bz-prose h2, .bz-prose h3, .bz-prose h4 { font-family: var(--font-heading); color: var(--c-coffee); margin: var(--space-4) 0 var(--space-2); font-size: 18px; line-height: 1.3; }
.bz-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.bz-prose a { color: var(--c-ginger); }
.bz-prose table { max-width: 100%; border-collapse: collapse; }
.bz-prose td, .bz-prose th { padding: var(--space-2); border: 1px solid var(--c-line); }

/* Free-text note among the option pickers (custom_tip='note', placed by
   the field's own ordering — see BzMegaCatalog::getProductNotes()).
   Carries .bz-panel-card, so it reads as a text section like Опис
   товару / Характеристики rather than as fine print (owner, 2026-08-11);
   only the padding is tightened and the type stepped down, because this
   card lives in the narrow buy column beside the pickers rather than in
   the full-width row below. min-width is reset for the same reason —
   .bz-panel-card's 300px floor is sized for that wide row and would
   overflow a phone. */
.bz-product__option-note {
  grid-column: 1 / -1;
  min-width: 0;
  padding: var(--space-4);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
}
.bz-product__option-note h3 {
  font-family: var(--font-heading);
  color: var(--c-coffee);
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
}
.bz-product__option-note p { margin: 0; }

/* Supplier-sourced description sections (scripts/estella-import/, owner
   rule 2026-08-11: the source's own "Розміри"/"Габарити"/"Ламелі"… blocks
   belong inside the one description, structured as they are there).
   Written by the importer as <div class="bz-src-sections"> inside
   product_desc, so everything here is prose the admin can still edit by
   hand — the styling only keeps line drawings from filling the column
   and lets a wide spec table scroll instead of stretching the card. */
.bz-src-sections { margin-top: var(--space-5); }
.bz-src-sections h3 { border-top: 1px solid var(--c-line); padding-top: var(--space-4); }
.bz-src-sections h3:first-child { border-top: none; padding-top: 0; }
.bz-src-sections table { display: block; width: fit-content; max-width: 100%; overflow-x: auto; font-size: 15px; margin: 0 0 var(--space-3); }
.bz-src-sections th { text-align: left; color: var(--c-muted); font-weight: 600; }
.bz-src-sections p:has(> img:only-child) {
  display: inline-block;
  vertical-align: top;
  width: min(100%, 320px);
  margin: 0 var(--space-3) var(--space-3) 0;
}
.bz-src-sections p > img:only-child { width: 100%; }

/* Collapsible sub-section inside .bz-src-sections (e.g. a mattress's own
   construction/layer breakdown) — same native <details>/<summary>
   accordion as media/templates/site/budynok/css/articles.css's .bz-faq
   (verbatim ruleset, so the affordance reads identically wherever a
   visitor has already seen it), just re-declared here because
   articles.css is only enqueued on com_content article pages, not this
   one. An importer emits it as a normal part of the appended sections
   block: <div class="bz-faq"><details><summary>…</summary><div>…</div>
   </details></div>. */
.bz-faq { margin: var(--space-3) 0 var(--space-5); }
.bz-faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.bz-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-weight: 600;
  color: var(--c-coffee);
  font-family: var(--font-heading);
  font-size: 16px;
}
.bz-faq summary::-webkit-details-marker { display: none; }
.bz-faq summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--c-ginger); font-weight: 400;
}
.bz-faq details[open] summary::after { content: "\2013"; }
.bz-faq details > div { padding: 0 16px 16px; color: var(--c-text); font-size: 15px; line-height: 22px; }
.bz-faq details > div img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin-bottom: var(--space-3); }
.bz-faq details > div ul { margin: 0 0 0 var(--space-5); }
.bz-faq details > div li { margin-bottom: var(--space-2); }

/* Navigational linked-product pickers (MiroMark bedroom importer,
   2026-08-03) — R-type axis groups ("Кількість дверей", "Ширина",
   "Комплектація") where every option is a DIFFERENT physical product:
   options render as plain links to the sibling product, reusing the
   .bz-pill look, with the current product's own option as a non-link
   selected pill. See BzMegaCatalog::getProductLinkedGroups(). */
.bz-product__linked-groups { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-5); }
a.bz-linked-pill { text-decoration: none; display: inline-block; }
a.bz-linked-pill:hover { border-color: var(--c-ginger); color: var(--c-text); }
span.bz-linked-pill { cursor: default; }

/* Sub-grouped linked options (SENAM wardrobe widths, grouped by the door
   count that width gets, 2026-09-02): two steps rather than one long row —
   pick the door count, then see only its widths, the same shape the facade
   library uses. Nineteen pills at once is most of a screen, and all but a
   few answer a question the shopper has already answered. Visual language
   deliberately follows .bz-e1-tab so the page has one kind of tab, but the
   rules are separate: these sit in the narrow options column, not in the
   full-width facade panel. */
.bz-linked-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bz-linked-tab {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-card);
  cursor: pointer;
  text-align: left;
}
.bz-linked-tab:hover { border-color: var(--c-ginger); }
.bz-linked-tab.is-active { background: var(--c-coffee); border-color: var(--c-coffee); }
.bz-linked-tab__name { font-weight: 800; font-size: 13px; color: var(--c-text); }
.bz-linked-tab.is-active .bz-linked-tab__name { color: var(--c-card); }
.bz-linked-tab__sub { font-size: 11px; color: var(--c-muted); }
.bz-linked-tab.is-active .bz-linked-tab__sub { color: #d8cbb8; }

/* A linked pill is a plain link to another product page, and these pages are
   heavy -- without this the pill sits inert for a second or two and the click
   reads as ignored. The clicked pill keeps its label and grows a spinner; the
   rest of the block dims and stops taking clicks. */
@keyframes bzPillSpin { to { transform: rotate(360deg); } }
a.bz-linked-pill.is-loading {
  border-color: var(--c-ginger);
  padding-right: 26px;
  position: relative;
}
a.bz-linked-pill.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border: 2px solid color-mix(in srgb, var(--c-ginger) 30%, transparent);
  border-top-color: var(--c-ginger);
  border-radius: 50%;
  animation: bzPillSpin .6s linear infinite;
}
.bz-product__linked-groups.is-navigating { opacity: .55; }
.bz-product__linked-groups.is-navigating a.bz-linked-pill:not(.is-loading) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  a.bz-linked-pill.is-loading::after { animation-duration: 1.8s; }
}

/* Sub-grouped linked options (SENAM wardrobe widths grouped by door count,
   2026-09-02): a quiet caption over each run of pills. Deliberately not a
   tab strip -- every width stays visible and one click away; the caption
   only tells the shopper what changing size actually changes. */
.bz-linked-sub + .bz-linked-sub { margin-top: var(--space-3); }
.bz-linked-sub__caption {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
}

/* A linked pill is a plain link to another product page, and these pages are
   heavy -- without this the pill sits inert for a second or two and the click
   reads as ignored. The clicked pill keeps its label and grows a spinner; the
   rest of the block dims and stops taking clicks. */
@keyframes bzPillSpin { to { transform: rotate(360deg); } }
a.bz-linked-pill.is-loading {
  border-color: var(--c-ginger);
  padding-right: 26px;
  position: relative;
}
a.bz-linked-pill.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border: 2px solid color-mix(in srgb, var(--c-ginger) 30%, transparent);
  border-top-color: var(--c-ginger);
  border-radius: 50%;
  animation: bzPillSpin .6s linear infinite;
}
.bz-product__linked-groups.is-navigating { opacity: .55; }
.bz-product__linked-groups.is-navigating a.bz-linked-pill:not(.is-loading) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  a.bz-linked-pill.is-loading::after { animation-duration: 1.8s; }
}

/* Single-colour static chip (bedroom items sold in one colour, 2026-08-03)
   — informational display, not a picker: reuses the .bz-swatch look but
   never reads as clickable. */
.bz-single-swatch { margin-bottom: var(--space-4); }
.bz-swatch--static { display: inline-block; cursor: default; }
a.bz-linked-swatch { display: inline-block; }
a.bz-linked-swatch:hover { border: 2px solid var(--c-ginger); }

/* Mutually exclusive fabric collections (owner, 2026-08-12): every
   collection's palette is rendered, exactly one is shown. Kept in the DOM
   rather than re-rendered so switching back is instant and the selected
   shade of each collection survives the switch; productdetails.js also
   disables the hidden palette's cart input so one bed never reaches the
   cart with two fabrics. */
.bz-product__fabric-palette.is-inactive { display: none; }
.bz-product__option--fabric-family { margin-bottom: calc(var(--space-2) * -1); }

/* Inner-composition drawing beside the e1 configurator (Фенікс wardrobes,
   2026-09-26): the stage is row-reverse, so this last child sits LEFT of the
   scheme mini-map and the doors. Shown at the drawing's own size (~300 px),
   capped to the door miniature's height; productdetails.js swaps the image
   with the Висота/Глибина pickers. */
.bz-e1-fill { flex: none; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.bz-e1-fill__label { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .07em; color: var(--c-muted); }
.bz-e1-fill__link { display: block; line-height: 0; position: relative; }
.bz-e1-fill__link::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 1px 4px rgba(0,0,0,.25); pointer-events: none; }
.bz-e1-fill__img { display: block; width: auto; height: auto; max-height: var(--bz-e1-door-h, 242px); max-width: 260px; border: 1.5px solid #c8bfae; border-radius: 5px; background: #fff; }
@media (max-width: 767px) {
  /* Shown on mobile too (owner request 2026-09-26: it used to be hidden —
     "the drawing is in the gallery" was true but the shopper had to leave
     the configurator to see it). Small, next to the doors: the sheet's own
     `zoom: .75` (see .bz-e1-buybar__sheet .bz-e1-config above) already
     shrinks it along with everything else in the relocated card; this just
     caps it further so it reads as a companion to the doors, not a second
     hero image. */
  .bz-e1-fill__img { max-height: 110px; max-width: 120px; }
  .bz-e1-fill__label { font-size: 11px; }
}

/* What a linked axis means (e.g. the Фенікс «Серія»), above its picker. */
.bz-linked-note { font-size: 14px; line-height: 1.45; color: var(--c-muted); margin: 2px 0 10px; }
.bz-linked-note__intro { margin: 0 0 4px; }
.bz-linked-note__list { margin: 0; padding-left: 18px; }
.bz-linked-note__list li.is-current b { color: var(--c-text, inherit); }

/* Product-page type scale (owner request 2026-09-27, measured against
   dybok.com.ua's product page: 24px section titles, nothing under 12px on
   desktop). Loaded only on view=productdetails, so this lifts the product
   page without touching the shared token scale other pages use. */
:root h2 { font-size: 24px; line-height: 30px; }
:root h3 { font-size: 19px; line-height: 26px; }
@media (max-width: 767px) {
  :root h2 { font-size: 21px; line-height: 27px; }
  :root h3 { font-size: 18px; line-height: 24px; }
}
.bz-card__meta { font-size: 13px; }
.bz-card__name { font-size: 16px; }
.bz-card__price-row .bz-price { font-size: 19px; }

/* GEO one-sentence summary (2026-11-17) */
.bz-product__brief{margin:.5rem 0 .75rem;color:var(--bz-muted,#6b6b6b);font-size:.875rem;line-height:1.45}
