﻿/* ===== CATALOG PAGE — REDESIGN (Figma 1:1) ===== */

/* Page background */
body { background: #F6F6F8; }

/* BREADCRUMB + TITLE */
.page-title-section { max-width: 1402px; margin: 0 auto; padding: 18px 20px 0; }
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 4px; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }
.page-title { font-size: 26px; font-weight: 700; color: #1a1a1a; font-family: 'Abel', sans-serif; }

/* TOP BAR — filter tags + sort (Figma 1:1) */
.catalog-topbar {
  margin: 14px 0 0; padding: 0;
}
.catalog-topbar-inner {
  background: #fff;
  box-shadow: 0px 2px 3px 0px rgba(51,65,80,0.03);
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 15px; min-height: 37px;
  border-radius: 5px;
}
.topbar-tags {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; flex: 1 0 0; min-width: 0; padding: 5px 0;
  min-height: 1px;
}
.topbar-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(191,199,209,0.2); border-radius: 100px;
  padding: 2px 10px; cursor: default; white-space: nowrap;
}
.topbar-tag-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 21px; color: #334150;
}
.topbar-tag-x {
  width: 12px; height: 12px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  opacity: 0.7; transition: opacity .15s;
}
.topbar-tag-x:hover { opacity: 1; }
.topbar-tag-x svg { width: 12px; height: 12px; }
.topbar-sort-wrap { flex-shrink: 0; position: relative; }
.topbar-sort-btn {
  display: flex; align-items: center; gap: 5px;
  background: #fff; border: none; border-radius: 6px;
  padding: 10px; cursor: pointer; flex-shrink: 0;
}
.topbar-sort-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.topbar-sort-btn span {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 21px; color: #334150;
  white-space: nowrap;
}
.topbar-sort-dropdown {
  position: absolute; top: 100%; right: 0; z-index: 50;
  background: #fff; border-radius: 6px; min-width: 200px;
  box-shadow: 0 4px 12px rgba(51,65,80,0.12); border: 1px solid #e8ecf0;
  padding: 4px 0; display: none;
}
.topbar-sort-dropdown.open { display: block; }
.topbar-sort-opt {
  padding: 8px 14px; font-family: 'Lato', sans-serif; font-size: 14px;
  line-height: 21px; color: #334150; cursor: pointer;
}
.topbar-sort-opt:hover { background: rgba(191,199,209,0.15); }
.topbar-sort-opt.active { color: #1598F6; font-weight: 600; }

/* MAIN LAYOUT */
.catalog-layout {
  display: flex; gap: 24px;
  max-width: 100%; overflow: hidden;
}

/* ===== SIDEBAR FILTERS (Figma 1:1) ===== */
.cat-sidebar { width: 332px; flex-shrink: 0; }
.cat-filter-panel {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 2px 3px 0px rgba(51,65,80,0.03);
  position: sticky; top: 0px;
  max-height: calc(100vh - 96px);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* --- Filter Header --- */
.cat-filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 15px 14px;
  flex-shrink: 0;
}
.cat-filter-header-left { display: flex; align-items: center; gap: 0; }
.cat-filter-header-title {
  font-family: 'Red Hat Display', 'Lato', sans-serif;
  font-weight: 700; font-size: 18px; line-height: 22px;
  color: #1D1E20;
}
.cat-filter-header-right { display: flex; align-items: center; gap: 24px; }
.cat-filter-reset {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 12px; line-height: 20px; color: #2662D9;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.cat-filter-reset:hover { text-decoration: underline; }
.cat-filter-hamburger {
  width: 25px; height: 24px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
}
.cat-filter-hamburger svg { width: 25px; height: 24px; color: #1254FF; }

/* --- Scrollable filter body --- */
.cat-filter-scroll {
  overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: #ddd #f5f5f5;
}
.cat-filter-scroll::-webkit-scrollbar { width: 6px; }
.cat-filter-scroll::-webkit-scrollbar-track { background: #f5f5f5; }
.cat-filter-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* --- Toggle switches (Material-style, Figma exact) --- */
.cf-toggle-group { padding: 0 15px; }
.cf-toggle-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 10px 0; cursor: pointer; gap: 10px;
}
.cf-toggle-label {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 20px; color: #1D1E20; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.cf-toggle-label-logo {
  display: inline-flex; align-items: center; height: 20px; flex-shrink: 0;
  font-family: 'Lato', sans-serif; font-weight: 900; font-style: italic;
  font-size: 13px; line-height: 20px; color: #1D1E20;
}
.cf-toggle-label-logo img { height: 12px; width: auto; display: block; }
.cf-toggle-sub {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 20px; color: #1D1E20;
}
.cf-toggle-dropdown {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 20px; color: #2662D9;
  cursor: pointer; white-space: nowrap; margin-left: 8px;
}
.cf-toggle-dropdown svg { width: 10px; height: 10px; color: #2662D9; flex-shrink: 0; }
.cf-switch {
  width: 28px; height: 14px; flex-shrink: 0;
  position: relative; cursor: pointer; margin-top: 3px;
}
.cf-switch-track {
  position: absolute; top: 2.1px; left: 1.4px;
  width: 25.2px; height: 9.8px; border-radius: 7px;
  background: rgba(0,0,0,0.38); transition: background .2s;
}
.cf-switch-thumb {
  position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #FAFAFA; border: 1px solid rgba(0,0,0,0);
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
  transition: left .2s, background .2s, border-color .2s;
}
.cf-toggle-item.active .cf-switch-track { background: rgba(18,84,255,0.5); }
.cf-toggle-item.active .cf-switch-thumb { left: 14px; background: #1254FF; border-color: #6A6A6A; }

/* --- Expandable filter sections --- */
.cf-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; cursor: pointer; user-select: none;
  background: rgba(240,240,240,0.7);
  border-top: 1px solid rgba(153,207,255,0.32);
}
.cf-section:first-child .cf-section-header { border-top: 1px solid rgba(153,207,255,0.32); }
.cf-section-title {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 13px; line-height: 20px; color: #1D1E20; flex: 1; min-width: 0;
}
.cf-section-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cf-section-reset {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 12px; line-height: 20px; color: #2662D9;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.cf-section-reset:hover { text-decoration: underline; }
.cf-section-icon {
  width: 20px; height: 20px; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; border-radius: 3px;
}
.cf-section-icon svg { width: 10px; height: 10px; }
.cf-section .cf-icon-plus { display: none; }
.cf-section .cf-icon-minus { display: block; }
.cf-section.closed .cf-icon-plus { display: block; }
.cf-section.closed .cf-icon-minus { display: none; }
.cf-section.closed .cf-section-body { display: none; }
.cf-section-body { padding: 10px 10px 10px 10px; background: #fff; }
.cf-search-input {
  width: 100%; height: 32px;
  border: 1px solid #DFDFDF; border-radius: 3px;
  padding: 0 11px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 16px; color: #495057;
  outline: none; background: #fff; margin-bottom: 8px;
}
.cf-search-input::placeholder { color: #999; font-family: 'Lato', sans-serif; font-weight: 400; font-size: 13px; }
.cf-search-input:focus { border-color: #1254FF; }
.cf-global-search { padding: 12px 15px 0; }

/* --- Checkbox items --- */
.cf-cb-list {
  max-height: 180px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #ddd #f5f5f5;
}
.cf-cb-list::-webkit-scrollbar { width: 5px; }
.cf-cb-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.cf-cb-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 2px; cursor: pointer;
}
.cf-cb-box {
  width: 16px; height: 16px;
  border: 1px solid #999; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s; background: #fff;
}
.cf-cb-item.checked .cf-cb-box { background: #1254FF; border-color: #1254FF; }
.cf-cb-check { display: none; }
.cf-cb-item.checked .cf-cb-check { display: block; }
.cf-cb-check svg { width: 10px; height: 10px; }
.cf-cb-label {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 21px; color: #495057;
}
.cf-cb-count {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 11px; line-height: 20px; color: #495057;
  margin-left: auto; flex-shrink: 0;
}

/* --- Zip code section --- */
.cf-zip-row { display: flex; align-items: center; gap: 0; margin-bottom: 10px; }
.cf-zip-input {
  flex: 1; height: 34px;
  border: 1px solid #DFDFDF; border-radius: 4px 0 0 4px;
  padding: 0 6px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 16px; color: #495057;
  outline: none; background: #fff;
}
.cf-zip-input::placeholder { color: #999; }
.cf-zip-dist {
  height: 34px; min-width: 68px;
  border: 1px solid #DFDFDF; border-left: none;
  border-radius: 0 4px 4px 0; padding: 0 8px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 20px; color: #495057;
  background: #fff; outline: none;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.cf-zip-dist svg { width: 10px; height: 10px; color: #7F8FA4; flex-shrink: 0; }
.cf-zip-search-btn {
  height: 32px; padding: 0 6px;
  background: #DFDFDF; color: #1D1E20;
  border: none; border-radius: 4px;
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 13px; line-height: 20px;
  cursor: pointer; white-space: nowrap; margin-left: auto;
}
.cf-zip-search-btn:hover { background: #ccc; }
.cf-zip-actions { display: flex; justify-content: flex-end; }

/* ===== CONTENT AREA ===== */
.cat-content { flex: 1; min-width: 0; overflow: hidden; max-width: 100%; }

/* ===== TAB BAR (Figma 1:1) ===== */
.cat-tabs-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #E6EDF6;
  padding: 0 20px;
  background: #fff;
  min-height: 68px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-radius: 5px 5px 0 0;
  box-shadow: 0px 2px 3px 0px rgba(51,65,80,0.03);
  width: 100%; max-width: 100%; overflow-x: auto;
}
.cat-tabs {
  display: flex; align-items: center; gap: 29px;
  height: 100%;
  flex-shrink: 0;
}
.cat-tab {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2.5px;
  padding: 23px 0 22px;
  cursor: pointer; position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.cat-tab-row {
  display: flex; align-items: center; gap: 5px;
}
.cat-tab-dot {
  width: 7px; height: 7px; border-radius: 100px;
  background: #00CC52; flex-shrink: 0;
}
.cat-tab-name {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 16px; line-height: 24px;
  color: rgba(51,65,80,0.7);
}
.cat-tab.active .cat-tab-name { color: #334150; }
.cat-tab-count {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 21px;
  color: #7F8FA4;
}
.cat-tab::after {
  content: ''; position: absolute;
  bottom: 0; left: -10px; right: -10px;
  height: 2px; background: transparent;
}
.cat-tab.active::after { background: #FFDB16; }
.cat-tab:hover .cat-tab-name { color: #334150; }

.cat-tabs-right {
  display: flex; align-items: center; flex-shrink: 0;
}
.cat-archive-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px;
  background: rgba(233,237,240,0.45);
  border: 1px solid #E6EDF6;
  border-radius: 6px;
  cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.cat-archive-btn:hover { background: rgba(233,237,240,0.7); }
.cat-archive-btn.active { background: #1598F6; border-color: #1598F6; }
.cat-archive-btn.active svg path { stroke: #fff; }
.cat-archive-btn.active span { color: #fff; }
.cat-archive-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.cat-archive-btn span {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 14px; line-height: 24px;
  color: #212529; white-space: nowrap;
}

/* ===== LOT CARD — LIST VIEW (Figma 1:1) ===== */
.cat-list { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 100%; overflow: hidden; }

.lot-card {
  display: flex; background: #fff;
  border-bottom: 1px solid #E6EDF6;
  padding: 20px;
  gap: 19px;
  cursor: pointer; transition: background .15s;
  width: 100%; max-width: 100%; overflow: hidden;
}
.lot-card:hover { background: #FAFBFD; }

/* Image section */
.lc-image {
  width: 267px; min-width: 200px; flex-shrink: 1; position: relative;
  border-radius: 6px; overflow: hidden; background: #f0f0f0;
}
.lc-image img {
  width: 100%; aspect-ratio: 267/194; object-fit: cover; display: block;
  border-radius: 5px;
}
/* Carousel bar indicators (Figma: horizontal bars at bottom) */
.lc-image-bars {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; height: 6px; gap: 2px;
  z-index: 5; padding: 0 2px;
}
.lc-image-bar {
  flex: 1; min-width: 1px; min-height: 6px;
  background: rgba(255,255,255,0.5); cursor: pointer;
  border-radius: 1px; transition: background .15s;
}
.lc-image-bar:hover { background: rgba(255,255,255,0.8); }
.lc-image-bar.active { background: #fff; }
/* Overlay badges (Video, Обзор) */
.lc-overlay-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: rgba(17,24,33,0.45); border-radius: 4px;
  padding: 0 10px; height: 26px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; color: #fff; cursor: pointer;
}
.lc-overlay-badge img, .lc-overlay-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.lc-badge-video { bottom: 11px; left: 6px; }
.lc-badge-360 { bottom: 11px; right: 5px; }
/* Nav arrows (hidden by default, show on hover) */
.lc-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 40px;
  background: rgba(17,24,33,0.45); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; cursor: pointer;
}
.lc-nav-arrow img, .lc-nav-arrow svg { width: 10px; height: 15px; }
.lc-nav-prev { left: 6px; }
.lc-nav-next { right: 6px; }
.lc-image:hover .lc-nav-arrow { opacity: 1; }
/* Old dot nav — hide */
.lc-image-nav { display: none; }
.lc-image-dot { display: none; }
/* Old badges */
.lc-image-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.lc-image-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .3px;
}
.lc-image-badge-new { background: #22c55e; color: #fff; }
.lc-image-badge-updated { background: #3b82f6; color: #fff; }

/* Info section (middle) — 667px */
.lc-wrapper {
  flex: 1; display: flex; flex-direction: column;
  gap: 10px; min-width: 0;
}
.lc-column {
  display: flex; flex-direction: row;
  gap: 0; flex: 1; min-width: 0;
}
.lc-info {
  flex: 1; display: flex; flex-direction: column;
  gap: 9px; min-width: 0;
}
/* Title row */
.lc-title-row {
  display: flex; align-items: center; justify-content: space-between;
}
.lc-title-left {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  flex: 1; min-width: 0;
}
.lc-title {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 16px; line-height: 24px; color: #3a3a3a;
}
.lc-title a { color: #3a3a3a; text-decoration: none; }
.lc-title a:hover { text-decoration: underline; }
.lc-vin-sep {
  width: 4px; height: 4px; border-radius: 10px;
  background: #B4C1D3; margin: 0 7px; flex-shrink: 0;
}
.lc-vin-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px; color: #7F8FA4;
}
.lc-title-right {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; padding-left: 5px;
}
/* Source badge (IAAI / Copart) — Figma exact */
.lc-source-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 10px; border-radius: 4px;
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 12px; line-height: 18px; text-transform: uppercase;
}
.lc-source-iaai {
  background: #C90106; color: #fff;
  box-shadow: inset 0 0 0 1px #C90106;
}
.lc-source-copart {
  background: #0E5DB8; color: #fff;
  box-shadow: inset 0 0 0 1px #0E5DB8;
}
/* Auction count badge */
.lc-auction-count {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 8px; border-radius: 4px;
  font-family: 'Lato', sans-serif; font-weight: 600;
  font-size: 12px; line-height: 18px;
  background: #FFF3CD; color: #856404;
  box-shadow: inset 0 0 0 1px #FFE69C;
}
/* Heart/bookmark */
.lc-bookmark {
  width: 26px; height: 26px; border-radius: 4px;
  background: #F5F6F8; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all .15s;
}
.lc-bookmark:hover { background: #eee; }
.lc-bookmark svg { width: 14px; height: 14px; opacity: 0.8; }

/* Specs row (Figma: grey bg, icons + text) */
.lc-specs {
  display: flex; align-items: center; gap: 0;
  padding: 4px 11px; background: #F6F6F8;
  border-radius: 6px; height: 38px;
  width: fit-content; max-width: 100%;
  overflow: hidden;
}
.lc-spec {
  display: inline-flex; align-items: center; gap: 0;
  height: 30px; margin-right: 15px;
}
.lc-spec:last-of-type { margin-right: 0; }
.lc-spec-icon {
  width: 23px; height: 30px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.lc-spec-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.lc-spec-icon img { width: 22px; height: 22px; object-fit: contain; }
.lc-spec-icon-wide {
  width: 29px; height: 36px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.lc-spec-icon-wide svg { width: 24px; height: 24px; flex-shrink: 0; }
.lc-spec-icon-wide img { width: 24px; height: 24px; object-fit: contain; }
.lc-spec-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 12px; line-height: 18px; color: #7F8FA4;
  white-space: nowrap; margin-left: 14px;
}
.lc-spec-drive-text {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 12px; line-height: 18px; color: #7F8FA4;
  white-space: nowrap;
}
/* Tooltip for specs */
.lc-spec[title], .lc-spec-text[title] {
  position: relative; cursor: default;
}
.lc-spec[title]:hover::after, .lc-spec-text[title]:hover::after {
  content: attr(title);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: #334150; color: #fff; font-family: 'Lato', sans-serif;
  font-size: 11px; font-weight: 400; line-height: 16px;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
  z-index: 100; pointer-events: none;
}
.lc-spec[title]:hover::before, .lc-spec-text[title]:hover::before {
  content: '';
  position: absolute; bottom: calc(100% + 2px); left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: #334150;
  z-index: 100; pointer-events: none;
}
.lc-spec-sep { width: 0; margin: 0; }

/* Detail grid (Figma: 3 columns, 2 rows) */
.lc-details {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 10px; font-family: 'Lato', sans-serif;
}
.lc-detail-item {
  display: flex; flex-direction: column;
  padding: 0;
}
.lc-detail-label {
  font-weight: 400; font-size: 12px; line-height: 18px;
  color: #7F8FA4; padding-top: 3px;
}
.lc-detail-value {
  font-weight: 400; font-size: 13px; line-height: 20px;
  color: #334150; display: flex; align-items: center; gap: 0;
  margin-top: 2px;
}
.lc-detail-check {
  width: 19px; height: 19px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.lc-detail-check svg { width: 19px; height: 19px; }
.lc-detail-status-green {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 13px; line-height: 19.5px; color: #16AD59;
}

/* Price section (right) */
.lc-price {
  width: 247px; min-width: 180px; flex-shrink: 1;
  border-left: 1px solid #E6EDF6;
  padding-left: 21px;
  display: flex; flex-direction: column;
  justify-content: center;
}
/* Estimated price row */
.lc-est-row {
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 10px; padding-left: 1px;
}
.lc-est-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.lc-est-icon svg { width: 16px; height: 16px; }
.lc-est-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 12px; line-height: 18px; color: #7F8FA4;
}
/* Auction date row */
.lc-date-row {
  display: flex; align-items: center; gap: 6px;
  height: 19.5px;
}
.lc-date-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.lc-date-icon svg { width: 20px; height: 20px; }
.lc-date-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px; color: #334150;
}
/* Price box (bid.cars style: label + value inline) */
.lc-price-box {
  background: #F6F6F8; border-radius: 5px;
  padding: 5px 5px 5.5px; text-align: center;
  margin-top: 12px;
}
.lc-price-box-label {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 12px; line-height: 18px; color: #7F8FA4;
}
.lc-price-box-value {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 15px; line-height: 22.5px; color: #334150;
  display: block;
}
.lc-price-box-value-red { color: #EF2621; }
.lc-price-box-finished { background: rgba(255,135,132,0.07); }
/* Dual price box (open auction: bid + buy now side by side) */
.lc-price-box-dual {
  display: flex; align-items: stretch; padding: 5px 0;
}
.lc-price-box-dual .lc-price-box-col {
  flex: 1; text-align: center; padding: 0 5px;
}
.lc-price-box-dual .lc-price-box-col + .lc-price-box-col {
  border-left: 1px solid #E6EDF6;
}
/* Bid status row (unified for all variants) */
.lc-bid-status {
  display: flex; align-items: center; gap: 0;
  margin-top: 2px; padding-top: 0;
}
.lc-bid-status-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px;
}
.lc-bid-status-text-green { color: #16AD59; }
.lc-bid-status-text-red { color: #EF2621; }
.lc-bid-status-end {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px; color: #7F8FA4;
  margin-left: auto;
}
/* Status pill */
.lc-status-pill {
  display: flex; align-items: center; justify-content: center;
  gap: 0; height: 28px; border-radius: 100px;
  margin-top: 10px; position: relative;
}
.lc-status-pill-green { background: rgba(0,204,82,0.08); }
.lc-status-pill-yellow { background: rgba(255,184,56,0.08); }
.lc-status-pill-red { background: rgba(201,1,6,0.08); }
.lc-status-pill-gray { background: rgba(127,143,164,0.08); }
.lc-status-pill-finished { background: #FFF7F6; }
.lc-status-pill-finished .lc-status-text { color: #EF2621; }
.lc-status-dot {
  width: 7px; height: 7px; border-radius: 100px;
  flex-shrink: 0; margin-right: 6px;
}
.lc-status-dot-green { background: #00CC52; }
.lc-status-dot-yellow { background: #0E5DB8; }
.lc-status-dot-red { background: #C90106; }
.lc-status-dot-gray { background: #7F8FA4; }
.lc-status-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px; color: #334150;
}
/* Timer icon with indicator dot */
.lc-timer-icon {
  width: 20px; height: 20px; flex-shrink: 0; position: relative; margin-right: 6px;
}
.lc-timer-icon svg { width: 20px; height: 20px; }
.lc-timer-dot {
  width: 7px; height: 7px; border-radius: 100px;
  position: absolute; bottom: -2px; left: 6px;
}
.lc-timer-dot-green { background: #00CC52; }
.lc-timer-dot-red { background: #EF2621; }
.lc-timer-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px;
}
.lc-timer-text-red { color: #EF2621; }


/* === CARD VARIANT: Completed (Finished today) === */
/* .lc-bid-status-red — no extra styles needed, inherits from .lc-bid-status */

/* === CARD VARIANT: Open Auction === */
.lc-status-pill-open {
  background: #16AD59; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  height: 28px; margin-top: 10px; width: 100%; cursor: default;
}
.lc-status-pill-open .lc-status-text {
  color: #fff;
}
/* .lc-bid-status-green — no extra styles needed */
.lc-countdown-text {
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 13px; line-height: 19.5px; color: #16AD59;
}

/* === Status value colors === */
.lc-detail-status-golden {
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 13px; line-height: 19.5px; color: #E0A42E;
}
/* Old price elements — hide/override */
.lc-est-price, .lc-auction-date, .lc-bid-label, .lc-bid-value, .lc-auction-status { display: none; }

/* ===== LOT CARD — GRID VIEW ===== */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.lot-card-grid {
  background: #fff; border-radius: 10px; border: 1px solid #eee;
  overflow: hidden; cursor: pointer; transition: box-shadow .2s;
  display: flex; flex-direction: column;
}
.lot-card-grid:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.gc-image { position: relative; background: #f0f0f0; }
.gc-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gc-image-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.gc-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.gc-title {
  font-size: 15px; font-weight: 600; font-family: 'Lato', sans-serif;
  color: #334150; margin-bottom: 4px;
}
.gc-meta {
  font-size: 11px; color: #7F8FA4; font-family: 'Lato', sans-serif;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.gc-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.gc-spec {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-family: 'Lato', sans-serif; color: #7F8FA4;
  padding: 2px 6px; background: #F6F6F8; border-radius: 4px;
}
.gc-spec svg { width: 12px; height: 12px; color: #7F8FA4; }
.gc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 10px; border-top: 1px solid #E6EDF6;
}
.gc-price { font-size: 18px; font-weight: 700; color: #334150; font-family: 'Lato', sans-serif; }
.gc-price-label { font-size: 11px; color: #7F8FA4; font-weight: 400; }
.gc-bid { text-align: right; }
.gc-bid-label { font-size: 11px; color: #7F8FA4; }
.gc-bid-value { font-size: 16px; font-weight: 600; color: #334150; font-family: 'Lato', sans-serif; }
.gc-status {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #334150; margin-top: 4px;
}

/* ===== PAGINATION ===== */
.cat-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 30px 0;
}
.cat-pagination button {
  min-width: 36px; height: 36px; border: 1px solid #e0e2e7; border-radius: 6px;
  background: #fff; font-size: 13px; font-family: 'Lato', sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #334150; transition: all .15s; padding: 0 8px;
}
.cat-pagination button:hover { border-color: #1254FF; color: #1254FF; }
.cat-pagination button.active { background: #1254FF; color: #fff; border-color: #1254FF; }
.cat-pagination button:disabled { opacity: .4; cursor: default; }
.cat-pagination .pg-dots { font-size: 13px; color: #7F8FA4; padding: 0 4px; }

/* No results */
.cat-no-results {
  text-align: center; padding: 60px 20px; color: #7F8FA4;
  font-size: 16px; font-family: 'Lato', sans-serif;
  width: 100%;
}

/* Mobile filter toggle */
.cat-mobile-filter-btn {
  display: none; width: 100%; padding: 10px; background: #fff;
  border: 1px solid #e0e2e7; border-radius: 8px; font-size: 14px;
  font-family: 'Lato', sans-serif; cursor: pointer; text-align: center;
  margin-bottom: 12px; color: #334150;
}
.cat-mobile-filter-btn svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: middle; }

/* ===== ARCHIVE MODE (tab) ===== */
.archive-mode .lot-card,
.archive-mode .lot-card-grid { opacity: .55; filter: grayscale(60%); }
.archive-mode .lot-card:hover,
.archive-mode .lot-card-grid:hover { opacity: .75; filter: grayscale(30%); }

/* ===== ARCHIVE ===== */
.archive-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid #E6EDF6; }
.archive-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 15px; font-weight: 600; color: #7F8FA4; font-family: 'Lato', sans-serif;
}
.archive-header svg { width: 18px; height: 18px; }
.archive-grid { display: flex; flex-direction: column; gap: 0; }
.lot-card.archive-card { opacity: .55; filter: grayscale(60%); }
.lot-card.archive-card:hover { opacity: .75; filter: grayscale(30%); }
.archive-badge-overlay {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  background: #f5f5f7; color: #86868b; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; letter-spacing: .3px;
}

/* ===== RESPONSIVE ===== */

/* Mobile filter overlay — hidden for accordion approach */
.cat-sidebar-overlay {
  display: none;
}

@media (max-width: 1100px) {
  .catalog-layout { flex-direction: column; gap: 0; }
  .cat-sidebar { width: 100%; position: relative; }
  .cat-content { width: 100%; max-width: 100%; overflow-x: hidden; }

  /* Accordion filter panel — drops down from top */
  .cat-filter-panel {
    position: relative; top: auto; left: auto; bottom: auto;
    width: 100%; max-height: 0; z-index: 50; border-radius: 8px;
    overflow: hidden; transition: max-height .35s ease, opacity .25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    opacity: 0; pointer-events: none;
  }
  .cat-sidebar.open .cat-filter-panel {
    max-height: 70vh; opacity: 1; pointer-events: auto;
    overflow-y: auto;
  }
  .cat-mobile-filter-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; padding: 12px; background: #fff;
    border: 1px solid #e0e2e7; border-radius: 8px; font-size: 14px;
    font-family: 'Lato', sans-serif; cursor: pointer; text-align: center;
    margin-bottom: 0; color: #334150; font-weight: 600;
  }
  .cat-sidebar.open .cat-mobile-filter-btn {
    border-radius: 8px 8px 0 0; border-bottom: none; margin-bottom: 0;
    background: #f0f4ff;
  }
  .cat-mobile-filter-btn svg { width: 18px; height: 18px; }

  /* Lot card — stack vertically */
  .lot-card { flex-direction: column; gap: 12px; padding: 14px; max-width: 100%; }
  .lc-image { width: 100%; min-width: 0; }
  .lc-image img { aspect-ratio: 16/10; height: auto; max-height: 260px; }
  .lc-wrapper { gap: 8px; max-width: 100%; overflow: hidden; }
  .lc-column { flex-direction: column; gap: 12px; }
  .lc-info { gap: 8px; max-width: 100%; overflow: hidden; }
  .lc-price {
    width: 100%; min-width: 0; border-left: none;
    border-top: 1px solid #E6EDF6; padding-left: 0; padding-top: 12px;
    flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center;
  }
  .lc-price > * { flex-shrink: 0; }
  .lc-est-row { padding-bottom: 0; }
  .lc-price-box { flex: 1; min-width: 140px; margin-top: 0; }
  .lc-status-pill { margin-top: 0; flex: 0 0 auto; }
  .lc-bid-status { flex-wrap: wrap; }

  /* Tabs — horizontal scroll */
  .cat-tabs-bar {
    padding: 0 12px; min-height: 52px; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .cat-tabs-bar::-webkit-scrollbar { display: none; }
  .cat-tabs-bar { scrollbar-width: none; }
  .cat-tabs { gap: 14px; flex-shrink: 0; white-space: nowrap; }
  .cat-tab { padding: 14px 0 12px; white-space: nowrap; }
  .cat-tab-name { font-size: 13px; }
  .cat-tab-count { font-size: 12px; }

  /* Topbar tags — horizontal scroll */
  .catalog-topbar-inner { padding: 3px 10px; max-width: 100%; }
  .topbar-tags { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topbar-tags::-webkit-scrollbar { display: none; }
  .topbar-tags { scrollbar-width: none; }

  /* Grid view */
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

  /* Title overflow */
  .lc-title-left { flex-wrap: wrap; min-width: 0; }
  .lc-title { min-width: 0; }
  .lc-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .lc-vin-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
}

@media (max-width: 768px) {
  .page-title-section { padding: 12px 12px 0; }
  .page-title { font-size: 20px; }
  .catalog-topbar { margin: 10px 0 0; }

  /* Specs row — wrap, constrain width */
  .lc-specs {
    flex-wrap: wrap; height: auto; padding: 6px 10px; gap: 4px;
    width: 100%; max-width: 100%; overflow: hidden;
  }
  .lc-spec { margin-right: 8px; }
  .lc-spec-text { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

  /* Details grid — 2 columns */
  .lc-details { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lc-detail-value { word-break: break-word; overflow-wrap: break-word; }

  /* Title row — stack */
  .lc-title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lc-title-left { flex-wrap: wrap; }
  .lc-title-right { padding-left: 0; }

  /* Price section — stack on small screens */
  .lc-price { flex-direction: column; align-items: stretch; }
  .lc-price-box { min-width: 0; }
  .lc-price-box-dual { flex-direction: row; flex-wrap: wrap; }
  .lc-price-box-dual .lc-price-box-col { min-width: 100px; flex: 1; }
  .lc-date-row { flex-wrap: wrap; }
  .lc-date-text { font-size: 12px; word-break: break-word; }
  .lc-bid-status-text { font-size: 12px; }
  .lc-timer-text { font-size: 12px; }

  /* Grid view — 2 columns still */
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

  /* Pagination — smaller */
  .cat-pagination { padding: 20px 0; gap: 2px; }
  .cat-pagination button { min-width: 32px; height: 32px; font-size: 12px; }

  /* Archive btn — icon only on mobile */
  .cat-archive-btn span { display: none; }
  .cat-archive-btn { padding: 10px; }

  /* Tabs right */
  .cat-tabs-right { flex-shrink: 0; }

  /* Sort button text hide */
  .topbar-sort-btn span { display: none; }

  /* Lot card image — full width */
  .lot-card { padding: 12px; }
  .lc-image img { max-height: 220px; }

  /* Countdown / bid status — prevent overflow */
  .lc-bid-status { max-width: 100%; overflow: hidden; }
  .lc-countdown-text { font-size: 12px; }
  .lc-bid-status-end { font-size: 12px; }
}

@media (max-width: 480px) {
  .lot-card { padding: 10px; gap: 10px; }
  .lc-image img { max-height: 200px; }
  .lc-details { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .lc-detail-label { font-size: 11px; }
  .lc-detail-value { font-size: 12px; }
  .lc-title { font-size: 14px; line-height: 20px; }
  .lc-title a { white-space: normal; }
  .lc-vin-text { font-size: 11px; max-width: 120px; }
  .lc-specs { padding: 4px 8px; gap: 2px; }
  .lc-spec { margin-right: 6px; }
  .lc-spec-text { font-size: 11px; }
  .lc-spec-drive-text { font-size: 11px; }
  .lc-spec-icon { width: 18px; height: 24px; }
  .lc-spec-icon svg { width: 18px; height: 18px; }
  .lc-price-box { padding: 4px; }
  .lc-price-box-value { font-size: 14px; }
  .lc-price-box-label { font-size: 11px; }
  .lc-status-pill { height: 24px; }
  .lc-status-text { font-size: 12px; }
  .cat-tabs { gap: 10px; }
  .cat-tab-name { font-size: 12px; }
  .cat-tab-count { font-size: 11px; }
  .cat-grid { grid-template-columns: 1fr; }
  /* Grid card compact */
  .gc-image img { height: 160px; }
  .gc-body { padding: 10px 12px; }
  .gc-title { font-size: 14px; }
  /* Source badge + bookmark — smaller */
  .lc-source-badge { font-size: 10px; height: 22px; padding: 0 7px; }
  .lc-auction-count { font-size: 10px; height: 22px; padding: 0 6px; }
  .lc-bookmark { width: 22px; height: 22px; }
  .lc-bookmark svg { width: 12px; height: 12px; }
  /* Est row compact */
  .lc-est-row { gap: 6px; }
  .lc-est-text { font-size: 11px; }
  /* Date row compact */
  .lc-date-row { gap: 4px; }
  .lc-date-icon { width: 16px; height: 16px; }
  .lc-date-icon svg { width: 16px; height: 16px; }
  .lc-date-text { font-size: 11px; }
  /* Price dual — stack vertically on very small */
  .lc-price-box-dual { flex-direction: column; padding: 5px; }
  .lc-price-box-dual .lc-price-box-col + .lc-price-box-col { border-left: none; border-top: 1px solid #E6EDF6; padding-top: 4px; margin-top: 4px; }
}

@media (max-width: 360px) {
  .lot-card { padding: 8px; gap: 8px; }
  .lc-image img { max-height: 170px; }
  .lc-title { font-size: 13px; line-height: 18px; }
  .lc-details { grid-template-columns: 1fr; gap: 4px; }
  .lc-specs { padding: 3px 6px; }
  .lc-price-box-value { font-size: 13px; }
  .cat-tabs { gap: 8px; }
  .cat-tab-name { font-size: 11px; }
  .cat-tab-count { font-size: 10px; }
  .lc-vin-text { max-width: 90px; }
}

/* Saved searches */
.saved-searches-block { padding: 12px 15px; border-top: 1px solid #E6EDF6; }
.saved-searches-title { font-size: 11px; font-weight: 600; color: #1254FF; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.saved-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 6px; cursor: pointer; transition: background .15s;
  border: 1px solid #eee; margin-bottom: 4px;
}
.saved-item:hover { background: #f5f8fc; }
.saved-name { font-size: 12px; font-weight: 600; color: #334150; white-space: nowrap; }
.saved-desc { font-size: 10px; color: #7F8FA4; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-del { background: none; border: none; color: #dc2626; font-size: 14px; cursor: pointer; padding: 0; opacity: .5; }
.saved-del:hover { opacity: 1; }
