/* ==========================================================================
   product-detail — INQUIRY 좌측 제품 상세 (갤러리 + 정보)
   칩을 바꾸면 이 영역만 교체된다. 우측 구성 패널은 유지 (기능정의서 P2)
   ========================================================================== */

.product-detail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.product-detail__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* --- 갤러리 ----------------------------------------------------------------- */

.product-gallery {
  display: flex;
  align-items: flex-start;   /* stretch 면 큰 이미지의 aspect-ratio 가 무시된다 */
  gap: 14px;
  flex: 0 0 auto;
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 0 0 auto;
}

.product-gallery__thumb {
  width: 58px;
  height: 40px;                              /* 16:9 에 가깝게 */
  padding: 0;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-gallery__thumb:hover { border-color: var(--c-blue-deep); }
.product-gallery__thumb.is-active { border-color: var(--c-blue-deep); }

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 시안 박스는 세로형(250×292)이지만 받은 제품 사진은 16:9 가로형이다.
   세로 박스에 넣으면 잘리거나 위아래 여백이 크게 남아, 사진 비율에 맞췄다. */
.product-gallery__main {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 16 / 9;
  background: var(--c-surface-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- 정보 ------------------------------------------------------------------- */

.product-detail__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
}

.product-detail__catno {
  color: var(--c-text-placeholder);
  font-family: var(--ff-num);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1.18;
}

.product-detail__name {
  padding-bottom: 23px;
  border-bottom: 1px solid var(--c-line-soft);
  color: var(--c-text-price);
  font-size: 1.4375rem;   /* 23px */
  font-weight: var(--fw-bold);
  line-height: 1.3;
}

.product-detail__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail__block-title {
  color: var(--c-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

/* --- 불릿 목록 (Description · Specification) --------------------------------- */

.bullet-list {
  padding-left: 22px;
  list-style: disc;
  color: var(--c-text-sub);
  font-size: 0.9375rem;   /* 15px */
  line-height: 1.5;
}
.bullet-list li + li { margin-top: 10px; }

/* --- Specification ---------------------------------------------------------- */

.spec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec__title {
  color: var(--c-text);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.spec__body { padding: 10px; }

/* 제품군마다 항목이 다르므로 항목명 + 값 자유 구성도 지원한다 (기능정의서 P6) */
.spec__table th,
.spec__table td {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-line-soft);
  font-size: 0.9375rem;
  text-align: left;
  vertical-align: top;
}
.spec__table th {
  width: 34%;
  color: var(--c-text);
  font-weight: var(--fw-semibold);
}
.spec__table td {
  color: var(--c-text-sub);
  font-weight: var(--fw-regular);
}

@media (min-width: 768px) {
  .product-detail__main { flex-direction: row; gap: var(--sp-10); }
}

/* --- 빈 상태 (시안 node 119:675·119:679) -------------------------------------
   아직 제품을 고르지 않았을 때. 갤러리 자리에 안내만 둔다.
   -------------------------------------------------------------------------- */

.product-gallery__main.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  color: var(--c-text-sub);
  font-size: 0.8125rem;          /* 13px */
  font-weight: var(--fw-medium);
  line-height: 1.27;
  text-align: center;
}

.product-detail__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-block: var(--sp-10);
  text-align: center;
}

.product-detail__empty-title {
  color: var(--c-text-sub);
  font-size: 0.9375rem;          /* 15px */
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}

.product-detail__empty-desc {
  max-width: 469px;
  color: var(--c-text-muted);
  font-size: var(--fs-xs);       /* 11px */
  line-height: 1.7;
}
