/* /catalog — новый каталог (Encar, api.auctionsapi.com). 04.11.2026.
   Отдельный файл (как auctions.css для /auctions): фильтры/грид/карточки/пагинация.
   Использует токены из styles.css (--red, --ink, --muted, --line, --radius, --shadow, --font*),
   но классы и разметка СВОИ — не переиспользует .dbCard/.auctionTabsV1 и т.п. (другой продукт). */

.catalogShellV1 { max-width: var(--maxw); margin: 0 auto; padding: 20px 20px 64px; }

/* ---- Hero (05.11.2026, 1:1 с демо провайдера api.auctionsapi.com/catalog, зелёный акцент → красный) ---- */
.catalogTopV1 { position: relative; overflow: hidden; margin-bottom: 18px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.catHeroDecoV1 { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: radial-gradient(circle, var(--red-line) 1px, transparent 1px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 60% 100% at 100% 0%, #000 0%, transparent 70%); }
.catalogTopV1::after { content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--red-soft) 0%, transparent 72%); z-index: 0; pointer-events: none; }
.catEyebrowV1 { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; background: var(--red-soft); color: var(--red-600); font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; margin-bottom: 10px; }
.catLiveDotV1 { width: 6px; height: 6px; border-radius: 50%; background: var(--red); display: inline-block; animation: catLivePulse 1.6s ease-in-out infinite; }
@keyframes catLivePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--red-soft); } 50% { opacity: .55; box-shadow: 0 0 0 4px transparent; } }
.catalogTopV1 h1 { position: relative; z-index: 1; font-family: var(--font-display); font-size: 25px; margin: 0 0 4px; }
.catalogTopV1 p { position: relative; z-index: 1; color: var(--muted); margin: 0; font-size: 14.5px; max-width: 640px; }
@media (max-width: 640px) { .catalogTopV1 { padding: 20px 18px; } .catalogTopV1 h1 { font-size: 21px; } }

.catalogLayoutV1 { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1023px) { .catalogLayoutV1 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Сайдбар ---- */
.catSidebarV1 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.catSidebarHeadV1 { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.catSidebarHeadV1 h2 { font-size: 16px; margin: 0; font-family: var(--font-display); }
.catFilterBadgeV1 { background: var(--red-soft); color: var(--red-600); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.catResetAllV1 { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 6px; }
.catResetAllV1:hover { color: var(--red); }

.catSecV1 { border-top: 1px solid var(--line-2); }
.catSecBtnV1 { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: none; border: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.catSecBtnV1 .catDotV1 { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: 0 0 auto; display: none; }
.catSecV1.isActiveV1 .catSecBtnV1 .catDotV1 { display: block; }
.catSecBtnV1 .catChevV1 { margin-left: auto; transition: transform .18s var(--ease); flex: 0 0 auto; color: var(--muted); }
.catSecV1.isOpenV1 .catSecBtnV1 .catChevV1 { transform: rotate(180deg); }
.catSecResetV1 { border: none; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.catSecResetV1:hover { color: var(--red); }
.catSecBodyV1 { padding: 0 16px 14px; display: none; }
.catSecV1.isOpenV1 .catSecBodyV1 { display: block; }

.catSegV1 { display: flex; background: var(--field); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 10px; }
.catSegV1 button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; background: none; padding: 7px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.catSegV1 button svg { flex: 0 0 auto; color: var(--muted); }
.catSegV1 button.isOnV1 { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.catSegV1 button.isOnV1 svg { color: var(--red); }

.catSearchInV1 { position: relative; margin-bottom: 8px; }
.catSearchInV1 input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--field-line); border-radius: 9px; font: inherit; font-size: 13.5px; background: var(--field); }

.catListV1 { max-height: 286px; overflow: auto; display: flex; flex-direction: column; gap: 1px; }
.catRowV1 { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.catRowV1:hover { background: var(--field); }
.catRowV1 .catAvatarV1 { width: 24px; height: 24px; border-radius: 50%; background: var(--field); border: 1px solid var(--line-2); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--muted); overflow: hidden; }
/* 05.11.2026 (Федор: «фильтр в таком же стиле», демо провайдера): свой чекбокс вместо нативного —
   квадрат со скруглением, заливка + белая галочка при выборе (иконки брендов провайдер на нашем хосте
   api.auctionsapi.com не отдаёт — `icon_url` в схеме Brand помечено «Omitted on api.auctionsapi.com»,
   сверено по OpenAPI-спеке — буква в кружке остаётся честным фолбэком, не меняю). */
.catRowV1 input[type="checkbox"], .catCheckRowV1 input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 0; flex: 0 0 auto;
  width: 19px; height: 19px; border: 1.6px solid var(--field-line); border-radius: 5px;
  background: var(--surface); cursor: pointer; position: relative; transition: background .12s, border-color .12s;
}
.catRowV1 input[type="checkbox"]:hover, .catCheckRowV1 input[type="checkbox"]:hover { border-color: var(--red); }
.catRowV1 input[type="checkbox"]:checked, .catCheckRowV1 input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.catRowV1 input[type="checkbox"]:checked::after, .catCheckRowV1 input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.catRowV1 .catAvatarV1 img { width: 100%; height: 100%; object-fit: contain; }
.catRowV1 .catRowNameV1 { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.catRowV1 .catRowNameV1 small { color: var(--muted); font-weight: 400; }
.catRowV1 .catRowCountV1 { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.catShowMoreV1 { border: none; background: none; color: var(--red-600); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 6px 6px 0; }

.catBlockV1 { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; }
.catBlockHeadV1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.catBlockHeadV1 .catAvatarV1 { width: 18px; height: 18px; border-radius: 50%; background: var(--field); flex: 0 0 auto; }
.catBlockHeadV1 b { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catBlockHeadV1 button { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }
.catChipRowV1 { display: flex; flex-wrap: wrap; gap: 5px; }
.catMiniChipV1 { display: inline-flex; align-items: center; gap: 5px; background: var(--field); border-radius: 999px; padding: 4px 8px 4px 10px; font-size: 12.5px; }
.catMiniChipV1 button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 13px; line-height: 1; padding: 0; }
.catAddBtnV1 { border: 1px dashed var(--field-line); background: none; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; }

.catRangeRowV1 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.catRangeRowV1 input[type="text"], .catRangeRowV1 input[type="number"] { width: 100%; box-sizing: border-box; padding: 8px 9px; border: 1px solid var(--field-line); border-radius: 9px; font: inherit; font-size: 13.5px; background: var(--field); }
.catRangeRowV1 span { color: var(--muted); font-size: 13px; flex: 0 0 auto; }
.catRangeNoteV1 { color: var(--muted); font-size: 11.5px; margin: -4px 0 8px; }
.catCurSelV1 { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid var(--field-line); border-radius: 9px; font: inherit; font-size: 13px; background: var(--field); margin-bottom: 8px; }

.catPillsV1 { display: flex; flex-wrap: wrap; gap: 6px; }
.catPillV1 { border: 1px solid var(--field-line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink); }
.catPillV1.isOnV1 { background: var(--ink); border-color: var(--ink); color: #fff; }
.catPillsMoreV1 { border: none; background: none; color: var(--red-600); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 4px; }

.catSwatchV1 { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; display: inline-block; position: relative; }
.catSwatchV1.isOnV1 { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.catSwatchWrapV1 { display: flex; flex-wrap: wrap; gap: 8px; }
.catSwatch2toneV1 { background: linear-gradient(135deg, #fff 50%, #111 50%); }

.catCheckRowV1 { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.catCheckRowV1 input { accent-color: var(--red); }

.catSidebarFootV1 { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px; display: none; }
.catApplyBtnV1 { width: 100%; background: var(--red); color: #fff; border: none; border-radius: 11px; padding: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer; }

/* ---- Результаты ---- */
.catToolbarV1 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.catHeadingTxtV1 { font-size: 17px; margin: 0; font-family: var(--font-display); font-weight: 700; }
.catToolRightV1 { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.catSortSelV1 { border: 1px solid var(--field-line); background: var(--field); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 13px; }
.catFiltersMobBtnV1 { display: none; border: 1px solid var(--field-line); background: var(--field); border-radius: 9px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
@media (max-width: 1023px) { .catFiltersMobBtnV1 { display: inline-flex; align-items: center; gap: 6px; } }

.catViewToggleV1 { display: flex; background: var(--field); border-radius: 9px; padding: 3px; gap: 2px; }
.catViewToggleV1 button { border: none; background: none; width: 30px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.catViewToggleV1 button.isOnV1 { background: var(--surface); color: var(--red-600); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) { .catViewToggleV1 { display: none; } }

/* Вид «Список» — та же карточка, горизонтальная раскладка (CSS-only, разметка не меняется) */
.catGridV1.isListV1 { display: flex; flex-direction: column; gap: 10px; }
.catGridV1.isListV1 .catCardV1 { display: flex; }
.catGridV1.isListV1 .catCardPhotoV1 { flex: 0 0 220px; aspect-ratio: auto; }
.catGridV1.isListV1 .catCardBodyV1 { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; }
.catGridV1.isListV1 .catSpecsV1 { grid-template-columns: repeat(4, minmax(0, auto)); gap: 4px 18px; }
.catGridV1.isListV1 .catPriceRowV1 { border-top: none; padding-top: 0; margin-top: 8px; }
@media (max-width: 640px) { .catGridV1.isListV1 .catCardPhotoV1 { flex-basis: 120px; } .catGridV1.isListV1 .catSpecsV1 { grid-template-columns: minmax(0, 1fr); } }

.catChipsRowV1 { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; align-items: center; }
.catChipV1 { display: inline-flex; align-items: center; gap: 6px; background: var(--field); border-radius: 999px; padding: 5px 7px 5px 11px; font-size: 12.5px; color: var(--ink-2); }
.catChipV1 button { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px; }
.catClearAllV1 { border: none; background: none; color: var(--red-600); font-size: 12.5px; font-weight: 700; cursor: pointer; }

.catGridV1 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1279px) { .catGridV1 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .catGridV1 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.catCardV1 { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.catCardV1:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.catCardPhotoV1 { position: relative; aspect-ratio: 4/3; background: var(--field); overflow: hidden; }
.catCardPhotoV1 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catCardNoPhotoV1 { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12.5px; }
.catBadgeRowV1 { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; flex-wrap: wrap; max-width: calc(100% - 16px); }
.catBadgeV1 { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.95); color: #1b2029; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px 3px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.catBadgeV1 svg { width: 11px; height: 11px; flex: 0 0 auto; }
.catBadgeV1.isInspV1 { color: #1a7f4b; }
.catBadgeV1.isInspV1 svg { color: #20b26b; }
.catBadgeV1.isHistV1 { color: #1f5fa8; }
.catBadgeV1.isHistV1 svg { color: #2d86c9; }
.catSoldStampV1 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,24,31,.42); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .04em; pointer-events: none; }

.catPhotoNavV1 { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: #1b2029; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s; z-index: 2; }
.catCardPhotoV1:hover .catPhotoNavV1 { opacity: 1; }
.catPhotoPrevV1 { left: 6px; } .catPhotoNextV1 { right: 6px; }
.catPhotoDotsV1 { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.catPhotoDotsV1 span { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.55); }
.catPhotoDotsV1 span.isOnV1 { background: #fff; }
.catQuickOpenV1 { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--field); display: flex; align-items: center; justify-content: center; color: var(--ink); flex: 0 0 auto; }
.catQuickOpenV1 svg { width: 13px; height: 13px; }

.catCardBodyV1 { padding: 11px 12px 12px; }
.catCardTitleV1 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catSpecsV1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; margin-bottom: 8px; }
.catSpecsV1 span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catSpecIcoV1 { flex: 0 0 auto; width: 13px; height: 13px; color: var(--muted); display: inline-flex; }
.catSpecIcoV1 svg { width: 100%; height: 100%; }
.catPlaceRowV1 { display: flex; align-items: flex-start; gap: 5px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.catPlaceRowV1 > span:first-child { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.catPlaceRowV1 .catSrcV1 { margin-left: auto; flex: 0 0 auto; font-family: ui-monospace, monospace; white-space: nowrap; }
.catPriceRowV1 { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 9px; }
.catPriceRowV1 .catPriceLblV1 { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.catPriceRowV1 .catPriceAmtV1 { font-size: 16px; font-weight: 800; }
.catPriceRowV1 .catPriceCurV1 { font-size: 11.5px; color: var(--muted); font-weight: 700; }

.catSkelV1 .catCardPhotoV1, .catSkelV1 .catCardTitleV1, .catSkelV1 .catSpecsV1 span { background: linear-gradient(90deg, var(--field) 25%, var(--line-2) 37%, var(--field) 63%); background-size: 400% 100%; animation: catShine 1.3s ease infinite; border-radius: 6px; color: transparent; }
@keyframes catShine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.catStateV1 { padding: 60px 16px; text-align: center; color: var(--muted); }
.catStateV1 h3 { color: var(--ink); font-family: var(--font-display); margin: 0 0 6px; }
.catStateV1 button { margin-top: 14px; border: none; background: var(--red); color: #fff; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; }

.catPagerV1 { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.catPagerInfoV1 { color: var(--muted); font-size: 13px; }
.catPagerBtnsV1 { display: flex; gap: 4px; margin-left: auto; }
.catPagerBtnsV1 button { min-width: 34px; height: 34px; border: 1px solid var(--field-line); background: var(--surface); border-radius: 8px; cursor: pointer; font-size: 13px; }
.catPagerBtnsV1 button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catPagerBtnsV1 button:disabled { opacity: .4; cursor: default; }
.catPerPageV1 { border: 1px solid var(--field-line); background: var(--field); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 12.5px; }

/* ---- Мобильная шторка фильтров ---- */
@media (max-width: 1023px) {
  body.catFiltersOpenV1 { overflow: hidden; }
  body.catFiltersOpenV1::before { content: ""; position: fixed; inset: 0; background: rgba(20,24,31,.5); z-index: var(--z-overlay-backdrop); }
  .catSidebarV1 { position: fixed; top: 0; right: -100%; bottom: 0; width: min(92vw, 400px); max-height: none; border-radius: 0; z-index: var(--z-overlay); transition: right .22s var(--ease); display: flex; flex-direction: column; }
  body.catFiltersOpenV1 .catSidebarV1 { right: 0; }
  .catSidebarV1 .catSecBodyV1 { padding-bottom: 16px; }
  .catSidebarFootV1 { display: block; }
}

@media (max-width: 640px) {
  .catalogShellV1 { padding: 14px 14px 48px; }
  .catSpecsV1 { grid-template-columns: minmax(0, 1fr); }
}
