/* ─────────────────────────────────────────────────────────────
   피오디맨 — 출간 패키지 상세 (package-500 · package-1000 · packages)
   site.css 토큰만 쓴다. 네이비 1색 + 골드 극소량 · 그림자 없음 · 세리프 없음.
   ───────────────────────────────────────────────────────────── */

/* 경로 표시 */
.pd-crumb { padding-top: 24px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.pd-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pd-crumb i { font-style: normal; color: var(--line); }

/* ── 상품 히어로: 사진 + 구매 상자 ───────────────────── */
.pd-hero { padding: 24px 0 var(--section); }
.pd-hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: start; }
.pd-hero .media { aspect-ratio: 3/2; }
.pd-gallery { display: grid; gap: 12px; }
.pd-gallery .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-gallery .sub .media { aspect-ratio: 3/2; border-radius: var(--r-btn); }
.pd-buy { border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; background: var(--paper); }
.pd-buy .code { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--navy); }
.pd-buy h1 { font-weight: 700; font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; margin-top: 10px; }
.pd-buy .one { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-price b { font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pd-price .vat { font-size: 13px; font-weight: 600; color: var(--navy); border: 1px solid var(--navy); border-radius: var(--r-pill); padding: 4px 10px; line-height: 1; }
.pd-meta { margin-top: 20px; border-top: 1px solid var(--line); }
.pd-meta .r { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd-meta .k { font-size: 13px; color: var(--muted); line-height: 1.55; }
.pd-meta .v { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.pd-meta .v b { color: var(--ink); }
.pd-cta { margin-top: 24px; display: grid; gap: 10px; }
.pd-cta .btn { width: 100%; }
.pd-cta .note { font-size: 13px; color: var(--muted); line-height: 1.55; text-align: center; }
.pd-links { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--ink-2); }
.pd-links a { text-decoration: underline; text-underline-offset: 3px; }
.pd-links a:hover { color: var(--navy); }
@media (max-width: 900px) {
  .pd-hero { padding: 16px 0 56px; }
  .pd-hero .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .pd-buy { padding: 24px 20px; }
  .pd-buy h1 { font-size: 28px; }
  .pd-price b { font-size: 38px; }
}

/* ── 이런 분께 ─────────────────────────────────────── */
.pd-fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pd-fit .card { padding: 28px; }
.pd-fit .n { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--navy); }
.pd-fit h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; margin-top: 10px; }
.pd-fit p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.pd-notfit { margin-top: 16px; border: 1px dashed var(--line); border-radius: var(--r-card); padding: 18px 22px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.pd-notfit a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pd-fit { grid-template-columns: 1fr; } }

/* ── 구성 표 · 비교표 ──────────────────────────────── */
.pd-table-wrap { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.pd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pd-table th, .pd-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.pd-table tr:last-child th, .pd-table tr:last-child td { border-bottom: 0; }
.pd-table thead th { background: var(--onyx); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.pd-table tbody th { width: 170px; background: var(--mist); font-size: 14px; font-weight: 600; color: var(--ink); }
.pd-table td { color: var(--ink-2); }
.pd-table td b { color: var(--ink); }
.pd-table td small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pd-table .yes { color: var(--navy); font-weight: 600; }
.pd-table .no { color: var(--muted); }
.pd-table tr.sum th, .pd-table tr.sum td { background: var(--paper); border-top: 1px solid var(--ink); font-weight: 600; color: var(--ink); }
.pd-table tr.sum td b { font-size: 18px; letter-spacing: -0.02em; }
.pd-table.pd-cmp { table-layout: fixed; }
.pd-table.pd-cmp thead th:first-child, .pd-table.pd-cmp tbody th { width: 140px; }
@media (max-width: 640px) {
  .pd-table { font-size: 14px; }
  .pd-table th, .pd-table td { padding: 12px 14px; }
  .pd-table tbody th { width: 96px; font-size: 13px; }
  .pd-table.pd-cmp thead th:first-child, .pd-table.pd-cmp tbody th { width: 76px; }
  .pd-table.pd-cmp th, .pd-table.pd-cmp td { padding: 12px 10px; font-size: 13px; }
}

/* 표 아래 작은 안내 */
.pd-foot { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 14px; }
.pd-foot b { color: var(--ink-2); }

/* ── 진행 절차 (flow-strip 재사용 + 설명) ──────────── */
.pd-flow .flow-item span { font-size: 13px; }
.pd-flow .flow-item em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--navy); margin-top: 10px; }

/* ── 결제 · 진행 안내 ──────────────────────────────── */
.pd-pay { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pd-pay .card { padding: 28px; }
.pd-pay h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.pd-sched { margin-top: 18px; border-top: 1px solid var(--line); }
.pd-sched .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pd-sched .r .k b { display: block; font-size: 15px; color: var(--ink); }
.pd-sched .r .k span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.pd-sched .r .v { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-sched .r.sum { border-bottom: 0; }
.pd-sched .r.sum .k b, .pd-sched .r.sum .v { color: var(--navy); }
.pd-list { display: grid; gap: 10px; margin-top: 18px; }
.pd-list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.pd-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.pd-list li b { color: var(--ink); }
@media (max-width: 900px) { .pd-pay { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pd-pay .card { padding: 22px 20px; } }

/* ── 취소 · 환불 / 판매자 정보 ─────────────────────── */
.pd-legal { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: start; }
.pd-legal .card { padding: 28px; }
.pd-legal h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.pd-legal p { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin-top: 12px; }
.pd-legal p b { color: var(--ink); }
.pd-legal .cta-row { margin-top: 18px; }
.pd-seller { margin-top: 14px; border-top: 1px solid var(--line); }
.pd-seller .r { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.pd-seller .r:last-child { border-bottom: 0; }
.pd-seller .k { color: var(--muted); font-size: 13px; }
.pd-seller .v { color: var(--ink); }
.pd-seller .v a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pd-legal { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pd-legal .card { padding: 22px 20px; } .pd-seller .r { grid-template-columns: 96px minmax(0, 1fr); } }

/* ── 하단 구매 밴드 ────────────────────────────────── */
.pd-end .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.pd-end .price { font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1; margin-top: 20px; font-variant-numeric: tabular-nums; }
.pd-end .price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.64); margin-left: 8px; }
.pd-end .spec { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 12px; line-height: 1.6; }
.pd-end .box { border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-card); padding: 28px; display: grid; gap: 12px; }
.pd-end .box .btn { width: 100%; }
.pd-end .box .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pd-end .box .btn-primary:hover { background: #e9a700; border-color: #e9a700; }
.pd-end .box .note { font-size: 13px; color: rgba(255,255,255,.64); text-align: center; line-height: 1.55; }
.pd-end .box .pay { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.6; text-align: center; }
.pd-end .box .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.64); }
.pd-end .box .links a { text-decoration: underline; text-underline-offset: 3px; }
.pd-end .box .links a:hover { color: #fff; }
@media (max-width: 900px) { .pd-end .wrap { grid-template-columns: 1fr; gap: 28px; } .pd-end .price { font-size: 38px; } }
@media (max-width: 640px) { .pd-end .box { padding: 22px 18px; } }

/* ── 상품 목록 (packages.html) ─────────────────────── */
.pk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pk-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); transition: border-color .15s; }
.pk-card:hover { border-color: var(--ink-2); }
.pk-card.featured { border-color: var(--navy); }
.pk-card .media { border-radius: 0; aspect-ratio: 3/2; }
.pk-card .body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.pk-card .code { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--navy); }
.pk-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-top: 8px; }
.pk-card .one { font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.pk-card .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pk-card .price b { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-card .price span { font-size: 13px; font-weight: 600; color: var(--navy); }
.pk-card .facts { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.pk-card ul { display: grid; gap: 8px; margin: 20px 0 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pk-card ul li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pk-card ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.pk-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .pk-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pk-card .body { padding: 22px 20px; } .pk-card h2 { font-size: 23px; } .pk-card .price b { font-size: 32px; } }
@media (max-width: 640px) { .pd-gallery .sub { display: none; } }
