/* ============================================================
  UNIENS — 제품 상세 페이지 공통 스타일
  ──────────────────────────────────────────────────────────
  모든 /products/*.html 상세 페이지에서 style.css 다음에 로드합니다.
  사이트 공통(style.css)의 .section 과 충돌을 피하기 위해
  상세 페이지 섹션은 .p-section / .p-section-title 을 사용합니다.
  ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #0A2342;
  --accent:    #1A5FA8;
  --accent-lt: #E8F0FB;
  --white:     #FFFFFF;
  --light:     #F7F9FC;
  --border:    #D8E0EB;
  --text:      #1A2E44;
  --muted:     #5A6F85;
  --font:      'Noto Sans KR', sans-serif;
  --radius:    4px;
}

body { font-family: var(--font); background: var(--light); color: var(--text); line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* 레이아웃 (헤더/푸터 JS 삽입 영역) */
.layout-wrap { display: flex; flex-direction: column; min-height: 100vh; }
#layout-header { flex-shrink: 0; }
#layout-main   { flex: 1; }
#layout-footer { flex-shrink: 0; }

/* 히어로 */
.prod-hero { background: var(--primary); padding: 56px 40px 48px; border-bottom: 3px solid var(--accent); position: relative; overflow: hidden; }
.prod-hero::after { content: ''; position: absolute; bottom: 0; right: 0; width: 280px; height: 100%; background: rgba(255,255,255,.03); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; }
.hero-eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #7FB3E8; margin-bottom: 14px; border-left: 3px solid var(--accent); padding-left: 10px; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.hero-title span { color: #7FB3E8; }
.hero-sub { font-size: .95rem; color: rgba(255,255,255,.6); font-weight: 400; letter-spacing: .03em; }
.hero-tag { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.65); font-size: .75rem; padding: 4px 12px; border-radius: var(--radius); letter-spacing: .04em; }

/* 본문 컨테이너 */
.page { max-width: 900px; margin: 0 auto; padding: 40px 20px 64px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }

/* 상단: 이미지 + 스펙 */
.top-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 640px) { .top-section { grid-template-columns: 1fr; } }

.product-img-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.product-img-box img { width: 100%; height: auto; object-fit: contain; }

.spec-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-box table { width: 100%; border-collapse: collapse; }
.spec-box td { padding: 11px 16px; font-size: .85rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-box tr:last-child td { border-bottom: none; }
.spec-box td:first-child { color: var(--muted); width: 120px; font-weight: 500; background: var(--light); border-right: 1px solid var(--border); }
.spec-box td:last-child { font-weight: 500; color: var(--text); }

/* 배지 */
.badge-pay    { display: inline-block; background: #EAF5F0; color: #1A6B4A; font-size: .72rem; font-weight: 700; padding: 2px 8px; border: 1px solid #A8D8C0; }
.badge-nopay  { display: inline-block; background: #FFF4E5; color: #B85C00; font-size: .72rem; font-weight: 700; padding: 2px 8px; border: 1px solid #F5C48A; }
.badge-single { display: inline-block; background: var(--accent-lt); color: var(--accent); font-size: .72rem; font-weight: 700; padding: 2px 8px; border: 1px solid #C2D8F0; margin-right: 4px; }

/* 설명 박스 */
.desc-box { background: var(--primary); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.85; margin-bottom: 28px; }

/* 섹션 (style.css의 .section 과 구분되는 상세페이지 전용) */
.p-section { margin-bottom: 32px; }
.p-section-title { font-size: .92rem; font-weight: 800; color: var(--primary); padding-bottom: 10px; border-bottom: 2px solid var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.p-section-title::before { content: ''; display: inline-block; width: 4px; height: 16px; background: var(--accent); flex-shrink: 0; }

/* 불릿 리스트 */
.purpose-list { list-style: none; }
.purpose-list li { font-size: .88rem; color: var(--muted); padding: 6px 0 6px 18px; position: relative; line-height: 1.7; }
.purpose-list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--accent); }

/* 간단 스펙 텍스트 */
.simple-spec { margin-bottom: 28px; }
.simple-spec p { font-size: .88rem; color: var(--muted); padding: 3px 0; line-height: 1.8; }
.simple-spec p strong { color: var(--text); font-weight: 700; }

/* 모델/규격 테이블 */
.model-table { width: 100%; border-collapse: collapse; font-size: .85rem; border: 1px solid var(--border); }
.model-table th { background: var(--accent); color: #fff; padding: 10px 14px; font-weight: 700; text-align: left; }
.model-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.model-table tr:last-child td { border-bottom: none; }
.model-table tr:nth-child(even) td { background: var(--light); }

/* 사용설명서 이미지 */
.manual-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.manual-box img { width: 100%; height: auto; }
@media (max-width: 640px) { .manual-box { padding: 12px; } }

/* 다운로드 카드 */
.dl-label { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.dl-label::before { content: '▼'; font-size: .65rem; color: var(--accent); }

.download-card { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; margin-bottom: 8px; }
.download-card:hover { box-shadow: 0 4px 20px rgba(26,95,168,.12); transform: translateY(-2px); }
.dl-icon { width: 44px; height: 44px; background: var(--accent-lt); border: 1px solid #C2D8F0; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-fname { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.dl-meta  { font-size: .75rem; color: var(--muted); }
.dl-badge { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-lt); padding: 4px 12px; border: 1px solid #C2D8F0; white-space: nowrap; }

/* 하단 연락처 바 */
.contact-bar { background: var(--primary); color: rgba(255,255,255,.65); border-radius: var(--radius); padding: 18px 24px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.contact-bar strong { color: #fff; font-weight: 700; }
.contact-divider { color: rgba(255,255,255,.2); }
