/* 브라이트비드 공구 — 공통 스타일 (화이트 바탕 + 비비드 버튼 + Pretendard 고딕체)
   .t = 텍스트 빈칸(회색 막대), .img = 이미지 빈칸, .btn-add / .btn-del = 추가·삭제 */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --ink: #111318;
  --ink-2: #3a3f4c;
  --ink-3: #6e7481;
  --line: #e8ebf0;
  --skel: #eef0f4;
  --skel-2: #e0e4ea;
  --accent: #2e5bff;          /* 비비드 블루: 글자·링크·보조 버튼 */
  --accent-strong: #1d44e0;
  --accent-soft: #eaf0ff;
  --on-accent: #ffffff;
  --neon: #39ff14;            /* 네온 그린: 메인 버튼·브랜드 포인트 (파비콘과 같은 색) */
  --neon-strong: #2ee60f;
  --neon-soft: #eaffe4;
  --on-neon: #0a0a0a;
  --pink: #ff2e88;            /* 비비드 핑크: 찜·배지·강조 버튼 */
  --pink-strong: #e8166f;
  --pink-soft: #ffe9f3;
  --yellow: #ffd60a;
  --danger: #f0284a;
  --danger-soft: #ffebee;
  --ok: #00a656;
  --ok-soft: #e3f8ec;
  --warn: #c27803;
  --warn-soft: #fff4d6;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --sh: 0 1px 2px rgba(17, 19, 24, .04), 0 8px 24px rgba(17, 19, 24, .06);
  --sh-lg: 0 2px 6px rgba(17, 19, 24, .06), 0 24px 60px rgba(17, 19, 24, .12);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 800 15px/1.6 var(--font); }   /* 기본 굵기 800 (요청: 전체를 굵게) · 글꼴 Pretendard */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- 빈칸 ---------- */
.t { display: inline-block; width: var(--w, 7em); max-width: 100%; height: .72em; border-radius: 99px; background: var(--skel); vertical-align: middle; }
.t:not(:empty) { width: auto !important; height: auto !important; background: none !important; border-radius: 0; }   /* 글자가 들어오면 어떤 빈칸 스타일보다 우선해서 막대를 지운다 */
.lines .t { display: block; margin: .55em 0; }
.lines .t:first-child { margin-top: .2em; }
.on-dark .t, .btn.primary .t, .chip.on .t, .badge.solid .t { background: color-mix(in srgb, currentColor 34%, transparent); }
.t.dim { background: var(--skel-2); }
.num { display: inline-block; width: var(--w, 3.2em); height: .8em; border-radius: 8px; background: var(--skel-2); vertical-align: middle; }

.img { position: relative; display: grid; place-items: center; aspect-ratio: var(--ar, 1); width: 100%; overflow: hidden;
  background: var(--surface-2); border: 1.5px dashed var(--skel-2); border-radius: var(--r); color: var(--ink-3); }
.img svg { width: clamp(20px, 18%, 40px); height: auto; opacity: .7; }
.img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img.round { border-radius: 50%; }


/* 구역 이름표 (템플릿 확인용, 하단 도구막대에서 끄고 켬) */
.anno { display: none; }
body.anno-on .anno { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 3px 9px 3px 7px;
  font: 800 11px/1.4 var(--font); letter-spacing: .02em; color: var(--accent);
  background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 6px; }
body.anno-on .anno::before { content: "§"; opacity: .7; }

/* ---------- 아이콘 ---------- */
i[data-i] { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--skel-2); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn.primary { background: var(--neon); border-color: var(--neon); color: var(--on-neon); box-shadow: 0 6px 18px rgba(57, 255, 20, .35); }
.btn.primary:hover { background: var(--neon-strong); border-color: var(--neon-strong); }
.btn.blue { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(46, 91, 255, .28); }
.btn.blue:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.pink { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 0 6px 18px rgba(255, 46, 136, .28); }
.btn.pink:hover { background: var(--pink-strong); border-color: var(--pink-strong); }
.btn.blue .t, .btn.pink .t { background: rgba(255, 255, 255, .45); }
.btn.soft { background: var(--pink-soft); border-color: transparent; color: var(--pink-strong); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn .t { --w: 4.5em; }

.btn-add { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn-add:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); border-color: transparent; }
.btn-del { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-del:hover { background: color-mix(in srgb, var(--danger-soft) 75%, var(--danger) 14%); border-color: transparent; }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn.del:hover { color: var(--danger); background: var(--danger-soft); border-color: transparent; }

/* 카드 위에 얹는 삭제 버튼 */
.card-del { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 8px;
  border: 0; border-radius: 99px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--danger);
  font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); backdrop-filter: blur(6px); }
.card-del:hover { background: var(--danger); color: #fff; }
.card-del i[data-i] { width: 14px; height: 14px; }

/* 추가 타일 */
.add-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 100%;
  padding: 24px; border: 2px dashed var(--skel-2); border-radius: var(--r-lg); background: transparent; color: var(--accent);
  font-weight: 800; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.add-tile:hover { border-color: var(--accent); background: var(--accent-soft); }
.add-tile .plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); }
.add-tile:hover .plus { background: var(--surface); }
.add-tile .plus i[data-i] { width: 24px; height: 24px; }

/* ---------- 칩·배지 ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 800; cursor: pointer; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .t { --w: 3.2em; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800;
  background: var(--surface-2); color: var(--ink-2); }
.badge .t { --w: 2.6em; height: .6em; }
.badge.solid { background: var(--pink); color: #fff; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.ok .t, .badge.warn .t, .badge.danger .t, .badge.accent .t { background: color-mix(in srgb, currentColor 30%, transparent); }

/* ---------- 헤더 ---------- */
header.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-right: auto; }
.logo .img { width: 34px; height: 34px; border-radius: 10px; --ar: 1; }
.logo .img svg { width: 16px; }
.logo .t { --w: 6.5em; height: .8em; background: var(--skel-2); }
.logo small .t { --w: 4em; height: .6em; }
.top-nav { display: flex; gap: 6px; align-items: center; }

/* ---------- 공통 섹션 ---------- */
section.block { padding: 56px 0 8px; }
section.block#seller { padding-top: 112px; }   /* 전체 상품과 셀러 섹션 사이를 넓게 */
@media (max-width: 720px) { section.block#seller { padding-top: 80px; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.sec-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--neon); }
.sec-title .t { --w: 7em; height: .8em; background: var(--skel-2); }
.sec-sub { margin-top: 6px; color: var(--ink-2); }
.sec-sub .t { --w: 16em; }
.sec-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }

/* ---------- 히어로 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 16px; }
.hero .eyebrow .t { --w: 11em; height: .66em; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.hero h1 { margin: 18px 0 18px; font-size: 44px; line-height: 1.25; letter-spacing: -.02em; }
.hero h1 .t { display: block; height: .62em; margin: .3em 0; background: var(--skel-2); }
.hero .lead { color: var(--ink-2); font-size: 16px; max-width: 34em; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 24px; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--neon); color: var(--on-neon); font-size: 12px; }
.step .t { --w: 5em; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-art { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.hero-art > :first-child { grid-row: span 2; }
.best-card { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); transition: transform .15s, box-shadow .15s; }
.best-card:not(.skel-best):hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--neon), var(--sh-lg); }
.best-card .img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; border: 0; }
.best-card.skel-best .img { border: 1.5px dashed var(--skel-2); border-radius: var(--r-lg); }
.best-rank { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 12px; border-radius: 99px; background: var(--neon); color: var(--on-neon); font-size: 12px; font-weight: 900; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.hero-art > :first-child .best-rank { font-size: 14px; padding: 8px 14px; }
.best-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(10, 12, 18, .72)); color: #fff; }
.best-info small { font-size: 11px; font-weight: 800; opacity: .85; }
.best-info b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-art > :first-child .best-info b { font-size: 17px; }
.best-info span { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.best-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: right; }

/* ---------- 브랜드 카드 ---------- */
.grid { display: grid; gap: 16px; }
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.brand-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.brand-card .img.cover { --ar: 4 / 3; border-radius: 0; border: 0; border-bottom: 1px dashed var(--skel-2); }
.brand-card .logo-dot { position: absolute; top: calc(75% * 1 - 0px); }
.brand-card .body { position: relative; padding: 36px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.brand-card .body .img.round { position: absolute; top: -28px; left: 18px; width: 56px; height: 56px; border: 3px solid var(--surface); background: var(--surface-2); box-shadow: var(--sh); }
.brand-card .body .img.round svg { width: 20px; }
.brand-card h3 { font-size: 18px; }
.brand-card h3 .t { --w: 6em; height: .78em; background: var(--skel-2); }
.brand-card .meta { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; }

/* ---------- 상품 카드 ---------- */
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 데스크톱 4열 */
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-card { display: flex; flex-direction: column; padding: 10px; gap: 10px; transition: transform .15s, box-shadow .15s; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.p-card .media { position: relative; }
.p-card .media .img { --ar: 1; border-radius: 12px; }
.p-card .wish, .wish-float { position: absolute; top: 8px; right: 8px; z-index: 2; }
.wish { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink-2); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.wish[aria-pressed="true"] { color: var(--pink); }
.wish[aria-pressed="true"] svg path { fill: currentColor; }
.p-card .media .badges { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 4px; }
.p-card .info { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 4px; }
.p-card .brand .t { --w: 4em; height: .62em; }
.p-card .name .t { display: block; margin: .45em 0; }
.p-card .price { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 800; }
.p-card .price .num { --w: 4.6em; height: .9em; background: var(--skel-2); }
.p-card .price .t { --w: 2.2em; height: .6em; }
.p-card .p-desc { margin-top: 2px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.p-card .p-desc .t:not(:empty) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
body.edit .p-card .p-desc .t:not(:empty) { -webkit-line-clamp: unset; }

.filters { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.select { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; cursor: pointer; }
.select .t { --w: 4.5em; }

/* ---------- 셀러 섹션 ---------- */
.seller-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; align-items: start; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.benefit { padding: 20px; }
.benefit .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.benefit .ico i[data-i] { width: 22px; height: 22px; }
.benefit h4 .t { --w: 5.5em; height: .75em; background: var(--skel-2); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li { list-style: none; position: relative; padding: 14px 16px 14px 0; }
.flow li::before { counter-increment: f; content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 29px; left: 38px; right: 8px; border-top: 2px dashed var(--skel-2); }
.flow { padding: 0; margin: 0; }

.form-card { padding: 26px; }
.form-card h3 { font-size: 18px; margin-bottom: 4px; }
.form-card h3 .t { --w: 8em; height: .8em; background: var(--skel-2); }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.field label { font-size: 13px; font-weight: 800; }
.field label .t { --w: 5em; height: .66em; }
.field label .req { color: var(--danger); margin-left: 2px; }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); outline: none; transition: border-color .15s, background .15s; }
.input:focus { border-color: var(--accent); background: var(--surface); }
textarea.input { min-height: 96px; padding: 12px 14px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.seg button.on { background: var(--surface); box-shadow: var(--sh); }
.seg .t { --w: 3.5em; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.check .t { --w: 14em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 관리자 섹션 (메인 페이지 안) ---------- */
.admin-sec { background: #16171a; color: #f1f1f2; border-radius: 28px; padding: 32px; border: 1px solid #26282d; }
.admin-sec .t { background: rgba(255, 255, 255, .14); }
.admin-sec .num { background: rgba(255, 255, 255, .22); }
.admin-sec .sec-title::before { background: var(--neon); }
.admin-sec .sec-title .t { background: rgba(255, 255, 255, .24); }
.admin-sec .btn { background: #202226; border-color: #2e3036; color: #f1f1f2; }
.admin-sec .btn:hover { background: #2a2c31; }
.admin-sec .btn.primary { background: var(--neon); border-color: var(--neon); color: var(--on-neon); }
.admin-sec .btn-add { background: #1d2747; color: #a3b9ff; border-color: transparent; }
.admin-sec .btn-del { background: #3a1e20; color: #ff8a8a; border-color: transparent; }
.admin-sec .btn.primary .t, .admin-sec .btn-add .t { background: currentColor; opacity: .35; }
.admin-sec .badge.warn { background: #3a2d15; color: #f0b85a; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.admin-sec .kpi { background: #1e2024; border-color: #2a2c31; }
.kpi .label .t { --w: 4.5em; height: .62em; }
.kpi .val { display: block; margin: 12px 0 6px; }
.kpi .val .num { --w: 3.4em; height: 1.4em; border-radius: 10px; }
.kpi .delta { font-size: 12px; font-weight: 800; color: var(--ok); }
.kpi .delta .t { --w: 3em; height: .55em; background: color-mix(in srgb, currentColor 35%, transparent); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.admin-box { border-radius: 16px; background: #1e2024; border: 1px solid #2a2c31; padding: 18px; }
.admin-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.admin-box-head h4 .t { --w: 6em; height: .72em; background: rgba(255, 255, 255, .24); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #2a2c31; }
.list-row:first-of-type { border-top: 0; }
.list-row .avatar { width: 34px; height: 34px; border-radius: 50%; background: #2a2c31; flex: none; }
.list-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick .btn { justify-content: flex-start; min-height: 56px; }

/* ---------- 푸터·고정바 ---------- */
footer.site { margin-top: 72px; padding: 40px 0 120px; border-top: 1px solid var(--line); color: var(--ink-2); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
footer.site h5 { margin: 0 0 12px; }
footer.site h5 .t { --w: 4em; background: var(--skel-2); }
footer.site .lines .t { margin: .9em 0; }

.sticky-apply { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 20px; border-radius: 99px; background: var(--ink); color: var(--surface); box-shadow: var(--sh-lg); transition: transform .25s; }
.sticky-apply.on { transform: translate(-50%, 0); }
.sticky-apply .count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--neon); color: var(--on-neon); font-size: 12px; font-weight: 800; }
.sticky-apply .t { background: color-mix(in srgb, currentColor 30%, transparent); }
.sticky-apply .btn.primary .t { background: color-mix(in srgb, var(--on-accent) 35%, transparent); }

/* ---------- 다이얼로그·토스트 ---------- */
dialog { width: min(520px, 100% - 32px); max-height: calc(100% - 40px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--sh-lg); }
dialog::backdrop { background: rgba(10, 10, 14, .5); backdrop-filter: blur(3px); }
dialog .d-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
dialog .d-head h3 .t { --w: 8em; height: .8em; background: var(--skel-2); }
dialog .d-body { padding: 4px 22px 22px; }
dialog .d-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
dialog.wide { width: min(720px, 100% - 32px); }
.picked { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--surface-2); margin-top: 12px; }

/* 안 보일 때는 화면 위로 완전히 숨긴다 (그림자가 위쪽 가운데에 비치지 않게) */
.toast { position: fixed; left: 50%; top: 18px; z-index: 100; transform: translate(-50%, -200%); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 800; box-shadow: var(--sh-lg);
  visibility: hidden; opacity: 0; transition: transform .25s, opacity .2s, visibility 0s .25s; }
.toast.on { transform: translate(-50%, 0); visibility: visible; opacity: 1; transition: transform .25s, opacity .2s; }
.toast button { border: 0; background: rgba(255, 255, 255, .14); color: inherit; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 800; }
:root[data-theme="dark"] .toast button, .toast button { background: color-mix(in srgb, var(--surface) 18%, transparent); }

.removing { animation: out .22s ease forwards; }
@keyframes out { to { opacity: 0; transform: scale(.96); } }
.adding { animation: in .28s ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- 템플릿 도구막대 ---------- */
.devbar { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 14px; background: #101114; color: #e9e9ea; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 12px; max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none; }
.devbar::-webkit-scrollbar { display: none; }
.devbar b { padding: 0 8px; font: 800 10px/1 var(--font); letter-spacing: .08em; color: #7d9cff; }
.devbar a, .devbar button { flex: none; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; font-weight: 800; }
.devbar a:hover, .devbar button:hover { background: #24262b; }
.devbar a.cur { background: #2c3350; color: #c7d4ff; }
.devbar button[aria-pressed="true"] { background: #1d3a2c; color: #7ee2ad; }
.devbar .sep { flex: none; width: 1px; height: 18px; background: #2e3036; margin: 0 4px; }
.devbar.min > :not(.dev-toggle) { display: none; }

/* ---------- 브랜드·상품 상세 ---------- */
.subnav { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; align-items: center; height: 54px; overflow-x: auto; }
.subnav .back { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.subnav .back .t { background: color-mix(in srgb, var(--on-accent) 35%, transparent); }
.d-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 36px 0 8px; }
.d-hero h1 { margin: 12px 0 10px; font-size: 34px; }
.d-hero h1 .t { --w: 6em; height: .7em; background: var(--skel-2); }
.d-hero .one { font-size: 18px; font-weight: 800; }
.d-hero .one .t { --w: 18em; }
.gallery { display: grid; gap: 10px; }
.gallery .main { --ar: 1; border-radius: var(--r-lg); }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs .img { border-radius: 10px; }
.thumbs .add-tile { padding: 0; border-radius: 10px; aspect-ratio: 1; min-height: 0; gap: 2px; font-size: 11px; }
.thumbs .add-tile .plus { width: 26px; height: 26px; }
.thumbs .add-tile .plus i[data-i] { width: 14px; height: 14px; }
.thumb-item { position: relative; }
.thumb-item .x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); background: var(--danger); color: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.thumb-item .x i[data-i] { width: 11px; height: 11px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.facts div { padding: 14px 16px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt .t { --w: 3em; height: .6em; }
.facts dd { margin: 8px 0 0; }
.facts dd .t { --w: 6em; background: var(--skel-2); }
.price-big { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.price-big .num { --w: 6em; height: 1.4em; background: var(--skel-2); }
.price-big .t { --w: 4em; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 2px dashed var(--skel-2); cursor: pointer; }
.swatch.on { border: 2px solid var(--ink); }
.swatch .x { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; border: 2px solid var(--bg); display: none; place-items: center; padding: 0; cursor: pointer; }
.swatch:hover .x { display: grid; }
.swatch .x i[data-i] { width: 9px; height: 9px; }
.swatch-add { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; font-size: 13px; font-weight: 800; }
.label-row .t { --w: 4em; }

.usp-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.usp { padding: 22px; }
.usp-grid { counter-reset: usp; }
.usp .n { font: 800 13px/1 var(--font); color: var(--accent); }
.usp .n::before { counter-increment: usp; content: counter(usp, decimal-leading-zero); }
.usp h4 { margin: 12px 0 6px; }
.usp h4 .t { --w: 7em; height: .78em; background: var(--skel-2); }

.kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.kit .card { padding: 22px; }
.kit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.kit-head h4 .t { --w: 6em; height: .78em; background: var(--skel-2); }
.copybox { padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--skel-2); }
.sp-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.sp-row:first-of-type { border-top: 0; }
.sp-row .img { width: 52px; flex: none; border-radius: 10px; }
.sp-row .grow { flex: 1; min-width: 0; }
.video { --ar: 16 / 9; border-radius: var(--r-lg); }

.detail-imgs { display: grid; gap: 8px; max-width: 760px; margin: 0 auto; }
.detail-item { position: relative; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { padding: 14px 16px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; margin-bottom: -1px; }
.tabs button.on { border-color: var(--ink); }
.tabs button .t { --w: 4em; }
.tabs button.on .t { background: var(--skel-2); }
[data-panel][hidden] { display: none !important; }

.locked { position: relative; overflow: hidden; }
.locked .blur { filter: blur(6px); opacity: .6; pointer-events: none; }
.locked .lock-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: color-mix(in srgb, var(--surface) 55%, transparent); }
.lock-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--surface); }
.lock-ico i[data-i] { width: 22px; height: 22px; }

/* ---------- 셀러 전용 ---------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 0; }
.auth .card { width: min(420px, 100% - 32px); padding: 32px; }
.auth h2 { font-size: 24px; margin: 18px 0 8px; }
.auth h2 .t { --w: 6em; height: .75em; background: var(--skel-2); }
.pin { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pin input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font-size: 22px; font-weight: 800; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); outline: none; }
.pin input:focus { border-color: var(--accent); background: var(--surface); }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 0 20px; }
.s-head h1 { font-size: 28px; }
.s-head h1 .t { --w: 9em; height: .72em; background: var(--skel-2); }
.s-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.file .ext { display: grid; place-items: center; width: 40px; height: 48px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.file .dl { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl th { font-size: 12px; color: var(--ink-2); background: var(--surface-2); font-weight: 800; }
.tbl th .t { --w: 3.5em; height: .6em; background: var(--skel-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tbl tbody tr.sel { background: var(--accent-soft); }
.tbl .thumb { width: 44px; flex: none; border-radius: 10px; }
.tbl .thumb svg { width: 16px; }
.tbl .cell-main { display: flex; align-items: center; gap: 12px; }
.tbl .cell-main .stack { display: flex; flex-direction: column; gap: 7px; }
.tbl input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl td.r, .tbl th.r { text-align: right; }

.switch { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--skel-2); border: 0; cursor: pointer; transition: background .15s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { left: 19px; }

/* ---------- 관리자 페이지 ---------- */
body.adm { background: var(--bg); }
.adm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; background: #121316; color: #e6e6e8; border-right: 1px solid #222428; }
.adm-side .logo { padding: 4px 8px 18px; margin: 0; }
.adm-side .logo .img { background: #1f2125; border-color: #34363c; color: #8a8d94; }
.adm-side .t { background: rgba(255, 255, 255, .14); }
.adm-side .logo .t { background: rgba(255, 255, 255, .28); }
.adm-side .grp { margin: 14px 10px 6px; }
.adm-side .grp .t { --w: 3em; height: .55em; background: rgba(255, 255, 255, .1); }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #a9acb3; cursor: pointer; text-align: left; width: 100%; }
.side-link:hover { background: #1c1e22; color: #fff; }
.side-link.on { background: #232a44; color: #c7d4ff; }
.side-link.on .t { background: rgba(199, 212, 255, .35); }
.side-link .t { --w: 4.5em; }
.side-link .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.adm-side .foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #1a1c20; }
.adm-side .foot .avatar { width: 34px; height: 34px; border-radius: 50%; background: #2a2c31; }
.adm-main { min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); }
.adm-body { padding: 28px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.view-head h1 { font-size: 26px; }
.view-head h1 .t { --w: 6em; height: .72em; background: var(--skel-2); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .left, .toolbar .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bulk { display: none; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 800; }
.bulk.on { display: flex; }
.bulk .btn-del { background: #e5484d; color: #fff; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.chart span { flex: 1; border-radius: 8px 8px 0 0; background: linear-gradient(var(--accent-soft), color-mix(in srgb, var(--accent) 22%, var(--accent-soft))); }
.chart span:nth-child(odd) { background: var(--surface-2); border: 1px dashed var(--skel-2); border-bottom: 0; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.adm-card-head h3 .t { --w: 6em; height: .75em; background: var(--skel-2); }
.adm-list .list-row { border-color: var(--line); }
.adm-list .list-row .avatar { background: var(--surface-2); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); min-height: 360px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 6px; }
.kcol-head .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.kcard { position: relative; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh); display: flex; flex-direction: column; gap: 8px; }
.kcard .x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
.kcol .add-tile { min-height: 56px; padding: 10px; flex-direction: row; border-radius: 12px; }
.kcol .add-tile .plus { width: 28px; height: 28px; }
.kcol .add-tile .plus i[data-i] { width: 14px; height: 14px; }
.set-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.set-sec:first-child { border-top: 0; padding-top: 0; }
.set-sec h3 .t { --w: 6em; height: .75em; background: var(--skel-2); }
.repeat-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.repeat-row .input { flex: 1; }
.upload { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px dashed var(--skel-2); border-radius: 14px; background: var(--surface-2); }
.upload .img { width: 64px; flex: none; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 관리자 잠금 ---------- */
body.locked .adm-shell { display: none; }
[data-admin-only] { display: none; }
body.is-admin [data-admin-only] { display: block; }
.gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.gate .card { width: min(360px, 100%); padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gate h2 { font-size: 22px; margin-top: 8px; }
.gate p { color: var(--ink-2); font-size: 14px; }
.pin4 { grid-template-columns: repeat(4, 56px); justify-content: center; margin: 12px 0 4px; }
.gate-err { color: var(--danger) !important; font-weight: 800; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- DB 연결 후 공통 ---------- */
.t:not(:empty) { white-space: pre-line; overflow-wrap: anywhere; }
.btn .t:not(:empty), .logo .t:not(:empty), .chip .t:not(:empty), .badge .t:not(:empty), .step .t:not(:empty) { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 480px) { header.top .logo .t { display: none; } header.top .btn.sm { padding: 0 10px; } }   /* 좁은 화면은 로고 아이콘만, 셀러·관리자 입장 버튼이 잘리지 않게 */
.price-v:not(:empty) { font-weight: 800; }
.strike:not(:empty) { color: var(--ink-3); text-decoration: line-through; font-weight: 500; font-size: .85em; }
.price-big .price-v { font-size: 28px; }
.price-big .price-v:empty { --w: 6em; height: 1.1em; background: var(--skel-2); font-size: 22px; }
.num.filled { width: auto; height: auto; background: none; font-size: 28px; font-weight: 800; }
.badge[data-count]:empty { display: none; }
.muted { color: var(--ink-3); }
.img.has-img { border-style: solid; border-color: var(--line); background: var(--surface); }
a[aria-disabled="true"] { pointer-events: none; opacity: .55; }
body.edit a[aria-disabled="true"] { pointer-events: auto; }
.skel-item { pointer-events: none; }
.skel-item .card-del, .skel-item .wish { display: none; }
dialog.confirm { width: min(380px, 100% - 32px); }

/* 실제 브랜드·상품에서 비어 있는 칸은 손님에게 숨긴다 (편집 모드에서는 보여서 채울 수 있음) */
body:not(.edit) [data-rec] .t[data-f]:empty, body:not(.edit) [data-rec] .badge:has(> .t[data-f]:empty), [data-rec] .t[data-brand-name]:empty { display: none; }

/* 손님에게는 채워지지 않은 빈칸(회색 막대)·빈칸 카드를 보여 주지 않는다 */
body:not(.is-admin) .t:empty, body:not(.is-admin) .skel-item { display: none !important; }

/* 손님에게는 관리용 버튼을 숨긴다 */
body:not(.is-admin) :is(.card-del, .add-tile, .btn-add, .btn-del, .thumb-item .x, .swatch .x, .swatch-add, .chip-x, .admin-only) { display: none !important; }
body.is-admin .visitor-only { display: none !important; }
.url-edit { display: none; }
body.edit .url-edit { display: grid; gap: 6px; margin-top: 14px; padding: 12px 14px; border: 1.5px dashed var(--accent); border-radius: 12px; font-size: 12px; color: var(--accent); }
.url-edit label { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.url-edit .t { flex: 1; color: var(--ink); font-weight: 500; }
.chip .chip-x { width: 20px; height: 20px; border: 0; margin-right: -8px; }
.chip .chip-x i[data-i], .chip .chip-x svg { width: 11px; height: 11px; }
.chip { white-space: nowrap; }
.chip.cat-add { gap: 4px; color: var(--accent); background: var(--accent-soft); border-color: transparent; font-weight: 800; }
.chip.cat-add svg { width: 14px; height: 14px; }
.price-admin { border: 1.5px dashed var(--accent); }
.price-admin small { color: var(--ink-3); font-weight: 800; }
.price-admin .t { font-size: 18px; font-weight: 800; --w: 5em; }

/* 편집 모드 */
/* 채워진 글자는 마우스를 올렸을 때만 파란 테두리, 빈칸은 늘 점선으로 보여서 어디를 채울지 알 수 있게 */
body.edit [contenteditable="true"] { cursor: text; border-radius: 4px; outline: 2px solid transparent; outline-offset: 3px; }
body.edit [contenteditable="true"]:hover { outline-color: rgba(46, 91, 255, .45); }
body.edit [contenteditable="true"]:focus { outline-color: var(--accent); }
body.edit [contenteditable="true"]:empty { display: inline-block; min-width: 3em; min-height: .9em; outline: 1.5px dashed var(--accent); }
body.edit .img[data-ki], body.edit .img[data-fi] { cursor: copy; }
body.edit .img[data-ki]:hover, body.edit .img[data-fi]:hover { border-color: var(--accent); border-style: dashed; }
body.edit .img[data-ki]:hover::after, body.edit .img[data-fi]:hover::after { content: "사진 바꾸기"; position: absolute; inset: auto 8px 8px auto; padding: 4px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; }

/* 관리자 페이지 추가 */
.kpi .val b { font-size: 30px; font-weight: 800; }
.kpi .delta.muted { color: var(--ink-3); font-weight: 800; }
.chart .bar { position: relative; flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-soft))); border: 0; }
.chart .bar.zero { background: var(--surface-2); }
.chart .bar em { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font: 800 11px/1 var(--font); font-style: normal; color: var(--ink-2); }
.chart span:nth-child(odd) { border: 0; }
.chart-x { display: flex; gap: 10px; padding: 6px 4px 0; font-size: 11px; color: var(--ink-3); }
.chart-x span { flex: 1; text-align: center; white-space: nowrap; }
.empty { padding: 14px 0; font-size: 13px; text-align: center; }
.adm-list .list-row .grow { gap: 2px; }
.small-link { font-size: 12px; text-decoration: underline; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.memo-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.accent-text { color: var(--accent); font-weight: 800; }
.kcard b { font-size: 15px; padding-right: 30px; }
.kcard small a { color: inherit; }
.kmemo { font-size: 13px; color: var(--ink-2); white-space: pre-line; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.kfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.mini-select { min-height: 32px; width: auto; padding: 0 8px; font-size: 13px; }
.best-select.on { background: var(--neon); border-color: var(--neon); color: var(--on-neon); font-weight: 900; }
.chip.mini { min-height: 24px; padding: 0 9px; font-size: 12px; cursor: default; }
.kcol .kbox { display: flex; flex-direction: column; gap: 10px; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.up-grid .img { border-radius: 10px; }
.up-grid .add-tile { aspect-ratio: 1; padding: 0; gap: 2px; font-size: 11px; border-radius: 10px; min-height: 0; }
.up-grid .add-tile .plus { width: 28px; height: 28px; }
label.upload { cursor: pointer; }
.content-edit { min-height: 1.6em; padding: 4px 8px; border-radius: 8px; border: 1px dashed transparent; white-space: pre-line; }
.content-edit:hover, .content-edit:focus { border-color: var(--accent); outline: none; background: var(--surface-2); }
.adm-side .grp { font-size: 11px; font-weight: 800; color: #6b6e75; letter-spacing: .04em; }
select.input { padding-right: 10px; }
.sp-row .sp-copy { flex: none; }

/* ---------- 화사한 테마 포인트 ---------- */
.hero h1 { font-weight: 900; letter-spacing: -.03em; }
.hero h1 .t:not(:empty) { display: block; }
.hero .cta-row { margin-top: 26px; }
.hero .eyebrow .t:not(:empty) { color: var(--accent); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.logo .t:not(:empty) { font-weight: 900; letter-spacing: -.02em; }
.sec-title .t:not(:empty) { font-weight: 900; }
.benefit:nth-child(1) .ico { background: var(--neon-soft); color: #13a300; }
.benefit:nth-child(2) .ico { background: var(--pink-soft); color: var(--pink-strong); }
.benefit:nth-child(3) .ico { background: var(--accent-soft); color: var(--accent); }
.brand-card, .p-card { border-color: var(--line); }
.brand-card:hover, .p-card:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--neon), var(--sh-lg); }
.price-v:not(:empty) { color: var(--ink); }
.p-card .brand .t:not(:empty) { color: var(--accent); font-weight: 800; font-size: 12px; }
header.top { background: rgba(255, 255, 255, .88); }
.subnav { background: rgba(255, 255, 255, .92); }
.copybox { background: var(--neon-soft); border-color: rgba(57, 255, 20, .6); }
.sticky-apply { background: #111318; }

/* 관리자: 상세 페이지 관리 막대 · 카드 숨김 표시 */
.admin-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; padding: 12px 16px; border: 1.5px dashed var(--accent); border-radius: 14px; background: var(--accent-soft); font-size: 13px; }
.admin-panel b { color: var(--accent); }
.admin-panel label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.admin-panel .input { min-height: 34px; width: auto; padding: 0 10px; background: #fff; }
.admin-panel .input[type=number] { width: 80px; }
.admin-panel .grow { flex: 1; }
.card-vis { position: absolute; top: 10px; right: 54px; z-index: 3; height: 30px; padding: 0 10px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.brand-card .card-vis { right: 10px; }
.card-vis:hover { background: var(--ink); color: #fff; }
[data-rec].is-hidden { opacity: .55; }
[data-rec].is-hidden::before { content: "숨김 · 손님에게 안 보임"; position: absolute; left: 50%; top: 46px; transform: translateX(-50%); z-index: 4; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
body:not(.is-admin) .card-vis { display: none !important; }

/* 카카오 채널 버튼: 오른쪽 맨 아래 고정, 여백 넉넉히 (노란 알약 모양 + 아이콘 + 문구) */
.kakao-fab { position: fixed; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 8px;
  border-radius: 99px; background: #fee500; color: #3a1d1d; font-size: 15px; font-weight: 900; box-shadow: 0 10px 28px rgba(60, 40, 0, .28), 0 2px 6px rgba(0, 0, 0, .1); transition: transform .15s, bottom .25s; }
.kakao-fab:hover { transform: translateY(-2px); }
.kakao-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff7a8; }
.kakao-ico svg { width: 26px; height: 26px; }
.kakao-fab.unset { opacity: .92; }
body.sticky-on .kakao-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 720px) { .kakao-fab { right: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); height: 54px; padding: 0 6px; } .kakao-txt { display: none; } }

/* 셀러 등록 (메인 카드 + 업체·개인 등록 페이지) */
.join-card { display: flex; flex-direction: column; gap: 12px; }
.join-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.join-opt:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--neon), var(--sh); transform: translateY(-2px); }
.join-opt .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.join-opt b { font-size: 16px; font-weight: 900; }
.join-opt small { color: var(--ink-2); font-size: 13px; }
.join-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--neon); color: var(--on-neon); flex: none; }
.join-opt:nth-of-type(2) .join-ico { background: var(--accent); color: #fff; }
.join-opt:nth-of-type(3) .join-ico { background: var(--pink); color: #fff; }
.join-sub { font-size: 18px; font-weight: 900; margin: -4px 0 8px; }
.join-flow { margin: 18px 0 22px; }
.join-flow li { padding-bottom: 0; }
.join-ico i[data-i] { width: 22px; height: 22px; }
.join-go { font-size: 26px; color: var(--ink-3); }
.join-page { max-width: 640px; padding: 48px 0 24px; }
.join-page h1 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.join-lead { color: var(--ink-2); }
.join-switch { margin: 12px 0 22px; font-size: 14px; color: var(--ink-2); }
.join-switch a { color: var(--accent); font-weight: 900; }

/* 푸터를 없앤 대신 맨 아래 여백 (카카오 버튼·찜 막대가 내용을 가리지 않게) */
body:not(.adm) > main { padding-bottom: 120px; }
.not-found { padding: 80px 0; text-align: center; color: var(--ink-2); }
.not-found b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 10px; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero, .d-hero, .seller-sec, .admin-grid, .adm-cols, .kit, .s-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px; gap: 4px; scrollbar-width: none; }
  .adm-side::-webkit-scrollbar { display: none; }
  .adm-side .logo, .adm-side .grp, .adm-side .foot { display: none; }
  .side-link { width: auto; flex: none; }
  .set-sec { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero-art { aspect-ratio: 1 / 1.15; }
  .hero-art > :not(:first-child) .best-info span, .hero-art > :not(:first-child) .best-info small { display: none; }
  .hero-art > :not(:first-child) .best-info b { font-size: 13px; }
  .hero-art > :not(:first-child) .best-rank { top: 8px; left: 8px; padding: 4px 9px; font-size: 11px; }
  .best-info { padding: 22px 10px 10px; }
  .top-nav .hide-m { display: none; }
  .hero h1 { font-size: 32px; }
  .benefits, .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li:not(:last-child)::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .row-2, .drawer-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-sec { padding: 20px; border-radius: 20px; }
  .adm-body, .adm-top { padding-inline: 16px; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .d-hero h1 { font-size: 26px; }
}
