/* Horizontal category and specification selector. */
.catalog-selector { width: 100%; min-width: 0; border: 1px solid #b9c5cd; border-top: 4px solid #253a47; background: #fff; margin-bottom: 26px; }
.cs-panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; padding: 21px 24px; background: #eef2f4; border-bottom: 1px solid #bfcbd3; }
.cs-panel-heading > div { display: flex; align-items: center; gap: 11px; }
.cs-heading-marker { width: 5px; height: 22px; background: var(--orange, #ed6425); }
.cs-panel-heading h2 { font-size: 21px; line-height: 1.5; margin: 0; letter-spacing: 0; }
.cs-panel-heading p { font-size: 14px; line-height: 1.8; color: #53616c; margin: 0; }
.cs-filter-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 72px; align-items: start; border-bottom: 1px solid #d8e0e5; min-width: 0; }
.cs-filter-row:nth-child(even) { background: #fbfcfc; }
.cs-row-title { align-self: stretch; padding: 15px 16px 15px 21px; background: #f0f3f5; border-right: 1px solid #d8e0e5; color: #344652; font-size: 15px; font-weight: 650; line-height: 1.8; overflow-wrap: anywhere; }
.cs-row-body { min-width: 0; display: flex; align-items: flex-start; gap: 13px; padding: 8px 12px; }
.cs-unlimited { border: 1px solid transparent; border-radius: 3px; background: transparent; color: #50616c; font: inherit; font-size: 15px; line-height: 1.6; padding: 8px 11px; min-width: 54px; min-height: 44px; flex-shrink: 0; cursor: pointer; }
.cs-unlimited:hover { color: #b54916; background: #fff3e9; }
.cs-unlimited.is-selected { color: #a53c0a; border-color: #f3c1a6; background: #ffecdf; font-weight: 650; }
.cs-options { min-width: 0; display: flex; flex: 1; flex-wrap: wrap; align-items: flex-start; gap: 3px 9px; }
.cs-option { display: inline-flex; align-items: center; position: relative; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 10px; margin: 0; border: 1px solid transparent; border-radius: 3px; color: #34434d; font-size: 15px; line-height: 1.6; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.cs-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cs-option-label { min-width: 0; overflow-wrap: anywhere; }
.cs-option-box { display: inline-flex; justify-content: center; align-items: center; width: 16px; height: 16px; border: 1px solid #a9b7c0; border-radius: 2px; background: #fff; flex-shrink: 0; }
.cs-option:hover { color: #a94212; background: #fff3e9; border-color: #f4d5c3; }
.cs-option.is-selected { color: #a53c0a; background: #fff0e6; border-color: #edb99a; }
.cs-option.is-selected .cs-option-box { border-color: var(--orange, #ed6425); background: var(--orange, #ed6425); }
.cs-option.is-selected .cs-option-box::after { content: ''; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.cs-option:has(input:focus-visible) { outline: 2px solid #c55018; outline-offset: 2px; }
.cs-filter-row:not(.is-expanded) .cs-option-extra { display: none; }
.cs-expand { align-self: start; justify-self: center; border: 0; background: transparent; padding: 9px 5px; margin-top: 8px; min-height: 44px; min-width: 54px; font: inherit; font-size: 14px; line-height: 1.6; color: #586a76; cursor: pointer; }
.cs-expand span { font-size: 17px; margin-left: 3px; }
.cs-expand:hover { color: #ae4210; }
.cs-category-hint { margin: 0; padding: 18px 24px; font-size: 15px; line-height: 1.8; color: #5a6c77; background: #f8fafb; border-bottom: 1px solid #d8e0e5; }
.cs-selection { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; padding: 17px 22px; background: #fff; }
.cs-selection-title { font-size: 14px; line-height: 1.7; padding-block: 9px; color: #536572; flex-shrink: 0; }
.cs-selection-title b { color: #b84c19; margin-left: 4px; }
.cs-chips { display: flex; flex: 1; min-width: 160px; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 13px; max-width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #e5b296; border-radius: 3px; background: #fff4ec; color: #97400f; font: inherit; font-size: 14px; line-height: 1.6; cursor: pointer; text-align: left; }
.cs-chip > span { min-width: 0; overflow-wrap: anywhere; }
.cs-chip b { font-size: 20px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.cs-chip:hover { background: #ffe5d3; border-color: #cf7d4e; }
.cs-selection-empty { color: #687882; font-size: 14px; padding-block: 10px; line-height: 1.7; }
.cs-clear-all { min-height: 44px; padding: 9px 6px; border: 0; color: #566873; background: none; font: inherit; font-size: 14px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cs-clear-all:hover { color: #af4212; }
.cs-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cs-empty > p { font-size: 16px; line-height: 1.85; }

@media (max-width: 1000px) {
  .cs-filter-row { grid-template-columns: 100px minmax(0, 1fr) 64px; }
  .cs-row-title { padding-left: 15px; }
  .cs-row-body { gap: 8px; padding-inline: 8px; }
  .cs-options { gap: 3px 4px; }
  .cs-option { padding-inline: 8px; }
}

@media (max-width: 760px) {
  .catalog-selector { margin-bottom: 22px; }
  .cs-panel-heading { padding: 17px 16px; gap: 8px; }
  .cs-panel-heading h2 { font-size: 20px; }
  .cs-panel-heading p { font-size: 14px; }
  .cs-filter-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cs-row-title { grid-column: 1; padding: 12px 15px; font-size: 14px; line-height: 1.6; border-right: 0; background: #eff3f5; min-height: 46px; }
  .cs-expand { grid-column: 2; grid-row: 1; align-self: stretch; justify-self: stretch; margin: 0; padding: 10px 14px; font-size: 14px; background: #eff3f5; min-width: 70px; }
  .cs-row-spacer { grid-column: 2; grid-row: 1; background: #eff3f5; }
  .cs-row-body { grid-column: 1 / -1; grid-row: 2; padding: 10px 10px 12px; gap: 8px; }
  .cs-unlimited { font-size: 14px; min-height: 44px; min-width: 50px; padding: 10px 7px; }
  .cs-options { gap: 4px; }
  .cs-option { font-size: 14px; line-height: 1.65; min-height: 44px; gap: 7px; padding: 9px 8px; }
  .cs-option-box { width: 16px; height: 16px; }
  .cs-category-hint { padding: 15px 17px; font-size: 14px; }
  .cs-selection { padding: 14px 15px; gap: 5px 12px; }
  .cs-selection-title { font-size: 14px; padding-block: 8px; }
  .cs-chips { flex-basis: 100%; min-width: 0; order: 3; }
  .cs-chip { font-size: 14px; min-height: 44px; }
  .cs-clear-all { margin-left: auto; font-size: 14px; }
  .cs-empty-actions .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-option { transition: none; }
}
