/* ============ Ürün Galerisi + Lightbox ============ */

.pg__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #F6F4F1;
    border-radius: 2px;
    overflow: hidden;
}

.pg__main {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.pg__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 300ms ease;
}

.pg__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    font-size: 11.5px;
    font-weight: 500;
    color: #6E3540;
    background: #F4E8EA;
    border-radius: 2px;
    padding: 5px 11px;
    letter-spacing: 0.03em;
}

.pg__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.pg__thumb {
    position: relative;
    width: 76px;
    height: 95px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #E7E3DE;
    border-radius: 2px;
    background: #F6F4F1;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 180ms;
}

.pg__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 250ms ease;
}

.pg__thumb:hover {
    border-color: #C9C4BD;
}

.pg__thumb.is-active {
    border: 2px solid #242424;
}

/* Lightbox */
.pg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(18, 18, 20, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pg-lightbox__img {
    max-width: 88vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 2px;
    user-select: none;
}

.pg-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 180ms;
}

.pg-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pg-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 180ms;
}

.pg-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pg-lightbox__nav--prev {
    left: 20px;
}

.pg-lightbox__nav--next {
    right: 20px;
}

.pg-lightbox__counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
}

@media (max-width: 599px) {
    .pg-lightbox__nav--prev {
        left: 10px;
    }

    .pg-lightbox__nav--next {
        right: 10px;
    }

    .pg-lightbox__nav {
        width: 42px;
        height: 42px;
    }
}
