/* ===== B2C CATALOG STORE ===== */

.catalog-body {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom) + var(--space-4));
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: var(--font-weight-base);
  color: #1e293b;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior-y: none;
}

/* 모바일 스크롤 최적화 */
* {
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: auto;
  overflow-scrolling: touch;
}
.catalog-header {
  position: sticky;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.catalog-single,
.catalog-main,
.catalog-grid,
.catalog-card,
.catalog-sidebar {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.catalog-body img {
  -webkit-user-drag: none;
  pointer-events: none;
  content-visibility: auto;
}

/* 이미지 로딩 최적화 */
.catalog-card__image {
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}
.catalog-gallery__img,
.catalog-card__image {
  image-rendering: auto;
  decoding: async;
}

/* ─── Header ──────────────────────────────────────────────────────────────── */

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 var(--space-3);
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  contain: layout style paint;
}

/* catalog-header-left 제거됨 — 헤더 좌측 정렬로 변경 */

.catalog-header-back,
.catalog-header-filter,
.catalog-header-call,
.catalog-header-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.catalog-header-back:hover,
.catalog-header-filter:hover,
.catalog-header-call:hover,
.catalog-header-share:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.catalog-header-back[hidden],
.catalog-header-call[hidden],
.catalog-header-share[hidden] { display: none; }
.catalog-header-filter { display: none; }
.catalog-header-filter[hidden] { display: none !important; }

/* 헤더 검색창 */
.catalog-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 400px;
  height: 32px;
  padding: 0 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.catalog-header-search svg { flex-shrink: 0; color: #94a3b8; }
.catalog-header-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}
.catalog-header-search input::placeholder { color: #94a3b8; }

.catalog-header-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.catalog-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.catalog-header-sep { display: none; }

.catalog-header-ci {
  height: 20px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.catalog-header-ci[hidden] { display: none; }

.catalog-header-company,
.catalog-header-name,
.catalog-header-position {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.catalog-header-company:empty,
.catalog-header-name:empty,
.catalog-header-position:empty { display: none; }

.catalog-header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  color: #1e293b;
}
.catalog-header-phone[hidden] { display: none; }
.catalog-header-phone svg { color: #64748b; }

.catalog-header-divider {
  font-size: var(--font-size-sm);
  color: #cbd5e1;
  margin: 0 2px;
}
.catalog-header-divider[hidden] { display: none; }
.catalog-header-call { display: none; }

.catalog-header-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin-left: var(--space-1);
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.catalog-header-hamburger:hover { background: #f1f5f9; color: #1e293b; }
.catalog-header-hamburger[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   VIEW 1: 단일 상품 상세
   ═══════════════════════════════════════════════════════════════════════════ */

.catalog-single {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  min-height: calc(100vh - 56px);
}

.catalog-single[hidden] { display: none; }

/* 좌우 스와이프 갤러리 */

.catalog-gallery__track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 400px;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.catalog-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--height-md);
  height: var(--height-md);
  border: none;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.85);
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}
.catalog-gallery__nav--prev { left: 10px; }
.catalog-gallery__nav--next { right: 10px; }

.catalog-gallery__hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.catalog-gallery__counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  height: 22px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: var(--font-size-base);
  display: inline-flex;
  align-items: center;
}

/* 상세 본문 */
.catalog-single__body { padding: 0; }

/* 액션 버튼 (공유 + 전체보기) */

.catalog-single__actions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5) var(--space-4);
}

.catalog-share-btn,
.catalog-browse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex: 1;
  height: var(--height-lg);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  color: #475569;
  cursor: pointer;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

.catalog-browse-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1b2a4a;
}

/* 단일 뷰 CTA */

.catalog-single__cta {
  position: sticky;
  bottom: 0;
  padding: var(--space-3) var(--space-5);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  contain: layout style paint;
}

.catalog-single__cta[hidden] { display: none; }

/* ─── 공유 상세 마크업 (cat- 클래스) ─────────────────────────────────────── */

.cat-hero { padding: var(--space-4) var(--space-5) 0; }
.cat-hero-top { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }
.cat-hero-top > div:first-child { min-width: 0; flex: 1; }
.cat-hero-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.cat-badges-row {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--space-2);
}
.cat-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.cat-share-btn {
  display: flex; align-items: center; justify-content: center;
  width: var(--height-sm); height: var(--height-sm); border: none;
  background: transparent; color: #94a3b8; cursor: pointer; flex-shrink: 0; padding: 0;
}
.cat-share-btn:hover { color: #1e293b; }
.cat-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: var(--font-size-sm); font-weight: var(--font-weight-heavy);
}
/* 차량상태 */
.cat-badge--info    { background: #eef2ff; border-color: #c7d2fe; color: #1b2a4a; }
.cat-badge--success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.cat-badge--warning { background: #fffbeb; border-color: #fde68a; color: #a16207; }
.cat-badge--danger  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
/* 상품구분 */
.cat-badge--rent-new  { background: #EEF4FF; border-color: #D6E4FF; color: #31558C; }
.cat-badge--rent-used { background: #F1F4F8; border-color: #D9E0E8; color: #5E7188; }
.cat-badge--lease     { background: #F3EEFB; border-color: #E0D5F5; color: #6A4599; }
.cat-badge--sub-new   { background: #F3EEFB; border-color: #E0D5F5; color: #6A4599; }
.cat-badge--sub-used  { background: #F3F1F6; border-color: #DDD7E8; color: #6D627F; }
.cat-badge--outline   { background: #fff; border-color: #e2e8f0; color: #475569; }

.cat-carno {
  font-size: var(--font-size-sm); font-weight: var(--font-weight-base); color: #94a3b8; margin-left: var(--space-2);
}
.cat-title {
  font-size: var(--font-size-xl); font-weight: var(--font-weight-heavy); color: #1e293b; line-height: 1.35; margin: 0;
}
.cat-subtitle { font-size: var(--font-size-base); color: #64748b; margin: var(--space-1) 0 0; }
.cat-options { font-size: var(--font-size-base); color: #94a3b8; margin: var(--space-2) 0 0; }

.cat-meta { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.cat-meta-text { font-size: var(--font-size-base); color: #64748b; }
.cat-color-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); background: #f1f5f9; font-size: var(--font-size-sm); color: #475569;
}

.cat-section {
  padding: var(--space-4) var(--space-5) var(--space-2);
}

.cat-section-title {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--font-size-base); font-weight: var(--font-weight-heavy); color: #1e293b;
  margin-bottom: var(--space-2);
}
.cat-section-title svg { color: #475569; flex-shrink: 0; }

/* 가격/보험 테이블 */
.cat-table {
  width: 100%; border-collapse: collapse; font-size: var(--font-size-base);
}
.cat-table th {
  text-align: left; padding: var(--space-2) var(--space-2); background: #f8fafc; color: #64748b;
  font-size: var(--font-size-sm); font-weight: var(--font-weight-strong); border-bottom: 1px solid #e2e8f0;
}
.cat-table td {
  padding: 9px var(--space-2); border-bottom: 1px solid #f1f5f9; color: #1e293b;
}
.cat-table tr:last-child td { border-bottom: none; }

.cat-price-cell { font-weight: var(--font-weight-heavy); color: #1e293b; }

.cat-table--insurance th:first-child,
.cat-table--insurance td:first-child { width: 100px; flex-shrink: 0; }

.cat-note {
  margin-top: var(--space-2); font-size: var(--font-size-sm); color: #94a3b8; line-height: 1.5;
}

/* rows (대여조건, 추가정보) */
.cat-rows { display: flex; flex-direction: column; }
.cat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid #f1f5f9; font-size: var(--font-size-base);
}
.cat-row:last-child { border-bottom: none; }
.cat-row-label { color: #64748b; flex-shrink: 0; }
.cat-row-value { color: #1e293b; font-weight: var(--font-weight-strong); text-align: right; word-break: keep-all; }

/* 가격 문의 */
.cat-inquiry {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 15px; font-weight: var(--font-weight-heavy); color: #3b82f6;
  background: #eff6ff; border-radius: var(--radius-lg); border: 1px solid #bfdbfe;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIEW 2: 카탈로그 그리드
   ═══════════════════════════════════════════════════════════════════════════ */

.catalog-main {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.catalog-main[hidden] { display: none; }

/* ─── 사이드바 (데스크톱) ─────────────────────────────────────────────────── */

.catalog-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: var(--space-3);
  border-right: 1px solid #f1f5f9;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.catalog-sidebar__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid #f1f5f9;
}
.catalog-sidebar__head-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-heavy);
  color: #1e293b;
}
.catalog-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--height-sm);
  height: var(--height-sm);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.catalog-sidebar-overlay {
  display: none;
}
.catalog-sidebar-overlay[hidden] { display: none !important; }

.catalog-sidebar__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px;
}

.catalog-sidebar__count {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}

.catalog-sidebar__count-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  color: #64748b;
}

.catalog-sidebar__count-value {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-heavy);
  color: #1e293b;
}

.catalog-sidebar__count-unit {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-strong);
  color: #64748b;
}

.catalog-sidebar__reset {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: none;
  background: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-strong);
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}
.catalog-sidebar__reset:hover { color: #1e293b; }
.catalog-sidebar__reset svg { flex-shrink: 0; }

.catalog-sidebar__search {
  position: relative;
}

/* sidebar title는 아코디언 섹션에서 정의 */

.catalog-sidebar__section.is-hidden { display: none; }

.catalog-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.catalog-search {
  width: 100%;
  height: 34px;
  padding: 0 var(--space-3) 0 30px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--font-size-base);
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
}

.catalog-search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.catalog-content {
  flex: 1;
  min-width: 0;
  padding-top: var(--space-4);
}

/* 아코디언 섹션 — 가로 칸 스타일 */
.catalog-sidebar__section {
  padding: 2px 0;
  border-bottom: 1px solid #f1f5f9;
}
.catalog-sidebar__section:last-child { border-bottom: none; }
.catalog-sidebar__section.is-hidden { display: none; }

.catalog-sidebar__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--height-md);
  padding: 0 2px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  color: #1e293b;
  cursor: pointer;
  user-select: none;
}
.catalog-sidebar__title::after {
  content: none;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: var(--detail-row-gap);
  padding: var(--space-1) 2px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: #1e293b;
}
.filter-check:hover { background: #f8fafc; border-radius: 3px; }

.filter-check input[type="checkbox"] {
  width: 13px; height: 13px;
  margin: 0;
  accent-color: #1b2a4a;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-check__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-check__count {
  font-size: var(--font-size-xs);
  color: #94a3b8;
  flex-shrink: 0;
}

.filter-check.is-dimmed {
  opacity: 0.35;
}

.filter-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: #1b2a4a;
  color: #fff;
  font-size: 9px;
  font-weight: var(--font-weight-heavy);
  margin-left: var(--space-1);
}

.filter-search-input {
  width: 100%;
  height: 30px;
  padding: 0 var(--space-2);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--font-size-sm);
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
}
.filter-search-input:focus {
  border-color: #3b82f6;
}

.catalog-filter-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: var(--space-2);
}

.catalog-sidebar__section.is-collapsed .catalog-filter-body {
  display: none;
}

#catalog-filter-sections {
  display: flex;
  flex-direction: column;
}

/* ─── Count bar ───────────────────────────────────────────────────────────── */

.catalog-count-bar {
  padding: var(--space-1) var(--space-5) var(--space-2);
  font-size: var(--font-size-base);
  color: #94a3b8;
}

/* ─── Product Grid ────────────────────────────────────────────────────────── */

.catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
  padding: 0 8px 24px !important;
}
/* 모바일 카드가 데스크탑 그리드에서 컴팩트하게 */
.catalog-grid .m-product-card {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-size: 11px;
}
.catalog-grid .m-product-card__media { width: 100%; }
.catalog-grid .m-product-card__img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.catalog-grid .m-product-card__body { padding: 8px; gap: 2px; }
.catalog-grid .m-product-card__title { font-size: 12px; }
.catalog-grid .m-product-card__price { font-size: 13px; }
.catalog-grid .m-product-card__price-sub { font-size: 10px; }

.catalog-card {
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  contain: layout style;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.catalog-card__image-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.catalog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.catalog-card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.catalog-card__badge {
  height: var(--badge-height);
  padding: 0 var(--badge-padding-x);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-heavy);
  display: inline-flex;
  align-items: center;
}

.catalog-card__photo-count {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: var(--badge-height);
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: var(--font-size-sm);
}

.catalog-card__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.catalog-card__carno {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-base);
  color: #94a3b8;
}

.catalog-card__model {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-heavy);
  color: #1e293b;
  line-height: 1.35;
}

.catalog-card__sub {
  font-size: var(--font-size-base);
  color: #64748b;
  line-height: 1.4;
}

.catalog-card__provider {
  font-size: var(--font-size-sm);
  color: #94a3b8;
}

.catalog-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.catalog-card__price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-heavy);
  color: #1e293b;
}

.catalog-card__dep {
  font-size: var(--font-size-xs);
  color: #94a3b8;
}

.catalog-card__price-inquiry {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-strong);
  color: #3b82f6;
}

.catalog-card__tags {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.catalog-card__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 var(--badge-padding-x);
  border-radius: 3px;
  background: #f1f5f9;
  font-size: var(--font-size-xs);
  color: #64748b;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 60px var(--space-4);
  text-align: center;
  font-size: var(--font-size-lg);
  color: #94a3b8;
}

/* ─── Skeleton ────────────────────────────────────────────────────────────── */

.catalog-skeleton-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.catalog-skeleton-card {
  height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #f1f5f9 25%, #e9eef5 50%, #f1f5f9 75%);
  background-size: 400% 100%;
  animation: catalog-shimmer 1.4s ease infinite;
}

@keyframes catalog-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ─── Shared: 가격표 (단일 뷰 + 모달) ────────────────────────────────────── */

.catalog-price-table { width: 100%; }

.catalog-price-table__head {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2);
  background: rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: #94a3b8;
  font-weight: var(--font-weight-heavy);
  margin-bottom: 2px;
}

.catalog-price-table__row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid #f1f5f9;
  font-size: var(--font-size-md);
  align-items: center;
}

.catalog-price-table__row:last-child { border-bottom: none; }

.catalog-price-table__period {
  font-weight: var(--font-weight-heavy);
  color: #475569;
}

.catalog-price-table__rent {
  font-weight: var(--font-weight-heavy);
  color: #1b2a4a;
}

.catalog-price-table__dep {
  color: #64748b;
}

/* 사진 없을 때 */

.catalog-gallery__empty {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #cbd5e1;
}

/* ─── Shared CTA button ──────────────────────────────────────────────────── */

.catalog-cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  height: var(--height-xl);
  border-radius: 10px;
  background: #1b2a4a;
  color: #fff;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-heavy);
  text-decoration: none;
  transition: background var(--transition-normal);
}

.catalog-cta__button:hover { background: #142038; }

.catalog-cta__button--footer {
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Fixed footer ────────────────────────────────────────────────────────── */

.catalog-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  contain: layout style paint;
}

.catalog-footer[hidden] { display: none; }

/* ─── 하단 전화하기 바 (모바일 전용) ─────────────────────────────────────── */

.catalog-bottom-bar {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
  padding: 0 var(--space-4);
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  contain: layout style paint;
}

.catalog-bottom-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #1b2a4a;
  color: #ffffff;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-heavy);
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background var(--transition-fast);
}

.catalog-bottom-bar__btn:active { background: #0f1a2e; }
.catalog-bottom-bar[hidden] { display: none !important; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* 모바일: 사이드바 → 슬라이드 패널 */
@media (max-width: 768px) {
  .catalog-header { height: 50px; }
  .catalog-header-filter:not([hidden]) { display: flex; }
  .catalog-header-phone { display: none !important; }
  .catalog-header-divider { display: none !important; }
  /* catalog-bottom-bar는 hidden 속성으로 제어 */

  .catalog-sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--mobile-topbar-height);
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
    z-index: 90;
    background: rgba(15, 23, 42, 0.4);
  }
  .catalog-sidebar-overlay.is-open { display: block; }

  .catalog-sidebar {
    position: fixed;
    right: 0;
    top: var(--mobile-topbar-height);
    bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
    z-index: 91;
    width: 280px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    will-change: transform;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .catalog-sidebar.is-open {
    transform: translateX(0);
    box-shadow: -2px 0 10px rgba(15, 23, 42, 0.08);
  }

  /* 필터 헤드: 모바일 탑바와 동일 스타일로 고정 */
  .catalog-sidebar__head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1;
    height: 46px;
    padding: 0 var(--space-3);
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .catalog-sidebar__head-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-heavy);
    color: #1e293b;
  }
  .catalog-sidebar__close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
  }

  /* 헤드 이하 내용: 좌우 패딩 적용 */
  .catalog-sidebar > *:not(.catalog-sidebar__head) {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  /* 모바일 필터: 터치 최적화 */
  .catalog-sidebar__title { height: var(--height-lg); font-size: var(--font-size-md); }
  .filter-check { padding: var(--space-2) var(--space-1); font-size: var(--font-size-md); min-height: 38px; }
  .filter-check input[type="checkbox"] { width: 17px; height: 17px; }
  .filter-check__count { font-size: var(--font-size-base); }
  .filter-search-input { height: var(--height-lg); font-size: var(--font-size-xl); }   /* iOS 줌 방지 */
  .catalog-search { height: 38px; font-size: 13px !important; box-sizing: border-box; }
  .catalog-sidebar__search { padding: 0 var(--space-3) var(--space-2); }
  .catalog-search-icon { left: 22px; }
  .catalog-sidebar__summary { padding-top: var(--space-2); padding-bottom: var(--space-1); }
  .catalog-sidebar__count-value { font-size: var(--font-size-lg); }
  .catalog-sidebar__reset { font-size: var(--font-size-md); }

  /* 모바일 상세: cat-title 크기 */
  .cat-title { font-size: var(--font-size-2xl); }
  .cat-subtitle { font-size: var(--font-size-base); }
  .cat-section-title { font-size: var(--font-size-base); }
  .cat-row { font-size: var(--font-size-md); }
  .cat-table th { font-size: var(--font-size-sm); }
  .cat-table td { font-size: var(--font-size-md); }
}


@media (max-width: 600px) {
  .catalog-header { padding: 0 var(--space-2); }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: 0 var(--space-3) 80px;
  }
  .catalog-card__image-wrap { height: 140px; }
  .catalog-card__body { padding: var(--space-2) var(--space-3) var(--space-3); gap: var(--space-1); }
  .catalog-card__tags { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .catalog-card__tag { flex-shrink: 0; }
}

/* 360px 이하에서도 2열 유지 — 여백 최소화로 충분히 들어감 */
