/* 1t1.kr — 기준 시안: 1t1.kr 상품 비교 추천 홈페이지 (1).png / 로고 A */
:root {
  --navy: #111827;
  --text: #17212f;
  --muted: #5b6575;
  --faint: #8a93a3;
  --purple: #6255f5;
  --purple-d: #4c40e0;
  --purple-l: #efedff;
  --lav: #c9c3ff;
  --yellow: #ffd43b;
  --bg: #ffffff;
  --bg2: #f7f8fc;
  --line: #e5eaf0;
  --hero1: #2e2470;
  --hero2: #6255f5;
  --r: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .05);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg2); color: var(--text); font: 400 16px/1.6 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1460px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ── Header ─────────────────────────────────────────── */
.hd { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hd-top { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 40px; width: auto; }
.tagline { color: var(--muted); font-size: 14px; white-space: nowrap; }
.search { flex: 1; max-width: 640px; margin-left: auto; display: flex; height: 48px; border: 2px solid var(--purple); border-radius: 12px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 18px; font: inherit; font-size: 15px; color: var(--text); background: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(98, 85, 245, .15); }
.search button { width: 60px; border: 0; background: var(--purple); color: #fff; display: grid; place-items: center; }
.search button .i { width: 24px; height: 24px; }
.search button:hover { background: var(--purple-d); }
.hd-actions { display: flex; gap: 22px; margin-left: 12px; }
.hd-actions a { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.hd-actions a:hover { color: var(--purple); }

.gnb-bar { border-top: 1px solid var(--line); background: #fff; position: relative; }
.gnb { display: flex; align-items: center; gap: 8px; height: 52px; }
.all-cat { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--purple); color: #fff; font-weight: 700; font-size: 16px; margin-right: 24px; white-space: nowrap; }
.all-cat:hover, .all-cat[aria-expanded="true"] { background: var(--purple-d); }
.gnb-menu { display: flex; gap: 8px; flex: 1; }
.gnb-menu a, .gnb-about { display: flex; align-items: center; gap: 8px; padding: 0 18px; height: 44px; border-radius: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.gnb-menu a:hover, .gnb-menu a[aria-current="page"] { background: var(--purple-l); color: var(--purple-d); }
.gnb-about { font-weight: 600; margin-left: auto; padding-right: 0; }
.gnb-about:hover { color: var(--purple); }

.cat-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(17, 24, 39, .08); padding: 20px 0 24px; }
.cat-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cat-close { border: 0; background: none; padding: 6px; }
.cat-panel-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cat-panel-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); font-weight: 600; }
.cat-panel-list a:hover { background: var(--purple-l); color: var(--purple-d); }

/* ── Hero + keywords ────────────────────────────────── */
main { padding-bottom: 56px; }
.top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 28px; }
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 312px; color: #fff; background: linear-gradient(110deg, var(--hero1) 0%, #3d2f99 45%, var(--hero2) 100%); }
.hero-track { position: relative; height: 100%; min-height: 312px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide-text { position: relative; z-index: 2; padding: 34px 0 0 72px; max-width: 620px; }
.pill { display: inline-block; padding: 4px 14px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; }
.slide h1, .slide .h1 { margin-top: 14px; display: flex; flex-direction: column; line-height: 1.3; letter-spacing: -.03em; }
.slide h1 span, .slide .h1 span { font-size: 34px; font-weight: 700; }
.slide h1 strong, .slide .h1 strong { font-size: 40px; font-weight: 800; }
.slide em { font-style: normal; color: var(--yellow); }
.slide-text p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.btn-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; height: 44px; padding: 0 22px; border-radius: 99px; background: #ece9ff; color: var(--navy); font-weight: 700; font-size: 16px; }
.btn-cta:hover { background: #fff; }
.btn-cta .i { width: 18px; height: 18px; }
.hand { position: absolute; z-index: 3; right: 56px; top: 30px; font-family: "Nanum Pen Script", cursive; font-size: 30px; line-height: 1.15; transform: rotate(-6deg); color: #fff; }
.hand::after { content: ""; display: block; width: 110px; height: 10px; margin: 6px 0 0 34px; border-top: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; }
.dots { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s; }
.dots button[aria-selected="true"] { width: 22px; background: #fff; }

/* 이미지 납품 전 대체 연출 */
.slide-art { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; pointer-events: none; }
.podium { position: absolute; right: 12%; bottom: 34px; width: 62%; height: 70px; border-radius: 50%; background: linear-gradient(180deg, #b9b2ff, #7a6ef0); box-shadow: 0 -18px 0 0 rgba(255, 255, 255, .12) inset, 0 20px 40px rgba(20, 10, 80, .35); }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #d9d5ff 45%, #9d93f5 100%); box-shadow: 0 16px 30px rgba(20, 10, 80, .35); }
.o1 { width: 120px; height: 120px; right: 46%; bottom: 76px; }
.o2 { width: 170px; height: 170px; right: 24%; bottom: 72px; }
.o3 { width: 90px; height: 90px; right: 13%; bottom: 80px; }

.kw { background: #fff; border-radius: 20px; padding: 24px 22px; box-shadow: var(--shadow); }
.kw h2 { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.kw h2 .i { color: var(--purple); width: 22px; height: 22px; stroke-width: 2.4; }
.kw a { display: flex; align-items: center; gap: 14px; padding: 9px 8px; border-radius: 10px; font-weight: 600; }
.kw a:hover { background: var(--bg2); color: var(--purple-d); }
.rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #eef0f4; color: var(--muted); font-size: 14px; font-weight: 700; }
.rank.hot { background: var(--purple); color: #fff; }

/* ── Tiles ──────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.tile { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17, 24, 39, .08); }
.tile-ic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.tile-ic .i { width: 28px; height: 28px; }
.tile-tx { display: flex; flex-direction: column; min-width: 0; }
.tile-tx strong { font-size: 17px; font-weight: 700; }
.tile-tx span { font-size: 14px; color: var(--muted); }

/* ── Sections / cards ───────────────────────────────── */
.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-size: 24px; font-weight: 800; padding-left: 14px; border-left: 4px solid var(--purple); line-height: 1.2; }
.more { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: 15px; }
.more:hover { color: var(--purple); }
.more .i { width: 18px; height: 18px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(17, 24, 39, .1); }
.thumb { position: relative; aspect-ratio: 2 / 1; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 70% 10%, var(--t1), var(--t2)); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(10, 12, 30, .78) 100%); }
.type { position: absolute; z-index: 2; left: 14px; top: 12px; padding: 3px 12px; border-radius: 99px; background: var(--purple); font-size: 13px; font-weight: 600; }
.thumb-tx { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-start; }
.badge { padding: 2px 10px; border-radius: 6px; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 700; }
.thumb-tx strong { margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.thumb-tx span:last-child { font-size: 15px; color: rgba(255, 255, 255, .9); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 17px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 14px; }
.meta .i { width: 16px; height: 16px; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); font-weight: 600; text-align: center; transition: transform .15s; }
.cats a:hover { transform: translateY(-2px); color: var(--purple-d); }
.cat-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--purple-l); font-size: 34px; }

/* ── Doc / state pages ──────────────────────────────── */
.doc { padding-top: 40px; }
.doc h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.doc-lead { margin-top: 14px; font-size: 18px; color: var(--muted); }
.doc h2 { margin-top: 36px; margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.doc ul { padding-left: 20px; list-style: disc; }
.doc li { margin: 6px 0; }
.doc p + p { margin-top: 10px; }
.doc a:not(.btn) { color: var(--purple-d); text-decoration: underline; text-underline-offset: 3px; }
.doc-date { margin-top: 36px; color: var(--faint); font-size: 14px; }
.notice { margin: 20px 0; padding: 18px 20px; border-radius: 12px; background: var(--purple-l); color: var(--navy); font-weight: 600; }
.state { padding-top: 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state h1 { font-size: 28px; font-weight: 800; }
.state p { color: var(--muted); }
.state-sub { font-size: 14px; }
.state-ic { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: var(--purple-l); color: var(--purple); }
.state-ic .i { width: 40px; height: 40px; }
.state-code { font-size: 72px; font-weight: 900; color: var(--purple); line-height: 1; letter-spacing: -.04em; }
.state-img { width: 320px; height: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; margin-top: 12px; border-radius: 12px; background: var(--purple); color: #fff; font-weight: 700; }
.btn:hover { background: var(--purple-d); }
.tabs { display: flex; gap: 8px; margin-top: 28px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 12px 6px; margin-right: 16px; font-weight: 700; color: var(--faint); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--purple); }
.empty { padding: 56px 0; text-align: center; color: var(--muted); }
.saved-items { display: grid; gap: 10px; margin-top: 20px; }
.saved-items a { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.saved-items img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

/* ── Footer ─────────────────────────────────────────── */
.ft { background: #fff; border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.ft-disclosure { display: flex; gap: 8px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--bg2); color: var(--text); font-weight: 600; }
.ft-disclosure .i { width: 18px; height: 18px; margin-top: 2px; color: var(--purple); }
.ft-row { display: flex; align-items: center; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.ft-logo { height: 26px; width: auto; }
.ft-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-links a:hover { color: var(--purple); }
.ft-links strong { color: var(--text); }
.ft-note { margin-top: 14px; }
.ft-copy { margin-top: 8px; color: var(--faint); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1279px) {
  .tagline { display: none; }
  .hd-actions span { display: none; }
  .hd-actions a .i { width: 24px; height: 24px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .slide-text { padding-left: 48px; }
  .hand { display: none; }
}
@media (max-width: 1023px) {
  .top { grid-template-columns: 1fr; }
  .kw ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
  .cats, .cat-panel-list { grid-template-columns: repeat(4, 1fr); }
  .gnb-about { display: none; }
  .all-cat { margin-right: 8px; }
  .gnb-menu { overflow-x: auto; scrollbar-width: none; }
  .gnb-menu::-webkit-scrollbar { display: none; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .hd-top { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .logo img { height: 32px; }
  .hd-actions { margin-left: auto; gap: 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 44px; margin: 0; }
  .search input { font-size: 15px; padding: 0 14px; }
  .search button { width: 50px; }
  .gnb { height: 52px; gap: 4px; }
  .all-cat { padding: 0 12px; height: 38px; font-size: 14px; gap: 6px; }
  .all-cat span { display: none; }
  .gnb-menu a { padding: 0 10px; height: 38px; font-size: 15px; gap: 5px; }
  .gnb-menu .i { width: 18px; height: 18px; }
  .cat-panel-list { grid-template-columns: repeat(2, 1fr); }
  .top { margin-top: 16px; gap: 14px; }
  .hero, .hero-track { min-height: 380px; border-radius: 16px; }
  .slide-text { padding: 26px 22px 0; }
  .slide h1 span, .slide .h1 span { font-size: 22px; }
  .slide h1 strong, .slide .h1 strong { font-size: 26px; }
  .slide-text p { font-size: 15px; }
  .btn-cta { margin-top: 16px; height: 40px; font-size: 15px; }
  .slide-bg img { object-position: center bottom; }
  .slide-art { width: 100%; height: 45%; top: auto; }
  .o1 { width: 70px; height: 70px; } .o2 { width: 100px; height: 100px; } .o3 { width: 56px; height: 56px; }
  .podium { height: 48px; bottom: 26px; }
  .kw { padding: 18px 16px; border-radius: 16px; }
  .kw h2 { font-size: 18px; }
  .kw ol { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
  .tile { padding: 14px; gap: 12px; }
  .tile-ic { width: 42px; height: 42px; border-radius: 12px; }
  .tile-ic .i { width: 22px; height: 22px; }
  .tile-tx strong { font-size: 15px; }
  .tile-tx span { font-size: 12.5px; }
  .tile:last-child { grid-column: 1 / -1; }
  .sec { margin-top: 32px; }
  .sec-head h2 { font-size: 20px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .thumb-tx strong { font-size: 22px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cats a { padding: 14px 6px; font-size: 13.5px; }
  .cat-ic { width: 56px; height: 56px; font-size: 26px; }
  .doc { padding-top: 28px; }
  .doc h1 { font-size: 26px; }
  .doc-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ── 3단계: 검색·상품·비교 ──────────────────────────── */
.muted { color: var(--faint); }
.center { text-align: center; }
.page { padding-top: 28px; }
.page-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.page-h1 small { font-size: 16px; color: var(--faint); font-weight: 500; margin-left: 6px; }
.page-lead { color: var(--muted); margin: -8px 0 20px; }
.crumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--purple); }
.crumb .i { width: 14px; height: 14px; color: var(--faint); }
.sec.first { margin-top: 20px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chips a:hover { border-color: var(--purple); color: var(--purple-d); }
.chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-h { font-size: 20px; font-weight: 800; }
.sorts { display: flex; gap: 14px; font-size: 14px; }
.sorts a { color: var(--faint); }
.sorts a[aria-current] { color: var(--navy); font-weight: 700; }
.empty-box { background: #fff; border-radius: var(--r); padding: 48px 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-box img { width: 240px; height: auto; }
.price-note { margin-top: 12px; font-size: 13px; color: var(--faint); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.pcard-link { display: flex; flex-direction: column; flex: 1; }
.pcard-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.pcard-img img { width: 82%; height: 82%; object-fit: contain; }
.pcard-flag { position: absolute; left: 10px; top: 10px; padding: 2px 10px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.pcard-body { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-meta { font-size: 13px; color: var(--faint); }
.pcard h3 { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price strong { font-size: 18px; font-weight: 800; }
.pcard-sub { display: flex; gap: 8px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.pcard-link:hover h3 { color: var(--purple-d); }
.pcard-cmp { margin: 4px 16px 14px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pcard-cmp .i { width: 16px; height: 16px; }
.pcard-cmp:hover { border-color: var(--purple); color: var(--purple-d); }
.pcard-cmp[aria-pressed="true"] { background: var(--purple-l); border-color: var(--purple); color: var(--purple-d); }
.chip-rocket { padding: 1px 8px; border-radius: 6px; background: #e8f0ff; color: #1d5bd8; font-weight: 700; font-size: 12px; }
.chip { padding: 1px 8px; border-radius: 6px; background: var(--bg2); color: var(--muted); font-weight: 600; font-size: 12px; }
.flag-soldout { padding: 2px 10px; border-radius: 99px; background: #fdecec; color: #b42318; font-size: 13px; font-weight: 700; }
.type-s { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--purple-l); color: var(--purple-d); font-size: 13px; font-weight: 700; }

.pg { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pg a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.pg a[aria-current] { background: var(--purple); color: #fff; }

.disc { display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--muted); }
.disc .i { width: 16px; height: 16px; margin-top: 2px; color: var(--purple); }
.notice-s { margin: 12px 0; padding: 12px 16px; border-radius: 10px; background: #fff8e6; color: #7a4d00; font-size: 14px; font-weight: 600; }
.admin-bar { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 14px; }
.admin-link { margin-top: 10px; font-size: 14px; }
.admin-link a, .admin-box a { color: var(--purple-d); text-decoration: underline; }
.admin-box { margin-top: 24px; padding: 14px 16px; border: 1px dashed var(--purple); border-radius: 12px; background: #fbfaff; font-size: 14px; }
.admin-box .btn-s { margin-left: 8px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--purple); color: #fff; font-weight: 700; }

.btn-line { background: #fff !important; color: var(--navy) !important; border: 1px solid var(--line) !important; gap: 6px; }
.btn-line:hover { border-color: var(--purple) !important; color: var(--purple-d) !important; }
.btn-line .i { width: 18px; height: 18px; }
.btn-buy { background: #ef3e33; }
.btn-buy:hover { background: #d4342a; }
.btn-icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); }
.btn-icon[aria-pressed="true"] { color: var(--purple); border-color: var(--purple); background: var(--purple-l); }
.btn-icon[aria-pressed="true"] .i { fill: currentColor; }

/* 상품 상세 */
.pd { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 36px; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.pd-img { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.pd-img img { width: 88%; height: 88%; object-fit: contain; }
.pd-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pd-info h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.pd-bm { color: var(--muted); }
.pd-price { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pd-price strong { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.pd-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.pd-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pd-acts .btn { margin-top: 0; }
.spec-list { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-k { padding: 14px 18px; background: var(--bg2); font-weight: 600; color: var(--muted); }
.spec-v { padding: 14px 18px; font-weight: 600; }
.na { color: var(--faint); font-weight: 400; }
.src { margin-left: 6px; font-size: 12px; color: var(--faint); text-decoration: underline; font-weight: 400; }
.links { display: grid; gap: 8px; }
.links a { display: block; padding: 14px 18px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; }
.links a:hover { color: var(--purple-d); }
.sim { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sim-item { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; gap: 2px 12px; padding: 12px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.sim-img { grid-row: 1 / 4; width: 56px; height: 56px; display: grid; place-items: center; }
.sim-img img { width: 100%; height: 100%; object-fit: contain; }
.sim-t { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sim-p { font-size: 13px; color: var(--muted); }
.sim-go { display: flex; align-items: center; font-size: 13px; color: var(--purple-d); font-weight: 700; }
.sim-go .i { width: 14px; height: 14px; }

/* 비교 상품 고르기 */
.pick-hero { text-align: center; padding: 20px 0 8px; }
.pick-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.pick-hero em { font-style: normal; color: var(--purple); }
.pick-hero p { color: var(--muted); margin-top: 8px; }
.picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; max-width: 1000px; margin: 24px auto 0; }
.pick-slot { position: relative; background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); min-height: 132px; }
.pick-label { display: inline-block; font-size: 13px; font-weight: 800; color: var(--purple-d); margin-bottom: 10px; }
.pick-search input { width: 100%; height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; font: inherit; font-size: 16px; }
.pick-search input:focus { outline: none; border-color: var(--purple); }
.pick-sug { position: absolute; z-index: 20; left: 18px; right: 18px; margin-top: 6px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 24, 39, .16); max-height: 380px; overflow-y: auto; }
.pick-sug li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; font-size: 14px; }
.pick-sug li[aria-selected="true"], .pick-sug li:hover { background: var(--purple-l); }
.pick-sug li img { width: 44px; height: 44px; object-fit: contain; }
.pick-sug .sug-meta { display: block; font-size: 12px; color: var(--faint); }
.pick-sug .sug-empty { display: block; cursor: default; color: var(--faint); }
.pick-chosen { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.pick-chosen[hidden], .pick-search[hidden] { display: none; }
.pick-img { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.pick-img img { width: 90%; height: 90%; object-fit: contain; }
.pick-t { font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick-change { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.pick-vs { align-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; font-size: 18px; }
.pick-same { grid-column: 1 / -1; justify-self: center; display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.pick-same input { accent-color: var(--purple); }
.pick-go { grid-column: 1 / -1; text-align: center; }
.pick-go .btn { min-width: 240px; height: 54px; font-size: 17px; margin-top: 0; border: 0; }
.pick-go .btn:disabled { background: #c7cbd6; cursor: not-allowed; }

/* 비교 결과 */
.cmp-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.cmp-intro { margin-top: 14px; color: var(--text); line-height: 1.8; max-width: 860px; }
.cmp-intro p + p { margin-top: 10px; }
.cmp-vslink { margin-top: 10px; }
.cmp-vslink a { color: var(--purple-d); font-weight: 700; text-decoration: underline; }
.cmp-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 22px; }
.cmp-card { position: relative; background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; height: 100%; }
.cmp-badge { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--purple); color: #fff; font-weight: 900; }
.cmp-img { width: 180px; height: 180px; display: grid; place-items: center; }
.cmp-img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-card h2 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.cmp-card h2 a:hover { color: var(--purple-d); }
.cmp-price strong { font-size: 24px; font-weight: 800; }
.cmp-card .btn { margin-top: 4px; width: 100%; max-width: 260px; }
.cmp-swap1 { font-size: 13px; color: var(--faint); text-decoration: underline; }
.cmp-vs { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; }
.diffs { display: grid; gap: 8px; }
.diffs li { display: flex; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
.diffs b { min-width: 90px; }
.ctbl { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ctbl-row { display: grid; grid-template-columns: 200px 1fr 1fr; border-bottom: 1px solid var(--line); }
.ctbl-row:last-child { border-bottom: 0; }
.ctbl-row > span { padding: 14px 18px; }
.ctbl-hd { background: var(--navy); color: #fff; font-weight: 800; }
.ctbl-hd span:not(:first-child) { text-align: center; }
.ctbl-k { background: var(--bg2); font-weight: 600; color: var(--muted); display: flex; flex-direction: column; }
.ctbl-k small { font-size: 12px; color: var(--faint); font-weight: 400; }
.ctbl-v { text-align: center; font-weight: 600; }
.ctbl-v.win { background: #f3f1ff; color: var(--purple-d); }
.win-tag { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--purple); color: #fff; font-size: 11px; font-style: normal; vertical-align: 2px; }
.cmp-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.cmp-tools .btn { margin-top: 0; }

/* 비교 담기 바 */
.cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17, 24, 39, .08); padding: 10px 0; }
.cmp-tray[hidden] { display: none; }
.cmp-tray-in { display: flex; align-items: center; gap: 14px; }
.cmp-slots { display: flex; gap: 10px; flex: 1; min-width: 0; }
.cmp-slots li { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; max-width: 360px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; }
.cmp-slots li.empty { border-style: dashed; color: var(--faint); justify-content: center; font-weight: 400; min-height: 50px; }
.cmp-slots img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.cmp-slots .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cmp-slots button { border: 0; background: none; color: var(--faint); padding: 2px 4px; font-size: 18px; line-height: 1; }
.cmp-acts { display: flex; align-items: center; gap: 10px; }
.cmp-clear { border: 0; background: none; color: var(--faint); font-size: 14px; }
.cmp-go { margin-top: 0; height: 44px; }
.cmp-go[aria-disabled="true"] { background: #c7cbd6; pointer-events: none; }
body.has-tray { padding-bottom: 72px; }

/* 비교리뷰 카드 */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vcard { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.vcard:hover { transform: translateY(-2px); }
.vcard-imgs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px; background: linear-gradient(135deg, #f3f1ff, #fff); aspect-ratio: 2 / 1; }
.vcard-imgs span { display: grid; place-items: center; height: 100%; min-height: 0; }
.vcard-imgs img { max-width: 100%; max-height: 120px; object-fit: contain; }
.vcard-imgs b, .tp-vs { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 12px; }
.vcard-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1; }
.vcard-body h3 { font-size: 16px; font-weight: 700; line-height: 1.45; }
.vcard .meta { padding-top: 6px; }
.thumb-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px; background: linear-gradient(135deg, #f3f1ff, #fff); color: var(--navy); }
.thumb-pair::after, .thumb-pair .thumb-tx { display: none; }
.thumb-pair .tp { display: grid; place-items: center; height: 100%; min-height: 0; }
.thumb-pair .tp img { position: static; width: auto; height: auto; max-width: 100%; max-height: 130px; object-fit: contain; }
.cats-all small { font-size: 12px; font-weight: 400; }

/* ── 4단계: 글·인기 키워드·가격 ─────────────────────── */
.kw a { position: relative; }
.kw-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-ch { font-size: 12px; font-weight: 700; }
.kw-ch.up { color: #e5484d; }
.kw-ch.down { color: #3e63dd; }
.kw-ch.new { color: var(--purple); }
.kw-ch.same { color: var(--faint); }
.pcard-flag.drop { background: #e5484d; }
.card-sum { margin-top: 6px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cards-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.thumb-pair.one { grid-template-columns: 1fr; }
.deal-grid .pcard-link { color: inherit; }

.art { max-width: 900px; }
.art-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.art-head h1 { margin-top: 12px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.art-date { margin-top: 10px; font-size: 14px; color: var(--faint); }
.art-sum { margin-top: 22px; padding: 20px 22px; border-radius: 16px; background: var(--purple-l); border: 1px solid #ddd8ff; }
.art-sum strong { display: block; color: var(--purple-d); margin-bottom: 8px; }
.art-sum ul { display: grid; gap: 6px; }
.art-sum li { padding-left: 18px; position: relative; font-weight: 600; }
.art-sum li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
.aps { display: grid; gap: 12px; }
.ap { display: grid; grid-template-columns: auto 120px 1fr auto; gap: 18px; align-items: center; padding: 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.ap:not(:has(.ap-rank)) { grid-template-columns: 120px 1fr auto; }
.ap-rank { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 900; }
.ap:first-child .ap-rank { background: var(--purple); }
.ap-img { width: 120px; height: 120px; display: grid; place-items: center; }
.ap-img img { width: 100%; height: 100%; object-fit: contain; }
.ap-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-lab { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--yellow); font-size: 12px; font-weight: 700; }
.ap-body h3 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.ap-body h3 a:hover { color: var(--purple-d); }
.ap-note { color: var(--muted); font-size: 14.5px; }
.ap-price strong { font-size: 18px; font-weight: 800; }
.ap-acts { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.ap-acts .btn { margin-top: 0; height: 44px; }
.ap-acts .pcard-cmp { margin: 0; }
.toc { margin-top: 32px; padding: 18px 22px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.toc ol { margin-top: 8px; padding-left: 20px; list-style: decimal; display: grid; gap: 4px; }
.toc a { color: var(--purple-d); }
.md { margin-top: 28px; font-size: 17px; line-height: 1.85; }
.md h2 { font-size: 24px; font-weight: 800; margin: 40px 0 12px; letter-spacing: -.02em; scroll-margin-top: 140px; }
.md h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; scroll-margin-top: 140px; }
.md p { margin: 12px 0; }
.md ul, .md ol { margin: 12px 0; padding-left: 22px; }
.md ul { list-style: disc; }
.md ol { list-style: decimal; }
.md li { margin: 4px 0; }
.md a { color: var(--purple-d); text-decoration: underline; text-underline-offset: 3px; }
.md blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--purple); background: #fff; border-radius: 0 10px 10px 0; color: var(--muted); }
.md-tbl { overflow-x: auto; margin: 16px 0; }
.md table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.md th, .md td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.md th { background: var(--bg2); font-weight: 700; }

@media (max-width: 767px) {
  .art-head h1 { font-size: 23px; }
  .md { font-size: 16px; }
  .md h2 { font-size: 20px; }
  .ap { grid-template-columns: auto 72px minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
  .ap-img { width: 72px; height: 72px; }
  .ap-body h3 { font-size: 15px; }
  .ap-acts { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .ap-acts .btn, .ap-acts .pcard-cmp { flex: 1; height: 42px; }
  .ap:not(:has(.ap-rank)) { grid-template-columns: 72px minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  .pd { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .pd-img { max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .page { padding-top: 18px; }
  .page-h1 { font-size: 22px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard-body { padding: 10px 12px 6px; }
  .pcard h3 { font-size: 14px; }
  .pcard-price strong { font-size: 16px; }
  .pcard-cmp { margin: 4px 12px 12px; height: 34px; font-size: 13px; }
  .pd { padding: 16px; border-radius: 16px; }
  .pd-info h1 { font-size: 21px; }
  .pd-price strong { font-size: 26px; }
  .pd-acts { width: 100%; }
  .pd-acts .btn { flex: 1; padding: 0 12px; }
  .spec-row { grid-template-columns: 110px 1fr; }
  .spec-k, .spec-v { padding: 12px; font-size: 14px; }
  .pick-hero h1 { font-size: 24px; }
  .picker { grid-template-columns: 1fr; gap: 10px; }
  .pick-vs { justify-self: center; width: 44px; height: 44px; font-size: 15px; }
  .pick-slot { min-height: 0; padding: 14px; }
  .pick-sug { left: 14px; right: 14px; }
  .pick-go { position: sticky; bottom: 12px; }
  .pick-go .btn { width: 100%; }
  .cmp-head h1 { font-size: 21px; }
  .cmp-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .cmp-vs { display: none; }
  .cmp-card { padding: 14px 10px; }
  .cmp-badge { left: 10px; top: 10px; width: 26px; height: 26px; font-size: 13px; }
  .cmp-img { width: 110px; height: 110px; }
  .cmp-card h2 { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cmp-price strong { font-size: 17px; }
  .cmp-card .btn { height: 42px; font-size: 14px; padding: 0 8px; }
  /* 360px에서도 가로 스크롤 없이: 항목명은 한 줄 위로, A·B 값은 나란히 */
  .ctbl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ctbl-hd span:first-child { display: none; }
  .ctbl-k { grid-column: 1 / -1; flex-direction: row; gap: 6px; align-items: baseline; padding: 8px 12px !important; font-size: 13px; }
  .ctbl-row > .ctbl-v { padding: 12px 8px; font-size: 14px; }
  .ctbl-v + .ctbl-v { border-left: 1px solid var(--line); }
  .ctbl-hd span { padding: 10px 8px !important; }
  .diffs li { flex-direction: column; gap: 2px; padding: 12px 14px; }
  .cmp-tray-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .cmp-slots li { max-width: none; }
  .cmp-acts { justify-content: space-between; }
  .cmp-go { flex: 1; }
  body.has-tray { padding-bottom: 128px; }
}
