/* BinkertModelViewer – Umschalter und 3D-Ansicht in der Produktgalerie */
.bmv { position: relative; }
.bmv [hidden] { display: none !important; }
.bmv__images.is-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }

.bmv__switch { display: flex; gap: .5rem; margin: 0 0 .75rem; }
.bmv__tab {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .95rem; border: 1px solid #cfd5db; border-radius: 999px;
    background: #fff; color: #2b3136; font-size: .875rem; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.bmv__tab svg { width: 1.05em; height: 1.05em; flex: none; }
.bmv__tab:hover { border-color: var(--bs-primary, #2b3136); }
.bmv__tab:focus-visible, .bmv__btn:focus-visible { outline: 2px solid var(--bs-primary, #2b3136); outline-offset: 2px; }
.bmv__tab.is-active { background: var(--bs-primary, #2b3136); border-color: var(--bs-primary, #2b3136); color: #fff; }

.bmv__stage {
    position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / 1; min-height: 340px; max-height: 680px;
    border: 1px solid #e1e5e9; border-radius: 6px; overflow: hidden;
    background: linear-gradient(180deg, #fafbfc 0%, #eceff2 100%);
}
.bmv__stage:fullscreen { height: 100vh; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.bmv__canvas { position: relative; flex: 1 1 auto; min-height: 0; }
.bmv__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.bmv__canvas canvas:active { cursor: grabbing; }

.bmv__toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem;
    padding: .5rem .6rem; background: rgba(255, 255, 255, .92); border-top: 1px solid #e1e5e9;
}
.bmv__group { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.bmv__btn {
    padding: .25rem .55rem; border: 1px solid #cfd5db; border-radius: 4px;
    background: #fff; color: #2b3136; font-size: .75rem; line-height: 1.3; cursor: pointer;
}
.bmv__btn:hover { border-color: #8a949e; }
.bmv__btn[aria-pressed="true"] { background: #2b3136; border-color: #2b3136; color: #fff; }
.bmv__explode { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .75rem; color: #2b3136; }
.bmv__explode input { width: 90px; }

.bmv__info {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
    padding: .35rem .6rem; background: #fff; border-top: 1px solid #e1e5e9; font-size: .75rem; color: #5b6570;
}
.bmv__dims { font-variant-numeric: tabular-nums; color: #2b3136; }

.bmv__overlay, .bmv__login {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem; padding: 1.5rem; text-align: center; font-size: .9375rem; color: #2b3136;
    background: linear-gradient(180deg, #fafbfc 0%, #eceff2 100%);
}
.bmv__login svg { width: 2.5rem; height: 2.5rem; color: #8a949e; }
.bmv__login p { margin: 0; max-width: 28rem; }

@media (max-width: 575.98px) {
    .bmv__hint { display: none; }
    .bmv__btn { padding: .3rem .5rem; }
}
