.configurator-page {
    min-height: 100vh;
    background: #f8f6f2;
    overflow-x: hidden;
}

.configurator-main {
    min-height: 100vh;
}

.configurator-shell {
    padding-inline: 0;
}

.configurator-layout {
    --bs-gutter-x: 0;
    min-height: 100vh;
    margin-right: 0;
    margin-left: 0;
}

.configurator-sidebar {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.configurator-sidebar__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.configurator-sidebar__intro {
    padding-top: 1rem;
}

.configurator-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.preview-stage {
    width: 100%;
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

#container-preview {
    background: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 20px 60px rgba(31, 26, 18, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.preview-toolbar {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    display: flex;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.preview-toolbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    pointer-events: auto;
}

#container-preview img {
    display: block;
    transform-origin: center center;
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
}

.preview-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: default;
}

.preview-image-wrapper.is-editing {
    cursor: grab;
}

.preview-image-wrapper.is-dragging {
    cursor: grabbing;
}

.preview-3d {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #ffffff 0%, #eef1f4 40%, #dde3e8 100%);
    position: relative;
}

.preview-3d canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.preview-3d canvas.is-dragging {
    cursor: grabbing;
}

.zoom-controls .btn {
    min-width: 48px;
}

.zoom-controls .btn-light {
    border-color: rgba(0, 0, 0, 0.08);
}

.preview-placeholder {
    color: #6c757d;
    text-align: center;
    padding: 1rem;
}

@media (min-width: 992px) {
    .configurator-header {
        display: none;
    }

    .configurator-shell {
        min-height: 100vh;
    }

    .preview-stage {
        min-height: 100vh;
        height: 100vh;
        padding: 2rem;
    }

    .configurator-sidebar {
        height: 100vh;
        overflow: hidden;
    }

    .configurator-sidebar__inner {
        height: 100vh;
        overflow-y: auto;
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    .configurator-shell {
        padding-inline: 0.75rem;
        padding-block: 1rem 2rem;
    }

    .configurator-sidebar {
        border-left: 0;
        border-radius: 1.25rem;
        box-shadow: 0 12px 40px rgba(31, 26, 18, 0.08);
    }

    .configurator-sidebar__inner {
        padding: 1.25rem;
    }

    .preview-stage {
        border-radius: 1.25rem;
        min-height: 46vh;
        box-shadow: 0 12px 40px rgba(31, 26, 18, 0.08);
    }
}
