/* ============================================================
   Products — 제품 소개 페이지
   인덱스: 두산 series-tabs 클론 (.wd-products__*)
   상세: 헤더 + 특장점(.wd-pd-highlights*) + quality-system 섹션 재사용
   ============================================================ */


/* ============================================================
   인덱스 — 시리즈 탭 sticky 내비게이션
   ============================================================ */
.wd-sub:has(+ .wd-products__nav) {
  padding-bottom: 40px;
}

.wd-products__nav {
  position: sticky;
  top: 0;
  background: var(--wd-surface-light, #f5f7fa);
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.wd-products__nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
}

.wd-products__nav ul {
  display: flex;
  gap: 48px;
  justify-content: center;
  height: 90px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wd-products__nav a {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--wd-text-primary);
  opacity: 0.3;
  text-decoration: none;
  transition: opacity 0.35s ease;
  letter-spacing: -0.035em;
}

.wd-products__nav a.active,
.wd-products__nav a:hover {
  opacity: 1;
}


/* ============================================================
   인덱스 — 콘텐츠 래퍼
   ============================================================ */
.wd-products {
  background: var(--wd-surface-light, #f5f7fa);
}

.wd-products__inner {
  max-width: var(--wd-container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 36px;
}

.wd-products__sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 36px 0 80px;
}

/* 실제 시리즈 섹션은 .wd-products__category 안에 중첩됨 — 같은 카테고리 내 섹션 간 간격 확보 */
.wd-products__category {
  display: flex;
  flex-direction: column;
  gap: 36px;
}


/* ============================================================
   인덱스 — 시리즈 섹션
   ============================================================ */
.wd-products__section {
  background: #fff;
  border-radius: 24px;
  padding: 84px;
  scroll-margin-top: 90px;
}

.wd-products__flex {
  display: flex;
  gap: 0;
}

.wd-products__desc {
  width: 280px;
  flex-shrink: 0;
}

.wd-products__list-wrap {
  width: calc(100% - 280px);
  padding-left: 4%;
}


/* 시리즈 헤드 */
.wd-products__series-head {
  display: block;
}

.wd-products__series-en {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--wd-text-secondary, #888);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wd-products__series-kr {
  font-size: 44px;
  font-weight: 600;
  color: var(--wd-text-primary);
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.3;
}


/* ============================================================
   인덱스 — 모델 카드 리스트
   ============================================================ */
.wd-products__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0;
  margin: 0;
}

.wd-products__list > li {
  width: calc(33.333% - 22px);
}

.wd-products__card {
  display: block;
  background: #f1f1f1;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s ease;
  height: 100%;
}

.wd-products__card-img {
  position: relative;
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wd-products__card-img img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  object-fit: contain;
}


/* 카드 텍스트 */
.wd-products__card-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--wd-text-primary);
  margin: 30px 0 0;
  letter-spacing: -0.035em;
  word-break: break-all;
  transition: color 0.35s ease;
  line-height: 1.25;
}

.wd-products__card-model {
  font-size: 15px;
  font-weight: 600;
  color: var(--wd-text-secondary, #666);
  margin: 8px 0 0;
  line-height: 1.35;
  word-break: keep-all;
  transition: color 0.35s ease;
}

.wd-products__card-spec {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.wd-products__card-spec > li {
  padding: 8px 0;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.35s ease;
  color: var(--wd-text-secondary, #444);
  letter-spacing: -0.035em;
}

.wd-products__card-spec > li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.wd-products__card-spec > li strong {
  color: var(--wd-text-primary);
  font-weight: 500;
  transition: all 0.35s ease;
  text-align: right;
  word-break: keep-all;
}

.wd-products__card-cta {
  margin-top: 14px;
}

.wd-products__card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--wd-primary, #0181c6);
  color: #fff;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.35s ease;
  letter-spacing: -0.02em;
}


/* 카드 호버 — 두산식 컬러 반전 */
@media (hover: hover) and (pointer: fine) {
  .wd-products__card:hover {
    background: var(--wd-primary, #0181c6);
    border-color: var(--wd-primary, #0181c6);
    color: #fff;
  }

  .wd-products__card:hover .wd-products__card-name {
    color: #fff;
  }

  .wd-products__card:hover .wd-products__card-model {
    color: rgba(255, 255, 255, 0.8);
  }

  .wd-products__card:hover .wd-products__card-spec > li {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .wd-products__card:hover .wd-products__card-spec > li strong {
    color: #fff;
  }

  .wd-products__card:hover .wd-products__card-btn {
    background: #fff;
    color: var(--wd-text-primary);
  }

  /* 호버 시 칩 — 흰색 배경 + 검정 텍스트(파란 카드 위 가독성 확보) */
  .wd-products__card:hover .wd-products__card-chip {
    background: #fff !important;
    border-color: #fff !important;
    color: #1a1a1a !important;
  }
}


/* ============================================================
   인덱스 반응형
   ============================================================ */
@media (max-width: 1600px) {
  .wd-products__list > li {
    width: calc((100% - 64px) / 3);
  }
}

@media (max-width: 1200px) {
  .wd-products__section {
    padding: 60px 48px;
  }

  .wd-products__desc {
    width: 220px;
  }

  .wd-products__list-wrap {
    width: calc(100% - 220px);
    padding-left: 3%;
  }

  .wd-products__series-kr {
    font-size: 36px;
  }
}

@media (max-width: 820px) {
  .wd-products__nav-inner {
    padding: 0 16px;
  }

  .wd-products__nav ul {
    gap: 24px;
    height: 64px;
    justify-content: flex-start;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .wd-products__nav ul::-webkit-scrollbar {
    display: none;
  }

  .wd-products__nav a {
    font-size: 16px;
    white-space: nowrap;
  }

  .wd-products__inner {
    padding: 0 16px;
  }

  .wd-products__section {
    padding: 40px 24px;
    scroll-margin-top: 64px;
  }

  .wd-products__flex {
    flex-direction: column;
  }

  .wd-products__desc {
    width: 100%;
  }

  .wd-products__list-wrap {
    width: 100%;
    padding-left: 0;
    margin-top: 32px;
  }

  .wd-products__list > li {
    width: calc(50% - 10px);
  }

  .wd-products__list {
    gap: 20px;
  }

  .wd-products__card {
    padding: 20px;
  }

  .wd-products__card-name {
    font-size: 24px;
    margin-top: 16px;
  }

  .wd-products__card-spec > li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .wd-products__sections {
    gap: 16px;
    padding: 16px 0 60px;
  }

  .wd-products__list > li {
    width: calc(50% - 5px);
  }

  .wd-products__list {
    gap: 10px;
  }

  .wd-products__card {
    padding: 12px;
  }

  .wd-products__card-name {
    font-size: 20px;
    margin-top: 10px;
  }

  .wd-products__card-btn {
    padding: 10px;
    font-size: 13px;
  }
}


/* ============================================================
   상세 — 헤더 (대표 이미지 + 사양 테이블)
   ============================================================ */
.wd-pd {
  padding: 112px 0 80px;
}

.wd-pd__inner {
  max-width: var(--wd-container-content);
  margin: 0 auto;
  padding: 0 var(--wd-container-padding);
}

.wd-pd__back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wd-text-secondary, #666);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.wd-pd__back:hover {
  color: var(--wd-primary);
}

.wd-pd__hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: start;
}


/* 상세 — 좌측 비주얼 */
.wd-pd__visual {
  position: relative;
}

.wd-pd__visual-frame {
  background: linear-gradient(135deg, #eaf2fb 0%, #f6f9fc 100%);
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}


/* 상세 — 좌우 이동 화살표 (slide nav) */
.wd-pd__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--wd-text-primary);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wd-pd__nav svg {
  width: 22px;
  height: 22px;
}

.wd-pd__nav:hover {
  background: var(--wd-primary);
  border-color: var(--wd-primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(1, 129, 198, 0.25);
}

.wd-pd__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.wd-pd__nav--prev { left: -28px; }
.wd-pd__nav--next { right: -28px; }

.wd-pd__visual-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}


/* 상세 — 우측 정보 */
.wd-pd__category {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-text-secondary, #888);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.wd-pd__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--wd-text-primary);
  margin: 0 0 8px;
  word-break: break-all;
}

.wd-pd__model-range {
  font-size: 18px;
  font-weight: 700;
  color: var(--wd-text-secondary, #666);
  margin: 0 0 20px;
  line-height: 1.35;
}

/* 상세 — 사양 테이블 (dl) */
.wd-pd__spec {
  margin: 28px 0 32px;
  padding: 24px 0;
  border-top: 2px solid #1a1a1a;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-pd__spec-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
}

.wd-pd__spec-row:last-child {
  border-bottom: 0;
}

.wd-pd__spec-row dt {
  font-size: 17px;
  font-weight: 700;
  color: var(--wd-text-primary);
  margin: 0;
}

.wd-pd__spec-row dd {
  font-size: 18px;
  color: var(--wd-text-secondary, #444);
  margin: 0;
  letter-spacing: -0.01em;
}


/* 상세 — CTA 버튼 */
.wd-pd__cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.wd-pd__cta .wd-btn {
  flex: 1;
  justify-content: center;
  min-height: 64px;
  border-radius: 0;
  border-width: 1px;
  text-decoration: none;
}

.wd-pd__cta .wd-btn--ghost {
  background: #fff;
  color: var(--wd-text-primary);
  border-color: var(--wd-border-strong, #1a1a1a);
}

.wd-pd__cta .wd-btn--ghost:hover {
  color: var(--wd-primary);
  border-color: var(--wd-primary);
}

.wd-pd__cta .wd-btn--primary {
  border-color: var(--wd-primary);
}

.wd-pd__cta-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}


/* ============================================================
   상세 — 특장점 섹션 (5개 고정, 모든 모델 공통)
   ============================================================ */
.wd-pd-highlights {
  padding: 100px 0;
  background: #fff;
}

.wd-pd-highlights--inline {
  padding: 0;
  margin: 28px 0 0;
  background: transparent;
}

.wd-pd-highlights__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 32px;
}

.wd-pd-highlights--inline .wd-pd-highlights__list {
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 20px 14px;
}

.wd-pd-highlights__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.wd-pd-highlights--inline .wd-pd-highlights__item {
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}


/* 원형 마크 */
.wd-pd-highlight__mark {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-pd-highlights--inline .wd-pd-highlight__mark {
  width: 72px;
  height: 72px;
}

.wd-pd-highlight__mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}


/* 본문 */
.wd-pd-highlight__body {
  width: 100%;
}

.wd-pd-highlight__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--wd-text-primary, #151515);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.wd-pd-highlights--inline .wd-pd-highlight__title {
  font-size: 15px;
  margin-bottom: 6px;
}

.wd-pd-highlight__points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wd-pd-highlight__points li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--wd-text-secondary, #555);
  letter-spacing: -0.02em;
}

.wd-pd-highlights--inline .wd-pd-highlight__points li {
  font-size: 12px;
  line-height: 1.55;
}

.wd-pd-highlight__points li::before {
  display: none;
}


/* ============================================================
   상세 하단 — 철저한 품질 6대 카드
   (quality-system.css와 동일 — wd-esm__card 2열 그리드)
   ============================================================ */
.wd-qs .wd-esm__card-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.wd-qs .wd-esm__card {
  width: calc(50% - 8px);
}


/* ============================================================
   상세 — 공통 섹션 래퍼 (인증·특장점·테스트 등 추가용)
   ============================================================ */
.wd-pd-section {
  padding: 100px 0;
}

.wd-pd-section--gray {
  background: var(--wd-surface-light, #f5f7fa);
}

.wd-pd-section__inner {
  max-width: var(--wd-container-content);
  margin: 0 auto;
  padding: 0 var(--wd-container-padding);
}


/* ============================================================
   상세 반응형
   ============================================================ */
@media (max-width: 1024px) {
  .wd-pd__hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wd-pd__visual-frame {
    aspect-ratio: 4 / 3;
    padding: 40px;
    max-width: 480px;
    margin: 0 auto;
  }

  .wd-pd__nav {
    width: 48px;
    height: 48px;
  }
  .wd-pd__nav svg { width: 20px; height: 20px; }
  .wd-pd__nav--prev { left: 12px; }
  .wd-pd__nav--next { right: 12px; }

  .wd-pd-highlights__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
}

@media (max-width: 768px) {
  .wd-pd-highlights {
    padding: 64px 0;
  }

  .wd-pd-highlights--inline {
    padding: 0;
  }

  .wd-pd-highlights__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .wd-pd-highlights--inline .wd-pd-highlights__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wd-pd-highlight__mark {
    width: 80px;
    height: 80px;
  }

  .wd-pd-highlight__title {
    font-size: 18px;
  }

  .wd-pd-highlight__points li {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .wd-pd {
    padding: 24px 0 56px;
  }

  .wd-pd__hero {
    gap: 32px;
  }

  .wd-pd__visual-frame {
    padding: 28px;
  }

  .wd-pd__spec-row {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 12px 0;
  }

  .wd-pd__spec-row dt {
    font-size: 15px;
  }

  .wd-pd__spec-row dd {
    font-size: 16px;
  }

  .wd-pd__cta {
    flex-direction: column;
    gap: 10px;
  }

  .wd-qs .wd-esm__card {
    width: 100%;
  }
}


/* ============================================================
   하단 문의 CTA — 이미지 배경 + 오버레이
   ============================================================ */
.wd-pd-cta {
  position: relative;
  padding: 120px 20px;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.wd-pd-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
}

.wd-pd-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
}

.wd-pd-cta__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.wd-pd-cta__desc {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.82;
  margin-bottom: 48px;
}

.wd-pd-cta__btn {
  display: inline-block;
  padding: 15px 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.wd-pd-cta__btn:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

@media (max-width: 768px) {
  .wd-pd-cta {
    padding: 80px 20px;
  }
  .wd-pd-cta__desc {
    margin-bottom: 36px;
  }
  .wd-pd-cta__btn {
    padding: 13px 40px;
    font-size: 0.875rem;
  }
}

/* ============================================================
   카테고리 탭 토글 — 한 번에 한 카테고리만 노출
   ============================================================ */
.wd-products__category[hidden] {
  display: none !important;
}

/* 이미지 미정 카드 (인버터 등 자료 준비 중) — img 영역에 안내 텍스트 */
.wd-products__card-img-empty {
  color: #9ca0a6;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
}


/* ============================================================
   통일 핵심 성능 그리드 — wd-pd-perf
   ESS 의 .wd-ess__perf-* 통일 후속. 4개 통일 페이지(ess/soundwall/louver/colored-pv)
   모두 같은 시각 패턴으로 핵심 수치 3개 노출.
   ============================================================ */
.wd-pd-perf__grid {
  display: flex;
  gap: 32px;
}
.wd-pd-perf__item {
  flex: 1;
  padding: 36px;
  background: #f5f5f5;
  text-align: center;
}
.wd-pd-perf__num {
  font-size: 44px;
  font-weight: 600;
  color: var(--wd-text-primary, #1a1a1a);
  letter-spacing: -0.03em;
  line-height: 1;
}
.wd-pd-perf__num small {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--wd-text-tertiary, #6b6e73);
}
.wd-pd-perf__item p {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--wd-text-tertiary, #6b6e73);
  letter-spacing: -0.01em;
}
@media (max-width: 1080px) {
  .wd-pd-perf__num { font-size: 40px; }
}
@media (max-width: 640px) {
  .wd-pd-perf__grid { flex-direction: column; gap: 16px; }
  .wd-pd-perf__num { font-size: 32px; }
}
