@charset "utf-8";

/**
 * 실험실 가구 — Figma 리스트 레이아웃
 * 좌 이미지 / 우 품명 + 모델명·규격 표
 */

.ctt_admin {
  display: none;
}

.ctt-lab-furniture {
  font-family: Pretendard, "Noto Emoji", "Segoe UI Emoji", sans-serif;
  overflow-x: clip;
}

.ctt-lab-furniture .prose {
  max-width: none;
}

.ctt-lf-panel[hidden] {
  display: none !important;
}

.ctt-lf-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: #e8f1fb;
  color: #0b5cab;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .ctt-lf-badge {
    font-size: 0.8125rem;
  }
}

/* 카테고리 탭 — 모바일만 헤더 아래 sticky (lg 이상은 기존 유지) */
.ctt-lf-cate-sticky {
  margin: 0 0 8px;
}

@media (max-width: 1023.98px) {
  .ctt-lf-cate-sticky {
    position: sticky;
    top: var(--header-h, 80px);
    z-index: 100;
    margin: 0 0 12px;
    padding: 8px 0;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  }
}

@media (min-width: 1024px) {
  .ctt-lf-cate-sticky {
    margin: 0 0 16px;
  }
}

.ctt-lf-cate {
  margin: 0;
}

.ctt-lf-cate-scroll-hint {
  display: none;
  margin: 0 0 6px;
  padding: 0;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (max-width: 1023.98px) {
  .ctt-lf-cate-scroll-hint {
    display: block;
  }
}

.ctt-lf-cate h2 {
  position: absolute;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.ctt-lf-cate ul {
  zoom: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 모바일: 1행 가로 스크롤 */
@media (max-width: 1023.98px) {
  .ctt-lf-cate ul {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .ctt-lf-cate ul::-webkit-scrollbar {
    display: none;
  }

  .ctt-lf-cate li {
    flex: 0 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .ctt-lf-cate ul {
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .ctt-lf-cate ul {
    flex-wrap: wrap;
    gap: 5px;
    overflow: visible;
  }

  .ctt-lf-cate li {
    display: inline-block;
    flex: initial;
  }
}

.ctt-lf-cate li {
  display: inline-block;
}

.ctt-lf-cate a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  text-align: center;
  font-family: "Pretendard", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 4px 12px;
  border-radius: 50px;
  border: 2px solid #eaeaea;
  background: #fff;
  color: #696969;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .ctt-lf-cate a {
    height: 46px;
    min-height: 46px;
    font-size: 14px;
    padding: 5px 18px;
  }
}

@media (min-width: 1024px) {
  .ctt-lf-cate a {
    height: 52px;
    min-height: 52px;
    font-size: 15px;
    padding: 6px 22px;
    white-space: normal;
  }
}

.ctt-lf-cate a:focus,
.ctt-lf-cate a:hover,
.ctt-lf-cate a:active {
  text-decoration: none;
}

.ctt-lf-cate #bo_cate_on {
  z-index: 2;
  color: #fff;
  background: var(--primary, #1f4c8a);
  border: 2px solid var(--primary, #1f4c8a);
  font-weight: 600;
}

/* 세부 그룹 칩 */
.ctt-lf-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ctt-lf-group-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #dce5ee;
  background: #fff;
  color: #696969;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

@media (min-width: 1024px) {
  .ctt-lf-group-btn {
    min-height: 48px;
    padding: 10px 28px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #696969;
  }

  .ctt-lf-group-btn.is-active,
  .ctt-lf-group-btn[aria-pressed="true"] {
    background: var(--primary, #1f4c8a);
    color: #fff;
    border: none;
  }
}

.ctt-lf-group-btn.is-active,
.ctt-lf-group-btn[aria-pressed="true"] {
  background: #e8f1fb;
  border-color: #0b5cab;
  color: #0b5cab;
}

@media (min-width: 1024px) {
  .ctt-lf-group-btn.is-active,
  .ctt-lf-group-btn[aria-pressed="true"] {
    background: var(--primary, #1f4c8a);
    color: #fff;
  }
}

/* 전체 탭 상단: 썸네일 카드 (모바일 2열 / PC 랩) */
.ctt-lf-overview {
  margin: 0 0 1.5rem;
}

.ctt-lf-overview[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  .ctt-lf-overview {
    margin: 0 0 2rem;
  }
}

.ctt-lf-overview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .ctt-lf-overview__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}

.ctt-lf-overview__item {
  min-width: 0;
}

@media (min-width: 1024px) {
  .ctt-lf-overview__item {
    width: 230px;
    max-width: 230px;
    flex: 0 0 230px;
  }
}

.ctt-lf-overview__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 1024px) {
  .ctt-lf-overview__card {
    gap: 12px;
    padding: 12px;
  }
}

.ctt-lf-overview__card:hover,
.ctt-lf-overview__card:focus-visible {
  border-color: #1467c8;
  outline: none;
}

.ctt-lf-overview__card.is-active {
  border-color: #1467c8;
  box-shadow: 0 0 0 1px #1467c8;
}

.ctt-lf-overview__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 174px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.ctt-lf-overview__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.ctt-lf-overview__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 2.7em;
}

.ctt-lf-overview__name {
  display: block;
  width: 100%;
  text-align: center;
  color: #20252b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.ctt-lf-overview__model {
  display: block;
  width: 100%;
  text-align: center;
  color: #1467c8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

@media (min-width: 1024px) {
  .ctt-lf-overview__meta {
    gap: 4px;
    min-height: 3.1em;
  }

  .ctt-lf-overview__name {
    font-size: 16px;
  }

  .ctt-lf-overview__model {
    font-size: 13px;
  }
}

/* 제품 목록: 모바일 1열 / PC 2열 */
.ctt-lf-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .ctt-lf-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.25rem;
    align-items: stretch;
  }
}

/* 제품 행: 좌 이미지 / 우 스펙 */
.ctt-lf-row {
  /* fixed header + (모바일) sticky 상위탭(--lf-cate-h, 미측정 시 여유값) + 여유 */
  scroll-margin-top: calc(var(--header-h, 80px) + var(--lf-cate-h, 72px) + 16px);
}

@media (min-width: 1024px) {
  .ctt-lf-row {
    scroll-margin-top: calc(var(--header-h, 80px) + 24px);
  }
}

.ctt-lf-row[hidden] {
  display: none !important;
}

.ctt-lf-row__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ctt-lf-row__inner.is-target {
  border-color: #1467c8;
  box-shadow: 0 0 0 2px rgba(20, 103, 200, 0.35);
  animation: lf-target-fade 1.6s ease forwards;
}

@keyframes lf-target-fade {
  0%,
  55% {
    border-color: #1467c8;
    box-shadow: 0 0 0 2px rgba(20, 103, 200, 0.35);
  }
  100% {
    border-color: #eceff3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
}

@media (min-width: 1024px) {
  .ctt-lf-row__inner {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-radius: 14px;
  }
}

.ctt-lf-row__media {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .ctt-lf-row__media {
    width: 58%;
    max-width: none;
    flex: 0 0 58%;
    padding-right: 0.5rem;
  }
}

.ctt-lf-row__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 441.83 / 416;
  max-height: 280px;
  background: transparent;
  overflow: visible;
}

@media (min-width: 1024px) {
  .ctt-lf-row__frame {
    max-height: none;
    aspect-ratio: 441.83 / 416;
  }
}

.ctt-lf-row__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

@media (min-width: 1024px) {
  .ctt-lf-row__img {
    border-radius: 12px;
  }
}

.ctt-lf-row__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .ctt-lf-row__content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 42%;
    padding-left: 0.15rem;
    justify-content: flex-start;
  }
}

.ctt-lf-row__title {
  margin: 0 0 0.75rem;
  color: #212121;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

@media (min-width: 640px) {
  .ctt-lf-row__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .ctt-lf-row__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
}

/* 모델명 · 규격 표 */
.ctt-lf-spec {
  width: 100%;
}

.ctt-lf-spec__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ctt-lf-spec__table thead th {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #212121;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
}

@media (min-width: 1024px) {
  .ctt-lf-spec__table thead th {
    padding: 0.55rem 0;
    font-size: 0.875rem;
  }
}

.ctt-lf-spec__table thead th:first-child,
.ctt-lf-spec__table tbody th {
  width: 38%;
  padding-right: 0.75rem;
}

@media (min-width: 1024px) {
  .ctt-lf-spec__table thead th:first-child,
  .ctt-lf-spec__table tbody th {
    width: 42%;
    max-width: none;
    padding-right: 0.5rem;
  }
}

.ctt-lf-spec__table tbody th,
.ctt-lf-spec__table tbody td {
  padding: 0.65rem 0;
  border-bottom: 1px solid #eef1f4;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}

@media (min-width: 1024px) {
  .ctt-lf-spec__table tbody th,
  .ctt-lf-spec__table tbody td {
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }
}

.ctt-lf-spec__table tbody td {
  color: #4b5563;
  font-weight: 400;
}

.ctt-lf-spec__model {
  color: inherit;
  font-weight: 600;
}

.ctt-lf-spec__table tbody tr:last-child th,
.ctt-lf-spec__table tbody tr:last-child td {
  border-bottom: none;
}
