/* 믿음상패 리뉴얼 시안 고객 화면 공통 겉모습(2026-11-23).
   색 = 깊은 남색(#1B2436) · 금색 포인트(#C2A15A, 작은 표시와 판 위 제목) · 흰 바탕 · 연한 회청 구간(#F1F4F8). 할인 % 빨강은 작게.
   글꼴 = Pretendard. 크리스탈 사진이 주인공: 사진 칸은 각진 모서리 · 가는 선, 여백을 넉넉히.
   중단점: 960px 아래 = 폰 규칙. 쪽마다 css 는 자기 접두어만(home- · ls- · pd- · od- · ph- · rv-). */
:root {
  --navy: #1B2436; --navy-2: #26324A; --navy-3: #33425F; --ink: #1B2436; --ink2: #586173; --ink3: #8A93A3;
  --line: #E1E6ED; --line-2: #CDD4DF; --wash: #F1F4F8; --wash-2: #E7ECF3; --bg: #fff;
  --gold: #C2A15A; --gold-l: #E2C47C; --gold-d: #8E7032; --red: #D33A2C; --ok: #2E7D5B;
  --wrap: 1200px; --mx: 24px; --hd-h: 120px;
  --f: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r: 4px; --sh: 0 1px 2px rgba(27, 36, 54, .06), 0 6px 20px rgba(27, 36, 54, .07);
}
@media (max-width: 959px) { :root { --mx: 16px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--f); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.025em; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: var(--r); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--mx) * 2); margin: 0 auto; padding: 0 var(--mx); }
.mute { color: var(--ink2); }
.ic { width: 18px; height: 18px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
#view { outline: none; min-height: 50vh; }
[hidden] { display: none !important; }

/* ───────── 머리글: 흰 줄(로고 · 내 시안) + 남색 메뉴 띠 ───────── */
#hdr { position: sticky; top: 0; z-index: 50; background: #fff; }
.hd-in { }
.hd-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(var(--wrap) + var(--mx) * 2); height: 72px; margin: 0 auto; padding: 0 var(--mx); }
.hd-logo { display: flex; align-items: center; height: 100%; }
.hd-logo-im { width: auto; height: 38px; }
.hd-my { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; }
.hd-my:hover { border-color: var(--navy); }
.hd-my[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hd-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font: 700 11.5px/20px var(--f); font-style: normal; text-align: center; }
.hd-nav { background: var(--navy); overflow-x: auto; scrollbar-width: none; }
.hd-nav::-webkit-scrollbar { display: none; }
.hd-nav-in { display: flex; gap: 4px; max-width: calc(var(--wrap) + var(--mx) * 2); margin: 0 auto; padding: 0 calc(var(--mx) - 14px); }
.hd-nav a { position: relative; flex: none; display: flex; align-items: center; height: 48px; padding: 0 14px; color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 600; white-space: nowrap; }
.hd-nav a:hover { color: #fff; }
.hd-nav a[aria-current="page"] { color: #fff; }
.hd-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--gold); }
#hdr::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: linear-gradient(rgba(27, 36, 54, .08), transparent); pointer-events: none; }
@media (max-width: 959px) {
  .hd-row { height: 54px; }
  .hd-logo-im { height: 30px; }
  .hd-my { height: 34px; padding: 0 12px; font-size: 13.5px; gap: 5px; }
  .hd-nav a { height: 44px; padding: 0 12px; font-size: 14.5px; }
  .hd-nav-in { padding: 0 4px; gap: 0; }
  .hd-nav a[aria-current="page"]::after { left: 12px; right: 12px; }
  .hd-nav { max-height: 44px; transition: max-height .25s; }
  html.hd-min .hd-nav { max-height: 0; }
}
@media (max-width: 359px) { .hd-nav a { padding: 0 10px; font-size: 14px; } }

/* ───────── 단추 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-k { background: var(--navy); color: #fff; }
.btn-k:hover { background: #0F1624; }
.btn-g { background: var(--gold); color: #1B2436; }
.btn-g:hover { background: #D1B26C; }
.btn-o { background: #fff; border-color: var(--line-2); color: var(--navy); }
.btn-o:hover { border-color: var(--navy); }
.btn-w { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-w:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-s { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn .ic-ar { width: 16px; height: 16px; }
.btn[disabled] { opacity: .45; cursor: default; }
.ul { text-decoration: underline; text-underline-offset: 3px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
.more .ic-ar { width: 14px; height: 14px; }

/* ───────── 구간 머리 ───────── */
.sec { padding: 72px 0; }
.sec-w { background: var(--wash); }
.sh { margin-bottom: 28px; }
.sh-k { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold-d); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.sh-k::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.sh-h { font-size: 32px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.sh-l { margin-top: 10px; max-width: 640px; color: var(--ink2); font-size: 16px; }
@media (max-width: 959px) {
  .sec { padding: 48px 0; }
  .sh { margin-bottom: 20px; }
  .sh-h { font-size: 24px; }
  .sh-l { font-size: 15px; }
}

/* ───────── 값 ───────── */
.pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pr-off { color: var(--red); font-size: 14px; font-weight: 800; }
.pr-now { font-size: 18px; font-weight: 800; color: var(--ink); }
.pr-now small { font-size: .8em; font-weight: 700; margin-left: 1px; }
.pr-list { color: var(--ink3); font-size: 13px; }
.sold { color: var(--ink2); font-size: 13px; }

/* ───────── 상품 칸 ───────── */
.pcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pc { position: relative; min-width: 0; }
.pc-a { display: flex; flex-direction: column; gap: 6px; }
.th { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #46607F; border-radius: 2px; }
.th > img, .th .im { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pc-a:hover .th > img { transform: scale(1.03); }
.th-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14% 22% 10%; background: linear-gradient(180deg, #5C7698 0%, #3D5577 70%, #2E4161 100%); }
.th-none .plq { width: 100%; flex: 1 1 auto; min-height: 0; justify-content: center; }
.th-none .plq-in { max-height: 100%; }
.th-none small { color: rgba(255, 255, 255, .78); font-size: 12px; }
.pc-rank { position: absolute; left: 0; top: 0; z-index: 1; min-width: 34px; height: 34px; padding: 0 8px; background: var(--navy); color: var(--gold-l); font: 800 16px/34px var(--f); text-align: center; }
.pc-name { margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.pc-name b { font-weight: 800; }
@media (max-width: 959px) {
  .pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pc-name { font-size: 14.5px; margin-top: 6px; }
  .pr-now { font-size: 16.5px; }
  .pc-rank { min-width: 28px; height: 28px; font-size: 14px; line-height: 28px; }
}

/* ───────── 고르는 단추(칩) ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 20px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--navy); }
.chip.is-on, .chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { margin-left: 6px; color: var(--ink3); font-size: 12.5px; font-weight: 500; }
.chip.is-on small, .chip[aria-checked="true"] small { color: rgba(255, 255, 255, .7); }

/* ───────── 발송 예정 한 줄 ───────── */
.ship { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 12px; border: 1px solid rgba(194, 161, 90, .7); border-radius: 18px; color: var(--gold-l); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.ship .ic { width: 16px; height: 16px; color: var(--gold); }
.ship-lt { border-color: var(--gold); color: var(--gold-d); background: #FBF7EE; }

/* ───────── 알림 ───────── */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 800; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r); background: var(--navy); color: #fff; font-size: 14.5px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 959px) { .toast { bottom: calc(var(--tour-bar, 0px) + 84px); } }

/* ───────── 줄 표(사진 없는 상품 · 후기 목록) ───────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { color: var(--ink2); font-size: 13px; font-weight: 600; background: var(--wash); }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }

/* ───────── 바닥글 ───────── */
#ftr { margin-top: 0; border-top: 1px solid var(--line); background: #fff; color: var(--ink2); font-size: 13.5px; }
.ft-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; max-width: calc(var(--wrap) + var(--mx) * 2); margin: 0 auto; padding: 48px var(--mx) 56px; }
.ft-k { color: var(--ink); font-size: 14px; font-weight: 700; }
.ft-tel { display: inline-block; margin: 4px 0 8px; color: var(--navy); font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.ft-h { line-height: 1.6; }
.ft-logo { display: inline-block; margin-bottom: 14px; }
.ft-logo-im { height: 30px; width: auto; }
.ft-biz dl { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ft-biz dl div { display: flex; gap: 6px; }
.ft-biz dt { color: var(--ink3); }
.ft-biz dd { color: var(--ink2); }
.ft-note, .ft-cp { margin-top: 10px; color: var(--ink3); font-size: 12.5px; }
@media (max-width: 959px) { .ft-in { grid-template-columns: 1fr; gap: 24px; padding: 36px var(--mx) 40px; } .ft-tel { font-size: 24px; } }

/* 그림 대체(app.js UI.img) */
img.im[data-wait], img.im[data-missing] { visibility: hidden; }
