.car360-section {
  width: 100%;
  padding: 40px 0;
}

.car360-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Stage */
.car360-stage {
  position: relative;
  width: 100%;
  background: #f6f6f6;
  border-radius: 16px;
  overflow: hidden;
  touch-action: pan-y;

  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;

  cursor: url("./mouse-360.svg") 32 32, grab;
}

.car360-section.is-dragging .car360-stage {
  cursor: url("./mouse-360.svg") 32 32, grabbing;
}

/* Fixed height */
.car360-stage::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* Images */
.car360-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  display: block;
}

.car360-img-a,
.car360-img-b {
  opacity: 0;
  transition: opacity 140ms linear;
}

.car360-img.is-active {
  opacity: 1;
}

/* 🔑 ABSOLUTELY NO TRANSITIONS DURING DRAG */
.car360-section.is-dragging .car360-img-a,
.car360-section.is-dragging .car360-img-b {
  transition: none !important;
}

/* Loader */
.car360-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(246, 246, 246, 0.65);
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.car360-loader::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.6);
  animation: car360spin 0.8s linear infinite;
}

@keyframes car360spin {
  to { transform: rotate(360deg); }
}

.car360-stage.is-loading .car360-loader {
  opacity: 1;
}

/* Controls */
.car360-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.car360-swatches {
  display: flex;
  gap: 10px;
}

.car360-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.2);
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.car360-swatch.is-active {
  border-color: rgba(0,0,0,.6);
}

.car360-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.car360-hint {
  font-size: 14px;
  opacity: .7;
}
