.pd-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.pd-gallery__frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    cursor: zoom-in;
    overflow: hidden;
    order: 2;
}

.pd-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-gallery__zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.pd-gallery__thumbs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding: 2px;
    order: 1;
}

.pd-gallery__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.pd-gallery__thumb.is-active,
.pd-gallery__thumb:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.pd-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 13, 24, 0.92);
}

.pd-lightbox.is-open {
    display: flex;
}

.pd-lightbox__frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1180px, 100%);
    height: min(760px, calc(100vh - 48px));
    padding: 18px;
    border-radius: 8px;
    background: #fff;
}

.pd-lightbox__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-lightbox__close,
.pd-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.pd-lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
}

.pd-lightbox__nav {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
}

.pd-lightbox__nav--prev {
    left: 16px;
}

.pd-lightbox__nav--next {
    right: 16px;
}

.pd-lightbox__nav[hidden] {
    display: none;
}

body.pd-lightbox-open {
    overflow: hidden;
}

.variant__label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 600;
}

.variant__select {
    width: 100%;
    max-width: 360px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 1.4rem;
}

.variant__select:focus {
    outline: 0;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.variant__error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .pd-gallery {
        display: block;
    }

    .pd-gallery__frame {
        padding: 12px;
    }

    .pd-gallery__thumbs {
        grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
        gap: 8px;
        max-height: none;
        overflow-y: visible;
        margin-top: 12px;
    }

    .pd-lightbox {
        padding: 12px;
    }

    .pd-lightbox__frame {
        height: calc(100vh - 24px);
        padding: 10px;
    }

    .pd-lightbox__close {
        top: 10px;
        right: 10px;
    }

    .pd-lightbox__nav--prev {
        left: 10px;
    }

    .pd-lightbox__nav--next {
        right: 10px;
    }
}
