/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 상품분류 CSS  (shopbrand.css)
============================================================ */

/* ── 기본 리셋 ── */
#productClass { font-family: var(--font, 'Pretendard', sans-serif); color: var(--text, #1a1a2e); }
#productClass .page-body { padding: 24px 0 80px; }

/* ══════════════════════════════════════
   카테고리 제목
══════════════════════════════════════ */
.product_category_wrap { margin-bottom: 20px; }

.cate1 {
  font-size: 22px; font-weight: 800;
  color: #0f172a; margin: 0 0 16px;
  letter-spacing: -.5px;
  padding-bottom: 14px;
  border-bottom: 2px solid #0f172a;
  display: flex; align-items: baseline; gap: 10px;
}
.cate1-name { color: #0f172a; }
.cate1-count {
  font-size: 15px; font-weight: 500;
  color: #64748b;
}

/* ── 카테고리 필터 박스 ── */
.cate_child_wrap {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fff;
}
.cate-row {
  display: flex; align-items: center;
  padding: 10px 18px;
  gap: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.cate-row:last-child { border-bottom: none; }
.cate-label {
  font-size: 11px; font-weight: 700;
  color: #9ca3af;
  letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; min-width: 46px; flex-shrink: 0;
}

/* 카테고리 칩 */
.cate2, .cate3 {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin: 0; padding: 0; list-style: none;
}
.cate2 li a, .cate3 li a {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: 4px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap; text-decoration: none;
  transition: all .15s;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #d1d5db;
}
.cate2 li a:hover, .cate3 li a:hover {
  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 {
  display: flex; align-items: center; gap: 12px;
  justify-content: flex-end;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}
.sort-label {
  font-size: 12px; font-weight: 600;
  color: #9ca3af; letter-spacing: .06em;
  text-transform: uppercase;
}
.sort-list {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; margin: 0; padding: 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 #d1d5db; border-radius: 4px;
  font-size: 12px; font-weight: 500;
  color: #6b7280; background: #fff;
  transition: all .15s;
}
.sort-list a:hover span {
  border-color: #374151; color: #111827; background: #f9fafb;
}
.sort-list a.is-active span,
.sort-list li.is-active a span {
  background: #0f172a; color: #fff;
  border-color: #0f172a; font-weight: 700;
}

/* ══════════════════════════════════════
   상품 테이블
══════════════════════════════════════ */
.item-wrap { width: 100%; }

.product-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.product-table colgroup .col-thumb { width: 92px; }
.product-table colgroup .col-price { width: 160px; }

/* 테이블 헤더 */
.product-table thead tr {
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.product-table thead th {
  padding: 10px 16px;
  font-size: 11px; font-weight: 700;
  color: #9ca3af; text-transform: uppercase;
  letter-spacing: .07em; text-align: left;
}
.product-table thead th.col-thumb { width: 92px; }
.product-table thead th.col-price { width: 160px; text-align: right; }

/* 상품 행 */
.product-row {
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background .12s;
}
.product-row:hover { background: #f8fafc; }
.product-row td { padding: 16px; vertical-align: middle; }

/* 썸네일 */
.col-thumb { width: 92px; }
.thumb-section {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.thumb-section a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.thumb-section img {
  width: 64px; height: 64px;
  object-fit: contain;
}

/* 상품 정보 */
.col-info { padding-left: 4px !important; }

.product-meta {
  display: flex; align-items: center;
  gap: 5px; margin-bottom: 5px; flex-wrap: wrap;
}
.product-brand {
  font-size: 12px; font-weight: 700;
  color: #374151; text-transform: uppercase;
  letter-spacing: .03em;
}
.product-brand a { color: inherit; text-decoration: none; }
.product-brand a:hover { color: #0C025B; }
.product-sep { font-size: 11px; color: #d1d5db; }
.product-model { font-size: 12px; color: #6b7280; }

.product-title {
  margin: 0 0 4px; padding: 0;
}
.product-title a {
  font-size: 15px; font-weight: 700;
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  transition: color .15s;
}
.product-title a:hover { color: #0C025B; }

.product-subname {
  font-size: 13px; color: #6b7280;
  margin: 0; padding: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.5;
}

/* 가격 */
.col-price {
  text-align: right !important;
  white-space: nowrap;
  width: 160px;
  border-left: 1px solid #f3f4f6;
}
.price.normal {
  display: block;
  font-size: 17px; font-weight: 800;
  color: #0C025B;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
}
.price.original {
  display: block;
  font-size: 13px; font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}
.price.discount {
  display: block;
  font-size: 17px; font-weight: 800;
  color: #0C025B;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
}
.soldout {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  background: #f3f4f6; color: #9ca3af;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
}

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

/* ══════════════════════════════════════
   반응형
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-table thead th.col-price,
  .col-price { width: 130px; }
}

@media (max-width: 768px) {
  .cate-row { flex-direction: column; align-items: flex-start; padding: 10px 14px; }
  .cate-label { min-width: auto; }
  .sort-bar { justify-content: flex-start; }
  .product-table thead { display: none; }
  .product-row td { padding: 12px; }
  .thumb-section { width: 60px; height: 60px; }
  .thumb-section img { width: 52px; height: 52px; }
  .col-price {
    width: auto; border-left: none;
    border-top: 1px solid #f3f4f6;
    text-align: left !important;
  }
  .product-row { display: block; }
  .product-row td { display: block; }
  .col-thumb { display: inline-block !important; vertical-align: top; }
  .col-info { display: inline-block !important; width: calc(100% - 88px); vertical-align: top; }
}
/* BASIC css end */

