@font-face { font-family: "Nanas Sans"; src: url("../fonts/NotoSansKR-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nanas Sans"; src: url("../fonts/NotoSansKR-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nanas Sans"; src: url("../fonts/NotoSansKR-700.woff") format("woff"); font-weight: 700; font-display: swap; }
:root {
  /* 브랜드 색: 로고의 숲 초록 #284F20 */
  --brand: #284f20;
  --brand-deep: #1c3a16;
  --brand-soft: #eef2ea;
  --brand-line: #cfdac8;
  --gold: #b49a68;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --ink: #1f2a1c;
  --ink-2: #4f5a4b;
  --muted: #8a9186;
  --line: #e6e3d9;
  --line-2: #d6d2c4;
  --sale: #a8432f;
  --sale-bg: #f6efe6;
  --accent: #284f20;
  --accent-bg: #eef2ea;
  --chip-on: #284f20;
  --placeholder-a: #eef0e8;
  --placeholder-b: #e3e7dc;
  --shadow: 0 1px 2px rgba(31, 42, 28, .05), 0 6px 20px rgba(31, 42, 28, .06);
  --radius: 6px;
  --tap: 52px;
  --font: "Nanas Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 var(--font); letter-spacing: -0.02em; font-feature-settings: "tnum";
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ── 상단 ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: calc(env(safe-area-inset-top) + 10px) 20px 10px;
  background: var(--brand); color: #f6f1e6;
  border-bottom: 1px solid var(--brand-deep); box-shadow: inset 0 -2px 0 rgba(180,154,104,.35);
}
.brand { display: flex; align-items: center; gap: 14px; padding: 2px 10px 2px 0; min-height: var(--tap); }
.brand img { height: 44px; width: auto; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: .24em; color: var(--gold); padding-left: 14px; border-left: 1px solid rgba(246,241,230,.3); line-height: 1.3; text-transform: uppercase; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  height: var(--tap); padding: 0 8px 0 16px; border-radius: 999px;
  background: rgba(255,255,255,.96); border: 1px solid transparent; color: var(--ink);
}
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: var(--ink); height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 40px; height: 40px; border-radius: 50%; font-size: 24px; color: var(--muted); }
.filter-toggle, .cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: var(--tap); padding: 0 18px; border-radius: 999px; font-weight: 500;
  background: transparent; border: 1px solid rgba(246,241,230,.45); color: #f6f1e6;
}
.cart-btn { background: #f6f1e6; color: var(--brand); border-color: #f6f1e6; }
.badge {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--sale); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-toggle .badge { background: var(--gold); }

/* ── 본문 ─────────────────────────────── */
.layout { display: flex; align-items: flex-start; }
.filters {
  position: sticky; top: 75px; width: 300px; flex: none;
  height: calc(100vh - 75px); height: calc(100dvh - 75px);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: var(--surface-2);
}
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.filters-head strong { font-size: 17px; color: var(--brand); font-weight: 700; }
.filters-body { flex: 1; overflow-y: auto; padding: 4px 20px 28px; -webkit-overflow-scrolling: touch; }
.filters-foot { display: none; }
.close-btn { display: none; width: 48px; height: 48px; font-size: 30px; line-height: 1; color: var(--ink-2); }
.link-btn { color: var(--accent); font-weight: 500; font-size: 15px; min-height: 44px; padding: 0 4px; }

.fgroup { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .04em; display: flex; justify-content: space-between; align-items: baseline; }
.fgroup h3 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px; padding: 0 16px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 16px; font-weight: 400; display: inline-flex; align-items: center; gap: 6px;
}
.chip small { color: var(--muted); font-size: 12px; font-weight: 500; }
.chip.on { background: var(--chip-on); color: #fff; border-color: var(--chip-on); font-weight: 500; }
.chip.on small { color: rgba(255,255,255,.7); }
.chip:disabled { opacity: .35; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); min-height: 64px; }
.swatch i {
  width: 40px; height: 40px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative;
}
.swatch.on i { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--brand); }
.swatch.on { color: var(--ink); font-weight: 700; }
.swatch:disabled { opacity: .3; }

.range { padding: 4px 2px 0; }
.range-val { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.range-val span { font-size: 14px; color: var(--muted); font-weight: 500; }
input[type=range] { width: 100%; height: 44px; accent-color: var(--brand); }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.results { flex: 1; min-width: 0; padding: 18px 22px 40px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.count { font-size: 16px; color: var(--ink-2); }
.count b { color: var(--brand); font-size: 24px; font-weight: 700; margin-right: 2px; }
.sort { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 3px; }
.sort button { min-height: 42px; padding: 0 16px; border-radius: 3px; font-size: 15px; color: var(--ink-2); }
.sort button.on { background: var(--brand); color: #fff; font-weight: 500; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.active-chips:empty { display: none; }
.active-chips button {
  min-height: 38px; padding: 0 12px 0 14px; border-radius: 4px; font-size: 14px;
  background: var(--accent-bg); color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px 18px; margin-top: 14px; }
.card {
  text-align: left; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s;
}
.card:active { transform: scale(.985); }
.thumb { position: relative; aspect-ratio: 4 / 3.4; background: var(--placeholder-a); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    repeating-linear-gradient(135deg, var(--placeholder-a) 0 14px, var(--placeholder-b) 14px 15px);
  color: var(--muted); text-align: center; padding: 12px;
}
.ph b { font-size: 22px; font-weight: 500; color: var(--brand); letter-spacing: -0.02em; }
.ph .ph-logo { width: 54px; height: auto; opacity: .9; margin-bottom: 4px; }
.ph span { font-size: 13px; }
.ph svg { width: 30px; height: 30px; color: #b3a89c; }
.tag-brand {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 3px;
  background: rgba(255,255,255,.94); font-size: 12px; font-weight: 500; color: var(--brand); letter-spacing: .04em;
}
.tag-off {
  position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 3px;
  background: var(--brand); color: #f6f1e6; font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.card-mat { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 5px; margin: 4px 0 2px; min-height: 16px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dots em { font-style: normal; font-size: 12px; color: var(--muted); align-self: center; }
.card-price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.pline { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pline .lbl { font-size: 11px; font-weight: 700; color: var(--brand); border: 1px solid var(--brand-line); padding: 0 6px; border-radius: 3px; letter-spacing: .03em; }
.pline s { color: var(--muted); font-size: 13px; }
.pline .off { color: var(--sale); font-weight: 700; font-size: 14px; }
.pline .sale { font-weight: 700; font-size: 18px; margin-left: auto; color: var(--brand-deep); }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.foot { margin-top: 36px; font-size: 13px; color: var(--muted); text-align: center; }

.primary-btn, .ghost-btn {
  min-height: var(--tap); padding: 0 22px; border-radius: 4px; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.primary-btn { background: var(--brand); color: #f6f1e6; }
.ghost-btn { border: 1px solid var(--line-2); background: var(--surface); }

/* ── 상세 ─────────────────────────────── */
.detail {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.d-bar {
  display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 10px) 20px 10px;
  background: var(--brand); color: #f6f1e6; box-shadow: inset 0 -2px 0 rgba(180,154,104,.35);
}
.d-bar img { height: 36px; }
.d-bar .back { display: flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 16px 0 8px; border-radius: 999px; font-weight: 500; color: #f6f1e6; border: 1px solid rgba(246,241,230,.45); }
.d-bar .spacer { flex: 1; }
.d-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.d-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 18px 24px 40px; max-width: 1400px; margin: 0 auto; }
.gallery { position: sticky; top: 0; align-self: start; }
.g-main { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; border: 1px solid var(--line); }
.g-main { touch-action: pan-y; }
.g-slide { cursor: zoom-in; }
.g-zoom { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.g-zoom svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.g-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; -webkit-user-drag: none; user-select: none; }
.g-track { display: flex; height: 100%; transition: transform .38s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.g-track.drag { transition: none; }
.g-slide { flex: 0 0 100%; height: 100%; }
.g-main .ph b { font-size: 34px; }
.g-main .ph span { font-size: 16px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.g-count { position: absolute; bottom: 12px; right: 12px; background: rgba(42,37,34,.7); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.g-thumbs button { flex: none; width: 84px; height: 84px; border-radius: 4px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.g-thumbs button.on { box-shadow: 0 0 0 2px var(--brand); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.info h1 { margin: 8px 0 2px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); }
.info h1::after { content: ''; display: block; width: 36px; height: 2px; background: var(--gold); margin-top: 10px; }
.info .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-2); font-size: 16px; }
.info .meta .pill { padding: 3px 10px; border-radius: 3px; background: var(--brand); color: #f6f1e6; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.sec-title { margin: 18px 0 8px; font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .04em; display: flex; gap: 8px; align-items: baseline; }
.sec-title b { color: var(--ink); font-size: 16px; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtn { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 16px; }
.cbtn i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cbtn.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 700; color: var(--brand); }
.no-color { color: var(--muted); font-size: 15px; }

.size-tabs { display: flex; gap: 8px; }
.size-tabs button {
  flex: 1; min-height: 60px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
}
.size-tabs button b { font-size: 18px; }
.size-tabs button small { font-size: 13px; color: var(--muted); }
.size-tabs button.on { background: var(--brand); color: #f6f1e6; border-color: var(--brand); }
.size-tabs button.on small { color: rgba(255,255,255,.75); }

.ptable { margin-top: 12px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow .nm { font-weight: 500; font-size: 18px; }
.prow .pcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prow .iph { flex: none; width: 56px; height: 56px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); padding: 0; }
.prow .iph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prow .band { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--brand); border-radius: 4px; font-size: 12px; font-weight: 500; color: var(--brand); vertical-align: 3px; letter-spacing: .02em; }
.prow .sp { font-size: 14px; color: var(--muted); }
.prow .sp em { font-style: normal; color: var(--accent); font-weight: 500; margin-left: 4px; }
.prow .pr { text-align: right; line-height: 1.3; }
.prow .pr s { color: var(--muted); font-size: 14px; }
.prow .pr .off { color: var(--sale); font-weight: 700; margin-right: 6px; }
.prow .pr .sale { font-size: 20px; font-weight: 700; color: var(--brand-deep); }
.add {
  min-width: 64px; min-height: var(--tap); padding: 0 14px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.add.done { background: var(--gold); border-color: var(--gold); color: #fff; }
.prow.set { background: var(--brand-soft); border-top: 1px solid var(--brand-line); }
.prow.set .nm { font-size: 20px; font-weight: 700; color: var(--brand); }
.prow.set .sale { font-size: 28px; color: var(--brand); }
.prow.set .add { background: var(--brand); color: #f6f1e6; }
.set-desc { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ── 장바구니 ─────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(42,37,34,.35); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(520px, 100%);
  background: var(--bg); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.12);
  animation: slide .2s ease-out;
}
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.c-head { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 14px) 20px 12px; border-bottom: 1px solid var(--line); }
.c-head h2 { margin: 0; font-size: 22px; color: var(--brand); }
.c-list { flex: 1; overflow-y: auto; padding: 8px 20px; }
.c-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-img { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--placeholder-a); position: relative; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.c-img .ph b { font-size: 13px; } .c-img .ph span, .c-img .ph svg { display: none; }
.c-name { font-weight: 500; font-size: 17px; }
.c-sub { font-size: 14px; color: var(--ink-2); }
.c-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 10px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); }
.stepper button { width: 48px; height: 46px; font-size: 22px; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; }
.c-price { text-align: right; line-height: 1.25; }
.c-price s { color: var(--muted); font-size: 13px; }
.c-price b { display: block; font-size: 18px; color: var(--brand-deep); }
.c-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.c-sum { padding: 16px 20px calc(env(safe-area-inset-bottom) + 16px); border-top: 1px solid var(--line); background: var(--surface); }
.c-sum .r { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-2); padding: 3px 0; }
.c-sum .r.disc { color: var(--sale); }
.c-sum .r.total { font-size: 18px; color: var(--ink); font-weight: 700; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); align-items: baseline; }
.c-sum .r.total b { font-size: 32px; letter-spacing: -0.02em; color: var(--brand); }
.c-actions { display: flex; gap: 10px; margin-top: 12px; }
.c-actions .ghost-btn { flex: none; }
.c-actions .primary-btn { flex: 1; }
.remove { font-size: 14px; color: var(--muted); text-decoration: underline; min-height: 40px; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 28px); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--brand); color: #f6f1e6; padding: 14px 22px; border-radius: 4px; font-weight: 500; font-size: 16px;
  transition: .2s; box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── 세로 화면·작은 태블릿 ─────────────── */
@media (max-width: 1099px) {
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 51; width: min(380px, 92vw); height: 100%;
    transform: translateX(-102%); transition: transform .22s ease-out; box-shadow: 10px 0 40px rgba(0,0,0,.12);
    padding-top: env(safe-area-inset-top);
  }
  .filters.open { transform: none; }
  .close-btn { display: block; }
  .filters-head { gap: 8px; }
  .filters-head strong { flex: 1; }
  .filters-foot { display: block; padding: 12px 20px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--line); }
  .filters-foot .primary-btn { width: 100%; }
}
@media (min-width: 1100px) { .filter-toggle { display: none; } }
@media (max-width: 860px) {
  .d-wrap { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .brand-sub { display: none; }
  .cart-btn span:not(.badge) { display: none; }
  .cart-btn { padding: 0 14px; }
}
@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; padding-left: 16px; padding-right: 16px; }
  .search { order: 5; flex-basis: 100%; }
  .brand { margin-right: auto; }
  .results { padding: 14px 16px 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-name { font-size: 16px; }
  .pline .sale { font-size: 16px; }
  .d-wrap { padding: 16px; }
  .info h1 { font-size: 26px; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow .add { grid-column: 1 / -1; width: 100%; }
}

.card:active { box-shadow: var(--shadow); }
.c-head { background: var(--surface-2); }
.foot img { height: 56px; margin: 0 auto 10px; opacity: .95; }
@media (max-width: 860px) { .brand-sub { display: none; } .brand img { height: 38px; } }
.c-img .ph .ph-logo { display: none; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.seg button { min-height: 46px; font-size: 16px; color: var(--ink-2); border-left: 1px solid var(--line-2); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--brand); color: #f6f1e6; font-weight: 500; }

/* BEST · NEW */
.tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag-best, .tag-new, .tag-hot { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #fff; line-height: 1.3; }
.tag-new { background: #c0392b; }
.tag-best { background: #a8843f; }
.tag-hot { background: #d9701e; }
.info .meta .tag-best, .info .meta .tag-new, .info .meta .tag-hot { font-size: 12px; padding: 3px 9px; }
.tabs { display: flex; gap: 6px; margin-right: auto; }
.tabs button { min-height: 46px; padding: 0 20px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.tabs button small { font-size: 12px; color: var(--muted); }
.tabs button.on { background: var(--brand); color: #f6f1e6; border-color: var(--brand); }
.tabs button.on small { color: rgba(246,241,230,.75); }
.tabs button[data-tag="BEST"]:not(.on) { color: #8a6a2c; }
.tabs button[data-tag="NEW"]:not(.on) { color: #b03a2e; }
.tabs button[data-tag="HOT"]:not(.on) { color: #b85a12; }
.tabs + .count { margin-left: 4px; }

/* 사진 크게 보기 (전체 화면 + 손가락 확대) */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; touch-action: none; overflow: hidden; user-select: none; -webkit-user-select: none; animation: fade .18s; }
.viewer[hidden] { display: none; }
.v-track { display: flex; height: 100%; transition: transform .32s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.v-track.drag { transition: none; }
.v-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.v-slide img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; pointer-events: none; }
.v-slide img.anim { transition: transform .25s ease-out; }
.v-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 14px 20px; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; }
.v-top > * { pointer-events: auto; }
.v-count { color: #fff; font-size: 17px; }
.v-close { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.v-close svg, .v-nav svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.v-nav.prev { left: 14px; } .v-nav.next { right: 14px; }
.viewer.zoomed .v-nav, .viewer.single .v-nav { opacity: 0; pointer-events: none; }
.v-hint { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255,255,255,.16); color: #fff; font-size: 15px; padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: opacity .6s; pointer-events: none; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.v-hint.off { opacity: 0; }

/* ── 카탈로그 설정이 보이는 부분 (손님 화면) ── */
.notice { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 4px; background: var(--sale-bg); color: var(--sale); border: 1px solid #ecd9c8; font-weight: 700; font-size: 17px; }
.notice svg { color: var(--sale); }
.soldout-cover { position: absolute; inset: 0; background: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; }
.soldout-cover span { background: rgba(31,42,28,.82); color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 3px; letter-spacing: .06em; }
.card.is-soldout .card-price { opacity: .55; }
.sold-banner { margin: 10px 0 0; padding: 10px 14px; border-radius: 4px; background: #f1efe9; color: var(--ink-2); font-weight: 500; border: 1px solid var(--line-2); }
.sale-banner { margin: 10px 0 0; padding: 10px 14px; border-radius: 4px; background: var(--sale-bg); color: var(--sale); font-weight: 700; }
.cbtn.sold { color: var(--muted); }
.cbtn.sold i { opacity: .45; }
.cbtn em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--muted); padding: 1px 7px; border-radius: 3px; }
.add.sold, .prow.set .add.sold { border-color: var(--line-2); color: var(--muted); background: #f1efe9; cursor: default; }
.brand img { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.brand { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* ── 관리자 모드 ── */
.admin-bar { position: sticky; top: 75px; z-index: 19; display: flex; align-items: center; gap: 10px; padding: 8px 20px; background: #2b2b2b; color: #f3efe6; font-size: 15px; }
.admin-bar span { flex: 1; min-width: 0; }
.admin-bar b { color: #f2c26b; }
.admin-bar button { min-height: 44px; padding: 0 18px; border-radius: 4px; background: #f3efe6; color: #2b2b2b; font-weight: 700; }
.admin-bar button[data-a="exit"] { background: transparent; color: #f3efe6; border: 1px solid rgba(243,239,230,.5); }
body.admin-on .filters { top: 135px; height: calc(100dvh - 135px); }
.card.is-hidden { opacity: .5; border-style: dashed; }
.adm-edit { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: #2b2b2b; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.adm-edit svg { width: 18px; height: 18px; }
.adm-flags { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; }
.adm-flags span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: #2b2b2b; color: #f3efe6; }
.adm-detail { margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 4px; background: #2b2b2b; color: #fff; font-weight: 700; font-size: 14px; }

.a-login { position: fixed; inset: 0; z-index: 90; background: rgba(20,24,18,.6); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.a-login-box { width: 340px; max-width: 100%; background: var(--surface); border-radius: 8px; padding: 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.a-login-title { font-size: 20px; font-weight: 700; color: var(--brand); }
.a-login-sub { color: var(--muted); margin-top: 4px; min-height: 26px; }
.a-login-sub b { color: var(--sale); }
.a-dots { display: flex; justify-content: center; gap: 12px; margin: 16px 0 18px; }
.a-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand); }
.a-dots i.on { background: var(--brand); }
.a-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a-pad button { height: 64px; border-radius: 6px; background: var(--brand-soft); font-size: 26px; font-weight: 500; color: var(--ink); }
.a-pad button.sm { font-size: 16px; color: var(--ink-2); background: #f1efe9; }
.a-pad button:active { background: var(--brand-line); }
.a-login-ok { width: 100%; margin-top: 14px; }

.a-scrim { position: fixed; inset: 0; z-index: 79; background: rgba(20,24,18,.45); animation: fade .15s; }
.a-sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: 560px; max-width: 100%; background: var(--bg); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.25); animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.a-sh-head { display: flex; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top) + 12px) 12px 12px 18px; background: #2b2b2b; color: #f3efe6; }
.a-sh-head .close-btn { color: #f3efe6; }
.a-sh-img { width: 64px; height: 54px; border-radius: 4px; overflow: hidden; background: #444; flex: none; }
.a-sh-img img { width: 100%; height: 100%; object-fit: cover; }
.a-sh-head > div:nth-child(2) { flex: 1; min-width: 0; }
.a-sh-name { font-size: 20px; font-weight: 700; }
.a-sh-sub { font-size: 13px; color: #c9c3b6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-sh-body { flex: 1; overflow-y: auto; padding: 6px 18px 40px; -webkit-overflow-scrolling: touch; }
.a-sh-body section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.a-sh-body h4 { margin: 0 0 10px; font-size: 16px; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.a-row h4 { margin-bottom: 2px; }
.a-hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.a-hint b { color: var(--brand-deep); }
.a-warn { margin: 10px 0 0; font-size: 13px; color: var(--sale); background: var(--sale-bg); padding: 8px 10px; border-radius: 4px; }
.a-badge { font-size: 12px; font-weight: 700; color: #fff; background: var(--sale); padding: 2px 8px; border-radius: 3px; }
.a-link { color: var(--accent); text-decoration: underline; font-size: 14px; }
.a-tags { display: flex; gap: 10px; }
.a-tag { min-height: 52px; min-width: 96px; border-radius: 4px; font-weight: 700; letter-spacing: .08em; background: var(--surface) !important; border: 2px solid var(--line-2); color: var(--muted) !important; padding: 0 16px; }
.a-tag.on.tag-best { background: #a8843f !important; border-color: #a8843f; color: #fff !important; }
.a-tag.on.tag-new { background: #c0392b !important; border-color: #c0392b; color: #fff !important; }
.a-tag.on.tag-hot { background: #d9701e !important; border-color: #d9701e; color: #fff !important; }
.a-switch { width: 64px; height: 36px; border-radius: 999px; background: #cfccc2; position: relative; flex: none; transition: background .15s; }
.a-switch i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.a-switch.on { background: var(--brand); }
.a-switch.on i { transform: translateX(28px); }
.a-rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-rate > button, .a-pin > button:not(.primary-btn):not(.ghost-btn) { width: 56px; height: 52px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-2); font-size: 18px; font-weight: 700; }
.a-rate-val { min-width: 84px; text-align: center; font-size: 30px; font-weight: 700; color: var(--sale); }
.a-rate-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.a-rate-quick button { min-height: 44px; padding: 0 12px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 500; }
.a-rate-quick button.on { background: var(--sale); color: #fff; border-color: var(--sale); }
.a-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.a-btns .primary-btn, .a-btns .ghost-btn, .a-pin .primary-btn, .a-pin .ghost-btn, .a-tools .primary-btn { min-height: 48px; font-size: 16px; padding: 0 18px; }
button:disabled { opacity: .4; cursor: default; }
.ghost-btn.arm { border-color: var(--sale); color: var(--sale); font-weight: 700; }
.a-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.a-color { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.a-color i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.a-color em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brand); }
.a-color.on { background: #f1efe9; color: var(--muted); }
.a-color.on em { color: #fff; background: var(--muted); padding: 1px 7px; border-radius: 3px; }
.a-pin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.a-pin > div { min-width: 60px; text-align: center; font-size: 22px; font-weight: 700; }

.a-panel { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; animation: up .18s ease-out; }
.a-p-bar { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px 20px; background: #2b2b2b; color: #f3efe6; }
.a-p-bar > b { font-size: 18px; white-space: nowrap; }
.a-p-bar nav { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.a-p-bar nav button { min-height: 48px; padding: 0 14px; border-radius: 4px; white-space: nowrap; color: #d9d3c6; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.a-p-bar nav button.on { background: #f3efe6; color: #2b2b2b; font-weight: 700; }
.a-p-close { min-height: 48px; padding: 0 18px; border-radius: 4px; border: 1px solid rgba(243,239,230,.5); font-weight: 700; }
.a-p-body { flex: 1; overflow-y: auto; padding: 18px 22px 60px; -webkit-overflow-scrolling: touch; }
.a-lead { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.a-empty { color: var(--muted); padding: 30px 0; text-align: center; }
.a-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.a-tools.a-col { flex-direction: column; align-items: stretch; max-width: 360px; }
.a-input { min-height: 48px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
input.a-input[type=search] { flex: 1; min-width: 200px; }
.a-area { width: 100%; min-height: 90px; padding: 12px; resize: vertical; margin-bottom: 12px; }
.a-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.a-seg button { min-height: 44px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; }
.a-seg button small { color: var(--muted); }
.a-seg button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.a-seg button.on small { color: rgba(255,255,255,.75); }
.a-table { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.a-tr { display: grid; grid-template-columns: minmax(0, 1fr) 80px 132px 84px 92px 56px; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); }
.a-pend .a-tr { grid-template-columns: minmax(0, 1fr) 70px 90px auto; }
.a-tr:first-child { border-top: 0; }
.a-th { font-size: 13px; font-weight: 700; color: var(--muted); position: sticky; top: -18px; background: var(--surface); z-index: 1; }
.a-tr.off { background: #f4f2ec; }
.a-tr.off .a-td-name b { color: var(--muted); }
.a-td-name { text-align: left; min-height: 48px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.a-td-name b { font-size: 16px; }
.a-td-name small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-tagmini { display: flex; gap: 4px; }
.a-tagmini button { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--line-2); font-weight: 700; color: var(--muted); background: var(--surface); }
.a-tagmini button.on { color: #fff; border-color: transparent; }
.a-tagmini button.on.tag-best { background: #a8843f; } .a-tagmini button.on.tag-new { background: #c0392b; } .a-tagmini button.on.tag-hot { background: #d9701e; }
.a-td-rate, .a-td-pin { min-height: 44px; border-radius: 4px; border: 1px solid var(--line); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.a-td-rate small { font-size: 11px; font-weight: 500; color: var(--muted); }
.a-td-rate.changed { color: var(--sale); border-color: #ecd9c8; background: var(--sale-bg); }
.a-sc { display: inline-block; margin-left: 4px; font-size: 11px; color: var(--sale); font-weight: 700; }
.a-strong { color: var(--sale); font-weight: 700; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.a-card h4 { margin: 0 0 4px; font-size: 17px; color: var(--brand); }
.a-card p { margin: 0; color: var(--muted); font-size: 14px; }
.a-sales { display: grid; gap: 10px; }
.a-sale { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.a-num { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.a-num input { width: 80px; }
.a-grow { flex: 1; min-width: 160px; }
.a-state { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 8px; border-radius: 3px; }
.a-del { min-height: 44px; padding: 0 12px; color: var(--sale); text-decoration: underline; }
.a-inline { display: inline-flex; align-items: center; gap: 8px; }
.a-log { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.a-log-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); min-height: 60px; }
.a-log-row:first-child { border-top: 0; }
.a-log-row > span:first-child { color: var(--muted); width: 104px; flex: none; white-space: nowrap; }
.a-who { font-size: 13px; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 3px; flex: none; }
.a-log-row.undone { color: var(--muted); text-decoration: line-through; }
.a-log-row .ghost-btn { min-height: 44px; font-size: 14px; padding: 0 14px; }
@media (max-width: 860px) {
  .admin-bar span { font-size: 13px; }
  .a-tr { grid-template-columns: minmax(0, 1fr) 70px 132px; }
  .a-tr > :nth-child(n+4) { display: none; }
  .a-pend .a-tr > :nth-child(n+4) { display: initial; }
  .a-p-bar > b { display: none; }
}

/* ── 계산기 ── */
.calc-btn { position: relative; display: flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 999px; border: 1px solid rgba(246,241,230,.45); color: #f6f1e6; flex: none; }
.calc-btn svg { width: 24px; height: 24px; }
.calc-scrim { position: fixed; inset: 0; z-index: 84; background: rgba(20,24,18,.45); animation: fade .15s; }
.calc { position: fixed; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 380px; max-width: calc(100% - 32px); max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--surface); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 14px 16px 16px; animation: fade .15s; }
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calc-head b { font-size: 18px; color: var(--brand); }
.calc-head button { width: 44px; height: 44px; font-size: 30px; line-height: 1; color: var(--ink-2); }
.calc-screen { background: var(--brand-soft); border-radius: 6px; padding: 10px 14px; text-align: right; min-height: 104px; display: flex; flex-direction: column; justify-content: flex-end; }
.calc-hist { font-size: 14px; color: var(--muted); min-height: 20px; word-break: break-all; }
.calc-expr { font-size: 32px; font-weight: 700; color: var(--ink); word-break: break-all; line-height: 1.25; }
.calc-res { font-size: 18px; color: var(--brand); font-weight: 500; min-height: 24px; }
.calc-disc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; }
.calc-disc button { height: 46px; border-radius: 6px; background: var(--sale-bg); color: var(--sale); font-weight: 700; font-size: 16px; border: 1px solid #ecd9c8; }
.calc-pad { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 58px; gap: 8px; }
.calc-pad button { border-radius: 6px; background: #f3f1ea; font-size: 24px; font-weight: 500; color: var(--ink); }
.calc-pad button:active, .calc-disc button:active { filter: brightness(.92); }
.calc-pad .fn { background: #e6e3d9; font-size: 20px; }
.calc-pad .op { background: var(--brand-soft); color: var(--brand); font-size: 28px; }
.calc-pad .eq { background: var(--brand); color: #fff; grid-row: span 2; font-size: 28px; }
.calc-pad button[data-k="0"] { grid-column: span 1; }
.calc-add { width: 100%; margin-top: 12px; }
.calc-add b { margin: 0 2px; }
.c-etc { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; border-radius: 4px; }

/* ── 맨 위로 ── */
.to-top { position: fixed; right: 24px; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #f6f1e6; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(31,42,28,.28);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 26px; height: 26px; stroke-width: 2.4; }

/* ── 가격 게이지 (부드럽게, 채워진 막대) ── */
#range { -webkit-appearance: none; appearance: none; height: 44px; background: transparent; touch-action: pan-y; --fill: 100%; }
#range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--brand) var(--fill), #dcd8cc var(--fill)); }
#range::-moz-range-track { height: 8px; border-radius: 999px; background: #dcd8cc; }
#range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--brand); }
#range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .12s; }
#range:active::-webkit-slider-thumb { transform: scale(1.15); }
#range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.chip:disabled small { color: var(--muted); }

/* ── 많이 본 제품 (관리자) ── */
.a-stats .a-tr { grid-template-columns: 48px minmax(0, 1fr) 80px 80px 80px 64px; }
.a-stats .a-th button { font-weight: 700; color: var(--muted); text-align: left; }
.a-stats .a-th button.on { color: var(--brand); }
.a-rank { font-weight: 700; color: var(--muted); text-align: center; }
.a-hotmark { font-size: 12px; font-weight: 700; color: #fff; background: #d9701e; padding: 2px 8px; border-radius: 3px; justify-self: start; }
@media (max-width: 860px) { .a-stats .a-tr { grid-template-columns: 40px minmax(0, 1fr) 60px 60px 60px; } .a-stats .a-tr > :nth-child(6) { display: none; } .a-stats .a-tr > :nth-child(n+3) { display: initial; } }
@media (max-width: 560px) { .calc-btn { order: 3; } }

/* ── 장바구니 견적서 (2026-10-15) ── */
.quote-btn { width: 100%; min-height: 56px; margin: 4px 0 10px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 17px; }
.quote-btn small { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.quote-btn svg { width: 22px; height: 22px; }
.qs-scrim { position: fixed; inset: 0; z-index: 86; background: rgba(20,24,18,.5); animation: fade .15s; }
.qsend { position: fixed; z-index: 87; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 820px; max-width: calc(100% - 32px); max-height: calc(100dvh - 24px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: fade .15s; }
.qs-box { padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.qs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.qs-head > div { display: flex; flex-direction: column; gap: 4px; }
.qs-head > div > b { font-size: 26px; color: var(--brand); }
.qs-head span { font-size: 15px; color: var(--ink-2); }
.qs-head span b { color: var(--brand); }
.qs-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 28px; line-height: 1; color: var(--ink-2); flex: none; }
.qs-body { display: flex; gap: 28px; align-items: stretch; }
.qs-left { width: 300px; flex: none; background: var(--bg); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qs-left > b { font-size: 17px; }
.qs-left > span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.qs-qr { width: 232px; height: 232px; image-rendering: pixelated; background: #fff; border-radius: 8px; }
.qs-qr-err { display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--sale); padding: 16px; line-height: 1.6; }
.qs-right { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.qs-right .primary-btn, .qs-right .ghost-btn { min-height: 60px; font-size: 17px; }
.qs-right p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.qs-right p small { color: var(--muted); }
@media (max-width: 700px) { .qs-body { flex-direction: column; } .qs-left { width: auto; } .qs-box { padding: 20px; } }

/* 견적서 화면 (손님 휴대폰) */
body.quote-mode > :not(#quote):not(.toast) { display: none !important; }
body.quote-mode { background: #edeae4; }
.quote { min-height: 100dvh; display: flex; justify-content: center; }
.q-wrap { width: 100%; max-width: 560px; background: var(--surface-2); min-height: 100dvh; padding-bottom: 32px; }
.q-head { background: var(--brand); color: #fff; padding: calc(env(safe-area-inset-top) + 26px) 22px 22px; }
.q-brand { font-size: 13px; letter-spacing: .24em; opacity: .85; }
.q-head h1 { margin: 4px 0 0; font-size: 30px; }
.q-meta { display: flex; justify-content: space-between; font-size: 13px; opacity: .9; margin-top: 8px; }
.q-list { padding: 18px 16px 4px; display: flex; flex-direction: column; gap: 12px; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-top i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.q-top b { font-size: 17px; }
.q-top span { font-size: 12px; color: var(--ink-2); }
.q-item { font-size: 14px; font-weight: 500; }
.q-item span { color: var(--ink-2); font-weight: 400; }
.q-item em { font-style: normal; color: var(--brand); font-weight: 700; }
.q-comp { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.q-price { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; }
.q-price s { font-size: 13px; color: var(--muted); }
.q-off { font-size: 13px; color: var(--sale); font-weight: 700; }
.q-price b { font-size: 18px; }
.q-etc { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.q-etc s { color: var(--muted); font-size: 12px; }
.q-etc b { color: var(--ink); font-size: 16px; }
.q-sum { margin: 14px 16px 0; padding: 16px 4px 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.q-sum > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.q-sum .q-disc { color: var(--sale); }
.q-sum .q-total { align-items: baseline; color: var(--ink); font-weight: 700; font-size: 16px; }
.q-sum .q-total b { font-size: 28px; color: var(--brand); }
.q-small { margin: 10px 20px 0; font-size: 12px; color: var(--muted); }
.q-note { margin: 14px 16px 0; padding: 14px 16px; background: #f2efe9; border-radius: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.q-btns { display: flex; gap: 10px; margin: 18px 16px 0; }
.q-btns button { flex: 1; min-height: 52px; }

/* ── 맞춤 세트 ── */
.size-tabs { flex-wrap: wrap; }
.size-tabs button { min-width: 120px; }
.size-tabs .m-tab:not(.on) { border-style: dashed; border-color: var(--brand-line); color: var(--brand); }
.m-lead { padding: 12px 16px; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mrow.picked { background: #f6f9f3; }
.mstep { justify-self: end; }
.mstep button:disabled { opacity: .3; }
.m-sum .set-desc { line-height: 1.5; }
.m-near { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.m-near b { color: var(--brand); }
.m-near small { color: var(--muted); }
.add:disabled { opacity: .4; }
.a-h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 700; }

/* 계산기 품명·음수(특별 할인) (2026-10-15) */
.calc-name { width: 100%; margin-top: 12px; height: 48px; padding: 0 14px; border: 1px solid var(--line, #ddd6ca); border-radius: 6px; font: inherit; font-size: 17px; background: #fff; color: inherit; }
.calc-name:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.calc-add.minus { background: var(--sale); border-color: var(--sale); }
.c-etc.minus { background: var(--sale-bg); color: var(--sale); }
.c-price.minus b { color: var(--sale); }
.q-etc.q-minus b { color: var(--sale); }

/* 관리자: 유형 (2026-10-17) */
.a-types { display: flex; flex-wrap: wrap; gap: 8px; }
.a-type { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 15px; }
.a-type.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.a-typeseg { flex-wrap: wrap; align-items: center; }
.a-typeseg > span { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 8px; }
