.spin360 { max-width: 620px; margin: 0 auto; outline: none; }

.spin360-stage {
    position: relative;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 600 / 422;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}
.spin360.is-dragging .spin360-stage { cursor: grabbing; }

.spin360-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.spin360.is-zoomed .spin360-img { object-fit: cover; transform: scale(1.6); }

.spin360-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fafafa;
    color: #666;
    font-size: 13px;
}
.spin360-bar {
    width: 0;
    height: 3px;
    max-width: 180px;
    background: #178a09;
    border-radius: 2px;
    transition: width .15s linear;
}
.spin360-loader span { min-width: 180px; text-align: center; }

.spin360-hint {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.62);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .3s;
}
.spin360-hint.is-hidden { opacity: 0; }

.spin360-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
}
.spin360-zoom:hover { background: #178a09; }

.spin360-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.spin360-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.spin360-btn:hover { border-color: #178a09; color: #178a09; }
.spin360-play.is-playing { border-color: #178a09; color: #178a09; background: #f2f9f1; }
.spin360-range { flex: 1 1 auto; accent-color: #178a09; }

/* Thumbnail met 360-badge tussen de productafbeeldingen */
.tmb-360 { position: relative; display: block; }
.tmb-360 .tmb-360-badge {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    background: #178a09;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: .3px;
    padding: 1px 5px;
    border-radius: 8px;
    pointer-events: none;
}

/* Viewer op de plek van de hoofdafbeelding */
.spin360-inline { width: 100%; }
.spin360-inline .spin360 { max-width: 100%; }
.spin360-inline-wrap { margin-top: 12px; }
.spin360-fullpage {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #2a6db0;
}

/* Actieve 360-thumbnail, zelfde markering als de andere thumbnails */
.tmb-360.active { outline: 2px solid #178a09; outline-offset: -2px; }

@media (max-width: 640px) {
    .spin360-hint { font-size: 11px; }
}
