
/* Genel Ayarlar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333; /* Varsayılan metin rengi */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
#header {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative; /* Auth butonları için */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Auth Butonları (Header içinde) */
.auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff;
}

.login-btn {
    background-color: transparent;
    border: 1px solid #fff;
}

.login-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.signup-btn {
    background-color: #f60;
    border: 1px solid #f60;
}

.signup-btn:hover {
    background-color: #ff8533;
}

/* Navigation Menu */
nav {
    background-color: #444;
    padding: 10px 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex; /* Mobil için de temel flex yapısı */
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    display: inline; /* Flex item olduğunda display:inline göz ardı edilir ama fallback olarak kalabilir */
    margin: 0 15px; /* Yatay boşluk biraz azaltıldı */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 8px 10px; /* Tutarlı padding */
}

nav ul li a:hover {
    color: #f60;
}

/* Tema Değiştirme Düğmesi */
.theme-switch-wrapper {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px; /* Diğer nav item'larından ayırmak için */
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
    overflow: hidden;
}

.slider-circle {
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-slider-icon {
    font-size: 16px;
    transition: opacity 0.3s;
}

.theme-slider-icon.sun {
    opacity: 1;
}

.theme-slider-icon.moon {
    opacity: 0;
    position: absolute;
}

input:checked + .theme-slider {
    background-color: #2196F3;
}

input:checked + .theme-slider .slider-circle {
    transform: translateX(26px);
}

input:checked + .theme-slider .sun {
    opacity: 0;
}

input:checked + .theme-slider .moon {
    opacity: 1;
}

/* Genel Buton Stilleri */
.btn, .submit-btn, .add-to-cart-btn, .checkout-btn, .category-btn, .filter-btn, .quick-view {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f60;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-weight: 500; /* filter-btn'den alındı */
}

.btn:hover, .submit-btn:hover, .add-to-cart-btn:hover, .checkout-btn:hover, .category-btn:hover, .filter-btn:hover, .quick-view:hover {
    background-color: #ff8533;
}
.btn:active, .submit-btn:active, .add-to-cart-btn:active, .checkout-btn:active, .category-btn:active, .filter-btn:active, .quick-view:active {
    transform: translateY(1px);
}

/* Özel Buton Ayarlamaları */
.banner .btn { /* Banner içindeki buton padding'i farklıydı */
    padding: 12px 30px;
}
.submit-btn { /* Form submit butonu için özel padding */
    padding: 12px 30px;
}

.add-to-cart-btn { /* Sepete ekle butonu için */
    width: 100%; /* Genellikle tam genişlik alır */
    
}
.checkout-btn { /* Ödeme butonu */
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}
.filter-btn { /* Filtreleme butonu */
    padding: 8px 15px; /* Özel padding */
    white-space: nowrap;
    z-index: 10;
    position: relative;
}
.filter-btn {
        max-width: 100%;
    }
.quick-view { /* Hızlı bakış butonu */
    background: white;
    color: #333;
}
.quick-view:hover {
    background: #eee;
    color: #000;
}


/* Banner */
.banner {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 50px 0;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Hero Slider - düzeltilmiş versiyon */
.hero-slider {
    position: relative;
    width: 100%;
    max-height: 560px; /* Yükseklik sınırlandırması */
    margin-bottom: 40px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%; /* Container'ın tam yükseklikte olduğundan emin olun */
}

.slides {
    width: 100%;
    height: 560px;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    display: flex; /* Görüntüyü merkezlemek için */
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1; /* Aktif slaytın diğerlerinin üzerinde olduğundan emin olun */
}

.slide img {
    width: 150%;
    height: 100%;
    object-fit: cover; /* Görüntünün oranını koruyarak kapsaması */
    display: block; /* Görüntü altındaki boşluğu kaldır */
    min-height: 100%; /* Minimum yükseklik garantisi */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    max-width: 600px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

.slide-content .btn {
    background-color: #f60;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.slide-content .btn:hover {
    background-color: #ff8533;
}

.slide::after { /* Slider overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.prev-slide, .next-slide {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s;
    z-index: 4;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Mobil cihazlar için responsive düzenlemeler */
@media (max-width: 768px) {
    .hero-slider {
        max-height: 400px;
    }
    
    .slides {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 1.8em;
    }
    
    .slide-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {

    .hero-slider {
        max-height: 300px;
    }
    
    .slides {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.5em;
    }
}

/* Featured Products Section */
.featured-products {
    padding: 40px 20px;
    background-color: #fff;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 30px;
}
/* Yan yana buton düzeni - düzeltilmiş hizalama */
.product-card .product-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 15px;
}

/* Her iki buton için kesin stil ve boyut tanımları */
.product-card .product-actions .btn {
    flex: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    padding: 0 10px;
    overflow: hidden;
}
/* İncele butonu stili */
.product-card .product-actions .details-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 7px solid #f8f9fa;
    font-weight: 500;
    box-sizing: border-box;  /* Önemli: border ve padding'in genişliğe dahil olması için */
    min-width: 0;  /* Taşmayı önler */
}


.product-card .product-actions .details-btn:hover {
    background-color: #ffffffa3;
}

/* Sepete ekle butonu stili */
.product-card .product-actions .add-to-cart-btn {
    background-color: #f60;
    color: white;
    border: 7px solid #f60;
    font-weight: 500;
    box-sizing: border-box;  /* Önemli: border ve padding'in genişliğe dahil olması için */
    min-width: 0;  /* Taşmayı önler */
}

/* Basit Ürün Kartı (Öne Çıkan Ürünler için) */
.product {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.product p { /* Açıklama */
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* İçeriği ittirir */
}

.product-footer { /* Fiyat ve buton için */
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.price-container { /* Eski yapıdan, gerekiyorsa kullanılabilir */
    margin-bottom: 10px;
}

.price { /* Genel fiyat stili */
    font-size: 1.4em;
    color: #f60;
    font-weight: bold;
}

/* Categories Section (Anasayfa) */
.categories {
    padding: 40px 20px;
    background-color: #eee;
}

.categories h2 {
    text-align: center;
    margin-bottom: 30px;
}

.category-grid { /* Anasayfa kategori gridi */
    display: flex;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Mobil için */
}

.category { /* Anasayfa kategori kartı */
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category h3 {
    padding: 15px;
    margin: 0;
    text-align: center;
}

.category .btn { /* Kategori içindeki buton */
    display: block; /* Tam genişlik kaplar */
    text-align: center;
    border-radius: 0 0 5px 5px; /* Alt kenarlara radius */
}

/* Filtre alanı düzenlemeleri */
.products-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.filters {
    width: 100%;
    max-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

/* Filtre buton düzenlemesi */
.filter-btn {
    width: 100%;
    max-width: 100px;
    text-align: center;
}

.checkbox-container { /* TODO: Checkbox stilleri eksik, gerekirse eklenebilir */
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.price-filter {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    align-items: center;
}

.price-filter .min-container {
    flex: 1;
}

.price-filter .max-btn-container {
    display: flex;
    gap: 10px;
    flex: 2;
    align-items: center;
}

.price-input { /* Genel fiyat input stili */
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.max-btn-container .price-input {
    flex: 1;
}

.sort-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}



/* Detaylı Ürün Kartı (Ürünler Sayfası için) */
.product-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #fff;
    height: 100%; /* Flex item'ın ebeveyn yüksekliğine uyum sağlaması için */
    min-height: 450px;
}
/* Ürün Detay Sayfası buton düzenlemeleri */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* Sepete Ekle Butonunu Küçültme */
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* Merkeze hizala */
}

.detail-actions .add-to-cart-btn {
    background-color: #f60;
    color: white;
    border: 1px solid #f60;
    font-weight: 500;
    box-sizing: border-box;
    height: 36px; /* 42px'den 36px'e düşürüldü */
    padding: 0 15px; /* 20px'den 15px'e düşürüldü */
    font-size: 14px; /* 16px'den 14px'e düşürüldü */
    max-width: 180px; /* Maksimum genişlik sınırı */
}

.detail-actions .quantity {
    margin-bottom: 0;
}
/* Miktar seçiciyi de ortala */
.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center; /* Miktar seçiciyi ortala */
}

.detail-actions .add-to-cart-btn:hover {
    background-color: #ff8533;
}
@media (max-width: 576px) {
    .detail-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-actions .add-to-cart-btn {
        width: 100%;
    }
}

.details-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.details-btn:hover {
    background-color: #e9ecef;
}
/* Ürün kartı butonlarını alt alta düzenleme */
.product-card .product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* İncele butonunu yukarıda, Sepete Ekle butonunu altta göster */
.product-card .product-actions .btn {
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.product-image { /* Ürün kartı görsel konteyneri */
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay { /* Ürün kartı hover overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px 8px 0 0; /* Görselin radius'u ile eşleşmeli */
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info { /* Ürün kartı bilgi bölümü */
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 16px; /* 1.2em (product h3) vs 16px */
    margin-top: 0;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    color: #333; /* Varsayılan metin rengi */
}

.product-description { /* Ürün kartı açıklaması */
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    height: 40px;
    overflow: hidden;
    flex-grow: 1;
}

.product-price { /* Ürün kartı fiyatı (genel .price ile aynı) */
    font-size: 1.2em; /* .price 1.4em idi, hangisi doğru? Tutarlılık için 1.4em yapılabilir. */
    font-weight: bold;
    color: #f60;
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
}

.pagination-btn.active {
    background: #f60;
    color: white;
    border-color: #f60;
}

/* Categories Page (Ayrı Kategori Listeleme Sayfası) */
.categories-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333; /* var(--text-color) yerine */
}

.page-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666; /* var(--secondary-text-color) yerine */
    margin-bottom: 40px;
}

.categories-container { /* Kategori sayfası gridi */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.category-card { /* Kategori sayfası kartı */
    background-color: #fff; /* var(--card-bg) yerine */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
}

.category-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333; /* var(--text-color) yerine */
}

.category-content p {
    color: #666; /* var(--secondary-text-color) yerine */
    margin-bottom: 20px;
    line-height: 1.5;
}

.category-content .category-btn { /* Kategori kartı içindeki buton */
    background-color: #f60; /* var(--primary-color) yerine */
}
.category-content .category-btn:hover {
    background-color: #ff8533; /* var(--secondary-color) yerine */
}


/* Contact Page */
.contact-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    padding: 20px;
    background-color: #f5f5f5; /* body bg ile aynı */
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #f60;
}

.contact-form {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group { /* Genel form grup stili */
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea { /* Genel input/textarea stili */
    width: 100%;
    padding: 10px; /* 8px'den 10px'e artırıldı auth inputları ile tutarlılık için */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Önemli */
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f60;
}


/* Map */
#map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 30px 0;
    border-radius: 8px;
    overflow: visible;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.directions-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #f60; /* var(--primary-color, #4CAF50) yerine #f60 */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.1s;
}
.directions-btn:hover {
    background-color: #ff8533; /* var(--secondary-color, #388E3C) yerine #ff8533 */
    transform: translateY(-2px);
}
.directions-btn:active {
    transform: translateY(0);
}
/* Ürün Detay Sayfası Stilleri */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px 0;
}

.breadcrumbs a {
    color: #f60;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumbs span {
    color: #666;
}

.product-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Ürün Detay Sayfasındaki Görselleri Ortalama */
.product-details-image {
    display: flex;
    justify-content: center; /* Görseli yatay ortalar */
    align-items: center; /* Dikey ortalar */
    padding-right: 0; /* Sağdan boşluk kaldırıldı */
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
}

.product-details-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    object-fit: contain;
    margin: 0 auto; /* Görüntüyü ortalar */
}


/* İlgili ürünler bölümünde de benzer düzeltme */
.related-products .product-card .product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 0; /* Sağdan boşluk kaldırıldı */
}
/* Breadcrumbs navigasyonunu ortala */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    padding: 10px 0;
    text-align: center; /* Navigasyon menüsünü ortala */
}
/* Tüm kategori etiketlerini ortalamak için kesin çözüm */
.product-details-info .category-info,
.product-details-info span[class*="category"],
.product-details-info div[class*="category"],
.product-details-info p[class*="category"],
.product-details-container .category-label,
.product-details-container .product-category,
.product-details-container span[class*="category"],
#product-details .category-label,
.product-details-page .category-label,
.product-info .category-tag,
.product-meta .category,
.product-category-container,
div[id*="category"][class*="label"],
span[id*="category"][class*="label"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* HTML yapısını değiştirmeden içeriği ortalayan güçlü bir kural */
body .product-details-info * {
    text-align: center;
}
/* Ürün kategorisi etiketinin ortalanması */
.product-details-info .product-category {
    text-align: center;
    display: block;
    margin: 5px auto 15px;
    color: #666;
    font-size: 14px;
}

/* Ürün sayfasındaki tüm kategori etiketlerini ortala */
.category-label, .product-category {
    text-align: center;
    display: block;
    margin: 0 auto;
}
/* Ürün Detay Sayfasında Metinleri Ortalama */
.product-details-info {
    flex: 1;
    min-width: 300px;
    text-align: center; /* Tüm metinleri ortalar */
}

.product-details-info h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.product-details-info p {
    text-align: center;
}

/* Ürün Fiyatını Ortala */
.product-details-info .product-price {
    text-align: center;
    margin: 15px auto;
}

.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 16px;
    cursor: pointer;
}

.qty-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

.related-products h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Auth Pages (Login/Signup) */
.auth-page {
    min-height: calc(100vh - 200px); /* Footer ve header yüksekliğine göre ayarlanabilir */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f5f5f5; /* body bg ile aynı */
}

.auth-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-container .form-group label { /* Auth form label'ları biraz farklı */
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.auth-container input { /* Auth input padding'i contact form inputlarından farklı */
    padding: 12px; /* Genel .form-group input 10px */
    font-size: 16px; /* Genel .form-group input font-size'ı belirtilmemiş */
}

.auth-submit { /* Auth submit butonu */
    width: 100%;
    padding: 12px;
    background-color: #f60;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-submit:hover {
    background-color: #ff8533;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #f60;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Cart Page */
.cart-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-container h1 {
    margin-bottom: 30px;
    color: #333;
}
#cart-items, .cart-container, .cart-item, .quantity-btn, .remove-item {
    position: relative; /* Potansiyel z-index sorunları için */
    z-index: auto;
    pointer-events: auto; /* Tıklama sorunları için */
    transform: none !important; /* Üstten gelen transformları iptal etmek için */
}


.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-title {
    margin-bottom: 10px;
    color: #333;
}

.item-price { /* Genel .price ile tutarlı */
    color: #f60;
    font-weight: bold;
    margin-bottom: 10px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* .quantity-btn stilleri .btn'den gelebilir, özelleştirme gerekirse buraya */

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

/* .remove-item butonu için özel stil gerekirse (örn: renk) */
.remove-item {
    background-color: #f44336; /* Kırmızı renk */
    padding: 8px 12px; /* Daha küçük padding */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.remove-item:hover {
    background-color: #d32f2f;
}


.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-item.total {
    font-size: 1.2em;
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px; /* 60px idi, 40px yapıldı */
}

.empty-cart-message i {
    font-size: 4rem; /* 4em vs 4rem */
    color: #ddd;
    margin-bottom: 20px;
}
.empty-cart-message h2 {
    margin-bottom: 15px;
    color: #333;
}
.empty-cart-message p {
    color: #666;
    max-width: 500px;
    margin: 0 auto 25px;
}

.continue-shopping { /* .btn stili ile benzer */
    display: inline-block;
    padding: 10px 20px;
    background: #f60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
}
.continue-shopping:hover {
    background-color: #ff8533;
}



/* Favorites Page */
.favorites-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.favorites-container h1 {
    margin-bottom: 30px;
    color: #333;
}

.favorite-item { /* .cart-item ile benzer yapı */
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    gap: 20px;
}
/* .favorite-item içindeki .item-image, .item-details, .item-title, .item-price stilleri .cart-item'dan miras alabilir veya kopyalanabilir */

.item-actions { /* Favori ve sepete ekle butonları için */
    display: flex;
    flex-direction: column; /* Alt alta */
    gap: 10px;
    margin-left: auto; /* Sağa yaslamak için */
}

.remove-favorite { /* .remove-item ile aynı stil */
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.remove-favorite:hover {
    background-color: #d32f2f;
}
/* .empty-message stilleri .empty-cart-message ile aynı */


/* Notification Pop-up */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success { background-color: #4CAF50; }
.notification.error { background-color: #f44336; }
.notification.info { background-color: #2196F3; }


/* Modal (Lightbox for Images) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000; /* Notification'dan daha yüksek olabilir veya eşit */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px; /* 150px çok fazlaydı */
    animation-name: zoom;
    animation-duration: 0.6s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Özel 3'lü ürün grid yapısı */
.grid-container-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Tablet için */
@media (max-width: 992px) {
    .grid-container-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobil için */
@media (max-width: 576px) {
    .grid-container-3 {
        grid-template-columns: 1fr !important;
    }
}
/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f60;
}

.social-links {
    display: flex;
    /* justify-content: center; .footer-section içinde olduğu için sola yaslı olabilir */
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-links a:hover {
    background-color: #f60;
    transform: translateY(-3px);
}

.social-links a[title="Facebook"]:hover { background-color: #4267B2; }
.social-links a[title="Twitter"]:hover { background-color: #1DA1F2; }
.social-links a[title="Instagram"]:hover { background-color: #E1306C; }

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}


/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode #header {
    /* background-color: #1f1f1f; header zaten #333, çok koyu */
}

body.dark-mode nav {
    background-color: #1f1f1f;
}

body.dark-mode .banner {
    background-color: #1f1f1f; /* header bg ile aynı olabilir */
}
body.dark-mode .hero-slider .prev-slide,
body.dark-mode .hero-slider .next-slide {
    background-color: rgba(50, 50, 50, 0.5);
    color: #fff;
}
body.dark-mode .hero-slider .prev-slide:hover,
body.dark-mode .hero-slider .next-slide:hover {
    background-color: rgba(70, 70, 70, 0.8);
}


body.dark-mode .featured-products {
    background-color: #1a1a1a;
}
body.dark-mode .product { /* Basit ürün kartı */
    background-color: #2d2d2d;
    border-color: #404040;
}
body.dark-mode .product p,
body.dark-mode .product-description { /* Açıklama metinleri */
    color: #b0b0b0;
}
body.dark-mode .product h3,
body.dark-mode .product-info h3 {
    color: #e0e0e0;
}


body.dark-mode .categories { /* Anasayfa kategori bölümü */
    background-color: #1a1a1a;
}
body.dark-mode .category { /* Anasayfa kategori kartı */
    background-color: #2d2d2d;
}


body.dark-mode .filters {
    background: #1f1f1f;
}
body.dark-mode .filter-group h3 {
    color: #e0e0e0;
}
body.dark-mode .product-card { /* Detaylı ürün kartı */
    background: #1f1f1f; /* .filters bg ile aynı */
    border-color: #404040; /* .product border ile aynı */
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.05);
}
body.dark-mode .product-image {
    background-color: #2a2a2a; /* Görsel arkaplanı */
}

body.dark-mode .categories-page { /* Kategori listeleme sayfası */
    /* Arkaplanı zaten body.dark-mode'dan alır */
}
body.dark-mode .page-title {
    color: #e0e0e0;
}
body.dark-mode .page-description {
    color: #b0b0b0;
}
body.dark-mode .category-card { /* Kategori sayfası kartı */
    background-color: #2d2d2d; /* .product, .category ile aynı */
    box-shadow: 0 2px 10px rgba(255,255,255,0.08);
}
body.dark-mode .category-content h2 {
    color: #e0e0e0;
}
body.dark-mode .category-content p {
    color: #b0b0b0;
}


body.dark-mode .contact-info,
body.dark-mode .contact-form {
    background-color: #2d2d2d;
}
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #1a1a1a;
    border-color: #404040;
    color: #e0e0e0;
}
body.dark-mode .directions-btn {
    background-color: #66BB6A; /* Farklı bir renk, #f60'ın koyu mod alternatifi olabilir */
    color: #222;
}


body.dark-mode .auth-page {
    background-color: #121212; /* body bg */
}
body.dark-mode .auth-container {
    background-color: #1f1f1f;
}
body.dark-mode .auth-container h2 {
    color: #e0e0e0;
}
body.dark-mode .auth-container label {
    color: #ccc;
}
body.dark-mode .auth-container input { /* auth inputları form-group inputlarından miras alır */
    /* Gerekirse özel stil */
}
body.dark-mode .auth-link {
    color: #ccc;
}


body.dark-mode .cart-container h1, body.dark-mode .item-title {
    color: #e0e0e0;
}
body.dark-mode .cart-item {
    border-bottom-color: #333;
}
body.dark-mode .cart-summary {
    background: #2d2d2d;
}
body.dark-mode .empty-cart-message h2, body.dark-mode .empty-message h2 {
     color: #e0e0e0;
}
body.dark-mode .empty-cart-message p, body.dark-mode .empty-message p {
    color: #b0b0b0;
}


body.dark-mode .favorites-container h1 {
    color: #e0e0e0;
}
body.dark-mode .favorite-item {
    border-bottom-color: #333;
}


body.dark-mode .notification {
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}
/* Dark mode notification renkleri aynı kalabilir veya ayarlanabilir */


body.dark-mode footer {
    background-color: #1f1f1f; /* nav bg ile aynı */
    border-top: 1px solid #333; /* footer-bottom border ile aynı */
}
body.dark-mode .footer-bottom {
    border-top-color: #333;
}


/* Responsive düzen için - bu kısımları koruyalım */
@media (max-width: 992px) {
    .products-grid, .product-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Tablet için 2 sütun */
    }
}

@media (max-width: 576px) {
    .products-grid, .product-grid {
        grid-template-columns: 1fr !important; /* Mobil için tek sütun */
    }
}
/* Mobil ürün görünümü düzeltmeleri */
@media (max-width: 768px) {
    .products-grid {
        display: block !important;
        width: 100% !important;
        padding: 10px !important;
    }
    
    /* Ürün kartları için mobil düzenlemeler */
    .product-card {
        width: 100% !important;
        margin: 15px 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 15px !important;
        background: var(--card-background) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        min-height: 140px !important;
    }
    
    
    /* Ürün fotoğrafını büyüt */
    .product-card .product-image {
        width: 130px !important;
        height: 130px !important;
        min-width: 130px !important;
        margin-right: 15px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }
    
    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        transition: transform 0.3s ease !important;
    }
    
    /* Hover efekti */
    .product-card .product-image img:hover {
        transform: scale(1.05) !important;
    }
    
    /* Ürün bilgileri */
    .product-card .product-info {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        height: 130px !important;
        padding: 0 !important;
    }
    
    /* Ürün başlığı */
    .product-card .product-info h3 {
        font-size: 16px !important;
        font-weight: bold !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.3 !important;
        color: var(--text-color) !important;
    }
    
    /* Ürün açıklaması (varsa) */
    .product-card .product-description {
        font-size: 14px !important;
        color: #666 !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    
    /* Ürün fiyatı */
    .product-card .product-price {
        font-size: 18px !important;
        font-weight: bold !important;
        color: var(--primary-color) !important;
        margin: 8px 0 !important;
    }
    
    /* Butonlar */
    .product-card .product-actions {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        margin-top: 10px !important;
    }
    
    .product-card .add-to-cart-btn,
    .product-card .add-to-favorites,
    .product-card .view-details {
        padding: 10px 15px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        border: none !important;
        cursor: pointer !important;
        flex: 1 !important;
        min-width: 80px !important;
        transition: all 0.3s ease !important;
    }
    
    .product-card .add-to-cart-btn {
        background-color: var(--primary-color) !important;
        color: white !important;
    }
    
    .product-card .add-to-cart-btn:hover {
        background-color: var(--primary-color-dark) !important;
        transform: translateY(-2px) !important;
    }
    
    .product-card .add-to-favorites {
        background-color: #e74c3c !important;
        color: white !important;
    }
    
    .product-card .view-details {
        background-color: #6c757d !important;
        color: white !important;
    }
}

/* --- MEDIA QUERIES --- */
/* Tema değiştirici boyutunu küçült */
@media (max-width: 400px) {
    .theme-switch {
        transform: scale(0.8);
    }
}
/* Genel Tablet ve Altı (<= 768px) */
@media (max-width: 768px) {
    .site-logo {
        max-height: 40px; /* Mobil için daha küçük logo */
    }
    .logo {
        justify-content: flex-start;
        padding-left: 15px; /* Header padding'i ile dengelemek için */
    }
    #header { /* Header içeriğini soldan başlatır */
        text-align: left;
    }
    .auth-buttons {
        top: 15px;
        right: 15px;
    }
    .auth-btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    /* Navigasyon container'ı */
    nav {
        position: relative;
    }
    
    /* Ana navigasyon listesi */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 0;
    }
    
    /* Mobilde görünecek elementler */
    nav li {
        display: none; /* Varsayılan olarak tüm öğeleri gizle */
    }
    
    /* Sadece seçilen öğeleri göster */
    nav li.mobile-visible {
        display: block;
        margin: 0 5px;
    }
    
    /* Link stilini küçült */
    nav li a {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    /* Tema değiştirici için özel düzenleme */
    nav li.theme-switch-wrapper {
        display: flex !important;
        align-items: center;
        margin-left: 5px;
    }
    /* Açık menü için overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.8);
        z-index: 200;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-overlay.active {
        display: flex;
    }
    
    /* Overlay menüdeki linkler */
    .mobile-menu-overlay a {
        color: white;
        padding: 15px 30px;
        font-size: 18px;
        text-align: center;
        width: 80%;
        margin: 5px 0;
    }
    
    /* Overlay kapatma butonu */
    .close-overlay {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Tema değiştirme düğmesi için özel stil, sağa itmek için */
    li.theme-switch-wrapper {
        margin-left: auto;
    }
    /* Mobil görünümde bazı menü öğelerini gizle (isteğe bağlı) */
    nav ul li:nth-child(2), /* Kategoriler (genellikle anasayfada var) */
    nav ul li:nth-child(6)  /* Favorilerim (eğer çok yer kaplıyorsa) */ {
        /* display: none; İhtiyaç halinde açılabilir */
    }
    

    .slides { height: 400px; }
    .slide-content h2 { font-size: 1.8em; }
    .slide-content p { font-size: 1em; }

    .category-grid { /* Anasayfa kategori */
        flex-direction: column;
        align-items: center;
    }
    .category {
        width: 100%;
        max-width: 400px;
    }

    .products-container {
        flex-direction: column;
    }
     .filters {
        max-width: 100%;
        margin-bottom: 20px;
        position: static;
    }
    .price-filter { /* Fiyat filtresi mobil */
        gap: 5px;
    }
    .price-input { /* Min ve Max inputları */
        width: auto;
        min-width: 0;
        flex: 1;
    }
    .price-filter .max-btn-container { flex: 1; gap: 5px;}
    .price-filter .min-container { flex: 1; }


    .products-grid { /* Ürün listesi */
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Daha küçük kartlar */
    }
    .product-grid { /* Sepet altı öneriler */
        grid-template-columns: repeat(2, 1fr);
    }


    .categories-container { /* Kategori sayfası */
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .page-title { font-size: 2rem; }


    .contact-container {
        grid-template-columns: 1fr;
    }
  

/* Tam ekran harita için stil */
.map-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

.map-fullscreen #map {
    height: 100vh !important;
    width: 100vw !important;
    border-radius: 0 !important;
}

.exit-fullscreen-btn {
    position: absolute;
    top: 70px;
    right: 10px;
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#map-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 30px;
    transition: all 0.3s ease;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .cart-item, .favorite-item {
        flex-direction: column;
        text-align: center;
    }
    .item-image { /* Sepet/Favori görsel */
        width: 150px;
        height: 150px;
        margin-bottom: 10px;
    }
    .item-actions { /* Favori sayfasındaki butonlar */
        width: 100%;
        margin-left: 0;
        align-items: center;
    }
}
/* Filtre kutusu düzenlemeleri - taşma sorununu çözme */
@media (max-width: 768px) {
    /* Filtre kutusu tam genişlikte olsun */
    .filters {
        width: calc(100% - 20px) !important; /* Ekranın kenarlarına 10px boşluk bırakma */
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 15px 12px !important; /* İç dolguyu azaltma */
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Yatay taşmayı engelle */
    }
    
    /* Filtre içeriğinin taşmamasını sağlama */
    .filter-group {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fiyat filtresi için düzeltmeler */
    .price-filter {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .price-filter .min-container,
    .price-filter .max-container,
    .price-filter input {
        width: 100% !important;
    }
    
    /* Uygula butonu için düzenleme */
    .filter-btn {
        width: 100% !important;
        margin-top: 10px !important;
    }
    
    /* Checkbox container'ların taşmaması için */
    .checkbox-container {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-right: 10px !important;
    }
    
    /* Sıralama seçimi için */
    .sort-select {
        width: 100% !important;
    }
}
/* Ürün kartları ve grid düzenlemesi - taşmayı önleme */
@media (max-width: 768px) {
    /* Container genişliği ayarlaması */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Ürünler konteyneri düzenlemesi */
    .products-container {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ürün kartlarının genişlik ve dolgu ayarlaması */
    .product-card {
        margin: 8px 0 !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: auto !important;
    }
    
    /* Ürün resmi boyutunu optimize etme */
    .product-image {
        height: 180px !important;
    }
    
    /* Ürün başlığı düzenlemesi */
    .product-info h3 {
        font-size: 14px !important;
        height: auto !important;
        max-height: 40px !important;
        overflow: hidden !important;
    }
    
    /* Ürün fiyatı ve butonları düzenlemesi */
    .product-price {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    /* Ürün kartı butonlarının boyut düzenlemesi */
    .product-card .product-actions .btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
        height: 32px !important;
    }
}

/* Özellikle küçük ekranlarda taşmayı önlemek için */
@media (max-width: 480px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Filtre daha kompakt */
    .filters {
        padding: 10px 8px !important;
    }
    
    .filter-group {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
    }
    
    /* Kategori checkbox'ları düzenlemesi */
    .checkbox-container {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    /* Ürün resmi daha küçük */
    .product-image {
        height: 150px !important;
    }
}
/* Çok Küçük Ekranlar (<= 480px) */
@media (max-width: 480px) {
    /* Ana navigasyon listesi */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 5px 0;
    }
    
    /* Mobilde görünecek elementler */
    nav li {
        display: none; /* Varsayılan olarak tüm öğeleri gizle */
    }
    
     /* Link stilini küçült */
    nav li a {
        font-size: 14px;
        padding: 8px 10px;
    }

    .slides { height: 300px; }
    .slide-content { left: 5%; max-width: 90%; }
    .slide-content h2 { font-size: 1.5em; }
    .prev-slide, .next-slide { width: 30px; height: 30px; }

    .categories-container { /* Kategori sayfası */
        grid-template-columns: 1fr;
    }
    .page-title { font-size: 1.8rem; }


    .auth-container { /* Login/Signup formu */
        padding: 20px;
    }

    .modal-content { /* Lightbox görseli */
        width: 100%;
        max-width: 95%;
    }
    .close-modal {
        right: 20px;
        font-size: 30px;
    }
}

/* --- ADMIN CSS --- */
/* Bu bölüm ayrı bir dosyada (admin.css) tutulup sadece admin sayfalarında yüklenebilir. */
/* Şimdilik burada bırakıyorum. */
.admin-page :root { /* Admin sayfasına özel değişkenler */
    --admin-primary: #4364F7;
    --admin-secondary: #3150D1;
    --admin-accent: #FF5252;
    --admin-green: #4CAF50;
    --admin-yellow: #FFC107;
    --admin-light: #F5F7FA;
    --admin-dark: #2A3042;
    --admin-gray: #A0AEC0;
    --admin-border: #E2E8F0;
    --admin-bg: #F8FAFC;
    --admin-card: #FFFFFF;
}

/* Genel Admin Stilleri */
body.admin-page {
    background-color: var(--admin-bg);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background-color: var(--admin-dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100; /* Yüksek z-index */
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 18px;
}

.sidebar-close {
    display: none; /* Mobil için JS ile aktifleşir */
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

.sidebar-profile {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--admin-gray);
}

.nav-section {
    padding: 10px 0;
}

.nav-title {
    padding: 10px 20px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--admin-gray);
    letter-spacing: 1px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 5px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px; /* Biraz daha ferah */
    color: #E2E8F0;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent; /* Daha belirgin */
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: var(--admin-primary);
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 250px; /* Sidebar genişliği kadar */
    padding: 25px; /* Biraz daha ferah */
    transition: margin-left 0.3s;
}

/* Top Navigation */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Dikey padding */
    margin-bottom: 25px; /* Alt boşluk */
    background-color: var(--admin-card);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--admin-dark);
    display: none; /* Mobil için JS ile aktifleşir */
}

.admin-search {
    position: relative;
    width: 300px;
}

.admin-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    font-size: 14px;
    background-color: var(--admin-light);
    transition: border-color 0.3s;
}
.admin-search input:focus {
    outline: none;
    border-color: var(--admin-primary);
}

.admin-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-gray);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Butonlar arası boşluk */
}

.action-btn {
    background: none;
    border: none;
    color: var(--admin-gray);
    font-size: 18px; /* İkon boyutu */
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.action-btn:hover {
    color: var(--admin-primary);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--admin-accent);
    color: white;
    font-size: 10px;
    width: 18px; /* Biraz daha büyük */
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 20px; /* Daha yuvarlak */
    transition: background-color 0.3s;
}

.admin-user:hover {
    background-color: var(--admin-light);
}

.user-avatar {
    width: 36px; /* Biraz daha büyük */
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--admin-dark);
}

/* Admin Cards */
.admin-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Kartlar arası boşluk */
    margin-bottom: 25px;
}

.admin-col-1, .admin-col-2, .admin-col-3, .admin-col-4 { /* esnek sütunlar */
    flex: 1;
}
.admin-col-1 { min-width: calc(100% / 1 - 25px); }
.admin-col-2 { min-width: calc(100% / 2 - 25px); }
.admin-col-3 { min-width: calc(100% / 3 - 25px); }
.admin-col-4 { min-width: calc(100% / 4 - 25px); }


.admin-card {
    background-color: var(--admin-card);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0,0,0,0.03); /* Hafif gölge */
    padding: 20px;
    height: 100%; /* Sütunlar aynı yükseklikteyse */
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--admin-border);
}
.admin-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--admin-dark);
    font-weight: 600;
}
/* ... .admin-card-header içine dropdown, buton vs eklenebilir ... */


/* Stats Cards */
.stats-card { /* .admin-card'ı kullanır */
    display: flex;
    align-items: center;
    padding: 15px; /* .admin-card padding'ini ezer */
}

.stats-icon {
    width: 50px; /* Biraz küçültüldü */
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 22px;
    color: white;
}

.bg-blue { background-color: var(--admin-primary); }
.bg-green { background-color: var(--admin-green); }
.bg-orange { background-color: var(--admin-yellow); }
.bg-red { background-color: var(--admin-accent); }

.stats-info h4 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--admin-dark);
}

.stats-info p {
    margin: 0;
    font-size: 13px;
    color: var(--admin-gray);
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    display: flex;
    align-items: center;
    padding: 12px 0; /* Biraz daha az padding */
    border-bottom: 1px solid var(--admin-border);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
    color: white;
}

.activity-details p {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: var(--admin-dark);
}

.activity-details small {
    color: var(--admin-gray);
    font-size: 12px;
}

/* Tables */
.admin-table-wrapper {
    overflow-x: auto; /* Tablo taşarsa scroll */
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.admin-table th {
    background-color: var(--admin-light);
    color: var(--admin-dark);
    font-weight: 600;
    font-size: 13px; /* Biraz daha küçük */
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    /* border-bottom: none; Opsiyonel, bazen alt çizgi istenir */
}

.admin-table tbody tr:hover {
    background-color: #f9fafb; /* Hafif hover */
}

.table-actions {
    display: flex;
    gap: 8px; /* Daha az boşluk */
}

.table-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px; /* İkon boyutu */
    color: var(--admin-gray);
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.table-actions button:hover {
    color: var(--admin-primary);
    /* background-color: var(--admin-light); */
}
.table-actions button.delete:hover {
    color: var(--admin-accent);
}
/* SEO ve Breadcrumb stilleri */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #666;
}
/* Admin Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.active { /* JS ile eklenecek class */
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    .sidebar-close, .menu-toggle { /* Sidebar ve menu toggle mobil'de görünür */
        display: block;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-col-2, .admin-col-3, .admin-col-4 {
        min-width: calc(50% - 25px); /* Tablette 2'li grid */
    }
    .admin-search { width: 250px; }
}

@media (max-width: 768px) {
    .admin-col-2, .admin-col-3, .admin-col-4 {
        min-width: calc(100% - 25px); /* Daha küçük tablet ve mobilde tekli grid */
    }
}


@media (max-width: 576px) {
    .admin-main { padding: 15px; }
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    .admin-search { width: 100%; }
    .admin-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .stats-card {
        flex-direction: column;
        text-align: center;
    }
    .stats-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
