/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 상품분류 CSS  (product-class.css)
   ▸ 카테고리 칩 + 정렬 바 + 상품 행 카드
   ▸ 필터는 검색페이지 smart_finder 전용으로 분리
============================================================ */

#productClass { font-family: var(--font); color: var(--text); }
.page-body    { padding: 20px 0 60px; }

/* ── 카테고리 헤더 ── */
.product_category_wrap { margin-bottom: 20px; }

.product_category_wrap .cate1 {
  font-size: 20px; font-weight: 800;
  color: var(--text); margin: 0 0 14px;
  letter-spacing: -.4px;
  display: flex; align-items: baseline; gap: 8px;
}
.product_category_wrap .cate1 .count {
  font-size: 14px; font-weight: 400;
  color: var(--text-muted);
}

.cate_child_wrap { display: flex; flex-direction: column; gap: 10px; }
.cate-row       { display: flex; flex-direction: column; gap: 6px; }
.cate-label     {
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  letter-spacing: .09em; text-transform: uppercase;
}

/* 카테고리 칩 */
.cate2, .cate3 {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.cate2 li a, .cate3 li a {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 14px;
  border-radius: var(--pill); font-size: 13px;
  white-space: nowrap; text-decoration: none;
  transition: all var(--ease);
}
.cate2 li a {
  background: rgba(12,2,91,.06); color: var(--navy);
  border: 1px solid rgba(12,2,91,.18); font-weight: 700;
}
.cate2 li a:hover { background: rgba(12,2,91,.13); }
.cate3 li a {
  background: var(--bg); color: var(--text-sub);
  border: 1px solid var(--border); font-weight: 500;
}
.cate3 li a:hover { background: var(--bg-soft); border-color: var(--navy); color: var(--navy); }
.cate2 li a.sel, .cate2 li a.is-active,
.cate3 li a.sel, .cate3 li a.is-active {
  background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700;
}

/* ── 결과 / 정렬 바 ── */
.list-result-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 14px;
}
.result-count {
  font-size: 17px; font-weight: 700;
}
.result-count .num { color: var(--navy); }

/* 정렬 */
.price-sort-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 14px;
}
.price-sort-bar .sort ul {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.price-sort-bar .sort a { text-decoration: none; }
.price-sort-bar .sort a span {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--pill);
  font-size: 12.5px; color: var(--text-sub); background: var(--bg);
  transition: all var(--ease);
}
.price-sort-bar .sort a:hover span,
.price-sort-bar .sort li:has(span.on) a span,
.price-sort-bar .sort a span.on {
  background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700;
}

/* ── 상품 행 카드 ── */
.item-wrap  { width: 100%; }
.item-cont  { display: flex; flex-direction: column; gap: 10px; margin-top: 0; }

.product-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 14px 22px;
  transition: box-shadow var(--ease), border-color var(--ease), transform .15s ease;
  text-decoration: none; color: inherit;
}
.product-row:hover {
  border-color: rgba(12,2,91,.22);
  box-shadow: 0 4px 16px rgba(12,2,91,.1);
  transform: translateY(-1px);
}

/* 썸네일 */
.thumb-section {
  width: 96px; height: 96px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.thumb-section a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.thumb-section img {
  width: 88px; height: 88px;
  object-fit: contain;
}

/* 상세 정보 */
.details-section { min-width: 0; }
.brand-model-wrapper {
  display: flex; align-items: center;
  gap: 4px; margin-bottom: 4px; flex-wrap: wrap;
}
.product-brand { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
.product-brand a { color: inherit; text-decoration: none; }
.product-brand a:hover { color: var(--navy); }
.product-model { font-size: 11.5px; color: var(--text-muted); }
.product-model a { color: inherit; text-decoration: none; }
.product-model::before { content: '·'; margin: 0 3px; color: var(--border); }

.product-title { margin: 3px 0 3px; }
.product-title a {
  font-size: 15px; font-weight: 700; color: var(--text);
  text-decoration: none; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--ease);
}
.product-title a:hover { color: var(--navy); }
.product-subname {
  font-size: 12.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── 가격 (오른쪽) ── */
/* 원가 위↑ 작게 취소선 / 할인가 아래↓ 크고 굵게 */
.price-section {
  justify-self: end; text-align: right;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 1px;
  flex-shrink: 0; min-width: 90px;
}
/* 정상가 (할인 없는 경우) */
.price-section .price.normal {
  font-size: 16px; font-weight: 800; color: var(--navy);
}
/* 원가 (취소선, 작게, 위) */
.price-section .price.original {
  font-size: 12px; font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  order: -1;                 /* 원가를 위로 */
}
/* 할인가 (크게, 아래) */
.price-section .price.discount {
  font-size: 17px; font-weight: 900; color: var(--navy);
}
/* 품절 */
.price-section .soldout {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  background: #fff3f5; color: #c62828;
  border: 1px solid #ffb5c0;
  border-radius: var(--pill); font-size: 12px; font-weight: 700;
}

/* ── 페이징 ── */
#productClass .paging { margin: 28px 0 0; }
#productClass .paging a { border-radius: 8px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .product-row {
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto auto;
    gap: 10px 12px; padding: 12px 14px;
  }
  .thumb-section { width: 76px; height: 76px; }
  .thumb-section img { width: 68px; height: 68px; }
  .price-section {
    grid-column: 2; justify-self: start;
    flex-direction: row; align-items: center; gap: 8px;
  }
  /* 모바일에서 원가/할인가 가로 정렬 */
  .price-section .price.original { order: 0; }
  .price-section .price.discount { font-size: 15px; }
}
/* BASIC css end */

