/* Genel Stil */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
 
    background-color: #333; /* Arka planı koyu yap */
    color: #e0e0e0; /* Yazı rengini açık yap */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1e1e1e; /* Navbar arka planını koyu yap */
    border-bottom: 1px solid #f1efef; /* Çizgiyi koyulaştır */
    position: relative;
}

.navbar h1 {
    font-size: 19px;
    font-weight: bold;
    color: #ffffff; /* Başlık rengini beyaz yap */
    text-align: center;
    flex-grow: 1;
}

.icon, .menu-icon {
    width: 24px;
    height: 24px;
}

.menu-icon {
    font-size: 24px;
    color: #ffffff; /* Menü ikonu rengini beyaz yap */
    margin-right: 10px; /* Başlığa biraz boşluk bırak */
    cursor: pointer;
}

/* Navbar Menü */
.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-center {
    flex-grow: 1;
    text-align: center;
}

.navbar-right {
    display: flex;
    align-items: center;
}





/* Kategoriler Butonu */
.categories-btn {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.category-button {
    background-color: #333; /* Kategori butonu arka planını koyu yap */
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 16px;
    color: #e0e0e0; /* Yazı rengini açık yap */
    border-color: #f1efef; /* Çerçeve rengini koyu yap */
    border-radius: 30px;
    cursor: pointer;
    width: 90%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto;
}

.category-button:hover {
    background-color: #333; /* Hover arka plan rengini koyu gri yap */
    border-color: #444; /* Hover çerçeve rengini koyulaştır */
}

.menu-icon {
    font-size: 16px;
    color: #ffffff;
}

/* Açılır Menü */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e1e1e; /* Menü arka planını koyu yap */

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1;
    width: 280px;
}

.dropdown-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu ul li {
    padding: 12px 16px;
}

.dropdown-menu ul li a {
    text-decoration: none;
    font-size: 14px;
    color: #e0e0e0; /* Menü yazısını açık yap */
    display: block;
}

.dropdown-menu ul li a:hover {
    background-color: #333; /* Hover arka plan rengini koyu gri yap */
    color: #ffffff; /* Hover yazı rengini beyaz yap */
}

/* Ana Başlık */
.main-heading h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

/* Ürün Izgarası */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobilde iki sütun */
    gap: 15px;
    padding: 15px;
    justify-items: center;
}

/* Ürün Kartları - SABİT 197x262 Boyut */
.product-card {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 197px !important;
    height: auto !important;
}

.product-image-link {
    display: block;
    text-decoration: none;
    width: 197px !important;
    height: 262px !important;
    overflow: hidden;
}

.product-card img {
    width: 197px !important;
    height: 262px !important;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.product-card:hover img {
    transform: scale(1.02);
}

.card-info {
    padding: 10px 12px 12px 12px;
    background-color: #ffffff;
    width: calc(197px - 24px);
    box-sizing: border-box;
}

.product-card .price {
    margin-bottom: 4px;
    text-align: left;
}

.product-card .price .discounted-price {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 700;
}

.product-card .product-code {
    font-size: 11px;
    color: #2c3e50;
    margin-bottom: 2px;
    font-weight: 500;
}

.product-card .category-label {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 400;
}

/* Hover efekti */
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Yeni sezon badge'i */
.new-season {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 4px 8px;
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .favorite-icon {
    width: 12px;
    height: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.new-season {
    background-color: #189716;
    color: white;
    padding: 3px 5px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    border-radius: 3px;
}

/* Footer */
footer {
    background-color: #1e1e1e; /* Footer arka planını koyu yap */
    color: #e0e0e0; /* Yazı rengini açık yap */
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 10px 20px;
}

.footer-section h3 {
    color: #ffffff; /* Footer başlıklarını beyaz yap */
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p, .footer-section a {
    color: #b0b0b0; /* Yazı rengini daha açık gri yap */
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin: 5px 0;
}

.footer-section a:hover {
    color: #ffffff; /* Hover rengini beyaz yap */
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    margin: 0 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

/* Alt Bilgi */
.footer-bottom {
    background-color: #121212; /* Daha koyu footer alt bölümü */
    color: #b0b0b0; /* Yazı rengini gri yap */
    padding: 10px 0;
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-right .menu-icon {
        display: none;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        background-color: white;
        width: 200px;
        height: 100vh;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    .navbar-menu a {
        padding: 20px;
    }

    .navbar-menu.active {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}





/* Navbar düzeni */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Daha kompakt hale getirmek için padding'i daralttık */
    background-color: #333;
    border-bottom: 1px solid #ddd;
    height: 60px; /* Yüksekliği daha dar yaptık */
}

.navbar-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.navbar-center {
    flex: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-right {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}



.icon {
    width: 24px; /* Sepet ikonunun boyutunu düzenledik */
    height: 24px;
    cursor: pointer;
    margin-left: 10px; /* İkonu sağ tarafa yapıştırmamak için sol boşluk ekledik */
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px; /* Menü butonu ile sol kenar arasında boşluk bıraktık */
}


/* Yan Menü */
.side-menu {
    height: 100%; /* Tam ekran */
    width: 0; /* Başlangıçta görünmez */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #1e1e1e; /* Yan menü arka planını koyu yap */
    z-index: 999; /* Üstte görünmesi için */
    overflow-x: hidden;
    transition: 0.5s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

/* Menü açıldığında genişlik */
.side-menu.open {
    width: 300px;
}

/* Arka planı karartma */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Yarı saydam siyah */
    z-index: 998; /* Menünün altında olacak */
    display: none; /* Başlangıçta gizli */
}

/* Arka plan karardığında göster */
.overlay.active {
    display: block;
}

/* Menü kapatma butonu */
.side-menu .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    cursor: pointer;
    color: #ffffff; /* Kapatma butonu rengini beyaz yap */

}

.menu-list {
    list-style: none;
    padding-left: 20px;
}

.menu-list li {
    padding: 10px 0;
}

.menu-list a {
    text-decoration: none;
    color: #e0e0e0; /* Menü link rengini açık yap */
    font-size: 18px;
}
.menu-list a:hover {
    color: #ffffff; /* Hover rengini beyaz yap */
}

.menu-list a.sale {
    color: red;
    font-weight: bold;
}









#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333; /* Arka plan rengini koyu gri yap */
    color: #e0e0e0; /* Yazı rengini açık yap */
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 9999;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    background-color: #555; /* Hover efektiyle daha açık gri yap */
}






/* Masaüstü için Açılır Menü */
@media (min-width: 769px) {
    .navbar-menu {
        display: flex;
        position: static;
        background-color: transparent;
        box-shadow: none;
        flex-direction: row;
    }

    .navbar-menu a {
        color: #333;
        padding: 0 15px;
    }

    .navbar-right .hamburger {
        display: none;
    }

    .navbar-right .menu-icon {
        display: none;
    }
}

/* Masaüstü için grid sütun sayısı */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 30px;
    }
}

/* Tablet için grid sütun sayısı */
@media (min-width: 480px) and (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Mobil için grid ayarı */
@media (max-width: 479px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
}
