/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* ═══════════════════════════════════
   0. GLOBAL RESET
═══════════════════════════════════ */
html, body {
  overflow-x: hidden;
}

/* GeneratePress #page.grid-container는 기본 max-width:1200px
   홈 / 상품 페이지에서 100%로 해제하여 우리 컨테이너가 단독 제어 */
.home #page,
.home .site-content,
.single-product #page,
.single-product .site-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ═══════════════════════════════════
   1. PRODUCT PAGE
═══════════════════════════════════ */
.product-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 48px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.product-main  { flex: 1; min-width: 0; }
.product-sidebar { flex: 0 0 300px; max-width: 300px; }

.inquiry-box {
  position: sticky;
  top: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.inquiry-box h3 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 2px solid #2563eb;
}
.cat-no-row {
  display: flex; align-items: center; gap: 8px;
  background: #f5f7fa; padding: 8px 12px;
  border-radius: 6px; margin-bottom: 16px;
}
.cat-no-label { font-size: 11px; color: #888; display: block; margin-bottom: 2px; }
.cat-no-value { font-size: 14px; font-weight: 600; font-family: monospace; }
.copy-btn {
  margin-left: auto;
  background: #e8eef8; border: none; border-radius: 4px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
  color: #2563eb; font-weight: 600; transition: background 0.2s;
}
.copy-btn:hover { background: #2563eb; color: #fff; }
.inquiry-btn {
  display: block; width: 100%;
  background: #2563eb; color: #fff !important;
  text-align: center; padding: 14px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  margin-bottom: 12px; transition: background 0.2s;
}
.inquiry-btn:hover { background: #1d4ed8; }
.inquiry-note { font-size: 11px; color: #999; text-align: center; margin: 0; }

.spec-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-reactivity { background: #dbeafe; color: #1d4ed8; }
.badge-host       { background: #f3f4f6; color: #374151; }
.badge-category   { background: #dcfce7; color: #166534; }
.badge-size       { background: #ffedd5; color: #9a3412; }
.badge-detection  { background: #ede9fe; color: #5b21b6; }
.badge-storage    { background: #e0f2fe; color: #0369a1; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 14px; border: 1px solid #e5e7eb; text-align: left; }
.spec-table th { background: #f9fafb; color: #6b7280; font-weight: 600; width: 160px; }
.spec-table td { color: #111827; }
.spec-table tr:hover td { background: #f9fafb; }

.price-section { display: none; }

.lumigen-supply-info {
  background: #f8fafc; border-left: 4px solid #2563eb;
  padding: 16px 20px; margin: 24px 0;
  border-radius: 0 8px 8px 0; font-size: 14px; color: #374151; line-height: 1.8;
}
.lumigen-supply-info strong { color: #1e3a5f; }

.related-products { margin-top: 48px; }
.related-products h2 { font-size: 18px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; font-size: 13px; transition: box-shadow 0.2s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.related-card a { color: #111827; text-decoration: none; font-weight: 600; }
.related-card .mfr { color: #6b7280; font-size: 11px; margin-top: 4px; }

/* ═══════════════════════════════════
   2. FRONT PAGE — 변수 / 기본
═══════════════════════════════════ */
:root {
  --navy:   #1B3A6B;
  --teal:   #4FC3B8;
  --teal-d: #35A89E;
  --border: #E5EAF0;
  --bg-alt: #F7F9FC;
  --muted:  #6B7280;
  --radius: 12px;
  --wrap:   1280px;
  --px:     48px;
}

body {
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

/* 헤더 로고 */
.site-logo img, .site-logo .header-image { max-height: 44px !important; width: auto !important; height: auto !important; }
.site-branding .main-title { display: none !important; }

/* ── 공통 컨테이너 ──
   섹션이 full-width 배경을 가질 수 있도록,
   콘텐츠만 max-width 안에 중앙 정렬 */
.fp-wrap {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
  box-sizing: border-box;
  width: 100%;
}

/* ═══════════════════════════════════
   3. HERO
═══════════════════════════════════ */
.fp-hero {
  background: #fff;
  padding: 88px var(--px) 68px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.fp-hero .fp-wrap { padding: 0; } /* hero 자체에 padding 있으므로 */

.fp-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 16px;
}
.fp-hero-title {
  font-size: 42px; font-weight: 800;
  line-height: 1.2; letter-spacing: -0.04em;
  color: var(--navy); margin: 0 0 36px;
}

.fp-search-form { max-width: 600px; margin: 0 auto 20px; }
.fp-search-box {
  display: flex; align-items: center;
  background: #fff; border: 1.5px solid #CDD5DF; border-radius: 14px;
  padding: 7px 7px 7px 20px;
  box-shadow: 0 4px 20px rgba(27,58,107,0.08);
  transition: border-color .2s, box-shadow .2s;
}
.fp-search-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(79,195,184,0.15), 0 0 0 3px rgba(79,195,184,0.10);
}
.fp-search-input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: inherit;
  color: #111827; background: transparent;
  padding: 4px 0; min-width: 0;
}
.fp-search-input::placeholder { color: #B0BAC8; }
.fp-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--navy); border: none; border-radius: 10px;
  cursor: pointer; color: #fff; transition: background .18s;
}
.fp-search-btn:hover { background: #142d56; }
.fp-search-btn svg { width: 19px; height: 19px; }

.fp-chips {
  display: flex; align-items: center;
  justify-content: center; flex-wrap: wrap; gap: 8px;
}
.fp-chip-label { font-size: 11px; color: #9CA3AF; font-weight: 500; margin-right: 2px; }
.fp-chip {
  display: inline-block; padding: 4px 13px;
  border-radius: 20px; border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: #4B5563;
  text-decoration: none; background: #fff; transition: all .15s;
}
.fp-chip:hover { border-color: var(--teal); color: var(--teal); }

/* ═══════════════════════════════════
   4. 섹션 공통
═══════════════════════════════════ */
.fp-section { padding: 64px 0; background: #fff; }
.fp-section-alt { padding: 64px 0; background: var(--bg-alt); }

.fp-section-hd {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 28px;
}
.fp-section-title {
  font-size: 19px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.03em; margin: 0;
}
.fp-view-all { font-size: 13px; color: var(--teal); text-decoration: none; font-weight: 500; }
.fp-view-all:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   5. 카테고리 그리드 (3열)
═══════════════════════════════════ */
.fp-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fp-cat-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; background: #fff;
  transition: box-shadow .18s, transform .18s;
}
.fp-cat-card:hover { box-shadow: 0 8px 24px rgba(27,58,107,0.09); transform: translateY(-2px); }
.fp-cat-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.fp-cat-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.fp-cat-desc { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════
   6. 상품 그리드 (4열)
═══════════════════════════════════ */
.fp-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fp-product-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}
.fp-product-card:hover { box-shadow: 0 6px 20px rgba(27,58,107,0.09); transform: translateY(-2px); }
.fp-product-top  { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-badge-cat    { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: #EEF2FF; color: #3730A3; }
.fp-badge-react  { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: #F0FDF4; color: #166534; }
.fp-product-name {
  font-size: 13px; font-weight: 600; color: #111827;
  line-height: 1.45; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.fp-product-meta { display: flex; flex-direction: column; gap: 3px; }
.fp-product-meta span { font-size: 11px; color: var(--muted); }
.fp-product-meta code { font-size: 11px; color: #94A3B8; font-family: monospace; background: none; padding: 0; border: none; }
.fp-product-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto;
}
.fp-price     { font-size: 14px; font-weight: 700; color: var(--navy); }
.fp-price-inq { font-size: 12px; font-weight: 600; color: var(--teal); }
.fp-arrow     { font-size: 12px; color: #CBD5E1; }
.fp-product-card:hover .fp-arrow { color: var(--teal); }

/* ═══════════════════════════════════
   7. 신뢰도 띠
═══════════════════════════════════ */
.fp-trust {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0; text-align: center;
}
.fp-trust-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fp-trust-text  { font-size: 14px; color: #374151; margin: 0; }
.fp-trust-text strong { color: var(--navy); }
.fp-vendors { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.fp-vendors span { font-size: 11px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.08em; }

/* ═══════════════════════════════════
   8. CTA
═══════════════════════════════════ */
.fp-cta { padding: 48px 0; background: var(--bg-alt); }
.fp-cta-card {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
  background: var(--navy); border-radius: 18px;
  padding: 40px 48px; box-sizing: border-box;
}
.fp-cta-text { flex: 1; min-width: 0; }
.fp-cta-title { font-size: 21px; font-weight: 700; color: #fff; margin: 0 0 6px; letter-spacing: -0.03em; }
.fp-cta-sub   { font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; }
.fp-cta-btn {
  flex-shrink: 0;
  display: inline-block;
  background: var(--teal); color: #fff !important;
  padding: 13px 28px; border-radius: 9px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  transition: background .18s;
}
.fp-cta-btn:hover { background: var(--teal-d); }

/* ═══════════════════════════════════
   9. 반응형
═══════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --px: 40px; }
}
@media (max-width: 1024px) {
  :root { --px: 32px; }
  .fp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-cat-grid     { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --px: 20px; }
  .fp-hero         { padding: 56px var(--px) 44px; }
  .fp-hero-title   { font-size: 28px; }
  .fp-cat-grid     { grid-template-columns: repeat(2, 1fr); }
  .fp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-cta-card     { flex-direction: column; align-items: flex-start; padding: 28px 24px; border-radius: 14px; }
  .fp-cta-btn      { width: 100%; text-align: center; }
  .product-layout  { flex-direction: column; padding: 24px 20px; }
  .product-sidebar { flex: none; width: 100%; max-width: 100%; }
  .related-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .fp-cat-grid     { grid-template-columns: 1fr 1fr; }
  .fp-product-grid { grid-template-columns: 1fr; }
}

/* ══ 견적 문의 인라인 폼 ══ */
.inq-label {
  display: block; font-size: 11px; font-weight: 600;
  color: #374151; margin-bottom: 4px;
}
.inq-input, .inq-textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid #d1d5db; border-radius: 6px;
  padding: 8px 10px; font-size: 13px; font-family: inherit;
  color: #111827; background: #fff; transition: border-color .2s;
}
.inq-input:focus, .inq-textarea:focus { outline: none; border-color: #2563eb; }
.inq-textarea { resize: vertical; }
.inq-submit-btn {
  display: block; width: 100%; margin-top: 12px;
  background: #1B3A6B; color: #fff; border: none;
  border-radius: 7px; padding: 11px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: background .18s;
}
.inq-submit-btn:hover    { background: #142d56; }
.inq-submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }
