/* Reusable navigation between real catalog categories; no URL query filters. */
body.market--category-selector { overflow-x: clip; overflow-y: visible; }
.container--category-selector { --sg-catalog-section-gap: 48px; --sg-catalog-block-gap: 32px; --sg-catalog-text-gap: 16px; }
.container--category-selector > .container__wrapper { padding-bottom: 0; }
.container--category-selector > .container__wrapper > .flex-container { padding-bottom: var(--sg-catalog-section-gap); }
.container--category-selector .flex-container__h1 { order: 0; }
.container--category-selector .flex-container__top-text { order: 1; }
.container--category-selector .flex-container__subcategories--selector { order: 2; position: sticky; top: var(--sg-category-top, 0px); z-index: 40; align-self: flex-start; min-width: 0; margin: 12px 0 24px; border-top: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); background: var(--sg-surface); }
.container--category-selector .flex-container__main { order: 3; min-width: 0; }
.container--category-selector .flex-container__main > .products-list { margin-top: 0; }
.container--category-selector .flex-container__bottom-text { order: 4; margin-top: var(--sg-catalog-section-gap); }
.container--category-selector .category-description > :is(p, ul, ol) { margin-block: 0 var(--sg-catalog-text-gap); }
.container--category-selector .category-description > :first-child { margin-top: 0; }
.container--category-selector .category-description > :last-child { margin-bottom: 0; }
.container--category-selector .flex-container__bottom-text .category-description > .promo-block4 { margin-top: var(--sg-catalog-block-gap); }
.sg-category-selector { padding: 12px 0; }
.sg-category-selector .sg-category-selector__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--sg-text-soft); font-size: var(--sg-font-note); }
.sg-category-selector .sg-category-selector__controls { display: flex; gap: 6px; }
.sg-category-selector .sg-category-selector__controls button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--sg-line); border-radius: 50%; color: var(--sg-text); background: var(--sg-surface); font: inherit; font-size: 18px; cursor: pointer; }
.sg-category-selector .sg-category-selector__controls button:disabled { opacity: .35; cursor: default; }
.sg-category-selector .sg-category-selector__rail { position: relative; display: flex; gap: 8px; width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 3px 3px 7px; }
.sg-category-selector .sg-category-selector__item { position: relative; display: flex; flex: 0 0 100px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 100px; padding: 10px 8px 8px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius-sm); color: var(--sg-text); background: var(--sg-surface); text-align: center; text-decoration: none; scroll-snap-align: center; }
.sg-category-selector .sg-category-selector__item:hover { border-color: var(--sg-line-strong); background: var(--sg-surface-soft); }
.sg-category-selector .sg-category-selector__item[aria-current="page"] { border-color: var(--sg-line-strong); background: var(--sg-surface-soft); }
.sg-category-selector .sg-category-selector__icon { display: flex; flex: 0 0 42px; align-items: center; justify-content: center; width: 48px; height: 42px; color: var(--sg-text-soft); }
.sg-category-selector .sg-category-selector__icon svg { display: block; width: 48px; height: 40px; }
.sg-category-selector .sg-category-selector__icon-fill { fill: currentColor; fill-opacity: .07; }
.sg-category-selector .sg-category-selector__item[aria-current="page"] .sg-category-selector__icon { color: var(--sg-brand); }
.sg-category-selector .sg-category-selector__label { font-size: var(--sg-font-caption); line-height: 1.3; font-weight: 500; }
.sg-category-selector .sg-category-selector__item[aria-current="page"] .sg-category-selector__label { font-weight: 700; }
.sg-category-selector .sg-category-selector__count { position: absolute; top: 6px; right: 6px; min-width: 20px; padding: 1px 4px; border-radius: 8px; color: var(--sg-text-soft); background: var(--sg-surface-soft); font-size: 10px; line-height: 1.5; }
.sg-category-selector .sg-category-selector__item[aria-current="page"] .sg-category-selector__count { color: #fff; background: var(--sg-brand); }
.sg-category-selector .sg-category-selector__sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container--category-selector .category-selector-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.container--category-selector .category-selector-pagination > * { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--sg-line); border-radius: 10px; }
.container--category-selector .category-selector-pagination [aria-current] { color: #fff; background: var(--sg-brand); }
.category-selector-empty { padding: 24px 0; }
@media (max-width: 760px) {
  .container--category-selector { --sg-catalog-section-gap: 32px; --sg-catalog-block-gap: 24px; }
  .container--category-selector .flex-container__subcategories--selector { margin-block: 8px 20px; }
  .sg-category-selector { padding-block: 8px; }
  .sg-category-selector .sg-category-selector__heading { margin-bottom: 4px; }
  .sg-category-selector .sg-category-selector__item { flex-basis: 90px; min-height: 92px; padding-top: 8px; }
  .sg-category-selector .sg-category-selector__icon { flex-basis: 36px; height: 36px; }
  .sg-category-selector .sg-category-selector__icon svg { width: 43.2px; height: 36px; }
  .sg-category-selector .sg-category-selector__controls button { width: 36px; height: 36px; }
}
