/* 와이어프레임 프로토타입 스타일 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ========================================
     Design System v2.0
     - 60-30-10 Color Rule
     - Major Third (1.25) Typography Scale
     - 8pt Spacing Grid
     ======================================== */

  /* === PRIMARY (60%) - Brand === */
  --primary: #1971c2;
  --primary-hover: #1864ab;
  --primary-active: #155b96;
  --primary-light: #e7f5ff;
  --primary-lighter: #d0ebff;

  /* === SECONDARY (30%) - Surfaces === */
  --surface: #ffffff;
  --surface-secondary: #f8f9fa;
  --surface-elevated: #ffffff;

  /* === ACCENT (10%) - Emphasis === */
  --accent: #e8590c;
  --accent-hover: #d9480f;
  --accent-light: #fff4e6;

  /* === SEMANTIC COLORS === */
  --success: #2f9e44;
  --success-hover: #2b8a3e;
  --success-light: #ebfbee;

  --warning: #f59f00;
  --warning-hover: #e67700;
  --warning-light: #fff9db;

  --danger: #e03131;
  --danger-hover: #c92a2a;
  --danger-light: #ffe3e3;

  --info: #228be6;
  --info-hover: #1c7ed6;
  --info-light: #e7f5ff;

  --purple: #9c36b5;
  --purple-hover: #862e9c;
  --purple-light: #f8f0fc;

  /* === GRAY SCALE === */
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #868e96;
  --gray-600: #495057;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #1e1e1e;

  /* === TEXT COLORS === */
  --text-primary: #1e1e1e;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --text-inverse: #ffffff;

  /* === FOCUS & ACCESSIBILITY === */
  --focus-ring: rgba(25, 113, 194, 0.4);
  --focus-ring-offset: 2px;

  /* === TYPOGRAPHY SCALE (Major Third 1.25) === */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */

  /* === LINE HEIGHTS === */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* === FONT WEIGHTS === */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* === SPACING (8pt Grid) === */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */

  /* === BORDER RADIUS === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

  /* === TRANSITIONS === */
  --transition-fast: 150ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 300ms ease-out;

  /* === BRAND COLORS (Legacy Support) === */
  --samsung: #1428a0;
  --carrier: #e8590c;
  --lg: #a50034;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-100);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

/* ========================================
   ACCESSIBILITY - Focus States
   ======================================== */

/* 전역 Focus 스타일 (키보드 네비게이션) */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: var(--focus-ring-offset);
}

/* 마우스 클릭 시 focus 제거 */
*:focus:not(:focus-visible) {
  outline: none;
}

/* 버튼/링크 Focus (box-shadow 스타일) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Skip to Content (스크린 리더) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   UNIFIED TAB COMPONENT SYSTEM
   - Replaces: .category-tabs, .service-tabs, .community-tabs
   - Usage: .tab-group.tab-group--4 or .tab-group--5
   ======================================== */

.tab-group {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tab-group--3 {
  grid-template-columns: repeat(3, 1fr);
}

.tab-group--4 {
  grid-template-columns: repeat(4, 1fr);
}

.tab-group--5 {
  grid-template-columns: repeat(5, 1fr);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  min-height: 44px; /* 터치 타겟 최소 크기 */
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: var(--transition-normal);
  transition-property: background, border-color, color, box-shadow;
}

.tab-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.tab-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.tab-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.tab-item__icon {
  font-size: 22px;
  line-height: 1;
}

.tab-item__label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  text-align: center;
  white-space: nowrap;
}

/* 5탭 레이아웃 조정 (좁은 공간) */
.tab-group--5 .tab-item {
  padding: var(--space-2) var(--space-1);
}

.tab-group--5 .tab-item__icon {
  font-size: 20px;
}

.tab-group--5 .tab-item__label {
  font-size: 11px;
}

/* 풀너비 탭 (마켓 페이지 스타일) */
.tab-group--full {
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.tab-group--full .tab-item {
  padding: var(--space-4) var(--space-2);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.tab-group--full .tab-item__icon {
  font-size: 24px;
}

.tab-group--full .tab-item__label {
  font-size: var(--text-xs);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Touch Target 보장 */
.touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 모바일 프레임 */
.mobile-frame {
  max-width: 375px;
  margin: 20px auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 헤더 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.header-icons {
  display: flex;
  gap: 12px;
}

.header-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
}

/* 히어로 섹션 */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #d0ebff 100%);
  padding: 24px 16px 20px;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* 검색바 */
.search-bar {
  display: flex;
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
}

.search-bar:hover {
  border-color: var(--primary);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-bar input::placeholder {
  color: var(--gray-500);
}

/* 섹션 */
.section {
  padding: 20px 16px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 빠른 메뉴 */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-item.blue { background: var(--primary-light); border: 1px solid var(--primary); }
.quick-item.blue .quick-text { color: var(--primary); }

.quick-item.green { background: var(--success-light); border: 1px solid var(--success); }
.quick-item.green .quick-text { color: var(--success); }

.quick-item.orange { background: var(--warning-light); border: 1px solid var(--warning); }
.quick-item.orange .quick-text { color: var(--warning); }

.quick-item.purple { background: var(--purple-light); border: 1px solid var(--purple); }
.quick-item.purple .quick-text { color: var(--purple); }

.quick-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.quick-text {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

/* 카테고리 탭 */
.category-tabs {
  display: flex;
  gap: 8px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.cat-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
}

.cat-tab:hover {
  background: var(--gray-200);
}

.cat-tab.active {
  background: var(--primary);
  color: #fff;
}

/* 상품 그리드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 32px;
}

.product-info {
  padding: 12px;
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 4px;
}

.product-shop {
  font-size: 11px;
  color: var(--gray-500);
}

/* 업체 카드 */
.shop-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
}

.shop-card:hover {
  border-color: var(--primary);
}

.shop-info {
  flex: 1;
}

.shop-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.shop-meta {
  font-size: 12px;
  color: var(--gray-500);
}

.shop-btn {
  padding: 10px 20px;
  background: var(--success);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.shop-btn:hover {
  background: #279a3b;
}

/* 하단 네비게이션 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 10px;
  gap: 4px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  font-size: 20px;
}

/* 페이지 하단 여백 (네비 높이) */
.page-content {
  padding-bottom: 70px;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1864ab;
}

.btn-outline {
  background: #fff;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 검색 결과 */
.search-result {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  align-items: center;
  gap: 12px;
}

.search-result:hover {
  border-color: var(--primary);
}

.result-img {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-meta {
  font-size: 12px;
  color: var(--gray-500);
}

.result-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
  margin-top: 6px;
}

/* 상세 페이지 */
.detail-header {
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-meta {
  font-size: 13px;
  color: var(--gray-500);
}

.detail-section {
  padding: 16px;
  background: #fff;
  margin-top: 8px;
}

.detail-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-900);
}

/* 부품 리스트 */
.part-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.part-item:hover {
  background: var(--gray-100);
}

.part-img {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 8px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

.part-info {
  flex: 1;
}

.part-name {
  font-size: 14px;
  font-weight: 500;
}

.part-code {
  font-size: 12px;
  color: var(--gray-500);
}

.part-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--warning);
}

/* 벤더 대시보드 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--gray-200);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.inventory-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--gray-200);
}

.inventory-img {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: 8px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.inventory-info {
  flex: 1;
}

.inventory-name {
  font-size: 14px;
  font-weight: 600;
}

.inventory-meta {
  font-size: 12px;
  color: var(--gray-500);
}

.inventory-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--warning);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  position: relative;
  margin-left: 12px;
}

.toggle-switch.on {
  background: var(--success);
}

.toggle-switch::after {
  content: '';
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.2s;
}

.toggle-switch.on::after {
  left: 22px;
}

/* 뒤로가기 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
}

.back-btn:hover {
  color: var(--primary);
}

/* 플로팅 버튼 */
.fab {
  position: fixed;
  bottom: 80px;
  right: calc(50% - 187px + 16px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-decoration: none;
}

.fab:hover {
  background: #1864ab;
  transform: scale(1.05);
}

/* 페이지 인디케이터 */
.page-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 1000;
}

/* 필터 */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-700);
  white-space: nowrap;
  text-decoration: none;
}

.filter-chip.active {
  background: var(--primary);
  color: #fff;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 14px;
}

/* ============================================
   추가 스타일 (Phase 1 프로토타입)
   ============================================ */

/* 색상 추가 */
:root {
  --danger: #e03131;
  --danger-light: #ffe3e3;
  --blue: #228be6;
  --samsung: #1428a0;
  --carrier: #e8590c;
}

/* 헤더 액션 */
.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  text-decoration: none;
  font-size: 18px;
  border: none;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--gray-200);
}

.icon-btn.highlight {
  background: var(--primary);
  color: white;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
}

.logo-icon {
  margin-right: 6px;
}

.logo-text {
  font-weight: 700;
}

/* 배지 */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.badge-blue {
  background: #e7f5ff;
  color: #1971c2;
}

.badge-samsung {
  background: #e7e9f9;
  color: var(--samsung);
}

.badge-carrier {
  background: #fff4e6;
  color: var(--carrier);
}

/* 히어로 섹션 확장 */
.hero-desc {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* 검색바 확장 */
.search-icon {
  font-size: 18px;
  color: var(--gray-500);
}

.search-placeholder {
  color: var(--gray-500);
  font-size: 14px;
}

/* 검색 입력 */
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
}

.search-clear {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
}

/* 제조사 그리드 */
.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.manufacturer-btn {
  padding: 16px 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.manufacturer-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.manufacturer-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

/* 빠른 메뉴 확장 */
.quick-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
}

.quick-menu-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.quick-menu-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.quick-menu-label {
  font-size: 12px;
  font-weight: 500;
}

/* 섹션 헤더 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-more {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
}

.section-gray {
  background: var(--gray-50);
}

.section-highlight {
  background: linear-gradient(135deg, #fff4e6 0%, #ffec99 100%);
}

/* 카테고리 탭 확장 */
.category-tab {
  flex: 1;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab:hover {
  border-color: var(--primary);
}

.category-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-icon {
  font-size: 20px;
}

.tab-label {
  font-size: 10px;
  text-align: center;
  line-height: 1.2;
}

/* 상품 카드 확장 */
.product-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gray-400);
}

.image-placeholder-large {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--gray-400);
  background: var(--gray-100);
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.product-model {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.product-capacity {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

/* 동네 설정 프롬프트 */
.location-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #fff4e6 0%, #fef3c7 100%);
  border-radius: 16px;
}

.location-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.location-content {
  margin-bottom: 16px;
}

.location-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.location-desc {
  font-size: 13px;
  color: var(--gray-500);
}

/* 공유 섹션 */
.share-prompt {
  text-align: center;
  padding: 20px;
}

.share-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.share-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.share-btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.share-kakao {
  background: #fee500;
  color: #3c1e1e;
}

.share-copy {
  background: var(--gray-200);
  color: var(--gray-700);
}

/* 푸터 */
.footer {
  padding: 24px 16px;
  background: var(--gray-100);
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 60px;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 11px;
  color: var(--gray-400);
}

/* 필터 섹션 */
.filter-section {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.filter-row {
  display: flex;
  gap: 8px;
}

.filter-select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
  outline: none;
}

/* 결과 카운트 */
.result-count {
  font-size: 13px;
  color: var(--gray-500);
}

/* 검색 결과 카드 */
.result-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.result-card:hover {
  border-color: var(--primary);
}

.result-image {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 8px;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-model {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.result-parts {
  font-size: 11px;
  color: var(--success);
  margin-top: 6px;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 12px 24px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  text-align: center;
}

.page-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.page-divider {
  color: var(--gray-400);
  margin: 0 4px;
}

.page-total {
  font-size: 14px;
  color: var(--gray-500);
}

/* 마켓 카테고리 탭 */
.category-tabs-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

/* 5탭 레이아웃 (새제품/중고품/실외기/실내기/부품) */
.category-tabs-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.category-tabs-5 .category-tab {
  padding: 8px 4px;
  font-size: 11px;
}

.category-tabs-5 .tab-icon {
  font-size: 18px;
}

.category-tabs-5 .tab-label {
  font-size: 11px;
  line-height: 1.2;
}

/* 마켓 페이지 5탭 레이아웃 */
.category-tabs-full-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.category-tabs-full-5 .category-tab-large {
  padding: 12px 4px;
}

.category-tabs-full-5 .tab-icon-large {
  font-size: 20px;
}

.category-tabs-full-5 .tab-label-large {
  font-size: 11px;
  line-height: 1.2;
}

.category-tab-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
}

.category-tab-large:hover {
  background: var(--primary-light);
}

.category-tab-large.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.tab-icon-large {
  font-size: 28px;
  margin-bottom: 6px;
}

.tab-label-large {
  font-size: 10px;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}

/* 마켓 필터바 */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.filter-left {
  display: flex;
  gap: 8px;
}

.filter-select-small {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

/* 마켓 상품 그리드 */
.product-grid-market {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.market-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.market-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.market-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.market-info {
  padding: 12px;
}

.market-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-model {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.market-details {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.market-capacity,
.market-quantity {
  font-size: 11px;
  color: var(--gray-500);
}

.market-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 6px;
}

.market-shop {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-500);
}

/* 플로팅 CTA */
.floating-cta {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* 모델 상세 */
.header-detail {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.favorite-btn,
.share-btn {
  background: transparent;
}

/* 이미지 갤러리 */
.image-gallery {
  background: var(--gray-100);
}

.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-indicator {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
}

.thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--primary);
}

/* 모델 정보 */
.model-info {
  padding: 16px;
  background: #fff;
}

.model-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.model-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.model-specs {
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.spec-label {
  font-size: 13px;
  color: var(--gray-500);
}

.spec-value {
  font-size: 13px;
  font-weight: 500;
  font-family: monospace;
}

/* 재고 리스트 */
.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inventory-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.inventory-image {
  grid-row: 1 / 3;
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border-radius: 8px;
}

.inventory-info {
  align-self: center;
}

.inventory-type {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.inventory-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--warning);
}

.inventory-quantity {
  font-size: 12px;
  color: var(--gray-500);
}

.inventory-shop {
  text-align: right;
}

.inventory-actions {
  grid-column: 2 / 4;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

/* 부품 리스트 */
.parts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.part-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  align-items: center;
}

.part-image {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 8px;
  flex-shrink: 0;
}

.part-info {
  flex: 1;
  min-width: 0;
}

.part-type {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.part-code {
  font-size: 12px;
  color: var(--gray-500);
  font-family: monospace;
  margin-bottom: 4px;
}

.part-stock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.part-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--warning);
}

.part-shop {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

.part-expand {
  background: var(--gray-100);
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-full {
  width: 100%;
  margin-top: 12px;
}

/* 외부 가격 */
.external-prices {
  background: var(--gray-50);
  border-radius: 12px;
  overflow: hidden;
}

.external-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.external-price-row:last-child {
  border-bottom: none;
}

.external-name {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.external-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.external-link {
  color: var(--primary);
  text-decoration: none;
}

.bottom-spacer {
  height: 80px;
}

/* 벤더 페이지 */
.header-vendor {
  background: var(--gray-900);
  color: #fff;
}

.header-vendor .back-btn {
  color: #fff;
}

.header-vendor .header-title {
  color: #fff;
}

.header-vendor .icon-btn {
  background: var(--gray-700);
}

/* 벤더 프로필 */
.vendor-info {
  padding: 16px;
  background: var(--gray-900);
  color: #fff;
}

.vendor-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.vendor-avatar {
  width: 56px;
  height: 56px;
  background: var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.vendor-details {
  flex: 1;
}

.vendor-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vendor-status {
  display: inline-block;
}

.vendor-stats {
  display: flex;
  gap: 8px;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--gray-800);
  border-radius: 12px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* 등록 옵션 카드 */
.register-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.register-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.register-quick {
  border-color: var(--warning);
  background: var(--warning-light);
}

.register-new {
  border-color: var(--primary);
  background: var(--primary-light);
}

.register-icon {
  font-size: 32px;
}

.register-content {
  flex: 1;
}

.register-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.register-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.register-arrow {
  font-size: 20px;
  color: var(--gray-400);
}

/* 벤더 필터 */
.vendor-filter {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.search-bar-small {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.search-input-small {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  outline: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.chip {
  padding: 8px 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: var(--primary);
  color: #fff;
}

.filter-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.toggle-input {
  width: 16px;
  height: 16px;
}

.sort-select-small {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

/* 벤더 상품 리스트 */
.vendor-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vendor-product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
}

.vendor-product-card.product-out-of-stock {
  opacity: 0.6;
}

.product-row-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.product-thumb {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 8px;
  flex-shrink: 0;
}

.product-main-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-model-name {
  font-size: 12px;
  color: var(--gray-500);
  font-family: monospace;
  margin-bottom: 6px;
}

.product-type-badge {
  display: flex;
  gap: 6px;
}

.product-price-display {
  font-size: 16px;
  font-weight: 700;
  color: var(--warning);
  white-space: nowrap;
}

.product-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.product-toggles {
  display: flex;
  gap: 16px;
}

.toggle-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.toggle-compact input {
  width: 36px;
  height: 20px;
}

.toggle-label-text {
  color: var(--gray-500);
}

.product-actions {
  display: flex;
  gap: 6px;
}

.btn-danger-outline {
  border: 1px solid var(--danger);
  color: var(--danger);
  background: transparent;
}

.btn-danger-outline:hover {
  background: var(--danger-light);
}

/* 마이페이지 */
.profile-section {
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #1864ab 100%);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.profile-avatar {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  font-size: 28px;
}

.profile-info {
  flex: 1;
  color: #fff;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-email {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.profile-edit {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}

/* 메뉴 리스트 */
.menu-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gray-100);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--gray-50);
}

.menu-item.menu-highlight {
  background: var(--primary-light);
}

.menu-item.logout {
  color: var(--danger);
}

.menu-icon {
  font-size: 20px;
}

.menu-label {
  flex: 1;
  font-size: 14px;
}

.menu-count {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.menu-arrow {
  color: var(--gray-400);
}

/* 업체 페이지 */
.location-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.location-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.location-btn.location-set {
  background: var(--primary-light);
  color: var(--primary);
}

.location-divider {
  color: var(--gray-400);
  font-size: 13px;
}

.location-change {
  color: var(--primary);
  font-weight: 500;
  margin-left: 6px;
}

.map-preview {
  position: relative;
  height: 120px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--gray-500);
}

.map-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.map-text {
  font-size: 13px;
}

.map-expand-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* 업체 리스트 */
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.shop-card:hover {
  border-color: var(--primary);
}

.shop-image {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.shop-info {
  flex: 1;
  min-width: 0;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.shop-name {
  font-size: 15px;
  font-weight: 600;
}

.shop-distance {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.shop-address {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.shop-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.shop-parts {
  color: var(--gray-500);
}

.shop-rating {
  color: var(--warning);
}

.shop-actions-compact {
  display: flex;
  gap: 6px;
}

/* 텍스트 버튼 */
.text-btn {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 13px;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--primary);
}

/* 최근 검색어 */
.recent-searches {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
}

.recent-delete {
  background: none;
  border: none;
  color: var(--gray-400);
  padding: 4px;
  cursor: pointer;
  margin-left: auto;
}

/* 빈 상태 확장 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.empty-actions {
  display: flex;
  gap: 12px;
}

/* ========================================
   업체 상세 페이지 스타일
   ======================================== */

.shop-profile {
  padding: 20px 16px;
  background: white;
  border-bottom: 1px solid var(--gray-100);
}

.shop-profile-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.shop-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.shop-profile-info {
  flex: 1;
}

.shop-profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.shop-profile-address {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.shop-profile-badges {
  display: flex;
  gap: 6px;
}

.shop-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-action-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
}

.action-icon {
  font-size: 20px;
}

.action-text {
  font-size: 13px;
  font-weight: 500;
}

/* 업체 탭 */
.shop-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.shop-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.shop-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 업체 재고 목록 */
.shop-inventory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-inventory-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.inventory-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.inventory-details {
  flex: 1;
  min-width: 0;
}

.inventory-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.inventory-model {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.inventory-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inventory-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.inventory-stock {
  font-size: 12px;
  color: var(--gray-500);
}

.badge-small {
  font-size: 10px;
  padding: 2px 6px;
}

/* 업체 정보 탭 */
.info-card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
}

.info-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.map-placeholder-small {
  height: 120px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.info-address {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.info-address-detail {
  font-size: 12px;
  color: var(--gray-500);
}

.business-hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.hours-day {
  color: var(--gray-600);
}

.hours-time {
  color: var(--gray-900);
}

.hours-closed .hours-time {
  color: var(--danger);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-label {
  font-size: 14px;
  color: var(--gray-500);
}

.contact-value {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.business-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.business-label {
  color: var(--gray-500);
}

.business-value {
  color: var(--gray-700);
}

/* 리뷰 탭 */
.review-summary {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
}

.review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
}

.score-stars {
  font-size: 14px;
}

.review-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.stat-label {
  width: 24px;
  color: var(--gray-500);
}

.stat-progress {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--warning);
  border-radius: 3px;
}

.stat-count {
  width: 20px;
  text-align: right;
  color: var(--gray-500);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: white;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.review-rating {
  font-size: 12px;
}

.review-date {
  font-size: 12px;
  color: var(--gray-400);
  margin-left: auto;
}

.review-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* 하단 고정 CTA */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--gray-200);
  z-index: 100;
}

/* ========================================
   간편 판매 페이지 스타일
   ======================================== */

.header-form {
  background: white;
}

.form-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--gray-200);
}

.banner-icon {
  font-size: 28px;
}

.banner-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.banner-desc {
  font-size: 13px;
  color: var(--gray-600);
}

.sell-form {
  padding: 16px;
}

.form-section {
  margin-bottom: 24px;
}

.form-section-highlight {
  background: var(--gray-50);
  margin: 0 -16px;
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.form-label.required::after {
  content: "*";
  color: var(--danger);
  margin-left: 4px;
}

.optional {
  font-weight: 400;
  color: var(--gray-400);
}

/* 카테고리 선택 */
.category-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.category-option {
  cursor: pointer;
}

.category-option input {
  display: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  transition: all 0.2s;
}

.category-option input:checked + .category-card {
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-icon {
  font-size: 24px;
}

.category-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
}

/* 이미지 업로드 */
.image-upload-area {
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 12px;
  color: var(--gray-400);
}

.image-preview-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.image-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-add {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  flex-shrink: 0;
}

/* 폼 입력 */
.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  color: var(--gray-900);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.price-input-wrapper {
  display: flex;
  align-items: center;
}

.form-input-price {
  text-align: right;
  padding-right: 40px;
  font-weight: 600;
}

.price-unit {
  margin-left: -32px;
  font-size: 15px;
  color: var(--gray-600);
}

/* 수량 입력 */
.quantity-input {
  display: flex;
  align-items: center;
  width: fit-content;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-300);
  background: white;
  font-size: 18px;
  cursor: pointer;
}

.quantity-btn:first-child {
  border-radius: 10px 0 0 10px;
}

.quantity-btn:last-child {
  border-radius: 0 10px 10px 0;
}

.quantity-value {
  width: 60px;
  height: 40px;
  border: 1px solid var(--gray-300);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/* 자동완성 입력 */
.autocomplete-input {
  position: relative;
}

.autocomplete-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--gray-400);
}

/* 셀렉트 */
.form-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  color: var(--gray-900);
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* 텍스트영역 */
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font-size: 15px;
  color: var(--gray-900);
  resize: none;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* 외부 시세 */
.external-price-search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.external-price-search .form-input {
  flex: 1;
}

.external-price-result {
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

.external-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.external-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.external-info {
  flex: 1;
  min-width: 0;
}

.external-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.external-source {
  font-size: 11px;
  color: var(--gray-400);
}

.external-price-col {
  text-align: right;
}

.external-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.bottom-spacer-large {
  height: 100px;
}

/* ========================================
   로그인 페이지 스타일
   ======================================== */

.header-minimal {
  background: transparent;
  border: none;
}

.header-spacer {
  flex: 1;
}

.login-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.login-logo {
  margin-bottom: 48px;
}

.logo-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.logo-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.logo-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.login-buttons {
  width: 100%;
  max-width: 280px;
  margin-bottom: 32px;
}

.btn-kakao {
  width: 100%;
  height: 52px;
  background: #FEE500;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-kakao:hover {
  background: #F5DC00;
}

.kakao-icon {
  font-size: 20px;
}

.login-info {
  margin-bottom: 40px;
}

.login-info-text {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.login-benefits {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.login-benefits li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 6px 0;
}

.guest-notice {
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.guest-text {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.guest-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.login-footer {
  padding: 20px 24px;
  text-align: center;
}

.terms-text {
  font-size: 12px;
  color: var(--gray-400);
}

.terms-text a {
  color: var(--gray-500);
  text-decoration: underline;
}

/* ========================================
   관리자 페이지 스타일
   ======================================== */

.header-admin {
  background: var(--gray-800);
  color: white;
}

.header-admin .logo-icon {
  background: none;
}

.header-admin .logo-text {
  color: white;
}

.header-admin .icon-btn {
  color: white;
}

/* 대시보드 통계 */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--gray-800);
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.stat-icon {
  font-size: 24px;
}

.stat-content {
  flex: 1;
}

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-500);
}

.stat-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.stat-change.positive {
  background: var(--success-light);
  color: var(--success);
}

.stat-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  background: var(--danger);
  color: white;
  border-radius: 4px;
}

/* 빠른 메뉴 */
.admin-quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.admin-menu-card .menu-icon {
  font-size: 24px;
}

.admin-menu-card .menu-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
}

.admin-menu-card .menu-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  padding: 2px 6px;
  background: var(--warning);
  color: white;
  border-radius: 10px;
}

.menu-badge.badge-danger {
  background: var(--danger);
}

/* 관리자 목록 */
.admin-list {
  display: flex;
  flex-direction: column;
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 8px;
}

.admin-list-item.item-urgent {
  border-color: var(--danger);
  background: #fff5f5;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-badges {
  margin-bottom: 4px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.item-meta {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.item-date {
  font-size: 11px;
  color: var(--gray-400);
}

.item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* 시스템 정보 */
.system-info {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--gray-200);
}

.system-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.system-row:last-child {
  border-bottom: none;
}

.system-label {
  font-size: 14px;
  color: var(--gray-600);
}

.system-value {
  font-size: 14px;
  color: var(--gray-800);
}

/* 섹션 배경 변형 - 중복 정의 제거됨 (line 1233에 정의됨) */

/* 성공/위험 버튼 */
.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #27873a;
}

.btn-danger-outline {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: #fff5f5;
}

/* 필터 셀렉트 작은 버전 */
.filter-select-small {
  height: 36px;
  padding: 0 12px;
  padding-right: 28px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-700);
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ==========================================
   Phase 3: 게시판 스타일
   ========================================== */

/* 게시판 탭 */
.board-tabs {
  display: flex;
  overflow-x: auto;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  -webkit-overflow-scrolling: touch;
}

.board-tab {
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-badge {
  background: var(--danger);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* 게시판 검색 */
.board-search {
  padding: 12px 16px;
  background: var(--gray-50);
}

/* 게시판 목록 */
.board-list {
  background: white;
}

.board-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
}

.board-item:hover {
  background: var(--gray-50);
}

.board-item-notice {
  background: #fffbeb;
}

.board-item-with-image {
  display: flex;
  gap: 12px;
}

.board-item-content {
  flex: 1;
  min-width: 0;
}

.board-item-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.board-item-thumb .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.board-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.board-item-date {
  font-size: 11px;
  color: var(--gray-400);
  margin-left: auto;
}

.board-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
  line-height: 1.4;
}

.pin-icon {
  margin-right: 4px;
}

.board-item-preview {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-item-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-500);
}

.meta-author {
  font-weight: 500;
  color: var(--gray-700);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* 더보기 버튼 섹션 */
.load-more-section {
  padding: 16px;
  background: white;
}

/* 플로팅 버튼 */
.fab-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
  text-decoration: none;
  z-index: 100;
}

.fab-icon {
  font-size: 20px;
}

/* ==========================================
   게시글 상세 스타일
   ========================================== */

.post-article {
  background: white;
  padding: 20px 16px;
}

.post-header {
  margin-bottom: 20px;
}

.post-category {
  margin-bottom: 10px;
}

.post-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 14px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.author-date {
  font-size: 12px;
  color: var(--gray-500);
}

.post-stats {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
}

.post-content p {
  margin-bottom: 12px;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.post-image {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.image-placeholder-large {
  width: 100%;
  height: 100%;
}

/* 게시글 태그 */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.post-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.post-tag:hover {
  background: var(--primary);
  color: white;
}

/* 게시글 액션 */
.post-actions {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.post-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background: var(--gray-50);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.post-action-btn:hover {
  background: var(--gray-100);
}

.post-action-danger {
  color: var(--danger);
}

.action-icon {
  font-size: 16px;
}

.action-count {
  font-weight: 600;
}

/* ==========================================
   댓글 섹션 스타일
   ========================================== */

.comments-section {
  background: white;
  padding: 16px;
  margin-top: 8px;
}

.comments-header {
  margin-bottom: 16px;
}

.comments-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.comments-count {
  color: var(--primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 10px;
}

.comment-reply {
  margin-left: 44px;
  padding-left: 12px;
  border-left: 2px solid var(--gray-200);
}

.comment-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.author-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-weight: 500;
}

.vendor-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--success);
  color: white;
  border-radius: 4px;
  font-weight: 500;
}

.comment-date {
  font-size: 11px;
  color: var(--gray-400);
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.mention {
  color: var(--primary);
  font-weight: 500;
}

.comment-actions {
  display: flex;
  gap: 12px;
}

.comment-action {
  font-size: 12px;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-action:hover {
  color: var(--gray-700);
}

/* 관련 게시글 */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-post-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
}

.related-post-item:hover {
  background: var(--gray-50);
}

.related-title {
  font-size: 14px;
  color: var(--gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 댓글 입력바 */
.comment-input-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 375px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--gray-200);
  z-index: 100;
}

.comment-input-wrapper {
  display: flex;
  gap: 8px;
}

.comment-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--gray-300);
  border-radius: 21px;
  font-size: 14px;
}

.comment-input:focus {
  border-color: var(--primary);
  outline: none;
}

.comment-submit-btn {
  padding: 0 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================
   게시글 작성 스타일
   ========================================== */

.write-form {
  padding: 16px;
}

/* 카테고리 칩 */
.category-chips {
  display: flex;
  gap: 10px;
}

.category-chip {
  cursor: pointer;
}

.category-chip input {
  display: none;
}

.chip-text {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  font-size: 14px;
  color: var(--gray-600);
  transition: all 0.2s;
}

.category-chip input:checked + .chip-text {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 이미지 첨부 */
.image-attach-area {
  margin-top: 8px;
}

.image-attach-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.image-attach-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.image-attach-item .image-placeholder {
  width: 100%;
  height: 100%;
}

.image-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
}

.image-attach-add {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-attach-add:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.add-icon {
  font-size: 24px;
  color: var(--gray-400);
}

.add-text {
  font-size: 11px;
  color: var(--gray-500);
}

/* 태그 입력 */
.tag-input-wrapper {
  display: flex;
  gap: 8px;
}

.tag-input-wrapper .form-input {
  flex: 1;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-light);
  border-radius: 16px;
}

.tag-chip-text {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.tag-remove {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

/* 자동 감지 태그 */
.auto-detect-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.auto-icon {
  font-size: 16px;
}

.auto-detect-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
}

.auto-tag-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.auto-tag-text {
  font-size: 14px;
  color: var(--gray-700);
}

/* 토글 스위치 */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

.toggle-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 14px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* 문자수 카운터 */
.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.char-count {
  font-size: 12px;
  color: var(--gray-500);
}

/* ==========================================
   알림 페이지 스타일
   ========================================== */

.notification-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
}

.notif-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-tab.active {
  background: var(--primary);
  color: white;
}

.notif-badge {
  background: white;
  color: var(--primary);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.notif-tab.active .notif-badge {
  background: white;
  color: var(--primary);
}

.notification-list {
  padding: 0;
}

.notif-date-group {
  padding: 0 16px;
  margin-bottom: 8px;
}

.notif-date-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 12px 0;
  text-transform: uppercase;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-unread {
  background: #fff8f0;
  margin: 0 -16px;
  padding: 14px 16px;
}

.notif-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notif-icon-comment {
  background: #e3f2fd;
}

.notif-icon-reply {
  background: #e8f5e9;
}

.notif-icon-like {
  background: #fce4ec;
}

.notif-icon-system {
  background: var(--gray-100);
}

.notif-icon-shop {
  background: #fff3e0;
}

.notif-icon-alert {
  background: #fff8e1;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.notif-preview {
  font-size: 13px;
  color: var(--gray-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 12px;
  color: var(--gray-400);
}

.notif-dot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* 알림 설정 힌트 */
.notif-settings-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  padding: 14px;
  background: var(--primary-light);
  border-radius: 12px;
}

.hint-icon {
  font-size: 24px;
}

.hint-content {
  flex: 1;
}

.hint-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.hint-text {
  font-size: 12px;
  color: var(--gray-600);
}

/* ==========================================
   관리자 상세 페이지 스타일
   ========================================== */

/* 관리자 필터 */
.admin-filters {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
}

.filter-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--gray-100);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tab.active {
  background: var(--gray-800);
  color: white;
}

.filter-tab-warning.active {
  background: var(--warning);
}

.filter-tab-success.active {
  background: var(--success);
}

.filter-tab-danger.active {
  background: var(--danger);
}

.filter-count {
  font-weight: 600;
}

.filter-options {
  display: flex;
  gap: 8px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 관리자 검색 */
.admin-search {
  padding: 12px 16px;
  background: var(--gray-50);
}

/* 관리자 요약 */
.admin-summary {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.summary-item {
  flex: 1;
  text-align: center;
}

.summary-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.summary-label {
  font-size: 12px;
  color: var(--gray-500);
}

/* 관리자 업체 목록 */
.admin-shop-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-shop-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.admin-shop-pending {
  border-color: var(--warning);
}

.admin-shop-rejected {
  opacity: 0.7;
}

.shop-status-bar {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.shop-card-content {
  padding: 14px;
}

.shop-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.shop-card-info {
  flex: 1;
  min-width: 0;
}

.shop-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.shop-card-owner {
  font-size: 13px;
  color: var(--gray-600);
}

.shop-card-biz {
  font-size: 12px;
  color: var(--gray-500);
}

.shop-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--gray-600);
}

.shop-card-actions {
  display: flex;
  gap: 8px;
}

/* 관리자 모델 목록 */
.admin-model-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-model-card {
  display: flex;
  gap: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
}

.admin-model-warning {
  border-color: var(--warning);
  background: #fffbeb;
}

.model-card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.model-card-thumb .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.image-missing {
  background: #f8d7da;
  color: var(--danger);
}

.model-card-content {
  flex: 1;
  min-width: 0;
}

.model-card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge-lg {
  background: var(--primary);
  color: white;
}

.badge-samsung {
  background: #1428a0;
  color: white;
}

.badge-carrier {
  background: #e4002b;
  color: white;
}

.badge-etc {
  background: var(--gray-500);
  color: white;
}

.model-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.model-card-indoor {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.model-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-600);
}

.model-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.page-btn {
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
  background: var(--gray-50);
}

.page-info {
  font-size: 14px;
  color: var(--gray-600);
}

/* ========================================
   Phase 4: 마이페이지 서브 + 관리자 추가
   ======================================== */

/* 즐겨찾기 탭 */
.favorites-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.fav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}

.fav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.fav-count {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.fav-tab.active .fav-count {
  background: var(--primary);
  color: white;
}

/* 즐겨찾기 목록 */
.favorites-list {
  padding: 12px;
}

.favorite-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.2s;
}

.favorite-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.favorite-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}

.favorite-content {
  flex: 1;
  min-width: 0;
}

.favorite-header {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.favorite-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorite-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0 0 6px 0;
}

.favorite-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-600);
}

.favorite-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-remove:hover {
  background: var(--danger);
  color: white;
}

/* 히스토리 필터 */
.history-filter {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
}

.filter-chip {
  padding: 8px 16px;
  background: var(--gray-100);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--primary);
  color: white;
}

/* 히스토리 목록 */
.history-list {
  padding: 12px;
}

.history-group {
  margin-bottom: 20px;
}

.history-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  padding: 0 4px 8px;
  margin: 0;
}

.history-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.history-card:hover {
  border-color: var(--primary);
}

.history-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}

.history-content {
  flex: 1;
  min-width: 0;
}

.history-header {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.history-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 2px 0;
}

.history-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0 0 4px 0;
}

.history-time {
  font-size: 11px;
  color: var(--gray-400);
}

.history-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
}

.history-remove:hover {
  background: var(--danger);
  color: white;
}

/* 설정 폼 */
.settings-form {
  padding: 16px;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.settings-profile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 600;
}

.profile-edit-btn {
  position: absolute;
  bottom: 0;
  right: calc(50% - 50px);
  width: 28px;
  height: 28px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.form-input-disabled {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* 동네 표시 */
.dong-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.dong-icon {
  font-size: 18px;
}

.dong-name {
  flex: 1;
  font-size: 14px;
  color: var(--gray-900);
}

/* 토글 리스트 */
.settings-toggle-list {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.settings-toggle-list .toggle-row {
  border-bottom: 1px solid var(--gray-100);
  padding: 16px;
}

.settings-toggle-list .toggle-row:last-child {
  border-bottom: none;
}

/* 알림톡 카드 */
.alimtalk-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #ffe812;
  border-radius: 12px;
}

.alimtalk-icon {
  font-size: 32px;
}

.alimtalk-content {
  flex: 1;
}

.alimtalk-title {
  font-size: 14px;
  font-weight: 600;
  color: #3c1e1e;
  margin: 0 0 4px 0;
}

.alimtalk-desc {
  font-size: 12px;
  color: #5a3d3d;
  margin: 0;
}

/* 설정 메뉴 리스트 */
.settings-menu-list {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.settings-menu-item:last-child {
  border-bottom: none;
}

.settings-menu-item:hover {
  background: var(--gray-50);
}

.menu-icon {
  font-size: 18px;
}

.menu-text {
  flex: 1;
  font-size: 14px;
  color: var(--gray-900);
}

.menu-value {
  font-size: 13px;
  color: var(--gray-500);
}

.menu-arrow {
  color: var(--gray-400);
  font-size: 18px;
}

.settings-menu-danger .menu-text {
  color: var(--danger);
}

/* 회원 관리 */
.admin-user-list {
  padding: 12px;
}

.admin-user-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  margin-bottom: 10px;
}

.admin-user-admin {
  border-color: #fbbf24;
  background: #fffbeb;
}

.admin-user-vendor {
  border-color: var(--primary);
  background: #fff7ed;
}

.admin-user-inactive {
  opacity: 0.7;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-600);
  flex-shrink: 0;
}

.user-avatar-admin {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.user-avatar-vendor {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8a50 100%);
  color: white;
}

.user-avatar-inactive {
  background: var(--gray-300);
  color: var(--gray-500);
}

.user-card-content {
  flex: 1;
  min-width: 0;
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.user-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.badge-admin {
  background: #fbbf24;
  color: #78350f;
}

.badge-vendor {
  background: var(--primary);
  color: white;
}

.badge-customer {
  background: var(--gray-200);
  color: var(--gray-600);
}

.user-card-email {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0 0 2px 0;
}

.user-card-phone {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 0 6px 0;
}

.user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-500);
}

.user-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* 모델 추가 폼 */
.form-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}

.form-notice-vendor {
  background: #fff7ed;
  border-color: #fed7aa;
}

.notice-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px 0;
}

.notice-list {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0;
  padding-left: 18px;
}

.notice-list li {
  margin-bottom: 4px;
}

.notice-text {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}

/* 폼 카드 */
.form-card {
  margin: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.form-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 4px 0;
}

.form-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 0 16px 0;
}

/* 큰 폼 요소 (모바일 최적화) */
.form-select-large,
.form-input-large {
  height: 48px;
  font-size: 16px;
}

.form-textarea-large {
  font-size: 16px;
}

/* 이미지 업로드 큰 버전 */
.image-upload-large {
  height: 160px;
}

.image-upload-large .upload-placeholder {
  flex-direction: column;
  gap: 8px;
}

.image-upload-large .upload-icon {
  font-size: 40px;
}

.image-upload-large .upload-text {
  font-size: 16px;
  font-weight: 600;
}

.image-upload-large .upload-hint {
  font-size: 13px;
  color: var(--gray-400);
}

/* 자동완성 힌트 */
.autocomplete-hint {
  margin-top: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.autocomplete-hint .hint-text {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0 0 8px 0;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.autocomplete-item:hover {
  border-color: var(--primary);
}

.autocomplete-item .item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.autocomplete-item .item-type {
  font-size: 12px;
  color: var(--gray-500);
}

/* ========================================
   서비스 섹션 (업체 유형별)
   ======================================== */

.service-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.service-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
}

.service-tab:hover {
  background: var(--primary-light);
}

.service-tab.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.service-tab .tab-icon {
  font-size: 24px;
}

.service-tab .tab-label {
  font-size: 12px;
  font-weight: 600;
}

/* 업체 리스트 (컴팩트) */
.shop-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-card-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.shop-card-compact:hover {
  background: var(--gray-100);
}

.shop-card-compact .shop-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shop-card-compact .shop-info {
  flex: 1;
  min-width: 0;
}

.shop-card-compact .shop-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 2px 0;
}

.shop-card-compact .shop-desc {
  font-size: 12px;
  color: var(--gray-500);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-compact .shop-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.shop-card-compact .shop-distance {
  font-size: 12px;
  color: var(--gray-500);
}

.shop-card-compact .shop-rating {
  font-size: 12px;
  color: var(--warning);
  font-weight: 600;
}

/* ========================================
   커뮤니티 섹션 (게시판)
   ======================================== */

.community-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.community-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
}

.community-tab:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.community-tab.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.community-tab .tab-icon {
  font-size: 22px;
}

.community-tab .tab-label {
  font-size: 11px;
  font-weight: 600;
}

/* 게시글 리스트 (컴팩트) */
.post-list-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.post-item-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}

.post-item-compact:last-child {
  border-bottom: none;
}

.post-item-compact:hover {
  background: var(--gray-50);
}

.post-category-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 4px;
}

.post-item-compact .post-title {
  flex: 1;
  font-size: 13px;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item-compact .post-meta {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--gray-400);
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */

.legal-content {
  padding: 20px 16px;
  padding-bottom: 80px;
}

.legal-updated {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.legal-article {
  margin-bottom: 24px;
}

.legal-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.legal-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-list {
  margin: 12px 0;
  padding-left: 20px;
}

.legal-list li {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-table {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.legal-table-row {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
}

.legal-table-row:last-child {
  border-bottom: none;
}

.legal-table-header {
  flex-shrink: 0;
  width: 80px;
  padding: 10px 12px;
  background: var(--gray-50);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.legal-table-cell {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--gray-700);
}

/* Shop Type Selector for Register Shop */
.shop-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.shop-type-option input {
  display: none;
}

.shop-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.shop-type-option input:checked + .shop-type-card {
  border-color: var(--primary);
  background: var(--primary-light);
}

.shop-type-icon {
  font-size: 28px;
}

.shop-type-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

/* Model Tags */
.selected-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.model-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  font-size: 12px;
}

.model-tag button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

/* Input with Button */
.input-with-btn {
  display: flex;
  gap: 8px;
}

.input-with-btn .form-input {
  flex: 1;
}

/* Time Range */
.time-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-select-small {
  width: auto;
  min-width: 100px;
}

.time-separator {
  color: var(--gray-500);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  color: var(--gray-700);
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload-area:hover {
  border-color: var(--primary);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-top: 12px;
}

.file-icon {
  font-size: 24px;
}

.file-name {
  flex: 1;
  font-size: 14px;
  color: var(--gray-700);
}

.file-remove {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 16px;
}

/* Agreement Box */
.agreement-box {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 16px;
}

.checkbox-agreement {
  margin-bottom: 12px;
}

.checkbox-agreement:last-child {
  margin-bottom: 0;
}

.checkbox-agreement .checkbox-label {
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-agreement .link {
  color: var(--primary);
  text-decoration: underline;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label {
  font-size: 14px;
  color: var(--gray-700);
}

/* ========================================
   마켓 단계별 필터 UI
   ======================================== */

/* 필터 단계 섹션 */
.filter-step {
  padding: 20px 16px;
}

.step-header {
  margin-bottom: 20px;
}

.step-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.step-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  margin-bottom: 12px;
}

.step-back:hover {
  background: var(--gray-200);
}

/* 필터 그리드 (대분류, 중분류) */
.filter-grid {
  display: grid;
  gap: 12px;
}

.filter-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.filter-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.filter-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 필터 카드 */
.filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.filter-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.filter-card__icon {
  font-size: 32px;
}

.filter-card__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}

.filter-card__desc {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

/* 평형 그룹 */
.capacity-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.capacity-group__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.capacity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capacity-chip {
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}

.capacity-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.capacity-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================================
   마켓 검색 결과 UI
   ======================================== */

.search-result {
  padding: 16px;
}

/* 선택된 필터 */
.selected-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 16px;
}

/* 결과 헤더 */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.result-count {
  font-size: 14px;
  color: var(--gray-500);
}

/* 모델 결과 카드 */
.model-result-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.model-result-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
}

.model-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.model-info {
  flex: 1;
}

.model-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.model-code {
  font-size: 13px;
  color: var(--gray-500);
  font-family: monospace;
}

.model-stock {
  text-align: right;
}

.stock-label {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.stock-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* 업자 카드 목록 */
.vendor-card-list {
  display: flex;
  flex-direction: column;
}

.vendor-card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.vendor-card:last-child {
  border-bottom: none;
}

.vendor-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.vendor-info {
  flex: 1;
}

.vendor-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.vendor-address {
  font-size: 13px;
  color: var(--gray-500);
}

.vendor-stock-price {
  text-align: right;
}

.vendor-quantity {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.vendor-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.vendor-actions {
  display: flex;
  gap: 8px;
}

.vendor-actions .btn {
  flex: 1;
}

/* ========================================
   마켓 필터 패널 (한 화면 방식)
   ======================================== */

.filter-panel {
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-row .filter-label {
  min-width: 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}

.filter-row .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.filter-row .filter-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

/* 더보기 버튼 */
.load-more {
  padding: 16px 0;
}

/* ========================================
   부품 마켓 전용 스타일
   ======================================== */

/* 부품코드 검색 입력 */
.search-input-wrapper {
  display: flex;
  gap: 8px;
  flex: 1;
}

.filter-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* 이미지 포함 업자 카드 */
.vendor-card--with-image {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.vendor-card--with-image:last-child {
  border-bottom: none;
}

.vendor-image {
  grid-row: span 2;
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vendor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  font-size: 24px;
  color: var(--gray-400);
}

.vendor-card--with-image .vendor-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.vendor-card--with-image .vendor-actions {
  grid-column: 2;
}

.vendor-part-code {
  font-size: 12px;
  color: var(--gray-500);
  font-family: monospace;
  margin-top: 2px;
}
