body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f8f9fa;
    color: #333;
}

/* HEADER AYARLAMALARI */
header {
    background: #343a40;
    color: white;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInDown 1s ease-in-out;
    z-index: 1000; /* Menü çubuğu her zaman üstte olsun */
    position: relative;
}

/* LOGO */
header img {
    height: 60px;
    margin-bottom: 10px;
}

/* MOBİL MENÜ BUTONU */
@media (max-width: 768px) {
    .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: transform 0.3s ease;
    z-index: 1100; /* Butonu her zaman üstte tut */
}
}
.menu-toggle {
    display: none; /* Masaüstünde görünmeyecek */
}
.menu-toggle:active {
    transform: scale(1.2);
}

/* NAVBAR */
nav {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1000; /* Menü kaybolmasını engelle */
}

/* Masaüstü Menü */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
    padding: 10px;
}

nav ul li a:hover {
    color: #17a2b8;
    transform: scale(1.1);
}

/* MOBİL MENÜ */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Menü butonunu mobilde göster */
    }

    nav ul {
        display: none; /* Menü başlangıçta gizli */
        flex-direction: column;
        align-items: center;
        background: rgba(52, 58, 64, 0.98);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;
        list-style: none;

        /* Menü açılma animasyonu */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
        opacity: 0;
    }

    nav ul.show {
        display: flex;
        max-height: 600px; /* Menü içeriğine göre açılacak */
        opacity: 1;
        padding: 10px 0;
    }

    nav ul li {
        width: 100%;
        padding: 12px 0;
        display: block;
    }

    nav ul li a {
        display: block;
        width: 100%;
        color: white;
        font-size: 18px;
        text-decoration: none;
        padding: 15px 0;
        transition: background 0.3s ease;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* HERO BÖLÜMÜ */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #17a2b8, #005f73);
    color: white;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ÖNE ÇIKAN ÜRÜNLER */
.featured-products {
    text-align: center;
    padding: 50px 20px;
}

/* KATEGORİ KARTLARI */
.categories {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.category-card {
    border: none;
    padding: 20px;
    width: 260px;
    text-align: center;
    background: white;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.15);
    border-radius: 12px;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: slideUp 1s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card:hover {
    transform: scale(1.08);
    box-shadow: 0px 8px 15px rgba(0,0,0,0.2);
}

.category-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #343a40;
    color: white;
    margin-top: 30px;
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
