/* 라스트콜 — 흰 바탕, 거의 검정 글자, 연회색 정사각 사진 칸, 얇은 선.
   색은 세 가지만 뜻을 갖고 쓴다:
     빨강 --red   가격이 내려갔다/내려간다(할인율·다음 인하), 워드마크의 마침표, 읽지 않은 알림 점
     초록 --green 실물 인증 확인·완료 상태
     호박 --amber 확인이 필요한 상태(입금 대기·검수 대기·재고 확인 필요)
   나머지는 모두 검정·회색. 버튼도 검정이다. */
:root {
  --ink: #111;
  --text: #222;
  --text-2: #444;
  --sub: #6b6b6b;          /* 흰 바탕 5.3:1, #f4f4f4 위 4.8:1 */
  --line: #ebebeb;
  --line-2: #d9d9d9;
  --img: #f4f4f4;
  --soft: #f7f7f7;
  --red: #d92d20;          /* 흰 바탕 4.8:1 */
  --red-bg: #fff1f0;
  --green: #0e7a4b;
  --green-bg: #edf7f1;
  --amber: #8a5300;
  --amber-bg: #fff4e0;
  --radius: 10px;
  --wrap: 1280px;
  --gut: 40px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo",
          "Noto Sans KR", "Malgun Gothic", sans-serif;
}

/* ── 바탕 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 15px/1.6 var(--font); letter-spacing: -.005em;
  font-variant-numeric: tabular-nums;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, dd a, td a, .hint a, .empty a, .notice a, .rules-box a, .text-link {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.ico { display: inline-block; flex: none; vertical-align: -2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.pre { white-space: pre-line; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ── 머리: 워드마크 · 검색 · 내 메뉴 / 카테고리 탭 ─────────── */
.gnb { background: #fff; border-bottom: 1px solid var(--line); }
.gnb-bar {
  display: grid; grid-template-columns: 1fr minmax(0, 460px) 1fr;
  grid-template-areas: "logo search user"; align-items: center; gap: 24px; min-height: 76px;
}
.logo {
  grid-area: logo; justify-self: start; display: inline-flex; align-items: flex-end;
  font-size: 24px; font-weight: 850; letter-spacing: -.055em; line-height: 1; color: var(--ink);
  padding: 4px 0;
}
.logo::after {                         /* 마침표 — 마지막 부름(last call) */
  content: ""; width: 6px; height: 6px; margin: 0 0 1px 3px; border-radius: 50%; background: var(--red);
}
.logo:hover { color: var(--ink); }
.gnb-search { grid-area: search; position: relative; margin: 0; }
.gnb .gnb-search input {
  width: 100%; height: 44px; padding: 0 48px 0 18px; border: 1px solid transparent; border-radius: 10px;
  background: var(--img); font-size: 14px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.gnb .gnb-search input:hover { border-color: transparent; }
.gnb .gnb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.gnb .gnb-search input:focus-visible { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gnb-search button {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer;
}
.gnb-user {
  grid-area: user; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap;
  gap: 4px 20px; font-size: 13px; color: var(--text-2);
}
.gnb-user a, .gnb-user .linkish { white-space: nowrap; }
.gnb-user a:hover, .gnb-user .linkish:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gnb-user form { margin: 0; }
.gnb-join { font-weight: 700; color: var(--ink); }
.count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  vertical-align: 1px;
}
.gnb-cats-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gnb-cats ul {
  position: relative; display: flex; gap: 18px; list-style: none; margin: 0 0 0 -6px; padding: 0;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.gnb-cats ul::-webkit-scrollbar { display: none; }
.gnb-cats li a {
  position: relative; display: block; padding: 12px 6px 13px; font-size: 15px; font-weight: 500; color: #333;
  white-space: nowrap; border-radius: 6px;
}
.gnb-cats li a:hover { color: var(--ink); }
.gnb-cats li a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.gnb-cats li a[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--ink); }
.gnb-cats li a:focus-visible { outline-offset: -2px; }
.gnb-apply { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; color: var(--sub); white-space: nowrap; }
.gnb-apply:hover { color: var(--ink); }

main { display: block; padding: 32px 0 96px; min-height: 60vh; }
.flash {
  display: flex; gap: 10px; align-items: center; margin: 0 0 24px; padding: 13px 18px; border-radius: var(--radius);
  background: var(--soft); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500;
}
.flash::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ── 발 ───────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 36px 0 60px; font-size: 12.5px; color: var(--sub); line-height: 1.7; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.foot-logo { margin: 0; font-size: 16px; font-weight: 850; letter-spacing: -.05em; color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-2); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links b { color: var(--ink); }
.notice-legal { margin: 0 0 6px; color: var(--text-2); }
.foot-op { margin: 0; }

/* ── 버튼 ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-align: center;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #333; border-color: #333; color: #fff; }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.quiet:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn.large { height: 54px; font-size: 16px; font-weight: 700; border-radius: var(--radius); }
.btn.block { display: flex; width: 100%; white-space: normal; }
.btn.invert { background: #fff; border-color: #fff; color: var(--ink); }
.btn.invert:hover { background: #e8e8e8; border-color: #e8e8e8; color: var(--ink); }
.btn.invert-line { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.invert-line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }   /* 직판의 '입점 승인'처럼 지금은 못 누르는 버튼 */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }

/* ── 입력 ─────────────────────────────────────────── */
label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field { margin-bottom: 18px; min-width: 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=search],
input[type=url], input[type=date], input[type=month], select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 15px; line-height: 1.4; -webkit-appearance: none; appearance: none;
}
textarea { height: auto; min-height: 108px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
select {
  padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input:hover, select:hover, textarea:hover { border-color: #bdbdbd; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
::placeholder { color: #767676; opacity: 1; }
input[type=file] {
  display: block; width: 100%; padding: 12px; border: 1px dashed #c4c4c4; border-radius: 8px; background: var(--soft);
  font-size: 14px; color: var(--text-2); cursor: pointer;
}
input[type=file]::file-selector-button {
  margin-right: 12px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px;
  background: #fff; color: var(--ink); font: 600 13px var(--font); cursor: pointer;
}
input[type=file]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hint { margin: 7px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--sub); }
.fs-hint { margin: -6px 0 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
fieldset { min-width: 0; margin: 0 0 8px; padding: 28px 0 12px; border: 0; border-top: 1px solid var(--line); }
fieldset:first-of-type { border-top: 1px solid var(--ink); }
legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
legend + * { clear: both; }
.errors { margin: 0 0 24px; padding: 14px 18px 14px 36px; border-radius: var(--radius); background: var(--red-bg); color: #b42318; font-size: 14px; }
.errors.single { padding-left: 18px; }
.errors li + li { margin-top: 4px; }

/* ── 작은 표시: 배지 · 상태 · 알림 띠 ─────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 4px;
  background: var(--img); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  letter-spacing: -.01em;
}
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }   /* 흠집·하자 있음 — 목록에서 한눈에 */
.badge.line { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--sub); }
.badge .ico { vertical-align: 0; }
.status {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--img); color: var(--text); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.status.requested, .status.pending, .status.return_requested, .status.stale { background: var(--amber-bg); color: var(--amber); }
.status.settled, .status.active, .status.confirmed { background: var(--green-bg); color: var(--green); }
.status.canceled, .status.rejected, .status.stopped, .status.returned, .status.soldout { background: var(--img); color: var(--sub); }
.notice {
  margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--soft);
  color: var(--text); font-size: 14px; line-height: 1.6;
}
.notice.warn { background: var(--amber-bg); color: var(--amber); }
.notice.warn a { color: inherit; }
.empty { padding: 56px 16px; text-align: center; color: var(--sub); font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty p { margin: 0 0 6px; }
.filters + .empty { border-top: 0; }
.empty strong { display: block; margin-bottom: 6px; font-size: 16px; color: var(--ink); }

/* ── 상품 카드 · 그리드 ─────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 16px; }
.card { display: block; min-width: 0; color: inherit; }
.card:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--img); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.035); }
.card:focus-visible { outline-offset: 4px; }
.card-info { padding-top: 12px; }
.card-brand {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-name {
  margin: 2px 0 0; font-size: 13px; color: var(--sub); line-height: 1.45; min-height: 2.9em;
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.card:hover .card-name { color: var(--text-2); }
.card-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin: 6px 0 0;
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: -.01em;
}
.card-price .rate, .price-now .rate { color: var(--red); }
.card-next { display: flex; align-items: center; gap: 3px; margin: 2px 0 0; font-size: 12px; color: var(--sub); line-height: 1.4; }
.card-next .ico { color: var(--red); }
.card .badges { margin-top: 8px; }
.card-meta { margin: 6px 0 0; font-size: 11.5px; color: var(--sub); line-height: 1.3; }
.is-sold .card-img::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
.card-sold {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  padding: 7px 14px; border-radius: 999px; background: rgba(17, 17, 17, .88); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.is-sold .card-price { color: var(--sub); }
.is-sold .card-price .rate { color: var(--sub); }

/* ── 홈 ───────────────────────────────────────────── */
.promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin: 0 0 56px; padding: 40px 48px; border-radius: 14px; background: var(--ink); color: #fff;
}
.promo-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #b8b8b8; }
.promo h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.3; color: #fff; }
.promo-sub { margin: 0; font-size: 15px; color: #d0d0d0; }
.promo-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.promo :focus-visible { outline-color: #fff; }
.shelf { margin: 0 0 64px; }
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.shelf-head h2 { margin: 0; font-size: 20px; }
.shelf-head p { margin: 4px 0 0; font-size: 13px; color: var(--sub); }
.more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; color: var(--sub); white-space: nowrap; }
.more:hover { color: var(--ink); }
.trust { margin: 0 0 64px; padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust > h2 { margin: 0 0 28px; font-size: 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.trust-grid li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; align-items: start; }
.trust-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--img); color: var(--ink); }
.trust-grid h3 { margin: 2px 0 6px; font-size: 16px; }
.trust-grid p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--sub); }
.trust-foot { margin: 28px 0 0; font-size: 13px; color: var(--sub); }
.join {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px;
  padding: 44px 48px; border-radius: 14px; background: var(--soft);
}
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--sub); }
.join h2 { font-size: 22px; margin-bottom: 10px; }
.join-text p { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.join-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.join-steps li {
  counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px;
  padding: 14px 0; border-bottom: 1px solid #e4e4e4;
}
.join-steps li:first-child { padding-top: 2px; }
.join-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.join-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; padding-top: 2px; font-size: 13px; font-weight: 700; color: var(--sub); }
.join-steps b { font-size: 15px; color: var(--ink); }
.join-steps span { grid-column: 2; font-size: 14px; color: var(--sub); }

/* ── 상품 목록 ─────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; margin: 0 0 20px; }
.page-head h1 { margin: 0; font-size: 26px; }
.page-head .page-sub { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 32px; padding: 16px 0 20px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.filters .field { margin: 0; flex: 0 1 160px; }
.filters .grow { flex: 1 1 240px; }
.filters input, .filters select { height: 42px; font-size: 14px; }
.filters label { font-size: 12px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.filters .btn { height: 42px; padding: 0 22px; }
.filter-box > summary { display: none; }

/* ── 상품 상세 ─────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 18px; font-size: 13px; color: var(--sub); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { color: #b5b5b5; }
.pd { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pd-media { position: sticky; top: 24px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--img); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 861px) { .gallery-main { max-height: calc(100vh - 140px); min-height: 360px; } }
.gallery-main .card-sold { font-size: 14px; padding: 9px 18px; }
.gallery-main.is-sold::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .45); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.gallery-thumbs button {
  flex: none; width: 68px; height: 68px; padding: 0; overflow: hidden; border: 0; border-radius: 8px;
  background: var(--img); cursor: pointer; box-shadow: inset 0 0 0 1px transparent;
}
.gallery-thumbs button[aria-current="true"] { box-shadow: 0 0 0 2px var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--sub); }
.pd-info { min-width: 0; }
.pd-brand { display: inline-block; margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pd-brand:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-name { margin: 0 0 8px; font-size: 21px; font-weight: 500; line-height: 1.45; letter-spacing: -.025em; }
.pd-code { margin: 0 0 14px; font-size: 13px; color: var(--sub); }
.pd-head .badges .badge { height: 24px; padding: 0 8px; font-size: 12px; }
.price { margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.price-ref { margin: 0 0 2px; font-size: 13px; color: var(--sub); }
.price-now {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 0;
  font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--ink); letter-spacing: -.03em;
}
.price-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 14px 0 0; padding: 11px 14px;
  border-radius: 8px; background: var(--red-bg); font-size: 14px; color: var(--text);
}
.price-next .ico { color: var(--red); }
.price-next b { color: var(--ink); }
.price-left { color: var(--sub); font-size: 13px; }
.price-left:empty { display: none; }
.price-note { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.pd-buy { margin: 24px 0 20px; }
.pd-buy .sub-link { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--sub); }
.pd-buy .sub-link + form { margin-top: 16px; }
.buy > summary { list-style: none; }
.buy > summary::-webkit-details-marker { display: none; }
.buy .when-open { display: none; }
.buy[open] > summary { background: #fff; color: var(--ink); border-color: var(--line-2); height: 48px; font-size: 15px; }
.buy[open] .when-open { display: inline; }
.buy[open] .when-closed { display: none; }
.buy-form { margin-top: 20px; }
.buy-lead { margin: 0 0 18px; font-size: 13px; color: var(--sub); }
.buy-terms { margin: 4px 0 18px; padding: 14px 16px; border-radius: 8px; background: var(--soft); font-size: 13px; color: var(--text-2); }
.buy-terms b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.buy-terms p { margin: 0; }
.buy-form .check { margin-bottom: 16px; }
.buy-form input[type=number] { max-width: 160px; }
.sold-box { padding: 16px 18px; border-radius: var(--radius); background: var(--soft); font-size: 14px; color: var(--text-2); }
.sold-box b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.sold-box p { margin: 0; }
.assure { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.assure li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 2px 12px; align-items: baseline;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.assure li:first-child { border-top: 0; }
.assure b { color: var(--ink); font-weight: 700; }
.assure span { color: var(--sub); }
.assure-top { grid-template-columns: 18px auto minmax(0, 1fr) !important; background: var(--soft); align-items: center !important; }
.assure-top span { grid-column: 2 / -1; }
.assure-top.ok { background: var(--green-bg); }
.assure-top.ok .ico, .assure-top.ok b { color: var(--green); }
.assure-top .ico { align-self: center; }
.pd-seller { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--sub); }
.pd-seller a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pd-seller a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-sec { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.pd-sec h2 { margin: 0 0 16px; font-size: 17px; }
.pd-sec .lead { margin: -8px 0 14px; font-size: 13px; color: var(--sub); }
.kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 11px 16px; margin: 0; font-size: 14px; line-height: 1.6; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; color: var(--text); }
.defect { padding: 12px 14px; border-radius: 8px; background: var(--amber-bg); color: #5c3a00; }
.schedule { width: 100%; border-collapse: collapse; font-size: 14px; }
.schedule th { padding: 0 0 8px; border-bottom: 1px solid var(--ink); text-align: left; font-size: 12px; font-weight: 600; color: var(--sub); }
.schedule th:nth-child(2), .schedule td:nth-child(2) { text-align: right; }
.schedule td { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.schedule td:nth-child(2) { font-weight: 600; color: var(--ink); }
.schedule td:last-child, .schedule th:last-child { width: 64px; text-align: right; font-size: 12px; color: var(--sub); }
.schedule tr.past td { color: var(--sub); }
.schedule tr.past td:nth-child(2) { font-weight: 400; color: var(--sub); text-decoration: line-through; text-decoration-color: rgba(217, 45, 32, .7); }
.schedule tr.current td { font-weight: 700; color: var(--ink); }
.schedule tr.current td:last-child { color: var(--red); }
.schedule tr.gap td { padding: 2px 0; text-align: center; letter-spacing: .3em; color: #9a9a9a; }
details.seller { margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.seller > summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 20px 28px 20px 0; position: relative;
  list-style: none; cursor: pointer;
}
details.seller > summary::-webkit-details-marker { display: none; }
details.seller > summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
}
details.seller[open] > summary::after { transform: rotate(-135deg); margin-top: -1px; }
.seller-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.seller-sub { font-size: 13px; color: var(--sub); }
details.seller .kv { padding: 4px 0 8px; font-size: 13px; grid-template-columns: 132px minmax(0, 1fr); }
details.seller .hint { margin: 8px 0 20px; }

/* ── 주문 ─────────────────────────────────────────── */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 4px 0 36px; padding: 0; }
.stepper li { position: relative; padding: 24px 8px 0 0; font-size: 13px; color: var(--sub); line-height: 1.45; }
.stepper li::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.stepper li::after {
  content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line-2);
}
.stepper li:last-child::before { display: none; }       /* 마지막 점 뒤로 선이 이어지지 않게 */
.stepper li.done { color: var(--ink); }
.stepper li.done::before { background: var(--ink); }
.stepper li.done::after { background: var(--ink); box-shadow: none; }
.stepper b { display: block; font-weight: 700; }
.stepper .t { display: block; font-size: 12px; color: var(--sub); }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.layout-even { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pay { margin: 0 0 28px; padding: 24px 26px; border: 1.5px solid var(--ink); border-radius: 14px; }
.pay-label { margin: 0 0 4px; font-size: 13px; color: var(--sub); }
.pay-amount { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); }
.pay-bank { margin: 14px 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.pay-note { margin: 14px 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }   /* 직판 결제 안내(결제 링크) */
.pay-note b { margin-right: 6px; }
.pay .hint { margin: 0; }
.pay .pay-go { margin: 16px 0 10px; }                 /* 토스 결제 주문의 '결제하기' */
.pay-methods { display: grid; gap: 10px; margin: 0 0 16px; }
.pay-done { margin: 0 0 16px; font-size: 14px; color: var(--text); }
.oitem { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: inherit; }
.oitem:hover { color: inherit; }
.oitem img, .oitem .ph { flex: none; width: 88px; height: 88px; border-radius: 8px; object-fit: cover; background: var(--img); }
.oitem-text { min-width: 0; font-size: 14px; }
.oitem-text > span { display: block; }
.oitem-text > .badges { display: flex; }
.oitem-text .card-brand { font-size: 13px; }
.oitem-text .oname { display: block; margin: 2px 0 4px; color: var(--text); }
.oitem:hover .oname { text-decoration: underline; text-underline-offset: 3px; }
.money { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 0; margin: 18px 0 0; font-size: 14px; }
.money > span:nth-child(even) { padding-left: 16px; text-align: right; }
.money .total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 800; color: var(--ink); }
.ship-no { margin: 18px 0 0; font-size: 14px; }
.panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 16px; font-size: 17px; }
.panel .kv { font-size: 14px; }
.step-form { padding: 18px 0; border-top: 1px solid var(--line); }
.step-form:first-of-type { border-top: 0; padding-top: 0; }
.step-form:last-child { padding-bottom: 0; }
.step-form p { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }
.step-form .field { margin-bottom: 12px; }
.reveal-form { display: flex; gap: 8px; margin-top: 14px; }
.reveal-form input { flex: 1; height: 38px; font-size: 13px; }
.reveal-form .btn { height: 38px; }

/* ── 내 거래 · 운영 ───────────────────────────────── */
.me-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 24px; }
.me-head h1 { margin: 0; }
.me-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.me-actions form { margin: 0; }
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 40px; }
.figures > div { padding: 18px 20px; border-radius: 12px; background: var(--soft); }
.figures span { display: block; font-size: 13px; color: var(--sub); }
.figures b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stack > section { margin-bottom: 44px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.sec-head h2 { margin: 0; font-size: 18px; }
.sec-head form { margin: 0; }
.sec-desc { margin: -4px 0 14px; font-size: 13px; color: var(--sub); }
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.row a.title, .row .title a { font-weight: 600; color: var(--ink); text-decoration: none; }
.row a.title:hover, .row .title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row .meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sub); }
.row .msg a { text-decoration: none; }
.row .msg a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row.unread .msg { font-weight: 700; color: var(--ink); }
.row.unread .msg::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--red); }
.row-side { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.row-side form { margin: 0; }
.none { margin: 0; padding: 18px 0; color: var(--sub); font-size: 14px; border-bottom: 1px solid var(--line); }
.rows + .none { border-top: 0; }
.none-top { border-top: 1px solid var(--ink); }
.box { padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.box h2 { font-size: 17px; }
.box.soft { border: 0; background: var(--soft); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 32px; }
.admin-nav a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.admin-nav a:hover { border-color: var(--ink); color: var(--ink); }
.admin-sec { margin: 0 0 56px; scroll-margin-top: 16px; }
.review { display: grid; grid-template-columns: 104px 156px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--img); }
.review-proof { font-size: 12.5px; color: var(--sub); }
.review-proof img { margin-bottom: 6px; }
.review-proof b { color: var(--ink); }
.review-body { min-width: 0; font-size: 14px; }
.review-body .title { font-weight: 700; color: var(--ink); }
.review-body p { margin: 6px 0 0; }
.review-body .actions { margin-top: 14px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form input[type=text] { width: 200px; height: 32px; font-size: 13px; padding: 0 10px; border-radius: 6px; }
.applicant { padding: 20px 0; border-bottom: 1px solid var(--line); }
.applicant .kv { font-size: 13px; margin-bottom: 14px; }
.settings { max-width: 560px; }

/* ── 재고 올리기 · 입점 신청 ─────────────────────────── */
.form-page { max-width: 760px; margin: 0 auto; }
.form-page > h1 { margin-bottom: 8px; }
.form-page > .lead { margin: 0 0 28px; color: var(--sub); font-size: 15px; }
.proof { display: flex; gap: 20px; align-items: center; margin: 0 0 16px; padding: 18px 22px; border: 1.5px solid var(--ink); border-radius: 14px; }
.proof p { margin: 0; font-size: 14px; color: var(--text-2); }
.proof .proof-code { flex: none; font-size: 30px; font-weight: 800; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.preview { padding: 14px 16px; border-radius: var(--radius); background: var(--soft); font-size: 14px; color: var(--text-2); line-height: 1.7; }
.preview b { color: var(--ink); }
.rules-box { margin: 0 0 28px; padding: 20px 22px; border-radius: 14px; background: var(--soft); font-size: 14px; }
.rules-box b { display: block; margin-bottom: 8px; color: var(--ink); }
.rules-box ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.rules-box li + li { margin-top: 4px; }
.form-submit { margin-top: 24px; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }   /* 대행 등록 초안의 지금 사진 */
.photo-strip img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: var(--img); }
details.box > summary { font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
details.box[open] > summary { margin-bottom: 14px; }

/* ── 로그인 · 가입 · 안내 ──────────────────────────── */
.auth { max-width: 420px; margin: 24px auto 0; }
.auth h1 { margin: 0 0 8px; text-align: center; font-size: 26px; }
.auth .lead { margin: 0 0 28px; text-align: center; font-size: 14px; color: var(--sub); }
.auth .btn.block { margin-top: 8px; }
.auth-alt { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--sub); }
.consent { margin: 4px 0 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); font-size: 13px; color: var(--text-2); }
.consent b { display: block; margin-bottom: 4px; color: var(--ink); }
.consent p { margin: 0; }
.narrow { max-width: 560px; }
.center-msg { max-width: 480px; margin: 40px auto 0; text-align: center; }
.center-msg .actions { justify-content: center; margin-top: 24px; }
.reveal-box { margin: 20px 0; }

/* ── 약관·정책 문서(legal_*.html 의 <article class="doc">) ── */
.doc { max-width: 720px; margin: 8px auto 0; font-size: 15px; line-height: 1.8; color: var(--text); }
.doc h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.35; }
.doc h1 + p { margin-bottom: 2px; font-size: 14px; color: var(--sub); }
.doc h1 + p + p { margin-bottom: 28px; font-size: 14px; color: var(--sub); }
.doc h2 { margin: 48px 0 12px; font-size: 18px; line-height: 1.45; }
.doc h3 { margin: 28px 0 8px; font-size: 16px; }
.doc p { margin: 0 0 14px; }
.doc ol, .doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 5px 0; padding-left: 2px; }
.doc li > ol, .doc li > ul { margin: 6px 0 4px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong, .doc b { color: var(--ink); }
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { width: 100%; margin: 8px 0 24px; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 14px; line-height: 1.6; }
.doc-table caption { padding-bottom: 8px; text-align: left; font-weight: 600; color: var(--ink); }
.doc-table th, .doc-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th, .doc-table th[scope=col] { background: var(--soft); font-weight: 600; color: var(--ink); }
.doc-table tbody th { font-weight: 600; color: var(--ink); }
.doc .table-wrap { overflow-x: auto; }

/* ── 구매 후기(판매자 단위 — _review_*.html, reviews.html, review_form.html) ── */
.rv-stars { display: inline-flex; font-size: 14px; line-height: 1; letter-spacing: 1px; color: var(--ink); white-space: nowrap; }
.rv-stars .off { color: var(--line-2); }
.rv-line { margin: 8px 2px 0; font-size: 13px; color: var(--sub); text-align: right; }
.rv-line a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rv-line b { color: var(--ink); }
.rv-line-start { margin: 6px 0 0; text-align: left; }
.rv-star { color: var(--ink); }
.rv-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 14px; font-size: 13px; color: var(--sub); }
.rv-sum b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
/* 다른 판매 채널의 후기(직판 전용 · _external_reviews.html) — 라스트콜 후기와 섞이지 않게 옅은 상자, 그 채널 링크 없음 */
.ext-rv { margin: 22px 0 0; padding: 16px 18px; border-radius: 10px; background: var(--soft); font-size: 13px; color: var(--text-2); }
.ext-rv p { margin: 0; }
.ext-rv p + p, .ext-rv p + .chips, .ext-rv .chips + p, .ext-rv-list + p { margin-top: 8px; }
.ext-rv-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ext-rv-label { font-size: 12.5px; font-weight: 600; color: var(--amber); }
.ext-rv-head { color: var(--ink); font-weight: 600; }
.ext-rv-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.ext-rv-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ext-rv-list .rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ext-rv-list .rv-body { margin-top: 6px; font-size: 14px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 3px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; color: var(--ink); }
fieldset.st-pay { margin: 0 0 18px; padding: 0; border: 0; }        /* 운영 설정의 결제 수단(직판) */
fieldset.st-pay legend { float: none; width: auto; margin: 0 0 7px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
fieldset.st-pay .check { margin-bottom: 6px; }
.trust.is-last { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }   /* 직판 홈 — 아래 입점 칸이 없을 때 */
.rv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rv-list-plain { border-top: 0; }
.rv-item { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.rv-list-plain .rv-item { padding-top: 0; border-bottom: 0; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rv-head .badge .ico { margin-right: 2px; }
.rv-author { font-size: 13px; font-weight: 600; color: var(--ink); }
.rv-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); }
.rv-body { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.rv-flag { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }
.rv-hidden { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--img); font-size: 13.5px; color: var(--text-2); }
.rv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.rv-photos a { display: block; width: 88px; height: 88px; overflow: hidden; border-radius: 8px; background: var(--img); }
.rv-photos img { width: 100%; height: 100%; object-fit: cover; }
.rv-reply { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--soft); font-size: 13.5px; color: var(--text-2); }
.rv-reply b { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--ink); }
.rv-reply p { margin: 0; }
.rv-reply .rv-meta { margin-top: 4px; }
.rv-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 16px; margin: 12px 0 0; font-size: 13px; }
.rv-tools form { margin: 0; }
.rv-drop > summary { cursor: pointer; list-style: none; color: var(--sub); }
.rv-drop > summary::-webkit-details-marker { display: none; }
.rv-drop > summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rv-drop[open] { flex-basis: 100%; }
.rv-drop[open] > summary { margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.rv-drop textarea { min-height: 80px; margin-bottom: 8px; font-size: 14px; }
.rv-drop .hint { margin-top: 6px; }
/* 후기 운영 기준 한 줄(시행령 제27조의3 — 후기를 보는 첫 화면) — 작고 옅게, 줄 전체가 /review-policy 링크 */
.rv-rule { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--sub); }
.rv-rule a { color: inherit; text-decoration: none; }
.rv-rule a .u, .rv-rule a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-top { display: grid; grid-template-columns: minmax(0, 420px); gap: 0; margin: 0 0 28px; }
.rv-top .rv-rule { margin-top: 10px; }
.rv-score { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.rv-avg { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; color: var(--sub); }
.rv-avg b { font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.rv-score .rv-stars { font-size: 16px; }
.rv-count { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.rv-dist { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; color: var(--sub); }
.rv-dist li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 8px; align-items: center; margin: 4px 0; }
.rv-dist li span:last-child { text-align: right; }
.rv-bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--img); }
.rv-bar span { display: block; height: 100%; background: var(--ink); }
.rv-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; }
.rv-mini .rv-meta { margin: 0; }
.rv-excerpt { margin: 0 0 14px; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.rv-gap { margin-top: 16px; }
.rv-work { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rv-work .actions { margin-top: 12px; }
.rv-cases { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 8px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }
p.rv-cases { padding-left: 12px; }
.rv-cases b { color: inherit; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 24px 0 0; }
.pager a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 별점 고르기 — DOM 은 5→1 순서, 화면은 1→5(row-reverse). 고른 별과 그 왼쪽 별을 채운다 */
fieldset.rv-rate { margin: 0 0 18px; padding: 0; border: 0; }
fieldset.rv-rate legend { float: none; width: auto; margin: 0 0 7px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.rv-rate-stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rv-rate-stars input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.rv-rate-stars label { margin: 0; padding: 0 2px; font-size: 32px; line-height: 1; color: var(--line-2); cursor: pointer; }
.rv-rate-stars input:checked ~ label { color: var(--ink); }
.rv-rate-stars:hover input ~ label { color: var(--line-2); }
.rv-rate-stars:hover label:hover, .rv-rate-stars:hover label:hover ~ label { color: var(--ink); }
.rv-rate-stars input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.rv-label { margin: 0 0 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rv-photos-edit { margin: 0; }
.rv-photo-pick { display: grid; gap: 6px; width: 96px; margin: 0; font-weight: 500; }
.rv-photo-pick img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--img); }
.rv-photo-pick .check { font-size: 12.5px; gap: 6px; }
.rv-appeal { margin: 0 0 24px; }
.rv-delete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.rv-back { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--sub); }
@media (max-width: 600px) {
  .rv-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rv-photos a { width: 72px; height: 72px; }
  .rv-line { text-align: left; }
}

/* ── 반응형 ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --gut: 24px; }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .layout-2, .layout-even { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .join { grid-template-columns: minmax(0, 1fr); padding: 36px; }
}
@media (max-width: 860px) {
  .gnb-bar {
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo user" "search search";
    gap: 10px 16px; min-height: 0; padding-top: 12px; padding-bottom: 12px;
  }
  .logo { font-size: 21px; }
  .gnb .gnb-search input { height: 42px; }
  .gnb-search button { top: 3px; }
  .gnb-apply { display: none; }
  .gnb-cats-in { padding-right: 0; }
  .gnb-cats ul { gap: 12px; padding-right: 24px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pd-media { position: static; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 15px; }
  main { padding: 20px 0 72px; }
  h1 { font-size: 22px; }
  .gnb-user { gap: 4px 14px; }
  .gnb-logout { display: none; }
  .gnb-cats li a { font-size: 14px; padding: 11px 6px 12px; }
  .gnb-cats ul { gap: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 10px; }
  .card-info { padding-top: 10px; }
  .card-name { white-space: normal; min-height: 2.9em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .card-price { font-size: 14px; }
  .promo { padding: 28px 22px; border-radius: 12px; margin-bottom: 44px; }
  .promo h1 { font-size: 22px; }
  .promo-sub { font-size: 14px; }
  .promo-cta { width: 100%; }
  .promo-cta .btn { flex: 1 1 0; padding: 0 10px; }
  .shelf { margin-bottom: 48px; }
  .shelf-head h2 { font-size: 18px; }
  .trust { padding: 36px 0; margin-bottom: 48px; }
  .join { padding: 28px 22px; border-radius: 12px; }
  .page-head h1 { font-size: 22px; }
  .filter-box { margin: 0 0 24px; }
  .filter-box > summary {
    display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; list-style: none; cursor: pointer;
    border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink);
  }
  .filter-box > summary::-webkit-details-marker { display: none; }
  .filter-box > summary::after {
    content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg);
  }
  .filter-box[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
  .filter-box > summary .count { margin-left: 0; background: var(--ink); }
  .filter-box[open] .filters { margin: 12px 0 0; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filters .grow { grid-column: 1 / -1; }
  .filters .btn { width: 100%; }
  .pd-media { margin: -8px calc(-1 * var(--gut)) 0; }
  .gallery-main { aspect-ratio: 1 / 1; border-radius: 0; }
  .gallery-thumbs { padding: 2px var(--gut); }
  .pd-name { font-size: 19px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 32px; }
  .figures > div { padding: 14px 16px; }
  .figures b { font-size: 19px; }
  .price-now { font-size: 26px; }
  .kv { grid-template-columns: 88px minmax(0, 1fr); }
  details.seller .kv { grid-template-columns: 112px minmax(0, 1fr); }
  .assure li { grid-template-columns: 80px minmax(0, 1fr); padding: 12px 14px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .stepper { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
  .stepper li { padding: 0 0 16px 28px; }
  .stepper li::before { left: 6px; right: auto; top: 14px; bottom: 0; width: 2px; height: auto; }
  .stepper li:last-child::before { display: none; }
  .stepper li:last-child { padding-bottom: 0; }
  .stepper .t { display: inline; margin-left: 8px; }
  .stepper b { display: inline; }
  .pay { padding: 20px; }
  .pay-amount { font-size: 28px; }
  .panel { padding: 20px; }
  .review { grid-template-columns: 96px 96px; }
  .review-body { grid-column: 1 / -1; }
  .inline-form input[type=text] { width: auto; flex: 1 1 140px; }
  .proof { flex-direction: column; align-items: flex-start; gap: 10px; }
  .me-actions { margin-left: 0; width: 100%; }
  .doc h1 { font-size: 24px; }
  .doc-table { font-size: 13px; }
  .doc-table th, .doc-table td { padding: 9px 8px; }
}
@media (hover: none) {
  .card:hover .card-img img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── 상품 문의(_inquiry_*.html — 후기 rv-* 모양을 같이 쓴다) · 방문·주문 통계(admin_stats.html) ── */
.iq-total { margin-left: 2px; font-size: 14px; font-weight: 600; color: var(--sub); }
.iq-kakao { margin: 0 0 16px; }                                  /* 카카오톡 1:1 상담 + 그 아래 '결제는 이 사이트에서만' */
.iq-kakao .hint, .iq-sec .iq-kakao .hint { margin: 6px 0 0; }
.iq-login { margin: 0 0 16px; }
.iq-form { margin: 0 0 18px; }
.iq-form textarea { min-height: 88px; font-size: 14px; }
.iq-form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 10px; }
.iq-sec > .hint { margin: 0 0 14px; }
.iq-answer { flex-basis: 100%; margin: 0; }
.iq-answer textarea { min-height: 72px; margin-bottom: 8px; font-size: 14px; }
.st-periods { display: flex; gap: 6px; }
.st-periods a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.st-periods a:hover { border-color: var(--ink); color: var(--ink); }
.st-periods a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.st-swipe { display: none; margin: 0 0 6px; font-size: 12px; color: var(--sub); }   /* 좁은 화면에서만: 표를 옆으로 */
.st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.st-table { margin: 0; white-space: nowrap; }
.st-table td, .st-table thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }   /* 숫자 칸은 제목도 오른쪽 */
.st-table th[scope=row] { min-width: 120px; white-space: normal; }
@media (max-width: 760px) { .st-swipe { display: block; } }
@media (min-width: 761px) { .st-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* 요약 8칸 = 4칸 두 줄 */
.st-kakao { margin-top: 16px; }

/* ── 판매자 정보 고치기(seller_info.html) · 실물 인증 한꺼번에(proofs.html) · 코드표 인쇄(proofs_print.html) ── */
.sec-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }   /* 내 재고 머리: 한꺼번에 올리기 + 재고 올리기 */
.si-log { margin-top: 44px; }
.si-back { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--sub); }
.pb-tools { margin: 0 0 20px; gap: 8px 16px; }
.pb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pb-row { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.pb-row:target { background: var(--soft); box-shadow: -12px 0 var(--soft), 12px 0 var(--soft); }   /* 방금 올린 상품의 다음 칸 */
.pb-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0 14px; align-items: center; margin: 0 0 14px; }
.pb-item img, .pb-item .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--img); }
.pb-text { min-width: 0; font-size: 14px; }
.pb-text .card-brand { display: block; font-size: 12px; }
.pb-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.pb-code { font-size: 24px; font-weight: 800; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.pb-form .field { margin-bottom: 12px; }
.pb-form input[type=file] { padding: 16px 12px; }                 /* 손가락으로 누르기 쉽게 — 휴대폰은 바로 카메라가 열린다 */
.pb-row .errors { margin: 0 0 12px; }
.btn[hidden] { display: none; }                                    /* 스크립트가 켤 때만 보이는 버튼(코드표 인쇄) */
.pp-sheet {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 0 0 24px;
  border-top: 1px dashed #8a8a8a; border-left: 1px dashed #8a8a8a;
}
.pp-card {
  display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 132px; padding: 10px 8px;
  border-right: 1px dashed #8a8a8a; border-bottom: 1px dashed #8a8a8a; text-align: center; break-inside: avoid;
}
.pp-card p { margin: 0; }
.pp-card .pp-code { font: 800 28px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: #000; }
.pp-card .pp-brand { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #000; }
.pp-card .pp-name { font-size: 11px; color: #333; }
@media print {                                                     /* A4: 3칸 × 6줄(45mm) — 여백·머리는 proofs_print.html */
  .pp-screen { display: none; }
  .pp-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; break-after: page; }
  .pp-sheet:last-of-type { break-after: auto; }
  .pp-card { height: 45mm; min-height: 0; padding: 3mm; }
  .pp-card .pp-code { font-size: 30pt; }
  .pp-card .pp-brand, .pp-card .pp-name { font-size: 9pt; }
}
/* ── 상품 수정(listing_edit.html) — 사진 한 장씩 지우기·대표 고르기 ── */
.le-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.le-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--img); }
.le-photos .check { margin-top: 6px; font-size: 13px; }
.pd-buy .pd-edit { margin-top: 10px; }
.sec-head.wraps { flex-wrap: wrap; }                                /* 내 재고: 버튼이 많으면 제목 아래로 */
.sec-head.wraps h2 { white-space: nowrap; }
@media (max-width: 600px) {                                         /* 내 재고 줄: 좁은 화면에서는 이름 아래에 상태·버튼 */
  .stock-rows .row { grid-template-columns: minmax(0, 1fr); }
  .stock-rows .row-side { justify-content: flex-start; }
}
.pp-screen { margin: 0 0 20px; }
