/* 제이에스마켓 정적 사이트 (2026-10-29) */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #15171a;
  --sub: #4b5260;
  --muted: #8a919e;
  --line: #e6e8ec;
  --accent: #1f5eff;
  --accent-soft: #eaf0ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.65; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.025em; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; font-size: 15px; }
.btn:hover { background: var(--accent); }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.hd { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { flex: none; display: flex; }
.logo img { width: 96px; height: auto; display: block; }
.hd-search { flex: 1; min-width: 0; max-width: 420px; margin-left: auto; display: flex; align-items: center; background: var(--bg); border: 1px solid transparent; border-radius: 999px; padding: 0 6px 0 16px; transition: border-color .15s, background .15s; }
.hd-search:focus-within { background: #fff; border-color: var(--accent); }
.hd-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; height: 40px; outline: none; color: var(--text); }
.hd-search button { border: 0; background: transparent; color: var(--sub); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.cat-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--sub); border-bottom: 2px solid transparent; white-space: nowrap; }
.cat-nav a:hover { color: var(--text); }
.cat-nav a[aria-current] { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- hero (메인) */
.hero { background: radial-gradient(1200px 400px at 15% -10%, #dfe8ff 0%, transparent 60%), radial-gradient(900px 380px at 100% 0%, #e9f4ff 0%, transparent 55%), var(--surface); border-bottom: 1px solid var(--line); padding: 64px 0 52px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.hero-lead { max-width: 680px; margin: 16px 0 28px; color: var(--sub); font-size: clamp(16px, 1.8vw, 18px); }
.hero-search { display: flex; gap: 8px; max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 0 16px; background: transparent; color: var(--text); }
.hero-search button { border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 12px 24px; cursor: pointer; }
.hero-search button:hover { background: #164ad6; }
.hero-search.slim { margin: 0 0 24px; box-shadow: none; }
.stats { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.stats strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- sections */
.sec { margin: 48px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2, .sec > h2 { font-size: 22px; font-weight: 800; }
.sec-head a { color: var(--sub); font-size: 14px; font-weight: 600; }
.sec-head a:hover { color: var(--accent); }

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-main strong { font-size: 18px; font-weight: 700; }
.cat-main span { color: var(--accent); font-weight: 700; font-size: 14px; }
.cat-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cat-sub a { font-size: 13px; color: var(--sub); background: var(--bg); padding: 4px 10px; border-radius: 999px; }
.cat-sub a:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- 카드 그리드 */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 14px; }
.card { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.thumb { aspect-ratio: 4 / 3; background: #eceef2; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { color: #c3c8d2; font-weight: 800; font-size: 22px; letter-spacing: .05em; }
.card-body { padding: 12px 14px 14px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { margin: 8px 0 4px; font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { margin: 0; font-weight: 800; font-size: 16px; }
.card .meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- 목록 */
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumb li:not(:last-child)::after { content: "›"; margin-left: 4px; }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current] { color: var(--sub); display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.list-head { margin: 20px 0 24px; }
.list-head h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.list-head .count { color: var(--accent); font-size: .6em; vertical-align: middle; margin-left: 4px; }
.list-head p { margin: 8px 0 0; color: var(--sub); max-width: 760px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--sub); }
.tabs a:hover { border-color: var(--text); color: var(--text); }
.tabs a[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 36px 0 64px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 15px; background: var(--surface); border: 1px solid var(--line); color: var(--sub); }
.pager a:hover { border-color: var(--text); color: var(--text); }
.pager span[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- 게시물 */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; margin: 16px 0 24px; }
.post-head h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 22px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: #fafbfc; padding: 12px 16px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts dd a { color: var(--accent); }
.facts .price-lg { font-size: 20px; font-weight: 800; color: var(--text); }
.lead { margin: 24px 0 0; color: var(--sub); }
.gallery { display: grid; gap: 12px; margin: 24px 0 0; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #eceef2; }
.gallery img { display: block; width: 100%; height: auto; }
.post-body { margin: 28px 0 0; font-size: 17px; line-height: 1.8; }
.post-body img { border-radius: 10px; margin: 8px 0; }
.post-body table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 6px 10px; }
.post-body a { color: var(--accent); text-decoration: underline; }
.archive-note { margin: 32px 0 0; padding: 14px 16px; background: var(--bg); border-radius: 10px; color: var(--muted); font-size: 14px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-nav a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; min-width: 0; }
.post-nav a:hover { border-color: var(--text); }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--muted); font-size: 13px; }
.post-nav span { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to-list { text-align: center; margin: 24px 0 8px; }
.related { margin: 40px 0 64px; }
.related h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* ---------- 문서 / FAQ / 404 */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; margin: 16px 0 64px; }
.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc-body { color: var(--sub); }
.doc-body a { color: var(--accent); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--sub); }
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 30px; font-weight: 800; }
.notfound .hero-search { margin: 24px auto; }

/* ---------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 64px; padding: 44px 0 28px; font-size: 14px; color: var(--sub); }
.ft { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.ft-brand img { width: 86px; height: auto; display: block; margin-bottom: 14px; }
.ft-brand p { margin: 0; color: var(--muted); }
.ft-nav h2 { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.ft-nav a { display: block; padding: 3px 0; }
.ft-nav a:hover { color: var(--accent); }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- responsive */
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .ft { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hd { height: 56px; gap: 12px; }
  .logo img { width: 76px; }
  .hd-search input { height: 36px; font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .hero-search button { padding: 10px 18px; }
  .stats { gap: 10px 28px; }
  .stats strong { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
  .cat-grid { grid-template-columns: 1fr; }
  .post, .doc { padding: 22px 18px; border-radius: 16px; }
  .post-body { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .crumb [aria-current] { max-width: 18ch; }
}
