﻿.catalog-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* Siyah kaldırıldı */
    perspective: 1200px;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(100%) rotateY(0deg);
    width: 100%; /* tam genişlik */
    height: 100%; /* tam yükseklik */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 0;
    backface-visibility: hidden;
}

    .slide.active {
        transform: translate(-50%, -50%) translateX(0%) rotateY(0deg);
        opacity: 1;
        z-index: 2;
    }

    .slide.prev {
        transform: translate(-50%, -50%) translateX(-100%) rotateY(10deg);
        opacity: 0;
        z-index: 1;
    }

    .slide.next {
        transform: translate(-50%, -50%) translateX(100%) rotateY(-10deg);
        opacity: 0;
        z-index: 1;
    }

    .slide img {
        width: auto; /* genişliği otomatik */
        height: auto; /* yüksekliği otomatik */
        max-width: 90%; /* slider alanının %90’ını geçmesin */
        max-height: 90%; /* slider alanının %90’ını geçmesin */
        object-fit: contain; /* en-boy oranı bozulmadan sığdır */
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Butonlar */
.catalog-btn {
    position: absolute;
    bottom: 20px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
    transition: all 0.3s ease;
}

    .catalog-btn.prev {
        left: 20px;
    }

    .catalog-btn.next {
        right: 20px;
    }

    .catalog-btn:hover {
        background: rgba(0,0,0,0.6);
    }
@media (max-width: 992px) {
    .catalog-slider {
        height: 40vh; /* mobilde slider biraz daha kısa */
    }

    .slide img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: 100%; /* yükseklik tüm alanı kaplasın */
        object-fit: contain; /* en-boy oranını korur */
    }

    .catalog-btn {
        font-size: 24px;
        padding: 8px 12px;
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    .catalog-slider {
        height: 20vh; /* çok küçük ekranlarda */
    }

    .slide img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: 100%;
        object-fit: contain;
    }

    .catalog-btn {
        font-size: 20px;
        padding: 6px 10px;
        bottom: 8px;
    }
}

