.product-zoom-trigger {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    cursor: zoom-in;
}

.product-zoom-trigger > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #eee7dc;
    transition: transform .35s ease;
}

.product-zoom-trigger:hover > img {
    transform: scale(1.025);
}

.product-zoom-trigger > span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(29, 28, 32, .86);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    font-size: 10px;
    font-weight: 600;
}

.product-zoom-trigger > span i {
    font-size: 17px;
    font-style: normal;
}

.product-lightbox[hidden] {
    display: none;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(14, 14, 17, .93);
    cursor: zoom-out;
}

.product-lightbox-panel {
    position: relative;
    width: min(1440px, 100%);
    height: min(900px, calc(100vh - 48px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    color: #fff;
    background: #202024;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .48);
}

.product-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.product-lightbox-toolbar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.product-lightbox-toolbar > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.product-lightbox-toolbar button,
.product-lightbox-toolbar a {
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    font-size: 11px;
}

.product-lightbox-toolbar button:hover,
.product-lightbox-toolbar a:hover {
    background: rgba(255, 255, 255, .16);
}

.product-lightbox-toolbar .product-lightbox-close {
    font-size: 23px;
}

.product-lightbox-viewport {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden;
    border-radius: 13px;
    background: #111114;
    cursor: default;
    touch-action: none;
}

.product-lightbox-viewport.is-draggable {
    cursor: grab;
}

.product-lightbox-viewport.is-dragging {
    cursor: grabbing;
}

.product-lightbox-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center;
}

.product-lightbox-panel > small {
    color: #aaaab2;
    text-align: center;
    font-size: 9px;
}

body.product-lightbox-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .product-lightbox {
        padding: 0;
    }

    .product-lightbox-panel {
        width: 100%;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .product-lightbox-toolbar strong,
    .product-lightbox-toolbar a {
        display: none;
    }

    .product-lightbox-toolbar {
        justify-content: flex-end;
    }

    .product-zoom-trigger > span {
        right: 12px;
        bottom: 12px;
    }
}
