/* ── 카테고리 페이지 전용 스타일 ── */

/* 헤더 뒤로가기 버튼 */
.back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: none; border: none; cursor: pointer;
  color: #555;
  transition: background 0.15s;
}
.back-btn:active { background: rgba(0,0,0,0.06); }

.cat-page-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
}

/* ── 중분류 필터 탭 바 ── */
.filter-bar {
  background: rgba(254,245,238,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 8px 16px;
  z-index: 39;
}

.filter-chip {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid var(--color-primary-light, #FEF0E6);
  background: var(--color-primary-light, #FEF0E6);
  color: var(--color-primary-dark, #C46840);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: all 0.15s ease;
  touch-action: manipulation;
  white-space: nowrap;
}
.filter-chip.active {
  background: var(--color-primary, #D97B50);
  border-color: var(--color-primary, #D97B50);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.filter-chip:active { opacity: 0.85; }

.chip-count {
  font-size: 10px;
  background: rgba(255,255,255,0.28);
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 600;
}
.filter-chip:not(.active) .chip-count {
  background: var(--color-primary-light, #FEF0E6);
  color: var(--color-primary, #D97B50);
}

/* ── 정렬/뷰 컨트롤 바 ── */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 8px;
}
.result-count {
  font-size: 12px;
  color: #999;
}
.result-count strong {
  color: var(--color-primary, #D97B50);
  font-weight: 700;
}
.sort-controls { display: flex; align-items: center; gap: 6px; }
.sort-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: #555;
  background: #fff; border: 1px solid #e5e5e5;
  border-radius: 8px; padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.sort-btn:active { background: #f5f5f5; }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid #e5e5e5; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; cursor: pointer; transition: all 0.15s;
}
.view-btn.active { border-color: var(--color-primary, #D97B50); color: var(--color-primary, #D97B50); background: var(--color-primary-light, #FEF0E6); }

/* ── 제품 배지 ── */
.badge {
  display: inline-block;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
}
.badge-popular { background: var(--color-primary-light, #FEF0E6); color: var(--color-primary, #D97B50); }
.badge-new     { background: #E8F4FD; color: #4A9EC9; }
.badge-sale    { background: #FFF3E0; color: #E65100; }
.badge-best    { background: #F3E5F5; color: #8B6DB5; }

/* ── 제품 카드 (리스트 뷰) ── */
.product-card {
  background: #fff;
  border-radius: var(--radius-card, 18px);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,0.06));
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:active { transform: scale(0.99); }

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-actions { display: flex; align-items: center; gap: 8px; }


/* 제품 정보 행 */
.product-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.product-thumb-box {
  width: 80px; height: 80px;
  border-radius: 14px;
  background: #f2ede8;
  flex-shrink: 0;
  overflow: hidden;
}
.product-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-info { flex: 1; min-width: 0; }
.product-name {
  font-size: 14px; font-weight: 700; color: #222;
  margin-bottom: 2px;
}
.product-model {
  font-size: 11px; color: #aaa;
  margin-bottom: 4px;
}
.review-row {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: #aaa;
}
.star-rating { color: #FFB020; font-size: 11px; }
.review-count { color: #bbb; }
.consult-row {
  display: flex; align-items: center; gap: 3px;
  margin-top: 3px;
}
.consult-count {
  font-size: 10px; color: #999;
}
.consult-count strong {
  color: var(--color-primary-dark, #C46840); font-weight: 700;
}

/* 월 렌탈료 강조 블록 */
.rental-price-block {
  background: linear-gradient(135deg, var(--color-primary-light, #FEF0E6) 0%, #FDF8F4 100%);
  border-left: 3px solid var(--color-primary, #D97B50);
  border-radius: 0 10px 10px 0;
  padding: 8px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rental-left { display: flex; flex-direction: column; gap: 2px; }
.rental-label {
  font-size: 13px; color: var(--color-primary, #D97B50); font-weight: 700;
  letter-spacing: 0.3px;
}
.rental-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rental-price {
  font-size: 20px; font-weight: 800; color: var(--color-primary, #D97B50);
  line-height: 1;
}
.rental-price span { font-size: 12px; font-weight: 500; color: #888; }

/* 기본가 + 화살표 이미지 겹치기 */
.price-arrow-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  margin-bottom: 1px;
}
.original-price {
  font-size: 11px;
  color: #bbb;
  margin-right: 16px;
}
.price-arrow-img {
  position: absolute;
  width: 52px;
  max-width: none;
  height: auto;
  bottom: 2px;
  left: 38%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* 하단 태그 + 버튼 */
.card-bottom-row {
  display: flex; align-items: center; justify-content: space-between;
}
.card-tags { display: flex; gap: 5px; flex-wrap: nowrap; }

/* ── 카드 하단 액션 (태그 + 버튼 한 줄) ── */
.card-bottom-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-btn-group {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.card-btn-group .btn-rental,
.card-btn-group .btn-consult {
  border: none;
  border-radius: var(--radius-btn, 999px);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  line-height: 1.2;
}
.card-btn-group .btn-rental {
  background: #fff;
  color: var(--color-primary, #D97B50);
  border: 1.5px solid var(--color-primary, #D97B50);
}
.card-btn-group .btn-consult {
  background: linear-gradient(135deg, var(--color-primary, #D97B50), var(--color-primary-dark, #C46840));
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.card-btn-group .btn-rental:active,
.card-btn-group .btn-consult:active { opacity: 0.85; }

/* ── 2-col 그리드 뷰 ── */
.product-list.grid-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── 그리드 카드 전용 ── */
.product-card.gc {
  padding: 0;
  overflow: hidden;
}
/* 이미지 full-bleed */
.gc-img-wrap {
  position: relative;
  width: 100%;
  height: 130px;
  background: #f2ede8;
  overflow: hidden;
}
.gc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* 배지 */
.gc-badge {
  position: absolute;
  top: 8px; left: 8px;
}
/* 이번달 상담 배지 */
.gc-consult-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
/* 비교 체크박스 */
.gc-compare {
  position: absolute;
  bottom: 7px; right: 8px;
  width: 16px; height: 16px;
  accent-color: var(--color-primary, #D97B50);
}
/* 텍스트 영역 */
.gc-body {
  padding: 10px 11px 12px;
}
.gc-body .product-name {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.gc-body .product-model {
  font-size: 10px;
  color: #bbb;
  margin-bottom: 4px;
}
/* 평점 (1줄) */
.gc-review-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
  white-space: nowrap;
}
.gc-rating-num { font-weight: 600; color: #444; }
/* 렌탈료 블록 */
.gc-rental-block {
  background: linear-gradient(135deg, var(--color-primary-light, #FEF0E6) 0%, #FDF8F4 100%);
  border-left: 3px solid var(--color-primary, #D97B50);
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 9px;
}
.gc-rental-label {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 2px;
}
.gc-rental-label .rental-term {
  color: #ccc;
}
.gc-rental-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary, #D97B50);
  line-height: 1.2;
}
.gc-rental-price span { font-size: 11px; font-weight: 500; color: #aaa; }
.gc-rental-block .original-price-row { font-size: 10px; color: #ccc; margin-top: 1px; }
/* 태그 (1줄, 넘치면 숨김) */
.gc-tags {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-bottom: 8px;
}
.gc-tags .tag-pill { font-size: 10px; padding: 2px 4px; flex-shrink: 0; }
/* 상담신청 버튼 */
.gc-btn {
  width: 100%;
  padding: 9px 0;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--color-primary, #D97B50), var(--color-primary-dark, #C46840));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.gc-btn:active { opacity: 0.85; }

/* ── 플로팅 CTA (FAB) ── */
.fab-consult {
  position: fixed;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  right: max(16px, calc(50vw - 195px + 16px));
  z-index: 45;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(37,99,235,0.45);
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.3s ease;
  animation: fab-pulse 2.5s infinite;
  white-space: nowrap;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,99,235,0.45); }
  50%       { box-shadow: 0 6px 28px rgba(37,99,235,0.7); }
}
.fab-consult:active { transform: scale(0.95); animation: none; }

.fab-compare {
  background: linear-gradient(135deg, #555, #333);
  animation: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ── 정렬 Bottom Sheet ── */
.sort-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1000; /* 챗봇(990) 위로 */
  pointer-events: none;
  transition: background 0.3s ease;
}
.sort-sheet-overlay.open {
  background: rgba(0,0,0,0.4);
  pointer-events: auto;
}
.sort-sheet {
  position: fixed;
  bottom: 0; left: 50%; right: auto;
  width: 100%; max-width: 390px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  z-index: 1001; /* 챗봇(990) 위로 */
  transform: translateX(-50%) translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.sort-sheet.open { transform: translateX(-50%) translateY(0); }
.sheet-handle {
  width: 36px; height: 4px;
  background: #e0e0e0; border-radius: 2px;
  margin: 12px auto 16px;
}
.sort-option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-size: 14px; color: #333;
  background: none; border: none;
  text-align: left; cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.sort-option:last-child { border-bottom: none; }
.sort-option:active { background: var(--color-primary-light, #FEF0E6); }
.sort-option.active { color: var(--color-primary, #D97B50); font-weight: 700; }
.sort-option .check-icon { color: var(--color-primary, #D97B50); }

/* ── 비교하기 하단 바 ── */
.compare-bar {
  position: absolute;
  bottom: 72px; /* 하단 네비 위 */
  left: 0; right: 0;
  z-index: 52;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 10px 14px;
  transform: translateY(calc(100% + 72px));
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.compare-bar.visible { transform: translateY(0); }
.compare-bar-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.compare-bar-title { font-size: 13px; font-weight: 700; color: #222; flex: 1; }
.compare-bar-clear { font-size: 11px; color: #aaa; background: none; border: none; cursor: pointer; }
.compare-slots {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.compare-slot {
  flex: 1;
  min-height: 68px;
  border-radius: 10px;
  border: 1.5px dashed #ddd;
  background: #fafafa;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-size: 10px; color: #ccc;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.compare-slot.filled {
  border-color: var(--color-primary, #D97B50);
  border-style: solid;
  background: var(--color-primary-light, #FEF0E6);
}
.compare-slot-name {
  font-size: 10px; font-weight: 700; color: var(--color-primary, #D97B50);
  text-align: center; padding: 0 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;
}
.compare-slot-price { font-size: 10px; color: var(--color-primary-dark, #C46840); }
.compare-slot-del {
  position: absolute; top: 7px; right: 8px;
  font-size: 11px; color: var(--color-primary, #D97B50);
  background: none; border: none; cursor: pointer; line-height: 1;
}
.compare-btn {
  width: 100%; height: 44px;
  border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--color-primary, #D97B50), var(--color-primary-dark, #C46840));
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.compare-btn:disabled { background: #ddd; color: #aaa; cursor: not-allowed; }
.compare-btn:not(:disabled):active { opacity: 0.85; }

/* ── 비교 모달 ── */
.compare-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1000; /* 챗봇(990) 위로 */
  pointer-events: none;
  transition: background 0.3s ease;
}
.compare-modal-overlay.open {
  background: rgba(0,0,0,0.5);
  pointer-events: auto;
}
.compare-modal {
  position: fixed;
  bottom: 0; left: 50%; right: auto;
  width: 100%; max-width: 390px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1001; /* 챗봇(990) 위로 */
  transform: translateX(-50%) translateY(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  max-height: 85vh;
  display: flex; flex-direction: column;
}
.compare-modal.open { transform: translateX(-50%) translateY(0); }
/* 드래그 핸들 */
.compare-modal::before {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.compare-modal-header {
  padding: 10px 20px 12px;
  border-bottom: 1px solid #f0f4f8;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.compare-modal-title { font-size: 15px; font-weight: 800; color: #1e293b; letter-spacing: -0.3px; }
.compare-modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #64748b;
}
.compare-modal-body { overflow: hidden; flex: 1; display: flex; flex-direction: column; }

/* 고정 라벨 + 스크롤 제품 컬럼 레이아웃 */
.compare-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}
/* 왼쪽 라벨 컬럼 — 고정 */
.compare-labels {
  flex-shrink: 0;
  width: 72px;
  border-right: 1px solid #f0f0f0;
  background: #fafafa;
  overflow: hidden;
}
.compare-label-head {
  height: 80px;
  border-bottom: 1px solid #f0f0f0;
}
.compare-label-cell {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #f8f8f8;
  background: #fafafa;
}
/* 오른쪽 제품 컬럼 — 가로 스크롤 */
.compare-products {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  display: flex;
}
.compare-products::-webkit-scrollbar { display: none; }
.compare-product-col {
  flex: 1; /* 2개가 정확히 반반 차지 */
  min-width: 0;
  border-right: 1px solid #f5f5f5;
}
.compare-product-col:last-child { border-right: none; }
.compare-product-head {
  min-height: 80px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  background: var(--color-primary-light, #FEF0E6);
}
.compare-product-head .p-name {
  font-size: 12px; font-weight: 800; color: var(--color-primary, #D97B50);
  text-align: center; line-height: 1.3;
}
.compare-product-head .p-name-main {
  display: block;
  font-size: 12px; font-weight: 800; color: var(--color-primary, #D97B50);
  text-align: center; line-height: 1.3;
  word-break: keep-all;
}
.compare-product-head .p-name-sub {
  display: block;
  font-size: 10px; font-weight: 600; color: var(--color-primary-dark, #C46840);
  text-align: center; line-height: 1.3;
  opacity: 0.85;
  margin-top: 2px;
  word-break: keep-all;
}
.compare-product-head .p-model {
  font-size: 10px; color: var(--color-primary-dark, #C46840); opacity: 0.8;
}
.compare-data-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  font-size: 12px;
  color: #444;
  border-bottom: 1px solid #f8f8f8;
  word-break: keep-all;
  line-height: 1.35;
}
.compare-data-cell.best-cell { color: var(--color-primary, #D97B50); font-weight: 800; }
.compare-data-cell .tag-wrap {
  display: flex; flex-wrap: nowrap; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.compare-data-cell .tag-wrap::-webkit-scrollbar { display: none; }
.compare-data-cell .func-chip {
  font-size: 11px; background: #E8F4FD; color: #3B7FBF;
  padding: 4px 10px; border-radius: 14px; font-weight: 600;
  border: 1px solid #C8DEF0; white-space: nowrap; line-height: 1.2;
}
.compare-data-cell .c-tag {
  font-size: 11px; background: var(--color-primary-light, #FEF0E6); color: var(--color-primary-dark, #C46840);
  padding: 4px 10px; border-radius: 14px; font-weight: 600;
  border: 1px solid var(--color-primary-light, #FEF0E6); white-space: nowrap; line-height: 1.2;
}
.compare-data-cell .promo-tag-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.compare-data-cell .star { color: #f59e0b; font-size: 11px; }
.compare-consult-btn {
  width: calc(100% - 16px); margin: 0 8px;
  padding: 9px 4px;
  border-radius: 8px; border: none;
  background: linear-gradient(135deg, var(--color-primary, #D97B50), var(--color-primary-dark, #C46840));
  color: #fff; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
/* 스크롤 힌트 */
.compare-scroll-hint {
  text-align: center;
  font-size: 10px;
  color: #ccc;
  padding: 6px 0 10px;
  flex-shrink: 0;
}

/* ── 비교 테이블 (table 기반) ── */
.compare-modal-body { overflow-y: auto; }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
/* 라벨 셀 공통 */
.cmp-label-cell {
  width: 58px; min-width: 58px; max-width: 58px;
  font-size: 10px; font-weight: 700; color: #94a3b8;
  background: #f3f4f6;
  border-bottom: 1px solid #e9ecf0;
  border-right: 1px solid #e9ecf0;
  padding: 10px 4px;
  text-align: center; vertical-align: middle;
  word-break: keep-all; line-height: 1.35;
}
/* 제품 헤더 라벨 */
.cmp-head-label {
  background: var(--color-primary-light, #FEF0E6);
  border-right: 1px solid #f5dcc8;
  border-bottom: none;
}
/* 이미지 라벨 */
.cmp-label-img {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  color: #cbd5e1; font-size: 14px;
}
/* 상담 라벨 */
.cmp-label-consult {
  background: #fff;
  border-right: none; border-bottom: none;
  border-top: 2px solid #f1f5f9;
}
/* 데이터 셀 공통 */
.cmp-data-cell {
  text-align: center; vertical-align: middle;
  padding: 11px 9px; font-size: 12px; color: #374151;
  border-bottom: 1px solid #e9ecf0;
  border-right: 1px solid #e9ecf0;
  word-break: keep-all; line-height: 1.4;
}
.cmp-data-cell:last-child { border-right: none; }
/* 홀/짝 행 교차 배경 */
tr:nth-child(odd) .cmp-data-cell:not(.cmp-head):not(.cmp-img):not(.cmp-consult) { background: #fff; }
tr:nth-child(even) .cmp-data-cell:not(.cmp-head):not(.cmp-img):not(.cmp-consult) { background: #f8fafc; }
tr:nth-child(odd) .cmp-label-cell:not(.cmp-head-label):not(.cmp-label-img):not(.cmp-label-consult) { background: #f3f4f6; }
tr:nth-child(even) .cmp-label-cell:not(.cmp-head-label):not(.cmp-label-img):not(.cmp-label-consult) { background: #eceff2; }
/* 제품 헤더 행 */
.cmp-data-cell.cmp-head {
  background: var(--color-primary-light, #FEF0E6);
  padding: 14px 10px;
  border-bottom: none;
  border-right: 1px solid #f5dcc8;
}
.cmp-data-cell.cmp-head:last-child { border-right: none; }
.cmp-data-cell.cmp-head .p-name-main {
  display: block; font-size: 12px; font-weight: 800; color: var(--color-primary-dark, #C46840);
  line-height: 1.35; word-break: keep-all;
}
.cmp-data-cell.cmp-head .p-name-sub {
  display: block; font-size: 10px; font-weight: 600;
  color: var(--color-primary, #D97B50); margin-top: 3px; word-break: keep-all;
}
.cmp-data-cell.cmp-head .p-model {
  font-size: 9px; color: #e0a07a; margin-top: 4px;
}
/* 이미지 행 */
.cmp-data-cell.cmp-img {
  padding: 16px 12px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.cmp-data-cell.cmp-img img {
  width: 100%; max-height: 88px; object-fit: contain;
  border-radius: 12px;
}
/* 스펙 값 */
.spec-val {
  display: block;
  font-size: 11.5px; font-weight: 600; color: #1f2937;
  text-align: left; line-height: 1.5; word-break: keep-all;
}
.spec-val.empty { color: #d1d5db; font-weight: 400; text-align: center; }
/* 상담 행 */
.cmp-data-cell.cmp-consult {
  padding: 10px 6px 12px;
  background: #fff;
  border-top: 2px solid #f1f5f9;
  border-bottom: none;
}
.compare-consult-btn {
  width: calc(100% - 8px); margin: 0 4px;
  padding: 11px 4px;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--color-primary, #D97B50), var(--color-primary-dark, #C46840));
  color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer; letter-spacing: -0.3px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: opacity .15s;
}
.compare-consult-btn:active { opacity: .82; }
.cmp-data-cell .tag-wrap { display: flex; flex-wrap: nowrap; gap: 3px; justify-content: center; }
.cmp-data-cell .c-tag {
  font-size: 11px; background: var(--color-primary-light, #FEF0E6); color: var(--color-primary-dark, #C46840);
  padding: 4px 10px; border-radius: 14px; font-weight: 600;
  border: 1px solid var(--color-primary-light, #FEF0E6); white-space: nowrap; line-height: 1.2;
}
.cmp-data-cell .promo-tag-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
/* 비교 슬롯 썸네일 */
.cmp-slot-thumb {
  width: 30px; height: 30px; object-fit: contain;
  border-radius: 6px; margin-bottom: 2px; flex-shrink: 0;
}

/* ── 비교 토글 버튼 ── */
.compare-check {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 9px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  color: #bbb;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
  letter-spacing: -0.2px;
  line-height: 1;
}
.compare-check.active {
  background: var(--color-primary-light, #FEF0E6);
  border-color: var(--color-primary, #D97B50);
  color: var(--color-primary, #D97B50);
}

/* ── 검색 필터 ── */
.filter-open-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: #666;
  background: #fff; border: 1px solid #e0e0e0;
  border-radius: 8px; padding: 5px 10px;
  cursor: pointer; transition: all 0.15s; position: relative;
  font-weight: 500;
}
.filter-open-btn.has-filter {
  border-color: var(--color-primary, #D97B50); color: var(--color-primary, #D97B50); background: var(--color-primary-light, #FEF0E6);
}
.filter-badge {
  background: var(--color-primary, #D97B50); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px; margin-left: 2px;
}
.filter-sheet-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); z-index: 1000; /* 챗봇(990) 위로 */
}
.filter-sheet-overlay.open { display: block; }
.filter-sheet {
  position: fixed; bottom: 0; left: 50%; right: auto;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 390px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1001; /* 챗봇(990) 위로 */
  max-height: 78vh;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}
.filter-sheet.open { transform: translateX(-50%) translateY(0); }
.filter-sheet .sheet-handle {
  width: 36px; height: 4px;
  background: #ddd; border-radius: 2px;
  margin: 10px auto 6px;
}
.filter-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 20px 12px; flex-shrink: 0;
  border-bottom: 1px solid #f0f0f0;
}
.filter-sheet-title {
  font-size: 16px; font-weight: 700; color: #222;
}
.filter-sheet-actions { display: flex; align-items: center; gap: 12px; }
.filter-reset-btn {
  font-size: 12px; color: #999; background: none; border: none;
  cursor: pointer; text-decoration: underline;
}
.filter-close-btn {
  font-size: 16px; color: #999; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.filter-sheet-body {
  flex: 1; overflow-y: auto;
  padding: 16px 20px 8px;
  -webkit-overflow-scrolling: touch;
}
.filter-group {
  margin-bottom: 18px;
}
.filter-group-title {
  font-size: 13px; font-weight: 700; color: #333;
  margin-bottom: 8px;
}
.filter-option-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter-chip-option {
  font-size: 12px; color: #555; background: #f5f5f5;
  border: 1px solid #e5e5e5; border-radius: 20px;
  padding: 6px 14px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
  font-weight: 500;
}
.filter-chip-option.selected {
  background: var(--color-primary, #D97B50); color: #fff;
  border-color: var(--color-primary, #D97B50);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.filter-sheet-footer {
  flex-shrink: 0; padding: 12px 20px 16px;
  border-top: 1px solid #f0f0f0;
}
.filter-apply-btn {
  width: 100%; padding: 13px 0;
  background: linear-gradient(135deg, var(--color-primary, #D97B50), var(--color-primary-dark, #C46840));
  color: #fff; font-size: 15px; font-weight: 700;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: opacity 0.15s;
}
.filter-apply-btn:active { opacity: 0.85; }
.filter-apply-btn.is-loading {
  pointer-events: none; opacity: 0.7; position: relative; overflow: hidden;
}
.filter-apply-btn.is-loading::after {
  content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: filterBtnShimmer 1s infinite;
}
@keyframes filterBtnShimmer {
  to { left: 100%; }
}
