/* RAZ 3D card under the product photo (salim-b2b raz3d.php). Sits in the gallery column of the theme's
   .sdx-pdp-top grid: desktop row 2 of column 1, with the sticky buy box spanning both rows; at 820px and
   below the theme goes to one column, so the rows go back to source order (photo, card, buy box). */
.sdx-root.single-product .sdx-pdp-top > .sd-3d { grid-column: 1; grid-row: 2; margin: var(--sdx-space-16, 16px) 0 0; min-width: 0; }
body.sd-has-3d.sdx-root.single-product .sdx-pdp-top > .summary { grid-row: 1 / span 2; }
@media (max-width: 820px) {
  .sdx-root.single-product .sdx-pdp-top > .sd-3d { grid-row: auto; }
  body.sd-has-3d.sdx-root.single-product .sdx-pdp-top > .summary { grid-row: auto; }
}

.sd-3d__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #151714;
}
.sd-3d__poster,
.sd-3d__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.sd-3d__poster[hidden] { display: none; }

.sd-3d__go {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--sdx-orange, #ff552e);
  color: #fff;
  font: 600 15px/1 var(--sdx-sans, "IBM Plex Sans", sans-serif);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.sd-3d__go:hover { filter: brightness(1.06); }
.sd-3d__go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sd-3d__go[disabled] { opacity: .8; cursor: progress; }
.sd-3d__go[hidden] { display: none; }

.sd-3d__views {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}
.sd-3d__views[hidden] { display: none; }
.sd-3d__views button {
  margin: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(21, 23, 20, .74);
  color: #e8eddc;
  font: 600 13px/1 var(--sdx-sans, "IBM Plex Sans", sans-serif);
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sd-3d__views button:hover { border-color: rgba(255, 255, 255, .5); }
.sd-3d__views button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* the pressed button takes the device's own colour (set per product in raz3d.php), lime by default */
.sd-3d__views button[aria-pressed="true"] { background: var(--sd-3d-accent, #8fd13a); border-color: var(--sd-3d-accent, #8fd13a); color: #151714; }

.sd-3d__note {
  margin: 10px 0 0;
  font-size: var(--sdx-text-14, 14px);
  line-height: 1.5;
  color: var(--sdx-muted, #647269);
}
.sd-3d.is-loading .sd-3d__poster { opacity: .75; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) {
  .sd-3d.is-loading .sd-3d__poster { transition: none; }
}
