/*
 * Bellstore catalog v1
 * Append-only adaptive catalog design for the locked production bundle.
 */

.page-catalog {
  --catalog-surface: rgba(255, 255, 255, 0.86);
  --catalog-border: rgba(15, 23, 42, 0.075);
  --catalog-text-soft: rgba(60, 60, 67, 0.68);
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.page-catalog .page-title {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

/* Category navigation */
.page-catalog .category-pills-scroll {
  position: relative;
  margin-inline: -2px;
  padding: 3px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.page-catalog .category-pills-scroll::-webkit-scrollbar,
.page-catalog .catalog-subcategory-chips::-webkit-scrollbar {
  display: none;
}

.page-catalog .category-pills-track {
  width: max-content;
  min-width: 100%;
  gap: 8px;
}

.page-catalog .category-pill {
  min-height: 44px;
  padding: 10px 17px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 1px solid color-mix(in srgb, var(--cat-theme-from, #64748b) 14%, transparent);
  background: color-mix(in srgb, var(--cat-theme-tint, #f5f5f7) 70%, white);
  color: color-mix(in srgb, var(--cat-theme-from, #334155) 82%, #111827);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.page-catalog .category-pill.active {
  border-color: transparent;
  background: linear-gradient(
    135deg,
    var(--cat-theme-from, #2563eb),
    var(--cat-theme-to, #4f46e5)
  );
  color: #fff;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--cat-theme-from, #2563eb) 25%, transparent);
}

.page-catalog .category-pill:active {
  transform: scale(0.97);
}

.page-catalog .catalog-subcategory-chips {
  display: flex;
  gap: 7px;
  margin: 2px -2px 4px;
  padding: 2px 2px 7px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.page-catalog .catalog-subcategory-chip {
  min-height: 38px;
  padding: 8px 14px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--catalog-border);
  background: rgba(255, 255, 255, 0.76);
  color: #3c3c43;
  font-size: 12px;
  font-weight: 650;
}

.page-catalog .catalog-subcategory-chip.active {
  border-color: color-mix(in srgb, var(--cat-theme-from, #2563eb) 25%, transparent);
  background: color-mix(in srgb, var(--cat-theme-tint, #eff6ff) 76%, white);
  color: var(--cat-theme-from, #2563eb);
}

/* Search and filters */
.page-catalog .catalog-search-row {
  gap: 9px;
  margin-top: 4px;
}

.page-catalog .catalog-search-field {
  min-height: 48px;
  border: 1px solid var(--catalog-border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.page-catalog .catalog-search-field:focus-within {
  border-color: color-mix(in srgb, var(--catalog-active-from, #2563eb) 30%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--catalog-active-from, #2563eb) 10%, transparent);
}

.page-catalog .catalog-search-field__input {
  font-size: 15px;
}

.page-catalog .catalog-filter-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--catalog-border);
  background: rgba(255, 255, 255, 0.88);
}

.page-catalog .catalog-filter-btn.active {
  border-color: transparent;
  background: var(--catalog-active-from, #2563eb);
  color: #fff;
}

.page-catalog .filters-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--catalog-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.page-catalog .filters-grid {
  gap: 10px;
}

.page-catalog .filters-grid label {
  display: block;
  margin-bottom: 6px;
  color: var(--catalog-text-soft);
  font-size: 11px;
  font-weight: 650;
}

.page-catalog .filters-panel .input-sm {
  min-height: 42px;
  border-radius: 12px;
}

.page-catalog .budget-slider {
  accent-color: var(--catalog-active-from, #2563eb);
}

/* Category hero */
.page-catalog .catalog-category-hero {
  min-height: 132px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  overflow: hidden;
}

.page-catalog .catalog-category-hero__content {
  padding: 22px 24px;
}

.page-catalog .catalog-category-hero__eyebrow {
  letter-spacing: 0.1em;
  opacity: 0.78;
}

.page-catalog .catalog-category-hero__title {
  font-size: clamp(25px, 4vw, 35px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-catalog .catalog-category-hero__meta {
  max-width: 620px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.84;
}

/* Product grid and cards */
.page-catalog .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.page-catalog .product-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--catalog-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.055);
}

.page-catalog .product-card-media {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.page-catalog .product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 12px;
  flex: 0 0 auto;
  background:
    radial-gradient(
      circle at 50% 38%,
      color-mix(in srgb, var(--cat-theme-tint, #f5f5f7) 88%, white),
      #fff 72%
    );
}

.page-catalog .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-catalog .product-card-colors {
  min-height: 30px;
  padding: 5px 10px 1px;
}

.page-catalog .product-card-info {
  min-width: 0;
  padding: 8px 12px 11px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.page-catalog .product-card-category {
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--cat-theme-from, #64748b) 65%, #6b7280);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-catalog .product-card-name {
  min-height: 48px;
  margin: 0;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.page-catalog .product-card-price,
.page-catalog .product-price-variable {
  margin-top: auto;
  padding-top: 8px;
  font-size: clamp(16px, 4.4vw, 20px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-catalog .product-card-footer {
  margin-top: auto;
  padding: 0 10px 10px;
  display: grid;
  gap: 7px;
}

.page-catalog .product-card-installment {
  min-height: 45px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--cat-theme-from, #2563eb) 10%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--cat-theme-tint, #eff6ff) 70%, white);
}

.page-catalog .product-card-installment__amount {
  color: var(--cat-theme-from, #2563eb);
  font-size: 12px;
  font-weight: 700;
}

.page-catalog .product-card-installment__term {
  margin-top: 2px;
  color: var(--catalog-text-soft);
  font-size: 9px;
}

.page-catalog .product-card-cta {
  min-height: 42px;
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    var(--cat-theme-from, #2563eb),
    var(--cat-theme-to, #4f46e5)
  );
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.page-catalog .product-card-cta:active {
  transform: scale(0.98);
}

.page-catalog .empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--catalog-active-from, #64748b) 25%, transparent);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--catalog-text-soft);
}

/* Mobile web and Mini Apps. display: contents lets the category bar stay sticky
   for the whole product list instead of being constrained by the aside. */
@media (max-width: 1023px) {
  .page-catalog .catalog-layout,
  .page-catalog .catalog-sidebar,
  .page-catalog .catalog-toolbar {
    display: contents;
  }

  .page-catalog .catalog-nav-pills {
    position: sticky;
    top: var(--header-height, 64px);
    z-index: 78;
    margin-inline: calc(var(--page-padding, 16px) * -1);
    padding: 8px var(--page-padding, 16px) 9px;
    background: rgba(247, 248, 251, 0.91);
    border-top: 1px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 14px,
      #000 calc(100% - 14px),
      transparent 100%
    );
  }

  .page-catalog .catalog-main {
    margin-top: 4px;
  }

  html.in-telegram .page-catalog,
  html.in-vk .page-catalog {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .page-catalog .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }

  .page-catalog .product-card-name {
    font-size: 15px;
  }

  .page-catalog .catalog-category-hero {
    min-height: 146px;
  }
}

/* Desktop sidebar and denser product grid. */
@media (min-width: 1024px) {
  html.is-desktop-layout .page-catalog {
    grid-template-columns: 230px minmax(0, 1fr);
    column-gap: 22px;
    padding-bottom: 48px;
  }

  html.is-desktop-layout .page-catalog .page-title {
    margin: 4px 0 16px;
  }

  html.is-desktop-layout .page-catalog .catalog-sidebar {
    top: calc(var(--header-height, 112px) + 14px);
    max-height: calc(100vh - var(--header-height, 112px) - 30px);
    overflow: visible;
  }

  html.is-desktop-layout .page-catalog .catalog-toolbar {
    padding: 11px;
    border: 1px solid var(--catalog-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
  }

  html.is-desktop-layout .page-catalog .category-sidebar {
    max-height: calc(100vh - var(--header-height, 112px) - 126px);
    padding-right: 3px;
    gap: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.28) transparent;
  }

  html.is-desktop-layout .page-catalog .category-sidebar-item {
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
  }

  html.is-desktop-layout .page-catalog .category-sidebar-item:hover {
    border-color: color-mix(in srgb, var(--cat-theme-from, #64748b) 12%, transparent);
    background: color-mix(in srgb, var(--cat-theme-tint, #f1f5f9) 72%, white);
  }

  html.is-desktop-layout .page-catalog .category-sidebar-item.active {
    border-color: transparent;
    background: linear-gradient(
      135deg,
      var(--cat-theme-from, #2563eb),
      var(--cat-theme-to, #4f46e5)
    );
    color: #fff;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--cat-theme-from, #2563eb) 20%, transparent);
  }

  html.is-desktop-layout .page-catalog .category-sidebar-flyout {
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--catalog-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  }

  html.is-desktop-layout .page-catalog .category-sidebar-flyout__item {
    min-height: 38px;
    border-radius: 9px;
  }

  html.is-desktop-layout .page-catalog .catalog-search-row {
    margin-top: 10px;
  }

  html.is-desktop-layout .page-catalog .catalog-search-field {
    min-height: 42px;
  }

  html.is-desktop-layout .page-catalog .catalog-filter-btn {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  html.is-desktop-layout .page-catalog .catalog-category-hero {
    min-height: 142px;
    margin-bottom: 16px;
  }

  html.is-desktop-layout .page-catalog .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  html.is-desktop-layout .page-catalog .product-card {
    border-radius: 17px;
    transition:
      transform 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  html.is-desktop-layout .page-catalog .product-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--cat-theme-from, #2563eb) 18%, transparent);
    box-shadow: 0 15px 34px rgba(15, 23, 42, 0.09);
  }

  html.is-desktop-layout .page-catalog .product-card-image {
    padding: 14px;
  }

  html.is-desktop-layout .page-catalog .product-card-name {
    min-height: 50px;
    font-size: 14px;
  }

  html.is-desktop-layout .page-catalog .product-card-price,
  html.is-desktop-layout .page-catalog .product-price-variable {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  html.is-desktop-layout .page-catalog .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .page-catalog .page-title {
    margin-top: 8px;
    font-size: 34px;
  }

  .page-catalog .category-pill {
    min-height: 42px;
    padding: 9px 15px;
  }

  .page-catalog .catalog-category-hero__content {
    padding: 20px 18px;
  }

  .page-catalog .product-card-image {
    padding: 9px;
  }

  .page-catalog .product-card-info {
    padding-inline: 10px;
  }

  .page-catalog .product-card-footer {
    padding-inline: 8px;
  }
}

.page-catalog .category-pill:focus-visible,
.page-catalog .catalog-subcategory-chip:focus-visible,
.page-catalog .category-sidebar-item:focus-visible,
.page-catalog .catalog-filter-btn:focus-visible,
.page-catalog .product-card-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cat-theme-from, #2563eb) 28%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .page-catalog .category-pill,
  .page-catalog .product-card {
    transition: none !important;
  }
}

/* v1.1 — iOS category picker and flyout reliability */
.catalog-category-switcher,
.catalog-ios-sheet {
  display: none;
}

.catalog-ios-sheet[hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  .page-catalog {
    background: transparent;
  }

  .page-catalog .catalog-nav-pills {
    display: none !important;
    position: static;
  }

  .page-catalog .catalog-category-switcher {
    display: block;
    margin: 0 0 10px;
  }

  .page-catalog .catalog-category-switcher__button {
    position: relative;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px 9px 14px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 8px 24px rgba(15, 23, 42, 0.06);
    color: #111827;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .page-catalog .catalog-category-switcher__button::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      var(--cat-theme-from, #2563eb),
      var(--cat-theme-to, #4f46e5)
    );
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat-theme-tint, #eff6ff) 86%, white);
  }

  .page-catalog .catalog-category-switcher__copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .page-catalog .catalog-category-switcher__copy small {
    color: rgba(60, 60, 67, 0.6);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
  }

  .page-catalog .catalog-category-switcher__copy strong {
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-catalog .catalog-category-switcher__action {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cat-theme-tint, #eff6ff) 86%, white);
    color: var(--cat-theme-from, #2563eb);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .page-catalog .catalog-category-switcher__chevron {
    flex: 0 0 auto;
    color: rgba(60, 60, 67, 0.55);
    font-size: 18px;
    line-height: 1;
    transform: translateY(-2px);
  }

  .page-catalog .catalog-subcategory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
    padding: 0;
    overflow: visible;
  }

  .page-catalog .catalog-subcategory-chip {
    min-height: 36px;
    padding: 8px 13px;
    border-color: rgba(15, 23, 42, 0.065);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
  }

  .page-catalog .catalog-subcategory-chip.active {
    border-color: transparent;
    background: color-mix(in srgb, var(--cat-theme-tint, #eff6ff) 78%, white);
    color: var(--cat-theme-from, #2563eb);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-theme-from, #2563eb) 16%, transparent);
  }

  .page-catalog .catalog-search-row {
    margin-top: 0;
  }

  .page-catalog .catalog-search-field,
  .page-catalog .catalog-filter-btn {
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.88) inset,
      0 7px 22px rgba(15, 23, 42, 0.055);
  }

  .page-catalog .catalog-category-hero {
    min-height: 128px;
    margin-top: 10px;
    border-radius: 24px;
    box-shadow: 0 13px 34px color-mix(in srgb, var(--catalog-active-from, #2563eb) 16%, transparent);
  }

  .page-catalog .product-grid {
    gap: 11px;
  }

  .page-catalog .product-card {
    border-color: rgba(15, 23, 42, 0.055);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.92) inset,
      0 8px 26px rgba(15, 23, 42, 0.055);
  }

  .page-catalog .product-card-image {
    border-radius: 18px 18px 12px 12px;
  }

  .page-catalog .product-card-cta {
    border-radius: 13px;
  }

  .catalog-ios-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    pointer-events: none;
  }

  .catalog-ios-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(15, 23, 42, 0.28);
    opacity: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.2s ease;
  }

  .catalog-ios-sheet__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82vh, 720px);
    padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px 28px 0 0;
    background: rgba(248, 249, 252, 0.96);
    box-shadow: 0 -20px 55px rgba(15, 23, 42, 0.18);
    transform: translateY(105%);
    transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-ios-sheet.open {
    pointer-events: auto;
  }

  .catalog-ios-sheet.open .catalog-ios-sheet__backdrop {
    opacity: 1;
  }

  .catalog-ios-sheet.open .catalog-ios-sheet__panel {
    transform: translateY(0);
  }

  .catalog-ios-sheet__handle {
    width: 38px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: rgba(60, 60, 67, 0.2);
  }

  .catalog-ios-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 2px;
  }

  .catalog-ios-sheet__header > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .catalog-ios-sheet__header strong {
    color: #111827;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .catalog-ios-sheet__header span {
    color: rgba(60, 60, 67, 0.62);
    font-size: 12px;
  }

  .catalog-ios-sheet__close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(118, 118, 128, 0.12);
    color: rgba(60, 60, 67, 0.72);
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
  }

  .catalog-ios-sheet__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .catalog-ios-sheet__item {
    min-width: 0;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--cat-theme-from, #64748b) 10%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--cat-theme-tint, #f1f5f9) 68%, white);
    color: #111827;
    text-decoration: none;
  }

  .catalog-ios-sheet__item::before {
    content: "";
    width: 23px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      var(--cat-theme-from, #2563eb),
      var(--cat-theme-to, #4f46e5)
    );
  }

  .catalog-ios-sheet__item strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-ios-sheet__item span {
    color: rgba(60, 60, 67, 0.62);
    font-size: 10px;
  }

  .catalog-ios-sheet__item.active {
    border-color: transparent;
    background: linear-gradient(
      135deg,
      var(--cat-theme-from, #2563eb),
      var(--cat-theme-to, #4f46e5)
    );
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--cat-theme-from, #2563eb) 22%, transparent);
  }

  .catalog-ios-sheet__item.active::before {
    background: rgba(255, 255, 255, 0.74);
  }

  .catalog-ios-sheet__item.active span {
    color: rgba(255, 255, 255, 0.78);
  }

  html.catalog-sheet-open,
  html.catalog-sheet-open body {
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  html.is-desktop-layout .page-catalog .catalog-sidebar {
    max-height: none;
    overflow: visible;
  }

  html.is-desktop-layout .page-catalog .category-sidebar {
    max-height: none;
    overflow: visible;
    scrollbar-width: auto;
  }

  html.is-desktop-layout .page-catalog .category-sidebar-item-wrap,
  html.is-desktop-layout .page-catalog .category-sidebar-flyout {
    overflow: visible;
  }

  html.is-desktop-layout .page-catalog .category-sidebar-flyout {
    z-index: 220;
  }

  html.is-desktop-layout .page-catalog .catalog-category-hero {
    border-radius: 24px;
  }

  html.is-desktop-layout .page-catalog .product-card {
    border-color: rgba(15, 23, 42, 0.055);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 28px rgba(15, 23, 42, 0.055);
  }
}
