/* --- GENEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --primary-color: #2E8B57;
    --secondary-color: #8B4513;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
    --font-main: 'Inter', sans-serif;
    --transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    --glow-shadow: 0 10px 40px -10px rgba(46, 139, 87, 0.5);
    --form-bg: #fff;
    --input-bg: #f8f9fa;
    --input-border: #e0e0e0;
}

/* Özel Scrollbar (Kaydırma Çubuğu) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; border: 2px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }
html.dark-mode ::-webkit-scrollbar-track { background: #111; }
html.dark-mode ::-webkit-scrollbar-thumb { background: #444; border-color: #111; }

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Mobilde tıklayınca çıkan mavi kareyi kaldır */
* { -webkit-tap-highlight-color: transparent; }

html { background-color: var(--bg-color); scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

body.no-scroll { overflow: hidden !important; touch-action: none; }


/* Alt Sayfalar İçin Arka Plan (Blur Efektli) */
body.sub-page {
    background-image: none;
}

body.sub-page::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1473448912268-2022ce9509d8?q=60&w=1080&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}
body.sub-page::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(248, 249, 250, 0.92);
    z-index: -2;
    backdrop-filter: blur(5px);
}

/* --- KARANLIK MOD (DARK MODE) --- */
html.dark-mode {
    --primary-color: #2ecc71; /* Neon Yeşil */
    --secondary-color: #f1c40f; /* Kontrast için Sarı/Altın */
    --bg-color: #1a1a1a; /* Antrasit */
    --text-color: #f0f0f0; /* Yumuşak Beyaz */
    --card-bg: #242424; /* Koyu Gri Kartlar */
    --glow-shadow: 0 10px 40px -10px rgba(46, 204, 113, 0.3);
    --form-bg: #2a2a2a;
    --input-bg: #333;
    --input-border: #444;
    background: linear-gradient(to bottom, #1a1a1a, #111);
}

/* Karanlık Mod Özel Düzeltmeler */
html.dark-mode .header { background-color: var(--card-bg); border-bottom: 1px solid rgba(255,255,255,0.05); }
html.dark-mode .nav-link { color: var(--text-color); }
html.dark-mode .nav-link:hover, html.dark-mode .nav-link.active { color: var(--primary-color); }
html.dark-mode .product-card, 
html.dark-mode .cart-summary, 
html.dark-mode .form-card, 
html.dark-mode .faq-item,
html.dark-mode .contact-form-wrapper { border: 1px solid rgba(255,255,255,0.05); }
html.dark-mode .search-input { background-color: #333; color: #fff; border-color: #444; }
html.dark-mode .footer { background-color: #111; border-top-color: var(--primary-color); }
html.dark-mode body.sub-page::after { background-color: rgba(26, 26, 26, 0.95); }
html.dark-mode .info-item p { color: #ccc; }

/* --- KAPSAMLI DARK MODE DÜZELTMELERİ (FIX) --- */

/* 1. Sepet ve İkonlar */
html.dark-mode .cart-icon { background-color: #333; color: #fff; box-shadow: 0 2px 10px rgba(255,255,255,0.05); }
html.dark-mode .cart-count { border-color: #333; color: #1a1a1a; font-weight: 700; }
html.dark-mode .search-btn { color: #fff; }
html.dark-mode .summary-row { color: #ccc; }

/* 4. Görseller */
html.dark-mode img { filter: brightness(0.9); transition: filter 0.3s ease; }
html.dark-mode img:hover { filter: brightness(1); }

/* 5. Global Beyaz Arka Plan Düzeltmeleri */
html.dark-mode .security-note,
html.dark-mode .cart-summary .security-note { background-color: #2a2a2a !important; color: #e0e0e0 !important; border: 1px solid #444 !important; box-shadow: none !important; }
html.dark-mode #scroll-to-top-btn { background-color: var(--card-bg); color: var(--primary-color); border: 1px solid var(--primary-color); }
html.dark-mode #scroll-to-top-btn:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
html.dark-mode #preloader { background-color: var(--bg-color); }
html.dark-mode .btn-secondary { background-color: #444; color: #f0f0f0; border: none; }
html.dark-mode .cart-icon a { color: #fff; }

/* 6. Butonlar ve Form Focus */
html.dark-mode input:focus, 
html.dark-mode textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* 7. Header Overlay Restorasyonu (Dark Mode) */
html.dark-mode .header-overlay, 
html.dark-mode .products-header::before, 
html.dark-mode .cart-header::before, 
html.dark-mode .faq-header::before { background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8)); }
html.dark-mode .header-content h1 { color: #fff; }
html.dark-mode .header-content p { color: #f0f0f0; }

/* Tema Değiştirme Butonu */
#theme-toggle {
    position: fixed; bottom: 30px; left: 30px;
    width: 50px !important; height: 50px !important;
    min-width: 50px !important; min-height: 50px !important;
    border-radius: 50%;
    background-color: var(--card-bg); color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    cursor: pointer; z-index: 9990;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
html.dark-mode #theme-toggle { border-color: rgba(255,255,255,0.1); box-shadow: 0 5px 20px rgba(0,0,0,0.5); color: #f1c40f; }
#theme-toggle:hover { transform: scale(1.1) rotate(15deg); color: var(--primary-color); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Input Temizleme */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { -webkit-appearance:none; }

/* --- HEADER & NAVİGASYON --- */
.header {
    background-color: rgba(255, 255, 255, 0.85); /* Cam Efekti */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed; width: 100%; top: 0; z-index: 1000;
}

.header-container {
    display: flex; justify-content: space-between; align-items: center;
    height: 70px; position: relative;
}

.logo { font-size: 28px; font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
.logo img { width: 120px; height: auto; }

.nav-menu { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-menu ul { display: flex; gap: 30px; }
.nav-link { font-weight: 500; color: var(--text-color); transition: color 0.3s ease; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 15px; }

/* Hesap İkonu */
.account-icon {
    display: flex;
    align-items: center;
    height: 45px;
    margin-right: 5px;
}
.account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.account-link:hover { color: var(--primary-color); }
.account-link i { font-size: 1.5rem; }
.account-link img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    padding: 1px;
}

/* Sepet İkonu */
.cart-icon {
    font-size: 22px; color: var(--text-color); position: relative;
    width: 45px; height: 45px; background-color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: var(--transition);
    
}
.cart-icon:hover { transform: translateY(-2px); color: var(--primary-color); box-shadow: 0 5px 15px rgba(46, 139, 87, 0.2); }
.cart-count {
    position: absolute; top: -2px; right: -2px; background-color: var(--primary-color);
    color: white; font-size: 11px; font-weight: 700; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; line-height: 1; padding: 0;
}
.cart-count.bump { animation: cartBump 0.3s ease-out; }

/* Mobil Menü */
.menu-toggle { display: none; z-index: 10001; flex-direction: column; cursor: pointer; }
.bar { height: 3px; width: 28px; background-color: var(--text-color); margin: 4px 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 4px; }
/* Hamburger Animasyonu */
.menu-toggle.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Mobil Menü Logosu (Masaüstünde Gizle) */
.mobile-menu-logo {
    display: none;
}

/* Arama Çubuğu */
.search-container { position: relative; display: flex; align-items: center; }
.search-btn { background: transparent; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-color); padding: 10px; z-index: 2; transition: color 0.3s; }
.search-input { width: 0; opacity: 0; border: 1px solid transparent; background-color: #f4f4f4; padding: 0; height: 40px; border-radius: 20px; position: absolute; right: 5px; transition: all 0.4s ease; font-family: var(--font-main); font-size: 0.9rem; pointer-events: none; }
.desktop-search.active .search-input { width: 220px; opacity: 1; padding: 0 20px 0 20px; pointer-events: auto; border: 1px solid #ddd; z-index: 3; }
.desktop-search.active .search-btn { color: var(--primary-color); }
.search-results { display: none; position: absolute; top: 120%; right: 0; width: 300px; background: var(--card-bg); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 10px; max-height: 70vh; overflow-y: auto; z-index: 999; border: 1px solid #eee; }
.search-results.show { display: block; }
.search-result-item { display: flex; align-items: center; padding: 10px; gap: 10px; transition: background-color 0.2s; }
.search-result-item:hover { background-color: #f5f5f5; }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.search-result-item-info { display: flex; flex-direction: column; }
.search-result-item-info h4 { font-size: 0.9rem; font-weight: 600; margin: 0; }
.search-result-item-info span { font-size: 0.8rem; color: var(--primary-color); }
.mobile-search { display: none; padding: 0 20px 20px; order: -1; }

/* Modern Gradient Butonlar */
.btn, .btn-add-to-cart, .btn-checkout, .btn-pay, .btn-track, .newsletter-btn, .btn-submit-review, .btn-home, .btn-cookie.accept {
    display: inline-block; 
    background-image: linear-gradient(to right, var(--primary-color) 0%, #1e5c39 51%, var(--primary-color) 100%);
    background-size: 200% auto;
    color: white; padding: 15px 40px; border-radius: 50px; font-weight: 600; 
    transition: all 0.5s ease !important; box-shadow: 0 10px 20px rgba(46, 139, 87, 0.25); border: none;
}
.btn:hover, .btn-add-to-cart:hover, .btn-checkout:hover, .btn-pay:hover, .btn-track:hover, .newsletter-btn:hover, .btn-submit-review:hover, .btn-home:hover, .btn-cookie.accept:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(46, 139, 87, 0.4); 
    background-color: transparent !important;
}

/* Google Giriş Butonu */
.btn-google {
    background-color: #fff;
    color: #333;
    background-image: none;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}
.btn-google:hover { background-color: #f8f8f8; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Tüm Butonlar İçin Hover Efekti (Yukarı Kalkma) */
button, .btn-rec-add {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
button:hover, .btn-rec-add:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Arama Butonu Hover Efektini İptal Et */
.search-btn:hover {
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* + ve - Butonları İçin Hover Efektini İptal Et */
.qty-btn:hover, .qty-btn.increase:hover, .qty-btn.decrease:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}


/* --- ÜRÜNLER SAYFASI --- */
.products-header, .cart-header, .faq-header {
    background-image: url('https://images.unsplash.com/photo-1473448912268-2022ce9509d8?q=60&w=1080&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed;
    position: relative; text-align: center; padding: 140px 20px 60px; margin-bottom: 60px;
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.1);
}
.header-overlay, .products-header::before, .cart-header::before, .faq-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1; }
.header-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; animation: softSlideDown 1s ease-out forwards; }
.header-content h1 { font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 10px; text-shadow: 0 2px 15px rgba(0,0,0,0.9); }
.header-content p { font-size: 1.1rem; color: #fff; opacity: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.9); font-weight: 500; }

/* --- ÜRÜN DETAY --- */
.product-detail-section { padding: 120px 0 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery .main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0f2f5;
    border-radius: 20px;
    overflow: hidden;
}
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); border: 1px solid #eee; cursor: pointer; }
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
}
.gallery-arrow:hover { background-color: var(--primary-color); color: white; transform: translateY(-50%) !important; }
.gallery-arrow.prev { left: 15px; }
.gallery-arrow.next { right: 15px; }
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.thumbnail-item {
    width: 80px; height: 80px; border: 3px solid transparent;
    border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: border-color 0.3s ease;
}
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-item.active, .thumbnail-item:hover { border-color: var(--primary-color); }
.zoom-btn { position: absolute; bottom: 20px; right: 20px; background: rgba(255, 255, 255, 0.9); border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition); }
.zoom-btn:hover { background: var(--primary-color); color: white; transform: scale(1.1); }

.product-info-details h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 15px; line-height: 1.2; }
.product-info-details .price { font-size: 2.2rem; margin-bottom: 25px; }
.product-info-details .description { font-size: 1rem; line-height: 1.8; color: #555; margin-bottom: 30px; }
.stock-status { font-weight: 600; margin-bottom: 20px; padding: 8px 15px; border-radius: 8px; display: inline-block; font-size: 0.95rem; }
.stock-status.in-stock { background-color: #eaf7f0; color: var(--primary-color); }
.stock-status.out-of-stock { background-color: #fdeeee; color: #e74c3c; }

.purchase-actions { display: flex; gap: 20px; align-items: center; margin-bottom: 30px; }
.quantity-selector { display: flex; align-items: center; border: 2px solid #e0e0e0; border-radius: 50px; overflow: hidden; }
.qty-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; width: 50px; height: 50px; transition: 0.2s; }
#quantity-input { width: 40px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 1.2rem; color: var(--primary-color); }
.btn-add-to-cart { flex-grow: 1; /* Diğer stiller yukarıda birleştirildi */ }
.btn-add-to-cart:disabled { background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* Yorumlar */
.reviews-section { padding: 60px 0; background-color: var(--bg-color); border-top: 1px solid #eee; }
.reviews-container { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.review-form-container { background: var(--card-bg); padding: 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; transition: 0.3s; }
.star-rating-input i { font-size: 1.5rem; color: #ddd; cursor: pointer; margin-right: 5px; }
.star-rating-input i.active, .star-rating-input i:hover { color: #f39c12; }
.btn-submit-review { width: 100%; margin-top: 15px; }
.similar-products-section { padding: 60px 0 80px; background-color: var(--card-bg); border-top: 1px solid #eee; margin-top: 60px; }
.similar-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Lightbox */
.image-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 20px; }
.modal-content { max-width: 90%; max-height: 90vh; border-radius: 5px; animation: zoomIn 0.3s ease-out; object-fit: contain; }
.close-modal { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 2001; }
.modal-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; color: white; font-size: 30px; padding: 10px 15px; cursor: pointer; border-radius: 5px; z-index: 2001; transition: background 0.3s ease; }
.modal-arrow:hover { background: rgba(255,255,255,0.4); }
.modal-arrow.prev { left: 20px; }
.modal-arrow.next { right: 20px; }

/* --- ÖDEME SAYFASI --- */
.payment-section { padding: 100px 0 60px; }
.page-title { text-align: center; margin-bottom: 50px; color: var(--secondary-color); font-size: 2.2rem; font-weight: 700; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); padding-bottom: 15px; }
.page-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary-color); border-radius: 10px; }

.payment-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

.form-card { 
    background: var(--card-bg); border-radius: 20px; padding: 30px; margin-bottom: 30px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.02); 
    animation: fadeInUp 0.8s ease-out forwards;
}
.form-card:nth-child(2) { animation-delay: 0s; }

.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.card-header i { font-size: 1.5rem; color: var(--primary-color); }
.card-header h2 { font-size: 1.2rem; font-weight: 600; color: var(--text-color); margin: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: #555; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 10px; 
    font-family: var(--font-main); font-size: 0.95rem; transition: var(--transition); 
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1); }

.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 40px; }
.input-icon-wrap i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #aaa; }

.payment-icons-row { font-size: 2rem; color: #555; margin-bottom: 20px; display: flex; gap: 15px; }

/* Ödeme Sayfası Sipariş Özeti */
.order-summary-wrapper { position: sticky; top: 100px; }
.order-summary {
    position: relative; z-index: 10; /* Blur/Bug fix */
    background: var(--card-bg); border-radius: 20px; padding: 30px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.02); 
    animation: fadeInUp 0.8s ease-out forwards;
}
.order-summary h3 { font-size: 1.4rem; margin-bottom: 25px; color: var(--text-color); border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }

.btn-pay { width: 100%; margin-top: 25px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 1.1rem; }
.btn-pay:disabled { background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

.security-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; color: #888; font-size: 0.8rem; background: #f9f9f9; padding: 10px; border-radius: 10px; }
.security-note i { color: var(--primary-color); }

/* Modallar */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal.show { display: flex; }
.confirmation-modal { background-color: #fff; padding: 30px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: zoomIn 0.3s; }
.modal-actions { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.btn-secondary { background-color: #f0f0f0; color: #333; padding: 12px 25px; border-radius: 50px; border: none; cursor: pointer; font-weight: 600; }
.btn-danger { background-color: #ff6b6b; color: white; padding: 12px 25px; border-radius: 50px; border: none; cursor: pointer; font-weight: 600; }
.btn-home { background: var(--secondary-color); color: white; border: none; padding: 12px 30px; border-radius: 50px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-home:hover { background: #6d360e; }

/* Legal Modals */
.legal-text h4 { margin-bottom: 5px; color: var(--primary-color); }

/* --- FOOTER --- */
/* --- FOOTER (MODERN TASARIM) --- */
.footer {
    background-color: #111;
    color: #b0b0b0;
    padding: 80px 0 0;
    border-top: 4px solid var(--primary-color);
    position: relative;
    font-size: 0.95rem;
    margin-top: auto;
    z-index: 10;
    overflow: hidden;
}

.footer::before {
    content: '\f06c'; /* FontAwesome Leaf */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -40px;
    left: -40px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(45deg);
    z-index: 0;
    pointer-events: none;
}

.footer::after {
    content: '\f06c'; /* FontAwesome Leaf */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -40px;
    right: -40px;
    font-size: 18rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-45deg);
    z-index: 0;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-col, .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    order: -1;
    max-width: 160px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logo:hover img { opacity: 1; }

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #888;
}

.footer h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content; /* Başlık genişliğini metne göre ayarla */
    margin-left: 0;
    margin-right: auto;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%; /* Çizgiyi başlık genişliği kadar yap */
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-col > ul:not(.footer-contact) {
    /* Başlık ve linklerin dikey hizalanması için '›' karakterinin yerini telafi eder */
    margin-left: -18px;
}

.footer ul li { margin-bottom: 12px; }

.footer ul li a {
    color: #b0b0b0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer ul li a::before {
    content: '\203A';
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.4rem;
    line-height: 1;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.footer ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer İletişim Listesi */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.9rem;
    justify-content: flex-start;
}
.footer-contact li i {
    color: var(--primary-color);
    margin-top: 4px;
}

/* Newsletter Formu */
.newsletter-form {
    position: relative;
    margin-top: 10px;
    width: 100%;
}
.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.newsletter-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    outline: none;
}
.newsletter-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    justify-content: flex-start;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: transparent;
}

.social-links a:nth-child(1):hover { background: #E1306C; box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4); }
.social-links a:nth-child(2):hover { background: #1877F2; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
.social-links a:nth-child(3):hover { background: #000; box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); }
.social-links a:nth-child(4):hover { background: #25D366; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 20px;
    font-size: 0.85rem;
    color: #777;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: #555;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 30px;
    }
    /* Footer Mobil Uyumluluk */
    .footer {
        padding: 40px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
        text-align: center; /* Metinleri ortala */
        gap: 40px;
        padding: 0 30px;
    }
    .footer-col {
        align-items: center; /* Flex öğelerini (logo, linkler) ortala */
        text-align: center;
        width: 100%;
    }
    .footer-logo {
        order: 1;
        margin: 0 auto 15px auto;
    }
    .footer-desc {
        order: 2;
        text-align: center;
    }
    /* E-Bülten açıklamasını mobilde tek satıra sığdır */
    .footer-col:last-child .footer-desc {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    .footer h4 {
        margin-left: auto;
        margin-right: auto;
        display: inline-block;
        text-align: center;
    }
    .footer ul { width: 100%; padding: 0; }
    .footer ul li { width: 100%; }
    .footer ul li a {
        justify-content: center;
        width: 100%;
    }
    .footer ul li a::before {
        display: none; /* Mobilde oku gizle */
    }
    .footer ul li a:hover {
        transform: none; /* Mobilde kaymayı engelle */
    }
    .footer-col > ul:not(.footer-contact) {
        margin-left: 0; /* Mobilde negatif marjini sıfırla */
    }
    .footer-links-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-contact li {
        justify-content: center; /* İletişim bilgilerini ortala */
        width: 100%;
    }
    .social-links {
        justify-content: center;
        margin-top: 10px;
        order: 3;
        width: 100%; /* Tam genişlik vererek ortalamayı garantiye al */
    }
    .newsletter-form {
        margin-bottom: 20px;
    }
    /* Yaprakları mobilde küçült ve soluklaştır */
    .footer::before { top: -20px; left: -20px; font-size: 10rem; opacity: 0.02; }
    .footer::after { bottom: -20px; right: -20px; font-size: 12rem; opacity: 0.02; }
}

/* Küçük Ekranlar (480px altı) İçin Ekstra Ayarlar */
@media (max-width: 480px) {
    .footer { padding: 40px 0 0; }
    .footer-grid { gap: 30px; padding: 0 20px; }
    .footer-logo { max-width: 130px; margin-bottom: 15px; }
    .footer h4 { font-size: 1rem; margin-bottom: 15px; }
    .footer-desc { font-size: 0.85rem; }
    .social-links a { width: 35px; height: 35px; }
    .newsletter-input, .newsletter-btn { padding: 10px; font-size: 0.85rem; }
    .footer-bottom { font-size: 0.75rem; }
    .payment-methods { font-size: 1.2rem; }
}

/* --- DİĞER BİLEŞENLER --- */
.toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; border-radius: 12px; padding: 16px; position: fixed; z-index: 2001; right: 30px; bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); opacity: 0; transform: translateY(30px); transition: all 0.5s; display: flex; align-items: center; gap: 15px; }
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.toast.success { background-color: var(--primary-color); }

#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-logo img { width: 150px; animation: pulse 2s infinite; }

/* Animasyonlar */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageLoad { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes cartBump { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes softSlideDown { 0% { opacity: 0; transform: translateY(-30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideInItem { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; border-color: #ff6b6b !important; }

/* --- ÇEREZ BANNER & MODAL (Old Money Aesthetic) --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%; 
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background-color: #ffffff;
    color: #333;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 9999;
    transition: bottom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie {
    border: none;
    padding: 12px 28px;
    border-radius: 6px; 
    font-weight: 600; 
    font-size: 0.9rem;
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.btn-cookie.decline {
    background-color: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-cookie.decline:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.btn-cookie.settings {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 15px;
    border: 1px solid transparent;
}

.btn-cookie.settings:hover {
    text-decoration: underline;
    color: #247046;
}

/* Modal Styles */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}

.cookie-modal.show { display: flex; opacity: 1; }

.cookie-modal-content {
    background: var(--card-bg);
    width: 90%; max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column;
    max-height: 90vh;
}

.cookie-modal.show .cookie-modal-content { transform: scale(1); }

.cookie-modal-header {
    padding: 25px 35px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; align-items: center; 
    background-color: transparent;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.4rem; 
    color: #222;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: none !important;
    padding: 5px;
}

.cookie-modal-close:hover {
    color: #333;
    transform: none !important;
    box-shadow: none !important;
}

.cookie-modal-body {
    padding: 35px;
    overflow-y: auto;
}

.modal-desc {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border-bottom: 1px solid #f5f5f5;
}

.cookie-option:last-child { border-bottom: none; }

.option-info h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    max-width: 380px;
    line-height: 1.5;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(24px); }

.toggle-switch.disabled { opacity: 0.6; cursor: not-allowed; }
.toggle-switch.disabled .slider { cursor: not-allowed; }

.cookie-modal-footer {
    padding: 20px 35px;
    background-color: transparent;
    border-top: 1px solid #f0f0f0; text-align: right;
}

.btn-cookie.save {
    background-color: #333;
    color: white;
    padding: 12px 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-cookie.save:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    /* Global Overflow Fix */
    html, body { overflow-x: hidden; width: 100%; }

    /* Header Düzeni (Sepet İkonunu Göster) */
    .header-right { display: flex; margin-right: 0; order: 2; align-items: center; }
    .desktop-search { display: none; } /* Masaüstü aramayı gizle */
    .logo { order: 1; margin-right: auto; display: flex; align-items: center; flex-grow: 1; }
    .menu-toggle { order: 3; display: flex; align-items: center; margin-left: 15px; }
    .account-text { display: none; } /* Mobilde hesap ismini gizle */
    
    /* Çerez Banner Mobilde */
    .cookie-banner { flex-direction: column; text-align: center; bottom: -100%; width: calc(100% - 30px); padding: 25px; gap: 20px; }
    .cookie-banner.show { bottom: 15px; }
    .cookie-actions { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .btn-cookie { flex: 1; min-width: 100px; }
    .btn-cookie.settings { width: 100%; order: 3; }
    .cookie-option { flex-direction: column; align-items: flex-start; gap: 15px; }
    .toggle-switch { align-self: flex-end; }
    .option-info p { max-width: 100%; }

    .header-container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
    .menu-toggle { display: flex; }
    .nav-menu { 
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        background-color: var(--card-bg); /* Tam ekran arka plan */
        padding-top: 50px; /* Header için boşluk azaltıldı */
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: flex-start; 
        transform: translateX(-100%); /* Soldan gelme efekti */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        z-index: 9999; /* Yüksek Z-Index */
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu ul { 
        flex-direction: column; text-align: center; width: 100%; gap: 15px;
        opacity: 1; transform: none; transition: none;
        padding-bottom: 40px;
        order: 3; /* Linkler en altta */
    }
    .nav-link { display: block; padding: 8px 0; font-size: 1.4rem; font-weight: 600; color: var(--text-color); letter-spacing: -0.5px; width: 100%; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .mobile-menu-logo {
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
        animation: fadeIn 0.5s ease-out;
        order: 1; /* Logo en üstte */
    }
    .mobile-menu-logo img {
        max-width: 150px;
        height: auto;
    }
    .mobile-search { 
        display: flex; width: 90%; margin: 0 auto 15px; position: relative;
        opacity: 1; transform: none; transition: none;
        border-bottom: none; /* Ayırıcı Çizgi */
        padding-bottom: 10px;
        order: 2; /* Arama çubuğu ortada */
    }
    .mobile-search .search-input { 
        width: 100%; opacity: 1; position: static; pointer-events: auto; 
        padding: 0 15px 0 48px; height: 42px; border-radius: 10px; 
        background-color: #f8f8f8; border: 1px solid rgba(0,0,0,0.05); 
        box-shadow: none; 
        font-size: 0.95rem; color: #333; 
    }
    .mobile-search .search-btn { 
        position: absolute; left: 15px; top: 0; height: 42px; width: 40px;
        transform: none; color: var(--primary-color); font-size: 1rem; padding: 0; 
        display: flex; align-items: center; justify-content: center;
    }
    .mobile-search .search-btn:hover { background: none; box-shadow: none; transform: none; }
    
    /* Mobil Arka Plan Düzeltmesi (Bozulmayı Önler) */
    body.sub-page { background-attachment: scroll; }

    /* Mobil Boyutlandırma ve Footer İyileştirmesi */
    .footer { padding: 40px 20px 20px; }
    .footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; margin-bottom: 30px; }
    .footer-col { width: 100%; max-width: 300px; }
    .footer h4 { font-size: 1.1rem; margin-bottom: 15px; }
    .footer ul li { font-size: 0.9rem; margin-bottom: 8px; }
    .footer-bottom { font-size: 0.8rem; padding-top: 20px; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); }
    .social-links { justify-content: center; }
}
@media (max-width: 576px) {
}

/* --- SKELETON LOADER (Yükleme Animasyonu) --- */
.skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 450px;
}

.skeleton-image {
    height: 210px;
    width: 100%;
}

.skeleton-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin: 0 auto;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    margin: 0 auto;
}

.skeleton-btn {
    height: 40px;
    width: 60%;
    margin: auto auto 0;
    border-radius: 50px;
}

/* --- SCROLL TO TOP BUTTON (Old Money Style) --- */
#scroll-to-top-btn {
    position: fixed;
    bottom: 35px;
    right: 35px; left: auto;
    width: 50px !important; height: 50px !important;
    min-width: 50px !important; min-height: 50px !important;
    background-color: #ffffff;
    border: 1px solid #222; /* İnce, koyu çerçeve */
    color: #222;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Yumuşak geçiş */
    z-index: 9990;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

#scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top-btn:hover {
    background-color: #222;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- İLETİŞİM SAYFASI --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info { padding-right: 20px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.info-item .icon { width: 50px; height: 50px; background: #eaf7f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); font-size: 1.2rem; flex-shrink: 0; transition: var(--transition); }
.info-item:hover .icon { background: var(--primary-color); color: white; transform: rotate(15deg); }
.info-item h4 { margin-bottom: 5px; font-size: 1.1rem; color: var(--text-color); }
.info-item p { color: #666; font-size: 0.95rem; }
.contact-form-wrapper { background: var(--form-bg); padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.02); }

/* İletişim Formu Input Animasyonu */
.contact-form-wrapper input, 
.contact-form-wrapper textarea {
    width: 100%; padding: 15px; border: 1px solid var(--input-border); border-radius: 10px;
    background-color: var(--input-bg); transition: all 0.3s ease; font-family: var(--font-main); font-size: 0.95rem;
}
.contact-form-wrapper input:focus, 
.contact-form-wrapper textarea:focus {
    outline: none; background-color: #fff;
    animation: focusPulse 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes focusPulse { /* This animation is for light mode */
    0% { border-color: #e0e0e0; box-shadow: 0 0 0 0 rgba(46, 139, 87, 0); }
    50% { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.15); }
    100% { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.25); }
}

@media (max-width: 768px) {
    #theme-toggle { bottom: 25px; left: 25px; width: 40px; height: 40px; font-size: 1.1rem; }
    html.dark-mode .nav-menu { background-color: rgba(30, 30, 30, 0.98); border-bottom: 1px solid #333; }
    html.dark-mode .mobile-search .search-input { background-color: #333; color: #fff; border-color: #444; }
}
/* Ana Bölümler İçin Taşma Koruması */
section, main { max-width: 100vw; overflow-x: hidden; width: 100%; }

/* --- GLOBAL MOBİL İYİLEŞTİRMELERİ (RESPONSIVE FIXES) --- */
@media (max-width: 768px) {
    /* 1. Tipografi Optimizasyonu */
    html { font-size: 14px; }
    h1 { font-size: 1.7rem !important; line-height: 1.3; }
    h2 { font-size: 1.4rem !important; line-height: 1.3; }
    h3 { font-size: 1.2rem !important; }
    
    /* 2. Konteyner ve Boşluklar */
    .container { width: 95% !important; margin: 0 auto; padding: 0; }
    section { padding: 40px 0; }
    
    /* 3. Flex Yapıları Alt Alta Getir */
    .footer-grid, .product-grid, .payment-grid, .cart-grid, .contact-grid, .product-detail-grid, .reviews-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* 4. Input ve Butonlar (Tam Genişlik) */
    input:not(.search-input), select, textarea,
    .btn, .btn-add-to-cart, .btn-checkout, .btn-pay, .btn-track, .newsletter-btn, .btn-submit-review, .btn-home, .btn-cookie.accept,
    .btn-google, .btn-secondary, .btn-danger {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Görsel Düzenleme */
    img { max-width: 100%; height: auto; }
    .logo img { max-width: 140px; } /* Mobilde logo boyutu */

    /* 6. Sabit Butonlar (Mobilde Köşelere) */
    #theme-toggle { bottom: 20px; left: 20px; }
    #scroll-to-top-btn { bottom: 20px; right: 20px; }
    
    /* 7. Footer Düzen */
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Toast */
.toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; border-radius: 12px; padding: 16px; position: fixed; z-index: 2001; right: 30px; bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); opacity: 0; transform: translateY(30px); transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); display: flex; align-items: center; gap: 15px; }
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); }
.toast.success { background-color: var(--primary-color); }
.toast-icon { font-size: 1.5rem; }
.toast-message { font-weight: 500; }

/* Animasyonlar */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageLoad { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 768px) {
    .header-container { display: flex; justify-content: space-between; align-items: center; }
    .menu-toggle { display: flex; }
    .hero-content h1 { font-size: 2.5rem; }
    .social-links { justify-content: center; }
}

/* --- Preloader --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fff; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-logo img { width: 150px; animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- GLOBAL DARK MODE FIXES (EKLEMELER) --- */
html.dark-mode .cookie-banner,
html.dark-mode .cookie-modal-content {
    background-color: #242424 !important;
    color: #f0f0f0;
    border: 1px solid #333;
}
html.dark-mode .cookie-modal-header h3,
html.dark-mode .option-info h4 { color: #fff; }
html.dark-mode .cookie-content p,
html.dark-mode .modal-desc,
html.dark-mode .option-info p { color: #ccc; }
html.dark-mode .cookie-modal-close { color: #fff; }
html.dark-mode .cookie-modal-close:hover { color: #ccc; }
html.dark-mode .cookie-modal-header { border-bottom-color: #333; }
html.dark-mode .cookie-modal-footer { border-top-color: #333; }
html.dark-mode .cookie-option { border-bottom-color: #333; }

/* Ürün Detay Dark Mode */
html.dark-mode .stock-status.in-stock { background-color: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.2); }
html.dark-mode .star-rating-input i { color: #555; } /* Boş yıldızlar */
html.dark-mode .star-rating-input i.active { color: #f1c40f; } /* Dolu yıldızlar */

/* İletişim İkonları Dark Mode */
html.dark-mode .info-item .icon { background-color: #333; color: var(--primary-color); }

/* Global Input Dark Mode (Ödeme ve İletişim Dahil) */
html.dark-mode input:not([type="checkbox"]):not([type="radio"]),
html.dark-mode textarea,
html.dark-mode select {
    background-color: #333;
    color: #fff;
    border-color: #444;
}
html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder { color: #888; }

/* --- MODERN LEGAL MODAL STYLES (SÖZLEŞME KUTUSU) --- */
.legal-modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.05);
    animation: none; /* Varsayılan animasyonu iptal et */
}

.modal.show .legal-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.legal-modal-header {
    padding: 20px 30px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.legal-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.legal-modal-header .close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.legal-modal-header .close-modal:hover {
    background-color: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.legal-text {
    padding: 30px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    background-color: #fcfcfc;
}

/* Dark Mode Uyumu */
html.dark-mode .legal-modal-content { background-color: #1e1e1e; border-color: #333; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
html.dark-mode .legal-modal-header { background-color: #252525; border-bottom-color: #333; }
html.dark-mode .legal-modal-header h3 { color: #fff; }
html.dark-mode .legal-modal-header .close-modal { background-color: #333; color: #ccc; }
html.dark-mode .legal-modal-header .close-modal:hover { background-color: #ff4757; color: white; }
html.dark-mode .legal-text { background-color: #1e1e1e; color: #bbb; }

/* Özel Scrollbar */
.legal-text::-webkit-scrollbar { width: 8px; }
.legal-text::-webkit-scrollbar-track { background: transparent; }
.legal-text::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.1); border-radius: 4px; }
html.dark-mode .legal-text::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.1); }

/* --- GLOBAL LOGIN MODAL STYLES --- */
.login-card { 
    background: var(--card-bg); padding: 40px; border-radius: 24px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); width: 100%; max-width: 420px; 
    text-align: center; border: 1px solid rgba(0,0,0,0.03); position: relative;
}
.login-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.login-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; color: var(--text-color); }
.login-desc { color: #666; margin-bottom: 25px; font-size: 0.95rem; }

.btn-google {
    background-color: #fff; color: #3c4043; border: 1px solid #dadce0;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 12px; border-radius: 50px;
    font-weight: 600; font-family: var(--font-main); transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); cursor: pointer;
}
.btn-google:hover {
    background-color: #f8faff; border-color: #cce0ff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px);
}

.login-close {
    position: absolute; top: 15px; right: 15px; background: none; border: none;
    font-size: 1.5rem; color: #999; cursor: pointer; transition: 0.2s;
}
.login-close:hover { color: var(--text-color); }

/* Dark Mode Login */
html.dark-mode .login-card { background-color: var(--card-bg); border-color: rgba(255,255,255,0.05); }
html.dark-mode .login-desc { color: #aaa; }
html.dark-mode .btn-google { background-color: #131314; color: #e8eaed; border-color: #5f6368; }
html.dark-mode .btn-google:hover { background-color: #171717; border-color: #8ab4f8; }

/* --- SEPET SAYFASI DARK MODE FIX (TAM KAPSAMLI) --- */
/* Tablo Başlıkları ve Hücreler */
html.dark-mode .cart-table th { background-color: #2a2a2a; color: #fff; border-bottom: 1px solid #444; }
html.dark-mode .cart-table td { border-bottom: 1px solid #333; color: #ddd; }

/* Ürün Bilgileri */
html.dark-mode .cart-product-info h4 { color: #fff; }
html.dark-mode .cart-product-info span { color: #aaa; }

/* Miktar Butonları */
html.dark-mode .qty-btn { background-color: #333; color: #fff; border: none; }
html.dark-mode .qty-btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
html.dark-mode .quantity-selector { border: none; background-color: #333; }
html.dark-mode #quantity-input { color: #fff; }

/* Silme Butonu (Kesin Çözüm) */
html.dark-mode .remove-item,
html.dark-mode .cart-table .remove-item { background-color: #333 !important; border: 1px solid #444 !important; color: #ff6b6b !important; box-shadow: none !important; }
html.dark-mode .remove-item:hover,
html.dark-mode .cart-table .remove-item:hover { background-color: #444 !important; color: #ff4757 !important; }
html.dark-mode .remove-item i { color: inherit !important; }

/* Sepet Özeti ve Güvenlik Alanı */
html.dark-mode .cart-summary { background-color: var(--card-bg); border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
html.dark-mode .cart-summary h3 { color: #fff; border-bottom: 1px solid #444; }
html.dark-mode .summary-row { color: #ccc; }
html.dark-mode .summary-row.total { color: #fff; border-top-color: #444; }

/* Güvenlik Notu (SSL) - Sepet İçi */
html.dark-mode .cart-summary .security-note,
html.dark-mode .security-note { background-color: #2a2a2a !important; color: #e0e0e0 !important; border: 1px solid #444 !important; box-shadow: none !important; }
html.dark-mode .security-note i { color: var(--primary-color) !important; }

/* Coming Soon Badge (Hazırlık Aşamasında Etiketi) */
.preparation-badge {
    padding: 10px 25px;
    background: #eaf7f0;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(46, 139, 87, 0.2);
}
html.dark-mode .preparation-badge {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.2);
}

/* --- PROFİL DROPDOWN MENÜSÜ --- */
.account-wrapper {
    position: relative;
    display: inline-block;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px; right: 20px;
    width: 12px; height: 12px;
    background: var(--card-bg);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--primary-color);
}

.dropdown-item i { width: 20px; text-align: center; }
.dropdown-item.logout { color: #e74c3c; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 5px; padding-top: 15px; }
.dropdown-item.logout:hover { background-color: #fdeeee; }

/* Dark Mode Uyumu */
html.dark-mode .profile-dropdown { background-color: #242424; border-color: #333; }
html.dark-mode .profile-dropdown::before { background-color: #242424; border-color: #333; }
html.dark-mode .dropdown-item:hover { background-color: rgba(255,255,255,0.05); }
html.dark-mode .dropdown-item.logout:hover { background-color: rgba(231, 76, 60, 0.1); }

/* --- HESABIM SAYFASI (YENİ TASARIM) --- */
.profile-card {
    background: var(--card-bg);
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding-bottom: 30px;
}
.profile-banner {
    height: 120px;
    background-image: url('https://images.unsplash.com/photo-1511497584788-876760111969?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}
.profile-picture-wrapper { margin-top: -60px; position: relative; }
.profile-picture-wrapper img {
    width: 120px; height: 120px;
    border-radius: 50%; object-fit: cover;
    max-width: 100%; /* Görsel taşmasını engelle */
    border: 5px solid var(--card-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.profile-info { padding: 20px; }
.profile-info h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; color: var(--text-color); }
.profile-info p { color: #888; font-size: 1rem; margin-bottom: 20px; }
.profile-actions { display: flex; gap: 15px; justify-content: center; padding: 0 30px; }
.profile-actions .btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; font-size: 0.9rem; }
.btn.btn-danger { background-image: linear-gradient(to right, #e74c3c 0%, #c0392b 51%, #e74c3c 100%); box-shadow: 0 10px 20px rgba(231, 76, 60, 0.2); }
.btn.btn-danger:hover { box-shadow: 0 15px 30px rgba(231, 76, 60, 0.3); }

/* Dark Mode */
html.dark-mode .profile-card { border-color: rgba(255,255,255,0.1); }
html.dark-mode .profile-picture-wrapper img { border-color: var(--card-bg); }

/* --- SİPARİŞLERİM SAYFASI (YENİ TASARIM) --- */
.orders-section .container h1 { font-size: 2rem; color: var(--text-color); margin-bottom: 30px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
.order-accordion { background: var(--card-bg); border-radius: 16px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.04); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.order-accordion:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(46, 139, 87, 0.1); }
.order-accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; cursor: pointer; }
.order-info .order-id { font-weight: 700; color: var(--primary-color); font-size: 1.1rem; }
.order-info .order-date { font-size: 0.9rem; color: #888; margin-top: 2px; }
.order-summary-short { display: flex; align-items: center; gap: 20px; }
.order-total-short { font-size: 1.2rem; font-weight: 700; color: var(--text-color); }
.order-status { padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Durum Renkleri */
.status-yeni-siparis { background: #e3f2fd; color: #1976d2; }
.status-hazirlaniyor { background: #fff3e0; color: #f57c00; }
.status-kargoda { background: #f3e5f5; color: #7b1fa2; }
.status-tamamlandi { background: #e8f5e9; color: #2e7d32; }
.status-iptal-edildi { background: #ffebee; color: #d32f2f; }

.order-accordion-header i { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: #aaa; }
.order-accordion.open .order-accordion-header i { transform: rotate(180deg); color: var(--primary-color); }

.order-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease; padding: 0 25px; }
.order-accordion.open .order-accordion-content { padding: 20px 25px 30px; border-top: 1px solid var(--border-color); }

.order-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 25px; }
.detail-group h5 { font-size: 0.85rem; color: #888; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.detail-group p { font-size: 1rem; color: var(--text-color); line-height: 1.6; }

.order-accordion-content h5 { font-size: 0.85rem; color: #888; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.order-items-list { background: var(--bg-color); border-radius: 12px; padding: 15px; }
.order-item-detail { display: flex; justify-content: space-between; padding: 10px; font-size: 0.95rem; }
.order-item-detail:not(:last-child) { border-bottom: 1px dashed var(--border-color); }
.order-item-detail span:last-child { font-weight: 600; }

/* Dark Mode */
html.dark-mode .order-accordion { background-color: var(--card-bg); border-color: rgba(255,255,255,0.1); }
html.dark-mode .order-accordion.open .order-accordion-content { border-top-color: rgba(255,255,255,0.1); }
html.dark-mode .order-info .order-date { color: #888; }
html.dark-mode .order-total-short { color: #fff; }
html.dark-mode .detail-group h5 { color: #aaa; }
html.dark-mode .detail-group p { color: #ddd; }
html.dark-mode .order-items-list { background: #1a1a1a; }
html.dark-mode .order-item-detail { border-bottom-color: rgba(255,255,255,0.1); }

html.dark-mode .status-yeni-siparis { background: rgba(25, 118, 210, 0.2); color: #64b5f6; }
html.dark-mode .status-hazirlaniyor { background: rgba(245, 124, 0, 0.2); color: #ffb74d; }
html.dark-mode .status-kargoda { background: rgba(123, 31, 162, 0.2); color: #ba68c8; }
html.dark-mode .status-tamamlandi { background: rgba(46, 125, 50, 0.2); color: #81c784; }
html.dark-mode .status-iptal-edildi { background: rgba(211, 47, 47, 0.2); color: #e57373; }

/* Çerez Banner Dark Mode Düzeltmeleri */
html.dark-mode .btn-cookie.decline { color: #ccc; border-color: #555; }
html.dark-mode .btn-cookie.decline:hover { background-color: #333; color: #fff; border-color: #777; }
html.dark-mode .btn-cookie.settings { color: var(--primary-color); }
html.dark-mode .btn-cookie.settings:hover { color: #2ecc71; }
html.dark-mode .cookie-content p { color: #e0e0e0; }

/* Özel Yukarıdan İnen Bildirim Kutusu (E-Bülten vb.) */
.custom-alert-box {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: var(--primary-color); color: white; padding: 15px 30px;
    border-radius: 0 0 20px 20px; box-shadow: 0 10px 30px rgba(46, 139, 87, 0.4);
    z-index: 10000; transition: top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600; display: flex; align-items: center; gap: 15px;
    width: 90%; max-width: 500px; justify-content: center;
}
.custom-alert-box.show { top: 0; }
.custom-alert-box i { font-size: 1.2rem; }
html.dark-mode .custom-alert-box { background: #2ecc71; color: #000; box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3); }

/* Hata Durumu İçin Stil (Kırmızı) */
.custom-alert-box.error {
    background: #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}
html.dark-mode .custom-alert-box.error {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

/* --- GELİŞMİŞ ARAMA KATMANI (SPOTLIGHT STYLE) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Koyu arka plan */
    backdrop-filter: blur(8px); /* Bulanıklık efekti */
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000; /* En üstte */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Üstten hizala */
    padding-top: 120px; /* Üstten boşluk */
}
.search-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.search-bar-wrapper {
    position: relative;
    width: 90%;
    max-width: 700px;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.search-overlay.active .search-bar-wrapper {
    transform: translateY(0);
}

.search-input-large {
    width: 100%;
    padding: 20px 60px 20px 30px;
    font-size: 1.3rem;
    border: none;
    border-radius: 16px;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    outline: none;
}
.search-input-large:focus { 
    box-shadow: 0 20px 50px rgba(46, 139, 87, 0.15);
}

.close-search-btn {
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    font-size: 1.8rem; color: #999; background: none; border: none; cursor: pointer;
    transition: color 0.3s;
}
.close-search-btn:hover { color: var(--primary-color); }

.large-search-results {
    margin-top: 15px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    max-height: 60vh;
    overflow-y: auto;
    display: none; /* Varsayılan gizli */
}
.large-search-results.show { display: block; }

.no-results-msg { 
    text-align: center; padding: 30px; color: #888; font-size: 1.1rem; 
}

/* Dark Mode Uyumu */
html.dark-mode .search-overlay { background-color: rgba(0, 0, 0, 0.8); }
html.dark-mode .search-input-large { background: #2a2a2a; color: #fff; }
html.dark-mode .large-search-results { background: #2a2a2a; }