* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f2f2f2;
  color: #1a1a1a;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}
body.ready { opacity: 1; }

/* ── 상단 바 ── */
.top-bar {
  background: #111;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.back-link { color: #9CA3AF; text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color 0.15s; }
.back-link:hover { color: #fff; }
.top-bar .sep { color: #4B5563; }
.top-bar .current { color: #fff; }

/* ── 헤더 ── */
.header {
  background: #111;
  color: #fff;
  padding: 28px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #222;
}
.header-left h1 { font-size: 20px; font-weight: 900; letter-spacing: -0.3px; margin-bottom: 6px; }
.header-left p { font-size: 13px; color: #aaa; }
.header-right { display: flex; gap: 20px; align-items: center; font-size: 12px; color: #888; }
.legend { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.ali { background: #e8820c; }
.legend-dot.dom { background: #3a6ea5; }

/* ── 필터 바 ── */
.filter-bar { background: #fff; border-bottom: 1px solid #ddd; padding: 14px 40px; display: flex; gap: 12px; align-items: center; font-size: 13px; color: #555; }
.filter-bar strong { color: #111; }

/* ── 그리드 ── */
.grid { max-width: 1100px; margin: 0 auto; padding: 32px 32px 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── 카드 ── */
.card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; flex-direction: column; position: relative; }
.card.recommend { box-shadow: 0 0 0 2.5px #e8820c, 0 4px 12px rgba(232,130,12,0.15); }
.rec-badge { position: absolute; top: 12px; left: 12px; background: #e8820c; color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.3px; z-index: 2; }

.card-img { width: 100%; aspect-ratio: 4/3; background: #f8f8f8; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #eee; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.card-img .no-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; color: #bbb; }
.no-img-icon { font-size: 40px; }
.no-img-text { font-size: 12px; color: #ccc; }
.no-img.hidden { display: none; }
.no-img.visible { display: flex; }

.card-body { padding: 18px 18px 0; flex: 1; }
.card-brand { font-size: 11px; font-weight: 700; color: #888; letter-spacing: 1px; margin-bottom: 4px; }
.card-model { font-size: 17px; font-weight: 900; color: #111; line-height: 1.2; margin-bottom: 12px; }

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 500; }
.tag-spec { background: #f0f0f0; color: #444; }
.tag-v220 { background: #e6f4ec; color: #1e6b35; font-weight: 700; }
.tag-v110 { background: #fff0f0; color: #c00; font-weight: 700; }
.tag-edu { background: #fff3e0; color: #a05000; font-weight: 700; }

.card-price { padding: 14px 18px 18px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.price-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; min-width: 60px; }
.price-label.ali { color: #e8820c; }
.price-label.dom { color: #3a6ea5; }
.price-value { font-size: 18px; font-weight: 900; }
.price-value.ali { color: #e8820c; }
.price-value.dom { color: #3a6ea5; }
.price-sub { font-size: 11px; color: #aaa; margin-left: 4px; }

.price-divider { border: none; border-top: 1px dashed #eee; margin: 10px 0; }
.price-diff { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #888; margin-top: 6px; }
.price-diff strong { color: #e8820c; }

.card-moq { padding: 10px 18px 14px; border-top: 1px solid #f0f0f0; font-size: 12px; color: #666; }
.moq-tag { display: inline-block; background: #111; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; margin-right: 5px; }

.card-link { display: block; text-align: center; background: #f7f7f7; color: #111; font-size: 13px; font-weight: 700; padding: 12px; border-top: 1px solid #eee; text-decoration: none; letter-spacing: 0.3px; transition: background 0.15s, color 0.15s; }
.card-link:hover { background: #111; color: #fff; }
.card-link.ali-link { background: #fff4e8; color: #c06000; border-top: 1px solid #fde0b8; }
.card-link.ali-link:hover { background: #e8820c; color: #fff; }

/* ── 요약 바 ── */
.summary-bar { background: #111; color: #fff; padding: 28px 40px; }
.summary-bar h2 { font-size: 14px; font-weight: 700; color: #aaa; letter-spacing: 1px; margin-bottom: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.summary-item-label { font-size: 11px; color: #888; margin-bottom: 4px; letter-spacing: 0.5px; }
.summary-item-val { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.5; }
.summary-item-sub { font-size: 12px; color: #777; margin-top: 2px; }

/* ── 전압 경고 ── */
.warning-bar { background: #fff8e6; border-top: 3px solid #f0c040; padding: 14px 40px; font-size: 13px; color: #6a4400; display: flex; align-items: center; gap: 10px; }
.warning-bar strong { color: #3a2000; }

/* ── 추가 태그 ── */
.tag-warn { background: #fff3f0; color: #c05000; }
.tag-unknown { background: #f0f0f0; color: #999; }
.price-sub-note { color: #aaa; font-size: 11px; }

/* ── 채널 카드 ── */
.channel-card { background: #111; color: #fff; }
.channel-img { background: #1a1a1a; border-bottom: 1px solid #333; }
.channel-img-inner { text-align: center; padding: 20px; width: 100%; }
.channel-table-label { font-size: 13px; color: #888; margin-bottom: 16px; letter-spacing: 1px; }
.channel-table { width: 100%; font-size: 13px; border-collapse: collapse; color: #ccc; }
.channel-table tr { border-bottom: 1px solid #333; }
.channel-table tr.last-row { border-bottom: none; }
.channel-label { padding: 9px 8px; color: #888; font-size: 12px; }
.channel-td-right { padding: 9px 8px; text-align: right; }
.channel-brand { color: #666; }
.channel-model { color: #fff; font-size: 15px; }
.channel-footer { padding: 14px 18px; border-top: 1px solid #2a2a2a; font-size: 12px; color: #666; }

/* ── 리스크 박스 (inline style 대체) ── */
.risk-box { margin-top: 14px; padding: 14px; background: #fff5f5; border-left: 3px solid #c00; border-radius: 0 6px 6px 0; font-size: 13px; color: #600; line-height: 1.8; }
.risk-box-warn { margin: 0 18px 14px; padding: 14px; background: #fff5f5; border-left: 3px solid #e88; border-radius: 0 6px 6px 0; font-size: 13px; color: #600; line-height: 1.8; }
.risk-title { font-weight: 700; margin-bottom: 8px; color: #900; }
.risk-conclusion { margin-top: 8px; font-weight: 700; color: #600; }

.channel-card { background: #111; color: #fff; }
.channel-img { background: #1a1a1a; border-bottom: 1px solid #333; }
.channel-table { width: 100%; font-size: 13px; border-collapse: collapse; color: #ccc; }
.channel-table td { padding: 9px 8px; }
.channel-table tr { border-bottom: 1px solid #333; }
.channel-table tr:last-child { border-bottom: none; }
.channel-label { color: #888; font-size: 12px; }

.badge-ali { background: #e8820c; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.badge-dark { background: #333; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.badge-blue { background: #3a6ea5; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }

.step-list { margin-top: 12px; font-size: 13px; color: #aaa; line-height: 1.9; }
.step-row { display: flex; gap: 10px; margin-bottom: 8px; }
.step-row:last-child { margin-bottom: 0; }
.step-badge-1 { background: #e8820c; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; white-space: nowrap; align-self: flex-start; margin-top: 3px; }
.step-badge-n { background: #555; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 3px; white-space: nowrap; align-self: flex-start; margin-top: 3px; }
.step-sub { font-size: 11px; color: #666; }

.channel-footer { padding: 14px 18px; border-top: 1px solid #2a2a2a; font-size: 12px; color: #666; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); padding: 24px 20px 48px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .header { padding: 20px; }
  .filter-bar, .warning-bar, .summary-bar, .top-bar { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .header h1 { font-size: 17px; }
}
