/* 96PLACE — 공통 스타일
   Layout: 넓은 여백의 진열대형 그리드(고객) + 촘촘한 작업용 표(관리자) */
:root {
  /* 96PLACE: 네이비 + 흰 바탕의 프리미엄 데님 톤 */
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f3f5f8;          /* 연한 회청색 바탕 (컬렉션 박스·검색창) */
  --ink: #15171b;
  --navy: #1b2a44;
  --muted: #6a7384;
  --slate: #5a6b85;         /* 윗줄 문구 */
  --line: #dfe3ea;
  --accent: #1b2a44;
  --accent-soft: #e6ebf3;
  --gold: #d8c29d;          /* 선택된 컬렉션의 한글 부제 */
  --sale: #b4432b;
  --danger: #b3261e;

  --f-display: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --f-body: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --r: 6px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--f-body);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- 헤더 ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: -0.045em; text-decoration: none; color: var(--ink); }

/* 고객 화면 헤더: 왼쪽 공지사항 · 가운데 로고 · 오른쪽 계정 메뉴 */
.site-head .head-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 16px; }
.head-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.head-grid .logo { font-size: 26px; }
.head-right { justify-content: flex-end; }
.pill-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 14px; color: var(--ink); white-space: nowrap;
}
.pill-link:hover, .pill-link.on { border-color: var(--navy); }
.head-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.head-nav a { text-decoration: none; }
.head-nav a:hover, .head-nav a.on { color: var(--ink); }

/* 상단 로그인 메뉴 */
.auth-nav { display: flex; gap: 14px; align-items: center; padding-left: 18px; border-left: 1px solid var(--line); }
.head-right .auth-nav { padding-left: 0; border-left: 0; }
.auth-nav .admin-link { color: var(--accent); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------- 버튼·폼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.field small { color: var(--muted); font-size: 12px; }
input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- C-01 상단 문구·컬렉션·카테고리 ---------- */
.hero { padding-block: 40px 28px; display: grid; gap: 12px; justify-items: start; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--slate); text-transform: uppercase; }
.hero-title { font-size: clamp(30px, 8vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.edit-copy {
  font-size: 12px; color: var(--muted); background: none; border: 1px dashed var(--muted);
  border-radius: 4px; padding: 4px 10px; cursor: pointer;
}
.copy-form { display: grid; gap: 10px; width: 100%; max-width: 480px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
.copy-actions { display: flex; justify-content: flex-end; gap: 6px; }

.collections {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px;
  background: var(--tint); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 28px;
}
.coll {
  display: grid; gap: 8px; justify-items: center; padding: 22px 8px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); color: var(--navy);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.coll b { font-size: clamp(11px, 3vw, 16px); font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.coll span { font-size: clamp(14px, 3.6vw, 17px); font-weight: 600; color: var(--muted); }
.coll.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(27, 42, 68, .18); }
.coll.on span { color: var(--gold); }
.coll:not(.on):hover { border-color: var(--slate); }

.cat-chips { gap: 10px; margin-bottom: 18px; }
.cat-chips .chip { height: 44px; padding: 0 22px; font-size: 15px; font-weight: 500; border-color: var(--line); color: var(--ink); }
.cat-chips .chip:hover { border-color: var(--slate); }
.cat-chips .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search {
  width: 100%; min-height: 52px !important; padding: 0 18px !important; font-size: 16px;
  background: var(--tint) !important; border: 1px solid var(--line); border-radius: 4px !important;
}
.list-meta { display: flex; justify-content: flex-end; padding-block: 18px 12px; font-size: 13px; color: var(--muted); min-height: 50px; }

/* ---------- 고객: 상단 소개 ---------- */
.intro { padding-block: 48px 24px; display: grid; gap: 10px; }
.intro h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 6vw, 56px); letter-spacing: -0.02em; }
.intro p { color: var(--muted); margin: 0; max-width: 60ch; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-block: 12px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: 13px; cursor: pointer;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.toolbar input[type=search] { width: 240px; max-width: 100%; }

/* ---------- 고객: 상품 그리드 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; padding-bottom: 64px; }
.card { text-decoration: none; display: grid; gap: 10px; min-width: 0; align-content: start; }
.card .thumb { aspect-ratio: 4 / 5; background: var(--line); border-radius: var(--r); overflow: hidden; position: relative; max-width: 100%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card .meta { display: grid; gap: 2px; align-content: start; }
.card .cat { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.card .name { font-weight: 500; overflow-wrap: anywhere; }
.price { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.price > span { white-space: nowrap; }
.price .now { font-weight: 600; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.price .rate { color: var(--sale); font-weight: 600; font-size: 13px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 3px; background: var(--ink); color: var(--paper);
}
.thumb .badge { position: absolute; top: 10px; left: 10px; }
.card.soldout .thumb img { opacity: .55; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.empty, .loading { padding: 64px 0; text-align: center; color: var(--muted); }

/* ---------- 고객: 상품 상세 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding-block: 32px 72px; }
.gallery { display: grid; gap: 10px; min-width: 0; }
.gallery .main { aspect-ratio: 4 / 5; background: var(--line); border-radius: var(--r); overflow: hidden; max-width: 100%; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--line); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.info h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
.info .summary { color: var(--muted); margin: 0; }
.info .price { font-size: 22px; }
.info .price .was { font-size: 15px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.desc { white-space: pre-line; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }

.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot .wrap { padding-block: 24px; }
.site-foot .foot-in { display: grid; justify-items: center; gap: 10px; padding-block: 48px 40px; text-align: center; }
.foot-mark { width: 96px; height: auto; opacity: .9; }
.site-foot .foot-in p { margin: 0; font-size: 12px; letter-spacing: .08em; }

/* ---------- 관리자 ---------- */
.admin-main { padding-block: 28px 64px; display: grid; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.page-head h1 { font-size: 22px; font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.panel h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }

.login { max-width: 380px; margin: 72px auto; display: grid; gap: 14px; }
.login h1 { font-family: var(--f-display); font-size: 26px; font-weight: 800; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input, .filters select { width: auto; min-width: 140px; flex: 1 1 160px; }

.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.list th, table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .04em; background: var(--paper); }
table.list td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list .mini { width: 48px; height: 60px; border-radius: 4px; object-fit: cover; background: var(--line); }
table.list .actions { display: flex; gap: 6px; justify-content: flex-end; }

.pill { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 500; }
.pill.active { background: var(--accent-soft); color: var(--accent); }
.pill.soldout { background: #f3e3de; color: var(--sale); }
.pill.draft { background: #ececec; color: #555; }
.pill.hidden { background: #ececec; color: #888; text-decoration: line-through; }
.pill.super_admin { background: var(--ink); color: var(--paper); }
.pill.product_admin { background: var(--accent-soft); color: var(--accent); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }

.attr-rows { display: grid; gap: 8px; }
.attr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto auto auto; gap: 6px; }

.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.img-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; background: var(--paper); }
.img-item.main { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.img-item img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.img-item .tools { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.img-item .tools button { flex: 1; height: 28px; font-size: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; cursor: pointer; padding: 0 4px; }
.img-item input { border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 34px; font-size: 12px; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 24px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }

.save-bar { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: flex-end; gap: 8px; }

.notice { padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.notice.err { background: #f8e1de; color: var(--danger); }

/* ---------- 공지사항 ---------- */
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 4px; text-decoration: none; }
.notice-list a:hover .n-title { text-decoration: underline; text-underline-offset: 3px; }
.notice-list li.pinned { background: var(--surface); }
.notice-list .n-title { overflow-wrap: anywhere; }
.notice-list li.pinned .n-title { font-weight: 600; }
.notice-list time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.notice-list .new { color: var(--sale); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-block: 24px 64px; }
.notice-view { padding-block: 24px 40px; display: grid; gap: 28px; }
.notice-view header { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding-block: 22px; display: grid; gap: 8px; }
.notice-view h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 600; }
.notice-view time { color: var(--muted); font-size: 13px; }
.notice-view .desc { line-height: 1.85; min-height: 160px; }
.notice-view .desc a { color: var(--accent); }
.notice-nav { border-top: 1px solid var(--line); margin-bottom: 64px; }
.notice-nav a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
.notice-nav a span { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .notice-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .notice-list .n-tag:empty { display: none; }
  .notice-list .n-tag:not(:empty) { grid-column: 1 / -1; }
}

/* 화면 번호 (관리자 전용) */
.screen-badge {
  margin-right: auto; font: 600 11px/1 var(--f-display); letter-spacing: .06em;
  padding: 5px 8px; border-radius: 4px; border: 1px dashed var(--muted); color: var(--muted);
  user-select: all;
}
.screen-badge.floating {
  position: fixed; z-index: 30; margin: 0; background: var(--paper);
  right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 상품 정보 (C-02, 미리보기) ---------- */
.badge.sale { background: var(--sale); color: #fff; }
.info .block { display: grid; gap: 10px; }
.info .block h2 { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.care { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pill.general { background: #ececec; color: var(--ink); }
.pill.sale { background: #f3e3de; color: var(--sale); }

/* ---------- 상품 등록 (A-02) ---------- */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; justify-self: start; }
.seg label, .tg { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 22px; font-weight: 500; }
.seg.small span { padding: 6px 12px; font-size: 13px; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.panel h2 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inline { display: flex; gap: 6px; align-items: center; }
.inline > select, .inline > input { flex: 1; min-width: 0; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.tg { cursor: pointer; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.tg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.tg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fabric-rows { display: grid; gap: 10px; }
.fabric-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; }
.fabric-row > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.mat-rows { display: grid; gap: 8px; margin-top: 12px; max-width: 360px; }
.mat-row { display: grid; grid-template-columns: 100px 110px auto; align-items: center; gap: 8px; }
.mat-sum { margin: 10px 0 0; font-size: 13px; color: var(--accent); }
.mat-sum.warn { color: var(--sale); }
.err-text { color: var(--danger) !important; }
.ok-text { color: var(--accent) !important; }

.mgr { max-width: 520px; }
.mgr h2 { font-size: 17px; }
.mgr-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; }
.mgr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 4px; }
.mgr-row input { min-height: 30px; padding: 4px 8px; }

.preview { position: fixed; inset: 0; z-index: 45; background: var(--paper); overflow-y: auto; }
.preview-bar {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  background: var(--ink); color: var(--paper);
  padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.preview-bar .seg { border-color: var(--paper); }
.preview-bar .seg input:checked + span { background: var(--paper); color: var(--ink); }
.preview-bar .btn.ghost { color: var(--paper); border-color: rgba(255,255,255,.4); }
.preview-body { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px 48px; }
.pv-note { margin: 0; font-size: 13px; color: var(--sale); }

@media (max-width: 760px) {
  .mgr-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .mgr-row [data-act=up], .mgr-row [data-act=down] { display: none; }
}

/* 색상·재고 (A-02) */
.color-groups { display: grid; gap: 12px; }
.color-group { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: start; }
.color-group > span { font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 7px; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
table.inv { border-collapse: collapse; font-size: 14px; min-width: 460px; }
table.inv th, table.inv td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: center; }
table.inv thead th { font-size: 12px; color: var(--muted); font-weight: 500; }
table.inv tbody th, table.inv tfoot th { text-align: left; font-weight: 500; white-space: nowrap; }
table.inv.sizes input { width: 68px; }
table.inv.sizes tfoot input { background: var(--tint); }
table.inv input { width: 76px; min-height: 34px; padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }
table.inv .sum { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 52px; }
table.inv tfoot td, table.inv tfoot th { border-bottom: 0; border-top: 1px solid var(--ink); }

/* 이미지 카드: 끌어서 순서 변경 */
.img-wrap { position: relative; }
.img-item .drag {
  position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border-radius: 4px;
  border: 0; background: rgba(22,24,26,.72); color: #fff; font-size: 18px; line-height: 1;
  cursor: grab; touch-action: none;
}
.img-item .drag:active { cursor: grabbing; }
.img-item .num { position: absolute; top: 6px; right: 6px; font: 600 11px/1 var(--f-display); background: var(--surface); padding: 4px 6px; border-radius: 3px; }
.img-item.dragging { opacity: .45; outline: 2px dashed var(--accent); }
.stock-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.stock-btn:hover, .stock-btn[aria-expanded="true"] { border-color: var(--navy); }
.stock-btn.zero { color: var(--sale); }
.stock-btn i { font-style: normal; color: var(--sale); font-size: 9px; }
.stock-btn span { color: var(--muted); font-size: 10px; }
table.list tr.inv-row > td { background: var(--tint); padding: 14px 16px; }
.stock-ed { display: grid; gap: 12px; }
.stock-ed .hint { margin: 0; }
table.stock-tbl { background: var(--surface); border-radius: var(--r); }
table.stock-tbl tbody tr.copy-src { background: var(--accent-soft); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.stepper button { width: 30px; height: 34px; border: 0; background: var(--tint); font-size: 16px; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--accent-soft); }
table.inv .stepper input { width: 52px; min-height: 34px; border: 0; border-radius: 0; text-align: center; padding: 0 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.stock-dirty { margin-right: auto; font-size: 13px; color: var(--sale); }
.csv-panel { display: grid; gap: 14px; }
.csv-panel h2 { margin: 0; }
.csv-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.csv-steps b { color: var(--ink); font-weight: 600; }
.csv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.csv-sum { margin: 0 0 10px; font-size: 14px; }
.csv-sum .chg { color: var(--navy); font-weight: 700; }
.csv-sum .bad { color: var(--danger); font-weight: 700; }
.csv-errors { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--danger); display: grid; gap: 4px; }
.csv-table { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.csv-table b.up { color: var(--navy); }
.csv-table b.down { color: var(--sale); }
.csv-log summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.csv-loglist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.csv-loglist summary { font-weight: 400; }
.csv-loglist summary span { color: var(--muted); }
.csv-logchg { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: 12px; columns: 2; }
.seg small { font-size: 11px; font-weight: 700; margin-left: 4px; opacity: .8; }
.rank-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rank-grid .row-head small { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-item {
  display: grid; grid-template-columns: 32px 24px 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.rank-item .drag { position: static; width: 32px; height: 40px; border: 0; border-radius: 4px; background: var(--tint); font-size: 16px; cursor: grab; touch-action: none; color: var(--ink); }
.rank-item.dragging { opacity: .5; outline: 2px dashed var(--accent); }
.rank-no { font-size: 18px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.rank-item .mini { width: 44px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--tint); display: block; }
.rank-name { display: grid; min-width: 0; font-size: 14px; }
.rank-name small { color: var(--muted); font-size: 11px; }
.rank-price { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
#view > input[type=search], .rank-grid input[type=search] { margin-bottom: 12px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 70vh; overflow-y: auto; }
.pick-item { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 12px; min-width: 0; }
.pick-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-item small { color: var(--muted); font-size: 11px; }
.pick-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--tint); border: 2px solid transparent; }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-item:hover:not(:disabled) .pick-img { border-color: var(--accent); }
.pick-item:disabled { cursor: default; }
.pick-item.added .pick-img img { opacity: .4; }
.pick-item.added b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: var(--navy); }
.pick-item:disabled:not(.added) { opacity: .45; }
@media (max-width: 860px) { .rank-grid { grid-template-columns: minmax(0, 1fr); } .rank-item { grid-template-columns: 32px 20px 40px minmax(0, 1fr) auto; } .rank-price { display: none; } }
.thumb-panel { display: grid; gap: 14px; }
.thumb-panel h2 { margin: 0; }
.thumb-stat { margin: 0; font-size: 14px; font-weight: 500; }
.thumb-run { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.thumb-run progress { flex: 1; max-width: 360px; height: 8px; accent-color: var(--navy); }
.pick-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.color-photos { display: grid; gap: 10px; margin-top: 16px; }
.color-photos:empty { display: none; }
.sub-h { font-size: 13px; font-weight: 600; margin: 4px 0 0; }
.sub-h small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.cp-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; }
.cp-row > span { font-size: 13px; font-weight: 500; }
.cp-thumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-thumb { width: 48px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--tint); cursor: pointer; }
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cp-thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cp-none { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; cursor: pointer; }
.cp-none[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.img-colors { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 6px 0; }
.img-colors button { height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 11px; cursor: pointer; }
.img-colors button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.img-note { font-size: 11px; color: var(--muted); padding: 4px 8px 0; min-height: 18px; font-variant-numeric: tabular-nums; }
.img-item select { border: 0; border-top: 1px solid var(--line); border-radius: 0; min-height: 34px; font-size: 12px; padding: 4px 8px; }

/* 관리 창의 분류 */
.mgr-group { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 6px; letter-spacing: .04em; }
.mgr-row.grouped { grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; align-items: center; }
.mgr-row .grp span { padding: 5px 8px; font-size: 12px; }
#mgrGroup { flex: none; }

/* 상세 화면 재고표 (C-02) */
table.stock { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.stock th, table.stock td { border-top: 1px solid var(--line); padding: 8px 6px; text-align: center; }
table.stock thead th { font-size: 12px; color: var(--muted); font-weight: 500; border-top: 0; }
table.stock tbody th { text-align: left; font-weight: 500; }
table.stock .zero { color: var(--muted); }

@media (max-width: 760px) {
  .color-group { grid-template-columns: 1fr; gap: 6px; }
  .color-group > span { padding-top: 0; }
  .mgr-row.grouped { grid-template-columns: auto minmax(0, 1fr) auto auto; }
}

/* ---------- 상품 상세: 테마 A 미니멀 갤러리 (C-02, A-02 미리보기) ---------- */
.pd-back { padding-top: 16px; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
.pd-media { position: relative; margin-top: 12px; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--tint); max-width: 100%; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-count {
  position: absolute; right: 12px; bottom: 12px; font-size: 11px; letter-spacing: .1em; color: #fff;
  background: rgba(21, 23, 27, .45); padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.pd-info { display: grid; align-content: start; min-width: 0; }
.pd-head { display: grid; gap: 10px; justify-items: start; padding-block: 28px 24px; }
.pd-sale { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--sale); }
.pd-eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--slate); }
.pd-name { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.pd-price { gap: 10px; }
.pd-dl-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--navy); border-radius: 999px; background: var(--surface); color: var(--navy);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.pd-dl-btn small { font-size: 12px; font-weight: 500; opacity: .7; }
.pd-dl-btn:hover:not(:disabled) { background: var(--navy); color: #fff; }
.pd-dl-btn:disabled { cursor: progress; opacity: .7; }
.pd-dl-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pd-price .now { font-size: 20px; font-weight: 700; }
.pd-price .rate { font-size: 15px; font-weight: 700; }
.pd-sec { display: grid; gap: 14px; padding-block: 22px; border-top: 1px solid var(--line); }
.pd-label { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--slate); }
.pd-label span { letter-spacing: .04em; }

.pd-colors { display: flex; flex-wrap: wrap; gap: 14px 14px; }
.pd-color {
  display: grid; justify-items: center; gap: 6px; min-width: 44px; padding: 0; border: 0; background: none;
  font-size: 12px; color: var(--muted); cursor: pointer;
}
.pd-sw { display: block; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.pd-sw.light { box-shadow: inset 0 0 0 1px var(--line); }
.pd-sw.photo { border-radius: 2px; overflow: hidden; background: var(--tint); }
.pd-sw.photo img { width: 100%; height: 100%; object-fit: cover; }
.pd-color .pd-sw.photo { width: 60px; height: 76px; }
.pd-color.on { color: var(--ink); font-weight: 600; }
.pd-color.on .pd-sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.pd-color:hover .pd-sw.photo img { opacity: .85; }

/* 색상 × 사이즈 재고표 */
.pd-stock-tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.pd-stock-tbl th, .pd-stock-tbl td { padding: 9px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pd-stock-tbl thead th { font-size: 12px; font-weight: 500; color: var(--muted); border-bottom-color: #d5d9e0; }
.pd-stock-tbl thead th:first-child { text-align: left; width: 34%; }
.pd-stock-tbl tbody th { text-align: left; font-weight: 500; padding-left: 0; }
.pd-cname { display: inline-flex; align-items: center; gap: 8px; }
.pd-stock-tbl tbody th .pd-sw { width: 18px; height: 18px; }
.pd-stock-tbl tbody th .pd-sw.photo { width: 18px; height: 22px; }
.pd-stock-tbl td.in { color: var(--ink); font-size: 12px; }
.pd-stock-tbl td.in b { font-size: 14px; margin-right: 1px; }
.pd-stock-tbl .none, .pd-note .none { color: #a7adb8; }
.pd-stock-tbl tbody tr.on { background: var(--tint); }
.pd-stock-tbl tbody tr.on th { font-weight: 700; }
.pd-note { margin: 0; font-size: 12px; color: var(--muted); }
.pd-media, .pd-slide { scroll-margin-top: 72px; }

/* 사이즈 실측표 */
.pd-sizes { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.pd-sizes th, .pd-sizes td { padding: 9px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pd-sizes thead th { font-size: 12px; font-weight: 500; color: var(--muted); border-bottom-color: #d5d9e0; }
.pd-sizes tbody th { font-weight: 700; text-align: left; padding-left: 0; }
.pd-fabric { display: grid; grid-template-columns: minmax(56px, max-content) minmax(0, 1fr); column-gap: 14px; align-items: start; row-gap: 18px; font-size: 13px; }
.pd-fabric-name { padding-top: 7px; }
.pd-scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #d5d9e0; color: var(--muted); }
.pd-scale li { display: flex; justify-content: center; }
.pd-scale li:first-child { justify-content: flex-start; }
.pd-scale li:last-child { justify-content: flex-end; }
.pd-scale span { padding-top: 7px; }
.pd-scale li.on span { color: var(--ink); font-weight: 700; border-top: 2px solid var(--ink); margin-top: -1.5px; padding-top: 6.5px; }

.pd-accs { border-top: 1px solid var(--line); }
.pd-acc { border-bottom: 1px solid var(--line); }
.pd-acc summary {
  display: flex; justify-content: space-between; align-items: center; min-height: 60px; cursor: pointer;
  font-size: 14px; font-weight: 500; list-style: none;
}
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: "+"; font-size: 18px; font-weight: 300; }
.pd-acc[open] summary::after { content: "−"; }
.pd-acc-body { padding-bottom: 20px; font-size: 13px; line-height: 1.7; }
.pd-dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); row-gap: 8px; margin: 0; }
.pd-dl dt { color: var(--muted); }
.pd-dl dd { margin: 0; overflow-wrap: anywhere; }
.pd-care { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* 휴대폰: 사진은 화면 끝까지, 옆으로 넘김 */
@media (max-width: 899px) {
  .pd-media {
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  }
}
/* PC: 왼쪽 사진 세로 나열, 오른쪽 정보 고정 */
@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-top: 12px; }
  .pd-track { display: grid; gap: 8px; overflow: visible; }
  .pd-count { display: none; }
  .pd-info { position: sticky; top: 90px; }
  .pd-head { padding-top: 12px; }
}

/* ---------- C-01 룩북형 ---------- */
/* 헤더: 대표 사진 위에 투명하게 겹침 */
.head-over { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; color: #fff; }
.head-over .logo, .head-over .head-nav, .head-over .head-nav a, .head-over .link-btn, .head-over .auth-nav .admin-link { color: #fff; }
.head-over .pill-link { color: #fff; border-color: rgba(255, 255, 255, .55); }
.head-over .screen-badge { color: #fff; border-color: rgba(255, 255, 255, .6); }

.lb-hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(460px, 72vh, 640px); color: #fff;
  background-color: #22345a;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 6px);
}
.lb-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* 글자가 잘 보이도록 아래쪽만 어둡게 */
.lb-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(10, 16, 28, .62), rgba(10, 16, 28, 0)); pointer-events: none; }
.lb-hero-copy { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; width: 100%; padding-block: 0 36px; }
.lb-eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.lb-title { font-size: clamp(36px, 10vw, 64px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; white-space: pre-line; }
.lb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.lb-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.lb-cta:hover { background: var(--tint); }
.lb-edit { height: 34px; padding: 0 12px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .25); border: 1px dashed rgba(255, 255, 255, .7); border-radius: 4px; cursor: pointer; }
.lb-form { margin-top: 16px; max-width: 560px; }
.lb-form textarea { min-height: 72px; }

/* 메인 최근 공지 띠 (F-23) · 모양 A~E = .hn[data-s] */
.hn-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.hn-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-link:hover .hn-t { text-decoration: underline; text-underline-offset: 3px; }
.hn-chev, .hn-k, .hn-dt, .hn-more, .hn-ico, .hn-sep { flex: none; }
/* A 얇은 띠: 사진 바로 아래 검정 한 줄 */
.hn[data-s="a"] { background: #15171b; color: #fff; }
.hn[data-s="a"] .hn-link { height: 48px; font-size: 14px; }
.hn[data-s="a"] .hn-k { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #d8c29d; }
.hn[data-s="a"] .hn-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); }
.hn[data-s="a"] .hn-t { font-weight: 500; }
.hn[data-s="a"] .hn-dt { font-size: 12px; color: rgba(255, 255, 255, .6); }
/* B 겹친 흰 카드: 사진 아래 경계에 반쯤 걸침 */
body[data-hn="b"] .lb-hero-copy { padding-bottom: 72px; }
.hn[data-s="b"] { position: relative; z-index: 2; margin-top: -36px; }
.hn[data-s="b"] .hn-link { max-width: 560px; padding: 14px 16px; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 30px rgba(20, 30, 50, .16); }
.hn-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--navy); }
.hn-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hn[data-s="b"] .hn-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--slate); }
.hn[data-s="b"] .hn-dt { font-weight: 500; letter-spacing: 0; }
.hn[data-s="b"] .hn-t { font-size: 15px; font-weight: 700; line-height: 1.4; }
.hn[data-s="b"] .hn-chev { color: var(--muted); }
/* C 사진 속 유리 띠: 대표 사진 안쪽 맨 아래 */
body[data-hn="c"] .lb-hero-copy { padding-bottom: 82px; }
.hn[data-s="c"] { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, .18); }
.hn[data-s="c"] .hn-link { height: 46px; gap: 10px; font-size: 14px; }
.hn[data-s="c"] .hn-k { padding: 3px 8px; border-radius: 4px; background: #d8c29d; color: #15171b; font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.3; }
.hn[data-s="c"] .hn-t { font-weight: 500; }
.hn[data-s="c"] .hn-more { font-size: 12px; color: rgba(255, 255, 255, .75); }
/* D 금색 선 미니멀: 배경 없이 선 사이 작은 글씨 */
.hn[data-s="d"] { padding-top: 24px; }
.hn[data-s="d"] .hn-link { font-size: 13px; }
.hn-line { flex: 1; min-width: 24px; height: 1px; background: #c9b089; }
.hn-mid { flex: 0 1 auto; max-width: min(75%, 560px); min-width: 0; display: flex; align-items: center; gap: 8px; }
.hn[data-s="d"] .hn-k { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: #a88a5c; }
.hn[data-s="d"] .hn-t { font-weight: 500; }
/* E 알약 배지: 가운데 둥근 알약 */
.hn[data-s="e"] { padding-top: 20px; }
.hn[data-s="e"] .wrap { display: flex; justify-content: center; }
.hn[data-s="e"] .hn-link { max-width: 100%; height: 38px; gap: 8px; padding: 0 14px 0 5px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 13px; }
.hn[data-s="e"] .hn-k { display: flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hn[data-s="e"] .hn-t { flex: 0 1 auto; font-weight: 600; }
.hn[data-s="e"] .hn-dt, .hn[data-s="e"] .hn-chev { font-size: 12px; color: var(--muted); }

.lb-main { display: grid; gap: 48px; padding-block: 40px 72px; }
.lb-sec { display: grid; gap: 14px; min-width: 0; }
.lb-label { font-size: 11px; font-weight: 600; letter-spacing: .3em; color: var(--slate); }
.lb-h { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }

.lb-colls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lb-coll {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; height: clamp(220px, 34vw, 340px);
  padding: 0; border: 0; cursor: pointer; text-align: left; color: #fff;
  background-color: #3b5288; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 6px);
}
.lb-coll.sale { background-color: #6f7480; }
.lb-coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lb-coll:hover img { transform: scale(1.03); }
.lb-coll::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10, 16, 28, .6), rgba(10, 16, 28, 0)); }
.lb-coll-txt { position: relative; z-index: 1; display: grid; gap: 2px; padding: 16px; }
.lb-coll-txt b { font-size: 11px; letter-spacing: .2em; }
.lb-coll.sale .lb-coll-txt b { color: #ffd9cf; }
.lb-coll-txt strong { font-size: 18px; }
.lb-coll-txt small { font-size: 12px; opacity: .85; }
.lb-coll.on { box-shadow: inset 0 -4px 0 #fff; }

.lb-fits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.lb-fit { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--ink); cursor: pointer; min-width: 0; }
.lb-fit[hidden] { display: none; }
.lb-fit-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--tint); color: var(--navy); transition: background .15s; }
.lb-fit:hover .lb-fit-ico { background: var(--accent-soft); }
.lb-fit-name { max-width: 100%; line-height: 1.3; text-align: center; word-break: keep-all; }
.lb-fit.on { font-weight: 700; }
.lb-fit.on .lb-fit-ico { background: var(--ink); color: var(--paper); }
.lb-fit-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; margin-top: 2px;
  border: 0; border-top: 1px solid var(--line); background: none; font-size: 14px; color: var(--muted); cursor: pointer; }
.lb-fit-more:hover { color: var(--ink); }

/* 목록 영역이 화면 높이보다 짧아지지 않게 해서, 탭을 바꿀 때 화면이 위로 끌려 올라가지 않게 합니다 */
body[data-screen="C-01"] #list { min-height: 100vh; min-height: 100svh; align-content: start; }
.lb-grid.stale { opacity: .45; transition: opacity .15s; pointer-events: none; }
.lb-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); }
/* 신상품 / 세일 상품 탭: 영문 작은 글씨 + 한글 큰 글씨, 아래 밑줄이 미끄러지듯 이동 */
.lb-tabs { --bar-x: 0px; --bar-w: 0px; position: relative; display: flex; gap: 28px; }
.lb-tab {
  display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; row-gap: 2px;
  padding: 0 0 14px; border: 0; background: none; cursor: pointer; color: var(--muted); text-align: left;
}
.lb-tab-en { grid-column: 1 / -1; font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.lb-tab-ko { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; transition: color .2s; }
.lb-tab small {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--tint); color: var(--muted);
}
.lb-tab small:empty { display: none; }
.lb-tab:hover .lb-tab-ko { color: var(--ink); }
.lb-tab.on { color: var(--ink); }
.lb-tab.on .lb-tab-en { color: var(--slate); }
.lb-tab.on small { background: var(--navy); color: #fff; }
.lb-tab.sale .lb-tab-en { color: var(--sale); }
.lb-tab.sale.on small { background: var(--sale); }
.lb-tab-bar {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: var(--bar-w); transform: translateX(var(--bar-x));
  background: var(--ink); transition: transform .3s ease, width .3s ease;
}
.lb-tabs:has(.lb-tab.sale.on) .lb-tab-bar { background: var(--sale); }
.lb-list-head .lb-count { padding-bottom: 16px; }
.lb-count { font-size: 12px; color: var(--muted); }
.lb-tools { display: flex; gap: 8px; align-items: center; }
.lb-tools > span:empty { display: none; }
/* 고른 핏(여러 개 가능)은 검색창 위 한 줄, 넘치면 옆으로 넘김 */
.lb-tools { flex-wrap: wrap; }
#activeCat:not(:empty) { flex: 1 0 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
#activeCat::-webkit-scrollbar { display: none; }
#activeCat .lb-chip { flex: none; }
.lb-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.lb-search { flex: 1; min-width: 0; min-height: 40px !important; border-radius: 4px !important; background: var(--tint) !important; }
.lb-grid { gap: 28px 8px; padding-bottom: 0; }
.lb-grid .card .thumb { border-radius: 0; aspect-ratio: 3 / 4; }
.lb-grid .card .meta { padding-inline: 2px; }

/* 지금 인기 (F-13) */
.lb-hot-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.lb-hot-titles { display: grid; gap: 6px; }
.lb-hot-titles .lb-h { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lb-hot-tabs { display: flex; gap: 14px; }
.lb-hot-tab { padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; color: var(--muted); cursor: pointer; }
.lb-hot-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.lb-hot-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.lb-hot-track::-webkit-scrollbar { display: none; }
.lb-hot-card { flex: 0 0 40%; scroll-snap-align: start; display: grid; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.lb-hot-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tint); }
.lb-hot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lb-hot-card:hover .lb-hot-img img { transform: scale(1.03); }
.lb-hot-img::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(10, 16, 28, .5), rgba(10, 16, 28, 0)); }
.lb-hot-rank { position: absolute; left: 10px; bottom: 4px; z-index: 1; font-size: 44px; font-weight: 900; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.lb-hot-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-hot-card .price { font-size: 13px; }
@media (min-width: 900px) { .lb-hot-card { flex-basis: calc((100% - 40px) / 5); } .lb-hot-track { margin-right: 0; padding-right: 0; } }

/* 목록 순위 보기 칩 + 순위 배지 */
.lb-ranks { gap: 6px; }
.lb-ranks:not([hidden]) ~ .lb-tools { margin-top: 2px; }
/* 세일 연도·시즌 필터 (F-11) */
.lb-sf { display: grid; gap: 8px; }
.lb-sf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-sf-label { flex: none; width: 34px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.lb-sf .chips { flex: 1 1 0; min-width: 0; }
.lb-sf .chip { font-variant-numeric: tabular-nums; }
.lb-sf .chip small { margin-left: 2px; font-size: 11px; opacity: .65; }
.lb-sf .chip:disabled { opacity: .4; cursor: default; }
.lb-sf-reset { flex: none; border: 0; background: none; padding: 6px 2px; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lb-sf:not([hidden]) + .lb-tools { margin-top: 2px; }
.rank-badge { position: absolute; left: 0; top: 0; min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* 보기 방식 버튼 */
.lb-views { display: flex; flex: none; }
.lb-view { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.lb-view + .lb-view { border-left: 0; }
.lb-view svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.lb-view[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.lb-view[aria-pressed="true"] svg { stroke: #fff; }

/* 목록으로 보기 */
.lb-grid.as-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
.lb-grid.as-list .card { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.lb-grid.as-list .card .thumb { aspect-ratio: 3 / 4; }
.lb-grid.as-list .card:hover .thumb img { transform: none; }
.lb-grid.as-list .thumb .badge { top: 6px; left: 6px; font-size: 9px; padding: 2px 5px; }

/* 더 불러오는 중 표시 */
.lb-more { height: 1px; }
.lb-more.busy { height: 48px; background: radial-gradient(circle, var(--muted) 2px, transparent 3px) center / 14px 14px no-repeat; animation: lb-pulse 1s ease-in-out infinite; }
@keyframes lb-pulse { 50% { opacity: .3; } }

@media (max-width: 760px) {
  .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-grid.as-list { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .lb-grid.as-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 900px) {
  .lb-fits { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .lb-main { gap: 64px; }
}

/* ---------- 토스트·모달 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--r);
  font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r); padding: 22px; width: 100%; max-width: 380px; display: grid; gap: 18px; }
.modal p { margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 760px) {
  .site-head .head-grid { gap: 6px; padding-block: 12px; }
  .head-grid .logo { font-size: 22px; }
  .pill-link { height: 32px; padding: 0 12px; font-size: 13px; }
  .head-right { font-size: 13px; }
  .head-right .auth-nav { gap: 8px; }
  .hero { padding-block: 28px 20px; }
  .collections { gap: 8px; padding: 8px; border-radius: 16px; }
  .coll { padding: 18px 4px; }
  .coll b { letter-spacing: .02em; }
  .cat-chips { gap: 8px; }
  .cat-chips .chip { height: 40px; padding: 0 16px; font-size: 14px; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .attr-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .attr-row .mv { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .lb-more.busy { animation: none; }
  .lb-tab-bar { transition: none; }
}

/* A-01 여러 개 선택 삭제 (F-16) */
.modal p { white-space: pre-line; }
.list th.chk, .list td.chk { width: 40px; padding-right: 0; text-align: center; }
.list .chk input { width: 18px; height: 18px; margin: 0; vertical-align: middle; cursor: pointer; accent-color: var(--navy); }
.list tr.sel > td { background: var(--accent-soft); }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--navy); border-radius: var(--r, 8px); background: var(--surface); box-shadow: 0 4px 16px rgba(20, 30, 50, .08); }
.bulk-bar #bulkInfo { margin-right: auto; font-size: 14px; }
.bulk-bar small { color: var(--muted); }

/* F-14 고객 화면 관리자 바로가기 */
.adm-card { position: relative; display: grid; min-width: 0; }
.adm-bar { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 4px; }
.adm-bar a, .adm-bar button { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--navy); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.adm-bar button { color: var(--danger); }
.adm-bar a:hover, .adm-bar button:hover { background: #fff; }
.adm-card.removing { opacity: .4; pointer-events: none; }
.pd-back { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-adm { display: flex; gap: 6px; }
.lb-grid.as-list .adm-bar { top: 6px; right: 0; transform: none; }
.lb-grid.as-list .adm-card .meta > .cat { padding-right: 112px; }

/* A-02 임시저장 복원 안내 (F-15) */
.draft-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--navy); border-radius: var(--r, 8px); background: var(--accent-soft); font-size: 14px; }
.draft-note small { color: var(--muted); }
.draft-actions { display: flex; gap: 6px; }

/* C-02 발송 가능일 (F-17) */
.pd-ship-tbl td { font-size: 13px; color: var(--ink); white-space: normal; word-break: keep-all; line-height: 1.35; padding-inline: 2px; }
.pd-ship-tbl td.now { color: var(--ink); font-weight: 500; }
.pd-ship-one { margin: 0; padding: 12px 14px; background: var(--tint); font-size: 14px; }
.pd-ship-one b { color: var(--navy); }

/* A-02 발송 가능일 (F-17) */
.ship-h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ship-h2 svg { color: var(--slate); flex: none; }
.ship-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ship-opt { position: relative; cursor: pointer; }
.ship-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ship-opt span { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 15px; transition: background .12s, border-color .12s; }
.ship-opt span::before { content: ''; flex: none; width: 22px; height: 22px; border: 2px solid #9a9a9a; border-radius: 50%; box-sizing: border-box; background: #fff; }
.ship-opt:hover span { border-color: var(--slate); }
.ship-opt input:checked + span { background: #e8f0f5; border-color: #6c8399; }
.ship-opt input:checked + span::before { border: 7px solid var(--ink); background: #fff; }
.ship-opt input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.ship-opt input:disabled + span { opacity: .45; cursor: default; }
.link-btn { margin-top: 12px; padding: 4px 0; border: 0; background: none; color: var(--slate); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ship-cell { width: 100%; min-width: 108px; min-height: 36px; padding: 0 8px; border: 1px dashed var(--line); border-radius: 6px; background: var(--surface);
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ship-cell.on { border-style: solid; border-color: #6c8399; background: #e8f0f5; color: var(--ink); }
.ship-cell.now { font-weight: 700; }
.list tr.just-edited > td { animation: justEdited 2.4s ease-out; }
@keyframes justEdited { from { background: #fff4d6; } to { background: transparent; } }

/* A-01 저장공간 정리 */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.sc-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r, 8px); }
.sc-item span { font-size: 18px; font-weight: 700; color: var(--navy); }
.sc-item small { color: var(--muted); }
.sc-item .btn { justify-self: start; margin-top: 6px; }

/* F-19 연락처 · 신상마켓 */
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pd-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pd-act-ss { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); color: #fff; }
.pd-act-ss:hover { background: #24375a; }
.pd-act-kk { background: #fee500; border-color: #fee500; color: #191919; }
.pd-act-kk:hover { background: #f5dc00; }
.pd-act-tel:hover { border-color: var(--navy); }
.pd-act:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pd-actions > :only-child { grid-column: 1 / -1; }
.pd-act-wc { background: #07c160; border-color: #07c160; color: #fff; }
.pd-act-wc:hover { background: #06ad56; }
.pd-actions > .pd-act-tel:last-child:nth-child(even) { grid-column: 1 / -1; }
.kk-badge.wc { background: #07c160; color: #fff; }
.wc-copy { background: #07c160 !important; border-color: #07c160 !important; color: #fff !important; }
.kk-sheet { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); }
.kk-sheet::backdrop { background: rgba(15, 20, 30, .5); }
.kk-in { display: grid; gap: 12px; padding: 20px; }
.kk-head { display: flex; align-items: center; gap: 10px; }
.kk-head h2 { margin: 0; font-size: 18px; flex: 1; }
.kk-badge { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: #fee500; color: #191919; }
.kk-x { width: 36px; height: 36px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.kk-desc, .kk-how { margin: 0; font-size: 14px; color: var(--muted); }
.kk-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; background: var(--tint); border-radius: 10px; }
.kk-row span, .kk-msg span { font-size: 12px; color: var(--muted); }
.kk-row b { font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
.kk-msg { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.kk-msg p { margin: 0; font-size: 14px; }
.kk-msg .btn { justify-self: start; }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.foot-contact[hidden] { display: none; }
.foot-contact a, .foot-contact button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; border: 0; background: none;
  color: inherit; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.foot-contact a:hover, .foot-contact button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* F-21 언어 선택 */
.lang-sw { position: relative; }
.lang-sw summary { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer; list-style: none; opacity: .9; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw[open] summary, .lang-sw summary:hover { opacity: 1; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: grid; min-width: 150px; padding: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgba(20, 30, 50, .14); }
.lang-menu a { padding: 9px 12px; border-radius: 6px; color: var(--ink) !important; font-size: 14px; text-decoration: none; text-shadow: none; }
.lang-menu a:hover { background: var(--tint); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--navy) !important; }
.lang-menu a[aria-current]::after { content: ' ✓'; }
/* A-02·A-04·관리 창 번역 입력 */
.tr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tr-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.tr-grid textarea, .tr-grid input { width: 100%; }
@media (max-width: 640px) { .tr-grid { grid-template-columns: 1fr 1fr; } }
.mgr { max-width: 600px; }
.mgr-row { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mgr-tr { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.mgr-tr input { font-size: 12px; min-height: 28px; }
.ship-date-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ship-date-row label { font-size: 14px; font-weight: 600; }
.ship-date-row input { width: 140px; min-height: 36px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ship-date-row small { flex-basis: 100%; color: var(--muted); }
.ship-date-row small.err-text { color: var(--danger); }

/* 세일 목록 카드 재고표: 색상 × 사이즈 */
.stock-mini { width: 100%; margin-top: 4px; border-collapse: collapse; table-layout: fixed; font-size: 12px; font-variant-numeric: tabular-nums; }
.stock-mini th, .stock-mini td { padding: 3px 0; text-align: center; border-bottom: 1px solid var(--line); }
.stock-mini thead th { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.stock-mini thead th:first-child { width: 42%; }
.stock-mini tbody th { text-align: left; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-mini tbody th span { vertical-align: middle; }
.stock-mini td.on { font-weight: 700; color: var(--navy); }
.stock-mini td.off { color: #b6bcc8; }
.sm-dot { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; vertical-align: middle; }
.sm-dot.light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.stock-line.out { display: block; margin-top: 2px; }
.stock-line.out b { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #eceef2; color: var(--muted); font-size: 11px; }
.lb-grid.as-list .stock-mini { max-width: 260px; }
/* C-02 색상: 상품번호 위 */
.pd-sec-top { padding-top: 18px; border-top: 0; }
/* 하단 주소 */
.foot-addr { display: flex; align-items: flex-start; justify-content: center; gap: 6px; flex-basis: 100%; margin-top: 4px; font-style: normal; font-size: 13px; line-height: 1.6; text-align: left; }
.foot-addr svg { flex: none; margin-top: 2px; }
.kk-wc b { color: inherit; }
.pd-sec-top + .pd-head { padding-top: 18px; border-top: 1px solid var(--line); }
[data-theme="c"] .pd-sec-top + .pd-head { border-top: 0; }

/* 공식 로고 E안 (2026-11-11): 소문자 워드마크 "96place." (Gloock 글꼴을 벡터로 변환).
   글자는 글자색(currentColor)을 따라가고(사진 위 흰색, B 테마 밝은 글자), 마지막 마침표만 금색(--logo-dot).
   마침표는 그림 너비의 95.2% 지점부터 시작 → 배경을 그 지점에서 두 색으로 나눔 */
:root { --logo-dot: #b08a45; }
[data-theme="b"] { --logo-dot: #d4bc92; }
body[data-screen^="C-"] .logo, .foot-logo { display: inline-block; aspect-ratio: 3972 / 1038; font-size: 0; line-height: 0; color: var(--ink); vertical-align: middle;
  background: linear-gradient(90deg, currentColor 95.1%, var(--logo-dot) 95.1%);
  -webkit-mask: url(/img/logo-96place.svg) center / contain no-repeat; mask: url(/img/logo-96place.svg) center / contain no-repeat; }
body[data-screen^="C-"] .logo { height: 28px; }
body[data-screen^="C-"] .head-over .logo { color: #fff; }
@media (max-width: 560px) { body[data-screen^="C-"] .logo { height: 24px; } }
.foot-logo { display: block; width: 112px; height: auto; }

/* C-02 상품번호 강조 */
.pd-no { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; color: var(--navy); }
.pd-no span { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }

/* C-03·C-04 관리자 공지 관리 */
.adm-notice-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding: 10px 12px;
  border: 1px dashed var(--slate); border-radius: 10px; font-size: 13px; color: var(--muted); }
.notice-list li.adm { position: relative; }
.notice-list li.adm > a { padding-right: 132px; }
.notice-list li.adm .n-adm { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.notice-list li.adm time { margin-right: 4px; }
.notice-list li.hidden-n > a { opacity: .7; }
.notice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 20px; }
.notice-top .n-adm { display: flex; gap: 6px; }
.notice-top .n-adm[hidden] { display: none; }
@media (max-width: 560px) {
  .notice-list li.adm > a { padding-right: 0; padding-bottom: 46px; }
  .notice-list li.adm .n-adm { top: auto; bottom: 10px; transform: none; }
}
.n-private { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 4px; background: #eceef2; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- 관리자 휴대폰 화면 (A-01 상품 관리 카드형 · 관리자 메뉴 한 줄) ---------- */
.m-only, .m-meta, .fchips { display: none; }
.chk-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
@media (max-width: 760px) {
  /* 관리자 머리말: 로고 줄 + 메뉴는 옆으로 넘기는 한 줄 */
  body[data-screen^="A-"] .site-head { position: static; }   /* 휴대폰에서는 위에 붙지 않게 → 화면을 넓게 */
  body[data-screen^="A-"] .site-head .wrap { flex-wrap: wrap; gap: 0 10px; padding-block: 10px 0; }
  body[data-screen^="A-"] .site-head .logo { font-size: 20px; }
  body[data-screen^="A-"] .site-head .head-nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 4px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -16px; padding: 8px 16px 10px; font-size: 14px; }
  body[data-screen^="A-"] .site-head .head-nav::-webkit-scrollbar { display: none; }
  body[data-screen^="A-"] .site-head .head-nav > * { flex: none; white-space: nowrap; }
  body[data-screen^="A-"] .site-head .head-nav a { padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); }
  body[data-screen^="A-"] .site-head .head-nav a.on { background: var(--ink); color: #fff; }
  body[data-screen^="A-"] .site-head .head-nav > span { display: none; }
  body[data-screen^="A-"] .site-head .head-nav .btn { height: 32px; }
  body[data-screen^="A-"] .admin-main { padding-block: 18px 48px; gap: 14px; }

  /* A-01 위쪽 버튼: 등록은 크게, 관리 도구 3개는 한 줄 */
  body[data-screen="A-01"] .page-head > div { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px !important; }
  body[data-screen="A-01"] .page-head > div .btn.ghost { padding-inline: 4px; font-size: 13px; height: 38px; white-space: nowrap; }
  body[data-screen="A-01"] .page-head > div > a.btn { grid-column: 1 / -1; order: -1; height: 46px; font-size: 16px; justify-content: center; }
  /* 검색창만 남기고, 컬렉션·카테고리·시즌은 옆으로 넘기는 버튼 줄(.fchips) */
  body[data-screen="A-01"] .filters { display: block; }
  body[data-screen="A-01"] .filters select { display: none; }
  body[data-screen="A-01"] .filters input { width: 100%; min-width: 0; font-size: 16px; }
  .fchips { display: grid; gap: 6px; margin-top: -4px; }
  .fchip-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: -16px; padding: 2px 16px; }
  .fchip-row::-webkit-scrollbar { display: none; }
  .fchip-label { flex: none; width: 56px; font-size: 12px; color: var(--muted); }
  .fchip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--tint); color: var(--ink); font-size: 14px; white-space: nowrap; cursor: pointer; }
  .fchip.on { background: var(--ink); color: #fff; font-weight: 600; }

  /* A-01 상품 목록: 표 → 카드 */
  .plist { min-width: 0 !important; display: block; }
  .plist > thead, .plist > tbody { display: block; }
  .plist > thead > tr { display: flex; }
  .plist > thead th:not(.chk) { display: none; }
  .plist > thead th.chk { width: auto; padding: 12px 14px; text-align: left; font-size: 14px; color: var(--ink); letter-spacing: 0; }
  .plist .m-only { display: inline; }
  .plist > tbody > tr:not(.inv-row) { display: grid; grid-template-columns: 26px 64px minmax(0, 1fr) auto;
    grid-template-areas: "chk img no price" "chk img name name" "chk img stock stock" "chk img medit medit" "act act act act";
    gap: 4px 12px; align-items: start; padding: 14px; border-bottom: 1px solid var(--line); }
  .plist > tbody > tr.sel { background: var(--accent-soft); }
  .plist > tbody > tr > td { display: block; padding: 0; border: 0; background: none !important; min-width: 0; }
  .plist td.c-chk { grid-area: chk; width: auto; padding-top: 2px; }
  .plist td.c-img { grid-area: img; }
  .plist td.c-img .mini { width: 64px; height: 84px; border-radius: 6px; }
  .plist td.c-no { grid-area: no; font-size: 17px; line-height: 1.3; }
  .plist td.c-price { grid-area: price; font-size: 15px; font-weight: 700; line-height: 1.3; }
  .plist td.c-price small { font-weight: 400; font-size: 12px; }
  .plist td.c-name { grid-area: name; font-size: 14px; line-height: 1.45; }
  .plist td.c-name > a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; color: var(--ink); }
  .plist .m-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .plist .m-meta .pill { font-size: 11px; padding: 1px 8px; }
  .plist td.c-stock { grid-area: stock; display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .plist td.c-stock.none, .plist td.c-cat, .plist td.c-coll, .plist td.c-rel, .plist td.c-date { display: none; }
  .plist td.c-act { grid-area: act; margin-top: 10px; }
  .plist td.c-medit { grid-area: medit; display: block; color: var(--muted); line-height: 1.3; }
  .plist td.c-medit:empty { display: none; }
  .plist td.c-act .actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .plist td.c-act .btn { height: 36px; padding: 0; justify-content: center; font-size: 13px; }
  .plist > tbody > tr.inv-row { display: block; }
  .plist > tbody > tr.inv-row > td { display: block; padding: 12px; }
}

/* A-07 고객에게 보낼 링크 */
.share-links { display: grid; gap: 10px; }
.share-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.share-row b { font-size: 14px; font-weight: 600; }
.share-row input { min-width: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .share-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .share-row b { grid-column: 1 / -1; }
}

/* 상품 목록으로 이동(공유 링크·[신상품 보기])할 때 위쪽에 여유 — 아이폰 크롬 등 주소창이 위에 겹치는 브라우저 대비 */
#list { scroll-margin-top: 28px; }

/* ---------- 주문 요청 (F-24) ---------- */
/* 머리말 [주문 목록] */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.cart-link:hover { color: var(--ink); }
.cart-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
@media (max-width: 640px) { .cart-link-t { display: none; } .cart-badge { position: absolute; top: -7px; right: -9px; } }

/* C-02 주문 담기 */
.od-box { gap: 12px; }
.od-admin-note { margin: 0; padding: 8px 12px; border-radius: var(--r); background: #fff4d6; color: #6b4d00; font-size: 13px; }
.od-step-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.od-step-t b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; }
.od-step-t small { font-weight: 400; font-size: 12px; color: var(--muted); }
.od-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.od-c { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.od-c.od-all { padding: 0 16px; font-weight: 600; }
.od-c[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.od-c.od-all[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.od-sw { display: block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--tint); flex: none; }
.od-sw img { width: 100%; height: 100%; object-fit: cover; }
.od-sw.light { box-shadow: inset 0 0 0 1px var(--line); }
.od-c[aria-pressed="true"] .od-sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.od-sizes { display: grid; gap: 8px; }
.od-row { display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: 12px; }
.od-sz { font-weight: 700; font-size: 15px; }
.od-qty { display: inline-grid; grid-template-columns: 44px 64px 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.od-qty button { border: 0; background: var(--tint); color: var(--ink); font-size: 20px; cursor: pointer; }
.od-qty button:active { background: var(--accent-soft); }
.od-qty input { width: 100%; min-width: 0; border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 17px !important; font-weight: 700; padding: 0 !important; background: var(--surface); color: var(--ink); min-height: 0 !important; }
.od-hint { font-size: 12px; color: var(--muted); }
.od-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 14px; }
.od-sum b { font-size: 16px; }
.od-sum .muted { color: var(--muted); }
.od-err { margin: 0; padding: 10px 14px 10px 30px; border-radius: 10px; background: #fdecea; color: var(--danger); font-size: 14px; display: grid; gap: 4px; }
.od-err small { color: #8a3a32; }
.od-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.od-add { height: 50px; padding: 0 24px; font-size: 16px; flex: 1 1 220px; }
.od-add:disabled { opacity: .35; cursor: not-allowed; }
.od-go { font-size: 14px; font-weight: 600; color: var(--navy); }

/* C-05 주문 목록 · C-06 주문 보내기 */
.od-page { max-width: 760px; padding-block: 28px 120px; display: grid; gap: 18px; }
.od-page h1 { margin: 0; font-size: 26px; }
.od-page .od-admin-note { margin-bottom: -4px; }
.od-empty { padding: 48px 16px; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.od-prod { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.od-prod-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; }
.od-prod-head img, .od-prod-head .noimg { width: 64px; height: 84px; border-radius: 8px; object-fit: cover; background: var(--tint); }
.od-prod-no { font-size: 17px; font-weight: 800; }
.od-prod-name { font-size: 14px; color: var(--ink); text-decoration: none; display: block; margin-top: 2px; }
.od-prod-price { font-size: 13px; color: var(--muted); margin-top: 4px; }
.od-prod-price .tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; }
.od-x { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px; }
.od-x:hover { color: var(--danger); }
.od-line { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.od-line-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.od-line-head .od-sw { width: 26px; height: 26px; }
.od-line-head .od-x { margin-left: auto; }
.od-line-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.od-cell { display: grid; grid-template-columns: 30px auto; align-items: center; gap: 6px; }
.od-cell .od-qty { grid-template-columns: 36px 52px 36px; height: 38px; }
.od-cell .od-qty input { font-size: 15px !important; }
.od-cell small { grid-column: 2; font-size: 11px; color: var(--muted); }
.od-cell small.err { color: var(--danger); }
.od-total { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); margin-inline: -16px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20, 30, 50, .06); }
.od-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.od-total-row b { font-size: 20px; color: var(--ink); }
.od-total .btn { height: 52px; font-size: 17px; justify-content: center; }
.od-form { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.od-field { display: grid; gap: 8px; }
.od-field > label, .od-field > .od-flabel { font-size: 14px; font-weight: 700; }
.od-field small { font-size: 12px; color: var(--muted); }
.od-field input, .od-field textarea { width: 100%; font-size: 16px; }
.od-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.od-chips label { position: relative; }
.od-chips input { position: absolute; opacity: 0; pointer-events: none; }
.od-chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--surface); }
.od-chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; }
.od-chips input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.od-known { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; }
.od-known b { display: block; font-size: 15px; }
.od-pin { max-width: 160px; letter-spacing: .4em; text-align: center; font-size: 20px !important; }
.od-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fdecea; color: var(--danger); font-size: 14px; }
.od-msg ul { margin: 6px 0 0; padding-left: 18px; }
.od-sumlist { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.od-sumlist div { display: flex; justify-content: space-between; gap: 10px; }
.od-done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.od-done .no { font-size: 40px; font-weight: 800; letter-spacing: .02em; }
.od-done p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.od-done-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- A-08 주문 관리 (F-24) ---------- */
.adm-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 2px; }
.head-nav a.on .adm-badge { background: #fff; color: var(--sale); }
.ao-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ao-tab { flex: none; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; color: var(--ink); }
.ao-tab b { margin-left: 4px; color: var(--muted); font-weight: 600; }
.ao-tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ao-tab[aria-selected="true"] b { color: #fff; }
.ao-search { width: 100%; font-size: 16px; }
.ao-list { display: grid; gap: 10px; }
.ao-card { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ao-card:hover { border-color: var(--ink); }
.ao-card.new { border-color: var(--sale); box-shadow: inset 4px 0 0 var(--sale); }
.ao-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ao-card-top time { margin-left: auto; font-size: 13px; color: var(--muted); }
.ao-no { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.ao-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: middle; }
.ao-st.received { background: #e7f0ff; color: #1d4ed8; }
.ao-st.shipped { background: #e6f4ea; color: #1e7b34; }
.ao-st.canceled { background: #eee; color: #777; }
.ao-new { padding: 1px 7px; border-radius: 4px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 800; }
.ao-nth { font-size: 12px; color: var(--muted); padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }
.ao-nth.first { color: #9a5b00; border-color: #f1d49b; background: #fff8e8; }
.ao-card-mid { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; color: var(--muted); }
.ao-card-mid b { color: var(--ink); font-size: 15px; }
.ao-card-bot { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--muted); }
.ao-card-bot b { font-size: 16px; color: var(--ink); }
.ao-back { font-size: 14px; color: var(--muted); text-decoration: none; justify-self: start; }
.ao-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ao-head h1 { margin: 2px 0 0; font-size: 30px; display: flex; align-items: center; gap: 10px; }
.ao-head-actions { display: flex; gap: 6px; }
.ao-label { display: block; font-size: 12px; color: var(--muted); }
.ao-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.ao-cust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.ao-cust > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ao-cust .ao-label { flex-basis: 100%; }
.ao-shop { font-size: 17px; font-weight: 800; color: var(--navy); text-decoration: none; }
.ao-memo { grid-column: 1 / -1; padding: 10px 12px; border-radius: 8px; background: #fff8e8; }
.ao-memo p { margin: 0; white-space: pre-wrap; flex-basis: 100%; }
.ao-items { display: grid; gap: 14px; }
.ao-items-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ao-items-head h2, .ao-h2 { margin: 0; font-size: 17px; }
.ao-items-head small { color: var(--muted); font-size: 12px; }
.ao-prod { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ao-prod-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.ao-prod-head b { font-size: 16px; }
.ao-prod-head a { font-size: 12px; color: var(--muted); }
.ao-sale { padding: 0 6px; border-radius: 4px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; }
.ao-price { color: var(--muted); }
.ao-color { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: start; }
.ao-cname { font-weight: 700; font-size: 14px; padding-top: 8px; }
.ao-sizes { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ao-cell { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; }
.ao-cell.less { background: #fdecea; }
.ao-cell.less .ao-shipq, .ao-cell.less input { color: var(--danger) !important; }
.ao-cell.changed { outline: 2px dashed var(--navy); outline-offset: 1px; }
.ao-sz { font-weight: 800; width: 22px; }
.ao-req { font-size: 13px; color: var(--muted); }
.ao-q { grid-template-columns: 36px 52px 36px; height: 38px; }
.ao-q input { font-size: 15px !important; }
.ao-shipq { font-size: 17px; min-width: 24px; text-align: center; }
.ao-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 14px; color: var(--muted); }
.ao-total b { font-size: 18px; color: var(--ink); }
.ao-err { padding: 10px 14px; border-radius: 10px; background: #fdecea; color: var(--danger); font-size: 14px; }
.ao-err ul { margin: 6px 0 0; padding-left: 18px; }
.ao-save { display: flex; gap: 8px; }
.ao-save .btn { height: 46px; }
.ao-admin { display: grid; gap: 14px; }
.ao-admin .btn { justify-self: start; }
.ao-status { display: flex; flex-wrap: wrap; gap: 10px; }
.ao-status .btn { height: 50px; padding: 0 22px; font-size: 16px; }
.ao-cancel { color: var(--danger) !important; border-color: #f0c4bf !important; }
.ao-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ao-stats > div { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ao-stats span, .ao-stats small { font-size: 12px; color: var(--muted); }
.ao-stats b { font-size: 20px; }
.ao-fav { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.ao-fav small { color: var(--muted); }
@media (max-width: 640px) {
  .ao-color { grid-template-columns: 1fr; }
  .ao-cname { padding-top: 0; }
  .ao-stats b { font-size: 16px; }
  .ao-head h1 { font-size: 24px; }
}
/* 출력: 주문서만 A4 한 장 */
.ao-print { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body[data-screen="A-08"] > *:not(.ao-print) { display: none !important; }
  body[data-screen="A-08"] .ao-print { display: block; color: #000; font-size: 11pt; }
  .ao-print h1 { font-size: 18pt; margin: 0 0 10px; display: flex; justify-content: space-between; }
  .ao-print table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
  .ao-print th, .ao-print td { border: 1px solid #999; padding: 4px 6px; text-align: left; font-size: 10pt; }
  .ao-print .ao-ptbl td:nth-child(n+3), .ao-print .ao-ptbl th:nth-child(n+3) { text-align: right; }
  .ao-print .ao-pinfo th { width: 15%; background: #f2f2f2; }
  .ao-print small { color: #666; }
  .ao-print tfoot td { font-weight: 700; }
  .ao-print p { margin: 6px 0; }
}

/* C-07 내 주문 (F-24) */
.my-link { color: inherit; text-decoration: none; white-space: nowrap; }
.my-link:hover, .my-link[aria-current] { color: var(--ink); }
.od-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.od-my { font-size: 14px; font-weight: 600; color: var(--navy); }
.my-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.my-steps span { position: relative; padding: 10px 0 0; border-top: 4px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.my-steps span.on { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.my-steps.canceled span.on.x { border-color: var(--muted); color: var(--muted); }
.my-store { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff8e8; }
.my-store p { margin: 2px 0 0; white-space: pre-wrap; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-info { display: grid; grid-template-columns: 80px 1fr; gap: 8px; font-size: 14px; }
.my-info span { color: var(--muted); }
.my-info p { margin: 0; white-space: pre-wrap; }
.my-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.my-actions .btn { height: 46px; gap: 6px; }
.my-actions #again { flex: 1 1 100%; height: 52px; font-size: 16px; justify-content: center; }
[data-theme="b"] .my-store, [data-theme="b"] .ao-memo { background: rgba(216, 194, 157, .12); }
.ao-tools { display: flex; gap: 8px; }
.ao-tools .ao-search { flex: 1; min-width: 0; }
.ao-tools .btn { flex: none; }
.ao-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 2px; font-size: 14px; }
.ao-seln { color: var(--navy); font-weight: 700; }
.ao-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: stretch; }
.ao-chk { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ao-chk input { width: 20px; height: 20px; }

/* C-02 주문 담기 v2: 색상 하나씩 → 선택한 상품 목록 */
.od-c[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 700; }
.od-c[aria-checked="true"] .od-sw { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.od-c.has { position: relative; }
.od-c.has::after { content: ''; position: absolute; top: 2px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sale); }
.od-cur { font-weight: 700; color: var(--ink); font-size: 14px; }
.od-hint-box { margin: 0; padding: 14px; border-radius: 10px; background: var(--tint); color: var(--muted); font-size: 14px; text-align: center; }
.od-qty.dis { opacity: .4; background: var(--tint); }
.od-qty button:disabled, .od-qty input:disabled { cursor: not-allowed; }
.od-row.out .od-sz { color: var(--muted); text-decoration: line-through; }
.od-row.out .od-hint { color: var(--muted); font-weight: 700; }
.od-row.bad .od-qty, .od-cell.bad .od-qty { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.od-picked { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.od-picked-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.od-picked-list { display: grid; gap: 10px; }
.od-pk { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.od-pk:first-child { padding-top: 0; border-top: 0; }
.od-pk-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.od-pk-head .od-sw { width: 26px; height: 26px; }
.od-pk-n { color: var(--muted); font-size: 13px; }
.od-pk-head .od-x { margin-left: auto; font-size: 18px; line-height: 1; padding: 4px 8px; }
.od-pk-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.od-picked .od-sum { margin-top: 2px; }

/* 고객 회원 (F-25): 로그인·회원가입·내 정보 */
.od-auth { max-width: 460px; }
.od-big { height: 52px; font-size: 16px; justify-content: center; }
.od-auth-alt { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.od-auth-alt a { color: var(--navy); font-weight: 700; }
.od-auth-note { display: block; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.5; }
.od-auth-lead { margin: 0; color: var(--muted); font-size: 14px; }
.od-pwchg { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 12px; }
.od-pwchg summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--navy); }
.od-pwchg[open] { gap: 14px; }
.od-login { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--tint); text-align: center; }
.od-login p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.od-login small { font-weight: 400; color: var(--muted); font-size: 13px; }
.od-login-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.od-login-btns .btn { height: 46px; justify-content: center; }
.me-link, .join-link { color: inherit; text-decoration: none; white-space: nowrap; }
.me-link:hover, .join-link:hover, .me-link[aria-current] { color: var(--ink); }
.ao-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ao-inline input { flex: 1 1 160px; min-width: 0; }
.ao-card.blocked { opacity: .65; }
.ao-tools select { flex: none; }

/* A-05 관리자 관리 */
.au-form { display: grid; gap: 14px; margin-bottom: 18px; }
.au-form h2 { margin: 0; font-size: 17px; }
.au-form h2 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.au-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.au-menus { display: flex; flex-wrap: wrap; gap: 6px; }
.au-list { display: grid; gap: 12px; }
.au-card { display: grid; gap: 12px; }
.au-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.au-head b { font-size: 16px; }
.au-head small { color: var(--muted); width: 100%; }
.pill.super_admin { background: var(--navy, #1f2a44); color: #fff; }
.pill.product_admin { background: var(--accent-soft); color: var(--accent); }
.au-edit { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.au-row { display: flex; gap: 8px; flex-wrap: wrap; }
.au-row input { flex: 1 1 180px; min-width: 0; }
@media (max-width: 720px) { .au-grid { grid-template-columns: 1fr; } }

/* A-01 정렬·최근 수정·우선 노출 (F-27) */
.plist th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.plist th.sortable:hover { color: var(--ink); }
.plist th.sortable::after { content: attr(data-arrow); margin-left: 3px; font-size: 10px; }
.plist th.sortable.on { color: var(--ink); }
@media (min-width: 761px) { .plist td.c-medit { display: none; } }
.plist td.c-date small { display: block; white-space: nowrap; }
.plist td.c-date .ed-who { color: var(--ink); font-weight: 600; }
.plist td.c-date .ed-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.prio-b { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--navy, #1f2a44); color: #fff; vertical-align: 1px; white-space: nowrap; }
@media (min-width: 761px) { .m-sort { display: none !important; } }
.m-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.m-sort select { flex: 1; height: 36px; }
#prPanel .rank-list { max-width: 720px; }

/* A-11 작업 이력 */
.wl-filter { display: grid; gap: 12px; margin-bottom: 14px; }
.wl-filter .toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wl-row input[type=search] { flex: 1 1 220px; min-width: 0; }
.wl-row select { flex: 0 1 180px; }
.wl-date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.wl-date input { width: 150px; }
.wl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wl-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px; display: grid; gap: 8px; }
.wl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.wl-meta time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.wl-kind { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--tint); font-weight: 600; }
.wl-kind.k-product_create { background: #e3f0e6; color: #23683a; }
.wl-kind.k-product_edit { background: var(--accent-soft); color: var(--accent); }
.wl-kind.k-product_delete { background: #f3e3de; color: var(--sale); }
.wl-kind.k-order { background: #fdf0d8; color: #8a5a00; }
.wl-kind.k-priority { background: var(--navy, #1f2a44); color: #fff; }
.wl-prod a { color: var(--ink); }
.wl-detail, .wl-detail pre { margin: 0; font: 13px/1.6 inherit; font-family: inherit; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
pre.wl-detail { background: var(--tint); border-radius: 6px; padding: 8px 10px; }
details.wl-detail { background: var(--tint); border-radius: 6px; padding: 8px 10px; }
details.wl-detail summary { list-style: none; cursor: pointer; }
details.wl-detail summary::-webkit-details-marker { display: none; }
details.wl-detail summary span { font-size: 12px; color: var(--accent); }
details.wl-detail[open] summary span { display: none; }
@media (max-width: 720px) { .wl-row select, .wl-date input { flex: 1 1 auto; width: auto; } }
