/* Online Katalog Sayfası Styles */
.catalog-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* PDF İndir Butonu */
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary, #c50d0d);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(197, 13, 13, 0.3);
}

.btn-download-pdf:hover {
    background: var(--primary-dark, #a00a0a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 13, 13, 0.4);
    color: white;
}

.btn-download-pdf i {
    font-size: 16px;
}

/* Katalog Kartı */
.catalog-viewer-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Navigasyon Butonları - Resmin Yanında */
.btn-nav-left,
.btn-nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 13, 13, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-nav-left {
    left: 20px;
}

.btn-nav-right {
    right: 20px;
}

.btn-nav-left:hover:not(:disabled),
.btn-nav-right:hover:not(:disabled) {
    background: rgba(197, 13, 13, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-nav-left:disabled,
.btn-nav-right:disabled {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Sayfa Bilgisi - Resmin Altında */
.page-info-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color, #333);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.page-info-bottom span:first-child {
    color: #666;
}

.page-info-bottom span:nth-child(2) {
    color: var(--primary, #c50d0d);
    font-size: 14px;
    font-weight: 700;
}

/* Resim Gösterim */
.catalog-display {
    background: #f8f9fa;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    position: relative;
}

.catalog-display img {
    max-width: 60%;
    max-height: 60vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.catalog-display img:hover {
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

/* Küçük Resimler */
.catalog-thumbnails {
    display: flex;
    gap: 8px;
    padding: 15px;
    overflow-x: auto;
    background: #f8f9fa;
    border-top: 2px solid #f0f0f0;
}

.catalog-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.catalog-thumbnails::-webkit-scrollbar-thumb {
    background: var(--brand-color, #c50d0d);
    border-radius: 4px;
}

.catalog-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary, #a00a0a);
}

.thumb {
    position: relative;
    min-width: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumb:hover {
    border-color: var(--brand-color, #c50d0d);
    transform: scale(1.05);
}

.thumb.active {
    border-color: var(--primary, #a00a0a);
    box-shadow: 0 0 0 3px rgba(197, 13, 13, 0.3);
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.thumb span {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(197, 13, 13, 0.9);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-modal.active {
    display: flex;
}

.zoom-modal img {
    max-width: 95%;
    max-height: 95vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.zoom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* Mobil */
@media (max-width: 768px) {
    .catalog-display {
        padding: 12px;
        min-height: 250px;
    }
    
    .catalog-display img {
        max-width: 80%;
        max-height: 50vh;
    }
    
    .btn-nav-left,
    .btn-nav-right {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .btn-nav-left {
        left: 10px;
    }
    
    .btn-nav-right {
        right: 10px;
    }
    
    .page-info-bottom {
        bottom: 10px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .page-info-bottom span:nth-child(2) {
        font-size: 13px;
    }
    
    .thumb {
        min-width: 55px;
    }
    
    .catalog-thumbnails {
        padding: 12px;
        gap: 6px;
    }

    .btn-download-pdf {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .btn-download-pdf i {
        font-size: 14px;
    }
    
    .zoom-modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

