/* 상품정보 > 비교 탭 — 데이터셋 3뷰(카드·표·가격표) (2026-09-05, 비교 개편 3단계)
   모달 본문 = A-4 액센트형(차콜 #3e6187 · 밴드 #f3f7fb · 보더 #dbe6f0). 렌더러 = utils/product_compare_view.js */
.pc { font-size: 12.5px; color: #0f172a; }
.pc-lbl { font-size: 11px; font-weight: 700; color: #475569; }
.pc-sp { flex: 1; }
.pc-empty { padding: 30px; text-align: center; color: #94a3b8; font-size: 13px; }
.pc-foot { margin-top: 8px; font-size: 11.5px; color: #94a3b8; line-height: 1.6; }

/* 상단 바 — 섹션 밴드 카드 */
.pc-bar { background: #fff; border: 1px solid #dbe6f0; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.pc-bar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-bar-row--conds { align-items: flex-end; }
.pc-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.pc-plus { color: #cbd5e1; }
.pc-chip { display: inline-flex; align-items: center; gap: 3px; padding: 4px 11px; border-radius: 999px; border: 1px solid #c4d3e2; background: #fff; color: #3e6187; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; line-height: 1.3; font-family: inherit; }
.pc-chip.on { background: #3e6187; border-color: #3e6187; color: #fff; }
.pc-chip--base { background: #0f172a; border-color: #0f172a; color: #fff; cursor: default; }
.pc-chip--sm { padding: 2px 8px; font-size: 10.5px; }
.pc-chip--x { color: #475569; font-weight: 600; }
.pc-chip-brand { color: #94a3b8; font-weight: 600; margin-right: 3px; }
.pc-chip .pc-n { opacity: .7; font-weight: 500; margin-left: 2px; }
.pc-views { display: inline-flex; border: 1px solid #c4d3e2; border-radius: 8px; overflow: hidden; background: #fff; margin-left: auto; }
.pc-views button { padding: 6px 13px; border: 0; background: transparent; color: #475569; font-size: 12px; font-weight: 700; cursor: pointer; border-right: 1px solid #e2e8f0; font-family: inherit; }
.pc-views button:last-child { border-right: 0; }
.pc-views button.on { background: #3e6187; color: #fff; }
.pc-cond { min-width: 140px; }
.pc-cond .pc-lbl { display: block; margin-bottom: 4px; }
.pc-cond select { width: 100%; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 12px; background: #fff; color: #0f172a; }
.pc-cond select:focus { outline: none; border-color: #3e6187; box-shadow: 0 0 0 3px #3e618722; }
.pc-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #c4d3e2; border-radius: 8px; overflow: hidden; background: #fff; }
.pc-seg button { padding: 6px 11px; border: 0; background: transparent; color: #475569; font-size: 12px; font-weight: 600; cursor: pointer; border-right: 1px solid #e2e8f0; white-space: nowrap; font-family: inherit; }
.pc-seg button:last-child { border-right: 0; }
.pc-seg button.on { background: #3e6187; color: #fff; }
.pc-near { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #475569; cursor: pointer; align-self: center; padding-top: 14px; }
.pc-near input { margin: 0; }
.pc-link { border: 0; background: transparent; color: #3e6187; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 4px; font-family: inherit; }
.pc-link:hover { text-decoration: underline; }
.pc-tag { display: inline-block; font-size: 10px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.pc-tag--warn { color: #92400e; background: #fef3c7; }
.pc-tag--ok { color: #166534; background: #dcfce7; }
.pc-bbadge { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--bc); border: 1px solid color-mix(in srgb, var(--bc) 35%, #fff); background: color-mix(in srgb, var(--bc) 8%, #fff); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.pc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pc-btn { padding: 6px 12px; border: 1px solid #c4d3e2; background: #fff; color: #3e6187; border-radius: 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.pc-btn:hover { background: #f3f7fb; }
.pc-btn--pri { background: #3e6187; color: #fff; border-color: #3e6187; }
.pc-btn--pri:hover { background: #355475; }
.pc-btn--sm { padding: 3px 8px; font-size: 11px; }
.pc-btn.on { background: #3e6187; color: #fff; border-color: #3e6187; }
.pc-chip:disabled { opacity: .45; cursor: default; }
.pc-chip--picks { color: #166534; border-color: #86efac; background: #f0fdf4; }
.pc-chip--picks.on { background: #166534; border-color: #166534; color: #fff; }
/* 담기 체크 — 카드 이미지 우하단 / 표·패널은 상품 칸 앞. 담기면 초록 */
.pc-pick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; color: transparent; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; box-shadow: 0 1px 4px rgba(15,23,42,.15); }
.pc-pick:hover { border-color: #166534; color: #86efac; }
.pc-pick.on { background: #166534; border-color: #166534; color: #fff; }
.pc-pick--row { width: 20px; height: 20px; font-size: 11px; box-shadow: none; vertical-align: middle; margin-right: 6px; }
.pc-avail { margin-top: 5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11px; color: #92400e; }
.pc-reg { cursor: pointer; }

/* ── 카드형 ── */
.pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
/* ⚠강조 테두리는 «바깥» 링(box-shadow, inset 금지) — inset 은 자식(이미지 영역 배경)에 가려져 위쪽만 끊겨 보였다(2026-09-05 사용자 지적).
   hover 도 같은 문법(연한 링)이라 기준·담김·hover 가 한 계열로 읽힌다. 바깥 링 두께(≤4px)는 grid gap 12px 안에 든다 */
.pc-card { position: relative; background: #fff; border: 1px solid #dbe6f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .12s, border-color .12s; }
.pc-card:hover { border-color: #3e6187; box-shadow: 0 0 0 3px #3e618726; }
.pc-card--base { border-color: #3e6187; box-shadow: 0 0 0 1px #3e6187; }
.pc-card--base:hover { box-shadow: 0 0 0 1px #3e6187, 0 0 0 4px #3e618726; }
.pc-card--none { opacity: .75; }
.pc-cimg { position: relative; }
.pc-card .pc-pick { position: absolute; right: 8px; bottom: 8px; }
.pc-cimg--pick { cursor: pointer; user-select: none; }
.pc-cimg--pick:hover { background: #eef4f9; }
.pc-cimg--pick:hover .pc-pick { border-color: #166534; color: #86efac; }
.pc-cimg--pick:hover .pc-pick.on { color: #fff; }
.pc-card--picked, .pc-card--base.pc-card--picked { border-color: #166534; box-shadow: 0 0 0 1px #166534, 0 0 0 4px #16653426; }
.pc-card--picked:hover, .pc-card--base.pc-card--picked:hover { box-shadow: 0 0 0 1px #166534, 0 0 0 4px #16653440; }
.pc-ccond { display: flex; flex-wrap: wrap; gap: 2px 0; }
.pc-ccond .pc-tag { margin-left: 0; margin-right: 4px; }
.pc-badge { position: absolute; top: 8px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; color: #fff; z-index: 1; }
.pc-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 1; }
.pc-badges .pc-badge { position: static; }
.pc-badge--best { background: #166534; }
.pc-badge--pop { background: #f59e0b; color: #1f2937; }
.pc-chip--pop { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.pc-chip--pop.on { background: #f59e0b; border-color: #f59e0b; color: #1f2937; }
.pc-star { color: #f59e0b; font-size: 13px; margin-right: 3px; }
.pc-badge--base { right: 8px; background: #3e6187; }
.pc-cimg { height: 128px; background: #f8fafc; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eef4f9; }
.pc-cimg img { max-height: 112px; max-width: 78%; object-fit: contain; }
.pc-noimg { color: #cbd5e1; font-size: 11px; }
.pc-cbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pc-cname { font-weight: 700; font-size: 13px; color: #0f172a; line-height: 1.35; min-height: 35px; }
.pc-cmodel { font-size: 10.5px; color: #64748b; }
.pc-cprice { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; border-radius: 6px; }
.pc-cprice.pc-reg:hover { background: #dbeafe; }
.pc-cprice b { font-size: 20px; color: #0f172a; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.pc-cprice small { font-size: 10.5px; color: #64748b; }
.pc-crow { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #475569; }
.pc-crow span:last-child { font-weight: 600; color: #0f172a; text-align: right; }
.pc-crow--int span:first-child { color: #b45309; }
.pc-cnone { font-size: 11.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 9px; }
.pc-cfoot { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.pc-cfoot .pc-btn { flex: 1; }

/* ── 표 ── */
.pc-tblwrap { overflow-x: auto; background: #fff; border: 1px solid #dbe6f0; border-radius: 12px; }
.pc-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pc-tbl th { position: sticky; top: 0; z-index: 1; background: #f3f7fb; color: #3e6187; font-size: 12px; font-weight: 700; padding: 9px 11px; border-bottom: 1px solid #dbe6f0; border-right: 1px solid #eef4f9; white-space: nowrap; text-align: right; }
.pc-tbl th.l, .pc-tbl td.l { text-align: left; }
.pc-tbl th.int { color: #b45309; }
.pc-tbl th.pc-sort { cursor: pointer; user-select: none; }
.pc-tbl th.pc-sort:hover { background: #e8eff6; }
.pc-tbl th.pc-sort.asc::after { content: "\0020\25B2"; font-size: 9px; }
.pc-tbl th.pc-sort.desc::after { content: "\0020\25BC"; font-size: 9px; }
.pc-tbl td { padding: 8px 11px; border-bottom: 1px solid #eef4f9; border-right: 1px solid #f5f8fb; white-space: nowrap; text-align: right; vertical-align: middle; }
.pc-tbl td.pc-money { font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-tbl td.pc-dash { color: #cbd5e1; }
.pc-tbl td.pc-best { color: #166534; }
.pc-tbl td.pc-reg { text-decoration: underline dotted #93c5fd; text-underline-offset: 3px; }
.pc-tbl td.pc-reg:hover { background: #dbeafe; color: #1d4ed8; }
.pc-tbl tr:hover > td { background: #f8fbfd; }
.pc-tbl tr.pc-base > td { background: #f3f7fb; }
.pc-tbl tr.pc-base > td:first-child { box-shadow: inset 3px 0 0 #3e6187; }
.pc-tbl tr.pc-grp > td { background: #f3f7fb; color: #3e6187; font-size: 11.5px; font-weight: 700; text-align: left; padding: 6px 11px; }
.pc-tbl tr.pc-grp > td span { font-weight: 500; color: #94a3b8; margin-left: 4px; }
.pc-tbl tr.pc-sub > td { background: #fbfcfe; color: #475569; font-size: 12px; }
.pc-tbl td.pc-brand { color: #334155; }
.pc-tbl td.pc-prod { position: relative; }
.pc-tbl td.pc-prod--picked { box-shadow: inset 3px 0 0 #166534; }
.pc-panel--picked { border-color: #166534; }
.pc-pname { font-weight: 700; color: #0f172a; white-space: normal; }
.pc-pmodel { font-size: 10.5px; color: #64748b; font-weight: 500; margin-top: 1px; }
.pc-tbl td.pc-cond-v { color: #475569; }
.pc-tbl td.pc-miss { color: #94a3b8; font-size: 11.5px; white-space: normal; }
.pc-pill { display: inline-block; font-size: 10px; font-weight: 700; color: #166534; background: #dcfce7; border-radius: 10px; padding: 0 6px; margin-left: 5px; vertical-align: 1px; }

/* ── 가격표 나란히형 ── */
.pc-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(540px, 1fr)); gap: 12px; }
.pc-panel { background: #fff; border: 1px solid #dbe6f0; border-radius: 12px; overflow: hidden; }
.pc-panel--base { border-color: #3e6187; }
.pc-phead { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f3f7fb; border-bottom: 1px solid #dbe6f0; flex-wrap: wrap; }
.pc-phead .pc-pname { font-size: 13px; }
.pc-phead .pc-pmodel { display: inline; margin-left: 4px; }
.pc-phead .pc-chips { flex: 0 1 auto; }
.pc-pimg { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid #eef4f9; }
.pc-tblwrap--flat { border: 0; border-radius: 0; }
.pc-tbl--panel { font-size: 12px; }
.pc-tbl--panel th { position: static; background: #fbfcfe; color: #475569; font-size: 11.5px; padding: 6px 9px; }
.pc-tbl--panel td { padding: 6px 9px; }
.pc-tbl--panel td.l { color: #334155; font-weight: 600; }
.pc-tbl--panel tr.pc-pgrp > td { background: #f3f7fb; color: #3e6187; font-weight: 700; font-size: 11px; text-align: left; padding: 4px 9px; }
.pc-pnone { padding: 14px 12px; font-size: 12px; color: #92400e; background: #fffbeb; }
.pc-pfoot { padding: 5px 12px; font-size: 10.5px; color: #94a3b8; border-top: 1px solid #f5f8fb; }

@media (max-width: 768px) {
  .pc-panels { grid-template-columns: 1fr; }
  .pc-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .pc-cimg { height: 100px; }
  .pc-views { margin-left: 0; }
  .pc-near { padding-top: 0; }
}
html.dark .pc { color: #e2e8f0; }
html.dark .pc-bar, html.dark .pc-card, html.dark .pc-panel, html.dark .pc-tblwrap { background: #0f172a; border-color: #334155; }
html.dark .pc-tbl th, html.dark .pc-phead, html.dark .pc-tbl tr.pc-grp > td, html.dark .pc-tbl tr.pc-base > td { background: #1e293b; color: #cbd5e1; border-color: #334155; }
html.dark .pc-tbl td { border-color: #1e293b; }
html.dark .pc-cname, html.dark .pc-pname, html.dark .pc-cprice b, html.dark .pc-crow span:last-child { color: #f1f5f9; }
html.dark .pc-cimg { background: #1e293b; border-color: #334155; }

/* ── 카드 「가격표」 자식 모달 (2026-09-05) — 상품 상세 탭 본문(detail?ro=1)을 그대로 담는다 ── */
.pcm-embed { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pcm-embed-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; }
.pcm-wrap { width: min(980px, calc(100vw - 60px)); padding: 16px; background: #f6f9fc; min-height: 100%; }
.pcm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pcm-img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid #dbe6f0; border-radius: 10px; }
.pcm-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcm-name { font-size: 15px; font-weight: 800; color: #0f172a; padding-left: 12px; border-left: 4px solid #3e6187; line-height: 1.3; }
.pcm-sub { font-size: 11.5px; color: #64748b; }
.pc-tbl--modal th { position: sticky; top: 0; }
.pc-tbl--modal tr.pc-regrow { cursor: default; }
@media (max-width: 768px) { .pcm-wrap { width: 100%; padding: 12px; } .pcm-img { width: 56px; height: 56px; } }
html.dark .pcm-wrap { background: #0f172a; }
html.dark .pcm-name { color: #f1f5f9; }
