.product-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  isolation: isolate;
  overflow: hidden;
}
.product-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  outline-offset: -4px;
}
.product-scene canvas:active {
  cursor: grabbing;
}
.product-scene canvas:focus-visible {
  outline: 2px solid #485b48;
}
.model-poster {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.model-poster > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.model-poster > .model-source {
  object-fit: cover;
}
.model-source-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: #faf9f1e6;
  color: #40433a;
  border-radius: 5px;
  font-size: 10px;
}
.model-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.model-loading > span {
  width: 19px;
  height: 19px;
  border: 1px solid #b4b9ac;
  border-top-color: #435140;
  border-radius: 50%;
  animation: model-spin 1.2s linear infinite;
}
.scene-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid #ffffff80;
  border-radius: 30px;
  background: #f7f7eed9;
  color: #4f5849;
  backdrop-filter: blur(12px);
  box-shadow: 0 3px 16px #37402a08;
  white-space: nowrap;
}
.scene-controls > button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  min-width: 31px;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}
.scene-controls > button:hover {
  background: #dfe4d8;
}
.scene-controls > button:focus-visible {
  outline: 2px solid #526c4c;
  outline-offset: 1px;
}
.scene-drag-label {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.025em;
  margin: 0 6px 0 2px;
}
.product-scene--hero .scene-controls {
  bottom: 16px;
}
@keyframes model-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .model-loading > span {
    animation: none;
  }
  .scene-controls > button {
    transition: none;
  }
}
@media (max-width: 400px) {
  .scene-controls {
    bottom: 12px;
  }
  .scene-controls > button {
    width: 35px;
    height: 35px;
  }
  .scene-drag-label {
    font-size: 9px;
  }
}
@media (max-width: 240px) {
  .product-scene {
    min-height: 100px;
  }
  .scene-controls {
    display: none;
  }
}
