/* ============================================
   에스카 (STRAT MY CAR) - 메인 스타일시트
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --scar-blue: #1B5EBF;
  --scar-navy: #0A2463;
  --scar-light: #4A90D9;
  --scar-accent: #FF6B35;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-900: #111827;
}

body { font-family: 'Noto Sans KR', sans-serif; background: #f9fafb; color: #111827; }

/* ============================================
   페이지 전환 애니메이션
   ============================================ */
.page-fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   헤더
   ============================================ */
#header {
  position: sticky; top: 0; z-index: 1000;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-weight: 900; font-size: 22px;
  color: var(--scar-blue);
  flex-shrink: 0;
}

.logo-icon {
  width: 32px; height: 32px;
  background: var(--scar-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.nav-links { display: flex; gap: 4px; flex: 1; }

.nav-link {
  padding: 8px 16px; border-radius: 8px;
  text-decoration: none;
  font-weight: 500; font-size: 15px; color: #374151;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover { background: #f3f4f6; color: var(--scar-blue); }
.nav-link.active { background: #eff6ff; color: var(--scar-blue); font-weight: 700; }

.header-search {
  flex: 1; max-width: 340px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px; font-family: inherit;
  outline: none; transition: border-color 0.2s;
  background: #f9fafb;
}

.header-search input:focus { border-color: var(--scar-blue); background: white; }

.header-search .search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af; font-size: 14px;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-icon {
  width: 38px; height: 38px; border-radius: 8px;
  border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #374151; font-size: 18px; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}

.btn-icon:hover { background: #f3f4f6; color: var(--scar-blue); }

.btn-login {
  padding: 8px 18px; border-radius: 8px;
  border: 1.5px solid var(--scar-blue);
  background: transparent; color: var(--scar-blue);
  font-weight: 600; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}

.btn-login:hover { background: var(--scar-blue); color: white; }

/* 검색 드롭다운 */
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: white; border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100; overflow: hidden;
  display: none;
}
.search-dropdown.show { display: block; }
.search-item {
  padding: 10px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; transition: background 0.15s;
}
.search-item:hover { background: #f3f4f6; }
.search-item i { color: #9ca3af; }

/* ============================================
   히어로 섹션
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--scar-navy) 0%, var(--scar-blue) 60%, var(--scar-light) 100%);
  padding: 72px 20px 80px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.hero::after {
  content: ''; position: absolute;
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 48px;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: 20px;
  color: white; font-size: 13px; font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px; font-weight: 900;
  color: white; line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span { color: #93c5fd; }

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 17px; line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  padding: 14px 28px; border-radius: 12px;
  background: white; color: var(--scar-blue);
  font-weight: 700; font-size: 16px;
  border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.btn-hero-secondary {
  padding: 14px 28px; border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-weight: 700; font-size: 16px;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); }

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 32px; font-weight: 900; color: white; line-height: 1; }
.hero-stat-num span { font-size: 18px; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

.hero-right {
  flex: 0 0 420px;
  display: flex; flex-direction: column; gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px; padding: 20px;
  color: white;
}

.hero-card-title {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 12px; font-weight: 500;
}

.hero-quick-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}

.hero-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 10px;
  background: rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}

.hero-quick-item:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.hero-quick-item .icon { font-size: 22px; }
.hero-quick-item span { font-size: 11px; color: rgba(255,255,255,0.85); text-align: center; }

/* ============================================
   섹션 공통
   ============================================ */
.section { padding: 60px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-size: 24px; font-weight: 800; color: #111827; }
.section-title span { color: var(--scar-blue); }
.section-subtitle { font-size: 14px; color: #6b7280; margin-top: 4px; }
.see-all {
  font-size: 14px; color: var(--scar-blue); font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.see-all:hover { gap: 8px; }

/* ============================================
   차량 카드
   ============================================ */
.car-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.car-card {
  background: white; border-radius: 16px;
  overflow: hidden; cursor: pointer;
  transition: all 0.25s; border: 1px solid #f0f0f0;
  position: relative;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: #d1d5db;
}

.car-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: #f3f4f6;
}

.car-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}

.car-card:hover .car-img-wrap img { transform: scale(1.05); }

.car-badge {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.badge {
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-new { background: #10b981; color: white; }
.badge-hot { background: #ef4444; color: white; }
.badge-recommended { background: var(--scar-blue); color: white; }
.badge-electric { background: #8b5cf6; color: white; }
.badge-hybrid { background: #059669; color: white; }

.car-favorite-btn {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.car-favorite-btn:hover { transform: scale(1.15); }
.car-favorite-btn.active { color: #ef4444; }
.car-favorite-btn:not(.active) { color: #9ca3af; }

.car-info { padding: 16px; }

.car-brand { font-size: 12px; color: #6b7280; font-weight: 500; }
.car-name { font-size: 16px; font-weight: 700; color: #111827; margin: 2px 0 8px; line-height: 1.3; }

.car-specs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}

.car-spec-tag {
  font-size: 11px; color: #6b7280;
  background: #f3f4f6; padding: 3px 8px;
  border-radius: 4px;
}

.car-price-row {
  display: flex; align-items: baseline; gap: 4px;
  border-top: 1px solid #f3f4f6; padding-top: 12px;
}

.car-price-label { font-size: 12px; color: #9ca3af; }
.car-price { font-size: 22px; font-weight: 900; color: var(--scar-blue); }
.car-price-unit { font-size: 13px; color: #9ca3af; }

.car-includes {
  display: flex; gap: 12px; margin-top: 8px;
}

.car-include-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: #10b981;
}

/* 가로 스크롤 카드 영역 */
.car-scroll-wrap { overflow-x: auto; padding-bottom: 12px; }
.car-scroll-wrap::-webkit-scrollbar { height: 4px; }
.car-scroll-wrap::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 2px; }
.car-scroll-wrap::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.car-scroll { display: flex; gap: 16px; width: max-content; }
.car-scroll .car-card { width: 280px; flex-shrink: 0; }

/* ============================================
   필터 사이드바
   ============================================ */
.page-layout {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 28px;
  padding: 28px 20px;
}

.filter-sidebar {
  width: 260px; flex-shrink: 0;
}

.filter-panel {
  background: white; border-radius: 16px;
  border: 1px solid #f0f0f0; overflow: hidden;
  position: sticky; top: 80px;
}

.filter-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; justify-content: space-between;
}

.filter-header h3 { font-size: 15px; font-weight: 700; }

.filter-reset {
  font-size: 12px; color: #6b7280;
  background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
  transition: all 0.2s; font-family: inherit;
}

.filter-reset:hover { background: #f3f4f6; color: var(--scar-blue); }

.filter-section { padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.filter-section:last-child { border-bottom: none; }
.filter-section-title { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 12px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.filter-chip {
  padding: 6px 12px; border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  font-size: 13px; color: #374151; font-family: inherit;
  background: white; cursor: pointer; transition: all 0.15s;
}

.filter-chip:hover { border-color: var(--scar-blue); color: var(--scar-blue); }
.filter-chip.active { 
  border-color: var(--scar-blue); 
  background: #eff6ff; 
  color: var(--scar-blue); 
  font-weight: 600;
}

/* 가격 범위 슬라이더 */
.price-filter { }
.price-inputs { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.price-input {
  flex: 1; padding: 8px 10px;
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.price-input:focus { border-color: var(--scar-blue); }
.price-sep { color: #9ca3af; font-size: 13px; }

.price-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.price-quick-btn {
  padding: 4px 10px; border-radius: 12px;
  border: 1px solid #e5e7eb; background: white;
  font-size: 12px; color: #6b7280; cursor: pointer;
  transition: all 0.15s; font-family: inherit;
}
.price-quick-btn:hover { border-color: var(--scar-blue); color: var(--scar-blue); }
.price-quick-btn.active { border-color: var(--scar-blue); background: #eff6ff; color: var(--scar-blue); }

/* ============================================
   메인 컨텐츠 영역
   ============================================ */
.main-content { flex: 1; min-width: 0; }

.content-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}

.result-count { font-size: 14px; color: #374151; }
.result-count strong { color: var(--scar-blue); font-weight: 700; }

.sort-select {
  padding: 8px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 14px; font-family: inherit;
  outline: none; cursor: pointer; background: white;
  color: #374151;
}

.sort-select:focus { border-color: var(--scar-blue); }

/* 목록 그리드 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ============================================
   페이지네이션
   ============================================ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 40px;
}

.page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  border: 1.5px solid #e5e7eb; background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: all 0.15s;
  color: #374151; font-family: inherit;
}

.page-btn:hover { border-color: var(--scar-blue); color: var(--scar-blue); }
.page-btn.active { border-color: var(--scar-blue); background: var(--scar-blue); color: white; font-weight: 700; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   상세 페이지
   ============================================ */
.detail-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 28px 20px;
  display: grid; grid-template-columns: 1fr 380px; gap: 32px;
  align-items: start;
}

.car-gallery { border-radius: 16px; overflow: hidden; background: white; border: 1px solid #f0f0f0; }

.gallery-main { aspect-ratio: 16/10; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.gallery-thumbs {
  display: flex; gap: 8px; padding: 12px;
  overflow-x: auto;
}

.gallery-thumb {
  width: 72px; height: 52px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-thumb.active { border-color: var(--scar-blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-specs { background: white; border-radius: 16px; padding: 24px; border: 1px solid #f0f0f0; margin-top: 20px; }
.detail-specs h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec-item { display: flex; flex-direction: column; gap: 3px; }
.spec-label { font-size: 12px; color: #9ca3af; }
.spec-value { font-size: 14px; font-weight: 600; color: #111827; }

/* 사이드 패널 */
.detail-side { position: sticky; top: 80px; }

.price-panel {
  background: white; border-radius: 16px;
  padding: 24px; border: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.price-panel-brand { font-size: 13px; color: #9ca3af; }
.price-panel-name { font-size: 20px; font-weight: 800; margin: 4px 0 16px; }

.price-main {
  background: #eff6ff; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 16px;
}

.price-main-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.price-main-value { font-size: 32px; font-weight: 900; color: var(--scar-blue); }
.price-main-unit { font-size: 14px; color: #6b7280; }

.price-items { display: flex; flex-direction: column; gap: 10px; }
.price-item { display: flex; justify-content: space-between; font-size: 14px; }
.price-item-label { color: #6b7280; }
.price-item-value { font-weight: 600; }

.btn-quote {
  width: 100%; padding: 15px;
  background: var(--scar-blue); color: white;
  border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
  margin-top: 16px;
}

.btn-quote:hover { background: var(--scar-navy); transform: translateY(-1px); }

.btn-call {
  width: 100%; padding: 13px;
  background: white; color: var(--scar-blue);
  border: 2px solid var(--scar-blue); border-radius: 12px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
}

.btn-call:hover { background: #eff6ff; }

.includes-panel {
  background: white; border-radius: 16px;
  padding: 20px; border: 1px solid #f0f0f0;
}

.includes-panel h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.include-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; margin-bottom: 8px; }
.include-check i { color: #10b981; }

/* ============================================
   견적 모달
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}

.modal-overlay.show { opacity: 1; pointer-events: all; }

.modal {
  background: white; border-radius: 20px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95); transition: transform 0.2s;
}

.modal-overlay.show .modal { transform: scale(1); }

.modal-header {
  padding: 24px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
}

.modal-header h3 { font-size: 18px; font-weight: 800; }

.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: #6b7280; transition: all 0.2s;
}

.modal-close:hover { background: #e5e7eb; color: #374151; }

.modal-body { padding: 20px 28px 28px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.2s; background: white; color: #111827;
}

.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--scar-blue); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ============================================
   빈 상태
   ============================================ */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: #9ca3af;
}

.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.empty-desc { font-size: 14px; line-height: 1.6; }

/* ============================================
   로딩 스피너
   ============================================ */
.spinner {
  display: flex; justify-content: center; align-items: center;
  padding: 60px;
}

.spin {
  width: 40px; height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--scar-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   태그 & 배지
   ============================================ */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}

.tag-blue { background: #dbeafe; color: var(--scar-blue); }
.tag-green { background: #d1fae5; color: #059669; }
.tag-red { background: #fee2e2; color: #dc2626; }
.tag-yellow { background: #fef3c7; color: #d97706; }
.tag-purple { background: #ede9fe; color: #7c3aed; }

/* ============================================
   장점/특징 섹션 (홈)
   ============================================ */
.features-section { background: #f0f7ff; padding: 64px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature-card {
  background: white; border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--scar-blue), var(--scar-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: #6b7280; line-height: 1.6; }

/* ============================================
   푸터
   ============================================ */
footer {
  background: #111827; color: #9ca3af;
  padding: 48px 20px 24px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
  padding-bottom: 40px; border-bottom: 1px solid #1f2937;
}

.footer-brand .logo { color: white; font-size: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 12px; color: #9ca3af; }

.footer-col h4 { font-size: 14px; font-weight: 700; color: #f9fafb; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13px; color: #9ca3af; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #f9fafb; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}

.footer-copy { font-size: 12px; color: #4b5563; }

.footer-sns { display: flex; gap: 12px; }
.footer-sns a {
  width: 32px; height: 32px; border-radius: 8px;
  background: #1f2937; color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; text-decoration: none; transition: all 0.2s;
}
.footer-sns a:hover { background: var(--scar-blue); color: white; }

/* ============================================
   알림 토스트
   ============================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 3000; display: flex; flex-direction: column; gap: 8px;
}

.toast {
  background: #111827; color: white;
  padding: 12px 18px; border-radius: 10px;
  font-size: 14px; min-width: 200px;
  display: flex; align-items: center; gap: 10px;
  animation: slideUp 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.toast.info { background: var(--scar-blue); }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================================
   모바일 반응형
   ============================================ */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero-inner { flex-direction: column; gap: 24px; }
  .hero-right { flex: none; width: 100%; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 24px; }
  
  .nav-links { display: none; }
  .header-search { display: none; }
  
  .car-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  .page-layout { flex-direction: column; padding: 16px; }
  .filter-sidebar { width: 100%; position: static; }
  .filter-panel { position: static; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  
  .features-grid { grid-template-columns: 1fr; }
  
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .car-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================
   유틸리티
   ============================================ */
.no-scroll { overflow: hidden; }
.text-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 탭 */
.tabs { display: flex; border-bottom: 2px solid #e5e7eb; margin-bottom: 24px; }
.tab {
  padding: 12px 20px; font-size: 15px; font-weight: 600; color: #9ca3af;
  border: none; background: none; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s;
}
.tab:hover { color: var(--scar-blue); }
.tab.active { color: var(--scar-blue); border-bottom-color: var(--scar-blue); }

/* 필터 모바일 오버레이 */
.filter-toggle-btn {
  display: none; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid #e5e7eb; background: white;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; color: #374151;
}

@media (max-width: 768px) {
  .filter-toggle-btn { display: flex; }
  .filter-sidebar { display: none; }
  .filter-sidebar.mobile-show { display: block; }
}

/* 뱃지 카운트 */
.badge-count {
  background: #ef4444; color: white;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 8px;
  min-width: 16px; text-align: center;
}

/* 전체 보기 그리드 (2~4열 반응형) */
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .home-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .home-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .home-grid { grid-template-columns: 1fr; } }

/* 인기 브랜드 */
.brand-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.brand-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 40px;
  border: 1.5px solid #e5e7eb; background: white;
  font-size: 14px; font-weight: 500; color: #374151;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.brand-chip:hover { border-color: var(--scar-blue); color: var(--scar-blue); background: #eff6ff; }
.brand-flag { font-size: 18px; }

/* 검색 하이라이트 */
mark { background: #fef08a; border-radius: 2px; padding: 0 2px; }
