@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

/* =============================================================
   바른코드 — 디자인 시스템
   ============================================================= */
:root {
  /* 브랜드 */
  --ink:        #0B1220;   /* 최심층 네이비 — 헤더/푸터 */
  --ink-2:      #111C31;
  --ink-3:      #1B2942;
  --brand:      #2563EB;   /* 브랜드 블루 */
  --brand-dark: #1D4ED8;
  --brand-soft: #EFF4FF;
  --accent:     #0EA97A;   /* 즉시발송 민트그린 */
  --accent-soft:#E6F7F1;
  --warn:       #B45309;
  --warn-soft:  #FEF3C7;
  --danger:     #DC2626;
  --danger-soft:#FEE2E2;

  /* 중립 */
  --text:       #16202E;
  --text-2:     #4B5768;
  --text-3:     #7C8899;
  --line:       #E4E8EE;
  --line-2:     #EEF1F5;
  --bg:         #FFFFFF;
  --bg-2:       #F7F8FA;
  --bg-3:       #F1F3F7;

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  20px;
  --shadow:     0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.18);
  --shadow-lg:  0 2px 4px rgba(16,24,40,.05), 0 24px 48px -20px rgba(16,24,40,.28);
  --maxw:       1180px;

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.65; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
p { margin: 0 0 .8em; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 헤더 ──────────────────────────────────────────────── */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 60; }
.topbar { border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.topbar .wrap { display: flex; gap: 16px; align-items: center; height: 34px; color: rgba(255,255,255,.62); }
.topbar .spacer { flex: 1; }
.topbar a:hover { color: #fff; }

.header-main .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.045em; }
.logo .logo-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, #6366F1 100%);
  display: grid; place-items: center; font-size: 15px; font-weight: 900; color: #fff;
  box-shadow: 0 2px 10px rgba(37,99,235,.45);
}
.logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: rgba(255,255,255,.42); margin-top: -3px; }

.gnb { display: flex; gap: 4px; flex: 1; }
.gnb a {
  padding: 8px 13px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  color: rgba(255,255,255,.76); transition: .14s;
}
.gnb a:hover, .gnb a.on { background: rgba(255,255,255,.1); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: #fff; font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: .14s; white-space: nowrap;
}
.icon-btn:hover { background: rgba(255,255,255,.13); }
.icon-btn.primary { background: var(--brand); border-color: var(--brand); }
.icon-btn.primary:hover { background: var(--brand-dark); }
.cart-count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent);
  color: #04231A; font-size: 11.5px; font-weight: 800; display: grid; place-items: center;
}
.nav-toggle { display: none; }

/* ── 설정 미입력 경고 ──────────────────────────────────── */
.config-alert {
  background: var(--danger); color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 20px; text-align: center;
}
.config-alert code { background: rgba(0,0,0,.22); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* ── 히어로 ────────────────────────────────────────────── */
.hero {
  background: radial-gradient(1100px 480px at 12% -8%, #24407E 0%, transparent 62%),
              radial-gradient(900px 440px at 92% 8%, #123E4E 0%, transparent 60%),
              var(--ink);
  color: #fff; padding: 62px 0 68px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: var(--accent); background: rgba(14,169,122,.13);
  border: 1px solid rgba(14,169,122,.3); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #7FA9FF; }
.hero p { color: rgba(255,255,255,.68); font-size: 16px; max-width: 620px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-trust > div { min-width: 120px; }
.hero-trust strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.hero-trust span { font-size: 12.5px; color: rgba(255,255,255,.52); }

/* ── 버튼 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: .15s; white-space: nowrap;
  background: var(--bg-3); color: var(--text);
}
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px -4px rgba(37,99,235,.55); }
.btn-primary:hover { background: var(--brand-dark); filter: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--text); }
.btn-line:hover { background: var(--bg-2); filter: none; }
.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); filter: none; }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ── 섹션 ──────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section.tinted { background: var(--bg-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; }
.section-head p { color: var(--text-2); font-size: 14.5px; margin: 6px 0 0; }
.section-head a { color: var(--brand); font-weight: 700; font-size: 14px; }

/* ── 신뢰 배지 스트립 ──────────────────────────────────── */
.trust-strip { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { display: flex; gap: 11px; align-items: flex-start; }
.trust-item .ti-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-size: 16px;
}
.trust-item strong { display: block; font-size: 13.5px; font-weight: 700; }
.trust-item span { font-size: 12.5px; color: var(--text-3); }

/* ── 상품 카드 ─────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .18s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D6DCE6; }
.pc-cover { position: relative; aspect-ratio: 4/5; background: var(--ink-2); overflow: hidden; }
.pc-cover svg { width: 100%; height: 100%; display: block; }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.badge {
  font-size: 11px; font-weight: 700; padding: 3.5px 8px; border-radius: 5px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); letter-spacing: -.02em;
}
.badge.instant { background: var(--accent); color: #04231A; }
.badge.sale    { background: var(--danger); }
.pc-off {
  position: absolute; right: 10px; bottom: 10px; background: rgba(11,18,32,.86); color: #fff;
  font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(4px);
}
.pc-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-plat { font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: -.01em; }
.pc-name {
  font-size: 14.5px; font-weight: 700; line-height: 1.42; min-height: 2.84em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-price { margin-top: auto; }
.pc-price .list { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.pc-price .now { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.pc-price .now span { font-size: 14px; font-weight: 700; }
.pc-actions { display: flex; gap: 6px; margin-top: 4px; }

/* ── 상품 상세 ─────────────────────────────────────────── */
.breadcrumb { font-size: 12.5px; color: var(--text-3); padding: 18px 0; display: flex; gap: 7px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--brand); }

.detail { display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: start; }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: sticky; top: 90px; }
.detail-cover svg { width: 100%; display: block; }
.detail h1 { font-size: 25px; margin-bottom: 10px; }
.detail-summary { color: var(--text-2); font-size: 14.5px; margin-bottom: 20px; }

.price-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.price-box .row1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-box .off { color: var(--danger); font-size: 22px; font-weight: 800; }
.price-box .now { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.price-box .list { color: var(--text-3); text-decoration: line-through; font-size: 14.5px; }
.price-box .vat { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

.spec-table { font-size: 13.5px; margin-bottom: 20px; }
.spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.spec-table th { width: 110px; color: var(--text-3); font-weight: 600; background: var(--bg-2); }

.qty-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 36px; height: 38px; border: 0; background: #fff; cursor: pointer; font-size: 17px; color: var(--text-2); }
.qty button:hover { background: var(--bg-2); }
.qty input { width: 48px; height: 38px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-weight: 700; }
.qty-total { margin-left: auto; text-align: right; }
.qty-total small { display: block; font-size: 12px; color: var(--text-3); }
.qty-total strong { font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.buy-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

.info-tabs { margin-top: 52px; border-top: 2px solid var(--ink); }
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-nav button {
  padding: 14px 22px; border: 0; background: none; cursor: pointer; font-weight: 700;
  font-size: 14.5px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab-nav button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; padding: 30px 4px; }
.tab-panel.on { display: block; }
.tab-panel h3 { font-size: 17px; margin: 26px 0 10px; }
.tab-panel h3:first-child { margin-top: 0; }
.tab-panel ul, .tab-panel ol { padding-left: 20px; margin: 0 0 14px; color: var(--text-2); }
.tab-panel li { margin-bottom: 6px; }

/* ── 알림 박스 ─────────────────────────────────────────── */
.notice-box { border-radius: var(--radius-sm); padding: 15px 18px; font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; border: 1px solid; }
.notice-box strong { display: block; margin-bottom: 5px; font-size: 14px; }
.notice-box ul { margin: 6px 0 0; padding-left: 18px; }
.notice-box.warn   { background: var(--warn-soft);   border-color: #FCD9A0; color: #713F12; }
.notice-box.info   { background: var(--brand-soft);  border-color: #C7D9FF; color: #1E3A8A; }
.notice-box.accent { background: var(--accent-soft); border-color: #A9E3D0; color: #065F46; }
.notice-box.danger { background: var(--danger-soft); border-color: #FCA5A5; color: #7F1D1D; }

/* ── 장바구니 / 주문서 ─────────────────────────────────── */
.page-head { padding: 34px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--text-2); font-size: 14.5px; margin: 8px 0 0; }

.steps { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13px; flex-wrap: wrap; }
.steps span { color: var(--text-3); font-weight: 600; }
.steps span.on { color: var(--brand); }
.steps i { color: var(--line); font-style: normal; }

.checkout-layout { display: grid; grid-template-columns: 1fr 348px; gap: 32px; align-items: start; padding-bottom: 60px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.panel-head { padding: 15px 20px; border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.panel-head h2 { font-size: 15.5px; }
.panel-head p { font-size: 12.5px; color: var(--text-3); margin: 3px 0 0; }
.panel-body { padding: 20px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; transition: .14s; font-size: 14.5px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.13);
}
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--danger); margin-top: 5px; display: none; font-weight: 600; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.check { display: flex; gap: 9px; align-items: flex-start; padding: 9px 0; font-size: 13.5px; cursor: pointer; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--brand); cursor: pointer; }
.check a { color: var(--brand); text-decoration: underline; font-weight: 600; }
.check.all { border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 5px; font-weight: 700; font-size: 14.5px; }
.check .must { color: var(--danger); font-weight: 700; }

.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.pay-methods label {
  border: 1px solid var(--line); border-radius: 9px; padding: 13px 8px; text-align: center;
  cursor: pointer; font-size: 13.5px; font-weight: 600; transition: .13s; background: #fff;
}
.pay-methods label:hover { border-color: #B9C4D4; }
.pay-methods input { display: none; }
.pay-methods input:checked + span { color: var(--brand); }
.pay-methods label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }

.summary { position: sticky; top: 90px; }
.summary-lines { padding: 4px 0; }
.sline { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.sline.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 16px; color: var(--text); font-weight: 700; }
.sline.total strong { font-size: 23px; font-weight: 800; letter-spacing: -.035em; color: var(--brand); }

.cart-item { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item .ci-cover { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.cart-item .ci-name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.cart-item .ci-meta { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.cart-item .ci-right { text-align: right; }
.cart-item .ci-price { font-weight: 800; font-size: 15.5px; letter-spacing: -.02em; }
.link-del { background: none; border: 0; color: var(--text-3); font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.link-del:hover { color: var(--danger); }

.mini-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line-2); }
.mini-item:last-of-type { border-bottom: 0; }
.mini-item .mi-name { flex: 1; min-width: 0; }
.mini-item .mi-name b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.mini-item .mi-name small { color: var(--text-3); font-size: 12px; }

.empty { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty .ico { font-size: 42px; margin-bottom: 12px; opacity: .5; }
.empty h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }

/* ── 상태/결과 화면 ────────────────────────────────────── */
.result-card { max-width: 640px; margin: 46px auto 70px; text-align: center; }
.result-ico { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 30px; }
.result-ico.ok { background: var(--accent-soft); color: var(--accent); }
.result-ico.wait { background: var(--warn-soft); color: var(--warn); }
.result-ico.no { background: var(--danger-soft); color: var(--danger); }
.result-card h1 { font-size: 24px; margin-bottom: 10px; }
.result-card > p { color: var(--text-2); font-size: 14.5px; }
.order-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 24px 0; text-align: left; }
.order-box dl { display: grid; grid-template-columns: 96px 1fr; gap: 9px 14px; margin: 0; font-size: 14px; }
.order-box dt { color: var(--text-3); font-weight: 600; }
.order-box dd { margin: 0; font-weight: 600; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status-pill.pending    { background: var(--bg-3); color: var(--text-2); }
.status-pill.paid       { background: var(--brand-soft); color: var(--brand-dark); }
.status-pill.delivering { background: var(--warn-soft); color: var(--warn); }
.status-pill.delivered  { background: var(--accent-soft); color: #065F46; }
.status-pill.cancelled, .status-pill.failed { background: var(--danger-soft); color: #991B1B; }

.code-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink);
  color: #fff; border-radius: var(--radius-sm); margin-bottom: 10px; flex-wrap: wrap;
}
.code-row .cr-name { font-size: 13px; color: rgba(255,255,255,.6); width: 100%; }
.code-row .cr-key {
  font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;
  font-size: 16px; font-weight: 700; letter-spacing: .06em; flex: 1; word-break: break-all;
}

/* ── 문서(약관) 페이지 ─────────────────────────────────── */
.doc { max-width: 820px; margin: 0 auto; padding: 12px 0 70px; }
.doc h2 { font-size: 18px; margin: 32px 0 12px; padding-top: 4px; }
.doc h3 { font-size: 15.5px; margin: 20px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 14.5px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc table { font-size: 14px; margin: 14px 0 20px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-2); font-weight: 700; width: 30%; }
.doc .rev { font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 17px 34px 17px 0;
  font-size: 15px; font-weight: 700; cursor: pointer; position: relative; color: var(--text);
}
.faq-q::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--text-3); font-weight: 400; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 0 18px; color: var(--text-2); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ── 푸터 ──────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.56); padding: 44px 0 34px; font-size: 13px; margin-top: 40px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-nav a { font-weight: 600; color: rgba(255,255,255,.8); font-size: 13.5px; }
.footer-nav a:hover { color: #fff; }
.footer-nav a.strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.footer-biz p { margin: 0 0 5px; line-height: 1.75; }
.footer-biz .company-name { color: #fff; font-weight: 700; font-size: 14.5px; margin-bottom: 9px; }
.footer-biz .ftc-link { color: rgba(255,255,255,.8); text-decoration: underline; }
.footer-cs .cs-tel { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 6px; }
.footer-copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.36); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pg-escrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; font-size: 11.5px; }

/* ── 토스트 ────────────────────────────────────────────── */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px;
  font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .22s ease-out;
}
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── 로딩 ──────────────────────────────────────────────── */
.spinner {
  width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.32);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-3) 25%, #E8EBF0 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── 반응형 ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .detail-cover { position: static; max-width: 320px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .header-main .wrap { height: 58px; gap: 12px; }
  .gnb {
    position: fixed; inset: 58px 0 auto; background: var(--ink-2); flex-direction: column;
    padding: 10px 16px 18px; gap: 2px; display: none; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 12px 10px; font-size: 15px; }
  .nav-toggle { display: inline-flex; order: -1; padding: 8px 11px; }
  .topbar .wrap { height: 30px; font-size: 11.5px; gap: 10px; }
  .topbar .hide-sm { display: none; }
  .icon-btn .label { display: none; }
  .hero { padding: 44px 0 48px; }
  .hero-trust { gap: 18px 24px; margin-top: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pc-body { padding: 12px 12px 14px; }
  .pc-name { font-size: 13.5px; }
  .buy-row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 40px 0; }
  .cart-item { grid-template-columns: 56px 1fr; }
  .cart-item .ci-right { grid-column: 2; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .order-box dl { grid-template-columns: 84px 1fr; }
}

/* ── 인쇄 ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .hero, .btn, .toast-wrap, .config-alert { display: none !important; }
  body { font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
}
