.vf-360-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    background: transparent;
    overflow: hidden;
    touch-action: none;
}

.vf-360-container:active {
    cursor: grabbing;
}

.vf-360-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    transform: scale(1.1); /* Reduced scale to fit nicely in the frame */
}

.vf-360-container.loaded .vf-360-canvas {
    opacity: 1;
}

/* Loading Overlay */
.vf-360-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.vf-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(20, 100, 244, 0.1);
    border-top-color: #1464f4;
    border-radius: 50%;
    animation: vf-spin 1s linear infinite;
}

.vf-loader-text {
    padding: 10px 24px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Scroll/Drag Hint */
.vf-360-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    pointer-events: none;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 15;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.vf-360-hint.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

@keyframes vf-spin {
    to { transform: rotate(360deg); }
}

/* Desktop styles - removing rigid min-height to ensure it fits the product stage */
@media (min-width: 1024px) {
    .vf-360-container {
        height: 100%;
    }
}
