.product-puzzle {
    background: #f6f8fb;
}

.product-puzzle__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .45fr);
    gap: 28px;
    align-items: start;
}

.product-puzzle__board {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 320px;
    background: #dbe7f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.product-puzzle__stage {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    overflow: hidden;
    background: #dbe7f5;
}

.product-puzzle__stage svg {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.product-puzzle__stage svg:active {
    cursor: grabbing;
}

.product-puzzle-svg-piece {
    cursor: grab;
    transition: opacity .14s ease, filter .14s ease;
}

.product-puzzle-svg-piece.is-dragging {
    cursor: grabbing;
    opacity: .94;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, .28));
}

.product-puzzle-svg-piece.is-snapped {
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, .72));
}

.product-puzzle-svg-outline {
    fill: rgba(255, 255, 255, .05);
    stroke: rgba(15, 23, 42, .42);
    stroke-width: 1.6;
    pointer-events: all;
}

.product-puzzle-svg-burst {
    animation: productPuzzleBurst 1.2s ease forwards;
    pointer-events: none;
}

@keyframes productPuzzleBurst {
    0% {
        opacity: 1;
        transform: scale(.8);
        transform-origin: center;
    }
    100% {
        opacity: 0;
        transform: scale(1.08);
        transform-origin: center;
    }
}

.product-puzzle__complete {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .76);
    color: #fff;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.product-puzzle__complete.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.product-puzzle__panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    position: sticky;
    top: 96px;
}

.product-puzzle__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.product-puzzle__status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 14px;
}

.product-puzzle__stat:last-child {
    border-bottom: 0;
}

.product-puzzle__levels,
.product-puzzle__actions,
.product-puzzle__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-puzzle__levels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-puzzle__button {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    font-weight: 700;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.product-puzzle__button:hover,
.product-puzzle__button.is-active {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}

.product-puzzle__button--primary {
    border-color: #1e3a8a;
    background: #1e3a8a;
    color: #fff;
}

.product-puzzle__thumb {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
}

.product-puzzle__thumb.is-active {
    border-color: #f97316;
}

.product-puzzle__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-puzzle__preview {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.product-puzzle__hint {
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .product-puzzle__shell {
        grid-template-columns: 1fr;
    }

    .product-puzzle__board {
        min-height: auto;
    }
}
