/*
 * 3D-Ansicht auf der Produktseite (2026-10-03, product-3d.js): Knopf "In 3D ansehen" und Fenster.
 * Ton wie shop-modern.css: Markenblau, runde Ecken, weiche Schatten.
 */
.sf-3d-open {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; margin-top: 10px; width: 100%;
    border: 1.5px solid var(--shop-brand, #309bd9); border-radius: 12px; background: #fff;
    color: var(--shop-brand-dark, #2a89c0); font-weight: 700; font-size: 15px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(48, 155, 217, .12);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sf-3d-open:hover { transform: translateY(-2px); background: var(--shop-brand-tint, #e8f4fb); box-shadow: 0 10px 24px rgba(48, 155, 217, .2); }
.sf-3d-open i { font-size: 16px; }
.sf-3d-open--canvas { width: auto; margin: 12px auto 0; display: flex; }

/* Fenster */
html.sf3d-lock, html.sf3d-lock body { overflow: hidden; }
.sf3d { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.sf3d[hidden] { display: none; }
.sf3d__backdrop { position: absolute; inset: 0; background: rgba(15, 25, 35, .45); opacity: 0; transition: opacity .2s ease; }
.sf3d__box {
    position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow: auto;
    display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 16px;
    background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 25, 35, .3);
    transform: translateY(14px) scale(.98); opacity: 0; transition: transform .2s ease, opacity .2s ease;
}
.sf3d.is-open .sf3d__backdrop { opacity: 1; }
.sf3d.is-open .sf3d__box { transform: none; opacity: 1; }
.sf3d__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf3d__title { margin: 0; font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 22px; color: var(--shop-ink, #292929); }
.sf3d__close {
    flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer;
    background: #f3f6f9; color: var(--shop-ink, #292929); font-size: 16px;
}
.sf3d__close:hover { background: var(--shop-brand-tint, #e8f4fb); color: var(--shop-brand-dark, #2a89c0); }
.sf3d__stage {
    position: relative; height: min(62vh, 520px); border-radius: 16px; overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef3f7 75%);
    touch-action: none;
}
.sf3d__stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.sf3d__stage canvas:active { cursor: grabbing; }
.sf3d__status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--shop-muted, #707070); font-weight: 600; }
.sf3d__status[hidden] { display: none; }
.sf3d__empty {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(92%, 420px);
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .94); box-shadow: 0 8px 24px rgba(15, 25, 35, .12);
}
.sf3d__empty[hidden] { display: none; }
.sf3d__empty p { margin: 0; font-size: 14px; color: var(--shop-ink, #292929); }
.sf3d__design {
    flex: 0 0 auto; border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
    background: var(--shop-brand, #309bd9); color: #fff; font-weight: 700; font-size: 14px;
}
.sf3d__bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sf3d__view {
    border: 1px solid #dde3e9; border-radius: 999px; padding: 8px 16px; cursor: pointer;
    background: #fff; color: var(--shop-ink, #292929); font-weight: 700; font-size: 14px;
}
.sf3d__view:hover { border-color: var(--shop-brand, #309bd9); }
.sf3d__view.is-active, .sf3d__view[aria-pressed="true"] { background: var(--shop-brand, #309bd9); border-color: var(--shop-brand, #309bd9); color: #fff; }
.sf3d__note, .sf3d__credit { margin: 0; text-align: center; font-size: 12.5px; color: var(--shop-muted, #707070); }
.sf3d__credit a { color: inherit; text-decoration: underline; }

@media (max-width: 575px) {
    .sf3d { padding: 8px; align-items: end; }
    .sf3d__box { max-height: calc(100vh - 16px); padding: 14px 12px 12px; border-radius: 20px; }
    .sf3d__stage { height: 58vh; }
    .sf3d__title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .sf3d__box, .sf3d__backdrop, .sf-3d-open { transition: none; }
}
