/* Индекс /help/ */



/* Feedback while the category filter or catalog results are loading. */
.category__body .products__grid,
.category__body .fleksi-section-collections,
.category__body .products__more,
.category__body .category__pagination { transition: opacity .18s ease; }
.category__body.is-catalog-loading .products__grid,
.category__body.is-catalog-loading .fleksi-section-collections,
.category__body.is-catalog-loading .products__more,
.category__body.is-catalog-loading .category__pagination { opacity: .3; pointer-events: none; }
.fleksi-catalog-loading { position: sticky; top: 110px; z-index: 10; height: 0; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
.fleksi-catalog-loading__badge { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; background: #fff; color: #252525; box-shadow: 0 3px 18px rgba(0,0,0,.16); font-size: 14px; font-weight: 600; white-space: nowrap; }
.fleksi-catalog-loading__spinner { display: block; width: 20px; height: 20px; border: 3px solid #f5d0cd; border-top-color: #e43d30; border-radius: 50%; animation: fleksi-catalog-spin .8s linear infinite; }
@keyframes fleksi-catalog-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .category__body .products__grid, .category__body .fleksi-section-collections, .category__body .products__more, .category__body .category__pagination { transition: none; }
  .fleksi-catalog-loading__spinner { animation: none; }
}

/* Keep the brand logo visible in the compact product buybox. */
.buybox__inner--compact .buybox__brand { display: inline-flex; }

/* Product interiors: preserve the large image height with two photos. */
@media (min-width: 993px) {
  .interiors__grid:has(> .interiors__item:nth-child(2):last-child) {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  /* Repeat the large-left, two-small-right pattern for every group of three. */
  .interiors__grid:not(.interiors__grid--single) > .interiors__item:nth-child(3n+1) {
    grid-column: 1;
    grid-row: span 2;
    aspect-ratio: auto;
  }
  /* An incomplete group of two has a large image and one upper small image. */
  .interiors__grid:not(.interiors__grid--single) > .interiors__item:nth-child(3n+1):last-child {
    grid-row: auto;
    aspect-ratio: 1.42437 / 1;
  }
  .interiors__grid:has(> .interiors__item:nth-child(3n+5):last-child)::after {
    content: "";
    grid-column: 2;
    aspect-ratio: 1.42437 / 1;
    visibility: hidden;
    pointer-events: none;
  }
}
/* In the single-column tablet layout, each interior keeps its aspect ratio. */
@media (min-width: 751px) and (max-width: 992px) {
  .interiors__grid:not(.interiors__grid--single) .interiors__item--lg {
    grid-area: auto;
    aspect-ratio: 1.42437 / 1;
  }
}

/* Cart recommendations: keep the tile in the tablet grid and avoid horizontal scrolling. */
@media (min-width: 768px) and (max-width: 1200px) {
  .cart-item > .cart-extras--desktop { grid-column: 1 / -1; }
}
#cart-extras-dialog .cart-extras-dialog__body { min-width: 0; overflow-x: hidden; }
#cart-extras-dialog .products__grid { margin: 0; min-width: 0; }
#cart-extras-dialog .products__grid > .product { margin: 0; overflow-wrap: anywhere; }

/* The previous arrow appears independently at the left edge of Buy Together. */
#bought .prod-carousel__slider [data-carousel-prev] {
  left: 16px; right: auto; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-50%) translateX(-10px);
}
#bought .prod-carousel__slider [data-carousel-prev] svg { transform: rotate(180deg); }
#bought .prod-carousel__slider.is-scrollable.is-peek-left [data-carousel-prev]:not(.swiper-button-disabled),
#bought .prod-carousel__slider.is-scrollable [data-carousel-prev]:focus-visible:not(.swiper-button-disabled) {
  opacity: .7; visibility: visible; pointer-events: auto; transform: translateY(-50%);
}