/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 모바일 상품상세 CSS
   PC(design_44274/shopdetail.css) 비주얼 언어 그대로,
   단일 컬럼 모바일 레이아웃으로 적용
============================================================ */

.mk-origin-area {
  position: absolute;
  left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
  pointer-events: none; clip: rect(0,0,0,0);
}

#moProductDetail {
  font-family: var(--font); color: var(--text);
  padding-bottom: calc(var(--bottom-nav-h) + 24px + env(safe-area-inset-bottom));
}

/* ① 히어로 이미지 */
.mo-prd-gallery {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.mo-prd-main-img {
  width: 56vw;
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.mo-prd-main-img img { width: 100%; height: 100%; object-fit: contain; }

/* ② 상품 정보 */
.mo-prd-info { padding: 20px 16px 0; }

.mo-prd-brand {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.mo-prd-name {
  font-size: 20px; font-weight: 800; color: var(--text);
  line-height: 1.38; letter-spacing: -.4px; margin: 0 0 8px;
}

/* 서브명 배지 */
.mo-prd-subname-wrap { margin-bottom: 20px; }
.mo-prd-subname-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mo-prd-subname-item {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 9px;
  font-size: 12px; color: var(--text-sub);
}
.mo-prd-subname-item .subname-key { font-weight: 700; color: var(--navy); }
.mo-prd-subname-plain {
  font-size: 13px; color: var(--text-sub);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 10px;
}

/* SKU 안내 배너 */
.mo-sku-guide {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fff; border: 1px solid rgba(12,2,91,.13);
  border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.mo-sku-guide-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.mo-sku-guide span { font-weight: 400; color: var(--text-sub); }

/* SKU 테이블 */
.mo-sku-table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff;
}
.mo-sku-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; table-layout: fixed;
}
.mo-sku-table thead th {
  padding: 10px 8px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  text-align: center; letter-spacing: .02em;
  border-right: 1px solid rgba(255,255,255,.1);
}
.mo-sku-table thead th:last-child { border-right: none; }
.mo-sku-table thead th small { font-weight: 400; opacity: .8; font-size: 10px; display: block; }
.th-sku    { width: 26%; text-align: left !important; padding-left: 10px !important; }
.th-price  { width: 22%; }
.th-stock  { width: 16%; }
.th-qty    { width: 22%; }
.th-select { width: 14%; }

.mo-sku-table tbody tr {
  border-bottom: 1px dashed var(--border); background: #fff;
  transition: background var(--ease); cursor: pointer;
}
.mo-sku-table tbody tr:last-child { border-bottom: none; }
.mo-sku-table tbody tr:active { background: rgba(12,2,91,.04); }
.mo-sku-table tbody tr.sku-selected { background: rgba(12,2,91,.07); }
.mo-sku-table tbody tr.sku-soldout { opacity: .5; cursor: not-allowed; pointer-events: none; }

.mo-sku-table tbody td {
  padding: 11px 8px; text-align: center; vertical-align: middle;
  border-right: 1px solid var(--border); word-break: break-all;
}
.mo-sku-table tbody td:last-child { border-right: none; }

.mo-td-sku {
  font-size: 12px; color: var(--text-sub);
  font-family: 'Consolas', 'Courier New', monospace;
  text-align: left !important; padding-left: 12px !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mo-td-price { font-weight: 800; color: var(--navy); white-space: nowrap; font-size: 12.5px; }
.mo-td-price .orig {
  display: block; font-size: 10px; font-weight: 400;
  color: var(--text-muted); text-decoration: line-through;
}
.mo-td-stock { font-size: 11px; }
.stock-badge {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 6px;
  border-radius: 4px; font-size: 10px; font-weight: 700;
}
.stock-badge.ok  { background: #e8f5e9; color: #2e7d32; }
.stock-badge.low { background: #fff8e1; color: #e65100; }
.stock-badge.out { background: #fff3f5; color: #c62828; }

.mo-td-qty { min-width: 0; }
.mo-sku-qty-ctrl {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 5px;
  overflow: hidden; background: var(--bg);
}
.mo-sku-qty-btn {
  width: 18px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: none; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--text-sub);
  flex-shrink: 0; -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.mo-sku-qty-btn:active { background: var(--navy-lt); color: var(--navy); }
.mo-sku-qty-input {
  width: 24px; height: 26px; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 11px; font-weight: 700;
  font-family: var(--font); color: var(--text); background: var(--bg);
  outline: none; -moz-appearance: textfield; padding: 0;
}
.mo-sku-qty-input::-webkit-outer-spin-button,
.mo-sku-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 선택 체크박스 */
.mo-td-check { text-align: center !important; }
.mo-td-check input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--navy); cursor: pointer;
}

/* 총 금액 */
.mo-price-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 16px;
}
.mo-price-label { font-size: 13px; color: var(--text-sub); font-weight: 500; }
.mo-price-right { display: flex; align-items: baseline; gap: 3px; }
.mo-price-value { font-size: 24px; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.mo-price-won   { font-size: 14px; font-weight: 700; color: var(--navy); }

/* 구매 버튼 */
.mo-action-buttons { display: flex; gap: 8px; margin-bottom: 12px; }
.mo-btn-cart, .mo-btn-buy {
  flex: 1; display: flex; align-items: center; justify-content: center;
  height: 50px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid var(--navy); -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
}
.mo-btn-cart { background: var(--bg); color: var(--navy); }
.mo-btn-cart:active { background: var(--navy-lt); }
.mo-btn-buy  { background: var(--navy); color: #fff; }
.mo-btn-buy:active  { background: var(--navy-dk); }
.mo-btn-soldout {
  width: 100%; text-align: center; padding: 14px 0;
  font-weight: 700; border-radius: var(--radius);
  background: var(--bg-soft); color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.mo-pay-btn { margin-bottom: 8px; }
.mo-pay-btn > * { width: 100%; }

/* 상세 이미지 영역 */
.mo-prd-detail-wrap { margin-top: 24px; border-top: 8px solid var(--bg-soft); }

/* ──────────────────────────────────────
   Fix 5: 제품 고시 정보 테이블 (PC와 동일, 센터정렬)
────────────────────────────────────── */
#productWrap { padding: 24px 16px; }
.tit-prd {
  font-size: 17px; font-weight: 800; color: var(--navy);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  letter-spacing: -.3px;
  text-align: center; /* Fix 5 */
}
.product-info-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.product-info-table tr { border-bottom: 1px solid var(--border); }
.product-info-table tr:first-child { border-top: 1px solid var(--border); }
.product-info-table th {
  width: 100px; padding: 11px 12px;
  background: var(--bg-soft); font-weight: 700; color: var(--navy);
  text-align: left; vertical-align: top; white-space: nowrap; font-size: 12.5px;
}
.product-info-table td {
  padding: 11px 12px; color: var(--text); font-size: 13px;
  line-height: 1.6; vertical-align: top;
}

/* ──────────────────────────────────────
   상세 이미지
────────────────────────────────────── */
.mo-detail-image { padding: 0; line-height: 0; }
.mo-detail-image img, .mo-detail-image video { max-width: 100% !important; height: auto !important; }
.mo-detail-image table { border-collapse: collapse !important; width: 100% !important; }
.mo-detail-image th { background: #f4f6fb !important; color: var(--navy) !important; }
.mo-detail-image td { border-bottom: 1px solid var(--border) !important; }

/* ──────────────────────────────────────
   Fix 6: item-under — PC와 동일 콘텐츠, 모바일 레이아웃
────────────────────────────────────── */
#item-under {
  font-family: var(--font); font-size: 14px;
  color: #333; line-height: 1.6; word-break: break-word; word-wrap: break-word;
}

/* 섹션 공통 타이틀 */
.iu-section-title { text-align: center; padding: 36px 20px 24px; }
.iu-section-title .iu-eyebrow {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); opacity: .45; margin-bottom: 8px;
}
.iu-section-title h3 {
  font-size: 18px; font-weight: 900; color: #111;
  letter-spacing: -.4px; line-height: 1.3;
}
.iu-section-title h3 em { color: var(--navy); font-style: normal; }

/* Hero */
.iu-hero {
  background: linear-gradient(135deg, #0C025B 0%, #1a0a8a 100%);
  color: #fff; padding: 40px 20px 32px; text-align: center;
}
.iu-hero .iu-hero-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px;
}
.iu-hero .iu-hero-title {
  font-size: 18px; font-weight: 900; line-height: 1.5;
  color: #fff; margin-bottom: 28px; letter-spacing: -.3px;
}
.iu-hero .iu-hero-title em { color: #a5b4fc; font-style: normal; }
.iu-hero-cards {
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(255,255,255,.15); border-radius: 12px; overflow: hidden;
  margin-top: 24px;
  --card-left: 20px; /* ← 좌측 여백 여기서 조절 */
}
.iu-hero-cards .card {
  padding: 14px var(--card-left);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 14px;
  text-align: left;
}
.iu-hero-cards .card-icon {
  font-size: 18px; color: #a5b4fc;
  flex-shrink: 0; width: 24px; text-align: center;
}
.iu-hero-cards .card-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; text-align: left;
}
.iu-hero-cards .card-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  text-align: left;
}
.iu-hero-cards .card-value {
  font-size: 13px; font-weight: 600; color: #fff;
  line-height: 1.55; word-break: break-word; text-align: left;
}

/* tl-title 센터 정렬 */
.tl-title { text-align: center !important; }

/* 구매 안내 */
.iu-notice { background: #fff; padding-bottom: 32px; }
.iu-notice-grid { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.iu-notice-card {
  border: 1px solid #e8ecf4; border-radius: 12px;
  padding: 20px 16px; background: #fafbff;
}
.iu-notice-card .nc-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #edf0f8;
}
.iu-notice-card .nc-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0;
}
.iu-notice-card .nc-title { font-size: 14px; font-weight: 800; color: #111; }
.iu-notice-list { list-style: none; margin: 0; padding: 0; }
.iu-notice-list li { position: relative; padding: 4px 0 4px 14px; font-size: 13px; color: #555; line-height: 1.7; word-break: break-all; overflow-wrap: break-word; }
.iu-notice-list li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 4px; height: 4px; border-radius: 50%; background: #c5cce0; }
.iu-notice-list .hi-red  { color: #d63031; font-weight: 700; }
.iu-notice-list .hi-blue { color: var(--navy); font-weight: 700; }
.iu-notice-list .note    { font-size: 11px; color: #aaa; }
.iu-notice-list .note::before { display: none !important; }

/* 배송 안내 */
.iu-delivery { background: #f7f8fc; padding-bottom: 32px; }
.iu-delivery-icons { display: flex; gap: 10px; padding: 0 16px 24px; flex-wrap: nowrap; overflow-x: auto; }
.iu-delivery-icon-card {
  flex: 1; min-width: 100px;
  background: #fff; border: 1px solid #e8ecf4; border-radius: 14px;
  padding: 20px 12px 16px; text-align: center;
}
.iu-delivery-icon-card .dic-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #0C025B, #3730a3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 20px; color: #fff;
}
.iu-delivery-icon-card .dic-title { font-size: 13px; font-weight: 800; color: #111; margin-bottom: 6px; }
.iu-delivery-icon-card .dic-desc  { font-size: 11.5px; color: #888; line-height: 1.55; }
.iu-delivery-notes { list-style: none; margin: 0; padding: 0 16px; }
.iu-delivery-notes li {
  position: relative; padding: 8px 0 8px 16px;
  font-size: 13px; color: #666; line-height: 1.7;
  border-bottom: 1px dashed #e8ecf4;
  word-break: break-all; overflow-wrap: break-word;
}
.iu-delivery-notes li:last-child { border-bottom: none; }
.iu-delivery-notes li::before { content: ''; position: absolute; left: 3px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); opacity: .3; }
.iu-delivery-notes .hi-red  { color: #d63031; font-weight: 700; }
.iu-delivery-notes .hi-blue { color: var(--navy); font-weight: 700; }
.iu-delivery-notes .hi-ul   { text-decoration: underline; text-underline-offset: 2px; }

/* 교환/반품/취소 */
.iu-return { background: #fff; padding-bottom: 32px; }
.iu-return-list { list-style: none; margin: 0; padding: 0 16px; counter-reset: return-counter; }
.iu-return-list li {
  counter-increment: return-counter;
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid #f0f2f8;
  font-size: 13px; color: #444; line-height: 1.7;
  word-break: break-word; overflow-wrap: break-word;
}
.iu-return-list li:last-child { border-bottom: none; }
.iu-return-list li::before {
  content: counter(return-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-size: 10px; font-weight: 800; color: var(--navy); opacity: .35;
}
.iu-return-list .hi-red  { color: #d63031; font-weight: 700; }
.iu-return-list .hi-blue { color: var(--navy); font-weight: 700; }

/* CTA 배너 */
.iu-cta {
  background: linear-gradient(135deg, #0C025B 0%, #1a0a8a 100%);
  padding: 36px 20px; display: flex; flex-direction: column;
  align-items: center; gap: 24px; text-align: center;
}
.iu-cta .cta-logo-img { filter: brightness(0) invert(1); height: 36px; }
.iu-cta .cta-body { color: #fff; }
.iu-cta .cta-desc { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; line-height: 1.7; }
.iu-cta .cta-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.iu-cta .cta-contacts li { font-size: 13px; color: rgba(255,255,255,.5); display: flex; gap: 10px; justify-content: center; align-items: center; }
.iu-cta .cta-contacts li strong { color: #fff; font-size: 14px; }

/* 관련상품 */
.mo-related { padding: 20px 16px; border-top: 8px solid var(--bg-soft); }
.mo-section-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); display: inline-block; }
.mo-related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mo-related-list li a { display: block; text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.mo-related-list li img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.mo-rel-name { font-size: 12px; font-weight: 600; color: var(--text); padding: 6px 8px 2px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mo-rel-price { font-size: 13px; font-weight: 800; color: var(--navy); padding: 0 8px 8px; }

.mo-notify { border-top: 8px solid var(--bg-soft); }

/* 유해물질 모달 */
#hazard-warning-modal { display: none; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 9999; }
#hazard-warning-modal.open { display: flex; }
.hazard-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.hazard-modal-box { position: relative; background: var(--bg); border-radius: var(--radius-lg); padding: 32px 24px; box-shadow: var(--shadow-md); width: 90%; max-width: 360px; text-align: center; z-index: 10000; }
.hazard-icon { font-size: 2.4em; margin-bottom: 8px; }
.modal-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.hazard-modal-msg { font-size: 13.5px; line-height: 1.8; }
.hazard-modal-msg p { margin: 0 0 6px; }
.hazard-modal-msg small { font-size: 11px; color: var(--text-muted); }
.copy-email { cursor: pointer; color: var(--navy); font-weight: 700; }
.hazard-modal-close { margin-top: 18px; padding: 10px 36px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--font); }
/* BASIC css end */

