/* LIGHTBOX (GLOBAL & PRODUCTS) */
.product-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 20000 !important;
    /* Higher than anything */

    /* Default State: Hidden & Non-Interactive */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    backdrop-filter: blur(5px);
}

.product-lightbox.active {
    /* Active State: Visible & Interactive */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* LIGHTBOX CONTENT STYLES */
.lightbox-content {
    width: 95%;
    /* More width on mobile */
    max-width: 1200px;
    height: 90vh;
    /* Fixed height for desktop to enabling scrolling within columns */
    background: #fff;
    display: flex;
    gap: 0;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    /* Main container hidden, scroll internally */
}

/* LIGHTBOX LAYOUT - SINGLE IMAGE FOCUS */
.lightbox-left {
    flex: 1.5;
    background: #f2f2f2;
    /* Gray panel */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    padding: 0;
    /* Removing container padding for the swiper to handle gaps */
}

/* SWIPER COMPONENT STYLES (Lightweight & Correct) */
/* SWIPER COMPONENT STYLES (Clean & Large) */
.lb-main-swiper {
    width: 92%;
    /* Centered red frame area */
    height: 96%;
    /* Tall aesthetic */
    position: relative;
    overflow: hidden;
    background: transparent;
}

.lb-main-swiper .swiper-wrapper {
    height: 100%;
}

.lb-main-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.lb-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the frame completely */
    pointer-events: none;
    display: block;
}

/* Thumbs are hidden as per "tek gorsel olsun" request */
.lb-thumbs-swiper {
    display: none !important;
}

/* CURSOR HOVER FIX FOR LIGHTBOX */
.product-lightbox {
    cursor: auto !important;
    /* Force browser cursor back */
}

/* Horizontal Nav Arrows */
/* Horizontal Nav Arrows - Difference Blend Mode */
/* Horizontal Nav Arrows - Centered on Panel Edges */
.lb-nav-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent !important;
    color: #000 !important;
    /* Pure Black Arrows as requested */
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    margin: 0 !important;
    transition: transform 0.2s, opacity 0.2s;
}

.lb-nav-arrow:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.7;
}

/* Custom Swiper Arrows */
.lb-nav-arrow::after {
    font-size: 1.2rem !important;
    /* Elegant size */
    font-weight: 300;
}

.lb-prev {
    left: 5px !important;
}

.lb-next {
    right: 5px !important;
}

.lightbox-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align top */
    padding: 40px;
    overflow-y: auto;
    /* Scroll ONLY right side if needed */
    height: 100%;
}

.lb-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    /* Slightly smaller */
    margin-bottom: 20px;
    color: #111;
    line-height: 1.1;
}

.lb-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
    /* Handled by wrapper */
}

.lb-desc-wrapper {
    margin-top: 20px !important;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.lb-attrs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Column Grid */
    gap: 15px 30px;
    /* Row gap, Col gap */
    margin-bottom: 30px;
    margin-top: 10px;
}

.lb-attr {
    display: flex;
    flex-direction: column;
    /* Stack vertically for space */
    align-items: flex-start;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    gap: 3px;
}

/* Make Tesettür Uyumu & Çoklu Kullanım span full width if needed? No, 2-col is fine. */

.lb-attr label {
    font-weight: 600;
    color: #999;
    /* Lighter color for label */
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.lb-attr value,
.lb-attr span {
    color: #111;
    /* Darker for value */
    text-align: left;
    /* Align left matching label */
    font-size: 0.9rem;
    line-height: 1.3;
}

.actions-container {
    margin-top: auto;
    /* Push to bottom if space allows */
}

.lightbox-close,
.close-lightbox {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer !important;
    color: #111;
    z-index: 20005;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.close-lightbox:hover {
    transform: scale(1.1);
}

.main-button-round {
    padding: 12px 25px;
    /* compact buttons */
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.main-button-round:hover {
    background: #111;
    color: #fff !important;
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        overflow-y: auto;
        /* Global scroll on mobile */
    }

    .lightbox-left {
        flex: none;
        width: 100%;
        padding: 15px;
        height: auto;
    }

    .lightbox-right {
        flex: none;
        width: 100%;
        padding: 20px 25px 80px;
        /* Padding for bottom bar */
        height: auto;
        overflow-y: visible;
    }

    .lb-thumbnails-container {
        height: 80px;
        /* Slightly smaller for mobile */
        width: 100%;
    }

    .lb-main-img-wrapper img {
        max-height: 50vh;
        /* Better ratio for mobile */
    }

    .lb-title {
        font-size: 2rem;
        /* Scaled down */
        margin-bottom: 10px;
    }

    .lb-desc {
        font-size: 0.9rem;
    }

    .lb-attrs {
        grid-template-columns: 1fr;
        /* 1 Column on very small screens? Actually 2 is usually fine even on mobile, let's keep 2 */
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        color: #fff;
        /* White close button on mobile over dark backdrop */
        background: rgba(0, 0, 0, 0.5);
        box-shadow: none;
    }
}