/* ── PRODUCT DETAIL PAGE ── */

/* ── HERO (전체화면 제품 히어로) ── */
.pd-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-top: var(--nav-height);
  background: #ffffff;
  overflow: hidden;
}

.pd-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 32px;
  align-items: stretch;
}

.pd-hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.pd-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pd-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.pd-hero-label {
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.pd-hero-title {
  font-size: clamp(48px, 6vw, 86px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.pd-hero-subtitle {
  font-size: clamp(15px, 1.6vw, 20px);
  color: #555;
  line-height: 1.7;
}


.pd-hero-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 24px;
  background: #f5f5f5;
  border-radius: 12px;
  flex: 1 1 auto;
  min-width: fit-content;
  text-align: center;
}

.pd-hero-spec-value {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  white-space: nowrap;
}

.pd-hero-spec-label {
  font-size: clamp(11px, 1.2vw, 14px);
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.pd-hero-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 24px;
}

/* ── KEY STATS (3~4열 수치 강조) ── */
.pd-stats {
  background: var(--black);
  color: var(--white);
  padding: 80px 32px;
}

.pd-stats--with-image {
  padding: 0;
  position: relative;
}

.pd-stats--with-image > img {
  width: 100%;
  height: auto;
  display: block;
}

.pd-stats--with-image .pd-stats-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5vw 3vw 2vw;
  max-width: 100%;
  gap: 2vw;
  justify-content: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.pd-stats--with-image .pd-stat-value {
  font-size: clamp(10px, 2.5vw, 36px);
}

.pd-stats--with-image .pd-stat-label {
  font-size: clamp(6px, 0.9vw, 14px);
}


.pd-stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  text-align: center;
  flex-wrap: nowrap;
  padding: 0 32px;
}

.pd-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pd-stat-value {
  font-size: clamp(14px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pd-stat-label {
  font-size: clamp(9px, 1vw, 14px);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}


/* ── FEATURE BLOCK (이미지 + 텍스트 교차 섹션) ── */
.pd-feature {
  padding: 100px 32px;
  background: var(--white);
}

.pd-feature--dark {
  background: #1a1a1a;
  color: var(--white);
}

.pd-feature--gray {
  background: #f5f5f5;
}

.pd-feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pd-feature-inner--reverse {
  direction: rtl;
}

.pd-feature-inner--reverse > * {
  direction: ltr;
}

.pd-feature-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-feature-label {
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.pd-feature--dark .pd-feature-label {
  color: rgba(255,255,255,0.5);
}

.pd-feature-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.pd-feature--dark .pd-feature-title {
  color: var(--white);
}

.pd-feature-desc {
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.7;
  color: #555;
}

.pd-feature--dark .pd-feature-desc {
  color: rgba(255,255,255,0.7);
}

.pd-feature-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 0;
  padding-top: 56.25%;
}

.pd-feature-media img,
.pd-feature-media video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-feature-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  height: 170%;
  transform: translate(-50%, -52%);
  border: none;
}

/* ── FULL WIDTH IMAGE / VIDEO ── */
.pd-fullwidth {
  width: 100%;
  overflow: hidden;
}

.pd-fullwidth img,
.pd-fullwidth video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── HIGHLIGHT LIST (체크마크 리스트) ── */
.pd-highlights {
  padding: 80px 32px;
  background: var(--white);
}

.pd-highlights-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pd-highlights-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 40px;
  text-align: center;
}

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

.pd-highlight-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #f8f8f8;
  border-radius: 12px;
}

.pd-highlight-item h4 {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--black);
}

.pd-highlight-item p {
  font-size: clamp(12px, 1.3vw, 15px);
  color: #666;
  line-height: 1.6;
}

/* ── SPECS TABLE ── */
.pd-specs {
  background: #f5f5f5;
  padding: 80px 32px;
}

.pd-specs-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.pd-specs-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 40px;
}

.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-specs-table tr {
  border-bottom: 1px solid #ddd;
}

.pd-specs-table td {
  padding: 18px 0;
  font-size: clamp(13px, 1.3vw, 16px);
  color: var(--black);
  vertical-align: top;
}

.pd-specs-table td:first-child {
  font-weight: 600;
  width: 220px;
  color: #555;
}

/* ── CTA (구매문의) ── */
.pd-cta {
  background: var(--black);
  color: var(--white);
  padding: 100px 32px;
  text-align: center;
}

.pd-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pd-cta-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
}

.pd-cta-desc {
  font-size: clamp(14px, 1.5vw, 18px);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.pd-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn-cta--white {
  background: var(--white);
  color: var(--black);
}

.btn-cta--white:hover {
  background: #e0e0e0;
}

.btn-cta--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-cta--outline:hover {
  border-color: var(--white);
}

.btn-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── RELATED PRODUCTS ── */
.pd-related {
  background: var(--white);
  padding: 80px 32px;
}

.pd-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pd-related-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 32px;
}

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

.pd-related-card {
  text-decoration: none;
  color: var(--black);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.pd-related-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pd-related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.pd-related-card:hover .pd-related-card-img img {
  transform: scale(1.05);
}

.pd-related-card-info {
  padding: 20px;
}

.pd-related-card-info h3 {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  margin-bottom: 4px;
}

.pd-related-card-info p {
  font-size: clamp(11px, 1.2vw, 14px);
  color: #666;
}

/* ── IMAGE PLACEHOLDER ── */
.pd-placeholder {
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 500;
  min-height: 300px;
  border-radius: 12px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .pd-stats-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .pd-stat {
    flex: 0 0 auto;
    min-width: 80px;
  }

  .pd-stat-value {
    font-size: clamp(22px, 3vw, 36px);
  }
}

@media (max-width: 768px) {
  .pd-hero {
    min-height: auto;
    padding-top: var(--nav-height);
  }

  .pd-hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 20px;
  }

  .pd-hero-left {
    order: -1;
  }

  .pd-hero-img {
    max-width: 320px;
    margin: 0 auto;
  }

  .pd-hero-text {
    text-align: center;
    align-items: center;
  }

  .pd-feature-title br,
  .pd-highlights-title br {
    display: none;
  }

  .pd-hero-specs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pd-hero-spec-item {
    min-width: 0;
    padding: 14px 18px;
  }

  .pd-stats {
    padding: 60px 20px;
  }

  .pd-stats--with-image {
    padding: 0;
  }

  .pd-stats--with-image .pd-stats-inner {
    padding: 40px 3vw 16px;
    gap: 2vw;
    flex-wrap: wrap;
  }


  .pd-stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .pd-stat-value {
    font-size: clamp(18px, 5vw, 28px);
  }

  .pd-feature {
    padding: 60px 20px;
  }

  .pd-feature-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-feature-inner--reverse {
    direction: ltr;
  }

  .pd-highlights {
    padding: 60px 20px;
  }

  .pd-highlights-grid {
    grid-template-columns: 1fr;
  }

  .pd-specs {
    padding: 60px 20px;
  }

  .pd-specs-table td:first-child {
    width: 130px;
  }

  .pd-cta {
    padding: 60px 20px;
  }

  .pd-related {
    padding: 60px 20px;
  }

  .pd-related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .pd-hero-content {
    padding: 32px 16px;
    gap: 20px;
  }

  .pd-hero-img {
    max-width: 260px;
  }

  .pd-hero-specs {
    gap: 8px;
  }

  .pd-hero-spec-item {
    padding: 10px 14px;
    font-size: clamp(10px, 2.5vw, 13px);
  }

  .pd-stat-value {
    font-size: clamp(16px, 4.5vw, 24px);
  }

  .pd-stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .pd-related-grid {
    grid-template-columns: 1fr;
  }

  .pd-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta {
    width: 100%;
  }
}
