/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #111;
    padding: 1rem 2%;
    position: sticky;
    top: 0;
    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links li a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #f9c846;
}

.lang-toggle button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #f9c846;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lang-toggle button:hover {
    background-color: #e0ae20;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 30px;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main içerik - flex-grow ile alanı kapla */
main {
    flex-grow: 1;
    padding: 60px 20px 20px;
    /* üstte header yüksekliği kadar boşluk */
    max-width: 1200px;
    margin: 0 auto;
}

.products-page h2 {
    margin-bottom: 30px;
    /* İstersen 20-40 arası ayarla */
}

/* Ürün kutuları grid */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-box {
    min-height: 200px;
    /* varsayılan 220px yerine biraz daha uzun */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgb(0 0 0 / 0.15);
}

.product-box img {
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    /* footer hep en altta kalacak */
}

.footer-content {
    max-width: 1200px;
    margin: auto;
}


/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    z-index: 9999;
    background-color: #f9c846;
    color: #111;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#back-to-top:hover {
    background-color: #e0ae20;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background-color: #111;
        flex-direction: column;
        padding-top: 60px;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 12px 20px;
        color: #f9c846;
        font-weight: bold;
        text-decoration: none;
        transition: background-color 0.3s;
    }

    .nav-links li a:hover {
        background-color: #f9c846;
        color: #111;
    }

    .burger {
        display: flex;
    }
}