﻿/* Ana Section Yapısı */
.ay-ser-section {
    width: 85%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

/* Başlık Alanı */
.ay-ser-header {
    margin-bottom: 40px;
}

.ay-ser-heading {
    font-family: 'Caecilia-Heavy',sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-align: center;
}

/* CSS Grid Yapısı (Kartları sütun içinde ortalamak için justify-items eklendi) */
.ay-ser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}

/* Repeater Elemanı */
.ay-ser-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Kart / Link Kutusu (Artık tüm sütunu kaplamayacak, max-width ile daha kibar duracak) */
.ay-ser-link {
    display: block;
    width: 100%;
    max-width: 350px; /* Kartın ve resmin genel boyutunu buradan küçültebilirsiniz (Örn: 250px veya 280px) */
    background-color: #ffffff;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Üzerine gelince hafif yukarı kalkma efekti */
    .ay-ser-link:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

/* Resim, küçültülen kartın içine tam oturur */
.ay-ser-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================
   Responsive (Ekran Küçüldükçe Sütun Değişimi)
   ================================---------- */

/* Tablet Ekranlar (992px altı): Her satırda 2 ürün */
@media (max-width: 992px) {
    .ay-ser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .ay-ser-section {
        width: 90%;
    }

    .ay-ser-header{
        margin-bottom:30px;
    }

    .ay-ser-heading{
        font-size:25px;
    }
}

/* Mobil Ekranlar (576px altı): Her satırda 1 ürün (Alt alta) */
@media (max-width: 576px) {
    .ay-ser-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .ay-ser-section {
        width: 95%;
    }

    .ay-ser-header {
        margin-bottom: 20px;
    }

    .ay-ser-heading {
        font-size: 22px;
    }

    .ay-ser-link {
        max-width: 320px; /* Mobilde biraz daha geniş durabilir */
    }
}
