.scene {
    min-height: 300px;
    padding: 0 12px;
}

:root {
    --tile-size: 90px;
    --gap: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, var(--tile-size));
    gap: var(--gap);
    text-align: center;
}

.cube-wrapper {
    justify-self: center;
    position: relative;
    perspective: 1400px;
    height: 50px;
    cursor: pointer;
}

.cube {
    width: 70px;
    height: 70px;
    transform-style: preserve-3d;
    transform: translate(0, 0) rotateX(-20deg) rotateY(50deg);
    transition: transform .5s ease;
}

.cube .left, .cube .front {
    height: 20%;
}


.face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    backface-visibility: hidden;
    border: 1px solid var(--white-gray);
}

.face {
    background: var(--white);
}

.face.front {
    transform: translateZ(35px);
}

.face.back {
    transform: translateZ(-35px) rotateY(180deg);
}

.face.right {
    transform: translateX(35px) rotateY(90deg);
}

.face.left {
    transform: translateX(-35px) rotateY(-90deg);
}

.face.top {
    transform: translateY(-35px) rotateX(90deg);
}

.face.bottom {
    transform: translateY(35px) rotateX(-90deg);
}


.shadow {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translateX(-50%);
    width: 140px;
    height: 20px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.0) 80%);
    filter: blur(8px);
    opacity: 0.9;
    border-radius: 50%;
    transform-origin: center;
}

.product-image {
    transform: rotateY(-60deg) rotateX(47deg);
    position: absolute;
    bottom: -15px;
    left: -13px;
    height: 160px;
}

.product-shadow {
    position: absolute;
    left: 10px;
    top: 45%;
    width: 55px;
    height: 30px;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.0) 80%);
    filter: blur(8px);
    opacity: 0.9;
    border-radius: 50%;
    transform-origin: center;
}
