:root {
  --bg: #ffffff;
  --soft: #f5f5f6;
  --text: #17171a;
  --muted: #8a8a90;
  --line: #ececef;
  --accent: #111113;
  --accent-text: #ffffff;
  --danger: #d23b3b;
  --sale: #e8402e;
  --radius: 12px;
  --maxw: 1180px;
}

/* Pretendard (SIL OFL 공개 글꼴) — 외부에서 불러오지 않고 사이트에 함께 올린 파일 사용. 굵기 100~900 을 한 파일로 */
@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations"), url("/fonts/PretendardVariable.woff2") format("woff2");
}

/* Cinzel (SIL OFL 공개 글꼴) — 메뉴·브랜드의 영문 표기용. 영문 대문자만 들어 있음 */
@font-face {
  font-family: "Cinzel";
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Cinzel.woff2") format("woff2-variations"), url("/fonts/Cinzel.woff2") format("woff2");
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.muted.pad { padding: 40px 0; }
.center { text-align: center; }
.error { color: var(--danger); }
.loading { padding: 80px 0; color: var(--muted); }

/* ── 헤더 ───────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 12px; }
.brand { font-size: 26px; font-weight: 900; letter-spacing: 1px; text-align: center; }
.brand span { font-weight: 300; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; font-size: 13px; color: #444; flex-wrap: wrap; }
.topbar-right a:hover { color: var(--accent); }
.util-name { color: var(--text); font-weight: 600; }
.icon-button, .link-button { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: inherit; cursor: pointer; }
.icon-button:hover, .link-button:hover { color: var(--accent); }
.cart-link { position: relative; font-weight: 600; }
.cart-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; background: var(--accent); color: #fff; border-radius: 9px; font-size: 11px; margin-left: 4px; padding: 0 5px; }

.menubar { border-top: 1px solid var(--line); }
.menu { display: flex; align-items: center; justify-content: center; gap: 34px; height: 66px; font-size: 15px; font-weight: 600; overflow-x: auto; white-space: nowrap; }
/* 메뉴 항목: 한글 이름 + 아래에 작은 영문 */
.menu a, .menu button { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.25; }
.menu-en { font-family: "Cinzel", Georgia, serif; font-size: 10px; font-weight: 500; letter-spacing: 2.2px; text-transform: uppercase; color: #a08458; padding-left: 2.2px; }
.menu::-webkit-scrollbar { display: none; }
.menu a, .menu button { color: #333; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu button { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 600; cursor: pointer; border-radius: 0; }
.menu a:hover, .menu button:hover { color: var(--accent); }
.menu a.active, .menu button.active { color: var(--accent); border-bottom-color: var(--accent); }
.menu a.strong { font-weight: 800; }
.menu a.mega-on, .menu button.mega-on { color: var(--accent); border-bottom-color: var(--accent); }

.searchbar { border-top: 1px solid var(--line); background: var(--soft); }
.search-form { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.search-form input { flex: 1; }
.search-form select { flex: 0 0 170px; width: 170px; }
.search-form select[hidden] { display: none; }
.searchbar.always { background: var(--bg); }

/* 맨 위 공지 띠 */
.announce { background: #111; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 9px 16px; }
.announce[hidden] { display: none; }

/* 브랜드 · 모델 펼침 메뉴 */
.mega { position: absolute; left: 0; right: 0; z-index: 60; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 14px 24px rgba(0,0,0,0.12); max-height: 70vh; overflow-y: auto; }
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 20px; padding-top: 28px; padding-bottom: 32px; }
.mega-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mega-col a { color: #777; font-size: 13.5px; line-height: 1.35; letter-spacing: -0.2px; }
.mega-col a:hover { color: var(--accent); text-decoration: underline; }
.mega-col .mega-title { color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.mega-col .mega-title:hover { text-decoration: none; }
/* 브랜드 영문 표기: 한글 이름 위에 넓은 자간의 작은 대문자 */
.mega-en { display: block; font-family: "Cinzel", Georgia, serif; font-size: 11px; font-weight: 500; letter-spacing: 1.6px; line-height: 1.3; text-transform: uppercase; color: #a08458; margin-bottom: 4px; }

/* 홈 "대표 브랜드" 줄 */
.brand-sec { margin-top: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.brand-eyebrow { font-family: "Cinzel", Georgia, serif; font-size: 12px; letter-spacing: 4px; color: #b08d57; margin-bottom: 4px; }
.brand-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 24px; }
.brand-sec h2 { font-size: 26px; }
.brand-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-tabs button { background: var(--bg); color: #555; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 600; }
.brand-tabs button:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.brand-tabs button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.brand-row[hidden] { display: none; }
.brand-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 26px 12px; }
.brand-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; font-size: 14px; color: #444; text-align: center; }
.brand-circle { width: 104px; height: 104px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, transform 0.15s; }
.brand-tile:hover .brand-circle { border-color: var(--accent); transform: translateY(-2px); }
.brand-tile:hover { color: var(--accent); }
.brand-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-word { padding: 0 6px; font-family: "Cinzel", Georgia, serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.8px; line-height: 1.35; text-transform: uppercase; color: #222; word-break: keep-all; overflow-wrap: anywhere; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* 배너 아래 안내 3칸 */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; margin-top: 18px; } /* 항목 수(1~3개)에 맞춰 균등 배치 */
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 16px; background: var(--soft); min-width: 0; }
.trust-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #b08d57; color: #b08d57; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.trust-item strong { font-size: 15px; }
.trust-item p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ── 버튼/폼 공용 ───────────────────────────── */
button, .button {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  border: 0; border-radius: var(--radius); padding: 12px 22px; font-size: 15px;
  font-weight: 600; cursor: pointer; text-align: center;
}
button:hover, .button:hover { opacity: 0.88; }
button:disabled { opacity: 0.5; cursor: wait; }
button.secondary, .button.secondary { background: var(--soft); color: var(--text); border: 1px solid var(--line); }

input, select, textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; width: 100%; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="checkbox"] { width: auto; }
select { cursor: pointer; }

.page { padding-top: 32px; padding-bottom: 64px; }
h1 { font-size: 26px; margin: 0 0 24px; font-weight: 800; }
h2 { font-size: 21px; margin: 0; font-weight: 800; }

/* ── 메인 히어로 캐러셀 ─────────────────────── */
.hero { position: relative; max-width: var(--maxw); margin: 24px auto 0; padding: 0 20px; }
.hero-view { overflow: hidden; }
/* --per: 한 화면에 보이는 배너 수 (JS 가 읽어 이동 거리 계산) */
.hero-track { --per: 3; display: flex; gap: 16px; transition: transform 0.5s ease; }
.hero-slide {
  position: relative; flex: 0 0 calc((100% - (var(--per) - 1) * 16px) / var(--per)); min-height: 340px;
  overflow: hidden; border-radius: 16px; display: flex; align-items: flex-end; padding: 28px; color: #fff;
}
.hero-a { background: linear-gradient(120deg, #44515f, #8a97a8); }
.hero-b { background: linear-gradient(120deg, #1a1a1d, #3a3a40); }
.hero-c { background: linear-gradient(120deg, #4a3f52, #8a7f95); }
.hero-text { max-width: 100%; }
.hero-eyebrow { font-size: 12px; letter-spacing: 3px; opacity: 0.85; margin-bottom: 10px; }
.hero-title { font-size: 28px; font-weight: 900; line-height: 1.15; margin-bottom: 8px; }
.hero-sub { font-size: 14px; opacity: 0.92; margin-bottom: 14px; }
.hero-cta { font-size: 15px; font-weight: 700; border-bottom: 2px solid rgba(255,255,255,0.6); padding-bottom: 2px; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: #111; font-size: 24px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.hero-nav.prev { left: 36px; }
.hero-nav.next { right: 36px; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.5); }
.hero-dots button.active { background: #fff; width: 22px; border-radius: 4px; }
/* 배너 수가 한 화면에 다 들어오면 JS 가 hidden 을 주므로 display 규칙보다 우선해 숨김 */
.hero-nav[hidden], .hero-dots[hidden], .hero-count[hidden] { display: none; }

/* 와이드형: 큰 배너 1장씩, 배경 이미지 + 왼쪽 문구 */
.hero.wide .hero-view { border-radius: 28px; }
.hero.wide .hero-track { --per: 1; gap: 0; }
.hero.wide .hero-slide { flex-basis: 100%; min-height: 0; height: clamp(300px, 36vw, 460px); border-radius: 0; align-items: center; padding: 0 clamp(28px, 6vw, 84px) 0 clamp(64px, 6vw, 84px); }
.hero.wide .hero-a { background: linear-gradient(110deg, #10161c 0%, #2c3a47 60%, #6f7f90 100%); }
.hero.wide .hero-b { background: linear-gradient(110deg, #0c0c0e 0%, #1d1d21 55%, #4a4a52 100%); }
.hero.wide .hero-c { background: linear-gradient(110deg, #120d0b 0%, #2a1d18 55%, #6b5347 100%); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0) 75%); }
.hero.wide .hero-text { position: relative; max-width: 60%; }
.hero.wide .hero-eyebrow { color: #c9a56a; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.hero.wide .hero-title { font-size: clamp(28px, 4.2vw, 56px); letter-spacing: -1px; margin-bottom: 14px; }
.hero.wide .hero-sub { font-size: clamp(14px, 1.5vw, 19px); margin-bottom: 26px; }
.hero.wide .hero-cta { display: inline-block; background: #fff; color: #111; border: 0; border-radius: 999px; padding: 13px 24px; font-size: 15px; }
.hero.wide .hero-nav { background: rgba(255,255,255,0.22); color: #fff; box-shadow: none; width: 52px; height: 52px; }
.hero.wide .hero-nav:hover { background: rgba(255,255,255,0.4); opacity: 1; }
.hero.wide .hero-dots { justify-content: flex-start; left: clamp(84px, 7vw, 104px); bottom: 22px; }
.hero.wide .hero-dots button.active { width: 34px; }
.hero-count { position: absolute; right: 40px; bottom: 16px; background: rgba(0,0,0,0.55); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* ── 카테고리 타일 ──────────────────────────── */
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; }
.cat-tile {
  display: flex; align-items: center; justify-content: center; height: 72px; background: var(--soft);
  border-radius: var(--radius); font-weight: 700; font-size: 15px; transition: background 0.15s;
}
.cat-tile:hover { background: #ececef; }

/* ── 섹션 / 상품 그리드 ─────────────────────── */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.more { font-size: 13px; color: var(--muted); }
.more:hover { color: var(--accent); }

/* minmax(0, 1fr): 큰 원본 이미지가 칸을 늘려 4열이 깨지는 것 방지 */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.card { display: block; min-width: 0; }
.card-thumb { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c4c4c9; font-size: 13px; letter-spacing: 1px; }
.tag { position: absolute; top: 10px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-sold { left: 10px; background: rgba(0,0,0,0.65); color: #fff; }
.tag-sale { right: 10px; background: var(--sale); color: #fff; }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-list { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card-price { font-size: 17px; font-weight: 800; }

/* ── 검수 시스템 ────────────────────────────── */
.qc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qc-step { display: flex; gap: 14px; align-items: flex-start; background: var(--soft); border-radius: var(--radius); padding: 22px; }
.qc-num { font-size: 22px; font-weight: 900; color: #c9c9ce; }
.qc-step strong { display: block; margin-bottom: 4px; }
.qc-step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ── 목록 페이지 ────────────────────────────── */
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 12px; flex-wrap: wrap; }
.list-head h1 { margin: 0; }
.list-tools { display: flex; align-items: center; gap: 14px; }
.list-tools select { width: auto; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumb a:hover { color: var(--accent); }

/* ── 상품 상세 ──────────────────────────────── */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail-main { border-radius: 16px; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.detail-main img, .detail-main .no-image { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.d-thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); cursor: pointer; }
.d-thumb.active { border-color: var(--accent); }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-cat { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.detail-info h1 { font-size: 28px; margin-bottom: 20px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-list { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.detail-rate { color: var(--sale); font-weight: 800; font-size: 22px; }
.detail-now { font-size: 28px; font-weight: 900; }
.description { white-space: pre-wrap; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy-row input { width: 90px; }
.buy-row button { flex: 1; }
.soldout { font-weight: 700; color: var(--muted); }
.notice { background: #f0f7f0; padding: 12px 16px; border-radius: 10px; }

/* ── 테이블/장바구니/주문 ───────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table input[type="number"] { width: 72px; }
.table select { width: auto; }
.table tr.inactive { opacity: 0.5; }
.summary { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 28px; font-size: 18px; }
.summary .button { padding: 14px 40px; }

.order { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.order-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.order ul { margin: 8px 0; padding-left: 18px; }
.status { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--soft); font-weight: 600; }
.status-paid { background: #e4eeff; color: #2a5bd7; }
.status-preparing { background: #fff4d6; color: #a15c00; }
.status-shipped, .status-domestic { background: #e0f2fe; color: #0369a1; }
.status-delivered { background: #e5f6e8; color: #2a8c43; }
.status-cancelled { background: #fde8e8; color: var(--danger); }

/* ── 폼/인증 ────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.page .form { max-width: 520px; }
.auth-box { max-width: 420px; margin: 20px auto; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { flex: 1; }
.done { text-align: center; padding: 40px 0; }
.done p { margin: 8px 0; }
.done .button { margin-top: 20px; }
/* 관리자 > 주문 관리: 새 주문 알림(웹 푸시) 상자 */
.push-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; background: var(--soft); }
.push-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.push-state { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: #e5e7eb; color: #374151; }
.push-state.on { background: #dcfce7; color: #166534; }
.push-state.off { background: #fee2e2; color: #991b1b; }
.push-hint { margin: 8px 0 0; font-size: 13.5px; color: #444; line-height: 1.55; }
.push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.push-actions .small { padding: 9px 14px; font-size: 13.5px; }
.push-others { flex-basis: 100%; font-size: 13px; }
.push-others summary { cursor: pointer; color: var(--muted); }
.push-other { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* 주문 완료: 입금 계좌 카드 (결제 전에는 계좌를 보여주지 않음) */
.done-bank { max-width: 460px; margin: 22px auto 12px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); text-align: center; }
.done-bank-k { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.done-bank-acct { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; word-break: keep-all; line-height: 1.4; }
.done-bank .small { margin-top: 10px; padding: 7px 14px; font-size: 13px; background: #fff; }
.done-bank-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.done-bank-rows div { display: flex; justify-content: space-between; }
.done-bank-rows span { color: var(--muted); }

/* ── 푸터 ───────────────────────────────────── */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--soft); padding: 40px 0 48px; font-size: 13px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.footer-brand { font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: 1px; }
.footer-note { margin: 8px 0 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: #555; font-weight: 500; }
.footer-links a:hover { color: var(--accent); }
.footer-biz p { margin: 3px 0; }

/* ── 구매후기 ───────────────────────────────── */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review-thumb { flex: 0 0 110px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-body { min-width: 0; }
.stars { color: #f5a623; font-size: 15px; letter-spacing: 1px; }
.star-off { color: var(--line); }
.review-product { font-weight: 700; margin: 4px 0; }
.review-text { margin: 6px 0; white-space: pre-wrap; }
.review-meta { font-size: 13px; color: var(--muted); }

/* ── 검수사진 ───────────────────────────────── */
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qc-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.qc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qc-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.qc-caption { margin-top: 8px; font-size: 14px; }
.qc-date { font-size: 12px; margin-top: 2px; }

/* ── 공지사항 ───────────────────────────────── */
.notice-list { border-top: 1px solid var(--line); }
.notice-item { border-bottom: 1px solid var(--line); }
.notice-item summary { display: flex; align-items: center; gap: 10px; padding: 16px 4px; cursor: pointer; font-weight: 600; list-style: none; }
.notice-item summary::-webkit-details-marker { display: none; }
.notice-date { margin-left: auto; font-weight: 400; font-size: 13px; }
.pin { background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.notice-body { padding: 0 4px 18px; white-space: pre-wrap; color: #444; }

/* ── 접속 팝업 ──────────────────────────────── */
.popup-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup { background: var(--bg); border-radius: 16px; overflow: hidden; width: 100%; max-width: 380px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
a.popup-image { display: block; cursor: pointer; }
.popup-image img { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.popup-body { padding: 24px 22px 8px; text-align: center; }
.popup-body h2 { font-size: 20px; margin-bottom: 10px; }
.popup-body p { margin: 0 0 16px; color: #444; white-space: pre-wrap; }
.popup-cta { display: inline-block; }
/* 슬라이드형 팝업 */
.popup-slide { position: relative; max-width: 420px; overflow: visible; }
.popup-slide .popup-stage { border-radius: 16px 16px 0 0; overflow: hidden; background: #111; min-height: 220px; }
.popup-slide .popup-stage a { display: block; }
.popup-slide .popup-stage img { width: 100%; display: block; max-height: 62vh; object-fit: contain; }
.popup-slide .popup-stage .no-image { height: 240px; display: flex; align-items: center; justify-content: center; color: #888; }
.popup-thumbs { display: flex; gap: 6px; padding: 8px; background: #111; overflow-x: auto; }
.popup-thumbs button { flex: 1 0 56px; max-width: 110px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #222; cursor: pointer; opacity: 0.55; }
.popup-thumbs button.on { opacity: 1; border-color: #fff; }
.popup-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-slide .popup-foot { background: var(--bg); border-radius: 0 0 16px 16px; border-top: 0; }
/* 나란히 띄우기: 장마다 창 하나씩 */
.popup-side-overlay { overflow-y: auto; align-items: flex-start; padding: 40px 20px; }
.popup-side-wrap { margin: auto; width: 100%; max-width: 960px; }
.popup-side-row { display: flex; justify-content: center; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.popup-side { flex: 0 1 380px; width: auto; max-width: 380px; }
.popup-side .popup-stage { border-radius: 16px; }
.popup-side .popup-stage img { max-height: none; }
.popup-side-foot { margin: 14px auto 0; max-width: 784px; background: var(--bg); border-radius: 12px; border-top: 0; }
@media (max-width: 820px) { .popup-side-row { gap: 16px; } .popup-side { flex-basis: 100%; max-width: 420px; } .popup-side .popup-stage img { max-height: 70vh; object-fit: contain; } }
.popup-x { position: absolute; top: -14px; right: -14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #000; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 480px) { .popup-x { top: 6px; right: 6px; background: rgba(0,0,0,0.6); } }
.slide-slot { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.popup-foot { display: flex; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* ── 관리자 전용 보강 ───────────────────────── */
.admin-wrap { padding-top: 28px; padding-bottom: 64px; }
.admin-help { color: var(--muted); font-size: 14px; margin: -8px 0 20px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cat-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.cat-row .cat-name { flex: 1; font-weight: 600; }
.cat-row .link-button { font-size: 18px; line-height: 1; }
.cat-add { display: flex; gap: 8px; margin-bottom: 20px; }
.cat-add input { flex: 1; }
.form h2.sub { font-size: 16px; margin: 10px 0 0; }
.color-field { flex: 1; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="color"] { width: 52px; height: 40px; padding: 2px; cursor: pointer; }
.color-row code { font-size: 13px; color: var(--muted); }

/* 약관/정책 본문 */
.policy { white-space: pre-wrap; line-height: 1.85; max-width: 760px; font-size: 15px; }

/* ── 카테고리 랜딩 ──────────────────────────── */
.cat-hero { background: linear-gradient(120deg, #141417, #2a2a31); color: #fff; text-align: center; padding: 48px 0 36px; margin-top: 16px; }
.cat-hero-en { font-size: 40px; font-weight: 800; letter-spacing: 8px; line-height: 1.1; }
.cat-hero-kr { margin-top: 10px; font-size: 15px; opacity: 0.85; letter-spacing: 2px; }
.cat-hero-desc { margin: 12px auto 0; max-width: 560px; font-size: 14px; opacity: 0.8; }
.cat-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.cat-pills a { border: 1px solid rgba(255,255,255,0.35); border-radius: 20px; padding: 7px 16px; font-size: 13px; color: #fff; transition: background 0.15s; }
.cat-pills a:hover { background: rgba(255,255,255,0.12); }
.cat-page { padding-top: 22px; padding-bottom: 64px; }

.sub-tiles { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.sub-tile { flex: 0 0 104px; text-align: center; font-size: 13px; font-weight: 600; color: #444; }
.sub-thumb { width: 104px; height: 88px; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; transition: border-color 0.15s; }
.sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-thumb.sub-all { font-weight: 800; letter-spacing: 2px; color: var(--muted); }
.sub-tile:hover .sub-thumb, .sub-tile.active .sub-thumb { border-color: var(--accent); }
.sub-tile.active { color: var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.chip { border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; font-size: 13px; color: #444; background: var(--bg); }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chip-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

.cat-search { display: flex; gap: 8px; max-width: 560px; margin: 4px 0 20px; }
.cat-search input { border-radius: 24px; padding-left: 18px; }
.cat-search button { border-radius: 24px; white-space: nowrap; flex-shrink: 0; }

.tag-new { left: 10px; bottom: 10px; top: auto; background: var(--accent); color: var(--accent-text); }

@media (max-width: 640px) {
  .cat-hero { padding: 34px 0 26px; }
  .cat-hero-en { font-size: 28px; letter-spacing: 5px; }
  .sub-tile { flex-basis: 88px; }
  .sub-thumb { width: 88px; height: 74px; }
}

/* 관리자 카테고리 행(문구 입력 포함) */
.cat-row { align-items: stretch; }
.cat-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cat-top { display: flex; align-items: center; gap: 10px; }
.cat-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-meta input { flex: 1; min-width: 180px; font-size: 13px; padding: 8px 10px; }

/* ── 상품 상세 (참고 형식) ─────────────────────── */
.detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-title h1 { margin: 0; font-size: 22px; }
.badge-new { background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; }
.info-rows { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.info-row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--muted); font-size: 13px; }
.info-row .price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.info-row .price-line .detail-now { font-size: 24px; }
.detail-notice { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; margin-bottom: 14px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-badges span { background: color-mix(in srgb, var(--accent) 8%, white); border: 1px solid color-mix(in srgb, var(--accent) 25%, white); color: var(--text); font-size: 12.5px; padding: 5px 10px; border-radius: 6px; }
.opt-group { margin-bottom: 14px; }
.opt-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.opt-label em { color: var(--sale); font-style: normal; margin-left: 2px; }
.opt-values { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-values button { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 500; }
.opt-values button.on { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 14px; }
.qty-row input { width: 84px; }
.qty-row .stock { color: var(--muted); font-size: 13px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .secondary { background: var(--bg); color: var(--text); border: 1px solid var(--accent); }
.size-guide { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
.size-guide summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.size-guide summary::-webkit-details-marker { display: none; }
.size-guide summary::after { content: '▾'; color: var(--muted); }
.size-guide[open] summary::after { content: '▴'; }
.size-guide .sg-body { padding: 0 14px 14px; font-size: 14px; white-space: pre-wrap; color: #444; }

.detail-tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 48px; }
.detail-tabs button { flex: 1; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 14px 0; font-size: 15px; font-weight: 600; }
.detail-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { padding: 28px 0 8px; }
.desc-images { display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: 760px; margin: 20px auto 0; }
.desc-images img { width: 100%; border-radius: 10px; }
.desc-collapsed .desc-images { max-height: 640px; overflow: hidden; position: relative; }
.desc-collapsed .desc-images::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, var(--bg)); }
/* 상세정보 펼쳐보기: 눈에 띄게 (가로 꽉 찬 검정 버튼 + 남은 장수) */
.desc-more { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; max-width: 760px; margin: 18px auto 0; padding: 16px 20px; background: #111113; color: #fff; border: 0; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,0.16); line-height: 1.3; }
.desc-more strong { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.desc-more small { font-size: 12.5px; color: #c9c9cf; font-weight: 500; }
.desc-more:hover { background: #2a2a2e; }

/* 카카오톡 상품 문의: 구매 버튼 아래 */
.kakao-buy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 14px 18px; background: #fee500; color: #3c1e1e; border-radius: 10px; font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.kakao-buy:hover { background: #f5dc00; color: #3c1e1e; }
.kakao-buy svg { width: 20px; height: 20px; flex: 0 0 20px; }
/* 상세정보 맨 아래 띠 */
.kakao-band { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 36px auto 8px; padding: 20px 22px; background: #fff8bf; border: 1px solid #f3dd4a; border-radius: 16px; }
.kakao-band-ic { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: #fee500; color: #3c1e1e; display: flex; align-items: center; justify-content: center; }
.kakao-band-ic svg { width: 28px; height: 28px; }
.kakao-band-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kakao-band-text strong { font-size: 17px; font-weight: 800; color: #3c1e1e; letter-spacing: -0.3px; }
.kakao-band-text span { font-size: 13.5px; color: #6b5a2a; line-height: 1.5; }
.kakao-band-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; background: #3c1e1e; color: #fee500; border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.kakao-band-btn:hover { background: #2a1414; color: #fee500; }
.kakao-band-btn svg { width: 18px; height: 18px; }
/* 휴대폰 하단 고정 구매 바 (휴대폰에서만 표시) */
.m-buybar { display: none; }
/* 짧은 알림 */
#toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 12px 18px; background: rgba(17,17,19,0.94); color: #fff; font-size: 13.5px; font-weight: 600; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.28); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; text-align: center; line-height: 1.45; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.returns { white-space: pre-wrap; line-height: 1.85; font-size: 14.5px; max-width: 760px; }
.related { margin-top: 56px; }
.cart-opt { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── 장바구니 ───────────────────────────────── */
.cart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cart-head h1 { margin: 0; }
.count-badge { background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 11px; padding: 0 7px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.cart-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-toolbar label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cart-item { display: grid; grid-template-columns: 22px 84px 1fr auto; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.cart-item input[type="checkbox"] { width: 18px; height: 18px; }
.cart-thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.cart-thumb img, .cart-thumb .no-image { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-name { font-weight: 600; display: block; margin-bottom: 2px; }
.cart-unit { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-line-price { font-weight: 800; font-size: 16px; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.stepper button { background: var(--bg); color: var(--text); border: 0; border-radius: 0; width: 32px; height: 32px; padding: 0; font-size: 16px; line-height: 1; }
.stepper input { width: 44px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; padding: 0; height: 32px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-del { background: none; color: var(--muted); border: 0; padding: 0; font-size: 18px; line-height: 1; }
.cart-del:hover { color: var(--danger); }
.summary-card { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg); }
.summary-card h3 { margin: 0 0 14px; font-size: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: #444; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 800; color: var(--text); }
.sum-row .hint { font-size: 12px; color: var(--muted); }
.summary-card .button, .summary-card button { width: 100%; margin-top: 8px; }
.summary-card .secondary { background: var(--bg); color: var(--text); border: 1px solid var(--accent); }
.cart-empty { text-align: center; padding: 70px 0 60px; }
.cart-empty h2 { font-size: 20px; margin: 0 0 6px; }
.cart-empty p { margin: 0 0 20px; color: var(--muted); }
.cart-continue { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--muted); text-decoration: underline; }

/* ── 주문서 ─────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.co-section { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.co-section h2 { font-size: 16px; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
.co-section .toggle { background: none; color: var(--muted); border: 0; padding: 0; font-size: 13px; font-weight: 500; }
.co-items { display: flex; flex-direction: column; gap: 12px; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.co-item .cart-thumb { width: 56px; height: 56px; }
.co-item .q { color: var(--muted); font-size: 13px; }
.co-section .form { gap: 10px; max-width: none; }
.co-section label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.same-as { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 10px; font-weight: 600; font-size: 14px; background: color-mix(in srgb, var(--accent) 5%, white); }
.pay-bank { margin-top: 10px; font-size: 14px; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.agree-box { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 14px 4px 0; }
.agree-box a { text-decoration: underline; color: var(--muted); }
.pay-btn { font-size: 16px; padding: 15px; }
.pay-bank + .form { margin-top: 10px; }

/* ── 마이페이지 ─────────────────────────────── */
.my-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.my-user { font-size: 17px; }
.my-user strong { font-size: 20px; }
.my-user .muted { font-size: 13px; margin-left: 8px; }
.my-status { display: flex; align-items: center; gap: 6px; }
.my-stat { text-align: center; min-width: 76px; padding: 6px 8px; border-radius: 10px; }
.my-stat:hover { background: var(--soft); }
.my-stat .n { font-size: 22px; font-weight: 800; line-height: 1.2; }
.my-stat .l { font-size: 12px; color: var(--muted); }
.my-arrow { color: var(--line); font-size: 20px; }
.my-layout { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.my-menu { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.my-menu a { padding: 13px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); color: #444; }
.my-menu a.on { background: var(--accent); color: var(--accent-text); }
.my-menu a:hover:not(.on) { background: var(--soft); }
.my-menu .link-button { padding: 13px 16px; font-size: 13px; color: var(--muted); text-align: left; text-decoration: none; }
.my-panel { min-width: 0; }
.my-title { font-size: 18px; margin: 0 0 16px; display: flex; align-items: baseline; gap: 8px; }
.my-title .muted { font-size: 13px; font-weight: 500; }
.my-empty { text-align: center; padding: 60px 0; border: 1px dashed var(--line); border-radius: 14px; }
.my-empty h3 { margin: 0 0 14px; font-weight: 600; }
.narrow-form { max-width: 440px; }

.order-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.order-card .order-head { margin-bottom: 10px; }
.order-toggle { margin-left: auto; font-size: 13px; color: var(--muted); }
.order-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; font-size: 14px; flex-wrap: wrap; }
.order-foot strong { font-size: 16px; }
button.small { padding: 7px 12px; font-size: 13px; }
.order-detail { margin-top: 12px; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.od-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: 13.5px; padding: 4px 0; }
.od-row .k { color: var(--muted); }

/* ── 서버가 먼저 넣어주는 본문 요약 (검색엔진용, 화면이 그려지면 교체됨) ───── */
.ssr { padding-top: 28px; padding-bottom: 28px; }
.ssr h1 { font-size: 24px; margin-bottom: 12px; }
.ssr img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.ssr-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin-bottom: 14px; }
.ssr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.ssr-list span { color: var(--muted); margin-left: 6px; }
.ssr-price { font-size: 20px; font-weight: 700; }
.ssr-pre { white-space: pre-wrap; }

/* ── 미리보기 모드 띠 (쇼핑몰) / 변경 바 (관리자) ───── */
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #b45309; color: #fff; font-size: 13px; padding: 8px 16px; }
.preview-bar button { padding: 6px 12px; font-size: 13px; background: #fff; color: #7c2d12; }
.preview-bar button.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
body.preview { padding-top: 44px; }
body.preview .site-header { top: 44px; }
body.preview .site-header + .hero, body.preview .searchbar { margin-top: 0; }
.draft-bar { background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #7c2d12; font-size: 13.5px; }
.draft-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.draft-actions { display: flex; align-items: center; gap: 8px; }
.draft-actions button { padding: 7px 14px; font-size: 13px; }
.draft-actions .secondary { background: #fff; color: #7c2d12; border: 1px solid #fdba74; }
.draft-actions .link-button { color: #9a3412; font-size: 13px; text-decoration: underline; }

/* 상품 속성: 카드 브랜드 줄 / 상세 정보표 / 필터 칩 */
.card-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--text); margin-bottom: 3px; }
.card-factory { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--muted); vertical-align: 1px; }
.card-brand > .card-factory:first-child { margin-left: 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 110px; color: var(--muted); font-weight: 600; }
.attr-chips { margin-top: 0; }
.chip-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.chip small { color: var(--muted); font-size: 11px; margin-left: 2px; }
.chip.on small { color: inherit; opacity: 0.8; }

/* 관리자: 속성 정의 / 상품 폼 속성 칸 */
.attr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; }
.attr-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.attr-grid label em { color: var(--sale); font-style: normal; }
.field-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.field-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.field-top { display: grid; grid-template-columns: 28px 1.3fr 1fr 110px auto; gap: 8px; align-items: center; }
.field-top .mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.field-btns { display: flex; gap: 10px; white-space: nowrap; }
.field-bottom { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.field-bottom input[type="text"] { flex: 1 1 100%; font-size: 13px; }
.field-bottom .check { font-size: 13px; font-weight: 500; }
@media (max-width: 760px) {
  .field-top { grid-template-columns: 1fr 1fr; }
  .attr-grid { grid-template-columns: 1fr; }
}

/* ── 상단 공지 칩 / 문의 플로팅 버튼 ───────────── */
.notice-chip { display: inline-block; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
/* 상단 카카오톡 상담 바로가기 칩 (카카오 노랑/진갈색) */
.topbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kakao-chip { display: inline-flex; align-items: center; gap: 5px; background: #fee500; color: #3c1e1e; font-size: 12px; font-weight: 800; padding: 4px 10px 4px 8px; border-radius: 20px; white-space: nowrap; line-height: 1.4; }
.kakao-chip:hover { background: #f7dc00; color: #3c1e1e; }
.kakao-chip-ic { display: inline-flex; width: 14px; height: 14px; }
.kakao-chip-ic svg { width: 14px; height: 14px; }
/* 우측 하단 상담 버튼: 검은 알약 모양 + 노란 말풍선 + 제목/부제 + 초록 점(상담 가능 표시) */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 12px; background: #111; color: #fff; border-radius: 999px; padding: 9px 22px 9px 9px; box-shadow: 0 10px 28px rgba(0,0,0,0.28); transition: transform 0.15s; }
.fab:hover { transform: translateY(-2px); }
.fab-icon { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: #fee500; display: flex; align-items: center; justify-content: center; }
.fab-icon svg { width: 24px; height: 24px; display: block; }
.fab-label { display: flex; flex-direction: column; line-height: 1.25; }
.fab-title { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; }
.fab-sub { font-size: 12px; color: #a9a9ad; white-space: nowrap; }
.fab-dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.25); margin-left: 4px; animation: fab-pulse 2s ease-in-out infinite; }
@keyframes fab-pulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0.08); } }
@media (prefers-reduced-motion: reduce) { .fab-dot { animation: none; } }

/* ── 카테고리 이미지 타일 ───────────────────── */
.cat-tile.has-img { height: auto; flex-direction: column; padding: 0; overflow: hidden; background: var(--soft); border-radius: 14px; }
.cat-tile-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.cat-tile-img img, .cat-tile-img .no-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cat-tile.has-img:hover .cat-tile-img img { transform: scale(1.05); }
.cat-tile.has-img span { display: block; padding: 10px 8px; font-size: 14px; }

/* ── NEW IN 패널 ────────────────────────────── */
.new-grid .new-panel { background: #141417; color: #fff; border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; min-height: 100%; }
.np-title { font-size: 26px; font-weight: 900; letter-spacing: 1px; }
.np-sub { font-size: 12px; letter-spacing: 1.5px; opacity: 0.7; margin-top: 4px; }
.np-count { display: flex; align-items: baseline; gap: 6px; margin: 26px 0 18px; flex-wrap: wrap; }
.np-count strong { font-size: 54px; font-weight: 900; line-height: 1; }
.np-count span { font-size: 18px; font-weight: 700; }
.np-count em { font-style: normal; font-size: 12.5px; opacity: 0.8; line-height: 1.35; margin-left: 6px; }
.np-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.np-cat { border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; padding: 10px 8px; text-align: center; }
.np-cat .k { font-size: 11px; opacity: 0.7; }
.np-cat .v { font-size: 15px; font-weight: 800; margin-top: 2px; }
.np-more { margin-top: auto; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; }
.new-panel:hover .np-more { background: #fff; color: #141417; }

/* ── REAL QC 띠 + 홈 검수 카드 ─────────────── */
.qc-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #141417; color: #fff; border-radius: 12px; padding: 14px 20px; margin-bottom: 18px; font-size: 14px; }
.qc-strip strong { letter-spacing: 2px; margin-right: 6px; }
.qc-dot { width: 10px; height: 10px; border-radius: 50%; background: #39d353; box-shadow: 0 0 0 4px rgba(57,211,83,0.25); }
.qs-item b { font-weight: 800; }
.qs-sep { opacity: 0.3; }
.qs-latest { margin-left: auto; opacity: 0.85; font-size: 13px; }
.qc-steps.compact { margin-bottom: 18px; }
.qc-steps.compact .qc-step { padding: 14px 16px; }
.qc-steps.compact .qc-num { font-size: 16px; }
.qc-steps.compact p { font-size: 13px; }
.home-qc .qc-card { display: block; }
.qc-done { position: absolute; top: 10px; right: 10px; background: #fff; color: #1f7a3a; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

/* ── 3단 푸터 ──────────────────────────────── */
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.footer-col h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.footer-col a { display: block; color: #555; padding: 3px 0; }
.footer-col a[hidden] { display: none; }
.footer-col a:hover { color: var(--accent); }
.cs-hours { white-space: pre-line; margin: 0 0 12px; line-height: 1.7; }
.cs-btn { padding: 9px 16px; font-size: 13px; }

/* 관리자: 카테고리 행의 타일 이미지 필드 전체 폭 */
.cat-meta .img-field { flex-basis: 100%; }

@media (max-width: 960px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-track { --per: 2; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .new-grid .new-panel { grid-column: span 3; min-height: 0; }
}
@media (max-width: 640px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .brand-sec { margin-top: 30px; padding-bottom: 26px; }
  .brand-sec h2 { font-size: 21px; }
  .brand-head { gap: 12px; margin-bottom: 16px; }
  .brand-tabs button { padding: 5px 14px; font-size: 13px; }
  .brand-row { grid-template-columns: repeat(4, 1fr); gap: 18px 8px; }
  .brand-circle { width: 72px; height: 72px; }
  .brand-word { font-size: 8.5px; letter-spacing: 0.8px; padding: 0 6px; }
  .brand-tile { font-size: 12px; gap: 8px; }
  .trust-row { grid-template-columns: 1fr; gap: 8px; }
  .trust-item { padding: 12px 16px; }
  .searchbar.always:not(.open) { display: none; }
  .search-form select { flex-basis: 110px; width: 110px; }
  .hero.wide .hero-view { border-radius: 18px; }
  .hero.wide .hero-slide { height: 300px; padding: 0 22px 34px; }
  .hero.wide .hero-text { max-width: 100%; }
  .hero.wide .hero-nav { display: none; }
  .hero.wide .hero-dots { left: 34px; bottom: 16px; }
  .hero-count { right: 26px; bottom: 12px; }
  .announce { font-size: 12px; padding: 7px 12px; }
  .hero-track { --per: 1; }
  .new-grid .new-panel { grid-column: span 2; }
  .qs-latest { margin-left: 0; width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
  /* 휴대폰: 글자를 조금 줄이고 부제는 숨김 (화면을 덜 가리도록) */
  .fab { right: 12px; bottom: 12px; gap: 9px; padding: 7px 16px 7px 7px; }
  .fab-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .fab-icon svg { width: 20px; height: 20px; }
  .fab-title { font-size: 13px; }
  .fab-sub, .fab-dot { display: none; }
}

@media (max-width: 760px) {
  .my-layout { grid-template-columns: 1fr; }
  .my-menu { flex-direction: row; flex-wrap: wrap; }
  .my-menu a { flex: 1; text-align: center; border-bottom: 0; border-right: 1px solid var(--line); }
  .my-menu .link-button { width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .my-status { width: 100%; justify-content: space-between; }
  .my-stat { min-width: 0; flex: 1; }
}

@media (max-width: 420px) {
  /* 아주 좁은 화면에선 공지 칩 숨김 (팝업·배너에 같은 안내 가능) */
  .notice-chip { display: none; }
}
.co-section h2 .muted { font-size: 13px; font-weight: 500; margin-left: 6px; flex: 1; }

@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 22px 64px 1fr; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-right { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 640px) {
  .buy-actions { grid-template-columns: 1fr; }
  .detail-tabs button { font-size: 13.5px; padding: 12px 0; }
  .desc-more strong { font-size: 15.5px; }
  .kakao-band { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .kakao-band-ic { flex-basis: 44px; width: 44px; height: 44px; }
  .kakao-band-ic svg { width: 24px; height: 24px; }
  .kakao-band-text { flex-basis: calc(100% - 56px); }
  .kakao-band-text strong { font-size: 15.5px; }
  .kakao-band-btn { flex: 1; justify-content: center; padding: 13px 16px; }
  /* 하단 고정 바: 카톡 문의 + 장바구니 + 구매하기 */
  .m-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: stretch; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.97); backdrop-filter: saturate(180%) blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,0.08); }
  .m-buybar button { flex: 1; padding: 13px 8px; font-size: 14.5px; border-radius: 10px; }
  .m-buybar .secondary { background: var(--bg); color: var(--text); border: 1px solid var(--accent); }
  .m-buybar .m-kakao { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; padding: 6px 10px; background: #fee500; color: #3c1e1e; border-radius: 10px; font-size: 11px; font-weight: 800; line-height: 1.1; }
  .m-buybar .m-kakao svg { width: 22px; height: 22px; }
  .m-buybar .m-soldout { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--muted); }
  /* 바가 있는 동안 아래 여백 확보 + 오른쪽 아래 상담 버튼은 바로 대체 */
  body:has(.m-buybar) main { padding-bottom: 84px; }
  body:has(.m-buybar) #chat-fab { display: none; }
  body:has(.m-buybar) #toast { bottom: 92px; }
}
.admin-section { margin-bottom: 20px; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-card .ac-main { min-width: 0; }
.admin-card .ac-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* 이미지 업로드 필드 */
.img-field { display: flex; flex-direction: column; gap: 6px; }
.img-title { font-size: 14px; font-weight: 600; }
.img-row { display: flex; gap: 14px; align-items: flex-start; }
.img-preview { flex: 0 0 96px; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-ctrl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.img-ctrl input[type="file"] { font-size: 13px; }
.img-hint { margin: 0; font-size: 12px; }

/* 상품 여러 장 갤러리 (관리자) */
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; min-height: 20px; }
.g-thumb { position: relative; width: 84px; height: 84px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--soft); }
.g-thumb.is-rep { border-color: var(--accent); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-rep { position: absolute; left: 0; bottom: 0; right: 0; background: var(--accent); color: var(--accent-text); font-size: 11px; text-align: center; padding: 1px 0; }
.g-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; line-height: 20px; }
/* 갤러리 순서 변경: 번호 · ◀ ▶ · 끌어다 놓기 */
.g-thumb { cursor: grab; }
.g-no { position: absolute; top: 2px; left: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.g-mv { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 2px; pointer-events: none; opacity: 0; transition: opacity .12s; }
.g-mv button { pointer-events: auto; width: 20px; height: 24px; padding: 0; border-radius: 4px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; line-height: 24px; }
.g-mv button:disabled { visibility: hidden; }
.g-thumb:hover .g-mv, .g-thumb:focus-within .g-mv { opacity: 1; }
.g-thumb.dragging { opacity: 0.4; }
.g-thumb.drop-target { outline: 2px dashed var(--accent); outline-offset: 2px; }
@media (hover: none) { .g-mv { opacity: 1; } }
.menu-pick select { width: 100%; }
/* 옵션 입력 미리보기 */
.opt-preview { display: block; font-size: 12.5px; margin-top: 4px; }
.opt-preview:empty { display: none; }
.opt-ok { display: block; color: #166534; }
.opt-bad { display: block; color: var(--danger); font-weight: 600; }
.cost-ref { margin: -6px 0 12px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--soft); color: var(--text); font-size: 13px; }
/* 품목 메모 참고 상자 (상품 등록 폼) */
.memo-ref { margin: -6px 0 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 6px; background: var(--soft); }
.memo-ref-head { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.memo-ref pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; color: var(--text); max-height: 180px; overflow: auto; }

@media (max-width: 640px) {
  .review-grid, .qc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .qc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 반응형 ─────────────────────────────────── */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .hero-slide { height: 320px; padding: 32px; }
  .hero-title { font-size: 30px; }
  .hero-text { max-width: 80%; }
}
@media (max-width: 640px) {
  /* 모바일 헤더: 한 줄 고정 (칩 · 로고 · 검색/로그인/장바구니) */
  .topbar-inner { height: 56px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .brand { font-size: 18px; letter-spacing: 0.3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right { gap: 8px; font-size: 11.5px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .cart-badge { min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; margin-left: 2px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .hide-sm { display: none !important; }
  .notice-chip { font-size: 11px; padding: 3px 8px; white-space: nowrap; }
  .topbar-left { gap: 5px; }
  .kakao-chip { font-size: 11px; padding: 3px 8px 3px 6px; }
  .home-qc .qc-caption { font-size: 13px; }
  .chip-sep { display: none; }
  /* 마이페이지: 현황·메뉴 글자 줄바꿈 금지 */
  .my-stat .l { white-space: nowrap; font-size: 10.5px; }
  .my-stat .n { font-size: 20px; }
  .my-stat { padding: 6px 2px; }
  .my-status { gap: 2px; }
  .my-arrow { display: none; } /* 6단계라 좁은 화면에선 화살표 생략 */
  .my-menu a { white-space: nowrap; font-size: 13px; padding: 12px 8px; }
  .menu { justify-content: flex-start; gap: 20px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .qc-steps { grid-template-columns: 1fr; }
  .hero { padding: 0 12px; }
  .hero-nav.prev { left: 18px; } .hero-nav.next { right: 18px; }
  .hero-title { font-size: 26px; }
  .hero-text { max-width: 100%; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .summary { flex-direction: column; align-items: stretch; }
  .summary .button { padding: 14px; }
}

/* ── 적립금 ── */
.point-use { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.point-use input { width: 160px; text-align: right; }
.co-section .hint, .my-panel .hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.my-point { display: inline-block; margin-left: 12px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: #444; }
.my-point strong { font-size: 14px; color: var(--text); }
.point-log { margin-top: 14px; font-size: 14px; }
.point-plus { color: #1a7f4b; font-weight: 700; white-space: nowrap; }
.point-minus { color: #c0392b; font-weight: 700; white-space: nowrap; }
.point-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.point-form input[name="amount"] { width: 130px; }
.point-form input[name="reason"] { width: 190px; }
/* ── 회원가입 ── */
.join-bonus { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.join-bonus strong { font-weight: 800; }
.form label.join-agree { align-items: flex-start; font-size: 13px; line-height: 1.5; }
.form label.join-agree input { margin-top: 3px; flex: none; }
.join-agree a { text-decoration: underline; }
.join-gift { max-width: 360px; margin: 24px auto 4px; padding: 24px 20px; border-radius: 18px; background: #111113; color: #fff; }
.join-gift .l { font-size: 13px; letter-spacing: 0.5px; color: #d9b674; font-weight: 700; }
.join-gift .n { font-size: 44px; font-weight: 900; letter-spacing: -1.5px; margin: 6px 0; color: #f0d9a6; }
.join-gift .d { font-size: 13px; color: rgba(255,255,255,0.75); }
/* ── 편집 모드 (관리자가 쇼핑몰 화면에서 바로 편집) ── */
.ed-bar { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ed-bar button { padding: 10px 16px; font-size: 13px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
body.editing .ed-bar { left: 0; right: 0; bottom: 0; background: #1d4ed8; color: #fff; padding: 10px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,0.18); }
body.editing .ed-bar button { padding: 7px 13px; background: #fff; color: #1e3a8a; box-shadow: none; }
body.editing .ed-bar button.secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.ed-hint { opacity: 0.85; }
.ed-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-link { color: #fff; text-decoration: underline; }
body.editing { padding-bottom: 64px; }
body.editing .fab { bottom: 76px; }
.ed-tools { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; gap: 6px; }
.ed-btn { padding: 6px 10px; font-size: 12px; font-weight: 700; border-radius: 999px; background: #1d4ed8; color: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.3); cursor: pointer; }
.ed-btn.ed-x { background: #dc2626; }
.ed-btn:hover { filter: brightness(1.12); }
.ed-section { position: absolute; top: 12px; right: 32px; z-index: 5; font-size: 13px; padding: 8px 14px; }
body.editing .card { outline: 2px dashed transparent; outline-offset: 4px; border-radius: var(--radius); }
body.editing .card:hover { outline-color: #1d4ed8; }
button.card.ed-add { padding: 0; background: none; color: inherit; border: 0; text-align: left; font: inherit; cursor: pointer; }
.ed-add .card-thumb, .ed-add .card-body { display: block; }
.ed-add .card-thumb { display: flex; align-items: center; justify-content: center; background: #eff6ff; border: 2px dashed #1d4ed8; }
.ed-plus { font-size: 56px; font-weight: 300; line-height: 1; color: #1d4ed8; }
.ed-add .card-title { color: #1d4ed8; font-weight: 700; }
.ed-panel { position: fixed; inset: 0; z-index: 90; }
.ed-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.ed-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,0.25); }
.ed-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 16px; }
.ed-drawer-head button { padding: 6px 12px; font-size: 13px; }
.ed-frame { flex: 1; width: 100%; border: 0; }
body.ed-open { overflow: hidden; }
/* 편집 창 안의 관리자 화면: 메뉴·목록 표 없이 폼만 */
body.embed .site-header, body.embed #product-table { display: none; }
body.embed .admin-wrap { padding: 16px 16px 40px; }
body.embed h1 { font-size: 20px; margin-top: 0; }
.ac-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .ed-hint { display: none; } }

/* ── 품목 대장 (내부용) ── */
.cg-body { background: #f6f6f8; }
.cg-head { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 12px; }
.cg-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto 10px; }
.cg-brand { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.cg-brand .muted { font-weight: 500; font-size: 13px; margin-left: 6px; }
.cg-nav { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.cg-search-row { display: flex; gap: 8px; max-width: 1200px; margin: 0 auto; }
.cg-search-row input { flex: 1; font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.cg-search-row button { white-space: nowrap; padding: 0 18px; border-radius: 10px; }
.cg-main { max-width: 1200px; margin: 0 auto; padding: 16px; }
.cg-empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 16px; text-align: center; color: var(--muted); }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cg-card { display: flex; flex-direction: column; text-align: left; padding: 0; background: #fff; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; font: inherit; transition: box-shadow 0.15s, transform 0.15s; }
.cg-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,0.1); transform: translateY(-1px); }
.cg-thumb { position: relative; display: block; aspect-ratio: 1; background: var(--soft); }
.cg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-n { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.cg-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; font-size: 13px; }
.cg-brand-name, .cg-info .cg-brand { font-size: 11px; color: var(--muted); letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600; }
.cg-model { font-weight: 700; font-size: 14px; line-height: 1.3; word-break: break-all; }
.cg-model em { font-style: normal; font-weight: 500; color: var(--muted); }
.cg-sku b { font-family: ui-monospace, Consolas, monospace; background: #eef2ff; color: #3730a3; padding: 1px 6px; border-radius: 4px; }
.cg-price { font-weight: 700; margin-top: 2px; }
.cg-drawer { width: min(720px, 100%); }
.cg-drawer-body { flex: 1; overflow: auto; padding: 16px; }
.cg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cg-photo { margin: 0; background: var(--soft); border-radius: 10px; overflow: hidden; }
.cg-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block; }
.cg-photo figcaption { padding: 8px; text-align: center; }
.cg-photo .button.small { font-size: 12px; padding: 6px 10px; }
.cg-dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.cg-dl dt { color: var(--muted); }
.cg-dl dd { margin: 0; font-weight: 600; word-break: break-all; }
.cg-dl dd.cg-memo { font-weight: 400; white-space: pre-wrap; }
.cg-when { font-size: 12px; margin: 14px 0; }
.cg-actions { margin-top: 8px; }
.cg-drawer .form { padding-bottom: 24px; }
.staff-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; background: #fafafa; }
.staff-box summary { cursor: pointer; font-weight: 600; }
.staff-box .admin-help { margin: 10px 0 12px; }
.staff-box form { align-items: flex-end; }
.tag-staff { display: inline-block; font-size: 11px; background: #dcfce7; color: #166534; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
@media (max-width: 640px) {
  .cg-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cg-nav .muted { display: none; }
  .cg-search-row button { padding: 0 12px; }
  .cg-dl { grid-template-columns: 76px 1fr; }
}

/* ── 품목 대장: 필터·상태·마진·공급처·기록 ── */
.cg-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.cg-filters select { width: auto; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: #fff; }
.cg-card.is-dim .cg-thumb img, .cg-card.is-dim .cg-info { opacity: 0.45; }
.cg-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; color: #374151; }
.cg-thumb .cg-st { position: absolute; left: 8px; top: 8px; }
.cg-st-soldout { background: #fee2e2; color: #991b1b; }
.cg-st-discontinued { background: #e5e7eb; color: #4b5563; }
.cg-st-incoming { background: #dbeafe; color: #1e40af; }
.cg-st-selling { background: #dcfce7; color: #166534; }
/* 쇼핑몰 등록 여부 표시 */
.cg-shop { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #166534; color: #fff; text-decoration: none; }
.cg-shop.off { background: #fef3c7; color: #92400e; }
.cg-shop.none { background: #f3f4f6; color: #6b7280; font-weight: 500; }
.cg-thumb .cg-shop { position: absolute; left: 6px; bottom: 6px; }
.cg-card.is-shop { box-shadow: inset 0 0 0 2px #166534; }
.cg-margin { font-size: 12px; color: #166534; font-weight: 600; }
.cg-margin.low { color: #b45309; }
.cg-shop-price { display: block; font-size: 13px; font-weight: 700; color: #166534; }
.cg-shop-price s { font-size: 12px; font-weight: 400; color: #9ca3af; margin-left: 2px; }
.cg-shop-price.off { color: #92400e; }
.cg-detail-top .cg-shop-price { display: inline-block; }

/* 품목 대장 — 일괄 등록 */
#cg-bulk.on { background: #111; color: #fff; }
.cg-pickbar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; background: #111; color: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.cg-pickbar .link-button { color: #ddd; }
.cg-pickbar .secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cg-pickbar button[data-pk="go"] { background: #fff; color: #111; font-weight: 700; }
.cg-pickbar button:disabled { opacity: 0.4; }
.cg-pickbar-sp { flex: 1; }
.cg-pick { position: absolute; right: 8px; top: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,0.25); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.cg-card.pick-on { box-shadow: inset 0 0 0 3px #111; }
.cg-card.pick-on .cg-pick { background: #111; border-color: #111; }
.cg-card.pick-no { cursor: default; opacity: 0.45; }
.cg-card.pick-no:hover { box-shadow: none; transform: none; }
.cg-drawer.wide.cg-bulk-drawer .cg-drawer-body { display: block; padding: 16px; }
.cg-bulk-common { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.cg-bulk-common label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.cg-bulk-common input, .cg-bulk-common select { width: 150px; padding: 8px 10px; }
.cg-bulk-common input[type="number"] { width: 90px; }
.cg-bulk-common .cg-bulk-check { flex-direction: row; align-items: center; font-weight: 500; padding-bottom: 8px; }
.cg-bulk-common .cg-bulk-check input { width: auto; }
.cg-bulk-help { font-size: 12px; margin: 0 0 10px; }
.cg-bulk-box { padding: 12px 14px 4px; margin-bottom: 10px; background: var(--soft); border-radius: 12px; }
.cg-bulk-box select:disabled { opacity: 0.5; }
.cg-bulk-arrow { align-self: center; padding-top: 18px; color: #9ca3af; font-size: 18px; }
.cg-bulk-common button[data-c="apply"] { padding: 9px 16px; font-weight: 700; }
.cg-bulk-path { font-weight: 600; color: #111; }
.cg-bulk-path.none { color: #b91c1c; }
.cg-bulk-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 120px 120px 90px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cg-bulk-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.cg-bulk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-bulk-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cg-bulk-main input[data-k="name"] { width: 100%; padding: 7px 9px; font-weight: 600; }
.cg-bulk-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.cg-bulk-sub select, .cg-bulk-sub input { width: 110px; padding: 5px 8px; font-size: 13px; }
.cg-bulk-won { width: 100%; padding: 7px 9px; text-align: right; }
.cg-bulk-state { font-size: 12px; text-align: center; }
.cg-bulk-row.is-ok { opacity: 0.55; }
.cg-bulk-row.is-ok .cg-bulk-state { color: #166534; font-weight: 700; }
.cg-bulk-row.is-err .cg-bulk-state { color: #b91c1c; }
.cg-bulk-row.is-run .cg-bulk-state { color: #92400e; }
.cg-bulk-row.is-block { opacity: 0.6; }
.cg-bulk-row.is-changed { background: #fffbeb; }
.cg-bulk-row.is-changed .cg-bulk-state { color: #b45309; font-weight: 700; }
.cg-bulk-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cg-bulk-edit.on { background: #111; color: #fff; }
.cg-bulk-row.is-block .cg-bulk-state { color: #b91c1c; font-size: 11px; }
.cg-bulk-foot { position: sticky; bottom: -16px; display: flex; align-items: center; gap: 12px; padding: 12px 0; background: #fff; border-top: 1px solid var(--line); }
.cg-bulk-foot .cg-bulk-sum { flex: 1; }
.cg-bulk-foot button { padding: 11px 22px; font-weight: 700; }
@media (max-width: 640px) {
  .cg-bulk-row { grid-template-columns: 48px minmax(0, 1fr) 1fr; }
  .cg-bulk-row .cg-bulk-won { grid-column: span 1; }
  .cg-bulk-img { width: 48px; height: 48px; }
}
.cg-detail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.cg-sup { font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cg-sku-row { display: flex; gap: 6px; }
.cg-sku-row input[name="sku"] { flex: 1.3; }
.cg-sku-row input[name="prefix"] { flex: 1; }
.cg-sku-row button { white-space: nowrap; padding: 0 10px; font-size: 12px; }
.cg-logs { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.cg-logs summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cg-logs ul, .cg-loglist { list-style: none; padding: 0; margin: 10px 0 0; }
.cg-log { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cg-log-delete strong { color: #991b1b; }
.cg-chgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cg-chg { background: var(--soft); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.cg-drawer.wide { width: min(900px, 100%); }
.cg-frame { height: 100%; min-height: 70vh; }
.cg-drawer.wide .cg-drawer-body { padding: 0; display: flex; }
.cg-sup-form { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.oi { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.oi-img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.oi-img img { width: 100%; height: 100%; object-fit: cover; }
.oi-supply { font-size: 12px; color: var(--muted); margin-top: 2px; }
.oi-supply b { color: #1e3a8a; }
.oi-warn { color: #b45309; font-weight: 700; }
@media (max-width: 640px) { .cg-search-row { flex-wrap: wrap; } .cg-search-row input { flex-basis: 100%; } .cg-sku-row { flex-wrap: wrap; } }

.cg-album { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: #1d4ed8; text-decoration: underline; }

.opt-values button small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.opt-values button.on small { color: inherit; opacity: 0.85; }

/* 상세페이지 공통 이미지 관리 */
.di-list { display: flex; flex-direction: column; gap: 8px; }
.di-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.di-item img { width: 120px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.di-no { width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.di-btns { margin-left: auto; display: flex; gap: 6px; }
.di-btns button { padding: 4px 9px; font-size: 12px; }
.desc-common { margin-top: 24px; }


/* ── 관리자 통계/퍼널 ── */
.st-range { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.st-kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg); }
.st-kpi .l { font-size: 13px; color: var(--muted); }
.st-kpi .n { font-size: 24px; font-weight: 800; margin: 4px 0 2px; word-break: keep-all; }
.st-kpi .d { font-size: 12px; }
.st-up { color: #2a8c43; font-weight: 600; }
.st-down { color: var(--danger); font-weight: 600; }
.st-h2 { font-size: 18px; margin: 8px 0 14px; }
.st-h2 .muted { font-size: 13px; font-weight: 400; }
.st-funnel { display: grid; gap: 10px; margin-bottom: 28px; }
.st-step { display: grid; grid-template-columns: 180px 1fr 120px; gap: 14px; align-items: center; }
.st-step-l { display: flex; flex-direction: column; }
.st-step-l .muted { font-size: 12px; }
.st-bar { height: 22px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.st-bar-in { height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.4s; }
.st-step-n { display: flex; flex-direction: column; align-items: flex-end; }
.st-step-n strong { font-size: 18px; }
.st-step-n .muted { font-size: 12px; }
.st-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.st-cols h3 { font-size: 15px; margin: 0 0 8px; }
.st-table td, .st-table th { font-size: 13px; padding: 7px 8px; }
.st-table td:not(:nth-child(2)), .st-table th:not(:nth-child(2)) { white-space: nowrap; }
.st-note { font-size: 12px; margin-top: 6px; }
.st-note code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) {
  .st-step { grid-template-columns: 110px 1fr 80px; gap: 8px; }
  .st-kpi .n { font-size: 20px; }
}
/* 품목대장 카드: 쇼핑몰 상품에 넣은 공장명 */
.cg-factory { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }

/* 관리자 탭 줄: 항목이 많아 한 줄에 안 들어가면 두 줄로 접음 (가운데 정렬 + 가로 스크롤 조합은 양 끝이 잘려서 못 보는 문제가 있었음) */
#admin-menu { flex-wrap: wrap; height: auto; min-height: 66px; padding: 10px 0; gap: 8px 26px; overflow: visible; white-space: normal; }

/* ── 비회원 주문 ── */
.co-guest { border: 1px solid var(--line, #e5e5e5); border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; background: #faf8f3; }
.co-guest-t { font-weight: 700; margin-bottom: 4px; }
.co-guest-d { font-size: 14px; color: #555; margin-bottom: 10px; }
.co-guest-d strong { color: #b4832a; }
.co-guest-b { display: flex; gap: 8px; flex-wrap: wrap; }
.co-guest-b .button { padding: 8px 14px; font-size: 14px; }
/* 주문서: 결제 방법 안내 · 안심 문구 · 접힌 추가 입력 · 가입 한 줄 */
.co-payinfo { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--soft, #f6f6f8); font-size: 13.5px; line-height: 1.55; color: #555; }
.co-payinfo b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.co-sale { font-size: 12.5px; color: var(--sale); font-weight: 700; margin-top: 2px; }
.co-sale s { color: var(--muted); font-weight: 500; margin-left: 2px; }
.co-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.co-trust span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #f3f7ef; border: 1px solid #cfe0c2; color: #3f6b2b; }
.co-trust span:first-child { background: #fff6f4; border-color: #f3c8c0; color: #8d2f22; }
.co-more { margin-top: 2px; }
.co-more summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 2px; list-style: none; }
.co-more summary::-webkit-details-marker { display: none; }
.co-more summary::before { content: '+ '; font-weight: 700; }
.co-more[open] summary::before { content: '− '; }
.co-more > .form { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.co-more label .muted { font-weight: 500; font-size: 12px; }
.co-kakao { margin: 0 0 16px; }
.co-paynote { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.co-guest2 { margin: 12px 0 0; font-size: 12.5px; color: #666; text-align: center; line-height: 1.6; }
.co-guest2 strong { color: #b4832a; }
.co-guest2 a { color: #b4832a; font-weight: 700; text-decoration: underline; }
.done-guest { margin-top: 18px; }
.done-guest p { font-size: 14px; color: #444; line-height: 1.6; margin: 0 0 12px; }
.lookup-box .hint { margin-bottom: 14px; }
.lookup-result { max-width: 760px; margin: 24px auto 0; }
.guest-link { margin-top: 10px; font-weight: 600; }
.tag-guest { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #eee; color: #666; }

/* ── 초특가존 ── */
.menu a.hot { color: var(--sale); font-weight: 800; position: relative; }
.menu a.hot .menu-en { color: var(--sale); }
.menu a.hot::after { content: ""; position: absolute; top: 2px; right: -10px; width: 7px; height: 7px; border-radius: 50%; background: var(--sale); box-shadow: 0 0 0 3px rgba(232,64,46,.18); }
.menu a.hot.active { border-bottom-color: var(--sale); }
.sz { background: radial-gradient(1200px 400px at 20% 0%, #2a241b 0%, #141311 55%, #0b0b0b 100%); color: #fff; padding: 34px 0 36px; position: relative; overflow: hidden; margin-bottom: 4px; }
.sz::before { content: ""; position: absolute; inset: 14px 20px; border: 1px solid rgba(214,183,120,.22); border-radius: 14px; pointer-events: none; }
.sz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sz-eyebrow { font-family: "Cinzel", Georgia, serif; font-size: 11px; letter-spacing: 4px; color: #d9bf85; margin-bottom: 8px; }
.sz-title { font-size: 30px; font-weight: 900; line-height: 1.1; letter-spacing: -.5px; }
.sz-title b { color: #f1dca6; font-weight: 900; }
.sz-sub { margin-top: 8px; font-size: 13.5px; color: rgba(255,255,255,.72); }
.sz-sub strong { color: #fff; font-weight: 700; }
.sz-more { font-size: 13px; color: #e4c98c; border-bottom: 1px solid rgba(228,201,140,.5); padding-bottom: 2px; white-space: nowrap; }
.sz-more:hover { color: #fff; }
.sz-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.szc { background: #fff; color: var(--text); border-radius: 12px; overflow: hidden; position: relative; display: block; border: 1px solid var(--line); }
.szc-thumb { aspect-ratio: 1; background: var(--soft); position: relative; overflow: hidden; }
.szc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.szc:hover .szc-thumb img { transform: scale(1.04); }
.sale-badge { position: absolute; left: 10px; top: 10px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: -.2px; z-index: 1; }
.sale-left { position: absolute; right: 10px; top: 10px; background: rgba(17,17,19,.86); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(4px); z-index: 1; }
.sale-left i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ffb13b; margin-right: 5px; vertical-align: 1px; }
.sale-left.last { background: var(--sale); }
.sale-left.last i { background: #fff; }
.szc-soldout { position: absolute; inset: 0; background: rgba(255,255,255,.72); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: #333; letter-spacing: 2px; }
.szc-body { padding: 12px 12px 14px; }
.szc-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; color: #555; margin-bottom: 3px; }
.szc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.szc-list { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.szc-price { display: flex; align-items: baseline; gap: 6px; }
.szc-price .pct { color: var(--sale); font-weight: 900; font-size: 17px; }
.szc-price .won { font-weight: 900; font-size: 18px; letter-spacing: -.3px; }
.szc-foot { margin-top: 8px; font-size: 11.5px; color: #777; display: flex; justify-content: space-between; gap: 8px; }
.szc-foot b { color: var(--sale); font-weight: 700; }
.szc.out .szc-price .pct, .szc.out .szc-price .won, .szc.out .szc-foot b { color: #999; }
/* 일반 상품 카드의 특가 표시 */
.card .sale-badge { left: 10px; top: 10px; }
.card .sale-left { right: 10px; top: 10px; }
.card-price.sale { color: var(--text); }
.card-price.sale .pct { color: var(--sale); margin-right: 6px; }
/* 상세 */
.pd-sale { border: 1.5px solid var(--sale); border-radius: 12px; padding: 16px 18px; background: #fff6f4; margin-bottom: 16px; }
.pd-sale-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pd-sale-top .sale-badge, .pd-sale-top .sale-left { position: static; }
.pd-sale-top .t { font-size: 13px; color: #555; margin-left: auto; }
.pd-list { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.pd-price .pct { color: var(--sale); font-weight: 900; font-size: 26px; }
.pd-price .won { font-weight: 900; font-size: 30px; letter-spacing: -.5px; }
.pd-note { font-size: 12.5px; color: #777; margin-top: 8px; }
.pd-note a { color: var(--sale); font-weight: 700; }
/* 휴대폰: 사진 위 한 줄 초특가 띠 (PC에서는 숨김 — 옆에 가격 박스가 바로 보임) */
.pd-sale-strip { display: none; }
@media (max-width: 900px) {
  .pd-sale-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 9px 12px; border: 1.5px solid var(--sale); border-radius: 10px; background: #fff6f4; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.2; }
  .pd-sale-strip .sale-badge { position: static; }
  .pd-sale-strip b { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
  .pd-sale-strip s { color: var(--muted); font-size: 13px; }
  .pd-sale-strip em { font-style: normal; color: var(--sale); font-weight: 900; }
  .pd-sale-strip .left { margin-left: auto; font-weight: 800; color: var(--sale); white-space: nowrap; }
}
/* /sale 페이지 */
.sale-hero { background: #0f0e0c; color: #fff; padding: 44px 20px 40px; text-align: center; border-radius: 14px; margin: 8px 0 0; }
.sale-hero .sz-eyebrow { margin-bottom: 10px; }
.sale-hero h1 { font-size: 40px; font-weight: 900; margin: 0 0 10px; letter-spacing: -1px; }
.sale-hero h1 b { color: #f1dca6; }
.sale-hero p { margin: 0; color: rgba(255,255,255,.75); font-size: 14.5px; line-height: 1.7; }
.sale-hero p strong { color: #fff; }
.sale-rules { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sale-rules span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.sale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; padding: 34px 0 40px; }
.sale-grid .szc-name { white-space: normal; line-height: 1.35; max-height: 2.7em; overflow: hidden; font-size: 15px; }
.sale-grid .szc-price .won { font-size: 22px; }
.sale-grid .szc-price .pct { font-size: 20px; }
/* 관리자 */
.sale-box { border: 1px solid #f3c7bf; background: #fff8f6; border-radius: 10px; padding: 12px 14px; margin: 6px 0 14px; }
.sale-box .row { margin-top: 8px; }
.tag-sale-adm { display: inline-block; font-size: 11px; font-weight: 700; color: var(--sale); }
.adm-sale { color: var(--sale); font-weight: 700; }
.adm-test { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #888; margin-top: 4px; cursor: pointer; }
.adm-test input { margin: 0; }
tr.is-test td { opacity: .55; }
tr.is-test td:last-child, tr.is-test .adm-test { opacity: 1; }
.adm-sale.out { color: #999; }
@media (max-width: 900px) {
  .sz { padding: 22px 0 24px; }
  .sz::before { inset: 8px 10px; }
  .sz-title { font-size: 22px; }
  .sz-sub { font-size: 12px; }
  .sz-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .sz-grid::-webkit-scrollbar { display: none; }
  .sz-grid .szc { flex: 0 0 160px; }
  .sz-grid .szc-body { padding: 9px 9px 10px; }
  .sz-grid .szc-name { font-size: 12.5px; }
  .sz-grid .szc-price .won { font-size: 15px; }
  .sz-grid .szc-price .pct { font-size: 14px; }
  .sz-grid .szc-foot { font-size: 10.5px; }
  .sale-badge { font-size: 10.5px; padding: 3px 6px; left: 7px; top: 7px; }
  .sale-left { font-size: 10px; padding: 3px 6px; right: 7px; top: 7px; }
  .sale-hero h1 { font-size: 28px; }
  .sale-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 20px 0 30px; }
  .pd-price .won { font-size: 26px; }
  .pd-price .pct { font-size: 22px; }
}
/* 일괄 수정: 판매가·정상가·초특가·수량 4칸 */
.cg-bulk-row { grid-template-columns: 56px minmax(0, 1fr) 340px 90px; }
.cg-bulk-cols { display: grid; grid-template-columns: 100px 100px 100px 56px; gap: 6px; }
.cg-bulk-sp { border-color: #f3b4a8; }
.cg-bulk-sq { text-align: center; }
.cg-bulk-sale label input { border-color: #f3b4a8; }
.cg-sale-now { color: var(--sale); font-weight: 700; }
@media (max-width: 900px) { .cg-bulk-row { grid-template-columns: 48px minmax(0, 1fr); } .cg-bulk-cols { grid-template-columns: 1fr 1fr 1fr 60px; grid-column: 1 / -1; } }
