/* Prism Product Preview - Frontend v2 */

.prism-preview-container { position: relative; width: 100%; max-width: 600px; margin: 0 auto; background: #f5f5f5; border-radius: 8px; overflow: hidden; }
.prism-preview-canvas-wrap { position: relative; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.prism-preview-blank-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prism-preview-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.prism-preview-3d-canvas { width: 100%; height: 100%; cursor: grab; }
.prism-preview-3d-canvas:active { cursor: grabbing; }

/* Design Controls Toolbar */
.prism-design-controls { padding: 12px 16px; background: #fff; border-top: 1px solid #eee; }
.prism-dc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.prism-dc-row:last-child { margin-bottom: 0; }
.prism-dc-label { font-size: 12px; font-weight: 600; color: #555; min-width: 50px; }
.prism-dc-slider { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: #e0e0e0; border-radius: 3px; outline: none; }
.prism-dc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #FF6B35; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.prism-dc-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #FF6B35; cursor: pointer; border: 2px solid #fff; }
.prism-dc-val { font-size: 12px; color: #888; min-width: 40px; text-align: right; }

.prism-dc-buttons { justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.prism-dc-btn { padding: 5px 14px; border: 1.5px solid #ddd; border-radius: 20px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; color: #555; transition: all 0.2s; }
.prism-dc-btn:hover { border-color: #FF6B35; color: #FF6B35; }
.prism-dc-zoom-btn { background: #004E89; color: #fff !important; border-color: #004E89; }
.prism-dc-zoom-btn:hover { background: #003a6b; border-color: #003a6b; color: #fff !important; }

/* Status bar */
.prism-preview-status { text-align: center; padding: 8px 12px; font-size: 0.82em; color: #888; background: rgba(0,0,0,0.03); border-top: 1px solid #eee; }
.prism-preview-status.active { color: #FF6B35; font-weight: 500; }

/* Drag hint */
.prism-preview-drag-hint { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); color: white; padding: 6px 14px; border-radius: 20px; font-size: 0.8em; z-index: 10; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.prism-preview-container.show-hint .prism-preview-drag-hint { opacity: 1; }

/* Responsive */
@media (max-width: 600px) {
    .prism-dc-row { flex-wrap: wrap; }
    .prism-dc-label { min-width: 100%; margin-bottom: -4px; }
    .prism-dc-buttons { gap: 6px; }
    .prism-dc-btn { padding: 4px 10px; font-size: 11px; }
}
