/* Lightbox Styles */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
}

.fullscreen-close:hover {
    color: var(--primary-blue);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    border: 1px solid var(--border-color);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-secondary);
}

/* Webkit (Chrome, Safari, Edge) için scrollbar stilleri */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
    border: 2px solid var(--bg-secondary);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Modal içindeki diğer scrollable elementler için stiller */
.modal-gallery,
.modal-details,
.gallery-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-secondary);
}

.modal-gallery::-webkit-scrollbar,
.modal-details::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
    width: 6px;
}

.modal-gallery::-webkit-scrollbar-track,
.modal-details::-webkit-scrollbar-track,
.gallery-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.modal-gallery::-webkit-scrollbar-thumb,
.modal-details::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
    border: 1px solid var(--bg-secondary);
}

.modal-gallery::-webkit-scrollbar-thumb:hover,
.modal-details::-webkit-scrollbar-thumb:hover,
.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 2;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Product Modal Specific Styles */
.product-modal {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg-secondary);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-primary);
    flex-shrink: 0;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
    border: 1px solid var(--bg-primary);
}

.product-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.product-thumbnail:hover {
    border-color: var(--primary-blue);
}

.product-thumbnail.active {
    border-color: var(--primary-blue);
}

.product-info {
    padding: 20px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--bg-primary);
}

.product-info::-webkit-scrollbar {
    width: 6px;
}

.product-info::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.product-info::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
    border: 1px solid var(--bg-primary);
}

.product-info::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.product-title {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-title i {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
}

.product-specs {
    display: grid;
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-blue);
}

.spec-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.spec-value {
    color: var(--text-secondary);
}

.product-description {
    margin-top: 20px;
}

.description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.description-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.description-list li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .product-gallery {
        height: 300px;
    }

    .product-thumbnails {
        overflow-x: auto;
        padding: 10px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .spec-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        height: 250px;
    }

    .product-title {
        font-size: var(--font-size-xl);
    }

    .product-info {
        padding: 15px;
    }
} 