/* 제품 3D 전용 페이지 + PDP 이미지 툴바 */
.product-pdp-media-toolbar {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.danfoss-pdp__image-frame {
  position: relative;
}

.product-pdp-media-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ref-hd-marine-blue-primary, #003087);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-pdp-media-toolbar__btn:hover,
.product-pdp-media-toolbar__btn:focus-visible {
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.product-pdp-media-toolbar__btn--primary {
  background: var(--ref-hd-marine-blue-primary, #003087);
  border-color: var(--ref-hd-marine-blue-primary, #003087);
  color: #fff;
}

.product-pdp-media-toolbar__btn--primary:hover,
.product-pdp-media-toolbar__btn--primary:focus-visible {
  background: var(--ref-hd-marine-blue-primary-hover, #00266e);
  color: #fff;
}

.product-3d-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.product-3d-page__back-link {
  color: var(--ref-hd-marine-blue-primary, #003087);
  text-decoration: none;
  font-weight: 600;
}

.product-3d-page__back-link:hover {
  text-decoration: underline;
}

.product-3d-page__header {
  margin: 1rem 0 1.25rem;
}

.product-3d-page__category {
  font-size: 0.875rem;
  color: #5c6570;
}

.product-3d-page__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--ref-hd-marine-blue-primary, #003087);
  margin: 0 0 0.35rem;
}

.product-3d-page__lead {
  font-size: 0.875rem;
  color: #5c6570;
}

.product-3d-page__stage {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: linear-gradient(165deg, #eef3fb 0%, #f8fafc 55%, #e8eef5 100%);
  overflow: hidden;
  min-height: min(72vh, 640px);
}

.product-3d-page__viewer {
  width: 100%;
  height: min(72vh, 640px);
  min-height: 420px;
  --poster-color: transparent;
}

.product-3d-page__viewer-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  color: #334155;
  pointer-events: none;
}

/* 3D 모델 로딩: 제품 이미지 대신 프로그레스 바 표시 */
.product-3d-page__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #eef3fb 0%, #f8fafc 55%, #e8eef5 100%);
}

.product-3d-page__loader-inner {
  width: min(320px, 76%);
  text-align: center;
}

.product-3d-page__loader-label {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

.product-3d-page__progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.product-3d-page__progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ref-hd-marine-blue-primary, #003087), #2563eb);
  transition: width 0.2s ease;
}

.product-3d-page__progress-pct {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ref-hd-marine-blue-primary, #003087);
}

@media (prefers-reduced-motion: reduce) {
  .product-3d-page__progress-bar {
    transition: none;
  }
}

.product-3d-page__pdf-wrap {
  min-height: min(72vh, 640px);
}

.product-3d-page__pdf-frame {
  display: block;
  width: 100%;
  min-height: min(72vh, 640px);
  border: 0;
  background: #fff;
}

.product-3d-page__pdf-actions {
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.product-3d-page__btn {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--ref-hd-marine-blue-primary, #003087);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.product-3d-page__lab-cta {
  margin-top: 0.85rem;
}

.product-3d-page__btn--lab {
  align-items: center;
  gap: 0.4rem;
  background: #0f172a;
  border: 1px solid #0f172a;
  transition: filter 0.15s ease;
}

.product-3d-page__btn--lab::before {
  content: "◈";
  font-size: 0.8em;
  color: #2f7bff;
}

.product-3d-page__btn--lab:hover {
  filter: brightness(1.12);
  color: #fff;
}

.product-3d-page__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: min(52vh, 480px);
  padding: 2rem;
  text-align: center;
}

.product-3d-page__placeholder-img {
  max-width: min(420px, 90%);
  max-height: 280px;
  object-fit: contain;
}

.product-3d-page__placeholder-text {
  max-width: 32rem;
  color: #475569;
  font-size: 0.95rem;
}

.product-3d-page__notice {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 0.875rem;
  color: #334155;
}

/* 3D 뷰 하단: 제품 대표 사양 박스 */
/* 스테이지 + 우측 패널(대표 사양) 2열 레이아웃 (Three.js Lab 과 동일 구조) */
.product-3d-page__layout--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.product-3d-page__layout--split .product-3d-page__stage {
  min-height: clamp(440px, 64vh, 720px);
}

.product-3d-page__specs {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #f8fafc;
}

.product-3d-page__layout--split .product-3d-page__side {
  margin-top: 0;
  position: sticky;
  top: 88px;
}

.product-3d-page__layout--split .product-3d-page__specs-list {
  grid-template-columns: 1fr;
  gap: 0;
}

@media (max-width: 860px) {
  .product-3d-page__layout--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-3d-page__layout--split .product-3d-page__side {
    margin-top: 1.25rem;
    position: static;
  }
}

.product-3d-page__specs-title {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ref-hd-marine-blue-primary, #003087);
}

.product-3d-page__specs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.75rem;
}

.product-3d-page__specs-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.product-3d-page__specs-row dt {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.product-3d-page__specs-row dd {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  word-break: keep-all;
}

.product-3d-page__specs-row--plain {
  justify-content: flex-start;
}

.product-3d-page__specs-row--plain dd {
  text-align: left;
  font-weight: 500;
  color: #334155;
}

.product-3d-page__inquiry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--ref-hd-marine-blue-primary, #003087);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.product-3d-page__inquiry-btn:hover,
.product-3d-page__inquiry-btn:focus-visible {
  background: #0040b0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 48, 135, 0.28);
}

.product-3d-page__inquiry-icon {
  font-size: 1.05rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .product-3d-page__specs-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.product-3d-page__notice--pdf {
  margin: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
}

.product-3d-page__asset-note {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.875rem;
}

.product-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.72);
}

.product-image-lightbox[hidden] {
  display: none;
}

.product-image-lightbox__dialog {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
}

.product-image-lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.product-image-lightbox__close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
