/* ==========================================
   ULTRAKIT 360° PRODUCT VIEWER
   ========================================== */
.ultrakit-pvw-wrapper { --pvw-a: #6c5ce7; --pvw-r: 24px; --pvw-ratio: 4 / 3; --pvw-bg: linear-gradient(180deg, #f6f6fc, #e9e8f7); --pvw-tx: #1a1a2e; width: 100%; box-sizing: border-box; font-family: inherit; color: var(--pvw-tx); }
.ultrakit-pvw-wrapper *, .ultrakit-pvw-wrapper *::before, .ultrakit-pvw-wrapper *::after { box-sizing: border-box; }
.pvw-skin-dark { --pvw-bg: radial-gradient(circle at 50% 30%, #2a2a4d, #0f0f23); --pvw-tx: #ffffff; }
.pvw-skin-gradient { --pvw-bg: linear-gradient(135deg, #6c5ce7, #00cec9); --pvw-tx: #ffffff; }
.pvw-skin-plain { --pvw-bg: transparent; }
.ultrakit-pvw-stage { position: relative; aspect-ratio: var(--pvw-ratio); border-radius: var(--pvw-r); background: var(--pvw-bg); overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; }
.is-dragging .ultrakit-pvw-stage { cursor: grabbing; }
.ultrakit-pvw-view { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ultrakit-pvw-img { width: 100%; height: 100%; object-fit: contain; display: none; pointer-events: none; }
.has-frames .ultrakit-pvw-img { display: block; } .has-frames .ultrakit-pvw-demo { display: none; }
.ultrakit-pvw-title { position: absolute; z-index: 3; top: 18px; left: 22px; font-size: 16px; font-weight: 800; }
.ultrakit-pvw-badge { position: absolute; z-index: 3; top: 16px; right: 18px; padding: 5px 13px; border-radius: 30px; background: var(--pvw-a); color: #ffffff; font-size: 12px; font-weight: 900; letter-spacing: 0.5px; }
.ultrakit-pvw-hint { position: absolute; z-index: 3; left: 50%; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; transform: translateX(-50%); border-radius: 40px; background: rgba(20,20,45,0.6); color: #ffffff; font-size: 12.5px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; transition: opacity 0.5s ease; }
.ultrakit-pvw-hint svg { flex-shrink: 0; width: 18px; height: 18px; }
.is-touched .ultrakit-pvw-hint { opacity: 0; }
.ultrakit-pvw-loading { position: absolute; inset: 0; z-index: 4; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: var(--pvw-bg); }
.is-loading .ultrakit-pvw-loading { display: flex; }
.ultrakit-pvw-loading span { width: 40px; height: 40px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--pvw-a) 22%, transparent); border-top-color: var(--pvw-a); animation: ukPvwSpin 0.8s linear infinite; }
.ultrakit-pvw-loading em { font-style: normal; font-size: 13px; font-weight: 800; }
@keyframes ukPvwSpin { to { transform: rotate(360deg); } }

.ultrakit-pvw-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.ultrakit-pvw-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0 !important; box-sizing: border-box; background: color-mix(in srgb, var(--pvw-a) 12%, transparent); color: var(--pvw-a) !important; border: 0; border-radius: 50%; cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; }
.ultrakit-pvw-btn:hover { background: var(--pvw-a); color: #ffffff !important; }
.ultrakit-pvw-btn svg { flex-shrink: 0; width: 18px; height: 18px; }
.ultrakit-pvw-btn .i-pause { display: none; } .is-rotating .ultrakit-pvw-btn.is-play .i-pause { display: block; } .is-rotating .ultrakit-pvw-btn.is-play .i-play { display: none; }
.ultrakit-pvw-range { flex: 1; min-width: 0; height: 6px; margin: 0 6px; padding: 0; -webkit-appearance: none; appearance: none; border-radius: 6px; outline: none; cursor: pointer; border: 0; background: linear-gradient(90deg, var(--pvw-a) var(--fill, 0%), color-mix(in srgb, currentColor 15%, transparent) var(--fill, 0%)); }
.ultrakit-pvw-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; border: 4px solid var(--pvw-a); box-shadow: 0 3px 10px rgba(0,0,0,0.25); }
.ultrakit-pvw-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #ffffff; border: 4px solid var(--pvw-a); }
.ultrakit-pvw-deg { min-width: 44px; text-align: right; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* built-in demo model: CSS cube on a turntable */
.ultrakit-pvw-demo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 900px; }
.ultrakit-pvw-cube { --a: 0deg; position: relative; width: 150px; height: 150px; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(var(--a)); }
.ultrakit-pvw-cube i { position: absolute; inset: 0; border-radius: 16px; border: 2px solid rgba(255,255,255,0.55); backface-visibility: hidden; }
.ultrakit-pvw-cube .f1 { transform: translateZ(75px); background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.ultrakit-pvw-cube .f2 { transform: rotateY(90deg) translateZ(75px); background: linear-gradient(135deg, #00b894, #55efc4); }
.ultrakit-pvw-cube .f3 { transform: rotateY(180deg) translateZ(75px); background: linear-gradient(135deg, #e17055, #fdcb6e); }
.ultrakit-pvw-cube .f4 { transform: rotateY(-90deg) translateZ(75px); background: linear-gradient(135deg, #0984e3, #74b9ff); }
.ultrakit-pvw-cube .f5 { transform: rotateX(90deg) translateZ(75px); background: #dfe6e9; }
.ultrakit-pvw-cube .f6 { transform: rotateX(-90deg) translateZ(75px); background: #b2bec3; }
.ultrakit-pvw-shadow { position: absolute; left: 50%; bottom: 20%; width: 170px; height: 26px; margin-left: -85px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,0.3), transparent 70%); }
@media (max-width: 600px) { .ultrakit-pvw-cube { width: 110px; height: 110px; } .ultrakit-pvw-cube i { transform-origin: center; } .ultrakit-pvw-deg { display: none; } }
