/* Photo → AR try-on on table */
.sb-ar {
  margin: 16px 0 10px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(8, 9, 9, 0.12);
  background: #fff;
  color: #080909;
}
body.theme-dark .sb-ar {
  background: #151617;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f2efe8;
}
.sb-ar__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.sb-ar__head strong {
  font-family: Oswald, Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.sb-ar__head span {
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.8;
}
.sb-ar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: #781326;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
}
.sb-ar__btn:hover { filter: brightness(1.05); }

.sb-ar-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sb-ar-modal__panel {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  color: #080909;
  padding: 16px;
}
body.theme-dark .sb-ar-modal__panel {
  background: #151617;
  color: #f2efe8;
}
.sb-ar-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
.sb-ar-modal__title {
  font-weight: 600;
  margin: 0 28px 10px 0;
}
.sb-ar-modal__stage {
  background: linear-gradient(160deg, #f4f0e8, #e8e2d6);
}
body.theme-dark .sb-ar-modal__stage {
  background: #0d0e0f;
}
.sb-ar-modal__hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.75;
}

.sb-ar-cam {
  position: fixed;
  inset: 0;
  z-index: 100060;
  background: #000;
}
.sb-ar-cam__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-ar-cam__item {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(70vw, 320px);
  height: auto;
  transform: translate(-50%, -50%) scale(0.7);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  touch-action: none;
  user-select: none;
}
.sb-ar-cam__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
  color: #fff;
  font-size: 0.9rem;
}
.sb-ar-cam__close {
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 22px;
  cursor: pointer;
}
.sb-ar-cam__tools {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
}
.sb-ar-cam__tools label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.sb-ar-cam__tools input[type=range] { flex: 1; }
.sb-ar-cam__tools p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.35;
}
