/* ====== 할인콘 — Modern Minimal (Black/White + Point) ====== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Theme A - monoLime (기본) — 블랙 + 라임 */
  --bg: #FAFAF7;
  --bg-alt: #F1F1EC;
  --card: #FFFFFF;
  --fg: #0A0A0A;
  --fg-sub: #4A4A4A;
  --fg-mute: #8A8A85;
  --border: #E5E5DF;
  --border-strong: #111111;
  --accent: oklch(0.87 0.19 130);
  --accent-light: oklch(0.93 0.14 130);
  --accent-dark: oklch(0.72 0.19 130);
  --accent-fg: #0A0A0A;
  --kakao: #FEE500;
  --danger: #E11D48;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.09);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --font-display: 'Manrope', 'Pretendard Variable', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Theme B - navyOrange */
:root[data-theme="navyOrange"] {
  --bg: #FFFFFF;
  --bg-alt: #F5F6F9;
  --card: #FFFFFF;
  --fg: #0F172A;
  --fg-sub: #475569;
  --fg-mute: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #0F172A;
  --accent: oklch(0.68 0.19 40);
  --accent-light: oklch(0.82 0.13 40);
  --accent-dark: oklch(0.55 0.19 40);
  --accent-fg: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.strikethru { text-decoration: line-through; color: var(--fg-mute); }
.accent { color: var(--accent-dark); font-weight: 700; }
.strong { font-weight: 800; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dark); color: var(--accent-fg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--fg); background: var(--card); }
.btn-kakao { background: var(--kakao); color: #3A1D1D; }
.btn-kakao:hover { background: #FFD400; color: #3A1D1D; }
.btn-kakao svg { flex-shrink: 0; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.disabled, .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ====== Nav ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg), transparent 15%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center;
  height: 40px;
}
.logo {
  height: 40px;
  width: 138px;
  display: block;
}
/* 기본(밝은 배경, nav) — % 마크는 라임 원형 + 다크 스트로크, 워드마크는 다크 */
.logo-default .logo-mark-bg { fill: var(--accent) !important; }
.logo-default .logo-mark-stroke { stroke: var(--fg) !important; }
.logo-default .logo-wordmark { fill: var(--fg) !important; }
.logo-default .logo-tagline { fill: var(--fg-sub) !important; }

/* 어두운 배경(footer) — % 마크는 라임 원형 + 다크 스트로크(그대로), 워드마크는 화이트 */
.logo-dark { height: 48px; width: 165px; }
.logo-dark .logo-mark-bg { fill: var(--accent) !important; }
.logo-dark .logo-mark-stroke { stroke: var(--fg) !important; }
.logo-dark .logo-wordmark { fill: #FFFFFF !important; }
.logo-dark .logo-tagline { fill: rgba(255,255,255,0.55) !important; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 600; color: var(--fg-sub);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--fg);
}
.nav-mob-toggle { display: none; font-size: 24px; padding: 0 8px; }
.nav-mob { display: none; }

@media (max-width: 900px) {
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .nav-links, .nav-phone { display: none; }
  .nav-mob-toggle { display: block; }
  .nav.mob-open { background: var(--bg); }
  .nav.mob-open .nav-mob {
    display: flex; flex-direction: column;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .nav-mob a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--border); }
}

/* ====== Hero ====== */
.hero {
  padding: 140px 32px 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 560px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--fg-sub);
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-dot {
  width: 6px; height: 6px; background: var(--accent-dark); border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 30%, transparent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  animation: fadeUp 0.6s ease;
  word-break: keep-all;
}
.hero-accent {
  background: var(--accent);
  padding: 0 12px;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-1deg);
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-sub);
  margin: 0 0 40px;
  max-width: 480px;
  line-height: 1.55;
}
.hero-cta-row { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item b { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.trust-item span { font-size: 12px; color: var(--fg-mute); }
.trust-divider { width: 1px; height: 30px; background: var(--border); }

.hero-dots {
  position: absolute;
  bottom: 40px; left: 32px;
  display: flex; gap: 8px;
}
.hero-pill {
  width: 48px; height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  transition: width 0.3s ease;
}
.hero-pill.active { width: 80px; }
.hero-pill-fill {
  display: block; width: 0; height: 100%;
  background: var(--fg);
}
.hero-pill.active .hero-pill-fill {
  animation: fill 5.5s linear;
}
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero art */
.hero-art {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  min-height: 480px;
}
.art-card {
  width: 100%; max-width: 460px;
  aspect-ratio: 5/6;
  background: var(--card);
  border: 1.5px solid var(--fg);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
  box-shadow: 8px 8px 0 var(--fg);
  animation: fadeUp 0.6s ease;
}
.art-tag {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
}
.art-price { margin-top: auto; }
.art-price-old {
  font-family: var(--font-mono);
  text-decoration: line-through;
  color: var(--fg-mute);
  font-size: 14px;
}
.art-price-new {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.art-price-new span {
  font-size: 15px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  margin-left: 8px;
}
.art-cup {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
}
.art-cup-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  width: 78%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.art-caption {
  position: absolute;
  bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-fg);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--fg);
  white-space: nowrap;
}

.art-process { justify-content: center; }
.proc-flow {
  display: flex; align-items: center;
  gap: 12px;
  margin-top: auto; margin-bottom: 20px;
}
.proc-node {
  flex: 1;
  border: 1.5px solid var(--fg);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  background: var(--bg-alt);
}
.proc-node:nth-child(3) { background: var(--accent); }
.proc-num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--fg-sub);
  letter-spacing: 0.08em;
}
.proc-label {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800;
  margin-top: 6px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.proc-line {
  width: 12px; height: 2px;
  background: var(--fg);
  flex-shrink: 0;
}
.proc-node {
  min-width: 0;
}
.proc-note {
  text-align: center;
  font-size: 15px;
  color: var(--fg-sub);
  margin-top: auto;
}
.proc-note b { color: var(--fg); font-family: var(--font-display); font-size: 20px; }

.art-chart { justify-content: flex-end; }
.chart-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  margin-bottom: 16px;
}
.chart-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
  height: 320px;
}
.chart-bar {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.chart-bar-val {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
}
.chart-bar-track {
  width: 100%;
  height: var(--h);
  flex-shrink: 0; /* 값·라벨 공간에 밀려 최고 티어 막대가 클램프되는 것 방지 */
  background: var(--bg-alt);
  border: 1.5px solid var(--fg);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
}
.chart-bar:last-child .chart-bar-track { background: var(--accent); }
.chart-bar-fill {
  position: absolute; inset: 0;
  background: linear-gradient(to top, transparent 0%, transparent 100%);
}
.chart-bar-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-sub);
}
.chart-bar-extra {
  position: absolute;
  top: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--accent-dark);
  padding: 2px 6px;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  background: var(--card);
  white-space: nowrap;
}
.chart-bar {
  position: relative;
}
.chart-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .hero { padding: 100px 20px 40px; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 40px; }
  .hero-art { min-height: 0; order: -1; }
  /* 제목이 의도한 줄바꿈(<br/>) 그대로 2줄로 나오게 — 뷰포트 비례 축소 */
  .hero-title { font-size: clamp(26px, 8vw, 58px); }
  .hero-accent { padding: 0 8px; }
  .art-card { max-width: 280px; padding: 20px; box-shadow: 5px 5px 0 var(--fg); }
  /* 카드 축소에 맞춰 내부 요소도 축소 */
  .art-cup-img { width: 62%; max-width: 220px; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18)); }
  .art-price-new { font-size: 26px; }
  .art-price-new span { font-size: 12px; margin-left: 5px; }
  .art-caption { font-size: 11px; padding: 5px 12px; }
  .chart-bars { height: 190px; gap: 10px; }
  .chart-bar-val { font-size: 15px; }
  .chart-bar-extra { top: -15px; font-size: 10px; padding: 1px 4px; }
  .chart-note { margin-top: 10px; font-size: 11px; }
  .proc-flow { gap: 8px; }
  .proc-node { padding: 10px 6px; border-radius: 10px; }
  .proc-label { font-size: 13px; margin-top: 4px; }
  .proc-num { font-size: 10px; }
  .proc-line { width: 8px; }
  .proc-note { font-size: 13px; }
  .proc-note b { font-size: 16px; }
  .hero-dots { position: static; margin-top: 24px; }
  .hero-trust { display: none; }
}

/* ====== Hero Art 애니메이션 (슬라이드 전환 시 재렌더로 자동 재생) ====== */

/* 카드 공통 등장 — 살짝 아래에서 떠오르며 기울기 정렬 */
@keyframes art-card-in {
  from { opacity: 0; transform: translateY(22px) rotate(1.2deg) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.art-card { animation: art-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Slide 1 · 커피 ── */
@keyframes cup-drop {
  from { opacity: 0; transform: translate(-50%, -66%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -52%) scale(1); }
}
@keyframes cup-float {
  0%, 100% { transform: translate(-50%, -52%); }
  50%      { transform: translate(-50%, -55%); }
}
.art-cup-img {
  animation:
    cup-drop 0.7s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    cup-float 4.5s 0.95s ease-in-out infinite;
}
@keyframes fade-up-sm {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.art-coffee .art-tag { animation: fade-up-sm 0.5s 0.35s ease both; }
.art-coffee .art-price-old { animation: fade-up-sm 0.5s 0.5s ease both; }
.art-coffee .art-price-new { animation: fade-up-sm 0.5s 0.62s ease both; }
@keyframes caption-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.85); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.art-coffee .art-caption { animation: caption-pop 0.5s 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ── Slide 2 · 프로세스 ── */
@keyframes node-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.82); }
  to   { opacity: 1; transform: none; }
}
/* 자식 순서: 노드(1) 선(2) 노드(3) 선(4) 노드(5) 선(6) 노드(7) — 왼쪽부터 순차 등장 */
.proc-flow .proc-node { animation: node-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.proc-flow .proc-node:nth-child(1) { animation-delay: 0.15s; }
.proc-flow .proc-node:nth-child(5) { animation-delay: 0.45s; }
.proc-flow .proc-node:nth-child(7) { animation-delay: 0.6s; }
@keyframes line-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.proc-flow .proc-line { transform-origin: left; animation: line-draw 0.3s ease both; }
.proc-flow .proc-line:nth-child(2) { animation-delay: 0.32s; }
.proc-flow .proc-line:nth-child(4) { animation-delay: 0.47s; }
.proc-flow .proc-line:nth-child(6) { animation-delay: 0.62s; }
/* 라임 강조 노드(3번째 자식) — 등장 후 은은한 펄스로 시선 고정 */
@keyframes node-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent), transparent 40%); }
  50%      { box-shadow: 0 0 0 7px color-mix(in oklch, var(--accent), transparent 100%); }
}
.proc-flow .proc-node:nth-child(3) { animation: node-pop 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both, node-glow 2.4s 1.2s ease-in-out infinite; }
.art-process .proc-note { animation: fade-up-sm 0.5s 0.85s ease both; }

/* ── Slide 3 · 차트 ── */
@keyframes bar-grow {
  from { height: 0; }
  to   { height: var(--h); }
}
.chart-bars .chart-bar-track {
  animation: bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.2s + var(--d, 0ms));
}
.chart-bars .chart-bar-val {
  animation: fade-up-sm 0.4s ease both;
  animation-delay: calc(0.55s + var(--d, 0ms));
}
@keyframes extra-pop {
  from { opacity: 0; transform: translateX(-50%) scale(0.7); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}
.chart-bars .chart-bar-extra {
  animation: extra-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(0.75s + var(--d, 0ms));
}
.chart-bars .chart-bar-label { animation: fade-up-sm 0.4s ease both; animation-delay: calc(0.35s + var(--d, 0ms)); }
.art-chart .chart-note { animation: fade-up-sm 0.5s 1s ease both; }

/* 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .art-card, .art-cup-img, .art-coffee .art-tag, .art-coffee .art-price-old, .art-coffee .art-price-new,
  .art-coffee .art-caption, .proc-flow .proc-node, .proc-flow .proc-line, .art-process .proc-note,
  .chart-bars .chart-bar-track, .chart-bars .chart-bar-val, .chart-bars .chart-bar-extra,
  .chart-bars .chart-bar-label, .art-chart .chart-note {
    animation: none;
  }
}

/* ====== Section chrome ====== */
.section {
  padding: 100px 32px;
  max-width: 1280px; margin: 0 auto;
}
.section-tight { padding: 60px 32px; }
.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.section-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.section-head-left { text-align: left; margin-left: 0; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-sub);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
  word-break: keep-all; /* 한국어 단어 단위 줄바꿈 */
}
.section-sub {
  font-size: 17px;
  color: var(--fg-sub);
  margin: 0;
  text-wrap: pretty;
  word-break: keep-all;
}

@media (max-width: 640px) {
  .section { padding: 70px 20px; }
  .section-alt > * { padding-left: 20px; padding-right: 20px; }
  .section-head { margin-bottom: 40px; }
}

/* ====== Process ====== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.process-note {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--accent-dark);
  border-radius: 8px;
  background: color-mix(in oklch, var(--accent), transparent 85%);
  font-size: 12px;
  color: var(--fg-sub);
  font-weight: 500;
  line-height: 1.4;
}
.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.process-num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
}
.process-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.process-desc {
  font-size: 14px;
  color: var(--fg-sub);
  line-height: 1.55;
  margin-top: 8px;
}
.process-arrow {
  position: absolute;
  right: -14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--fg-mute);
  z-index: 2;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-arrow { display: none; }
}

/* ====== Strength ====== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.strength-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 300px;
}
.strength-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.strength-card:nth-child(1) { background: var(--accent); }
.strength-key {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--fg-sub);
  letter-spacing: 0.1em;
}
.strength-stat {
  margin-top: auto;
}
.strength-stat-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.strength-stat-label {
  font-size: 12px;
  color: var(--fg-sub);
  margin-top: 4px;
  font-family: var(--font-mono);
}
.strength-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.strength-desc {
  font-size: 14px;
  color: var(--fg-sub);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .strength-grid { grid-template-columns: 1fr; }
  .strength-card { min-height: auto; }
}

/* ====== Categories & Products ====== */
/* ── 빈 견적서 클릭 시 — 견적서 peek 탭 왼쪽 말풍선 힌트 (나왔다 사라짐) ── */
.prod-hint-bubble {
  /* 견적서 페인(#quote-pane)의 자식 — 페인 좌측(탭 왼쪽)에 붙어 페인과 함께 이동 */
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: var(--fg);
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--fg);
  z-index: 96;
  pointer-events: none;
  animation: hint-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             hint-wiggle 1.6s 0.5s ease-in-out infinite;
}
/* 꼬리 — 견적서 탭을 가리키는 삼각형 (우측) */
.prod-hint-bubble::after {
  content: '';
  position: absolute;
  right: -7px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--accent);
  border-right: 1.5px solid var(--fg);
  border-top: 1.5px solid var(--fg);
}
.prod-hint-bubble.out {
  animation: hint-out 0.4s ease forwards;
}
@keyframes hint-pop {
  0%   { opacity: 0; transform: translateY(-50%) translateX(16px) scale(0.6); }
  100% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}
@keyframes hint-wiggle {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(-6px); }
}
@keyframes hint-out {
  to { opacity: 0; transform: translateY(-50%) translateX(14px) scale(0.85); }
}
@media (max-width: 640px) {
  .prod-hint-bubble { font-size: 13px; padding: 9px 15px; }
}

.cat-filter {
  display: none; /* 카테고리 필터 숨김 — 상품 탐색은 검색으로만 (검색어에 카테고리명 입력은 계속 동작) */
  flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 14px; font-weight: 600;
  color: var(--fg-sub);
  transition: all 0.15s ease;
}
.cat-chip:hover { border-color: var(--fg); color: var(--fg); }
.cat-chip.active {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}
.cat-chip-count {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-alt);
  color: var(--fg-sub);
  border-radius: 999px;
}
.cat-chip.active .cat-chip-count {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

/* 상품 정렬 · 가격대 */
.product-sort {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  margin: -8px 0 28px;
}
.sort-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.sort-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--fg-mute); letter-spacing: 0.08em; margin-right: 4px;
}
.sort-chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--fg-sub);
  cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.sort-chip:hover { border-color: var(--fg); color: var(--fg); }
.sort-chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 640px) {
  .product-sort { margin-bottom: 20px; gap: 8px; }
  .sort-chip { padding: 5px 10px; font-size: 12px; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
/* 모바일: 2열 유지 + 카드 컴팩트 */
@media (max-width: 440px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-thumb { padding: 12px; }
  .product-thumb-brand { font-size: 13px; }
  .product-thumb-name { font-size: 11px; }
  .product-badge { top: 8px; right: 8px; }
  .product-discount-tag { bottom: 8px; right: 8px; font-size: 13px; padding: 4px 7px; }
  .product-body { padding: 10px; gap: 8px; }
  .product-name { font-size: 13px; }
  .product-price-new { font-size: 15px; }
  .product-price-old { font-size: 11px; }
  .pdt-validy { font-size: 10px; margin-left: 5px; padding-left: 5px; }
  .product-tier-hint { font-size: 11px; padding: 5px 6px; }
  .product-tier-hint b { font-size: 11px; }
  .qty-stepper { height: 36px; }
  .qty-btn { width: 32px; font-size: 16px; }
}

.product-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.product-card.selected {
  border-color: var(--fg);
  box-shadow: 0 0 0 3px var(--accent);
}
.product-thumb {
  aspect-ratio: 1/1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 12%, var(--bg-alt)) 0%, var(--bg-alt) 100%);
  position: relative;
  padding: 20px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.product-thumb::before {
  content: '';
  position: absolute;
  inset: auto -20% -30% auto;
  width: 180px; height: 180px;
  background: var(--brand-color);
  border-radius: 50%;
  opacity: 0.15;
}
.product-thumb-brand {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  color: var(--brand-color);
  letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.product-thumb-name {
  font-size: 13px;
  color: var(--fg-sub);
  margin-top: 2px;
  position: relative; z-index: 1;
}
.product-thumb-placeholder {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  padding: 4px 8px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  align-self: flex-start;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  position: relative; z-index: 1;
}
.product-thumb-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: 78%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  transition: transform 0.25s ease;
  pointer-events: none;
}
.product-card:hover .product-thumb-img {
  transform: translate(-50%, -52%) scale(1.04);
}
/* 이미지 있는 카드는 브랜드/상품명이 잘 보이도록 배경 살짝 더 밝게 */
.product-thumb.has-image {
  background:
    radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--brand-color) 8%, var(--bg-alt)) 0%, var(--bg-alt) 70%);
}
.product-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em;
  z-index: 2;
}
.badge-hot { background: var(--fg); color: var(--bg); }
.badge-best { background: var(--accent); color: var(--accent-fg); border: 1px solid var(--fg); }
.product-discount-tag {
  position: absolute; bottom: 12px; right: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--fg); color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  z-index: 2;
  letter-spacing: -0.02em;
}
/* 유효기간 — 할인율 배지에 이어 붙인다(상품마다 달라 목록에서 바로 보이게) */
.pdt-validy {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--bg);
  opacity: 0.78;
  margin-left: 7px;
  padding-left: 7px;
  border-left: 1px solid currentColor;
}
.product-body {
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product-info { flex: 1; }
.product-brand {
  font-size: 12px;
  color: var(--fg-mute);
  font-weight: 600;
}
.product-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
  word-break: keep-all;   /* 긴 상품명도 단어 단위로만 줄바꿈 */
  line-height: 1.35;
}
.product-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 8px;
}
.product-price-old {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  text-decoration: line-through;
}
.product-price-new {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-tier-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 8px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 6px;
  margin-top: 6px;
  border: 1px solid var(--fg);
}
.product-tier-hint b { font-size: 12px; }

/* Qty stepper */
.qty-stepper {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
  transition: border-color 0.15s ease;
}
.qty-stepper.has-value { border-color: var(--fg); }
.qty-btn {
  width: 40px;
  font-size: 18px; font-weight: 700;
  background: var(--bg-alt);
  color: var(--fg);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--fg); color: var(--bg); }
.qty-val, .qty-input {
  flex: 1;
  text-align: center;
  border: none; background: transparent; outline: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  padding: 0;
}
.qty-input {
  -moz-appearance: textfield;
  width: 100%;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-placeholder {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg-mute);
}

/* JS 렌더 래퍼를 레이아웃에서 제거 — sticky 기준이 상품 섹션이 되도록 */
#cart-summary-area { display: contents; }

.cart-summary {
  position: sticky;
  bottom: 24px;
  margin-top: 32px;
  padding: 16px 24px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
}
.cart-summary b { color: var(--accent); font-family: var(--font-mono); }
.cart-summary .btn-primary { background: var(--accent); color: var(--fg); }
.cart-summary .btn-primary:hover { background: var(--bg); color: var(--fg); }

@media (max-width: 640px) {
  .cart-summary { border-radius: var(--radius); flex-direction: column; align-items: stretch; text-align: center; }
  .cart-summary-info { font-size: 14px; }
}

/* ====== Tier Table ====== */
.tier-table {
  display: flex; flex-direction: column;
  gap: 12px;
  max-width: 900px; margin: 0 auto;
}
.tier-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tier-row.tier-3 {
  background: var(--fg); color: var(--bg);
  border-color: var(--fg);
}
.tier-row.tier-3 .tier-bar { background: rgba(255,255,255,0.15); }
.tier-row.tier-3 .tier-bar-fill { background: var(--accent); }
.tier-row.tier-3 .tier-badge { background: var(--accent); color: var(--fg); }
.tier-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tier-bar {
  height: 12px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.tier-bar-fill {
  height: 100%;
  background: var(--accent-dark);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.tier-badge {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
  background: var(--bg-alt);
  color: var(--fg);
  white-space: nowrap;
}
.tier-row:not(.tier-3) .tier-badge { border: 1px solid var(--fg); }

.tier-example {
  max-width: 900px; margin: 40px auto 0;
  padding: 24px;
  background: var(--card);
  border: 1px dashed var(--fg);
  border-radius: var(--radius);
}
.tier-example-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-sub);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.tier-example-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tier-ex-card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s;
}
.tier-ex-card:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}
.tier-ex-card.highlight {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.tier-ex-card .tier-ex-qty {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--fg);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  margin-right: 0;
}
.tier-ex-body {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}
.tier-ex-body b {
  color: var(--accent-dark);
  font-weight: 800;
}
.tier-ex-card.highlight .tier-ex-body b { color: var(--accent); }
.tier-ex-price {
  font-size: 13px;
  color: var(--fg-sub);
  font-family: var(--font-mono);
}
.tier-ex-price b {
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
}
.tier-ex-card.highlight .tier-ex-price { color: rgba(255,255,255,0.7); }
.tier-ex-card.highlight .tier-ex-price b { color: #fff; }
/* .tier-example-row 가 1열로 바뀌는 720px 과 같은 지점에서 카드도 가로형으로 (구간 불일치 방지) */
@media (max-width: 720px) {
  .tier-example-row { grid-template-columns: 1fr; gap: 8px; }
  /* 우측 끝은 플로팅 견적서 탭에 가리므로 정보를 왼쪽으로 모은다 */
  .tier-ex-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 12px 14px; }
  /* 각 셀이 중간에 꺾이지 않게 한 줄 고정 */
  .tier-ex-qty, .tier-ex-body, .tier-ex-price { white-space: nowrap; }
  .tier-ex-card .tier-ex-qty { flex-shrink: 0; }
  .tier-ex-body { font-size: 17px; }
  .tier-ex-price { font-size: 12px; }
  .tier-ex-price b { font-size: 13px; }
  .tier-example-label, .tier-example-note { word-break: keep-all; }
}
.tier-example-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
}
.tier-example-row b { font-family: var(--font-mono); font-weight: 700; }
.tier-ex-qty {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 4px;
}
@media (max-width: 720px) {
  /* 라벨·바·배지가 3층으로 쌓이면 행이 너무 길어진다.
     수량과 할인율을 한 줄에 나란히 두고 바를 그 아래 전체 폭으로 깔아 비교가 쉽게 */
  .tier-table { gap: 8px; }
  .tier-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "label badge" "bar bar";
    gap: 10px 12px;
    /* 우측 44px 는 플로팅 견적서 탭 자리 — 할인율 배지가 가리지 않게 비워 둔다 */
    padding: 14px 48px 14px 16px;
  }
  .tier-label { grid-area: label; font-size: 17px; }
  .tier-badge { grid-area: badge; font-size: 13px; padding: 6px 14px; }
  /* 진행 바는 왼쪽부터 차므로 탭 뒤로 지나가도 무방 → 원래 폭 유지 */
  .tier-bar   { grid-area: bar; height: 8px; margin-right: -32px; }

  .tier-example { margin-top: 24px; padding: 16px; }
  .tier-example-label { padding-right: 40px; }
  .tier-example-row { grid-template-columns: 1fr; }
}

/* ====== Clients marquee ====== */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 40px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--fg-mute);
  letter-spacing: -0.02em;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
  background: var(--card);
  transition: color 0.2s, border-color 0.2s;
}
.client-logo:hover { color: var(--fg); border-color: var(--fg); }
.client-logo img {
  /* 높이는 로고별 비율 보정값으로 인라인 지정 (app.js) */
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.2s;
}
.client-logo:hover img { filter: none; }

/* ====== Usecase ====== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.usecase-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.usecase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--fg);
}
.usecase-icon {
  width: 32px; height: 32px;
  color: var(--fg-sub);
  margin-bottom: 16px;
}
.usecase-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.usecase-desc {
  font-size: 14px;
  color: var(--fg-sub);
  line-height: 1.55;
  word-break: keep-all; /* 한국어 단어 중간 잘림 방지 */
}
@media (max-width: 900px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } }

/* ====== Security ====== */
.security-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.security-copy .section-title { margin-bottom: 20px; }
.sec-flow {
  display: flex; flex-direction: column;
  gap: 12px;
  margin: 32px 0 24px;
}
.sec-flow-item {
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sec-flow-highlight {
  border: 1.5px solid var(--fg);
  background: var(--accent);
}
.sec-flow-badge {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-sub);
}
.sec-flow-highlight .sec-flow-badge { color: var(--fg); }
.sec-flow-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.sec-flow-desc {
  font-size: 14px;
  color: var(--fg-sub);
  margin-top: 4px;
  line-height: 1.5;
}
.sec-flow-highlight .sec-flow-desc { color: var(--fg); }
.sec-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.sec-badge {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-sub);
}
.security-visual {
  display: flex; flex-direction: column; gap: 20px;
}
.sec-shield {
  background: var(--card);
  border: 1.5px solid var(--fg);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; align-items: center; gap: 32px;
  box-shadow: 8px 8px 0 var(--fg);
}
.sec-shield-svg { width: 100px; height: 120px; flex-shrink: 0; }
.sec-shield-num {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sec-shield-desc {
  font-size: 14px;
  color: var(--fg-sub);
  margin-top: 6px;
}
.sec-shield-desc span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mute); }
.sec-mono-card {
  padding: 24px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}
.sec-mono-line { display: block; }
.sec-mono-tag {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 8px;
  background: var(--accent);
  color: var(--fg);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}
.sec-mono-ok { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .security-wrap { grid-template-columns: 1fr; gap: 40px; }
  .sec-shield { padding: 24px; gap: 20px; box-shadow: 4px 4px 0 var(--fg); }
  .sec-shield-svg { width: 70px; height: 84px; }
  .sec-shield-num { font-size: 36px; }
}

/* ====== FAQ ====== */
.faq-list {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item.open { border-color: var(--fg); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.06em;
}
.faq-q-text {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.faq-q-icon {
  font-size: 24px;
  color: var(--fg-mute);
  font-weight: 300;
  width: 24px; text-align: center;
}
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  color: var(--fg-sub);
  font-size: 15px;
  line-height: 1.65;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  padding: 0 24px 24px 62px;
  max-height: 400px;
}

/* ====== Quote form ====== */
.quote-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.quote-cart, .quote-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.quote-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.quote-cart-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
}
.quote-cart-count {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 6px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
}
.quote-empty {
  padding: 60px 20px;
  text-align: center;
}
.quote-empty-icon svg { width: 48px; height: 48px; color: var(--fg-mute); margin-bottom: 16px; }
.quote-empty-text { color: var(--fg-sub); line-height: 1.6; }
.quote-empty-text a { color: var(--fg); text-decoration: underline; font-weight: 700; }

/* 품목 행 — 영수증형 2줄 배치 (긴 상품명 대응)
   1줄: [썸네일] 브랜드·상품명(전체 폭, 줄바꿈 허용) ..... [삭제]
   2줄: 정상가 → 할인율 → 할인가 × 수량입력 ............ 합계 */
.quote-row {
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: start;
  gap: 4px 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.quote-row:last-child { border-bottom: none; }
.quote-cell-prod {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.quote-prod-txt { min-width: 0; }
.quote-line2 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 48px; /* 썸네일(36px)+간격 만큼 들여쓰기 — 상품명과 정렬 */
}
.quote-price-old { font-size: 12px; }
.quote-disc-pill {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 800;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 2px 8px;
  border-radius: 999px;
}
.quote-disc-pill small { font-size: 11px; font-weight: 700; opacity: 0.7; }
.quote-price-new { font-size: 14px; font-weight: 700; }
.quote-amount { margin-left: auto; font-size: 16px; }
@media (max-width: 560px) {
  .quote-line2 { padding-left: 0; }
}
.quote-thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-family: var(--font-display);
  flex-shrink: 0;
}
.quote-cell-brand { font-size: 12px; color: var(--fg-mute); }
.quote-cell-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
}
.quote-cell-num { font-size: 13px; }
.quote-disc {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-dark);
}
.quote-disc-bonus {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  margin-top: 2px;
}
.quote-cell-qty .qty-stepper { height: 32px; }
.quote-cell-qty .qty-btn { width: 32px; font-size: 14px; }
.quote-cell-qty .qty-val, .quote-cell-qty .qty-input { font-size: 12px; }
.quote-cell-remove button {
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--fg-mute);
  transition: all 0.15s;
}
.quote-cell-remove button:hover { background: var(--danger); color: white; }

.quote-add-more {
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1.5px dashed var(--fg);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  white-space: nowrap; /* "상품 추가하기"가 중간에 꺾이지 않게 */
}
.quote-add-more:hover {
  background: var(--accent);
  border-style: solid;
  transform: translateY(-1px);
}
.quote-add-more:active { transform: translateY(0); }
.quote-add-more svg {
  padding: 3px;
  background: var(--fg);
  color: var(--accent);
  border-radius: 50%;
}
.quote-add-more-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0;
  margin-left: 4px;
  white-space: nowrap;
}
.quote-add-more:hover .quote-add-more-sub { color: var(--fg-sub); }
/* 모바일: 좁은 폭에서도 한 줄 유지 */
@media (max-width: 640px) {
  .quote-add-more { padding: 12px 10px; gap: 6px; font-size: 14px; }
  .quote-add-more-sub { font-size: 11px; }
}

.quote-totals {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--fg);
  display: flex; flex-direction: column;
  gap: 8px;
}
.quote-total-row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  color: var(--fg-sub);
}
.quote-total-row.grand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.quote-form-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.field {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-sub);
}
.field-label em {
  color: var(--danger);
  font-style: normal;
  margin-left: 2px;
}
.field input, .field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  outline: none;
  transition: all 0.15s;
  font-size: 14px;
}
.field input:focus, .field textarea:focus {
  border-color: var(--fg);
  background: var(--card);
}
.field textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--fg-sub);
  margin-bottom: 20px;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fg); }
.check a { text-decoration: underline; }

.quote-form-note {
  text-align: center;
  font-size: 13px;
  color: var(--fg-sub);
  margin-top: 16px;
}
.quote-form-note b { font-family: var(--font-mono); color: var(--fg); }

.quote-success {
  margin-top: 16px;
  padding: 16px;
  background: var(--accent);
  border: 1.5px solid var(--fg);
  border-radius: var(--radius);
}
.quote-success-title { font-weight: 800; margin-bottom: 4px; }
.quote-success-sub { font-size: 13px; }

@media (max-width: 1000px) {
  .quote-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .quote-cart, .quote-form { padding: 20px; }
  /* 2줄 영수증형 배치는 좁은 화면에서도 그대로 동작 — 별도 오버라이드 불필요 */
}

/* ====== Kakao Float ====== */
/* 우측 플로팅 스택(위→아래): 카카오 → 상품리스트(LIST) → TOP(스크롤 시) */
.kakao-float {
  position: fixed;
  bottom: 84px; right: 24px;   /* LIST 버튼(24px) 위 — 24 + 52 + 8 */
  z-index: 90;
}
/* 카카오 버튼 - TOP 버튼과 동일한 스펙 (52×52 + 화이트 카드 + 다크 아웃라인 + 오프셋 그림자) */
.kakao-fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--kakao);
  color: #3A1D1D;
  border: 1.5px solid var(--fg);
  box-shadow: 3px 3px 0 var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.15s ease, background 0.15s, color 0.15s;
}
.kakao-fab:hover {
  background: var(--fg);
  color: var(--kakao);
  transform: translateY(-2px);
}
.kakao-fab:active { transform: translateY(0); }
.kakao-fab svg { display: block; width: 20px; height: 20px; }
.kakao-fab.open {
  background: var(--fg); color: var(--kakao);
}
.kakao-fab-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 1px;
}
.kakao-pop {
  position: absolute;
  bottom: 68px; right: 0;
  width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.2s ease;
}
.kakao-pop-head {
  background: var(--kakao);
  padding: 16px 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.kakao-pop-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #3A1D1D; }
.kakao-pop-sub { font-size: 12px; color: rgba(58,29,29,0.7); margin-top: 4px; }
.kakao-pop-close { font-size: 24px; line-height: 1; color: #3A1D1D; padding: 0 4px; }
.kakao-pop-body {
  padding: 20px;
  background: #A0BFD3;
  min-height: 140px;
  display: flex; flex-direction: column; gap: 8px;
}
.kakao-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  max-width: 85%;
  line-height: 1.5;
}
.kakao-msg-them { background: white; align-self: flex-start; }
.kakao-msg-me { background: var(--kakao); color: #3A1D1D; align-self: flex-end; }
.kakao-msg-hint { opacity: 0.6; font-style: italic; }
.kakao-pop-actions { padding: 16px 20px; }
.kakao-pop-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--kakao);
  color: #3A1D1D;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.15s;
}
.kakao-pop-btn:hover { background: #FFD400; }

/* ====== Scroll to Top Floating Button (카카오 버튼과 동일 스펙, 그 아래 배치) ====== */
.scrolltop-fab {
  position: fixed;
  bottom: -60px;   /* 카카오 버튼 아래 - 여백 8px 두고 노출 안 될 땐 화면 아래로 완전히 숨김 */
  right: 24px;
  z-index: 89;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  border: 1.5px solid var(--fg);
  box-shadow: 3px 3px 0 var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: bottom 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.28s ease,
              background 0.15s, color 0.15s, transform 0.15s;
}
/* 표시 상태: 화면 아래에서 나타나 24px 자리(하단)에 배치
   → 카카오 버튼은 이때 body:has 규칙에 의해 위로 이동 (카카오 위, TOP 아래 구도) */
.scrolltop-fab.show {
  animation: scrolltop-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
}
@keyframes scrolltop-in {
  from { bottom: -60px; opacity: 0; }
  to   { bottom: 24px; opacity: 1; }
}
.scrolltop-fab:hover {
  background: var(--fg);
  color: var(--accent);
  transform: translateY(-2px);
}
.scrolltop-fab:active {
  transform: translateY(0);
}
.scrolltop-fab svg { display: block; width: 20px; height: 20px; }
.scrolltop-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 1px;
}

/* ====== 상품리스트 다운로드 플로팅 (카카오 바로 아래) ====== */
.goodslist-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--fg);
  border: 1.5px solid var(--fg);
  box-shadow: 3px 3px 0 var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: bottom 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.15s ease, background 0.15s, color 0.15s;
}
.goodslist-fab:hover {
  background: var(--fg);
  color: var(--accent);
  transform: translateY(-2px);
}
.goodslist-fab:active { transform: translateY(0); }
.goodslist-fab svg { display: block; width: 20px; height: 20px; }
.goodslist-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 1px;
}

/* ── 플로팅 버튼 호버 툴팁 — 버튼 좌측에 간단 설명 (data-tip 속성) ── */
.kakao-fab { position: relative; }   /* goodslist-fab 은 이미 fixed(포지셔닝 컨텍스트) */
.kakao-fab::after, .goodslist-fab::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 9px;
  box-shadow: 2px 2px 0 rgba(10,10,10,0.18);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1;
}
/* 툴팁 꼬리 (버튼 쪽을 가리키는 마름모) */
.kakao-fab::before, .goodslist-fab::before {
  content: '';
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  width: 9px; height: 9px;
  background: var(--fg);
  transform: translateY(-50%) translateX(8px) rotate(45deg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1;
}
.kakao-fab:hover::after, .goodslist-fab:hover::after,
.kakao-fab:focus-visible::after, .goodslist-fab:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.kakao-fab:hover::before, .goodslist-fab:hover::before,
.kakao-fab:focus-visible::before, .goodslist-fab:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) rotate(45deg);
}
/* 카카오 팝업이 열려 있을 땐 툴팁 숨김 (팝업과 겹침 방지) */
.kakao-fab.open::after, .kakao-fab.open::before {
  opacity: 0 !important;
  visibility: hidden !important;
}
/* 모바일(터치)에선 호버가 없으므로 표시 안 함 */
@media (max-width: 900px) {
  .kakao-fab::after, .kakao-fab::before,
  .goodslist-fab::after, .goodslist-fab::before { display: none; }
}

/* TOP 버튼이 화면에 나오면 카카오·LIST 모두 위로 슬라이드 (카카오 → LIST → TOP 구도) */
body:has(.scrolltop-fab.show) .kakao-float {
  bottom: 144px;   /* 24(TOP) + 52 + 8 + 52 + 8 */
  transition: bottom 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body:has(.scrolltop-fab.show) .goodslist-fab {
  bottom: 84px;    /* 24(TOP) + 52 + 8 */
}
.kakao-float { transition: bottom 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }

@media (max-width: 900px) {
  .scrolltop-fab {
    right: 16px;
    width: 46px; height: 46px;
  }
  .scrolltop-fab svg { width: 17px; height: 17px; }
  .scrolltop-label { font-size: 11px; }
  /* TOP 버튼이 나타나면 카카오·LIST는 그 바로 위로 (46px 스택) */
  body:has(.scrolltop-fab.show) .kakao-float {
    bottom: 132px;   /* 24 + 46 + 8 + 46 + 8 */
  }
  body:has(.scrolltop-fab.show) .goodslist-fab {
    bottom: 78px;    /* 24 + 46 + 8 */
  }
}
/* 발송신청/법적 팝업이 열렸을 땐 숨김 */
body:has(.apply-overlay.open) .scrolltop-fab,
body:has(.legal-modal) .scrolltop-fab,
body:has(.apply-overlay.open) .kakao-float,
body:has(.legal-modal) .kakao-float,
body:has(.apply-overlay.open) .goodslist-fab,
body:has(.legal-modal) .goodslist-fab {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* 발송신청 팝업이 열렸을 땐 우측 견적서 페인도 숨김 */
body:has(.apply-overlay.open) .quote-pane { display: none; }

/* ====== Footer ====== */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: 60px 32px 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center;
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-phone {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.footer-hours {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  line-height: 1.6;
}
.footer-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.footer-hours .footer-mail { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-hours .footer-mail:hover { color: var(--accent); }
.footer-meta a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 8px; align-items: center; }
.footer-legal a:hover { color: var(--accent); }
.footer-legal b { color: rgba(255,255,255,0.75); }

@media (max-width: 900px) {
  .footer { padding: 40px 20px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ====== Quote Pane (사이드 서류) ====== */
.quote-pane {
  position: fixed;
  top: 96px;
  right: 0;
  z-index: 80;
  width: 440px;
  height: calc(100vh - 120px);
  max-height: 780px;
  display: flex;
  align-items: stretch;
  /* peek 상태: 살짝 기울어져 삐져나옴 */
  transform: translateX(calc(100% - 64px)) rotate(-6deg);
  transform-origin: 100% 50%;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}
.quote-pane > * { pointer-events: auto; }

.quote-pane.expanded {
  transform: translateX(20px) rotate(0deg);
}

/* Intro — 페이지 로드 시 견적서가 활짝 나와있다가 peek 위치로 스르륵 들어감 */
.quote-pane.intro {
  animation: pane-intro 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes pane-intro {
  /* 0. 완전 밖에서 시작 */
  0%   { transform: translateX(100%) rotate(-14deg); opacity: 0; }
  /* 22%. 활짝 나온 상태 (사용자 시선 잡기) */
  22%  { transform: translateX(20px) rotate(0deg); opacity: 1; }
  /* 45%. 잠깐 그 자리에 머묾 (짧게) */
  45%  { transform: translateX(20px) rotate(0deg); opacity: 1; }
  /* 100%. peek 위치로 빠르게 들어감 */
  100% { transform: translateX(calc(100% - 64px)) rotate(-6deg); opacity: 1; }
}
/* intro 중에는 다른 애니메이션(idle/hover) 억제 */
.quote-pane.intro,
.quote-pane.intro:hover {
  animation: pane-intro 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}
.quote-pane.expanded .quote-pane-doc {
  box-shadow: -20px 24px 60px rgba(20, 15, 5, 0.25), -4px 4px 0 var(--fg);
}
/* 펼친 상태에서는 높이 제한 해제 — 화면 세로를 최대한 활용해 내부 스크롤 최소화 */
.quote-pane.expanded {
  top: 88px;
  height: calc(100vh - 104px);
  max-height: none;
  z-index: 95; /* 카카오톡·TOP 플로팅(90)보다 위 — 펼치면 페인이 덮는다 */
}
/* 펼쳐진 동안엔 플로팅 버튼 자체도 숨김 (덮이다 만 조각 방지) */
body:has(.quote-pane.expanded) .kakao-float,
body:has(.quote-pane.expanded) .goodslist-fab,
body:has(.quote-pane.expanded) .scrolltop-fab {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* 품목 4개 이상: 밀집 모드 — 폭을 넓히고 행 간격을 줄여 한눈에 더 많이 */
.quote-pane.dense.expanded { width: 520px; }
.quote-pane.dense .qp-doc-row { padding: 7px 0; }
.quote-pane.dense .qp-doc-line2 { margin-top: 2px; }
.quote-pane.dense .qp-doc-brand { display: inline; margin-right: 6px; }
.quote-pane.dense .qp-doc-name { display: inline; }
/* 스크롤이 남아있을 땐 하단 페이드로 "더 있음"을 암시 */
.quote-pane.dense .qp-doc-body {
  mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent);
}
.quote-pane.pulse {
  animation: pane-pulse 0.7s ease;
}
@keyframes pane-pulse {
  0%   { transform: translateX(20px) rotate(0deg); }
  30%  { transform: translateX(-6px) rotate(-2deg); }
  100% { transform: translateX(20px) rotate(0deg); }
}

/* peek 상태에서 살짝 흔들리는 유혹 애니메이션 (2번마다 크게) */
.quote-pane.peek:not(.expanded) {
  animation: pane-idle 6s ease-in-out infinite;
}
@keyframes pane-idle {
  0%, 100% { transform: translateX(calc(100% - 64px)) rotate(-6deg); }
  45%      { transform: translateX(calc(100% - 78px)) rotate(-8deg); }
  55%      { transform: translateX(calc(100% - 78px)) rotate(-8deg); }
}

/* peek 상태 호버 - 훨씬 많이 튀어나옴 (idle 애니메이션 정지) */
.quote-pane.peek:not(.expanded):hover {
  animation: none;
  transform: translateX(calc(100% - 200px)) rotate(-10deg);
  transition: transform 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.quote-pane.peek:not(.expanded):hover .quote-pane-tab {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: -12px 12px 32px rgba(0,0,0,0.28), -2px 0 0 var(--accent);
}

/* Peek 탭 - 항상 보이는 세로 손잡이 */
.quote-pane-tab {
  width: 64px;
  background: var(--fg);
  color: var(--accent-light);
  border-radius: 14px 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: -8px 8px 24px rgba(0,0,0,0.22), -2px 0 0 var(--accent);
  align-self: center;
  height: 240px;
  position: relative;
  overflow: hidden;
}
.quote-pane-tab:hover { background: var(--accent-dark); color: #fff; }

/* Peek 시 우측 가장자리에 은은한 골드 라인 (반짝임 없이 정적) */
.quote-pane.peek:not(.expanded) .quote-pane-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 3px 0 0 var(--accent);
  pointer-events: none;
}
.quote-pane.expanded .quote-pane-tab::after { display: none; }
.qp-tab-icon { position: relative; }
.qp-tab-icon svg { width: 22px; height: 22px; display: block; }
.qp-tab-badge {
  position: absolute;
  top: -6px; right: -10px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--fg);
}
/* 담긴 상품 0개면 배지 숨김 — display:flex 가 hidden 속성을 덮어쓰지 않게 */
.qp-tab-badge[hidden] { display: none; }
.qp-tab-label {
  writing-mode: vertical-rl;
  text-orientation: upright;
  transform: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.qp-tab-chev {
  font-size: 22px; font-weight: 300;
  opacity: 0.7;
}

/* 서류 본체 */
.quote-pane-doc {
  flex: 1;
  background: var(--card);
  border: 1.5px solid var(--fg);
  border-radius: 14px;
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-shadow: -10px 12px 30px rgba(20, 15, 5, 0.12), -2px 2px 0 var(--fg);
  transition: box-shadow 0.3s ease;
  /* 서류 느낌 - 좌측에 미세한 그림 */
  background-image:
    linear-gradient(90deg, var(--accent) 0 4px, transparent 4px);
}
/* peek 상태(접혀있을 때)에는 서류 전체가 클릭 가능함을 시사 */
.quote-pane.peek:not(.expanded) .quote-pane-doc {
  cursor: pointer;
}

.qp-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fg);
  padding-left: 12px;
}
.qp-doc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}
.qp-doc-h1 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.qp-doc-close {
  width: 28px; height: 28px;
  border-radius: 8px;
  font-size: 22px; line-height: 1;
  color: var(--fg-mute);
  transition: all 0.15s;
}
.qp-doc-close:hover { background: var(--bg-alt); color: var(--fg); }

.qp-doc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-left: 12px;
  font-size: 12px;
  color: var(--fg-mute);
}
.qp-doc-meta > div { display: flex; gap: 6px; align-items: baseline; }
.qp-doc-meta span { color: var(--fg-mute); white-space: nowrap; }
.qp-doc-meta b { white-space: nowrap; }
.qp-doc-meta b { color: var(--fg); font-family: var(--font-mono); font-weight: 700; }

.qp-doc-body {
  flex: 1;
  overflow-y: auto;
  padding-left: 12px;
  padding-right: 4px;
  min-height: 0;
  overscroll-behavior: contain; /* 리스트 끝에서 뒤 페이지로 스크롤 전파 방지 */
}
.qp-doc-body::-webkit-scrollbar { width: 4px; }
.qp-doc-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.qp-doc-empty {
  text-align: center;
  padding: 40px 20px;
}
.qp-doc-empty-icon svg {
  width: 44px; height: 44px;
  color: var(--fg-mute);
  margin: 0 auto 12px;
  display: block;
  opacity: 0.4;
}
.qp-doc-empty-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--fg-sub);
  margin-bottom: 6px;
}
.qp-doc-empty-sub {
  font-size: 12px;
  color: var(--fg-mute);
  line-height: 1.6;
}
.qp-doc-empty-sub b {
  background: var(--accent);
  color: var(--fg);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.qp-doc-empty-cta {
  margin-top: 16px;
}

/* 품목 행 — 영수증형 2줄 배치
   1줄: 브랜드·상품명·할인 태그 ........ [삭제]
   2줄: 수량 입력 × 단가 ............... 금액 */
.qp-doc-row {
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 2px 6px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
  animation: rowSlide 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.qp-doc-line2 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.qp-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-mute);
  font-weight: 600;
}
.qp-doc-unit { font-size: 12px; color: var(--fg-sub); }
.qp-doc-amount { margin-left: auto; font-size: 13px; }
@keyframes rowSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.qp-doc-item { min-width: 0; }
.qp-doc-brand { font-size: 11px; color: var(--fg-mute); font-weight: 600; }
.qp-doc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  word-break: keep-all; /* 긴 상품명도 단어 단위 줄바꿈 */
  line-height: 1.35;
}
.qp-doc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-top: 2px;
}
/* 수량 직접 입력칸 (페인·견적 폼 공용) */
.qp-qty-input {
  width: 64px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--fg);
  border-radius: 6px;
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.qp-qty-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.qp-qty-input::-webkit-outer-spin-button,
.qp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qp-qty-input { -moz-appearance: textfield; appearance: textfield; }
.qp-doc-remove {
  width: 20px; height: 20px;
  border-radius: 50%;
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s;
}
.qp-doc-remove:hover { background: var(--danger); color: white; }

.qp-doc-totals {
  padding: 14px 12px 12px;
  background: var(--bg-alt);
  margin-left: 12px;
  margin-right: 4px;
  border-radius: 8px;
  border: 1px dashed var(--fg);
}
.qp-doc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-sub);
  padding: 3px 0;
}
.qp-doc-total-row.grand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1.5px solid var(--fg);
}
.qp-doc-total-note {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  margin-top: 4px;
}

/* 펼친 견적서 안 — 상품 추가하기 (팬 접고 상품 검색으로) */
.qp-add-goods {
  margin: 10px 0 2px 12px;
  padding: 9px 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-alt);
  border: 1.5px dashed var(--fg);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.qp-add-goods:hover { background: var(--accent); }
.qp-add-goods svg { padding: 2px; background: var(--fg); color: var(--accent); border-radius: 50%; flex: none; }

.qp-doc-actions {
  display: flex; gap: 8px;
  padding-left: 12px;
}
.qp-doc-actions .btn { flex: 1; }
.qp-doc-actions .btn-primary { flex: 2; }

.qp-doc-footer {
  padding-left: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--fg-mute);
  font-family: var(--font-mono);
}

/* 모바일 - PC처럼 우측에서 삐져나오는 peek 방식 (탭만 살짝 보여 콘텐츠를 최소로 가림) */
@media (max-width: 900px) {
  /* ※ transform에 !important를 쓰면 keyframe 애니메이션이 무효화됨 —
     여기 규칙들은 데스크톱 규칙과 같은 선택자를 파일 뒤쪽에서 재정의하는 방식으로 이김 */
  .quote-pane {
    top: 76px;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);   /* 실제 보이는 높이 — 주소창·하단 툴바에 버튼이 가려지지 않게 */
    max-height: none;
    width: min(94vw, 420px);
    transform: translateX(calc(100% - 40px)) rotate(-6deg);
  }
  .quote-pane.expanded {
    transform: translateX(8px) rotate(0deg);
    top: 76px;
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);   /* 실제 보이는 높이 — 주소창·하단 툴바에 버튼이 가려지지 않게 */
  }
  .quote-pane.dense.expanded { width: min(94vw, 420px); }
  .quote-pane.pulse { animation: mob-pulse-x 0.7s ease; }
  /* PC와 동일한 idle 들락날락 애니메이션 (모바일 offset · 4초 주기) */
  .quote-pane.peek:not(.expanded) {
    animation: mob-idle-x 4s ease-in-out infinite;
  }
  /* 터치 환경 hover는 peek 그대로 유지 */
  .quote-pane.peek:not(.expanded):hover {
    transform: translateX(calc(100% - 40px)) rotate(-6deg);
    animation: mob-idle-x 4s ease-in-out infinite;
  }
  /* 모바일 인트로: PC와 동일 — 우측에서 활짝 나왔다가 peek로 들어감 */
  .quote-pane.intro,
  .quote-pane.intro:hover {
    animation: mob-intro-x 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  }
  @keyframes mob-intro-x {
    0%   { transform: translateX(100%) rotate(-14deg); opacity: 0; }
    22%  { transform: translateX(8px) rotate(0deg); opacity: 1; }
    45%  { transform: translateX(8px) rotate(0deg); opacity: 1; }
    100% { transform: translateX(calc(100% - 40px)) rotate(-6deg); opacity: 1; }
  }
  @keyframes mob-idle-x {
    0%, 100% { transform: translateX(calc(100% - 40px)) rotate(-6deg); }
    45%      { transform: translateX(calc(100% - 52px)) rotate(-7deg); }
    55%      { transform: translateX(calc(100% - 52px)) rotate(-7deg); }
  }
  /* PC pane-pulse와 동일 — 펼친 위치에서 살짝 튕김 */
  @keyframes mob-pulse-x {
    0%   { transform: translateX(8px) rotate(0deg); }
    30%  { transform: translateX(-6px) rotate(-2deg); }
    100% { transform: translateX(8px) rotate(0deg); }
  }

  /* 세로 손잡이 탭 - PC와 동일 형태, 더 슬림하게 */
  .quote-pane-tab {
    width: 40px;
    height: 168px;
    gap: 8px;
    padding: 12px 5px;
    border-radius: 12px 0 0 12px;
  }
  .qp-tab-icon svg { width: 18px; height: 18px; }
  .qp-tab-label { font-size: 12px; }
  .qp-tab-chev { font-size: 18px; }

  /* 견적서가 열렸을 땐 카카오 플로팅을 숨겨 겹침 방지 */
  .quote-pane.expanded ~ .kakao-float { opacity: 0; pointer-events: none; }

  /* 모바일 견적서 하단은 버튼(전체 삭제·견적서 요청하기)만 — 상품 추가하기·합계·하단 회사명/전화번호 숨김 */
  .qp-add-goods,
  .qp-doc-totals,
  .qp-doc-footer { display: none; }
}

/* 모바일 카카오·LIST 플로팅 — TOP 버튼과 동일 크기(46px)·같은 열 (카카오 → LIST → TOP) */
@media (max-width: 900px) {
  .kakao-float {
    bottom: 78px;   /* LIST(24px) 위 — 24 + 46 + 8 */
    right: 16px;
  }
  .kakao-fab { width: 46px; height: 46px; }
  .kakao-fab svg { width: 22px; height: 22px; }
  .kakao-fab-label { font-size: 10px; }
  .kakao-pop { width: min(320px, calc(100vw - 32px)); bottom: 60px; }
  .goodslist-fab {
    bottom: 24px;
    right: 16px;
    width: 46px; height: 46px;
  }
  .goodslist-fab svg { width: 18px; height: 18px; }
  .goodslist-label { font-size: 10px; }
}

/* ====== Partners 강화 ====== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.partner-cell {
  background: var(--card);
  padding: 28px 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: var(--fg-sub);
  letter-spacing: -0.015em;
  min-height: 90px;
  text-align: center;
  transition: color 0.2s, background 0.2s;
}
.partner-cell:hover {
  color: var(--fg);
  background: var(--bg-alt);
}
.partner-cell img {
  /* 높이는 로고별 비율 보정값으로 인라인 지정 (app.js) */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s;
}
.partner-cell:hover img { filter: none; }
.partners-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
}
.partner-stat {
  text-align: center;
}
.partner-stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.partner-stat-num .unit {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  margin-left: 4px;
}
.partner-stat-label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-stats { grid-template-columns: repeat(2, 1fr); padding: 24px; gap: 24px; }
  .partner-stat-num { font-size: 32px; }
}
@media (max-width: 500px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-cell { padding: 20px 12px; font-size: 14px; min-height: 70px; }
}

/* ====== Product Search ====== */
.product-search {
  max-width: 780px;
  margin: 0 auto 24px;
}
.product-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--fg);
  border-radius: 999px;
  padding: 4px 6px 4px 22px;
  box-shadow: 4px 4px 0 var(--fg);
  transition: box-shadow 0.15s, transform 0.15s;
}
.product-search-box:focus-within {
  box-shadow: 6px 6px 0 var(--fg);
  transform: translate(-1px, -1px);
}
.product-search-icon {
  width: 20px; height: 20px;
  color: var(--fg-sub);
  flex-shrink: 0;
}
.product-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 12px;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}
.product-search-input::placeholder { color: var(--fg-mute); font-weight: 400; }
.product-search-clear {
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--fg-sub);
  background: var(--bg-alt);
  transition: all 0.15s;
  flex-shrink: 0;
}
.product-search-clear:hover { background: var(--fg); color: var(--bg); }
/* 인기 검색 - 해시태그 텍스트 링크 스타일 (필터 칩과 명확히 구분) */
.product-search-hot {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 12px;
}
.phot-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.phot-label::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.phot-chip {
  padding: 4px 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.12s;
  text-underline-offset: 3px;
  font-family: var(--font-sans);
  white-space: nowrap;   /* '스타벅스 아메리카노'처럼 공백이 있어도 한 덩어리로 */
}
.phot-chip::before {
  content: '#';
  color: var(--fg-mute);
  margin-right: 1px;
  font-weight: 700;
}
.phot-chip:hover { color: var(--fg); text-decoration: underline; }
.phot-chip.active { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.phot-chip.active::before { color: var(--accent-dark); }

/* 인기검색과 카테고리 사이 명확한 구분 */
.product-search + .cat-filter {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  position: relative;
}
.product-search + .cat-filter::before {
  content: 'CATEGORY';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
}

/* ====== Load More (페이지당 8, 더보기) ====== */
.product-loadmore {
  margin-top: 32px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 16px;
}
.product-loadmore-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-sub);
  letter-spacing: 0.01em;
}
.product-loadmore-count b {
  color: var(--fg);
  font-weight: 800;
}
.btn-loadmore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--card);
  color: var(--fg);
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 3px 3px 0 var(--fg);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-loadmore:hover {
  background: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--fg);
}
.btn-loadmore:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--fg);
}
.btn-loadmore-more {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 10px;
  background: var(--fg);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}
.btn-loadmore svg {
  transition: transform 0.15s;
}
.btn-loadmore:hover svg { transform: translateY(2px); }

.product-empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.product-empty-icon svg {
  width: 56px; height: 56px;
  color: var(--fg-mute);
  margin: 0 auto 20px;
  display: block;
  opacity: 0.4;
}
.product-empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--fg-sub);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.product-empty-sub {
  font-size: 14px;
  color: var(--fg-mute);
}
.product-empty-sub a { text-decoration: underline; font-weight: 700; color: var(--fg); }

/* ====== Apply Modal — 비즈티콘 v20 현행 팝업(css/apply.css)으로 대체됨 ====== */

/* ====== Legal Modal (이용약관 / 개인정보 처리방침) ====== */
.legal-modal {
  position: fixed; inset: 0;
  z-index: 3000; /* 발송신청 팝업(2000)·fmtPop(2600) 위에서도 열리게 */
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}
.legal-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.legal-modal-panel {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: var(--card);
  border: 1.5px solid var(--fg);
  border-radius: 18px;
  box-shadow: 8px 10px 0 var(--fg), 0 30px 60px rgba(0, 0, 0, 0.2);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalPanelIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: calc(100vh - 64px);
}
.legal-modal-head {
  padding: 24px 28px 18px;
  border-bottom: 1.5px solid var(--fg);
  background: var(--bg-alt);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
}
.legal-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  margin-bottom: 4px;
}
.legal-modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}
.legal-modal-updated {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
}
.legal-modal-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--fg-sub);
  background: var(--card);
  border: 1.5px solid var(--fg);
  transition: all 0.15s;
  flex-shrink: 0;
}
.legal-modal-close:hover { background: var(--fg); color: var(--bg); }

.legal-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  color: var(--fg-sub);
  font-size: 14px;
  line-height: 1.75;
}
.legal-modal-body::-webkit-scrollbar { width: 6px; }
.legal-modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.legal-sec { margin-bottom: 24px; }
.legal-sec:last-child { margin-bottom: 0; }
.legal-sec-h {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.legal-sec-p {
  margin: 0 0 8px;
}
.legal-sec-list {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: none;
}
.legal-sec-list li {
  position: relative;
  padding-left: 4px;
  margin-bottom: 4px;
}
.legal-sec-list li::before {
  content: '·';
  position: absolute;
  left: -14px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 18px;
}

.legal-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.legal-foot-support {
  font-size: 13px;
  color: var(--fg-sub);
}
.legal-foot-support b {
  font-family: var(--font-mono);
  color: var(--fg);
  font-weight: 700;
}
.legal-foot-support a {
  color: var(--fg);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-modal { padding: 0; }
  .legal-modal-panel {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .legal-modal-head, .legal-modal-body, .legal-modal-foot { padding-left: 20px; padding-right: 20px; }
  .legal-modal-title { font-size: 22px; }
}

/* selection */
::selection { background: var(--accent); color: var(--fg); }