/* 360 viewer + Normal/360 toggles */
.d360 { position: absolute; inset: 0; z-index: 3; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; display: block; }
.d360.grab { cursor: grabbing; }
.d360 img, .d360 video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.d360-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font: 600 11px "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #333; background: rgba(255, 255, 255, .85); padding: 4px 12px; border-radius: 999px; transition: opacity .3s; pointer-events: none; }
.d360-btn { position: absolute; right: 10px; bottom: 10px; z-index: 6; border: none; cursor: pointer; font: 700 12px "DM Sans", sans-serif; letter-spacing: .06em; color: #fff; padding: 7px 14px; border-radius: 999px; background: linear-gradient(145deg, #ff6b72, #e2373f); box-shadow: 4px 5px 10px rgba(0, 0, 0, .28), inset 2px 2px 5px rgba(255, 255, 255, .4), inset -3px -3px 6px rgba(120, 0, 10, .35); }
.d360-btn.on { background: #222; }
.pod-mode { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 6; display: none; gap: 8px; }
.pod-mode.has { display: flex; }
.pod-mode button { border: none; cursor: pointer; font: 600 12px "DM Sans", sans-serif; letter-spacing: .05em; padding: 7px 16px; border-radius: 999px; color: var(--text, #222); background: var(--bg2, #fff); box-shadow: 4px 5px 10px rgba(0, 0, 0, .25), inset 2px 2px 5px rgba(255, 255, 255, .25); }
.pod-mode button.on { color: #fff; background: linear-gradient(145deg, #ff6b72, #e2373f); }

.prod-visual { position: relative; }
#pv-360 { bottom: 62px; }
.p-img .d360-btn { z-index: 7; }

/* 3D / HTML 360 views */
.d360-html, .d360-model, .d360-obj, .d360-stl { cursor: default; touch-action: auto; background: transparent; }
.d360-html { background: #fff; }
.d360 iframe, .d360 model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: auto; --poster-color: transparent; background: transparent; }
.d360-obj, .d360-stl { cursor: grab; }
.d360 canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; pointer-events: auto; }
.d360-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; font: 600 13px "DM Sans", sans-serif; color: #333; background: rgba(255,255,255,.9); padding: 8px 16px; border-radius: 999px; pointer-events: none; }
.d360-note.err { background: #fde3e4; color: #b3171d; }
