/* =============================================================================
   catalog.css (catalog area): product card, shop / category / sub-category
   listings, product search results, filters, sort, pagination, ranges,
   mobile bottom sheets. Spec: docs/reference/03-catalog.md.
   Loaded on catalogue pages and wherever product cards render (home,
   product, wishlist). The card section comes first and stands alone.
   ============================================================================= */

/* ============================================================================
   1. PRODUCT CARD (03 §10)
   ============================================================================ */
.product-item {
  position: relative;
  width: 100%;
  color: var(--c-ink);
}

/* Square image, 16px below. No hover zoom, no overlay. */
.product-item__img {
  position: relative;
  display: block;
  padding-bottom: 100%;
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: var(--c-surface-150);
}
.product-item__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges: sale circle (64px, rotated) and NEW label. */
.product-item__sale {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: var(--z-raised);
  pointer-events: none;
}
.product-item__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-raised);
  padding: 8px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  pointer-events: none;
}

/* "Code" + SKU */
.card-article { margin-bottom: 0; }
.product-info__label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-12);
  font-weight: var(--fw-regular);
  line-height: 1;
  opacity: .3;
}
.card-article__value {
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Name (2-line clamp) + availability on the right */
.product-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.product-item__title { font: inherit; letter-spacing: inherit; margin: 0; }
.product-item__name {
  display: -webkit-box;
  max-width: 10.22em;
  overflow: hidden;
  font-size: var(--fs-16);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-none);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-item__name:focus-visible { outline-offset: 3px; }
.product-item__quantity {
  flex-shrink: 0;
  text-align: right;
  color: var(--c-stock);
}
.product-item__quantity-list {
  display: flex;
  justify-content: flex-end;
  margin-left: -2px;
}
.product-item__quantity-list li {
  width: var(--stock-dot);
  min-width: var(--stock-dot);
  height: var(--stock-dot);
  margin-left: 2px;
  border-radius: var(--r-round);
  background: currentColor;
}
.product-item__quantity-text {
  display: block;
  font-size: var(--fs-12);
  line-height: var(--lh-body);
  white-space: nowrap;
}
.product-item__quantity.is-out,
.product-item__quantity.is-order { color: var(--c-ink-40); padding-top: 0; }

/* Price row: 18/700 figure + 12/500 unit; (i) on the right */
.product-item__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 18px;
}
.product-item__price {
  padding-right: 28px;
  font-size: var(--fs-price);
  font-weight: var(--fw-bold);
  line-height: 1;
  white-space: nowrap;
}
.product-item__price .amount,
.product-item__price bdi { font-weight: var(--fw-bold); }
.product-item__price .price__unit {
  margin-left: 2px;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}
.product-item__price .price__from {
  margin-right: 1px;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}
.product-item__price ins { text-decoration: none; color: var(--c-red); }
.product-item__price del {
  position: relative;
  display: inline-block;
  margin-right: 4px;
  font-size: var(--fs-12);
  font-weight: var(--fw-regular);
  text-decoration: none;
  opacity: .4;
}
.product-item__price del::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--c-ink);
  transform: rotate(-10deg);
}
.product-item__price del .amount, .product-item__price del bdi { font-weight: var(--fw-regular); }
.product-item__price .screen-reader-text { position: absolute !important; }
.product-item__price-request { font-size: var(--fs-price); font-weight: var(--fw-bold); }

/* Info button + hover panel (container spans the card so the panel can too) */
.product-item__info-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 20px;
  pointer-events: none;
}
.product-item__info-btn {
  position: absolute;
  top: -1px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  opacity: .2;
  pointer-events: auto;
  transition: opacity var(--dur-1) var(--ease);
}
.product-item__info-btn .icon { width: 20px; height: 20px; }
.product-item__info-btn:focus-visible { opacity: 1; outline-offset: 2px; border-radius: var(--r-round); }

.product-item__info-content {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: var(--z-float);
  width: 100%;
  padding-top: var(--space-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-16px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
@media (min-width: 768px) {
  @media (hover: hover) {
    .product-item:hover .product-item__info-content {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(0);
      transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s;
    }
  }
  .product-item.is-info-open .product-item__info-content,
  .product-item:has(.product-item__info-btn:focus-visible) .product-item__info-content,
  .product-item__info-content:focus-within {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s;
  }
  .product-item:hover, .product-item.is-info-open, .product-item:focus-within { z-index: var(--z-float); }
}

.product-info {
  position: relative;
  width: 100%;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: var(--cat-active);
  color: var(--c-ink);
}
.product-info::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 100%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent var(--cat-active);
}
.product-info__text {
  margin: 0 0 var(--space-12);
  padding-right: 56px;
}
.product-info:not(:has(.product-info__buttons)) .product-info__text { padding-right: 0; }
.product-info__text--empty { min-height: 40px; margin-bottom: var(--space-6); }
.product-info__buttons { z-index: 1; }
.product-info__text .product-info__label { margin: 0 0 4px; }
.product-info__text .product-info__label ~ .product-info__label { margin-top: var(--space-4); }
.product-info__value {
  margin: 0;
  font-size: var(--fs-16);
  line-height: var(--lh-snug);
  overflow-wrap: anywhere;
}
.product-info__buttons {
  position: absolute;
  top: var(--space-6);
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Wishlist heart (plugin markup: button.wishlist-btn) inside the panel: 40px circle */
.product-info .wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-ink-10);
  border-radius: var(--r-round);
  color: var(--c-ink);
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.product-info .wishlist-btn svg { width: 16px; height: 16px; }
.product-info .wishlist-btn:hover { border-color: var(--c-ink); }
.product-info .wishlist-btn[aria-pressed="true"], .product-info .wishlist-btn.is-active { border-color: var(--c-ink); }
.product-info .wishlist-btn[aria-pressed="true"] svg, .product-info .wishlist-btn.is-active svg { fill: currentColor; }

.product-info__btn { width: 100%; }
.product-info__btn.loading { pointer-events: none; }
.product-info__btn.loading .btn__text { opacity: .5; }
.product-info a.added_to_cart.wc-forward { display: none; }  /* beats base.css .wc-forward (0,2,1) */

/* Sale card */
.product-item--sale .product-item__price,
.product-item--sale .product-item__price .price__unit { color: var(--c-red); }
.product-item--sale .product-item__price del { color: var(--c-ink); }
.product-item--sale .product-item__quantity-list li { background: var(--c-red); }
.product-item--sale .product-item__quantity-text { color: var(--c-sale); }

/* ≤767: availability above the name (dots only), smaller price, no hover panel (bottom sheet instead) */
@media (max-width: 767px) {
  .product-item__head {
    flex-direction: column-reverse;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: var(--space-3);
  }
  .product-item__quantity { min-height: 15px; margin-bottom: 4px; text-align: left; }
  .product-item__quantity-list { justify-content: flex-start; margin: 3px 0 0; }
  .product-item__quantity-list li { margin: 0 2px 0 0; }
  .product-item__quantity-text { display: none; }
  .product-item--sale .product-item__quantity-text,
  .product-item__quantity.is-out .product-item__quantity-text,
  .product-item__quantity.is-order .product-item__quantity-text { display: block; line-height: 15px; }
  .product-item--sale .product-item__quantity { display: flex; align-items: center; gap: 6px; }
  .product-item--sale .product-item__quantity-list { margin: 0; }
  .product-item__info-content { display: none; }
  .product-item__sale { top: var(--space-2); left: var(--space-2); }
  .product-item__badge { padding: 8px 12px; font-size: var(--fs-10); }
  .product-item__row { min-height: 16px; }
  .product-item__name { max-width: none; }
}

/* ============================================================================
   2. PAGE SHELL AND GRID (03 §3, §9)
   ============================================================================ */
.catalog-main { padding-bottom: 0; }
.catalog-container {
  display: flex;
  align-items: flex-start;
  padding: 32px 0 var(--space-30);
}
.catalog-content {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: calc(100% - 224px);
}

.catalog-product-list {
  display: flex;
  flex-wrap: wrap;
  margin: -48px 0 104px -24px;
}
.catalog-product-list > li {
  width: calc(20% - 24px);
  margin: 48px 0 0 24px;
}
@media (min-width: 2300px) { .catalog-product-list > li { width: calc(16.6666% - 24px); } }
@media (max-width: 1900px) { .catalog-product-list > li { width: calc(25% - 24px); } }
@media (max-width: 1200px) { .catalog-product-list > li { width: calc(33.333% - 24px); } }

/* Loading: list collapses to 200px with a 64px ring spinner (03 §7.5) */
.catalog-product-list.js-loading {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.catalog-product-list.js-loading > * { display: none; }
.catalog-product-list.js-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 10px solid var(--c-surface-300);
  border-top-color: transparent;
  border-radius: var(--r-round);
  animation: adt-spin360 1s linear infinite;
}
@keyframes adt-spin360 { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .catalog-product-list.js-loading::after { animation-duration: 2s !important; animation-iteration-count: infinite !important; }
}
/* Appended page fades in */
.catalog-product-list > li.is-appended { animation: adt-catalog-fade var(--dur-2) var(--ease) both; }
@keyframes adt-catalog-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================================
   3. HEADER: title with accent underline (03 §5)
   ============================================================================ */
.catalog-header { padding-bottom: var(--space-10); }
.catalog-title {
  display: inline-block;
  max-width: 100%;
  font-size: var(--fs-catalog-title);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-ink);
  overflow-wrap: anywhere;
}
.catalog-title [data-observe="title-line"]::after { width: 4em; max-width: 100%; }
.catalog-filters__switcher--header { display: none; }

/* ============================================================================
   4. SIDEBAR / FILTERS (03 §6)
   ============================================================================ */
.catalog-aside {
  position: sticky;
  top: 0;
  z-index: var(--z-raised);
  flex-shrink: 0;
  width: 224px;
  min-width: 224px;
}
@media (min-width: 1401px) {
  .catalog-aside { width: var(--aside-w); min-width: var(--aside-w); }
}
.catalog-aside__overlay, .catalog-aside__handle, .catalog-filters__apply-wrap { display: none; }
.catalog-filters {
  height: 100vh;
  max-width: 224px;
  padding: 0 24px 48px 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: opacity var(--dur-2) var(--ease) .6s;
}
.catalog-filters::-webkit-scrollbar { display: none; }
body.menu-active .catalog-filters { opacity: 0; pointer-events: none; transition-delay: 0s; }

/* Products | Ranges switcher */
.catalog-filters__switcher { padding-top: 8px; margin-bottom: 47px; }
.catalog-filters__switcher .switcher { display: flex; width: 100%; white-space: nowrap; }
.catalog-filters__switcher .switcher__item { flex: 1 1 auto; padding: 0 12px; text-align: center; }
.is-pale .switcher { box-shadow: inset 0 0 0 1px var(--c-ink-08); }

/* Sibling / top-level category links (03 §6.8) */
.catalog-filters__categories { margin-bottom: 32px; line-height: 1; }
.catalog-filters__categories li { border-top: 1px solid var(--c-line-black-10); }
.catalog-filters__categories li:last-child { border-bottom: 1px solid var(--c-line-black-10); }
.catalog-filters__cat {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--fs-16);
  transition: opacity var(--dur-1) var(--ease);
}
.catalog-filters__cat:hover { opacity: var(--hover-dim); }
.catalog-filters__cat[aria-current] { font-weight: var(--fw-medium); }
.catalog-filters__cat-count { margin-left: 4px; font-size: var(--fs-14); opacity: .4; }
.catalog-filters__cat .icon { width: 24px; height: 24px; margin-left: auto; }

/* Toggle switches */
.catalog-filters__switch-list { margin-bottom: 48px; }
.catalog-filters__switch-list li { margin-bottom: 8px; }
.catalog-filters__switch-list li:last-child { margin-bottom: 0; }
.catalog-filters .checkbox--switch { display: flex; width: 100%; min-height: 24px; line-height: 1; }
.catalog-filters .checkbox--switch .checkbox__text { font-size: var(--fs-16); line-height: 1; letter-spacing: var(--ls-chip); }
.catalog-filters .checkbox__input:disabled + .checkbox__box::after { opacity: .2; }
.catalog-filters .checkbox__input:disabled ~ .checkbox__text { opacity: .2; }
.catalog-filters .checkbox:has(.checkbox__input:disabled) { cursor: default; }
.is-pale .catalog-filters .checkbox--switch .checkbox__box { box-shadow: inset 0 0 0 1px var(--c-ink-08); }

/* Accordions: Price, Colour, attributes (single-open group except Colour) */
.catalog-filters__accordion { margin-top: 25px; }
.filter-acc { display: flex; flex-direction: column; margin-bottom: 24px; }
.filter-acc:last-child { margin-bottom: 0; }
.filter-acc__btn {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 0;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-align: left;
  color: var(--c-ink);
}
.filter-acc__btn span { margin-right: 8px; }
.filter-acc__count { margin-left: 2px; opacity: .4; }
.filter-acc__btn .icon { width: 9px; height: 6px; transition: transform var(--dur-1) var(--ease); }
.filter-acc.is-open > .filter-acc__btn .icon { transform: rotate(-180deg); }
.filter-acc__content {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
}
.filter-acc.is-open > .filter-acc__content {
  max-height: var(--acc-max-height, 2000px);
  visibility: visible;
  transition-delay: 0s;
}
.filter-acc__inner { padding: 24px 0; }

/* Price From – To */
.catalog-filters__price { display: flex; align-items: center; }
.catalog-filters__price .input { flex: 1 1 0; max-width: 112px; }
.catalog-filters__price .input__field {
  padding: 0 0 16px;
  font-size: var(--fs-input);
  line-height: 1.2;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.catalog-filters__price .input__field::placeholder { color: var(--c-placeholder); }
.catalog-filters__price .input__field::-webkit-outer-spin-button,
.catalog-filters__price .input__field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.catalog-filters__price-line {
  flex: 0 0 8px;
  width: 8px;
  height: 1px;
  margin: 0 8px;
  background: var(--c-ink);
}

/* Checkbox lists */
.catalog-filters__list-search { margin-bottom: 24px; }
.catalog-filters__list-search .input__field {
  height: 32px;
  padding: 8px;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.catalog-filters__list-search .input__field::placeholder { color: var(--c-placeholder); }
.catalog-filters__list-container { max-height: 320px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--c-surface-hover) transparent; }
.catalog-filters__list-container::-webkit-scrollbar { width: 4px; }
.catalog-filters__list-container::-webkit-scrollbar-thumb { background: var(--c-surface-hover); border-radius: var(--r-sm); }
.catalog-filters__list li { margin-bottom: 16px; }
.catalog-filters__list li:last-child { margin-bottom: 0; }
.catalog-filters__list li[hidden] { display: none; }
.catalog-filters .checkbox--outlined { display: flex; min-height: 20px; }
.catalog-filters .checkbox--outlined .checkbox__text { font-size: var(--fs-14); line-height: 1; letter-spacing: var(--ls-chip); }
.catalog-filters .checkbox--outlined .checkbox__input:checked + .checkbox__box { border-color: var(--c-line-checkbox); }
.catalog-filters .checkbox__num { font-size: var(--fs-12); }

/* Colour swatches */
.colors-list { display: flex; flex-wrap: wrap; margin: -8px 0 0 -4px; }
.colors-list li { margin: 8px 0 0 4px; }
.color-circle { position: relative; display: block; width: 24px; height: 24px; cursor: pointer; }
.color-circle__field { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.color-circle__swatch {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: var(--r-round);
  background: var(--color, var(--c-surface-300));
  box-shadow: inset 0 0 0 1px var(--c-ink-08);
}
.color-circle__inner {
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-white);
  border-radius: var(--r-round);
  opacity: 0;
  transform: scale(1);
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  pointer-events: none;
}
.color-circle__field:checked ~ .color-circle__inner { opacity: 1; transform: scale(.75); }
.color-circle__field:focus-visible ~ .color-circle__swatch { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.color-circle__field:disabled ~ .color-circle__swatch { opacity: .2; }
.color-circle__field:disabled { cursor: default; }
.color-circle__text {
  position: absolute;
  top: 100%;
  left: calc(100% - 8px);
  z-index: var(--z-float);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-1) var(--ease);
}
.color-circle:hover .color-circle__text, .color-circle__field:focus-visible ~ .color-circle__text { opacity: 1; }

/* No-JS submit */
html.js .catalog-filters__submit { display: none; }
.catalog-filters__submit { margin-top: 32px; }

/* ============================================================================
   5. ACTIVE CHIPS + RESULTS BAR + SORT (03 §7.3, §8)
   ============================================================================ */
.catalog-chips:empty { display: none; }
.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  margin: -8px 0 16px -8px;
  max-width: calc(100% - 200px);
}
.catalog-active-filters li { margin: 8px 0 0 8px; animation: adt-catalog-fade .8s var(--ease) both; }
.catalog-chips .chipbtn {
  height: var(--chip-h-sm);
  padding: 0 50px 0 var(--chip-px);
  border: 1px solid var(--c-beige);
  border-radius: var(--r-md);
  font-size: var(--fs-14);
  line-height: var(--chip-h-sm);
  letter-spacing: var(--ls-chip);
  color: var(--c-ink);
  white-space: pre;
  transition: opacity var(--dur-1) var(--ease);
}
.catalog-chips .chipbtn--value { border-color: transparent; background: var(--cat-active); }
.catalog-chips .chipbtn--reset { padding-right: var(--chip-px); }
.catalog-chips .chipbtn:hover { opacity: .7; }

.catalog-content__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 56px;
}
.catalog-collections {
  display: flex;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.catalog-btn-filter { display: none; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}
.filter-btn .icon { width: 9px; height: 6px; margin-left: 8px; }
.filter-btn__count {
  display: none;
  margin-left: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--cat-active);
  font-size: var(--fs-12);
}
.filter-btn.has-count .filter-btn__count { display: block; }
.filter-btn.has-count .icon { display: none; }

/* Sort: text trigger + overlay dropdown (Slim Select overlay variant, 03 §8.2) */
.catalog-sort { position: relative; margin-left: auto; }
.sort-select__native { display: flex; align-items: center; gap: 8px; }
html.js .sort-select__native { display: none; }
.sort-select__ui { display: none; }
html.js .sort-select__ui { display: block; }
.sort-select__trigger {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-ink);
}
.sort-select__trigger .icon { width: 9px; height: 6px; margin-left: 8px; transition: transform var(--dur-1) var(--ease); }
.sort-select.is-open .sort-select__trigger .icon { transform: rotate(180deg); }
.sort-select__dim {
  position: fixed;
  inset: 0;
  z-index: var(--z-dropdown-overlay);
  background: var(--overlay-select);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
}
.sort-select.is-open .sort-select__dim { opacity: 1; visibility: visible; transition-delay: 0s; }
.sort-select__list {
  position: absolute;
  top: -11px;
  right: 0;
  z-index: var(--z-dropdown);
  width: 200px;
  max-height: 232px;
  padding: 16px 0;
  overflow-y: auto;
  background: var(--c-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  transition: opacity var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
}
.sort-select.is-open .sort-select__list { opacity: 1; visibility: visible; transition-delay: 0s; }
.sort-select__option {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 24px;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  cursor: pointer;
  outline: 0;
}
.sort-select__option[aria-selected="true"] { display: none; }
.sort-select__option:hover, .sort-select__option.is-highlighted { background: var(--c-option-hover); }

/* ============================================================================
   6. EMPTY STATE (03 §7.6)
   ============================================================================ */
.catalog-empty { padding: 48px 0 104px; }
.catalog-empty__title {
  font-size: var(--fs-h5);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}
.catalog-empty__text { margin: 16px 0 32px; max-width: 32em; font-size: var(--fs-16); line-height: var(--lh-body); color: var(--c-text-muted); }
.catalog-empty__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================================
   7. PAGINATION: Show more + numbered pages (03 §11)
   ============================================================================ */
.catalog-product-pagen { width: 100%; }
.catalog-footer {
  display: flex;
  align-items: center;
  padding-left: calc(17.89948vw + 24px);
}
.catalog-footer .js-pagination-more { flex: 1 1 auto; width: auto; max-width: none; font-size: var(--fs-btn-outlined); }
.catalog-footer .js-pagination-more .btn__text { display: inline-flex; align-items: center; }
.catalog-footer .js-pagination-more .icon {
  display: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  animation: adt-spin360 2s linear infinite;
}
.catalog-footer .js-pagination-more.is-loading .icon { display: block; }
.catalog-footer .js-pagination-more.is-loading .btn__text { opacity: 1; }
.catalog-product-pagen .pagen { display: flex; margin-left: auto; padding-left: 8px; gap: 0; }
.catalog-product-pagen .pagen li { margin-left: 8px; }
.catalog-product-pagen .pagen__item { color: var(--c-ink); }
.catalog-product-pagen .pagen__item .icon { width: 8px; height: 9px; }
.catalog-product-pagen .pagen__item--prev .icon { transform: rotate(180deg); }
@media (min-width: 1901px) { .catalog-footer { padding-left: calc(2 * var(--column-unit) + 2 * var(--gutter-unit)); } }
@media (max-width: 1400px) { .catalog-footer { padding-left: calc(17.22462vw + 24px); } }
@media (max-width: 1200px) {
  .catalog-footer { padding-left: 0; }
  .catalog-footer .js-pagination-more { flex: 0 0 200px; }
}

/* ============================================================================
   8. RANGES TAB + RANGE CARD (03 §13)
   ============================================================================ */
.collection-item {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--c-ink);
}
.collection-item__slider { position: relative; padding-bottom: 100%; background: var(--c-surface-150); }
.collection-item__slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-item__head {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 40%;
  padding: 0 22px;
  background: var(--cat-main);
  transition: transform var(--dur-2) var(--ease-expo);
}
.collection-item__title { font-size: var(--fs-14); line-height: 1; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.collection-item__title span { display: block; margin-bottom: 3px; font-weight: 300; }
.collection-item__title b { display: block; font-weight: var(--fw-bold); line-height: 1.15; }
.collection-item .label--new {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 4px 18px;
  background: var(--c-ink);
  color: var(--c-white);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  transition: transform var(--dur-2) var(--ease-expo);
}
.collection-item__stock {
  position: absolute;
  bottom: 17px;
  left: 23px;
  z-index: var(--z-float);
  padding: 6px 14px;
  border-radius: 5px;
  background: var(--cat-main);
  font-size: 11px;
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  transition: transform var(--dur-2) var(--ease-expo) .07s;
}
.collection-item__count {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-float);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: 0 0 8px var(--c-ink-40);
  transition: transform var(--dur-2) var(--ease-expo) .07s;
}
@media (hover: hover) {
  .collection-item:hover .collection-item__head,
  .collection-item:hover .label--new { transform: translateY(-100%); }
  .collection-item:hover .label--new { transform: translateY(-200%); }
  .collection-item:hover .collection-item__stock,
  .collection-item:hover .collection-item__count { transform: translateY(50px); }
}
.collection-item:focus-visible { outline-offset: 3px; }

/* ============================================================================
   9. SUB-CATEGORY ("collection") PAGE (03 §14)
   ============================================================================ */
.collection__head-photo {
  position: relative;
  height: calc(21.2766vw + 173.617px);
  overflow: hidden;
  background: var(--cat-main);
}
@media (min-width: 1440px) { .collection__head-photo { height: 480px; } }
.collection__head-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection__head-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(var(--c-ink-30), transparent);
  pointer-events: none;
}
.collection__head-photo .container { position: relative; z-index: var(--z-raised); }
.collection__head-photo .crumbs { padding-top: 32px; }
.collection .catalog-container { padding-top: 80px; }
.collection .catalog-content { padding-top: 4px; }
.collection-description { margin-bottom: 48px; }
.collection__title {
  display: block;
  margin-bottom: 40px;
  font-size: calc(.6383vw + 26.809px);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
}
@media (min-width: 1440px) { .collection__title { font-size: 36px; } }
.collection__title [data-observe="title-line"]::after { width: 4em; max-width: 100%; background: var(--cat-main); }
.collection__title.is-pale [data-observe="title-line"]::after, .is-pale .collection__title [data-observe="title-line"]::after { background: var(--cat-active); }
.text-more { width: 60%; max-width: 800px; margin-bottom: 30px; font-size: var(--fs-16); line-height: var(--lh-body); }
.text-more__inner p + p { margin-top: 1em; }
.text-more__btn { display: none; margin-top: 10px; font-weight: var(--fw-medium); }

/* ============================================================================
   10. INFO BOTTOM SHEET (≤767 tap on (i), 03 §12.4) and shared sheet shell
   ============================================================================ */
.sheet { position: fixed; inset: 0; z-index: var(--z-modal); }
.sheet .modal__overlay { background: var(--overlay-modal); }
.sheet__container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: var(--c-white);
  transform: translateY(100%);
  transition: transform .3s ease-in;
}
.sheet.modal--active .sheet__container { transform: none; transition-timing-function: var(--ease-out); }
.sheet__handle, .catalog-aside__handle {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 28px;
  transform: translateX(-50%);
  touch-action: none;
  cursor: grab;
}
.sheet__handle::before, .catalog-aside__handle::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 32px;
  width: 32px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--c-ink-40);
}
.sheet--info .sheet__body {
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cat-active);
}
.sheet--info .product-info { padding: 48px 40px 40px; background: transparent; }
.sheet--info .product-info::before { display: none; }
.sheet--info .product-info__text { margin-bottom: 40px; padding-right: 64px; }
.sheet--info .product-info__buttons { top: 48px; right: 40px; }
.sheet--info .product-info .wishlist-btn { width: 48px; height: 48px; }
.sheet--info .product-info__btn { --btn-h: var(--btn-h); height: 56px; line-height: 56px; border-radius: var(--r-md); }
.sheet--info .product-info__btn .btn__bg, .sheet--info .product-info__btn::before { border-radius: var(--r-md); }
.sheet--info .sheet__title { margin-bottom: 24px; font-size: var(--fs-16); line-height: var(--lh-snug); }
.sheet--info .sheet__title small { display: block; margin-bottom: 4px; font-size: var(--fs-12); line-height: 1; opacity: .3; }
@media (min-width: 768px) { .sheet--info { display: none; } }
@media (max-width: 500px) {
  .sheet--info .product-info { padding: 48px 24px 32px; }
  .sheet--info .product-info__buttons { right: 24px; }
}

/* ============================================================================
   11. RESPONSIVE (03 §3.3, §12)
   ============================================================================ */
@media (max-width: 990px) {
  .catalog-container { padding-bottom: 64px; }
  .catalog-content { max-width: none; }
  .catalog-header { padding-bottom: 0; }
  .catalog-title { padding-bottom: 8px; margin-bottom: 32px; }
  .catalog-btn-filter { display: block; }
  .catalog-content__head { padding-bottom: 0; margin-bottom: 24px; }
  .catalog-collections { width: 100%; margin-bottom: 40px; }
  .catalog-product-list { margin: -40px 0 40px -16px; }
  .catalog-product-list > li { width: calc(33.333% - 16px); margin: 40px 0 0 16px; }
  .catalog-product-pagen .pagen { display: none; }
  .catalog-footer .js-pagination-more { flex: 1 1 100%; width: 100%; }
  .catalog-active-filters { max-width: none; }

  /* The sidebar becomes a bottom sheet (one form for every width). */
  .catalog-aside {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    width: auto;
    min-width: 0;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear var(--dur-2);
  }
  .catalog-aside.modal--active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .catalog-aside__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--overlay-modal);
    opacity: 0;
    cursor: pointer;
    transition: opacity var(--dur-2) var(--ease-expo);
  }
  .catalog-aside.modal--active .catalog-aside__overlay { opacity: 1; }
  .catalog-aside__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: var(--c-white);
    transform: translateY(100%);
    transition: transform .3s ease-in;
  }
  .catalog-aside.modal--active .catalog-aside__sheet { transform: none; transition-timing-function: var(--ease-out); }
  .catalog-aside__handle { display: block; }
  .catalog-filters {
    height: auto;
    max-height: 80vh;
    max-height: 80dvh;
    max-width: none;
    padding: 48px 24px 64px;
    transition: none;
  }
  .catalog-filters__switcher { padding-top: 0; margin-bottom: 24px; }
  .catalog-filters__switcher .switcher__item { height: 24px; line-height: 24px; }
  .catalog-filters__accordion { margin-top: 0; }
  .filter-acc { margin-bottom: 0; border-top: 1px solid var(--c-line-footer); }
  .filter-acc:last-child { border-bottom: 1px solid var(--c-line-footer); }
  .filter-acc__btn { position: relative; display: flex; padding: 22px 16px 22px 0; }
  .filter-acc__btn .icon { position: absolute; top: 50%; right: 16px; margin-top: -3px; }
  .filter-acc__inner { padding: 2px 0 40px; }
  .catalog-filters__price .input { max-width: none; }
  .colors-list li { margin-left: 4px; }
  .colors-list--first { padding-top: 16px; }
  .catalog-filters__apply-wrap { display: flex; justify-content: center; }
  .catalog-filters__apply { margin: 25px auto 0; width: 224px; }
  .text-more { width: 100%; margin-bottom: 20px; }
  .collection .catalog-container { padding-top: 40px; }
  .collection__title { margin-bottom: 20px; }
}
@media (min-width: 991px) {
  .catalog-aside__sheet { transform: none !important; }
}
@media (max-width: 767px) {
  .catalog-container { padding-top: 16px; }
}
@media (max-width: 500px) {
  .catalog-product-list > li { width: calc(50% - 16px); }
  .catalog-filters__switcher--header { display: block; margin-bottom: 24px; }
  .catalog-filters__switcher--header .switcher { display: flex; width: 100%; }
  .catalog-filters__switcher--header .switcher__item { flex: 1 1 50%; height: 24px; line-height: 24px; text-align: center; }
  .catalog-content .catalog-chips { display: none; }
  .collection__title { font-size: 30px; }
  .collection__head-photo { height: 280px; }
  .text-more.is-clamped .text-more__inner { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
  .text-more.is-clamped .text-more__btn { display: block; }
  .text-more.active .text-more__inner { display: block; -webkit-line-clamp: unset; }
  .collection-item__slider { padding-bottom: 230px; }
  .collection-item__head { flex-direction: row; justify-content: space-between; align-items: center; height: auto; min-height: 40%; padding: 12px 16px; }
  .collection-item .label--new { position: static; order: 2; }
  .collection-item__title { font-size: var(--fs-12); }
}
@media (prefers-reduced-motion: reduce) {
  .product-item__info-content { transform: none !important; }
  .collection-item__head, .collection-item__stock, .collection-item__count { transition: none; }
}
