* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #333;;
}


.header {
    background: linear-gradient(to right, orange, black);
    color: #ffffff;
    padding: 20px;
}

.header-title {
    margin: 0;
    font-size: 2rem;
}

.admin-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff4d4d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.admin-link a:hover {
    background-color: #ff1a1a;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }

    .admin-link a {
        padding: 8px 16px;
        font-size: 0.9rem;
        left: 0px;
    }
}


/* Menü Navigasyonu */
.navbar {
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    background-color: linear-gradient(to right, orange , black);
    padding: 20px 0;
    overflow-x: auto; /* Yatay kaydırma */
    white-space: nowrap; /* Satır içi öğeleri aynı satırda tutar */
}

.navbar li {
    display: inline-block;
    margin: 0 15px; /* Kategoriler arasındaki mesafeyi ayarlıyoruz */
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
}

.navbar a:hover {
    background-color: orange;
    border-radius: 4px;
}

/* Alt Kategoriler */
.subcategories ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    padding: 10px;
    margin-top: 20px;
    overflow-x: auto; /* Yatay kaydırma */
    white-space: nowrap; /* Alt kategoriler de aynı satırda */
}

.subcategories li {
    margin: 0 10px; /* Alt kategoriler arasındaki mesafe */
}

.subcategories a {
    color: whitesmoke;
    text-decoration: none;
    font-size: 16px;
}

.subcategories a:hover {
    text-decoration: none;
    background-color: orange;
}

/* Ürün Kartları */
.product-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.product-card {
    background-color: linear-gradient(to right, orange, black);
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.05); /* Hover efekti ekleyerek interaktif hale getirelim */
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-card h3 {
    color: whitesmoke;
    font-size: 20px;
    margin: 10px 0;
}

.product-card p {
    color: whitesmoke;
    font-size: 14px;
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
    color: whitesmoke;
    font-weight: bold;
}

/* Mobil uyumlu tasarım */
@media (max-width: 768px) {
    /* Menüdeki öğeler alt alta sıralanacak */
    .navbar {
        flex-direction: row;
        justify-content: flex-start; /* Sola hizalı olacak */
    }

    .navbar li {
        margin: 0 10px;
    }

    /* Alt kategoriler de yatay kaydırılabilir olacak */
    .subcategories ul {
        flex-direction: row;
        justify-content: flex-start; /* Yine sola hizalı */
    }

    .subcategories li {
        margin: 0 8px;
    }

    /* Ürün kartları daha geniş olacak ve tek sütun halinde sıralanacak */
    .product-cards {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 90%; /* Genişliği %90 yaparak daha büyük görünmesini sağlarız */
        margin: 10px 0;
    }

    /* Mobil ekranlarda yazı boyutunu küçültüyoruz */
    .navbar a {
        font-size: 16px;
        padding: 8px 15px;
    }

    .subcategories a {
        font-size: 14px;
    }

    .product-card h3 {
        font-size: 18px;
    }

    .product-card p {
        font-size: 12px;
    }

    .price {
        font-size: 16px;
    }
}

/* Daha küçük mobil cihazlar için ek düzenlemeler */
@media (max-width: 480px) {
    .navbar a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .product-card {
        width: 100%; /* En geniş halini alsın */
    }

    .product-card h3 {
        font-size: 16px;
    }

    .product-card p {
        font-size: 12px;
    }

    .price {
        font-size: 14px;
    }
}

.footer {
    background-color: #555;
    color: #ffffff;
    text-align: center;
    a{
        text-decoration-line: none;
        color: antiquewhite;
    }
}
