/* Özcan Pen - Premium Gallery System */
.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    cursor: zoom-in;
    height: 500px;
    min-height: 400px;
    max-height: 500px;
    max-width: 650px;
    margin: 0 auto;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-image-wrapper:hover img {
    transform: scale(1.05);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
}

.thumb-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
    opacity: 0.6;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--color-accent);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(229, 185, 95, 0.2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox */
.elite-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-nav button {
    pointer-events: auto;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.5rem;
}

.lightbox-nav button:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
