/* UI corrections, 25 October 2026. Scoped to the affected blocks. */
@media (min-width: 1481px) and (max-width: 1720px) {
  .home_popular_brands .brand_item:nth-child(n+13) { display: none; }
}
@media (min-width: 768px) and (max-width: 1080px) {
  .home_popular_brands .brand_item:nth-child(n+9) { display: none; }
}

/* The original popup's title, text and spacing, now below the properties. */
.product_inline_description { margin-top: 2rem; }
.product_inline_description .spec_title {
  margin: 0 0 2rem;
  font-family: var(--bh-font-display);
  font-size: var(--bh-fs-subtitle);
  font-weight: var(--bh-fw-display);
  line-height: var(--bh-lh-subtitle);
  letter-spacing: var(--bh-ls-subtitle);
  color: var(--bh-ink);
  text-align: left;
}
.product_inline_description .desc {
  font-size: var(--bh-fs-body);
  font-weight: var(--bh-fw-text);
  line-height: 1.5;
  color: var(--bh-ink-2);
  overflow-wrap: anywhere;
}
.product_inline_description .desc img { max-width: 100%; height: auto; }
@media (max-width: 767px) {
  .product_inline_description .spec_title { margin-bottom: 1rem; }
}

/* All products: use the available menu width for level-two sections. */
@media (min-width: 1081px) {
  .catalog_dropdown.open:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) {
    max-height: calc(100dvh - 19rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .wrapper {
    align-items: flex-start;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem 2.4rem;
    width: auto;
    min-width: 0;
    flex: 1 1 0%;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_2 li {
    min-width: 0;
    margin: 0;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_2 a {
    min-height: 3.6rem;
    height: 100%;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_img_block {
    display: none;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_3 {
    width: 24rem;
  }
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]):not(.show_lvl_3) .dropdown_lvl_3,
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_3:empty {
    display: none;
  }
}
@media (min-width: 1081px) and (max-width: 1480px) {
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .catalog_dropdown:has(.dropdown_lvl_1 a.active[href="/catalog/vse_tovary/"]) .dropdown_lvl_1 { width: 22rem; }
}

/* Brand and product descriptions: a gradual fade and the shared accent. */
.brand_description:not(.open) .brand_description__text::after,
.product_inline_description.is-collapsible:not(.open) .desc::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4.5rem;
  background: linear-gradient(to bottom,
    rgba(254, 254, 254, 0) 0%,
    rgba(254, 254, 254, 0.08) 20%,
    rgba(254, 254, 254, 0.3) 45%,
    rgba(254, 254, 254, 0.65) 70%,
    rgba(254, 254, 254, 0.92) 90%,
    #FEFEFE 100%);
  pointer-events: none;
}
.brand_description__toggle.btn.gray:not(.disable):hover,
.brand_description__toggle.btn.gray:focus-visible {
  background: var(--bh-accent);
  color: var(--bh-on-accent);
}
.product_inline_description.is-collapsible:not(.open) .desc {
  position: relative;
  max-height: var(--bh-description-height);
  overflow: hidden;
}
.product_inline_description .desc > :first-child { margin-top: 0; }
.product_inline_description .desc > :last-child { margin-bottom: 0; }
.product_inline_description .brand_description__toggle[hidden] { display: none; }
