/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 상품분류 모바일 CSS
   shopbrand.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;
}

#productClass { color: #1a1a2e; }

.page-body {
  padding: 0 0 80px; /* 하단 네비 여백 */
}


/* ══════════════════════════════════════
   카테고리 제목
══════════════════════════════════════ */
.product_category_wrap {
  background: #fff;
  padding: 14px 16px 0;
  margin-bottom: 8px;
}

.cate1 {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 14px;
  letter-spacing: -.4px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0f172a;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cate1-name { color: #0f172a; }
.cate1-count {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}


/* ══════════════════════════════════════
   카테고리 필터 — 가로 스크롤 칩
══════════════════════════════════════ */
.cate_child_wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.cate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 10px;
  border-bottom: 1px solid #f1f2f6;
}
.cate-row:last-child { border-bottom: none; }

.cate-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .06em;
  text-transform: uppercase;
  min-width: 36px;
}

/* 가로 스크롤 컨테이너 */
.cate-scroll {
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cate-scroll::-webkit-scrollbar { display: none; }

.cate2, .cate3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0; padding: 2px 0;
  list-style: none;
}

.cate2 li a, .cate3 li a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  transition: all .15s;
}
.cate2 li a:active, .cate3 li a:active {
  background: #1e1b4b; color: #fff; border-color: #1e1b4b;
}
.cate2 li a.sel, .cate2 li a.is-active,
.cate3 li a.sel, .cate3 li a.is-active {
  background: #0C025B; color: #fff;
  border-color: #0C025B; font-weight: 700;
}


/* ══════════════════════════════════════
   정렬 바 — 가로 스크롤
══════════════════════════════════════ */
.sort-bar {
  background: #fff;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.sort-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sort-scroll::-webkit-scrollbar { display: none; }

.sort-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.sort-list a { text-decoration: none; }
.sort-list a span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: #fff;
  white-space: nowrap;
  transition: all .15s;
}
.sort-list a:active span {
  background: #f3f4f6; color: #111;
}
.sort-list a.is-active span {
  background: #0f172a; color: #fff;
  border-color: #0f172a; font-weight: 700;
}


/* ══════════════════════════════════════
   상품 카드
══════════════════════════════════════ */
.item-wrap {
  padding: 0 16px;
}

.product-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f2f6;
  cursor: pointer;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.product-card:last-child { border-bottom: none; }
.product-card:active { background: #f8fafc; }

/* 썸네일 */
.card-thumb {
  flex-shrink: 0;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.card-thumb img {
  width: 72px; height: 72px;
  object-fit: contain;
  display: block;
}

/* 카드 본문 */
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* 브랜드·모델 */
.product-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.product-brand {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}
.product-brand a { color: inherit; text-decoration: none; }
.product-sep { font-size: 10px; color: #d1d5db; flex-shrink: 0; }
.product-model {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 상품명 */
.product-title {
  margin: 2px 0 0;
  padding: 0;
}
.product-title a {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.product-card:active .product-title a { color: #0C025B; }

/* 서브네임 */
.product-subname {
  font-size: 12px;
  color: #6b7280;
  margin: 0; padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* 가격 */
.card-price {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price.normal {
  font-size: 15px;
  font-weight: 800;
  color: #0C025B;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
}
.price.original {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.price.discount {
  font-size: 15px;
  font-weight: 800;
  color: #0C025B;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
}
.soldout {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* 빈 결과 */
.no-product {
  padding: 48px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}


/* ══════════════════════════════════════
   페이징
══════════════════════════════════════ */
#productClass .paging {
  margin: 24px 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
#productClass .paging a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: all .15s;
}
#productClass .paging a:active {
  background: #f3f4f6;
}
#productClass .paging a.now {
  background: #0C025B;
  color: #fff;
  border-color: #0C025B;
  font-weight: 700;
}

/* 극소폭 대응 */
@media (max-width: 360px) {
  .card-thumb { width: 70px; height: 70px; }
  .card-thumb img { width: 62px; height: 62px; }
  .product-title a { font-size: 13px; }
}
/* BASIC css end */

