/* ===== 기본 리셋 & 변수 ===== */
:root {
  --blue: #2E86C1;
  --blue-dark: #1A5F8A;
  --blue-light: #EBF5FB;
  --orange: #F5A623;
  --orange-dark: #E8950E;
  --orange-light: #FEF9EE;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F4;
  --gray-200: #E8EAED;
  --gray-400: #9AA0A6;
  --gray-600: #5F6368;
  --gray-800: #3C4043;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --red: #E53935;
  --green: #27AE60;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--black);
  min-height: 100vh;
  padding-bottom: 80px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }
input { outline: none; border: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 헤더 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.logo-blue { color: var(--blue); }
.logo-black { color: var(--black); }

/* 싸카스포츠 로고 스타일 */
.logo-brand {
  color: var(--blue);
  font-weight: 900;
  font-size: 18px;
}
.logo-desc {
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  margin-left: 2px;
}
.logo-api {
  color: var(--gray-400);
  font-size: 11px;
  font-weight: 400;
  margin-left: 3px;
}

/* 모바일에서 로고 줄여서 표시 */
@media (max-width: 480px) {
  .logo-desc { font-size: 12px; }
  .logo-api { display: none; }
}

.search-bar-header {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 24px;
  padding: 0 16px;
  height: 40px;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}
.search-bar-header:focus-within {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,134,193,0.12);
}
.search-bar-header input {
  flex: 1;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
}
.search-bar-header input::placeholder { color: var(--gray-400); }

.search-btn-sm {
  background: none;
  font-size: 16px;
  padding: 4px;
  transition: transform 0.2s;
}
.search-btn-sm:hover { transform: scale(1.1); }

.header-nav {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}
.header-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--blue); }

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--gray-800);
  cursor: pointer;
  line-height: 0;
}
.hamburger svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 8px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 20px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-800);
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--gray-50); }

/* ===== 페이지 전환 ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== 히어로 ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #5DADE2 100%);
  padding: 56px 16px 48px;
  text-align: center;
  color: white;
}
.hero-content { max-width: 680px; margin: 0 auto; }

.hero-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
  color: white;
}
.hero-blue {
  color: var(--orange);
  text-shadow: 0 2px 8px rgba(245,166,35,0.4);
}
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 600px;
  margin: 0 auto 20px;
}
.hero-search input {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search-btn {
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 0 24px;
  white-space: nowrap;
  transition: background 0.2s;
}
.hero-search-btn:hover { background: var(--orange-dark); }

/* ===== 검색 옵션 (해외 체크박스 + 검색수 선택) ===== */
.search-options {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}
.search-opt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 6px 14px;
  transition: background 0.2s;
  color: white;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
}
.search-opt-item:hover {
  background: rgba(255,255,255,0.28);
}
.search-opt-item input[type="checkbox"] {
  accent-color: #fff;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.opt-icon { font-size: 15px; }
.opt-label { font-size: 13px; }
.search-count-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  padding: 6px 14px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}
.search-count-sel {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  cursor: pointer;
  outline: none;
}
.search-count-sel option {
  color: #333;
  background: #fff;
}

/* 검색결과 페이지 inline 옵션 */
.search-opt-inline {
  background: none;
  border: 1.5px solid var(--blue-light);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--blue-dark);
  margin-left: 6px;
}
.search-opt-inline:hover {
  background: rgba(25,118,210,0.07);
}
.sort-wrap .search-count-sel {
  background: var(--white);
  border: 1.5px solid var(--blue-light);
  border-radius: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  margin-left: 6px;
}
.sort-wrap .search-count-sel option {
  color: #333;
  background: #fff;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}

/* ===== 카테고리 탭 ===== */
.category-section { padding: 24px 0 40px; }

.tab-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}
.tab-row::-webkit-scrollbar { display: none; }

.tab-btn {
  white-space: nowrap;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}
.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 2px 8px rgba(46,134,193,0.3);
}

/* ===== 홈 안내 화면 ===== */
.home-guide-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 48px;
  text-align: center;
  gap: 12px;
}
.home-guide-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 4px;
}
.home-guide-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
}
.home-guide-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}
.home-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.home-guide-chip {
  padding: 9px 20px;
  border-radius: 24px;
  border: 1.5px solid var(--blue);
  background: #f0f6ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.home-guide-chip:hover {
  background: var(--blue);
  color: #fff;
}

/* ===== 로딩 ===== */
.loading-wrap {
  text-align: center;
  padding: 48px 0;
  color: var(--gray-400);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 상품 그리드 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 상품 카드 ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover .card-actions { opacity: 1; }

.card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform 0.2s;
}
.card-action-btn:hover { transform: scale(1.15); }
.card-action-btn.wishlisted { background: #FFF0F0; }

.card-body {
  padding: 12px;
}
.card-mall {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  height: 36px;
}
.card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.card-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--orange-dark);
}
.card-price-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
}
.card-price-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-left: 2px;
}

.card-compare-btn {
  margin-top: 10px;
  width: 100%;
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 7px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s;
}
.card-compare-btn:hover {
  background: var(--blue);
  color: white;
}

/* ===== 더보기 ===== */
.load-more-wrap {
  text-align: center;
  padding: 24px 0;
}
.load-more-btn {
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
}
.load-more-btn:hover {
  background: var(--blue);
  color: white;
}

/* ===== 검색결과 헤더 ===== */
.search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.search-result-header h2 {
  font-size: 20px;
  font-weight: 700;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sort-wrap select {
  padding: 8px 12px;
  border: 1.5px solid var(--blue-light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--blue-dark);
  background: var(--white);
  cursor: pointer;
  appearance: auto;
  outline: none;
  transition: border-color 0.2s;
}
.sort-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(25,118,210,0.1);
}

/* ===== 검색결과 필터 탭 ===== */
.search-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid #e8edf5;
  margin: 0 0 20px 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.search-filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  position: relative;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s;
  font-family: inherit;
  outline: none;
}
.filter-tab:hover {
  color: var(--blue);
  background: #f5f8ff;
}
.filter-tab.active {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 3px solid var(--blue);
  background: none;
}
.filter-tab .tab-count {
  display: inline-block;
  font-size: 11px;
  color: #888;
  margin-left: 3px;
  font-weight: 400;
}
.filter-tab.active .tab-count {
  color: var(--blue);
}

@media (max-width: 600px) {
  .filter-tab {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ===== 검색수 안내문 ===== */
.search-count-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 14px;
  margin: -12px 0 14px 0;
  background: #f8faff;
  border: 1px solid #e2eaf8;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.search-count-info .sci-total {
  color: #333;
  font-weight: 500;
}
.search-count-info .sci-total strong {
  color: var(--blue);
  font-weight: 700;
}
.search-count-info .sci-note {
  color: #999;
  font-size: 11.5px;
}
@media (max-width: 600px) {
  .search-count-info {
    font-size: 11.5px;
    padding: 6px 10px;
  }
  .search-count-info .sci-note {
    font-size: 10.5px;
  }
}

/* ===== 상세 페이지 ===== */
/* ===== 페이지 네비게이션 바 ===== */
.page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 4px;
  border-bottom: 1.5px solid #f0f4ff;
  margin-bottom: 12px;
}
.page-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link-btn {
  background: #F0F4FF;
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link-btn svg { width: 13px; height: 13px; }
.nav-link-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.back-btn {
  background: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  white-space: nowrap;
}
.back-btn:hover { text-decoration: underline; }

.detail-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.detail-top {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.detail-img-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
}

.detail-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
}

.detail-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-mall-brand {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-mall {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}
.badge-brand {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
}

.detail-best-price-wrap {
  background: var(--orange-light);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-best-price-label {
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 600;
}
.detail-best-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange-dark);
}
.detail-best-price span {
  font-size: 16px;
}

.detail-btn-row {
  display: flex;
  gap: 10px;
}
.btn-primary {
  flex: 1;
  background: var(--blue);
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.2s;
  text-align: center;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-orange {
  flex: 1;
  background: var(--orange);
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-wishlist {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  line-height: 0;
}
.btn-wishlist:hover { border-color: var(--red); background: #FFF0F0; }
.btn-wishlist.wishlisted { border-color: var(--red); background: #FFF0F0; }

/* ===== 쇼핑몰 가격 비교 테이블 ===== */
.shop-compare-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.shop-compare-title {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid var(--gray-200);
}

.shop-row {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.shop-row:last-child { border-bottom: none; }
.shop-row:hover { background: var(--gray-50); }

.shop-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.shop-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
.shop-logo-fallback {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.shop-info { flex: 1; }
.shop-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.shop-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: 6px;
}
.shop-price-wrap {
  text-align: right;
}
.shop-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-dark);
}
.shop-price.best { color: var(--orange-dark); }
.shop-price-unit { font-size: 13px; }
.shop-arrow {
  color: var(--gray-400);
  font-size: 16px;
}

/* ===== 위시리스트 ===== */
.page-title {
  font-size: 22px;
  font-weight: 700;
  padding: 24px 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.page-sub {
  font-size: 14px;
  color: var(--gray-400);
  padding: 0 16px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   비교 페이지 (cmp-*) – 완전 재작성
   ============================================================ */

/* ── 전체 래퍼 ── */
.compare-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── 헤더 ── */
.cmp-header {
  padding: 22px 20px 0;
}
.cmp-header-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmp-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmp-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
}
.cmp-badge {
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.cmp-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

/* ── 툴바 ── */
.cmp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #F0F7FF;
  border: 1.5px solid #BBDEFB;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px 20px 4px;
}

/* 좌측 – 전체선택 + 카운트 */
.cmp-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 커스텀 전체선택 체크박스 */
.cmp-checkall-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}
.cmp-checkall-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-400);
  border-radius: 5px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}
.cmp-checkall-box::after {
  content: '';
  display: block;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translateY(-2px);
  opacity: 0;
  transition: opacity 0.15s;
}
/* JS에서 data-checked="true" 세팅으로 시각화 */
.cmp-checkall-label.is-checked .cmp-checkall-box {
  background: var(--blue);
  border-color: var(--blue);
}
.cmp-checkall-label.is-checked .cmp-checkall-box::after { opacity: 1; }

.cmp-checkall-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}
.cmp-sel-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  background: #DCEEFB;
  padding: 3px 10px;
  border-radius: 20px;
}

/* 우측 – 버튼 그룹 */
.cmp-toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cmp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.cmp-btn-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.cmp-btn-icon svg { width: 15px; height: 15px; }
.cmp-btn-ext {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: -2px;
}

/* 텍스트 저장 버튼 */
.cmp-btn-txt {
  background: #E3F2FD;
  color: #1565C0;
  border-color: #90CAF9;
}
.cmp-btn-txt:hover { background: #1565C0; color: white; border-color: #1565C0; }

/* 엑셀 저장 버튼 */
.cmp-btn-csv {
  background: #E8F5E9;
  color: #2E7D32;
  border-color: #A5D6A7;
}
.cmp-btn-csv:hover { background: #2E7D32; color: white; border-color: #2E7D32; }

/* 선택 삭제 버튼 */
.cmp-btn-del {
  background: #FFF3F3;
  color: #C62828;
  border-color: #FFCDD2;
}
.cmp-btn-del:hover { background: #C62828; color: white; border-color: #C62828; }

/* ── 카드 그리드 (최대 8열) ── */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px 20px 48px;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── 비교 카드 ── */
.compare-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 2.5px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-color: #90CAF9;
}
.compare-card.is-checked {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.2);
  background: #F0F7FF;
}

/* ── 카드 상단 바 (체크박스 + 삭제) ── */
.cmp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #F8FAFB;
  border-bottom: 1px solid var(--gray-200);
  z-index: 5;
  position: relative;
}

/* 커스텀 체크박스 */
.cmp-card-chk-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
/* 실제 input 숨김 */
.cmp-card-chk-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
/* 커스텀 박스 */
.cmp-card-chk-box {
  width: 20px;
  height: 20px;
  border: 2px solid #9E9E9E;
  border-radius: 5px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}
.cmp-card-chk-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}
/* 선택됐을 때 */
.compare-card.is-checked .cmp-card-chk-box {
  background: var(--blue);
  border-color: var(--blue);
}
.compare-card.is-checked .cmp-card-chk-box::after { opacity: 1; }

/* 체크 텍스트 */
.cmp-card-chk-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}
.compare-card.is-checked .cmp-card-chk-text {
  color: var(--blue);
}

/* 선택 오버레이 */
.cmp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33,150,243,0.06);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1;
}
.compare-card.is-checked .cmp-card-overlay { opacity: 1; }

/* 삭제 버튼 */
.cmp-card-remove {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFEBEE;
  color: #E53935;
  border: 1.5px solid #FFCDD2;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  font-family: inherit;
  z-index: 6;
}
.cmp-card-remove:hover {
  background: #E53935;
  color: white;
  border-color: #E53935;
}

/* ── 카드 이미지 ── */
.cmp-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

/* ── 카드 본문 ── */
.cmp-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.cmp-card-num {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cmp-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 상품 정보 테이블 ── */
.cmp-info-table {
  background: var(--gray-50);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.cmp-info-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--gray-200);
  padding: 7px 10px;
}
.cmp-info-row:last-child { border-bottom: none; }
.cmp-info-key {
  background: none;
  color: #607D8B;
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1.3;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cmp-info-val {
  color: var(--gray-800);
  font-size: 13px;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.45;
}
.cmp-info-val.v-price {
  font-size: 16px;
  font-weight: 900;
  color: #E65100;
}
.cmp-info-val.v-link a {
  color: var(--blue);
  text-decoration: underline;
  font-size: 12px;
  word-break: break-all;
}

/* ── 상세 보기 버튼 ── */
.cmp-detail-btn {
  margin-top: 4px;
  width: 100%;
  padding: 9px;
  background: #E3F2FD;
  color: #1565C0;
  border: 1.5px solid #90CAF9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.cmp-detail-btn:hover { background: #1565C0; color: white; }

/* ── 빈 상태 ── */
.cmp-empty {
  text-align: center;
  padding: 72px 20px 48px;
  color: var(--gray-400);
}
.cmp-empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
  opacity: 0.5;
  display: block;
}
.cmp-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.cmp-empty-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 0;
}

/* ── 반응형 ── */
@media (min-width: 1400px) {
  .cmp-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 14px;
  }
}
@media (max-width: 1399px) and (min-width: 1100px) {
  .cmp-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 14px;
  }
}
@media (max-width: 1100px) and (min-width: 800px) {
  .cmp-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 12px;
  }
}
@media (max-width: 800px) {
  .cmp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 14px 48px;
  }
}
@media (max-width: 560px) {
  .cmp-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 12px 60px;
  }
  .cmp-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cmp-toolbar-right {
    width: 100%;
  }
  .cmp-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ===== 빈 상태 (공통) ===== */
.empty-state {
  text-align: center;
  padding: 64px 16px;
  color: var(--gray-400);
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state p {
  font-size: 16px;
  margin-bottom: 24px;
}
.empty-state .btn-primary {
  display: inline-block;
  padding: 12px 28px;
  flex: none;
  width: auto;
}

/* ===== 제작자 푸터 ===== */
.site-footer {
  text-align: center;
  padding: 18px 16px 90px; /* 하단 nav 높이만큼 여백 */
  background: #F8FAFB;
  border-top: 1px solid var(--gray-200);
}
.footer-copy {
  font-size: 16px;
  color: var(--gray-400);
  margin: 0;
}
.footer-copy strong {
  color: var(--blue-dark);
  font-weight: 700;
}

/* ===== 토스트 ===== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30,30,30,0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 하단 내비 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  transition: color 0.2s;
  gap: 2px;
}
.bottom-nav-item.active {
  color: var(--blue);
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.nav-icon svg { width: 22px; height: 22px; }

/* ===== 반응형 ===== */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .hamburger { display: none; }
  .header-nav { display: flex; }
}

@media (max-width: 767px) {
  .header-nav { display: none; }
  .hamburger { display: block; }
  .detail-img-section {
    grid-template-columns: 1fr;
  }
  .detail-img {
    aspect-ratio: 4/3;
  }
  .hero { padding: 40px 16px 36px; }
  .hero-search input { padding: 12px 14px; font-size: 14px; }
  .hero-search-btn { padding: 0 16px; font-size: 14px; }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }
  .card-price { font-size: 15px; }
  .detail-info { padding: 16px; }
  .detail-title { font-size: 16px; }
}


/* ===================================================
   엑셀 일괄검색 페이지
   =================================================== */
.excel-page-header {
  padding: 32px 0 20px;
  text-align: center;
}
.excel-page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.excel-page-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* 업로드 드롭존 */
.excel-upload-zone {
  border: 2.5px dashed #b0c9f0;
  border-radius: 18px;
  background: #f5f9ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}
.excel-upload-zone.drag-over {
  border-color: var(--blue);
  background: #e8f0ff;
}

/* 업로드 완료 후 축소 상태 */
.excel-upload-collapsed {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}
.upload-done-icon {
  display: flex;
  align-items: center;
  line-height: 0;
}
.upload-done-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-reselect-btn-base {
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid #66bb6a;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.upload-reselect-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid #66bb6a;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.upload-reselect-btn:hover { background: #f0faf0; }
.excel-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  line-height: 0;
}
.excel-upload-text { font-size: 16px; font-weight: 700; color: var(--black); }
.excel-upload-sub  { font-size: 13px; color: var(--gray-400); }
.excel-upload-btn {
  margin-top: 6px;
  padding: 10px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.excel-upload-btn:hover { background: #1a6fc4; }
.excel-upload-btn svg { width: 15px; height: 15px; }
.upload-reselect-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.upload-reselect-btn svg { width: 14px; height: 14px; }
.upload-reset-btn {
  background: #fff3f3 !important;
  border-color: #ef9a9a !important;
  color: #c62828 !important;
}

/* 양식 다운로드 힌트 */
.excel-template-hint {
  background: #fffbeb;
  border: 1px solid #f5d87a;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #7a5c00;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.template-hint-main {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #5a4400;
}
.template-hint-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #bf360c;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.template-hint-warning strong { color: #e64a19; }
.excel-template-btn {
  padding: 7px 16px;
  background: #f5d87a;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #5a4400;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.excel-template-btn:hover { background: #edc84a; }
.excel-template-btn svg { width: 14px; height: 14px; }

/* 미리보기 영역 */
.excel-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}
.excel-preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.excel-search-all-btn {
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.excel-search-all-btn:hover { background: #1a6fc4; }
.excel-search-all-btn:disabled { background: #aac4e8; cursor: not-allowed; }
.excel-reset-btn {
  padding: 9px 16px;
  background: #f1f3f5;
  color: var(--gray-600);
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.excel-reset-btn:hover { background: #e2e6ea; }

.excel-preview-list {
  background: #f8faff;
  border: 1px solid #e2eaf8;
  border-radius: 12px;
  padding: 12px 16px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.excel-preview-chip {
  background: #fff;
  border: 1.5px solid #cfddf5;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--black);
  white-space: nowrap;
}
.excel-preview-chip.invalid {
  border-color: #f5c6cb;
  color: #c0392b;
  background: #fff5f5;
}

/* 진행 상태 바 */
/* .excel-progress-header → 하단 신규 스타일로 재정의됨 */
.excel-progress-title { color: var(--blue); font-size: 14px; font-weight: 700; }
.excel-progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #e2eaf8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}
.excel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #00c6ff);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* 결과 테이블 */
.excel-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.excel-result-title {
  font-size: 16px;
  font-weight: 700;
  color: #27ae60;
}
.excel-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.excel-export-btn {
  padding: 9px 18px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.excel-export-btn:hover { background: #1e8449; }

.excel-result-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e2eaf8;
  margin-bottom: 40px;
}
.excel-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.excel-result-table th {
  background: #f0f5ff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--gray-600);
  border-bottom: 2px solid #dce8fb;
  white-space: nowrap;
}
.excel-result-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f3f8;
  vertical-align: middle;
}
.excel-result-table tr:last-child td { border-bottom: none; }
.excel-result-table tr:hover td { background: #f8faff; }

/* 행 구분: 새 상품 그룹 */
.excel-result-table tr.product-group-start td {
  border-top: 2px solid #dce8fb;
}
.excel-result-table tr.product-group-start td.col-no {
  font-weight: 700;
  color: var(--blue);
  font-size: 14px;
}

/* 순위 뱃지 */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.rank-badge.rank-1 { background: #e67e22; }
.rank-badge.rank-2 { background: #95a5a6; }
.rank-badge.rank-3 { background: #d4a744; }

/* 가격 */
.excel-price {
  font-weight: 700;
  color: var(--orange-dark);
  font-size: 14px;
  white-space: nowrap;
}
.excel-price.best { color: #e74c3c; font-size: 15px; }

/* 링크 버튼 */
.excel-link-btn {
  display: inline-block;
  padding: 5px 12px;
  background: #f0f5ff;
  color: var(--blue);
  border: 1px solid #cfddf5;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.excel-link-btn:hover { background: var(--blue); color: #fff; }

/* 오류 행 */
.excel-result-table tr.row-error td { color: #c0392b; }

/* 컬럼 너비 */
.col-no      { width: 46px; text-align: center; }
.col-name    { min-width: 140px; max-width: 180px; }
.col-rank    { width: 56px; text-align: center; }
.col-product { min-width: 220px; }
.col-price   { width: 110px; }
.col-mall    { width: 110px; }
.col-link    { width: 82px; }

/* 검색 키워드 셀 */
.search-keyword {
  display: inline-block;
  background: #EBF5FF;
  color: #1565C0;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #BBDEFB;
  word-break: break-all;
  line-height: 1.4;
}

/* 실제 상품 셀 (썸네일 + 상품명) */
.excel-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.excel-product-cell:hover .excel-product-title { color: var(--blue); text-decoration: underline; }

.excel-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: #f5f5f5;
}
.excel-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--gray-100);
  flex-shrink: 0;
}
.excel-product-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  word-break: break-all;
  transition: color 0.15s;
}

/* 파일명 배지 */
.file-name-badge {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #C8E6C9;
  margin-left: 6px;
}

/* 취소 버튼 */
.excel-cancel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #FFF3E0;
  border: 1.5px solid #FFB300;
  border-radius: 8px;
  color: #E65100;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.excel-cancel-btn:hover { background: #FFE0B2; border-color: #E65100; }
.excel-cancel-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 진행 상태 레이아웃 개선 */
.excel-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.excel-progress-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.excel-progress-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  background: #EBF5FF;
  padding: 3px 10px;
  border-radius: 20px;
}
.excel-progress-current {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  padding: 4px 10px;
  background: #F5F5F5;
  border-radius: 6px;
  min-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 결과 통계 배지 */
.result-stat {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}
.result-stat-warn {
  display: inline-block;
  background: #FFF3E0;
  color: #E65100;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

@media (max-width: 600px) {
  .excel-result-table { font-size: 12px; }
  .excel-result-table th,
  .excel-result-table td { padding: 8px 6px; }
  .col-name    { min-width: 90px; max-width: 110px; }
  .col-product { min-width: 130px; }
  .excel-thumb { width: 32px; height: 32px; }
  .excel-progress-current { font-size: 11px; }
}

/* ===== Lucide / SVG 아이콘 공통 스타일 ===== */

/* 카드 액션 버튼 (위시/비교) SVG 크기 */
.card-action-btn svg { width: 16px; height: 16px; pointer-events: none; }
.card-action-btn { line-height: 0; }

/* 하단 탭바 SVG */
.bottom-nav-item .nav-icon i,
.bottom-nav-item .nav-icon svg { width: 22px; height: 22px; }

/* 헤더 검색 버튼 */
.search-btn-sm svg { width: 16px; height: 16px; }
.search-btn-sm { line-height: 0; display: inline-flex; align-items: center; justify-content: center; }

/* 히어로 검색 버튼 */
.hero-search-btn { display: inline-flex; align-items: center; gap: 6px; }
.hero-search-btn svg { width: 18px; height: 18px; }

/* 탭 버튼 */
.tab-btn { display: inline-flex; align-items: center; gap: 5px; }
.tab-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* 더보기 버튼 */
.load-more-btn { display: inline-flex; align-items: center; gap: 5px; }
.load-more-btn svg { width: 15px; height: 15px; }

/* 페이지 타이틀 SVG */
.page-title svg, .excel-page-title svg, .cmp-title svg { width: 22px; height: 22px; vertical-align: middle; margin-right: 5px; }

/* 진행상태 타이틀 스핀 아이콘 */
.spin-icon {
  animation: lucide-spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes lucide-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.excel-progress-title { display: flex; align-items: center; gap: 6px; }

/* 엑셀 취소/검색 버튼 */
.excel-cancel-btn { display: inline-flex; align-items: center; gap: 5px; }
.excel-cancel-btn svg { width: 14px; height: 14px; }
.excel-export-btn { display: inline-flex; align-items: center; gap: 6px; }
.excel-export-btn svg { width: 14px; height: 14px; }
.excel-reset-btn { display: inline-flex; align-items: center; gap: 5px; }
.excel-reset-btn svg { width: 13px; height: 13px; }

/* 비교 카드 삭제 버튼 X */
.cmp-card-remove svg { pointer-events: none; }

/* 비교 카드 상세 버튼 */
.cmp-detail-btn { display: inline-flex; align-items: center; gap: 4px; }

/* 홈 가이드 아이콘 */
.home-guide-icon { font-size: 0; line-height: 0; margin-bottom: 12px; }
.home-guide-icon svg { width: 48px; height: 48px; }

/* 결과 타이틀 체크 아이콘 */
.excel-result-title { display: inline-flex; align-items: center; }

/* 빈 상태 아이콘 */
.empty-icon { line-height: 0; margin-bottom: 12px; }
.cmp-empty-icon { line-height: 0; margin-bottom: 16px; }
