/* Sentius Home - İzole ürün lightbox galerisi */
body.sentius-product-lightbox-open {
    overflow: hidden;
}

.sentius-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(12, 12, 12, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sentius-product-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.sentius-product-lightbox__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(90vw, 1500px);
    height: 88vh;
}

.sentius-product-lightbox__image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sentius-product-lightbox__image-wrap img.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

.sentius-product-lightbox__close,
.sentius-product-lightbox__nav {
    position: fixed;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.64);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sentius-product-lightbox__close:hover,
.sentius-product-lightbox__nav:hover {
    border-color: #d3ad68;
    background: #d3ad68;
    color: #262421;
}

.sentius-product-lightbox__close svg,
.sentius-product-lightbox__nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sentius-product-lightbox__close {
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
}

.sentius-product-lightbox__nav {
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
}

.sentius-product-lightbox__prev {
    left: clamp(1rem, 3vw, 3rem);
}

.sentius-product-lightbox__next {
    right: clamp(1rem, 3vw, 3rem);
}

.sentius-product-lightbox__counter {
    position: fixed;
    bottom: 1.4rem;
    left: 50%;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 74px;
    padding: 0.6rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.64);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .sentius-product-lightbox {
        padding: 1rem;
    }

    .sentius-product-lightbox__image-wrap {
        width: 100%;
        height: 82vh;
    }

    .sentius-product-lightbox__close {
        top: 0.85rem;
        right: 0.85rem;
        width: 44px;
        height: 44px;
    }

    .sentius-product-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .sentius-product-lightbox__prev {
        left: 0.65rem;
    }

    .sentius-product-lightbox__next {
        right: 0.65rem;
    }

    .sentius-product-lightbox__counter {
        bottom: 0.8rem;
    }
}

/* ==========================================================================
   MOBILE PRODUCT META + MAIN IMAGE SWIPE
   ========================================================================== */
@media (max-width: 640px) {
    .product-features-grid--below-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
        margin-top: 0.75rem !important;
        border: 1px solid var(--border-color) !important;
        background: #fff;
    }

    .product-features-grid--below-gallery .feature-item {
        min-height: 88px !important;
        padding: 0.85rem 0.75rem !important;
        border-right: 1px solid var(--border-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
        display: grid !important;
        grid-template-columns: 24px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 0.65rem !important;
    }

    .product-features-grid--below-gallery .feature-item:nth-child(2n) {
        border-right: 0 !important;
    }

    .product-features-grid--below-gallery .feature-item:nth-last-child(-n+2) {
        border-bottom: 0 !important;
    }

    .product-features-grid--below-gallery .feature-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .product-features-grid--below-gallery .feature-item small {
        display: block;
        margin-bottom: 0.28rem;
        font-size: 0.52rem !important;
        line-height: 1.2;
        letter-spacing: 0.04em;
    }

    .product-features-grid--below-gallery .feature-item > span {
        min-width: 0;
        font-size: 0.67rem !important;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .product-main-image {
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
        cursor: grab;
    }

    .product-main-image.is-swiping {
        cursor: grabbing;
    }

    .product-main-image > img {
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .product-main-image.is-swipe-left > img {
        transform: translateX(-14px);
        opacity: 0.82;
    }

    .product-main-image.is-swipe-right > img {
        transform: translateX(14px);
        opacity: 0.82;
    }
}

@media (max-width: 380px) {
    .product-features-grid--below-gallery .feature-item {
        min-height: 82px !important;
        padding: 0.7rem 0.6rem !important;
        grid-template-columns: 20px minmax(0, 1fr) !important;
        gap: 0.5rem !important;
    }

    .product-features-grid--below-gallery .feature-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .product-features-grid--below-gallery .feature-item > span {
        font-size: 0.62rem !important;
    }
}


/* ========================================================================== 
   MOBILE: PRODUCT META BOXES HIDDEN
   Koleksiyon / Ürün Grubu / Galeri / Marka alanı mobilde gösterilmez.
   ========================================================================== */
@media screen and (max-width: 640px) {
    .product-features-grid--below-gallery {
        display: none !important;
    }
}
