* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #07111c;
  color: #f4f8fb;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

.site-header {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.site-logo {
  color: #79dfff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
}

.product-page {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 64px;

  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 32px;
  align-items: start;
}

.product-stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 145px);
  justify-self: center;

  overflow: hidden;
  border: 1px solid rgba(85, 207, 255, 0.34);
  border-radius: 22px;
  background: #07192b;
}

.blueprint-image,
.product-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blueprint-image {
  display: block;
  object-fit: contain;
  padding: 18px;
}

.product-canvas {
  z-index: 2;
}

.stage-help {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;

  margin: 0;
  transform: translateX(-50%);
  color: #b8cad6;
  font-size: 0.85rem;
}

.product-information {
  min-width: 0;
}

.product-category {
  margin: 0 0 8px;
  color: #68d7ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-information h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.02;
}

.product-description {
  color: #bdcbd5;
  line-height: 1.6;
}

.offer-card,
.specifications {
  margin-top: 24px;
  padding: 24px;

  border: 1px solid rgba(85, 207, 255, 0.25);
  border-radius: 18px;
  background: #0b1b2b;
}

.offer-card h2,
.specifications h2 {
  margin-top: 0;
}

.offer-price {
  font-size: 2.5rem;
  font-weight: 900;
}

.offer-status {
  margin-top: 8px;
  color: #8cff8f;
  font-weight: 700;
}

.offer-seller {
  margin-top: 6px;
  color: #b9c8d2;
}

.buy-button {
  display: block;
  margin-top: 20px;
  padding: 15px 18px;

  border-radius: 12px;
  background: #72f000;
  color: #071100;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.specifications dl {
  margin: 0;
}

.specification-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;

  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.specification-row dt {
  color: #8ca4b4;
}

.specification-row dd {
  margin: 0;
  font-weight: 700;
}



.key-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.key-dimension {
  min-width: 0;
  padding: 14px 15px;

  border: 1px solid rgba(85, 207, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 33, 52, 0.72);
}

.key-dimension-label {
  display: block;
  margin-bottom: 5px;

  color: #7eb5cb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-dimension-value {
  display: block;
  overflow: hidden;

  color: #ffffff;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-heading-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.offer-eyebrow {
  margin: 0 0 5px;
  color: #68d7ff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-heading-row h2 {
  margin: 0;
}

.offer-badge {
  flex: 0 0 auto;
  padding: 7px 10px;

  border: 1px solid rgba(118, 255, 129, 0.42);
  border-radius: 999px;
  background: rgba(85, 220, 95, 0.09);
  color: #86ff8d;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-details {
  margin-top: 20px;
}

.offer-detail-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;

  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.offer-detail-row span {
  color: #8ca4b4;
}

.offer-detail-row strong {
  color: #ffffff;
  text-align: right;
}

.offer-note {
  margin: 12px 0 0;
  color: #718898;
  font-size: 0.76rem;
  line-height: 1.4;
}

.unavailable-price {
  color: #8295a3;
  font-size: 1.35rem;
}

.buy-button-disabled {
  width: 100%;
  border: 0;
  background: #263542;
  color: #8295a3;
  cursor: not-allowed;
}

.buy-button-disabled:hover {
  background: #263542;
}


@media (max-width: 850px) {
  .product-page {
    grid-template-columns: 1fr;
  }

  .product-stage {
    max-height: none;
  }

  .key-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.product-viewer-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.viewer-mode-button {
  border: 1px solid rgba(0, 191, 255, 0.35);
  border-radius: 8px;
  padding: 9px 16px;
  background: rgba(5, 16, 26, 0.85);
  color: #dff8ff;
  cursor: pointer;
}

.viewer-mode-button.active {
  border-color: #00bfff;
  background: rgba(0, 120, 170, 0.28);
}

#threeDView {
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  border-radius: 14px;
  background: #05080d;
}

#threeDCanvasMount {
  width: 100%;
  height: 520px;
}
