/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — PC 메인 CSS  (main.css)
============================================================ */

#contentWrapper {
  padding: 0 0 60px;
}
.sec_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
section { overflow: hidden; }

.sec-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 28px;
  text-align: center;
}

/* ══════════════════════════════
   1. 히어로
══════════════════════════════ */
#hero {
  position: relative;
  margin-bottom: 0;
  margin-left: calc(-1 * var(--aside-w, 210px));
  width: calc(100% + var(--aside-w, 210px));
}

/* ✅ 핵심: swiper-fade는 wrapper height를 슬라이드에서 못 가져옴 → 명시적 지정 */
.hero-swiper,
.hero-swiper .swiper-wrapper {
  width: 100%;
  height: 600px;
}

.hero-slide {
  position: relative;
  width: 100% !important;
  height: 600px !important;   /* swiper inline style 덮어쓰기 */
  display: flex !important;   /* swiper가 block으로 바꾸는 것 방지 */
  align-items: center;
  padding: 60px 80px 60px calc(var(--aside-w, 210px) + 80px);
  overflow: hidden;
}

/* 슬라이드별 배경 */
.slide-1   { background: linear-gradient(135deg, #0C025B 0%, #1a0a8c 55%, #0e1a6e 100%); }
.slide-2   { background: linear-gradient(135deg, #07013e 0%, #0C025B 50%, #1a1060 100%); }
.slide-3   { background: linear-gradient(135deg, #060028 0%, #0C025B 60%, #200870 100%); }
.slide-event { background: linear-gradient(135deg, #1a0030 0%, #3b0764 50%, #0C025B 100%); }

/* 격자 패턴 */
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* 글로우 */
.hero-slide::after {
  content: '';
  position: absolute; right: 15%; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  margin-left: 60px;
  max-width: 600px;
  width: 55%;
  text-align: left;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; color: rgba(255,255,255,.45);
  margin-bottom: 16px; text-transform: uppercase;
}
.hero-title {
  font-size: 56px; font-weight: 900;
  color: #fff; line-height: 1.15;
  letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,.6);
  margin-bottom: 32px; line-height: 1.6;
}

/* 버튼 */
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 28px;
  font-size: 15px; font-weight: 800;
  border-radius: 14px; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
  letter-spacing: -.2px;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.hero-btn-primary { background: #fff; color: var(--navy); }
.hero-btn-ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.25);
}
.hero-btn-ghost:hover { background: rgba(255,255,255,.18); }
.hero-btn-accent { background: #f59e0b; color: #1a0030; }

/* 이벤트 슬라이드 */
.event-list {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.event-list li {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 14px 20px;
  max-width: 480px;
}
.event-brand { flex: 1; font-size: 16px; font-weight: 700; color: #fff; }
.event-rate   { font-size: 18px; font-weight: 900; color: #f59e0b; letter-spacing: -.3px; }

/* ── 화학식 파티클 데코 ── */
.hero-deco-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* 떠다니는 화학식 공통 */
.mol {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-weight: 800;
  color: rgba(255,255,255,.13);
  white-space: nowrap;
  animation: floatMol linear infinite;
  will-change: transform, opacity;
}

/* 각 원소 위치·크기·속도 */
.m1  { font-size: 28px; top: 12%; left: 62%; animation-duration: 9s;  animation-delay: 0s;   color: rgba(255,255,255,.18); }
.m2  { font-size: 18px; top: 28%; left: 55%; animation-duration: 12s; animation-delay: -3s;  }
.m3  { font-size: 22px; top: 48%; left: 70%; animation-duration: 10s; animation-delay: -6s;  color: rgba(255,255,255,.15); }
.m4  { font-size: 16px; top: 65%; left: 58%; animation-duration: 14s; animation-delay: -2s;  }
.m5  { font-size: 24px; top: 78%; left: 75%; animation-duration: 11s; animation-delay: -4s;  color: rgba(255,255,255,.16); }
.m6  { font-size: 14px; top: 35%; left: 82%; animation-duration: 13s; animation-delay: -7s;  }
.m7  { font-size: 20px; top: 20%; left: 88%; animation-duration: 8s;  animation-delay: -1s;  color: rgba(255,255,255,.12); }
.m8  { font-size: 15px; top: 55%; left: 48%; animation-duration: 15s; animation-delay: -5s;  }
.m9  { font-size: 26px; top: 8%;  left: 78%; animation-duration: 10s; animation-delay: -8s;  color: rgba(255,255,255,.1); }
.m10 { font-size: 13px; top: 88%; left: 65%; animation-duration: 12s; animation-delay: -9s;  }

/* 떠오르며 좌우로 흔들리는 키프레임 */
@keyframes floatMol {
  0%   { transform: translateY(0px)   translateX(0px)   rotate(0deg);   opacity: .7; }
  20%  { transform: translateY(-18px) translateX(8px)   rotate(2deg);   opacity: 1; }
  40%  { transform: translateY(-8px)  translateX(-10px) rotate(-1deg);  opacity: .8; }
  60%  { transform: translateY(-26px) translateX(6px)   rotate(1.5deg); opacity: 1; }
  80%  { transform: translateY(-14px) translateX(-6px)  rotate(-2deg);  opacity: .75; }
  100% { transform: translateY(0px)   translateX(0px)   rotate(0deg);   opacity: .7; }
}

/* 오른쪽 대형 원자 링 (장식) */
.hero-ring {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  animation: ringRotate 20s linear infinite;
}
.hero-ring::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.04);
  animation: ringRotate 14s linear infinite reverse;
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,.12);
  animation: ringRotate 9s linear infinite;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 이벤트 데코 */
.hero-event-deco .event-badge {
  position: absolute;
  right: 5%; top: 50%; transform: translateY(-50%);
  font-size: 180px; font-weight: 900;
  color: rgba(255,255,255,.04);
  letter-spacing: -6px; line-height: 1;
  user-select: none;
}

/* 네비 버튼 */
.hero-prev, .hero-next {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12) !important;
  border-radius: 50%;
  transition: background .18s;
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.25) !important; }
.hero-prev::after, .hero-next::after { font-size: 16px !important; color: #fff !important; }

/* 페이지네이션 */
.hero-pagination { bottom: 24px !important; left: 80px !important; text-align: left; }
.hero-pagination .swiper-pagination-bullet {
  width: 24px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.3); opacity: 1;
  transition: all .3s; margin: 0 3px !important;
}
.hero-pagination .swiper-pagination-bullet-active { width: 40px; background: #fff; }

/* ══════════════════════════════
   2. 통계
══════════════════════════════ */
#sec-stats {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.stats-list {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; list-style: none;
  justify-content: center;
}
/* stat-item 최소너비로 균등 분배 */
.stat-item { min-width: 200px; }
.stat-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 36px 16px;
  position: relative;
}
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--border);
}
.stat-row { display: flex; align-items: flex-end; gap: 2px; line-height: 1; }
.stat-num  { font-size: 44px; font-weight: 900; color: var(--navy); letter-spacing: -1px; }
.stat-unit { font-size: 18px; font-weight: 700; color: var(--navy); opacity: .7; margin-bottom: 5px; }
.stat-since { display: none; } /* 공급시작연도 제거 */
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 8px; }

/* ══════════════════════════════
   3. 취급 브랜드
══════════════════════════════ */
#sec-brands {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.brand-btn {
  display: flex; align-items: center; justify-content: center;
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  overflow: hidden; padding: 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.brand-btn:hover {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy-lt);
  transform: translateY(-2px);
}
.brand-btn.brand-img img {
  max-height: 80px;
  max-width: 90%; width: auto;
  object-fit: contain; filter: grayscale(15%); transition: filter .18s;
}
.brand-btn.brand-img:hover img { filter: none; }
.brand-btn.brand-text-UNUSED {
  font-size: 11px; font-weight: 800;
  color: var(--text-sub); letter-spacing: -.2px;
  text-align: center; line-height: 1.3;
  background: var(--bg-soft);
}
.brand-btn.brand-text:hover { color: var(--navy); }

/* ══════════════════════════════
   4. 추천 상품
══════════════════════════════ */
#sec-products {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  list-style: none; margin: 0; padding: 0 0 28px;
}
.product-grid .item_list { }
.product-grid .tumb {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}
.product-grid .tumb a { display: block; width: 100%; height: 100%; }
.product-grid .tumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.product-grid .tumb:hover img { transform: scale(1.05); }
.product-grid .prdname {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-grid .prdprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.product-grid .price    { font-size: 15px; font-weight: 800; color: var(--navy); }
.product-grid .price.soldout { font-size: 13px; color: var(--text-muted); }
.product-grid .percent  { font-size: 13px; font-weight: 700; color: var(--accent); }
.product-grid strike    { font-size: 12px; color: var(--text-muted); }

.more-btn {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-weight: 700; color: var(--text-sub);
  text-decoration: none; transition: all .18s; margin-top: 0;
}
.more-btn:hover { background: var(--bg-soft); border-color: var(--navy); color: var(--navy); }

/* ══════════════════════════════
   5. CTA 카드
══════════════════════════════ */
#sec-cta {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cta-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 28px; border-radius: var(--radius-lg);
  text-decoration: none; min-height: 180px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.cta-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(12,2,91,.15); }
.cta-quote   { background: var(--navy); }
.cta-msds    { background: linear-gradient(145deg, #111827, #1f2937); }
.cta-thelabk { background: linear-gradient(145deg, #0f4c75, #1b6ca8); }
.cta-card::before {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
}
.cta-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.cta-title { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 8px; }
.cta-desc  { font-size: 13px; color: rgba(255,255,255,.5); flex: 1; }
.cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,.12);
  border-radius: 50%; color: rgba(255,255,255,.7); font-size: 16px;
  margin-top: 20px; align-self: flex-start;
  transition: background .18s, transform .18s;
}
.cta-card:hover .cta-arrow { background: rgba(255,255,255,.22); transform: translateX(4px); }

/* ══════════════════════════════
   6. FAQ
══════════════════════════════ */
#sec-faq {
  padding: 60px 0 80px;
  background: var(--bg);
}
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-list li { border-bottom: 1px solid var(--border); }
.faq-list li:first-child { border-top: 1px solid var(--border); }
.question {
  cursor: pointer; font-weight: 600; font-size: 15px;
  position: relative; padding: 20px 48px 20px 4px;
  user-select: none; color: var(--text);
  transition: color var(--ease);
}
.question::after {
  content: '+'; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; font-weight: 300; color: var(--text-muted);
  transition: transform .3s, color .2s; line-height: 1;
}
.question.active { color: var(--navy); }
.question.active::after { transform: translateY(-50%) rotate(45deg); color: var(--navy); }
.answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
  font-size: 14px; color: var(--text-sub); line-height: 1.8; padding: 0 4px;
}
.answer.active { padding-bottom: 20px; }
.answer a { color: var(--navy); font-weight: 600; }

/* ══════════════════════════════
   Responsive
══════════════════════════════ */
@media (max-width: 1280px) {
  .brand-grid { grid-template-columns: repeat(8, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  #hero { margin-left: calc(-1 * var(--aside-w, 210px)); }
}
@media (max-width: 1023px) {
  #hero { margin-left: 0; width: 100%; }
  .hero-slide { height: 420px; padding: 0 40px; }
  .hero-title { font-size: 42px; }
  .hero-content { width: 70%; margin-left: 0; }
  .brand-grid { grid-template-columns: repeat(5, 1fr); }
  .brand-btn { height: 90px; }
  .brand-btn.brand-img img { max-height: 60px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-btn { height: 72px; }
  .brand-btn.brand-img img { max-height: 48px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .stats-list { flex-wrap: wrap; justify-content: center; }
  .stat-item { min-width: 140px; padding: 24px 12px; }
}

/* 링크 없는 브랜드 버튼 */
.brand-btn.brand-nolink { cursor: default; }
.brand-btn.brand-nolink:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
/* BASIC css end */

