/* Standardized product-detail window
   Fixed desktop geometry prevents long equipment names from collapsing the layout. */
.modal-panel.product-modal-panel {
  display: block;
  width: min(1120px, calc(100vw - 72px));
  max-height: calc(100vh - 72px);
  overflow-x: hidden;
  overflow-y: auto;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(0, 58%);
  align-items: stretch;
  min-height: 680px;
}

.product-modal-media {
  min-width: 0;
  min-height: 680px;
  padding: 38px;
  background: #f4f7f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-modal-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 390px;
  max-height: 460px;
  padding: 26px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-media-note {
  max-width: 280px;
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.product-modal-copy {
  min-width: 0;
  padding: 54px 54px 46px;
  display: flex;
  flex-direction: column;
}

.product-modal-copy .section-kicker {
  max-width: 100%;
  margin-bottom: 16px;
  line-height: 1.45;
}

.product-modal-copy h2 {
  max-width: 100%;
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Space Grotesk";
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.product-model {
  margin: 0 0 22px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.product-modal-copy > p:not(.section-kicker):not(.product-model) {
  max-width: 620px;
  margin: 0 0 26px;
  color: #5b6876;
  font-size: 14px;
  line-height: 1.65;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.product-specs div {
  min-width: 0;
  padding: 15px 16px;
  background: #f4f7f9;
}

.product-specs span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.product-specs b {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-detail-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.product-detail-section h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Space Grotesk";
  font-size: 17px;
  line-height: 1.25;
}

.product-detail-section > p {
  max-width: 620px;
  margin: 0;
  color: #5b6876;
  font-size: 13px;
  line-height: 1.65;
}

.product-technical {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-technical-item {
  min-width: 0;
  padding: 13px 14px;
  background: #f4f7f9;
}

.product-technical-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.product-technical-item b {
  display: block;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-detail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product-detail-cta p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.product-detail-cta .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .modal-panel.product-modal-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-modal-media {
    min-height: 0;
    padding: 24px;
  }

  .product-modal-image {
    min-height: 280px;
    max-height: none;
  }

  .product-modal-copy {
    padding: 34px 28px 32px;
  }

  .product-modal-copy h2 {
    font-size: 29px;
  }
}
