.sofa3d {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    width: 100%;
    min-height: 650px;
}

.sofa3d__panel {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 16px;
}

.sofa3d__panel h3 {
    margin-top: 0;
}

.sofa3d__panel button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: #222;
    color: #fff;
    cursor: pointer;
}

.sofa3d__panel button:hover {
    opacity: 0.85;
}

.sofa3d__panel label {
    display: block;
    margin-bottom: 15px;
}

.sofa3d__viewport {
    min-height: 650px;
    background: #eeeeee;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.sofa3d__viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .sofa3d {
        grid-template-columns: 1fr;
    }

    .sofa3d__viewport {
        min-height: 420px;
    }
}



.sofa3d__section {
    margin-bottom: 20px;
}

.sofa3d__section strong {
    display: block;
    margin-bottom: 10px;
}

.sofa3d__props label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.sofa3d__props input[type="number"],
.sofa3d__props input[type="color"] {
    width: 100%;
    margin-top: 5px;
}

.sofa3d__panel button.is-active {
    background: #8b6f47;
}