

.product3d-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
}

.product3d-modal.active {
  display: block;
}

.product3d-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.78);
}

.product3d-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92vw;
  height: 92vh;
  transform: translate(-50%, -50%);
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.product3d-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 28px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
}

.product3d-viewer {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}

.product3d-loading {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #222;
  background: rgba(255, 255, 255, 0.92);
}

.product3d-error {
  position: absolute;
  left: 15px;
  bottom: 15px;
  z-index: 15;
  max-width: 500px;
  padding: 10px 14px;
  background: rgba(120, 0, 0, 0.9);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
}

body.product3d-lock {
  overflow: hidden !important;
}
