/* View 3D button + the turntable window (product-3d.js) */
.btn-view3d {
  display: none; align-items: center; gap: 6px; cursor: pointer;
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
  color: #10161d; background: linear-gradient(180deg, #f4c95d, #d9a93c); border: 1px solid #8a7447;
}
.btn-view3d:hover { filter: brightness(1.06); }
.btn-view3d:focus-visible { outline: 2px solid #3fd0e0; outline-offset: 2px; }

.qg3d-overlay {
  position: fixed; inset: 0; z-index: 100500; display: flex;   /* above the product popup (z-index 99999) */ align-items: center; justify-content: center;
  background: rgba(4, 8, 12, 0.82); padding: 16px;
}
.qg3d-overlay[aria-hidden="true"] { display: none; }
.qg3d-panel {
  position: relative; width: min(560px, 100%); height: min(860px, calc(100vh - 32px));
  background: #10161d; border: 1px solid #8a7447; border-radius: 12px; overflow: hidden;
}
.qg3d-frame { width: 100%; height: 100%; border: 0; display: block; }
.qg3d-close {
  position: absolute; top: 8px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #2c3a49; background: #18212b; color: #e4e9ef; font-size: 22px; line-height: 1; cursor: pointer;
}
