/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 상품상세 모바일 CSS
   shopdetail.mobile.css
============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: #f7f8fc;
  margin: 0; padding: 0;
}

#productDetail {
  --navy: #0C025B;
  --navy-dk: #080142;
  color: #1a1a2e;
  padding-bottom: 120px; /* 하단 구매바 + 네비 여백 */
}

/* ══════════════════════════════════════
   갤러리
══════════════════════════════════════ */
.prd-gallery {
  background: #fff;
  padding: 16px;
}

#multi_image_thumb_list { display: none !important; }

.prd-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin: 0 auto 10px;
  background: #f8fafd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prd-main-img img,
.prd-main-img #lens_img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  border: none !important;
}

.prd-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.prd-thumb-item {
  width: 52px; height: 52px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.prd-thumb-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prd-thumb-item span { display: none; }
.prd-thumb-item.active { border-color: var(--navy); }

/* ══════════════════════════════════════
   상품 정보
══════════════════════════════════════ */
.center-section {
  background: #fff;
  padding: 16px 16px 12px;
  border-top: 1px solid #f1f2f6;
}

.prd-brand-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.prd-brand-wrap a {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  text-transform: uppercase;
}
.prd-brand-sep { color: #d1d5db; font-size: 12px; }
.prd-model { font-size: 12px; color: #6b7280; }

.prd-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  letter-spacing: -.3px;
  margin: 0 0 8px;
}

/* 서브네임 뱃지 */
.prd-subname-wrap { margin: 6px 0 10px; }
.prd-subname-list {
  list-style: none;
  margin: 0; padding: 2px 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prd-subname-list::-webkit-scrollbar { display: none; }
.prd-subname-item {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #c4bfee;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.subname-key {
  background: #0C025B; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 7px;
  white-space: nowrap;
  display: flex; align-items: center;
}
.subname-val {
  background: #fff; color: #0f172a;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px;
  display: flex; align-items: center;
  white-space: nowrap;
}

/* 할인 배지 */
.prd-dc-row { margin-bottom: 6px; }
.prd-dc-badge {
  background: #dc2626; color: #fff;
  font-size: 13px; font-weight: 800;
  padding: 3px 10px; border-radius: 4px;
}

/* 오늘출발 */
.today-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  background: #e8f5e9;
  border-radius: 6px;
  border: 1px solid #c8e6c9;
}
.today-delivery .icon {
  background: #2e7d32; color: #fff;
  padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.today-delivery .txt { font-size: 12px; color: #1b5e20; }

/* ══════════════════════════════════════
   SKU 테이블 — B형 (규격+가격 합칠)
══════════════════════════════════════ */
.sku-section {
  background: #fff;
  padding: 0 12px 12px;
  border-top: 8px solid #f7f8fc;
}

.sku-table-wrap {
  border: 1px solid #c4bfee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

/* 5열: 규격 / 구매가 / 재고 / 수량 / 선택 */
.sku-table col.col-spec  { width: auto; }
.sku-table col.col-price { width: 72px; }
.sku-table col.col-stock { width: 58px; }
.sku-table col.col-qty   { width: 76px; }
.sku-table col.col-check { width: 28px; }

.sku-table thead th {
  padding: 8px 6px;
  background: linear-gradient(135deg, #0C025B, #1a0a7a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
}
.sku-table thead th:first-child { text-align: center; padding-left: 6px; }
.sku-table thead th:last-child { border-right: none; }
.sku-table thead th small { font-weight: 400; opacity: .7; font-size: 9px; display: block; }

.sku-table tbody tr {
  border-bottom: 1px solid #e8eeff;
  background: #fff;
  cursor: pointer;
  transition: background .12s;
}
.sku-table tbody tr:last-child { border-bottom: none; }
.sku-table tbody tr:active { background: #f5f4ff; }
.sku-table tbody tr.sku-selected { background: #f0eeff; }
.sku-table tbody tr.sku-soldout { opacity: .5; pointer-events: none; }

.sku-table tbody td {
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #e8eeff;
}
.sku-table tbody td:last-child { border-right: none; }

/* 5열 셀 스타일 */
.td-spec {
  font-size: 11px; font-weight: 700; color: #111;
  text-align: left; padding-left: 8px !important;
  word-break: break-all;
}
.td-price {
  font-size: 11.5px; font-weight: 900;
  color: var(--navy); white-space: nowrap;
}
.td-price strike {
  color: #dc2626; font-weight: 700;
  font-size: 10px; display: block;
}
.td-stock { font-size: 10.5px; }

.stock-badge {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 5px;
  border-radius: 3px; font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.stock-badge.ok  { background: #e8f5e9; color: #2e7d32; }
.stock-badge.low { background: #fff3e0; color: #e65100; }
.stock-badge.out { background: #f3f4f6; color: #9ca3af; }

/* 수량 컨트롤 */
.sku-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c4bfee;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.sku-qty-btn {
  width: 18px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: #f0eeff; border: none;
  cursor: pointer; font-size: 12px; font-weight: 700;
  color: #1a0a7a; flex-shrink: 0;
}
.sku-qty-btn:active { background: #dbeafe; }
.sku-qty-input {
  width: 22px; height: 24px;
  border: none;
  border-left: 1px solid #c4bfee;
  border-right: 1px solid #c4bfee;
  text-align: center;
  font-size: 11px; font-weight: 700;
  font-family: inherit; color: #111;
  background: #fff; outline: none;
  -moz-appearance: textfield;
}
.sku-qty-input::-webkit-outer-spin-button,
.sku-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.td-check input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--navy); cursor: pointer;
}

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

/* ══════════════════════════════════════
   하단 고정 구매 바
══════════════════════════════════════ */
.prd-buy-bar {
  position: fixed;
  bottom: 60px; /* 하단 네비 위 */
  left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 10px 16px;
}

.buy-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-bar-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.buy-bar-label { font-size: 11px; color: #999; margin-right: auto; }
.buy-bar-value {
  font-size: 20px; font-weight: 900;
  color: var(--navy); letter-spacing: -.5px;
}
.buy-bar-vat { font-size: 11px; color: #999; }

.buy-bar-btns {
  display: flex;
  gap: 8px;
}
.btn_cart, .btn_buy {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 44px;
  font-size: 14px; font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn_cart {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn_cart:active { background: #f0eeff; }
.btn_buy {
  background: linear-gradient(135deg, #0C025B, #1a0a7a);
  color: #fff; border: none;
  box-shadow: 0 3px 10px rgba(12,2,91,.25);
}
.btn_buy:active { opacity: .9; }
.btn_soldout {
  flex: 1; text-align: center; padding: 13px 0;
  font-weight: 700; border-radius: 6px;
  background: #f3f4f6; color: #9ca3af;
  border: 1.5px solid #e5e7eb;
}

.soldout-btns { display: none; }

/* ══════════════════════════════════════
   탭
══════════════════════════════════════ */
.detailTab {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
}
.detailTab::-webkit-scrollbar { display: none; }
.detailTab ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  min-width: max-content;
}
.detailTab ul li a {
  display: block;
  font-size: 13px; font-weight: 600;
  color: #999;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s;
}
.detailTab ul li a.active,
.detailTab ul li a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ══════════════════════════════════════
   상품 상세
══════════════════════════════════════ */
.prd-detail {
  background: #fff;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.prd-detail img { max-width: 100%; height: auto; }

#productWrap { margin: 0 0 20px; }
.tit-prd {
  font-size: 15px; font-weight: 800; color: var(--navy);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}
.product-info-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.product-info-table tr { border-bottom: 1px solid #e8eeff; }
.product-info-table th {
  width: 90px; padding: 9px 10px;
  background: #f5f4f8; font-weight: 700;
  color: #1a1a2e; text-align: left;
  vertical-align: top; font-size: 11.5px;
  white-space: nowrap;
}
.product-info-table td {
  padding: 9px 10px; color: #111827;
  font-size: 12.5px; line-height: 1.6;
  vertical-align: top; word-break: break-word;
}

/* ══════════════════════════════════════
   연관상품 — 가로 스크롤 카드
══════════════════════════════════════ */
.related-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 16px;
  background: #fff;
}
.related-wrap::-webkit-scrollbar { display: none; }

.related-card {
  flex-shrink: 0;
  width: 130px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.related-card:active { opacity: .85; }

.related-thumb {
  width: 100%; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafd;
}
.related-thumb img { width: 80px; height: 80px; object-fit: contain; }

.related-body { padding: 8px; }
.related-name {
  font-size: 11.5px; font-weight: 600; color: #333;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; margin-bottom: 4px;
}
.related-price { font-size: 11px; }
.related-price .price { font-weight: 800; color: var(--navy); }
.related-price strike { color: #9ca3af; font-size: 10px; display: block; }
.soldout-txt { font-size: 11px; color: #9ca3af; font-weight: 600; }

/* ══════════════════════════════════════
   리뷰 / QnA
══════════════════════════════════════ */
.board-wrap {
  background: #fff;
  padding: 0 16px 8px;
}
.board-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f2f6;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.board-row:last-of-type { border-bottom: none; }
.board-row:active { background: #fafafa; }
.board-subject {
  flex: 1; font-size: 13px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-meta { flex-shrink: 0; font-size: 11px; color: #bbb; white-space: nowrap; }
.board-empty { padding: 24px 0; text-align: center; color: #bbb; font-size: 13px; }
.board-write { padding: 8px 0 4px; display: flex; justify-content: flex-end; }
.board-write a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 16px;
  background: var(--navy); color: #fff;
  border-radius: 4px; font-size: 12px;
  font-weight: 700; text-decoration: none;
}

/* ══════════════════════════════════════
   item-under (구매안내 섹션)
══════════════════════════════════════ */
#item-under {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 13px; color: #333; line-height: 1.6;
}
.iu-section-title {
  text-align: center; padding: 28px 16px 20px;
}
.iu-section-title .iu-eyebrow {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #0C025B; opacity: .5; margin-bottom: 8px;
}
.iu-section-title h3 {
  font-size: 17px; font-weight: 900; color: #111;
  letter-spacing: -.3px; line-height: 1.3;
}
.iu-section-title h3 em { color: #0C025B; font-style: normal; }

.iu-hero {
  background: linear-gradient(135deg, #0C025B 0%, #1a0a7a 100%);
  color: #fff; padding: 32px 16px 24px; 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.4;
  color: #fff; margin-bottom: 24px;
}
.iu-hero .iu-hero-title em { color: #bfdbfe; font-style: normal; }
.iu-hero-cards {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 100%;
}
.iu-hero-cards .card {
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border-radius: 8px; text-align: left;
  display: flex; gap: 12px; align-items: center;
}
.iu-hero-cards .card-icon { font-size: 18px; color: #bfdbfe; flex-shrink: 0; }
.iu-hero-cards .card-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 3px;
}
.iu-hero-cards .card-value { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.6; }

.iu-notice { background: #fff; padding-bottom: 24px; }
.iu-notice-grid { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.iu-notice-card {
  border: 1px solid #c4bfee; border-radius: 6px;
  padding: 16px 14px; background: #faf9ff;
}
.nc-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 1px solid #e2eaff;
}
.nc-icon {
  width: 30px; height: 30px; border-radius: 4px;
  background: #0C025B;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; flex-shrink: 0;
}
.nc-title { font-size: 13px; font-weight: 800; color: #111; }
.iu-notice-list { list-style: none; margin: 0; padding: 0; }
.iu-notice-list li {
  position: relative; padding: 3px 0 3px 12px;
  font-size: 12px; color: #555; line-height: 1.7;
}
.iu-notice-list li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #c4bfee;
}
.iu-notice-list .hi-red  { color: #d63031; font-weight: 700; }
.iu-notice-list .hi-blue { color: #0C025B; font-weight: 700; }
.iu-notice-list .note    { font-size: 10px; color: #aaa; }
.iu-notice-list .note::before { display: none; }

.iu-delivery { background: #f0f4ff; padding-bottom: 24px; }
.iu-delivery-icons {
  display: flex; gap: 8px;
  padding: 0 16px 16px;
}
.iu-delivery-icon-card {
  flex: 1;
  background: #fff; border: 1px solid #c4bfee;
  border-radius: 6px; padding: 16px 10px 14px;
  text-align: center;
}
.dic-icon {
  width: 44px; height: 44px; border-radius: 6px;
  background: linear-gradient(135deg, #0C025B, #1a0a7a);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 18px; color: #fff;
}
.dic-title { font-size: 12px; font-weight: 800; color: #111; margin-bottom: 4px; }
.dic-desc { font-size: 10.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: 5px 0 5px 14px;
  font-size: 12px; color: #666; line-height: 1.7;
  border-bottom: 1px dashed #c4bfee;
}
.iu-delivery-notes li:last-child { border-bottom: none; }
.iu-delivery-notes li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #0C025B; opacity: .3;
}
.iu-delivery-notes .hi-red  { color: #d63031; font-weight: 700; }
.iu-delivery-notes .hi-blue { color: #0C025B; font-weight: 700; }

.iu-return { background: #fff; padding-bottom: 24px; }
.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: 10px 0 10px 22px;
  border-bottom: 1px solid #e8eeff;
  font-size: 12px; color: #444; line-height: 1.7;
}
.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: 12px;
  font-size: 9px; font-weight: 800; color: #0C025B; opacity: .35;
}
.iu-return-list .hi-red  { color: #d63031; font-weight: 700; }
.iu-return-list .hi-blue { color: #0C025B; font-weight: 700; }

.iu-cta {
  background: linear-gradient(135deg, #0C025B 0%, #1a0a7a 100%);
  padding: 28px 16px; text-align: center;
}
.iu-cta .cta-desc { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 12px; line-height: 1.7; }
.iu-cta .cta-contacts { list-style: none; margin: 0; padding: 0; }
.iu-cta .cta-contacts li { font-size: 11px; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.iu-cta .cta-contacts li strong { font-size: 14px; font-weight: 800; color: #fff; display: block; margin-top: 1px; }

/* detail_common */
.detail-common-wrap { margin-bottom: 16px; padding-bottom: 16px; }
.detail-common-fallback { border-top: 8px solid #f7f8fc; }

/* 유해물질 모달 */
#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);
}
.hazard-modal-box {
  position: relative; background: #fff;
  border-radius: 12px; padding: 28px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  width: calc(100% - 32px); max-width: 380px;
  text-align: center; z-index: 10000;
}
.hazard-icon { font-size: 2.5em; margin-bottom: 6px; }
.modal-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.hazard-modal-msg { font-size: 13px; line-height: 1.8; }
.hazard-modal-msg p { margin: 0 0 6px; }
.hazard-modal-msg small { font-size: 11px; color: #999; }
.copy-email { cursor: pointer; color: var(--navy); font-weight: 700; }
.hazard-modal-close {
  margin-top: 16px; padding: 10px 32px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 6px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
/* BASIC css end */

