/* 애드AX — 대형 쇼핑몰형 레이아웃 (가독성 유지: 최소 14px, 본문 16px, 대비 4.5:1 이상) */

:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #111111;
  --text-2: #3f4651;
  --muted: #646d79;
  --line: #e3e6ea;
  --line-strong: #c4cad3;
  --brand: #16407c;
  --brand-hover: #0e2f5e;
  --brand-ink: #ffffff;
  --brand-soft: #eaf1fb;
  --accent: #ff7a00;
  --accent-hover: #e86e00;
  --accent-ink: #ffffff;
  --price: #111111;
  --ok: #157347;
  --warn: #8a5a00;
  --bad: #c62828;
  --focus: #2f6fd6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --container: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --bg-2: #0c0f12;
    --surface: #181c22;
    --surface-2: #20262e;
    --text: #f1f3f6;
    --text-2: #c8ced7;
    --muted: #9ea7b3;
    --line: #2a313b;
    --line-strong: #3c4552;
    --brand: #8fb6ee;
    --brand-hover: #abc9f3;
    --brand-ink: #0b1626;
    --brand-soft: #1b2a3e;
    --accent: #ff9a3d;
    --accent-hover: #ffab5c;
    --accent-ink: #1c0f00;
    --price: #ffffff;
    --ok: #63cc8f;
    --warn: #e6bd5a;
    --bad: #f28b82;
    --focus: #8fb6ee;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.main { padding-top: 24px; padding-bottom: 80px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 700; }
.ico { flex-shrink: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer; border: 1px solid transparent; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn-xl { min-height: 60px; padding: 0 20px; font-size: 18px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.danger { color: var(--bad); }

/* ── 상단 유틸바 ── */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar-links { display: flex; align-items: center; gap: 4px; }
.topbar-links > a, .topbar-links form { display: inline-flex; align-items: center; padding: 0 10px; position: relative; }
.topbar-links > * + *::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 11px; margin-top: -5px; background: var(--line-strong); }
.topbar-links .em { color: var(--accent); font-weight: 700; }
.topbar-links form { margin: 0; }

/* ── 헤더 ── */
.site-header { background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 40px; min-height: 96px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 900; font-size: 16px; }
.logo-text { font-weight: 900; font-size: 30px; letter-spacing: -0.04em; }
.search { flex: 1; max-width: 620px; display: flex; align-items: stretch; height: 52px; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; background: var(--surface); }
.search select { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 15px; padding: 0 8px 0 22px; max-width: 128px; border-right: 1px solid var(--line); cursor: pointer; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 17px; background: transparent; color: var(--text); }
.search input:focus, .search select:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 4px var(--brand-soft); }
.search button { border: 0; background: var(--brand); color: var(--brand-ink); width: 64px; cursor: pointer; display: grid; place-items: center; }
.header-quick { display: flex; gap: 22px; margin-left: auto; }
.header-quick a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); font-weight: 500; }
.header-quick a:hover { color: var(--brand); }
.header-quick .quick-em { color: var(--accent); font-weight: 700; }
.header-quick .quick-admin { background: var(--text); color: var(--bg); font-weight: 700; padding: 8px 12px; border-radius: 10px; margin: -8px 0; }
.header-quick .quick-admin:hover { background: var(--brand); color: var(--brand-ink); }

/* ── 카테고리 내비 ── */
.gnb { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.gnb-row { display: flex; align-items: center; gap: 28px; min-height: 54px; }
.allcat { position: relative; }
.allcat summary { list-style: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16px; cursor: pointer; min-width: 210px; }
.allcat summary::-webkit-details-marker { display: none; }
/* 2단계 메가메뉴: 왼쪽 대분류, 마우스/포커스 시 오른쪽에 중분류 */
.allcat-panel { position: absolute; top: 100%; left: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line-strong); border-top: 0; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); }
.allcat-roots { position: relative; width: 250px; padding: 8px 0; min-height: 560px; }
.root-link { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 22px; font-size: 16px; color: var(--text); }
.root-link > .ico:first-child { color: var(--brand); }
.root-link .chev { margin-left: auto; color: var(--line-strong); }
.allcat-root:hover > .root-link, .allcat-root:focus-within > .root-link { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.allcat-sub { display: none; position: absolute; left: 100%; top: 0; bottom: 0; width: 460px; padding: 22px 28px; background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); box-shadow: 12px 12px 28px rgba(0, 0, 0, 0.1); }
.allcat-root:hover > .allcat-sub, .allcat-root:focus-within > .allcat-sub { display: block; }
.sub-title { display: inline-flex; align-items: center; gap: 2px; font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.allcat-sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.allcat-sub li a { display: flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 15px; color: var(--text-2); }
.allcat-sub li a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.allcat-sub li em { font-style: normal; font-size: 13px; color: var(--muted); }
.gnb-menu { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.gnb-menu a { display: flex; align-items: center; height: 54px; font-size: 16px; font-weight: 600; white-space: nowrap; position: relative; }
.gnb-menu a.on, .gnb-menu a:hover { color: var(--brand); }
.gnb-menu a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); }
.gnb-cta { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ── 홈: 배너 + 사이드 ── */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.banner { position: relative; border-radius: 14px; overflow: hidden; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banner-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 360px; padding: 52px 56px; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: #fff; position: relative; overflow: hidden; }
.slide:hover { color: #fff; }
.slide::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.slide-blue { background: linear-gradient(120deg, #16407c 0%, #1f5fb0 100%); }
.slide-dark { background: linear-gradient(120deg, #26313f 0%, #3e5068 100%); }
.slide-orange { background: linear-gradient(120deg, #a14a00 0%, #e07100 100%); }
.slide-green { background: linear-gradient(120deg, #13553a 0%, #1f7a54 100%); }
.slide-kicker { font-size: 16px; font-weight: 700; opacity: 0.9; }
.slide h2 { font-size: 38px; font-weight: 800; line-height: 1.25; }
.slide-sub { font-size: 17px; opacity: 0.92; max-width: 520px; }
.slide-btn { align-self: flex-start; margin-top: 10px; background: #fff; color: #111; font-weight: 700; padding: 12px 22px; border-radius: 999px; font-size: 16px; }
.banner-ctrl { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.45); color: #fff; border-radius: 999px; padding: 4px; font-size: 14px; }
.banner-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.banner-ctrl button:hover { background: rgba(255, 255, 255, 0.2); }
.banner-count { min-width: 44px; text-align: center; }

.side-box { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--surface); }
.side-hello { font-size: 18px; line-height: 1.5; color: var(--text-2); }
.side-hello strong { color: var(--text); }
.side-actions { display: grid; gap: 8px; margin-top: 18px; }
.side-stats { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.side-stats li { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); }
.side-stats strong { color: var(--text); }

.cat-icons { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin: 36px 0 28px; }
.cat-icons a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; text-align: center; }
.cat-ico { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); transition: transform 0.15s; }
.cat-icons a:hover .cat-ico { transform: translateY(-3px); background: var(--brand); color: var(--brand-ink); }
.cat-label { font-size: 15px; font-weight: 600; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 52px; background: var(--bg-2); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.trust li + li { border-left: 1px solid var(--line); }
.trust .ico { color: var(--brand); width: 30px; height: 30px; }
.trust strong { display: block; font-size: 16px; }
.trust span { font-size: 14px; color: var(--muted); }

/* ── 상품 진열대 ── */
.shelf { margin-bottom: 56px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.shelf-head h2 { font-size: 26px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shelf-head small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.empty-inline { padding: 40px; text-align: center; color: var(--muted); background: var(--bg-2); border-radius: 12px; }

.grid { display: grid; gap: 28px 18px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; color: var(--text); }
.card:hover { color: var(--text); }
.card-img { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.card:hover .card-img img { transform: scale(1.04); }
.is-sold .card-img img { opacity: 0.4; }
.rank { position: absolute; left: 0; top: 0; background: var(--text); color: var(--bg); font-weight: 800; font-size: 15px; width: 32px; height: 32px; display: grid; place-items: center; border-bottom-right-radius: 8px; }
.sold-overlay { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--text); background: rgba(255, 255, 255, 0.35); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 15px; }
.card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; line-height: 1; padding: 5px 7px; border-radius: 4px; }
.tag-new { background: var(--brand); color: var(--brand-ink); }
.tag-used { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-strong); }
.tag-refurbished { background: #e6f4ea; color: #157347; }
.tag-cat { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.tag-sold { background: var(--bad); color: #fff; }
.tag-biz { background: #e6f4ea; color: #157347; }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { font-size: 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 2px; color: var(--price); margin-top: 2px; }
.price strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.price span { font-size: 15px; font-weight: 600; }
.price.is-inquiry strong { font-size: 17px; color: var(--text-2); }
.card-seller { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.card-seller span { overflow: hidden; text-overflow: ellipsis; }
.card-seller .loc { flex-shrink: 0; }
.card-seller .loc::before { content: "·"; margin-right: 8px; }

.seller-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 36px 44px; }
.band-kicker { font-weight: 700; opacity: 0.85; }
.seller-band h2 { font-size: 28px; font-weight: 800; margin: 4px 0 16px; }
.steps { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-size: 14px; }

/* ── 목록 ── */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs .ico { color: var(--line-strong); }
.list-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { border-top: 2px solid var(--text); position: sticky; top: 70px; }
.filter-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-block h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.filter-block li a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; color: var(--text-2); }
.filter-block li a em { font-style: normal; color: var(--muted); font-size: 14px; }
.filter-block li a.on { color: var(--brand); font-weight: 800; }
.cat-tree .up { justify-content: flex-start; gap: 4px; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
.cat-tree .root { font-weight: 700; color: var(--text); }
.cat-tree .child { padding-left: 12px; }
.filter-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-inline li a { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.filter-inline li a.on { border-color: var(--brand); background: var(--brand-soft); }
.price-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.price-form input { width: 74px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.price-form .unit { font-size: 14px; color: var(--muted); }
.list-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--text); }
.list-head h1 { font-size: 26px; font-weight: 800; }
.list-head .count { font-size: 17px; font-weight: 600; color: var(--brand); margin-left: 6px; }
.sort-tabs { display: flex; }
.sort-tabs a { font-size: 15px; color: var(--muted); padding: 4px 12px; position: relative; }
.sort-tabs a + a::before { content: ""; position: absolute; left: 0; top: 50%; height: 12px; margin-top: -6px; width: 1px; background: var(--line-strong); }
.sort-tabs a.on { color: var(--text); font-weight: 800; }
.empty { text-align: center; padding: 72px 16px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; }
.pagination a.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 800; }

/* ── 상세 ── */
.detail-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
.thumbs-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn { display: block; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.thumb-btn.on { border-color: var(--brand); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 28px; font-weight: 800; margin: 12px 0 14px; }
.price-big strong { font-size: 36px; }
.price-big span { font-size: 20px; }
.price-big.is-inquiry strong { font-size: 28px; }
.facts { margin: 22px 0; border-top: 1px solid var(--text); }
.facts div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.seller-line { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg-2); border-radius: var(--radius-sm); margin-bottom: 16px; }
.seller-label { color: var(--muted); font-size: 15px; }
.seller-line strong { font-size: 17px; }
.buy-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.tel-line { margin-top: 12px; font-size: 14px; color: var(--muted); }
.sold-note { padding: 18px; text-align: center; background: var(--bg-2); border-radius: var(--radius-sm); font-weight: 700; color: var(--text-2); }

.detail-tabs { position: sticky; top: 54px; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 56px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 2px solid var(--text); }
.detail-tabs a { text-align: center; padding: 16px 8px; font-size: 16px; font-weight: 700; color: var(--text-2); }
.detail-tabs a + a { border-left: 1px solid var(--line); }
.detail-tabs a:hover { color: var(--brand); background: var(--bg-2); }
.detail-body { max-width: 900px; margin: 0 auto; }
.detail-body section { padding: 48px 0 8px; scroll-margin-top: 120px; }
.body-title { font-size: 24px; font-weight: 800; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-body h3 { font-size: 18px; font-weight: 800; margin: 28px 0 10px; }
.detail-body p { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.summary { font-size: 18px !important; color: var(--text) !important; }
.checks li { position: relative; padding-left: 28px; font-size: 17px; color: var(--text-2); line-height: 1.7; }
.checks li + li { margin-top: 8px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 8px 14px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-weight: 600; font-size: 15px; }
.body-images { display: grid; gap: 12px; margin-top: 32px; }
.body-images img { width: 100%; border-radius: 8px; }
.specs { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 30%; background: var(--bg-2); font-weight: 600; color: var(--text-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--text); }
.faq summary { cursor: pointer; padding: 18px 8px; font-weight: 600; font-size: 17px; list-style: none; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq b { color: var(--brand); font-weight: 900; }
.faq details p { display: flex; gap: 12px; padding: 0 8px 20px; color: var(--text-2); }
.faq details p b { color: var(--accent); }
.detail-body .credits { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.notice-box { margin-top: 18px; padding: 16px 18px; background: var(--bg-2); border-radius: var(--radius-sm); font-size: 15px !important; }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; padding: 32px 0 0; }
.keywords a { font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }

/* ── 폼 (판매자·회원) ── */
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; column-gap: 8px; row-gap: 6px; font-size: 16px; font-weight: 600; margin-bottom: 18px; color: var(--text); }
.form label > input:not([type="checkbox"]), .form label > select, .form label > textarea, .form label > .hint { flex: 0 0 100%; }
.form input:not([type="checkbox"]):not([type="file"]), .form select, .form textarea { font: inherit; font-size: 17px; font-weight: 400; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); outline-offset: 0; }
.form textarea { resize: vertical; line-height: 1.6; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px 6px; margin: 0 0 20px; min-width: 0; }
.form legend { font-weight: 800; font-size: 18px; padding: 0 8px; }
.form .check { flex-wrap: nowrap; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 12px; }
.form .check input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; }
.form .check a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > label { flex: 1 1 200px; }
.row > label.grow { flex: 3 1 300px; }
.req { font-size: 12px; font-weight: 700; color: var(--bad); }
.opt { font-size: 12px; font-weight: 600; color: var(--muted); }
.hint { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0 0 14px; }
label .hint { margin: 0; }
.alert { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 16px; }
.notice { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 16px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.auth { max-width: 460px; margin: 24px auto; }
.auth-wide { max-width: 760px; }
.auth h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.auth > .muted { margin-bottom: 24px; }
.auth > .form { margin-top: 20px; }
.auth-foot { text-align: center; margin-top: 24px; color: var(--text-2); }
.auth-foot a, .auth a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.agree .check:first-of-type { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.product-form { max-width: 960px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 18px; }
.thumb { position: relative; width: 132px; height: 99px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.thumb:first-child::after { content: "대표"; position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ai-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 20px; padding: 22px 24px; border: 2px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
#aiStatus { flex-basis: 100%; }
#aiStatus:empty { display: none; }
#aiStatus p { margin: 0 0 6px; }
.ai-result ul { margin: 4px 0 10px; padding-left: 22px; list-style: disc; color: var(--text-2); }
.ai-result .linklike { color: var(--brand); text-decoration: underline; }

.table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: var(--bg-2); font-size: 15px; font-weight: 700; color: var(--text-2); }
.table a.strong:hover { color: var(--brand); text-decoration: underline; }
.actions { white-space: nowrap; }
.actions a, .actions button { margin-right: 14px; font-weight: 600; color: var(--brand); }
.actions .danger { color: var(--bad); }
.actions form { display: inline; margin: 0; }
.gmc { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 4px; }
.gmc-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.gmc-wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.gmc-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.gmc-skip, .gmc-none { color: var(--muted); background: var(--surface-2); }

.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal .bullets { list-style: disc; padding-left: 22px; }
.legal .faq { margin-top: 12px; }
.draft { background: color-mix(in srgb, var(--warn) 13%, var(--surface)); color: var(--warn); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }

/* ── 관리자 ── */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 2px solid var(--text); margin-bottom: 20px; }
.admin-head .page-title { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.admin-tabs { display: flex; gap: 4px; }
.admin-tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); border-radius: 6px 6px 0 0; }
.admin-tabs a.on { background: var(--text); color: var(--bg); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-search { display: flex; gap: 6px; }
.admin-search input { height: 36px; width: 260px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: 15px; background: var(--surface); color: var(--text); }
.admin-table td { font-size: 15px; }
.admin-table .tag { margin-left: 6px; vertical-align: middle; }
.tag-super { background: var(--text); color: var(--bg); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; background: var(--surface); }
.admin-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.admin-card .specs th { width: 36%; }
.fee-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fee-quick > span { margin-right: 8px; }
.fee-quick form { margin: 0; }
.quota { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.quota li { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; background: var(--bg-2); border-radius: var(--radius-sm); }
.quota span { color: var(--muted); font-size: 14px; }
.quota strong.ok { color: var(--ok); }
.quota strong.danger, span.danger { color: var(--bad); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat:hover { border-color: var(--brand); color: var(--text); }
.stat-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.stat-sub { font-size: 14px; color: var(--text-2); }
.admin-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 8px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.banner-preview { color: #fff; border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.banner-preview small { opacity: 0.85; font-weight: 700; }
.banner-preview em { margin-left: auto; font-style: normal; background: rgba(0, 0, 0, 0.35); padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.cat-table td { padding: 8px 12px; }
.cat-table tr.is-hidden { opacity: 0.55; }
.cat-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.cat-row input:not([type="checkbox"]) { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px; font: inherit; font-size: 15px; background: var(--surface); color: var(--text); width: 180px; }
.cat-row input.slug { width: 170px; font-family: ui-monospace, monospace; font-size: 13px; }
.cat-row input.sort { width: 70px; }
.cat-row .check { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.cat-root-label { font-weight: 900; color: var(--brand); }
.cat-indent { padding-left: 18px; color: var(--muted); }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }

/* ── 사용량 막대 ── */
.usage + .usage { margin-top: 14px; }
.usage-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }
.usage-top span { color: var(--text-2); }
.usage-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: 999px; }
.usage-ok span { background: var(--ok); }
.usage-warn span { background: var(--accent); }
.usage-full span { background: var(--bad); }
.slug-input { display: flex; align-items: center; flex: 0 0 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.slug-input span { padding: 0 4px 0 12px; color: var(--muted); font-weight: 400; }
.slug-input input { border: 0 !important; outline: none !important; padding-left: 0 !important; }
.slug-input input:first-child { padding-left: 14px !important; text-align: right; }
.slug-input .suffix { padding: 0 14px 0 2px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.shop-address-line { margin: 0 0 16px; padding: 14px 18px; background: var(--brand-soft); border-radius: var(--radius-sm); font-size: 16px; }
.shop-address-line a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.img-pick { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.img-preview { width: 100%; max-width: 280px; aspect-ratio: 16 / 9; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.shop-link { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

/* ── 기업 홈페이지 ── */
.shop { --shop: #16407c; --shop-ink: #fff; }
.shop-dark { --shop: #2a3340; }
.shop-orange { --shop: #c25a00; }
.shop-green { --shop: #17633f; }
.shop-red { --shop: #b3261e; }
.shop-header { background: var(--surface); border-bottom: 3px solid var(--shop); position: sticky; top: 0; z-index: 20; }
.shop-header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.shop-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.shop-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.shop-logo-text { display: grid; place-items: center; background: var(--shop); color: var(--shop-ink); font-size: 20px; }
.shop-nav { display: flex; gap: 6px; }
.shop-nav a { padding: 10px 14px; font-weight: 600; border-radius: 8px; }
.shop-nav a:hover { background: var(--surface-2); color: var(--shop); }
.shop-hero { border-radius: 16px; padding: 64px 48px; margin-bottom: 48px; background-color: var(--shop); background-size: cover; background-position: center; color: #fff; }
.shop-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; color: #fff; }
.shop-hero p { font-size: 18px; margin-top: 10px; max-width: 680px; opacity: 0.95; }
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.shop-btn { background: #fff; color: #111; }
.shop-btn:hover { color: var(--shop); }
.shop-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.shop-section { max-width: 860px; padding: 40px 0; border-top: 1px solid var(--line); }
.shop-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.shop-section p { color: var(--text-2); font-size: 17px; line-height: 1.8; }
.shop-section p + p { margin-top: 14px; }
.shop .detail-tabs { top: 79px; }
.shop-footer { margin-top: 40px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--text-2); }
.shop-footer p + p { margin-top: 6px; }
.shop-footer-name { font-weight: 900; font-size: 18px; color: var(--text); }
.shop-footer .powered { font-size: 13px; color: var(--muted); margin-top: 14px; }
.shop-footer .powered a { text-decoration: underline; }
@media (max-width: 720px) {
  .shop-hero { padding: 40px 24px; }
  .shop-nav a { padding: 8px 10px; font-size: 15px; }
}

/* ── 푸터 ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: 14px; }
.footer-links-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; min-height: 52px; align-items: center; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-top: 32px; padding-bottom: 48px; }
.footer-brand { font-weight: 900; font-size: 20px; color: var(--text); margin-bottom: 10px; }
.footer-company p + p { margin-top: 10px; }
.sep { color: var(--line-strong); margin: 0 6px; }
.footer-note { color: var(--muted); }
.cs-title { font-weight: 800; color: var(--text); font-size: 16px; }
.cs-tel { font-size: 26px; font-weight: 900; color: var(--text); margin: 4px 0; }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ── 반응형 ── */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-5 > :nth-child(n+9) { display: none; }
  .header-row { gap: 24px; }
  .gnb-cta { display: none; }
}
@media (max-width: 1000px) {
  .home-top { grid-template-columns: 1fr; }
  .side-box { display: none; }
  .cat-icons { grid-template-columns: repeat(6, 1fr); row-gap: 18px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-5, .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 > :nth-child(n+7) { display: none; }
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
  .detail-top { grid-template-columns: 1fr; gap: 28px; }
  .seller-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar-msg { display: none; }
  .topbar-row { justify-content: flex-end; }
  .header-row { flex-wrap: wrap; gap: 12px; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
  .logo-text { font-size: 24px; }
  .logo-mark { width: 36px; height: 36px; font-size: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 48px; }
  .search select { display: none; }
  .search input { padding-left: 20px; font-size: 16px; }
  .header-quick { gap: 16px; }
  .header-quick span { font-size: 13px; }
  .allcat summary { min-width: 0; padding: 0 14px; font-size: 0; gap: 0; }
  .allcat summary .ico { width: 24px; height: 24px; }
  .allcat-panel { left: -16px; width: 100vw; max-height: 75vh; overflow-y: auto; }
  .allcat-roots { width: 100%; min-height: 0; }
  .allcat-root:hover > .allcat-sub, .allcat-root:focus-within > .allcat-sub { display: none; }
  .root-link .chev { display: none; }
  .gnb-row { gap: 18px; }
  .gnb-menu { gap: 18px; }
  .gnb-menu a { font-size: 15px; }
  .slide { min-height: 260px; padding: 32px 24px 60px; }
  .slide h2 { font-size: 26px; }
  .slide-sub { font-size: 15px; }
  .cat-icons { grid-template-columns: repeat(4, 1fr); }
  .cat-ico { width: 58px; height: 58px; border-radius: 18px; }
  .cat-label { font-size: 13px; }
  .trust li { padding: 14px; gap: 10px; }
  .trust span { display: none; }
  .trust strong { font-size: 15px; }
  .shelf-head h2 { font-size: 21px; }
  .grid { gap: 22px 12px; }
  .grid-5, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 > :nth-child(n+5) { display: none; }
  .shelf .grid-5 > :nth-child(n+5) { display: none; }
  .price strong { font-size: 18px; }
  .card-title { font-size: 15px; }
  .filters { grid-template-columns: 1fr; }
  .list-head h1 { font-size: 21px; }
  .detail-title { font-size: 23px; }
  .price-big strong { font-size: 30px; }
  .detail-tabs a { font-size: 14px; padding: 14px 4px; }
  .seller-band { padding: 28px 24px; }
  .seller-band h2 { font-size: 22px; }
  .footer-body { grid-template-columns: 1fr; }
  .form fieldset { padding: 18px 16px 4px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 4px 14px; }
}
