@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Ürün Konteyneri */
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Kartlar arasındaki mesafe */
    padding: 100px 30px 40px; /* Üstte navbar için boşluk, kenardan 30px, alttan 40px */
    max-width: 1400px; /* Maksimum genişlik */
    margin: 0 auto; /* Ortaya hizalama */
    box-sizing: border-box;
}

/* Ürün Kartları */
.product-card {
    position: relative;
    width: 300px; /* Varsayılan genişlik */
    height: 300px; /* Varsayılan yükseklik */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex: 0 1 auto; /* Flex ile esneklik */
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    transition: bottom 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.product-card:hover .product-info {
    bottom: 0;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.product-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .product-card {
        width: 250px; /* Tablet boyutlarında küçültme */
        height: 250px;
    }

    .product-info h3 {
        font-size: 20px; /* Başlık küçültme */
    }

    .product-info p {
        font-size: 14px; /* Açıklama küçültme */
    }

    .product-container {
        gap: 30px; /* Boşlukları biraz azalt */
        padding: 80px 20px 30px; /* Kenar boşluklarını küçült */
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 200px; /* Küçük tablet/telefonlarda daha fazla küçültme */
        height: 200px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    .product-info p {
        font-size: 12px;
    }

    .product-container {
        gap: 20px; /* Boşlukları daha da azalt */
        padding: 70px 15px 20px; /* Daha az kenar boşluğu */
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%; /* Mobil cihazlarda tam genişlik */
        max-width: 300px; /* Maksimum 300px’e kadar */
        height: 250px; /* Yükseklik biraz korunur */
    }

    .product-info h3 {
        font-size: 16px;
    }

    .product-info p {
        font-size: 12px;
    }

    .product-container {
        gap: 15px; /* Minimum boşluk */
        padding: 60px 10px 20px; /* En küçük kenar boşlukları */
    }
}