/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 모바일 메인 (main.css)
============================================================ */

section { background: var(--bg); overflow: hidden; }

.sec_inner { padding: 0 16px; }

.sec-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
  margin-bottom: 16px;
  text-align: center;  /* 모든 타이틀 center */
}

/* ══════════════════════════════
   1. 히어로 슬라이더
══════════════════════════════ */
#hero { position: relative; }
.hero-swiper { width: 100%; }

.hero-slide {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 48px 28px 72px;
  overflow: hidden;
}

.slide-1 { background: linear-gradient(135deg, #0C025B 0%, #1a0a8c 60%, #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,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* 글로우 */
.hero-slide::after {
  content: '';
  position: absolute;
  right: -60px; top: 50%; transform: translateY(-50%);
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; flex: 1; }

.hero-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; color: rgba(255,255,255,.45);
  margin-bottom: 12px;
}
.hero-title {
  font-size: 36px; font-weight: 900;
  color: #fff; line-height: 1.15;
  letter-spacing: -.8px; margin-bottom: 12px;
}
.hero-sub {
  font-size: 13px; color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  background: #fff; color: var(--navy);
  font-size: 14px; font-weight: 800;
  border-radius: 12px; text-decoration: none;
  transition: transform .18s;
}
.hero-btn:active { transform: scale(.96); }
.hero-btn-accent {
  background: #f59e0b;
  color: #1a0030;
}

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

/* 화학식 데코 */
.hero-deco { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 130px; pointer-events: none; }
.mol { position: absolute; font-size: 11px; font-weight: 700; font-family: 'Courier New', monospace; color: rgba(255,255,255,.12); white-space: nowrap; }
.mol-1 { top: 18%; right: 16px; font-size: 13px; color: rgba(255,255,255,.18); }
.mol-2 { top: 38%; right: 32px; font-size: 10px; }
.mol-3 { top: 58%; right: 12px; font-size: 12px; color: rgba(255,255,255,.15); }
.mol-4 { top: 75%; right: 28px; font-size: 10px; }

/* 페이지네이션 */
.hero-pagination { position: absolute; bottom: 20px; left: 28px; z-index: 10; }
.hero-pagination .swiper-pagination { position: static; display: flex; gap: 6px; }
.hero-pagination .swiper-pagination-bullet { width: 20px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); opacity: 1; transition: all .3s; }
.hero-pagination .swiper-pagination-bullet-active { width: 32px; background: #fff; }

/* ══════════════════════════════
   2. 숫자 통계
══════════════════════════════ */
#sec-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-list {
  display: flex; list-style: none; margin: 0; padding: 0;
}
.stat-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 22px 8px; position: relative;
}
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
.stat-row {
  display: flex; align-items: flex-end; gap: 1px; line-height: 1;
}
.stat-num {
  font-size: 30px; font-weight: 900;
  color: var(--navy); letter-spacing: -.5px;
}
.stat-unit {
  font-size: 14px; font-weight: 700;
  color: var(--navy); opacity: .7;
  margin-bottom: 3px;
}
.stat-since {
  font-size: 24px; font-weight: 900;
  color: var(--navy); letter-spacing: -.5px;
}
.stat-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 600; margin-top: 6px; letter-spacing: -.1px;
}

/* ══════════════════════════════
   3. 취급 브랜드 그리드
══════════════════════════════ */
#sec-brands {
  padding: 28px 0 28px;
  border-bottom: 1px solid var(--border);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}

/* 이미지 브랜드 버튼 */
.brand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  overflow: hidden;
  padding: 8px;
}
.brand-btn:active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy-lt);
  transform: scale(.96);
}
.brand-btn.brand-img img {
  max-height: 32px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .18s;
}
.brand-btn.brand-img:active img { filter: none; }

/* 텍스트 브랜드 버튼 */
.brand-btn.brand-text {
  font-size: 10.5px;
  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:active { color: var(--navy); }

/* ══════════════════════════════
   4. 추천 상품
══════════════════════════════ */
#sec-products {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
  list-style: none;
  margin: 0;
  padding: 0 16px 20px;
}

.product-grid .item_list { }

.product-grid .tumb {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1 / 1;
  margin-bottom: 10px;
}
.product-grid .tumb a { display: block; width: 100%; height: 100%; }
.product-grid .tumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-grid .tumb:active img { transform: scale(1.04); }

.product-grid .prdname {
  font-size: 12.5px; font-weight: 600; color: var(--text);
  line-height: 1.45; margin-bottom: 6px;
  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: 3px;
}
.product-grid .price { font-size: 14px; font-weight: 800; color: var(--navy); }
.product-grid .price.soldout { font-size: 12px; color: var(--text-muted); }
.product-grid .percent { font-size: 12px; font-weight: 700; color: var(--accent); }
.product-grid strike { font-size: 11px; color: var(--text-muted); }

.more-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-weight: 700; color: var(--text-sub);
  text-decoration: none; transition: all .18s; margin-top: 4px;
}
.more-btn:active { background: var(--bg-soft); border-color: var(--navy); color: var(--navy); }

/* ══════════════════════════════
   5. CTA 배너
══════════════════════════════ */
#sec-cta { padding: 28px 0 32px; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 18px; border-radius: var(--radius-lg);
  text-decoration: none; min-height: 140px;
  position: relative; overflow: hidden; transition: transform .18s;
}
.cta-card:active { transform: scale(.97); }
.cta-quote { background: var(--navy); }
.cta-msds  { background: linear-gradient(145deg, #111827, #1f2937); }
.cta-quote::before {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}
.cta-label { font-size: 9px; font-weight: 700; letter-spacing: .15em; color: rgba(255,255,255,.4); margin-bottom: 6px; }
.cta-title { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: -.4px; line-height: 1.2; margin-bottom: 6px; }
.cta-desc { font-size: 11px; color: rgba(255,255,255,.45); flex: 1; }
.cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: rgba(255,255,255,.12);
  border-radius: 50%; color: rgba(255,255,255,.7); font-size: 14px;
  margin-top: 12px; align-self: flex-start;
}
/* BASIC css end */

