@charset "utf-8";
/* ==========================================================================
   HONEY MARKET — ADMIN (Back-office) / 1st Draft
   사용자 쇼핑몰(style.css)과 완전히 분리된 관리자 전용 스타일.
   브랜드 토큰(골드/웜그레이)은 공유하되, 밀도와 정보 가독성을 우선한다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — warm gold (쇼핑몰과 동일) */
  --gold-900: #5E4512;
  --gold-800: #7A5C1B;
  --gold-700: #96731F;
  --gold-600: #A8812C;   /* primary */
  --gold-500: #C09A40;
  --gold-400: #D8B96E;
  --gold-300: #E7D2A2;
  --gold-200: #F2E6CB;
  --gold-100: #F8F1E1;
  --gold-050: #FCF8EF;

  /* Neutral — warm grey */
  --ink:      #17150F;
  --ink-2:    #3D3931;
  --ink-3:    #6E685C;
  --ink-4:    #9A9488;
  --ink-5:    #B8B2A6;
  --line:     #E4E0D7;
  --line-2:   #EFECE5;
  --bg:       #FFFFFF;
  --bg-soft:  #F7F5F0;
  --bg-head:  #FBFAF7;

  /* Sidebar — 다크 웜블랙 (콘텐츠 영역과 명확히 분리) */
  --side-bg:    #191710;
  --side-bg-2:  #221F16;
  --side-line:  #302C21;
  --side-txt:   #A9A395;
  --side-txt-2: #6F6A5D;
  --side-on:    #FFFFFF;

  /* Semantic */
  --danger:   #D6452F;
  --danger-bg:#FCEEEB;
  --info:     #2F6FD6;
  --info-bg:  #EBF1FC;
  --ok:       #2E8B62;
  --ok-bg:    #EAF5F0;
  --warn:     #B0791A;
  --warn-bg:  #FBF2DF;
  --muted-bg: #F0EEE8;

  /* Layout */
  --side-w: 232px;
  --head-h: 58px;

  /* Radius / Elevation — 절제 */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(23, 21, 15, .05);
  --sh-2: 0 8px 28px rgba(23, 21, 15, .13);

  --ff: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --ff-num: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-soft);
  letter-spacing: -.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 1px; }
.blind {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   3. Shell — Sidebar + Header + Content
   -------------------------------------------------------------------------- */
.adm { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.side {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--side-w); background: var(--side-bg);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--side-line);
}
.side__brand {
  display: flex; align-items: center; gap: 9px;
  height: var(--head-h); padding: 0 18px; flex-shrink: 0;
  border-bottom: 1px solid var(--side-line);
}
.side__name { color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; }
/* 사이드바 축소(≤1080px) 시에만 노출되는 축약 워드마크 */
.side__abbr { display: none; color: var(--gold-400); font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.side__name em { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--gold-400); letter-spacing: .08em; }

.side__nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.side__nav::-webkit-scrollbar { width: 6px; }
.side__nav::-webkit-scrollbar-thumb { background: #35311f; border-radius: 3px; }
.side__group { margin-top: 16px; }
.side__group:first-child { margin-top: 2px; }
.side__label {
  padding: 0 10px 7px; font-size: 10.5px; font-weight: 700;
  color: var(--side-txt-2); letter-spacing: .09em; text-transform: uppercase;
}
.side__link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin-bottom: 1px; border-radius: var(--r-md);
  color: var(--side-txt); font-size: 13.5px; font-weight: 500;
  transition: background .13s, color .13s;
}
.side__link svg { flex-shrink: 0; opacity: .78; }
.side__link:hover { background: var(--side-bg-2); color: #E6E1D4; }
.side__link.is-on { background: var(--side-bg-2); color: var(--side-on); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold-500); }
.side__link.is-on svg { opacity: 1; color: var(--gold-400); }
.side__count {
  margin-left: auto; min-width: 19px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700;
  font-family: var(--ff-num);
}

.side__foot { padding: 12px 14px; border-top: 1px solid var(--side-line); flex-shrink: 0; }
.side__foot a { display: flex; align-items: center; gap: 8px; color: var(--side-txt-2); font-size: 12px; }
.side__foot a:hover { color: var(--gold-400); }

/* ---- Main ---- */
.main { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; }

.head {
  position: sticky; top: 0; z-index: 30;
  height: var(--head-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(6px);
  border-bottom: 1px solid var(--line);
}
.head__crumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-4); }
.head__crumb b { color: var(--ink-2); font-weight: 600; }
.head__spacer { flex: 1; }
.head__search {
  display: flex; align-items: center; gap: 7px; width: 268px;
  height: 34px; padding: 0 11px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink-4);
}
.head__search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 13px; color: var(--ink); }
.head__search input::placeholder { color: var(--ink-4); }
.head__search:focus-within { border-color: var(--gold-500); background: #fff; }
.head__icon {
  position: relative; width: 34px; height: 34px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--ink-3);
}
.head__icon:hover { background: var(--bg-soft); color: var(--ink); }
.head__icon em {
  position: absolute; top: 5px; right: 5px; width: 6px; height: 6px;
  background: var(--danger); border-radius: 50%; border: 1.5px solid #fff;
}
.head__me { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.head__avatar {
  width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--gold-100);
  color: var(--gold-800); font-size: 12px; font-weight: 700; border: 1px solid var(--gold-200);
}
.head__who { line-height: 1.25; }
.head__who b { display: block; font-size: 12.5px; font-weight: 600; }
.head__who span { display: block; font-size: 11px; color: var(--ink-4); }

.body { flex: 1; padding: 22px 24px 56px; }
.body__inner { max-width: 1440px; }

/* --------------------------------------------------------------------------
   4. Page head
   -------------------------------------------------------------------------- */
.phead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.phead__t { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.phead__d { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.phead__act { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .13s, border-color .13s, color .13s;
}
.btn:hover { background: var(--bg-soft); border-color: var(--ink-5); }
.btn--primary { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn--primary:hover { background: var(--gold-700); border-color: var(--gold-700); color: #fff; }
.btn--ghost { border-color: transparent; background: none; color: var(--ink-3); }
.btn--ghost:hover { background: var(--bg-soft); border-color: transparent; color: var(--ink); }
.btn--danger { color: var(--danger); border-color: #EBD5D0; background: #fff; }
.btn--danger:hover { background: var(--danger-bg); border-color: #E0B9B1; }
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn--lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* --------------------------------------------------------------------------
   6. Panel — 표/폼을 담는 기본 컨테이너 (카드 남발 대신 이것 하나로 통일)
   -------------------------------------------------------------------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.panel + .panel { margin-top: 16px; }
.panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
}
.panel__t { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.panel__c { font-size: 12px; color: var(--ink-4); font-family: var(--ff-num); }
.panel__act { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.panel__body { padding: 16px; }
.panel__foot { padding: 12px 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------------------
   7. Stat row — 대시보드 KPI (개별 카드 대신 한 판 안의 셀 분할)
   -------------------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.stat { padding: 15px 17px 16px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat:nth-child(4n) { border-right: 0; }
.stat:nth-last-child(-n+4) { border-bottom: 0; }
.stat__l { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.stat__l svg { color: var(--ink-4); }
.stat__v { margin-top: 7px; font-size: 24px; font-weight: 700; letter-spacing: -.045em; font-family: var(--ff-num); line-height: 1.1; }
.stat__v small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 2px; letter-spacing: -.01em; font-family: var(--ff); }
.stat__d { margin-top: 5px; font-size: 11.5px; color: var(--ink-4); display: flex; align-items: center; gap: 4px; }
.stat__d b { font-weight: 700; font-family: var(--ff-num); }
.stat__d.up b { color: var(--ok); }
.stat__d.down b { color: var(--danger); }
.stat--accent { background: var(--gold-050); }
.stat--accent .stat__v { color: var(--gold-800); }

/* --------------------------------------------------------------------------
   8. Filter bar
   -------------------------------------------------------------------------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.filter__grow { flex: 1; min-width: 0; }
.field {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-4);
}
.field:focus-within { border-color: var(--gold-500); }
.field input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; font-size: 13px; color: var(--ink); }
.field input::placeholder { color: var(--ink-4); }
.field--search { width: 260px; }
select.sel, .sel {
  height: 34px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E685C' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: 13px; color: var(--ink-2); appearance: none; cursor: pointer;
}
.sel:focus { border-color: var(--gold-500); outline: 0; }

.tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tabs button {
  padding: 11px 13px 10px; font-size: 13px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-on { color: var(--gold-700); border-bottom-color: var(--gold-600); }
.tabs button em { font-style: normal; margin-left: 4px; font-family: var(--ff-num); font-size: 12px; color: var(--ink-4); }
.tabs button.is-on em { color: var(--gold-600); }

/* --------------------------------------------------------------------------
   9. Table
   -------------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; }
.tbl { font-size: 13px; min-width: 880px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; vertical-align: middle; }
.tbl thead th {
  background: var(--bg-head); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.tbl tbody tr { border-bottom: 1px solid var(--line-2); }
.tbl tbody tr:last-child { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--gold-050); }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.num, .tbl th.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; }
.tbl .w-chk { width: 40px; }
.tbl .w-act { width: 96px; }
.tbl__link { font-weight: 600; color: var(--ink); }
.tbl__link:hover { color: var(--gold-700); text-decoration: underline; text-underline-offset: 2px; }
.tbl__sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-4); }
.tbl__empty { padding: 54px 20px; text-align: center; color: var(--ink-4); font-size: 13px; }

.thumb {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm);
  background: var(--bg-soft); border: 1px solid var(--line-2); object-fit: cover;
}
.cell-prd { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.cell-prd__n { font-weight: 600; line-height: 1.35; }

.chk { width: 15px; height: 15px; accent-color: var(--gold-600); cursor: pointer; }

/* --------------------------------------------------------------------------
   10. Badges / status
   -------------------------------------------------------------------------- */
.bdg {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 7px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--muted-bg); color: var(--ink-3);
}
.bdg--info   { background: var(--info-bg);   color: var(--info); }
.bdg--ok     { background: var(--ok-bg);     color: var(--ok); }
.bdg--warn   { background: var(--warn-bg);   color: var(--warn); }
.bdg--danger { background: var(--danger-bg); color: var(--danger); }
.bdg--gold   { background: var(--gold-100);  color: var(--gold-800); }
.bdg::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.bdg--plain::before { display: none; }

.dot-ok { color: var(--ok); }
.dot-danger { color: var(--danger); }

/* --------------------------------------------------------------------------
   11. Pagination
   -------------------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 14px; border-top: 1px solid var(--line-2); }
.pager a, .pager span {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--ink-3); font-family: var(--ff-num);
}
.pager a:hover { background: var(--bg-soft); color: var(--ink); }
.pager .is-on { background: var(--gold-600); color: #fff; font-weight: 700; }
.pager .nav { color: var(--ink-4); }

/* --------------------------------------------------------------------------
   12. Form (상품 등록/수정)
   -------------------------------------------------------------------------- */
.form-row { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); }
.form-row:last-child { border-bottom: 0; }
.form-row__l {
  width: 168px; flex-shrink: 0; padding: 15px 16px;
  background: var(--bg-head); border-right: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.form-row__l .req { color: var(--danger); margin-left: 2px; }
.form-row__c { flex: 1; min-width: 0; padding: 12px 16px; }
.form-help { margin-top: 6px; font-size: 11.5px; color: var(--ink-4); }

.inp {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  font-size: 13.5px; color: var(--ink);
}
.inp::placeholder { color: var(--ink-4); }
.inp:focus { border-color: var(--gold-500); outline: 0; }
textarea.inp { height: auto; min-height: 116px; padding: 10px 11px; line-height: 1.6; resize: vertical; }
.inp--sm { max-width: 200px; }
.inp--md { max-width: 400px; }

.inp-unit { display: inline-flex; align-items: center; gap: 7px; }
.inp-unit .inp { width: 168px; text-align: right; font-family: var(--ff-num); }
.inp-unit span { font-size: 13px; color: var(--ink-3); }

.radios, .checks { display: flex; flex-wrap: wrap; gap: 7px; }
.radios label, .checks label {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--r-md); font-size: 13px; color: var(--ink-2); cursor: pointer; background: #fff;
}
.radios input, .checks input { accent-color: var(--gold-600); }
.radios label:has(input:checked), .checks label:has(input:checked) {
  border-color: var(--gold-600); background: var(--gold-050); color: var(--gold-800); font-weight: 600;
}

.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.up-box {
  width: 104px; height: 104px; border-radius: var(--r-md);
  border: 1px dashed var(--line); background: var(--bg-soft);
  display: grid; place-items: center; align-content: center; gap: 5px;
  color: var(--ink-4); font-size: 11.5px; cursor: pointer;
}
.up-box:hover { border-color: var(--gold-500); color: var(--gold-700); background: var(--gold-050); }
.up-thumb {
  position: relative; width: 104px; height: 104px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden;
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb__x {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  background: rgba(23,21,15,.62); color: #fff;
}
.up-thumb__x:hover { background: var(--danger); }
.up-thumb__tag {
  position: absolute; left: 0; bottom: 0; padding: 2px 6px;
  background: var(--gold-600); color: #fff; font-size: 10px; font-weight: 700;
}

.form-actions { display: flex; justify-content: center; gap: 8px; padding: 18px; }

/* --------------------------------------------------------------------------
   13. Definition list (주문/회원 상세)
   -------------------------------------------------------------------------- */
.dl { display: grid; grid-template-columns: 108px 1fr; }
.dl dt, .dl dd { padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.dl dt { color: var(--ink-3); font-weight: 500; }
.dl dd { color: var(--ink); font-weight: 500; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split--3 { grid-template-columns: 1fr 1fr 1fr; }
.split--main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

/* --------------------------------------------------------------------------
   14. Timeline / 최근 활동
   -------------------------------------------------------------------------- */
.feed { padding: 4px 0; }
.feed li { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed__i {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-3);
}
.feed__i.i-ok { background: var(--ok-bg); color: var(--ok); }
.feed__i.i-warn { background: var(--warn-bg); color: var(--warn); }
.feed__i.i-danger { background: var(--danger-bg); color: var(--danger); }
.feed__i.i-info { background: var(--info-bg); color: var(--info); }
.feed__b { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.feed__b b { font-weight: 600; }
.feed__t { margin-top: 2px; font-size: 11.5px; color: var(--ink-4); font-family: var(--ff-num); }

/* --------------------------------------------------------------------------
   15. Bar chart (더미 차트 — 라이브러리 없이 순수 CSS)
   -------------------------------------------------------------------------- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding: 16px 16px 0; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart__bar { width: 100%; max-width: 34px; background: var(--gold-200); border-radius: var(--r-xs) var(--r-xs) 0 0; position: relative; transition: background .15s; }
.chart__col:hover .chart__bar { background: var(--gold-500); }
.chart__col:last-child .chart__bar { background: var(--gold-600); }
.chart__v { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); font-family: var(--ff-num); white-space: nowrap; }
.chart__x { font-size: 11.5px; color: var(--ink-4); padding-bottom: 12px; }

/* --------------------------------------------------------------------------
   16. Modal (주문 상세 / 문의 답변)
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal__dim { position: absolute; inset: 0; background: rgba(23,21,15,.42); }
.modal__box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 40px)); max-height: calc(100vh - 60px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-2); overflow: hidden;
}
.modal__head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal__t { font-size: 15px; font-weight: 700; }
.modal__x { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-3); }
.modal__x:hover { background: var(--bg-soft); color: var(--ink); }
.modal__body { padding: 18px; overflow-y: auto; }
.modal__foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.sec-t { font-size: 13px; font-weight: 700; margin-bottom: 9px; color: var(--ink-2); }
.sec + .sec { margin-top: 20px; }
.qa {
  padding: 13px 15px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line-2); font-size: 13px; line-height: 1.65;
}
.qa + .qa { margin-top: 8px; }
.qa--admin { background: var(--gold-050); border-color: var(--gold-200); }
.qa__m { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font-size: 11.5px; color: var(--ink-4); }
.qa__m b { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   17. Login
   -------------------------------------------------------------------------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: var(--side-bg);
  background-image:
    radial-gradient(900px 460px at 50% -8%, rgba(168,129,44,.20), transparent 62%),
    linear-gradient(180deg, #1D1A12 0%, #141209 100%);
}
.login__box { width: 100%; max-width: 396px; }
.login__brand { text-align: center; margin-bottom: 26px; }
.login__t { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.login__d { margin-top: 6px; font-size: 12.5px; color: var(--side-txt); }
.login__d b { color: var(--gold-400); font-weight: 600; }

.login__card { background: #fff; border-radius: 6px; padding: 26px 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.34); }
.login__f { margin-bottom: 13px; }
.login__f label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.login__f .inp { height: 42px; font-size: 14px; }
.login__opt { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 17px; font-size: 12.5px; }
.login__opt label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.login__opt a { color: var(--ink-4); }
.login__opt a:hover { color: var(--gold-700); text-decoration: underline; }
.login__note {
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-4); line-height: 1.65; text-align: center;
}
.login__foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: var(--side-txt-2); }
.login__foot a { color: var(--side-txt); text-decoration: underline; text-underline-offset: 2px; }

.notice-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 15px;
  padding: 10px 13px; border-radius: var(--r-md);
  background: var(--gold-050); border: 1px solid var(--gold-200);
  font-size: 12px; color: var(--gold-800); line-height: 1.5;
}
.notice-bar svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   18. Category manager
   -------------------------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 16px; }
.cat-list li { border-bottom: 1px solid var(--line-2); }
.cat-list li:last-child { border-bottom: 0; }
.cat-row { display: flex; align-items: center; gap: 9px; padding: 11px 14px; cursor: pointer; }
.cat-row:hover { background: var(--bg-soft); }
.cat-row.is-on { background: var(--gold-050); box-shadow: inset 2px 0 0 var(--gold-600); }
.cat-row__h { color: var(--ink-5); cursor: grab; display: grid; place-items: center; }
.cat-row__n { flex: 1; font-size: 13.5px; font-weight: 600; }
.cat-row__c { font-size: 11.5px; color: var(--ink-4); font-family: var(--ff-num); }
.sub-list li { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.sub-list li:last-child { border-bottom: 0; }
.sub-list .ord { width: 22px; text-align: center; font-size: 11.5px; color: var(--ink-4); font-family: var(--ff-num); }
.sub-list .nm { flex: 1; }
.icon-btn { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-4); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.del:hover { background: var(--danger-bg); color: var(--danger); }

/* --------------------------------------------------------------------------
   18-2. Banner manager — 편집 폼 + 실시간 미리보기
   -------------------------------------------------------------------------- */
.bnr-live { position: sticky; top: calc(var(--head-h) + 18px); }
.bnr-stage { padding: 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line-2); }
.bnr-note { padding: 10px 16px; font-size: 11.5px; color: var(--ink-4); line-height: 1.6; }

/* 실제 쇼핑몰 히어로 배너의 축소 재현 */
.bnr {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  min-height: 208px; padding: 26px 24px;
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line);
}
.bnr--gold  { background: linear-gradient(180deg, var(--gold-100), var(--gold-050)); color: var(--ink); border-color: var(--gold-200); }
.bnr--dark  { background: var(--side-bg); color: #fff; border-color: #2A2619; }
.bnr--light { background: #fff; color: var(--ink); }
.bnr--center { flex-direction: column; text-align: center; justify-content: center; }
.bnr--center .bnr__visual { display: none; }

.bnr__copy { flex: 1; min-width: 0; }
.bnr__eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700);
}
.bnr--dark .bnr__eyebrow { color: var(--gold-400); }
.bnr__title { margin-top: 8px; font-size: 21px; font-weight: 700; letter-spacing: -.035em; line-height: 1.3; }
.bnr__desc { margin-top: 8px; font-size: 12.5px; line-height: 1.6; opacity: .82; }
.bnr__cta { margin-top: 15px; display: flex; gap: 7px; flex-wrap: wrap; }
.bnr--center .bnr__cta { justify-content: center; }
.bnr__btn {
  display: inline-flex; align-items: center; height: 32px; padding: 0 15px;
  border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600;
  background: var(--gold-600); color: #fff; border: 1px solid var(--gold-600);
}
.bnr__btn--line { background: transparent; color: inherit; border-color: currentColor; opacity: .75; }
.bnr__visual { width: 152px; flex-shrink: 0; }
.bnr__visual img { width: 100%; border-radius: var(--r-sm); }
.bnr__empty { color: var(--ink-4); font-size: 12.5px; }

.bnr-row { display: flex; align-items: center; gap: 10px; }
.bnr-thumb {
  width: 62px; height: 38px; border-radius: var(--r-sm); object-fit: cover;
  background: var(--bg-soft); border: 1px solid var(--line-2);
}
.swatches { display: flex; gap: 7px; }
.swatch {
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line);
  cursor: pointer; position: relative;
}
.swatch.is-on { border-color: var(--gold-600); box-shadow: 0 0 0 2px var(--gold-200); }
.swatch--gold  { background: linear-gradient(180deg, var(--gold-200), var(--gold-100)); }
.swatch--dark  { background: var(--side-bg); }
.swatch--light { background: #fff; }

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-end { margin-left: auto; }

/* --------------------------------------------------------------------------
   20. Responsive — PC 우선, 좁은 화면은 사이드바 축소
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .split--main { grid-template-columns: minmax(0, 1fr); }
  .split--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  :root { --side-w: 60px; }
  .side__name, .side__label, .side__link span, .side__count, .side__foot a span { display: none; }
  .side__abbr { display: block; }
  .side__brand { justify-content: center; padding: 0; }
  .side__link { justify-content: center; padding: 11px 0; }
  .side__foot { display: flex; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(4n) { border-right: 1px solid var(--line-2); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-2); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .split, .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .head__search { width: 180px; }
}
@media (max-width: 768px) {
  .body { padding: 16px 14px 44px; }
  .head { padding: 0 14px; }
  .head__search, .head__who { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line-2) !important; }
  .stat:last-child { border-bottom: 0 !important; }
  .form-row { flex-direction: column; }
  .form-row__l { width: 100%; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 10px 14px; }
  .phead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .phead__act { margin-left: 0; width: 100%; }
}

/* ---- 서버 연동 (2026-10) ---- */
.side__count[hidden], .head__icon em[hidden] { display: none; }
.side__soon {
  margin-left: auto; padding: 1px 6px; border-radius: var(--r-pill);
  border: 1px solid var(--side-line); color: var(--side-txt-2); font-size: 10px; font-style: normal; white-space: nowrap;
}
@media (max-width: 1080px) { .side__soon { display: none; } }
/* 준비 중(서버 미연동) 영역 */
.soon-box { position: relative; opacity: .55; pointer-events: none; }
.soon-tag {
  display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 7px;
  border-radius: var(--r-pill); background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink-4); font-size: 11px; font-weight: 500; vertical-align: middle;
}
.is-loading { opacity: .5; pointer-events: none; }
.stat--alert { box-shadow: inset 0 -3px 0 var(--warn); }
.stat--alert .stat__v { color: var(--warn); }
.login__err { margin: 0 0 12px; padding: 9px 12px; border-radius: var(--r-md); background: var(--danger-bg); color: var(--danger); font-size: 12.5px; }
.login__err[hidden] { display: none; }
.feed__t { display: block; }   /* 시안에서 줄바꿈이 안 되던 것 */
