/* ==========================================================
   페이지투웹 kit · 디자인 "카탈로그" (catalog). 설명은 catalog.js 첫머리.
   겉모습: shadcn/ui neutral 테마 값(--radius .5rem, 1px --border, 회색 단계)과 컴포넌트 모양을 그대로 옮겼다.
     같은 회사의 사용설명서(manual.css)와 토큰이 같다. 1px 테두리·카드·작은 둥근 모서리는 shadcn 관례라 쓴다.
   글꼴: Geist(라틴, 가변, OFL, engine/kit/fonts/shadcn-Geist-*) + Pretendard(한글, index.html에서 CDN).
   색: 흰 바탕 + neutral 회색. 제품 사진 칸은 사진 바탕과 같은 따뜻한 회색(--tile). 고객 색은 딱지 점(--accent-2) 하나.
       문의는 검은 면(--primary)에 큰 전화번호.
   ========================================================== */
@font-face { font-family: "Geist"; src: url("../fonts/shadcn-Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
  /* shadcn neutral */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f5f5f5;
  --muted: #f5f5f5;
  --muted-foreground: #525252;   /* 보조 글: 흰 바탕 7.8:1, 회색 판 위 7.3:1 (2026-11-17 2차에 #696969에서 진하게) */
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #a3a3a3;
  --radius: .5rem;
  --tile: #E3E2DF;      /* 제품 사진 바탕과 같은 색(grade-tile.py가 사진 바탕을 이 색으로 맞춘다) */
  --f-sans: "Geist", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --wrap: 1280px;
  --pad: clamp(16px, 3vw, 32px);
  --bar-h: 60px;
  --tool-h: 60px;
  /* page.css 값 덮기 */
  --paper: var(--background);
  --ink: var(--foreground);
  --line: var(--border);
  --f-body: var(--f-sans);
}
html { scroll-padding-top: calc(var(--bar-h) + var(--tool-h) + 12px); }
body { background: var(--background); color: var(--foreground); font-family: var(--f-sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: calc(var(--radius) - 2px); }
.ct-wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.ct-code { font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
kbd { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--muted);
  font: 500 13px/1 var(--f-sans); color: var(--muted-foreground); }

/* ---------- Button (default · outline · ghost · invert) ---------- */
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: calc(var(--radius) - 2px);
  font: 500 14px/1 var(--f-sans); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.ct-btn svg { width: 16px; height: 16px; flex: none; }
.ct-btn.is-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.ct-btn.is-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.ct-btn.is-primary { background: var(--primary); color: var(--primary-foreground); }
.ct-btn.is-primary:hover { background: #262626; }
.ct-btn.is-outline { background: var(--background); border-color: var(--input); color: var(--foreground); }
.ct-btn.is-outline:hover, .ct-btn.is-ghost:hover { background: var(--muted); }
.ct-btn.is-ghost { background: transparent; color: var(--foreground); }
.ct-btn.is-invert { background: var(--primary-foreground); color: var(--primary); }
.ct-btn.is-invert:hover { background: #e5e5e5; }

/* ---------- 위 줄 ---------- */
.ct-bar { position: sticky; top: 0; z-index: 40; height: var(--bar-h); background: var(--background); border-bottom: 1px solid transparent; transition: border-color .2s; }
.ct-bar.is-solid { border-bottom-color: var(--border); }
.ct-bar-in { display: flex; align-items: center; gap: 24px; height: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
.ct-logo { display: flex; align-items: center; min-height: 44px; }
.ct-bar .logo { height: 22px; width: auto; }
.ct-bar-nav { display: flex; gap: 4px; }
.ct-bar-nav a { padding: 8px 10px; border-radius: calc(var(--radius) - 2px); font-size: 14px; font-weight: 500; color: var(--muted-foreground); text-decoration: none; }
.ct-bar-nav a:hover { color: var(--foreground); background: var(--muted); }
.ct-cmd-btn { display: flex; align-items: center; gap: 8px; margin-left: auto; width: min(320px, 30vw); height: 36px; padding: 0 6px 0 12px;
  border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--background); color: var(--muted-foreground); font-size: 14px; cursor: pointer; }
.ct-cmd-btn:hover { background: var(--muted); }
.ct-cmd-btn svg { width: 16px; height: 16px; flex: none; }
.ct-cmd-btn kbd { margin-left: auto; }

/* ---------- 첫 화면: 제목 + 분류 카드 ---------- */
.ct-hero { padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.ct-hero-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ct-hero h1 { margin: 0; max-width: 9em; font-size: clamp(40px, 3.6vw, 68px);   /* 2026-11-21: 100 → 68 */ font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.ct-lead { margin: 22px 0 0; max-width: 32em; font-size: 17px; line-height: 1.65; color: #525252; }
.ct-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ct-hero-count { display: flex; gap: 36px; margin: 40px 0 0; }
.ct-hero-count div { display: flex; align-items: baseline; gap: 10px; }
.ct-hero-count dt { order: 2; font-size: 14px; color: var(--muted-foreground); }
.ct-hero-count dd { margin: 0; font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ct-hero-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-hcat { position: relative; display: grid; grid-template-rows: 1fr auto; width: 100%; padding: 0; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; color: inherit;
  transition: border-color .2s, box-shadow .2s; }
.ct-hcat:hover { border-color: #d4d4d4; box-shadow: 0 4px 16px -8px rgba(0, 0, 0, .18); }
.ct-hcat-pic { display: block; aspect-ratio: 4 / 3; background: var(--tile); overflow: hidden; }
.ct-hcat-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ct-hcat:hover .ct-hcat-pic img { transform: scale(1.06); }
.ct-hcat-t { display: grid; padding: 12px 16px 14px; }
.ct-hcat-t b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ct-hcat-t small { font-size: 13px; color: var(--muted-foreground); }
.ct-hcat-n small { margin-left: 2px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }
.ct-hcat-n { position: absolute; right: 14px; bottom: 12px; font-size: 32px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
body[data-filter]:not([data-filter="all"]) .ct-hcat { opacity: .5; }

/* ---------- 붙어 다니는 줄: Tabs · 찾기 · 보기 전환 ---------- */
.ct-toolbar { position: sticky; top: var(--bar-h); z-index: 30; background: var(--background); border-bottom: 1px solid var(--border); }
.ct-toolbar-in { display: flex; align-items: center; gap: 12px; height: var(--tool-h); }
.ct-tabs { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 4px; border-radius: var(--radius); background: var(--muted); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: calc(var(--radius) - 2px); background: none;
  font-size: 14px; font-weight: 500; color: #5c5c5c; cursor: pointer; transition: color .15s, background .15s, box-shadow .15s; }
.ct-tabs button span { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.ct-tabs button:hover { color: var(--foreground); }
.ct-tabs [aria-selected="true"] { background: var(--background); color: var(--foreground); border-color: var(--border); }
.ct-tabs [aria-selected="true"] span { color: var(--accent-2); }
.ct-search { position: relative; display: flex; align-items: center; margin-left: auto; }
.ct-search svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted-foreground); pointer-events: none; }
.ct-search input { width: 220px; height: 36px; padding: 0 12px 0 32px; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--background);
  font: 14px var(--f-sans); color: var(--foreground); }
.ct-search input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgba(163, 163, 163, .35); }
/* 브라우저 기본 파란 × 대신 회색 × */
.ct-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: #737373;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.ct-views { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); }
.ct-views button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: 4px; background: none; color: var(--muted-foreground); cursor: pointer; }
.ct-views button svg { width: 16px; height: 16px; }
.ct-views [aria-pressed="true"] { background: var(--muted); color: var(--foreground); }

/* ---------- 격자: 분류 카드 + 제품 카드 ---------- */
.ct-shop { padding-bottom: clamp(64px, 9vw, 120px); }
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 24px; }
.ct-grid > .is-out { display: none; }
body[data-filter]:not([data-filter="all"]) .ct-cat { order: -1; }
.ct-tile { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ct-tile:hover { border-color: #d4d4d4; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .22); }
.ct-tile:focus-visible { outline-offset: 2px; border-radius: calc(var(--radius) + 4px); }
.ct-pic { position: relative; aspect-ratio: 1; background: var(--tile); overflow: hidden; }
.ct-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .8s var(--ease); }
.ct-tile:hover .ct-pic img { transform: scale(1.2); }
.ct-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: calc(var(--radius) - 2px);
  background: var(--background); border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--foreground); }
.ct-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); }
.ct-badge.is-new { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.ct-badge.is-new::before { background: var(--accent-2); }
.ct-tile-body { padding: 14px 16px 12px; }
.ct-tile-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 10px; }
.ct-tile-head .ct-code { font-size: 18px; }
.ct-name { font-size: 14px; color: var(--muted-foreground); }
.ct-specs { margin: 0; font-size: 13px; }
.ct-specs div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); }
.ct-specs dt { flex: none; color: var(--muted-foreground); }
.ct-specs dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

.ct-cat { display: flex; flex-direction: column; padding: 22px 22px 20px; border-radius: calc(var(--radius) + 4px); background: var(--primary); color: var(--primary-foreground); }
.ct-cat h2 { margin: 0; font-size: clamp(32px, 3vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.ct-cat h2 small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: #a3a3a3; }
.ct-cat-sum { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #d4d4d4; }
.ct-cat-list { list-style: none; margin: 22px 0 0; padding: 0; }
.ct-cat-list li + li { border-top: 1px solid #333; }
.ct-cat-list button { display: grid; grid-template-columns: auto 1fr 16px; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0; border: 0; background: none;
  color: #d4d4d4; font: 14px var(--f-sans); text-align: left; cursor: pointer; }
.ct-cat-list button b { color: var(--primary-foreground); font-weight: 600; }
.ct-cat-list button svg { width: 16px; height: 16px; color: #737373; transition: transform .25s var(--ease); }
.ct-cat-list button:hover svg { transform: translateX(2px); color: #fff; }
.ct-cat-cols { margin: 14px 0 0; font-size: 13px; color: #a3a3a3; }
.ct-cat-tips-h { margin: 22px 0 0; font-size: 13px; color: #a3a3a3; }
.ct-cat-tips { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.ct-cat-tips li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid #333; font-size: 14px; line-height: 1.45; color: #e5e5e5; word-break: keep-all; }
.ct-cat-tips li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.ct-cat-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.ct-cat-count { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.ct-cat-count span { margin-left: 4px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: #a3a3a3; }
.ct-when-one, body[data-filter]:not([data-filter="all"]) .ct-when-all { display: none; }
body[data-filter]:not([data-filter="all"]) .ct-when-one { display: inline; }

/* ---------- 비교표 (Table) ---------- */
.ct-table-wrap { display: none; margin-top: 24px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow-x: auto; }
body[data-view="table"] .ct-table-wrap { display: block; }
body[data-view="table"] .ct-grid { display: none; }
.ct-cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.ct-cmp .is-out { display: none; }
.ct-cmp th, .ct-cmp td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.ct-cmp-head th { height: 44px; background: var(--muted); font-size: 13px; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.ct-cmp-head th:first-child { font-size: 15px; font-weight: 600; color: var(--foreground); }
.ct-cmp-head small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted-foreground); }
.ct-cmp tbody:first-child .ct-cmp-head th { border-top: 0; }
.ct-cmp-row { cursor: pointer; transition: background .15s; }
.ct-cmp-row:hover { background: #fafafa; }
.ct-cmp-row th { font-weight: 400; min-width: 210px; }
.ct-cmp-row th .ct-code { display: block; font-size: 15px; }
.ct-cmp-row th .ct-badge { position: static; margin-left: 8px; vertical-align: 1px; }
.ct-cmp-row td { font-variant-numeric: tabular-nums; font-weight: 500; }
.ct-cmp-pic { width: 76px; }
.ct-cmp-pic img { width: 56px; height: 56px; border-radius: calc(var(--radius) - 2px); background: var(--tile); object-fit: cover; transform: none; }
.ct-cmp-go { width: 40px; color: var(--muted-foreground); }
.ct-cmp-go svg { width: 16px; height: 16px; }
.ct-cmp tbody:last-child tr:last-child > * { border-bottom: 0; }

.ct-empty { padding: 48px 0 56px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ct-empty[hidden] { display: none; }
.ct-empty p { margin: 0; font-size: 16px; }
.ct-empty .ct-empty-sub { font-size: 14px; color: var(--muted-foreground); }
.ct-empty-acts { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ct-empty-acts > span { display: contents; }
.ct-empty-acts .ct-code { margin-right: 4px; }

/* ---------- 고르기 전에: 형번 읽는 법 · 공통 사양 · 실린더 고르기 ---------- */
.ct-guide-sec { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.ct-guide-sec h2 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.ct-guide-sec h2 + p, .ct-common > div > p { margin: 10px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.65; color: #525252; word-break: keep-all; }
.ct-howto { padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--radius) + 6px); background: var(--muted); }
.ct-howto-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 40px; }
.ct-howto-code { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: start; gap: 6px; }
.ct-howto-code span { display: grid; justify-items: center; gap: 10px; }
.ct-howto-code b { display: grid; place-items: center; min-width: 56px; height: clamp(52px, 4.4vw, 64px); padding: 0 clamp(12px, 1.6vw, 20px); border-radius: var(--radius); background: var(--background); border: 1px solid var(--border);
  font-size: clamp(26px, 2.2vw, 36px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ct-howto-code .is-fixed b { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.ct-howto-code span:nth-child(3) b { background: none; border: 0; min-width: 0; padding: 0 2px; color: #a3a3a3; }
.ct-howto-code small { position: relative; padding-top: 10px; font-size: 13px; color: #525252; white-space: nowrap; }
.ct-howto-code small::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 7px; background: #a3a3a3; }
.ct-howto-code small:empty { display: none; }
.ct-howto-opts { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-howto-opts > div { padding: 16px; border-radius: var(--radius); background: var(--background); border: 1px solid var(--border); }
.ct-howto-opts h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.ct-howto-opts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #525252; }
.ct-howto-opts li b { display: inline-block; min-width: 44px; margin-right: 6px; color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-common { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.ct-common dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.ct-common dl div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--border); }
.ct-common dl div:nth-child(odd) { padding-right: 24px; }
.ct-common dt { font-size: 13px; color: var(--muted-foreground); }
.ct-common dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; line-height: 1.5; word-break: keep-all; }
.ct-guide { margin-top: clamp(56px, 7vw, 96px); }
.ct-guide-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.ct-guide-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-guide-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted-foreground); }
.ct-field { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--background); }
.ct-field:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(163, 163, 163, .35); }
.ct-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 600 18px var(--f-sans); color: var(--foreground); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ct-field input::-webkit-inner-spin-button, .ct-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ct-field i { font-style: normal; color: var(--muted-foreground); }
.ct-guide-form select { height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); font: 500 15px var(--f-sans); color: var(--foreground); appearance: none; -webkit-appearance: none;
  background: var(--background) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
.ct-guide-verdict { margin: 20px 0 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--muted); font-size: 15px; line-height: 1.6; word-break: keep-all; }
.ct-guide-verdict b { font-size: 18px; }
.ct-guide-table { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow-x: auto; }
.ct-force { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ct-force th, .ct-force td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ct-force th:first-child, .ct-force td:nth-child(2), .ct-force thead th:nth-child(2) { text-align: left; }
.ct-force td:nth-child(2) { color: var(--muted-foreground); }
.ct-force thead th { height: 40px; background: #fafafa; font-weight: 500; color: var(--muted-foreground); font-size: 13px; }
.ct-force tbody tr:last-child > * { border-bottom: 0; }
.ct-force .is-col { background: #fafafa; font-weight: 600; color: var(--foreground); }
.ct-force tr.is-pick > * { background: color-mix(in srgb, var(--accent-2) 12%, #fff); }
.ct-force tr.is-pick .is-col { background: var(--primary); color: var(--primary-foreground); }
.ct-force tr.is-pick th { font-weight: 700; }
.ct-guide-note { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); word-break: keep-all; }
.ct-pdf { text-align: center; margin: 40px 0 0; }

/* ---------- 문의: 검은 면 + 큰 전화번호 ---------- */
.ct-contact { background: var(--primary); color: var(--primary-foreground); padding: clamp(64px, 9vw, 120px) 0; }
.ct-contact-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.ct-contact h2 { margin: 0; font-size: clamp(32px, 2.6vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }   /* 2차: 문의 방법이 주인공, 전화번호는 줄 하나로 */
.ct-contact-lead { margin: 18px 0 0; max-width: 40ch; font-size: 17px; line-height: 1.65; color: #d4d4d4; word-break: keep-all; }
.ct-tel { color: inherit; text-underline-offset: 4px; text-decoration-color: #737373; font-variant-numeric: tabular-nums; }
.ct-tel:hover { color: #d4d4d4; }
.ct-contact-lines { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; }
.ct-contact-lines a { color: inherit; text-underline-offset: 4px; text-decoration-color: #737373; }
.ct-contact-photo { margin: 32px 0 0; }
.ct-contact-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) + 4px); }
.ct-contact-photo figcaption { margin-top: 10px; font-size: 13px; color: #a3a3a3; }
.ct-contact-side { display: grid; gap: 16px; justify-items: start; padding: 22px; border: 1px solid #333; border-radius: calc(var(--radius) + 4px); }
.ct-contact-side p { margin: 0; font-size: 15px; line-height: 1.65; color: #d4d4d4; }
.ct-contact-side .ct-contact-addr { color: #a3a3a3; font-size: 14px; }
.ct-offices { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct-offices caption { caption-side: top; text-align: left; padding-bottom: 6px; font-size: 13px; color: #a3a3a3; }
.ct-offices th, .ct-offices td { padding: 8px 0; border-top: 1px solid #333; text-align: left; font-weight: 400; color: #d4d4d4; }
.ct-offices th { color: #fff; font-weight: 600; padding-right: 12px; white-space: nowrap; }
.ct-offices td:last-child { text-align: right; }
.ct-offices a { color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-offices a:hover { text-decoration: underline; }

.ct-foot { background: var(--primary); color: #a3a3a3; border-top: 1px solid #262626; font-size: 13px; }
.ct-foot-in { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding-block: 28px 20px; border-bottom: 1px solid #262626; }
.ct-biz { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ct-biz div { display: flex; gap: 6px; }
.ct-biz dt { color: #8a8a8a; }
.ct-biz dd { margin: 0; color: #d4d4d4; font-variant-numeric: tabular-nums; }
.ct-foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 14px 0 32px; }
.ct-foot .logo { height: 20px; width: auto; filter: invert(1) hue-rotate(180deg); }
.ct-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ct-foot a { color: #d4d4d4; text-decoration: none; }
.ct-foot a:hover { color: #fff; }
.ct-foot p { margin: 0 0 2px; }

/* ---------- 상세: Sheet(오른쪽에서) ---------- */
.modal-backdrop { background: rgba(0, 0, 0, .5); backdrop-filter: none; -webkit-backdrop-filter: none; }
.modal:has(.ct-detail) { place-items: stretch end; padding: 0; }
.modal-panel:has(.ct-detail) { width: min(600px, 100%); height: 100svh; max-height: none; padding: 0; border-radius: 0; background: var(--background);
  border-left: 1px solid var(--border); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .3); }
.modal-panel:has(.ct-detail) .modal-close { position: absolute; top: 14px; right: 14px; margin: 0; width: 36px; height: 36px; border-radius: calc(var(--radius) - 2px);
  background: var(--background); border: 1px solid var(--border); }
.modal-panel:has(.ct-detail) .modal-close:hover { background: var(--muted); }
.ct-detail-pic { position: relative; margin: 0; aspect-ratio: 16 / 10; max-height: 320px; width: 100%; background: var(--tile); overflow: hidden; }
.ct-detail-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.ct-detail-pic .ct-badge { left: 20px; top: 18px; }
.ct-detail-body { padding: 22px clamp(20px, 3vw, 32px) 28px; }
.ct-crumb { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted-foreground); }
.ct-crumb span { color: #d4d4d4; }
.ct-crumb b { color: var(--foreground); font-weight: 600; }
.ct-detail h2 { margin: 6px 0 0; font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; }
.ct-detail-lead { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: #525252; }
.ct-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 0; border: 1px solid var(--border); border-radius: var(--radius); }
.ct-key div { padding: 12px 14px; min-width: 0; }
.ct-key div + div { border-left: 1px solid var(--border); }
.ct-key dt { font-size: 13px; color: var(--muted-foreground); }
.ct-key dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ct-detail h3 { margin: 28px 0 10px; font-size: 15px; font-weight: 600; }
.ct-table-box { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ct-table th, .ct-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.ct-table tr:last-child > * { border-bottom: 0; }
.ct-table tr:hover { background: #fafafa; }
.ct-table th { width: 36%; font-weight: 400; color: var(--muted-foreground); }
.ct-table td { font-weight: 500; font-variant-numeric: tabular-nums; }
.ct-order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 14px; background: var(--muted); border-radius: var(--radius); font-size: 15px; }
.ct-order b { font-weight: 600; }
.ct-seg-sel select { height: 32px; padding: 0 28px 0 10px; border: 1px dashed #a3a3a3; border-radius: calc(var(--radius) - 2px); font: 500 14px var(--f-sans); color: var(--foreground); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: var(--background) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 7px center / 14px no-repeat; }
.ct-seg-sel select:hover { border-color: #737373; }
.ct-seg-sel select:has(option:checked:not([value=""])) { border-style: solid; border-color: var(--foreground); }
.ct-order-out { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 10px 10px 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.ct-order-out output { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #a3a3a3; overflow-wrap: anywhere; }
.is-done .ct-order-out output { color: var(--foreground); }
.ct-order-out .ct-btn:disabled { opacity: .45; cursor: not-allowed; }
/* 치수도 */
.ct-dw { position: relative; aspect-ratio: 480 / 210; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fafafa; }
.ct-dw svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-dw-body { fill: #fff; stroke: #171717; stroke-width: 1.5; }
.ct-dw-cap { fill: #e5e5e5; stroke: #171717; stroke-width: 1.5; }
.ct-dw-part { fill: #fff; stroke: #171717; stroke-width: 1.5; }
.ct-dw-thin { stroke: #a3a3a3; stroke-width: 1; fill: none; }
.ct-dw-port { fill: #fff; stroke: #171717; stroke-width: 1.5; }
.ct-dw-center { stroke: #a3a3a3; stroke-width: 1; stroke-dasharray: 12 4 2 4; }
.ct-dw-dim { stroke: #171717; stroke-width: 1; fill: none; }
.ct-dw-ext { stroke: #a3a3a3; stroke-width: .8; fill: none; }
.ct-dw-head { fill: #171717; }
.ct-dw-lab { position: absolute; transform: translate(-50%, -50%); padding: 0 5px; border-radius: 4px; background: #fafafa; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-dw-lab.is-note { font-weight: 500; color: var(--muted-foreground); background: none; }
.ct-dims { overflow-x: auto; }
.ct-dims .ct-table { min-width: 420px; }
.ct-dims .ct-table th, .ct-dims .ct-table td { width: auto; text-align: right; white-space: nowrap; }
.ct-dims .ct-table thead th { background: #fafafa; font-size: 13px; color: var(--muted-foreground); font-weight: 500; }
.ct-dims .ct-table th:first-child { text-align: left; color: var(--foreground); font-weight: 600; }
.ct-seg { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px dashed #a3a3a3; border-radius: calc(var(--radius) - 2px); background: var(--background); font-size: 13px; font-weight: 500; }
.ct-order-note { margin: 8px 0 0; font-size: 13px; color: var(--muted-foreground); }
.ct-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ct-detail-nav { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }
.ct-detail-nav .ct-btn { color: var(--muted-foreground); }
.ct-detail-nav .ct-btn:hover { color: var(--foreground); }

/* ---------- Command: 제품 찾기 창 ---------- */
.ct-cmd { position: fixed; inset: 0; z-index: 80; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.ct-cmd[hidden] { display: none; }
.ct-cmd-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s; }
.ct-cmd.is-open .ct-cmd-backdrop { opacity: 1; }
.ct-cmd-panel { position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: min(560px, 76vh); background: var(--background);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35); overflow: hidden;
  transform: scale(.97) translateY(-6px); opacity: 0; transition: transform .2s var(--ease), opacity .2s; }
.ct-cmd.is-open .ct-cmd-panel { transform: none; opacity: 1; }
.ct-cmd-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.ct-cmd-input svg { width: 18px; height: 18px; color: var(--muted-foreground); flex: none; }
.ct-cmd-input input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; font: 15px var(--f-sans); color: var(--foreground); outline: none; }
.ct-cmd-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.ct-cmd-group[hidden] { display: none; }
.ct-cmd-heading { margin: 0; padding: 8px 8px 4px; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.ct-cmd-item { display: grid; grid-template-columns: 36px auto 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0;
  border-radius: calc(var(--radius) - 2px); background: none; text-align: left; cursor: pointer; font-size: 14px; color: var(--foreground); }
.ct-cmd-item[hidden] { display: none; }
.ct-cmd-item img { width: 36px; height: 36px; border-radius: 4px; background: var(--tile); object-fit: cover; }
.ct-cmd-item .ct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-cmd-spec { font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-cmd-item[aria-selected="true"] { background: var(--muted); }
.ct-cmd-empty { margin: 0; padding: 32px 0; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.ct-cmd-foot { display: flex; gap: 16px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-foreground); }
.ct-cmd-foot span { display: inline-flex; align-items: center; gap: 4px; }
.ct-cmd-foot kbd { height: 18px; padding: 0 5px; }

/* ---------- 태블릿 · 휴대폰 ---------- */
@media (max-width: 1080px) {
  .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-bar-nav { display: none; }
  .ct-hero-in { grid-template-columns: 1fr; }
  .ct-hero-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ct-contact-in { grid-template-columns: 1fr; }
  .ct-howto-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-common, .ct-guide-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --bar-h: 56px; --tool-h: 108px; }
  .ct-cmd-btn { width: auto; flex: 1; }
  .ct-cmd-btn kbd { display: none; }
  .ct-bar-in { gap: 10px; }
  .ct-bar-cta { display: none; }
  .ct-toolbar-in { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 8px; }
  .ct-tabs { order: 1; flex-basis: 100%; }
  .ct-tabs button { flex: 1 0 auto; }
  .ct-search { order: 2; margin-left: 0; flex: 1; }
  .ct-search input { width: 100%; }
  .ct-views { order: 3; }
  .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 16px; }
  .ct-grid > * { order: var(--om); }
  .ct-cat { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 18px; margin-top: 8px; }
  .ct-cat-sum { grid-column: 1; margin-top: 10px; }
  .ct-cat-foot { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; justify-content: space-between; padding-top: 8px; }
  .ct-cat-count { font-size: 26px; }
  .ct-cat-list, .ct-cat-cols, .ct-cat-tips-h, .ct-cat-tips { grid-column: 1 / -1; }
  .ct-hero-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ct-hcat-n { font-size: 26px; }
  .ct-hero-count dd { font-size: 36px; }
  .ct-tile-body { padding: 12px 12px 2px; }
  .ct-tile-head { margin-bottom: 8px; }
  .ct-tile-head .ct-code { font-size: 16px; }
  .ct-name { font-size: 13px; }
  .ct-specs { font-size: 13px; }
  .ct-specs div { display: block; padding: 6px 0; }
  .ct-specs dd { text-align: left; margin-top: 1px; }
  .ct-badge { left: 8px; top: 8px; height: 22px; padding: 0 7px; font-size: 13px; }
  .ct-foot-in { grid-template-columns: 1fr; gap: 14px; }
  .ct-foot p { text-align: left; }
  .modal-panel:has(.ct-detail) { height: auto; max-height: 92svh; border-left: 0; border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; }
  .modal:has(.ct-detail) { place-items: end stretch; }
  .ct-detail-pic { aspect-ratio: 16 / 10; }
  .ct-key dd { font-size: 15px; }
  .ct-cmd { padding-top: 10px; }
  .ct-cmd-panel { max-height: 80svh; }
  .ct-cmd-item { grid-template-columns: 36px auto 1fr; }
  .ct-cmd-spec { display: none; }
  .ct-cmd-foot { display: none; }
}
@media (max-width: 600px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-cat-list { display: none; } /* 한 줄 목록에서는 바로 아래 카드가 같은 목록이다 */
  .ct-tabs button { padding: 0 9px; font-size: 13px; gap: 4px; }
  .ct-tile { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .ct-pic { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 100%; }
  .ct-pic img { position: absolute; inset: 0; transform: scale(1.2); }
  .ct-tile:hover .ct-pic img { transform: scale(1.25); }
  .ct-badge { left: 6px; top: 6px; }
  .ct-tile-body { padding: 12px 12px 0; }
  .ct-specs div { display: flex; padding: 5px 0; }
  .ct-specs dd { text-align: right; margin: 0; }
  /* 비교표: 휴대폰에서는 줄마다 사양 이름을 붙여 세로로 */
  .ct-cmp { min-width: 0; }
  .ct-cmp, .ct-cmp tbody, .ct-cmp-head { display: block; }
  .ct-cmp-head th { display: none; }
  .ct-cmp-head th:first-child { display: block; height: auto; padding: 12px 14px; }
  .ct-cmp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .ct-cmp .ct-cmp-row > * { padding: 0; border: 0; }
  .ct-cmp-pic { grid-row: 1 / span 4; width: auto; }
  .ct-cmp-row th { min-width: 0; margin-bottom: 4px; }
  .ct-cmp .ct-cmp-row td[data-label] { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
  .ct-cmp-row td[data-label]::before { content: attr(data-label); font-weight: 400; color: var(--muted-foreground); }
  .ct-cmp-go { display: none; }
  .ct-howto-opts, .ct-common dl, .ct-guide-form { grid-template-columns: 1fr; }
  .ct-howto-code { gap: 4px; }
  .ct-howto-code b { min-width: 0; height: 48px; padding: 0 10px; font-size: 24px; }
  .ct-common dl div:nth-child(odd) { padding-right: 0; }
}
@media (max-width: 420px) {
  .ct-hero h1 { font-size: 40px; }
  .ct-lead { font-size: 16px; }
  .ct-hero-actions .ct-btn { flex: 1; }
  .ct-key { grid-template-columns: 1fr; }
  .ct-key div + div { border-left: 0; border-top: 1px solid var(--border); }
  .ct-key div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .ct-key dd { margin: 0; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .ct-pic img, html:not(.force-motion) .ct-hcat-pic img, html:not(.force-motion) .ct-cmd-panel { transition: none; }
}
