:root {
    --primary: #000000;
    --accent: #FFCD11; /* CAT Sarısı */
    --accent-dark: #e6b800;
    --blue-dark: #1e3c72;
    --blue-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --admin-sidebar-bg: #212529;
    --admin-active: #007bff;
    --transition: all 0.3s ease;
}

/* --- TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-dark); background: #fff; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'Inter', sans-serif; }

/* --- HEADER & MENU --- */
header {
    background: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999; /* En üstte kalsın */
    height: auto;
    min-height: 100px;
}
.logo-link { display: flex; align-items: center; z-index: 1001; }
.logo-img { height: 130px; width: auto; object-fit: contain; transition: 0.3s; }

/* ORTA MENÜ */
.desktop-nav { flex: 1; display: flex; justify-content: center; }
.desktop-nav ul { display: flex; gap: 30px; align-items: center; }
.desktop-nav a { font-weight: 600; font-size: 1.1rem; color: var(--text-dark); position: relative; }
.desktop-nav a:hover, .desktop-nav a.active { color: #d4a000; }
.desktop-nav a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 3px; background: var(--accent); }

/* SAĞ TARAF (Dil ve Hamburger) */
.header-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    position: relative; /* Dropdown için gerekli */
    z-index: 10000; /* Menüden de üstte */
}
.hamburger { display: none; font-size: 2rem; cursor: pointer; color: var(--text-dark); }

/* --- ÖZEL RESİMLİ DİL SEÇİCİ (GÜÇLENDİRİLMİŞ STİL) --- */
.custom-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Görünen Kutu */
.selected-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 15px;
    border: 2px solid #eee; /* Daha belirgin kenarlık */
    border-radius: 30px;
    background: #fff;
    min-width: 100px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Hafif gölge */
}
.selected-lang:hover { border-color: var(--accent); }
.selected-lang span { font-weight: 700; font-size: 0.95rem; color: #333; }
.flag-img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* Açılır Liste */
.lang-options {
    display: none; /* Başlangıçta gizli */
    position: absolute;
    top: 120%; /* Kutunun biraz altı */
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 160px;
    z-index: 10001; /* Her şeyin üstünde */
    overflow: hidden;
    padding: 5px 0;
}

/* Aktif Olduğunda Göster */
.custom-dropdown.active .lang-options { display: block; animation: slideUp 0.2s ease; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
}
.lang-option:hover { background: #f8f9fa; color: var(--blue-dark); padding-left: 25px; }
.lang-option .flag-img { width: 20px; height: 15px; }

@keyframes slideUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* --- DİĞER STİLLER (AYNI KALDI) --- */
.hero-video-container { position: relative; height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video-background { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: -2; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: -1; }
.hero-content-video { position: relative; z-index: 10; color: #fff; text-align: center; padding: 0 20px; width: 100%; max-width: 900px; }
.hero-search-box { position: relative; max-width: 600px; margin: 30px auto 0; }
.hero-search-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; max-height: 400px; overflow-y: auto; padding: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; backdrop-filter: blur(5px); }
.hero-search-results .product-card { background: rgba(255, 255, 255, 0.95); color: #333; text-align: left; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-search-results .product-img-box { height: 150px; }
.hero-search-results p.no-result { color: #fff; font-weight: bold; grid-column: 1 / -1; text-align: center; }

/* Mobiller */
.mobile-nav-overlay { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1000; transition: 0.4s ease; padding-top: 100px; display: flex; flex-direction: column; align-items: center; }
.mobile-nav-overlay.active { right: 0; }
.mobile-nav-overlay a { font-size: 1.2rem; font-weight: 700; display: block; padding: 10px; color: var(--text-dark); border-bottom: 1px solid #eee; }
.backdrop { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); z-index: 999; display: none; }
.backdrop.active { display: block; }

.features, .categories-section, .latest-products, .blog-section, .search-hero { padding: 80px 10%; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 60px; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 5px; background: var(--accent); margin: 20px auto 0; border-radius: 2px; }
.features { background: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; text-align: center; }
.feature-box { padding: 40px; border: 1px solid #eee; border-radius: 12px; transition: var(--transition); background: #fff; }
.feature-icon { font-size: 3rem; color: var(--accent); margin-bottom: 25px; }
.feature-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.cat-card { position: relative; height: 280px; border-radius: 10px; overflow: hidden; cursor: pointer; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cat-card h3 { color: #fff; font-size: 1.6rem; font-weight: 800; text-transform: uppercase; border-bottom: 3px solid var(--accent); padding-bottom: 5px; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card:hover .cat-overlay { background: rgba(0,0,0,0.5); }
.product-grid, .lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 20px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.product-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-5px); }
.product-img-box { width: 100%; height: 220px; margin-bottom: 15px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; border-radius: 6px; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-code { font-size: 0.85rem; color: #555; background: #eee; padding: 4px 8px; border-radius: 4px; display: block; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; cursor: pointer; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.blog-img { width: 100%; height: 240px; object-fit: cover; }
.blog-content { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.85rem; color: #999; margin-bottom: 15px; }
.blog-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; color: var(--primary); }
.search-hero { background: var(--blue-gradient); text-align: center; color: white; padding: 80px 10%; }
.search-box { position: relative; max-width: 700px; margin: 30px auto 0; display: flex; }
.search-input { width: 100%; padding: 20px 30px; border-radius: 50px; border: none; font-size: 1.1rem; outline: none; }
.search-btn { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 60px; background: #eef2f5; border-radius: 50%; border: none; cursor: pointer; color: var(--blue-dark); font-size: 1.2rem; display:flex; align-items:center; justify-content:center; }
.catalog-layout { display: flex; width: 100%; padding: 0 5%; margin-top: 40px; margin-bottom: 50px; gap: 40px; min-height: 600px; }
.sidebar { width: 300px; flex-shrink: 0; }
.sidebar h3 { font-size: 1.3rem; margin-bottom: 20px; border-bottom: 3px solid var(--accent); padding-bottom: 10px; }
.category-tree { list-style: none; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.cat-item { border-bottom: 1px solid #eee; }
.cat-header { padding: 15px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; color: #444; }
.cat-header:hover { background: #f8f9fa; color: var(--blue-dark); }
.cat-sub { list-style: none; display: none; background: #fdfdfd; border-top: 1px solid #eee; }
.show-sub { display: block; }
.cat-sub li { padding: 10px 20px 10px 40px; font-size: 0.95rem; cursor: pointer; color: #666; border-bottom: 1px solid #f5f5f5; }
.cat-sub li:hover { background: #eef2f6; color: var(--blue-dark); padding-left: 45px; }
.cat-sub li.active { background: var(--accent); color: #000; font-weight: bold; }
.content-area { flex: 1; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(5px); }
.modal-content { background: #fff; width: 95%; max-width: 900px; border-radius: 16px; display: flex; overflow: hidden; position: relative; flex-wrap: wrap; box-shadow: 0 25px 50px rgba(0,0,0,0.5); max-height: 90vh; }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 30px; cursor: pointer; color: #333; z-index: 10; background: rgba(255,255,255,0.8); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-img { flex: 1; min-width: 350px; height: auto; object-fit: cover; background: #eee; }
.modal-details { flex: 1; padding: 50px; min-width: 350px; display: flex; flex-direction: column; overflow-y: auto; }
.cta-banner { background: var(--blue-gradient); padding: 80px 10%; text-align: center; color: #fff; }
.btn-white { background: #fff; color: var(--blue-dark); padding: 15px 40px; border-radius: 50px; font-weight: 700; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
footer { background: #111; color: #fff; padding: 80px 10% 30px; margin-top: auto; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-logo { height: 100px; width: auto; object-fit: contain; margin-bottom: 25px; background: #fff; padding: 10px; border-radius: 8px; }
.footer-col h3 { color: var(--accent); margin-bottom: 25px; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: #bbb; line-height: 1.6; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; color: #ccc; transition: 0.3s; }
.footer-col ul li i { color: var(--accent); font-size: 1.2rem; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 30px; color: #666; font-size: 0.95rem; }
.contact-hero { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1423666639041-f142fcb963dc?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; padding: 100px 10%; text-align: center; color: #fff; }
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; padding: 80px 10%; max-width: 1400px; margin: 0 auto; }
.contact-info { flex: 1; min-width: 300px; }
.contact-form-wrapper { flex: 1.5; min-width: 300px; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #eee; }
.info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.info-icon { width: 50px; height: 50px; background: var(--accent); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.info-text h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; outline: none; transition: 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-dark); }
.btn-send { background: var(--primary); color: #fff; padding: 15px 30px; border: none; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 1rem; width: 100%; }
.map-section { width: 100%; height: 450px; filter: grayscale(100%); transition: 0.3s; }
.map-section:hover { filter: grayscale(0%); }
.admin-layout { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: #f4f6f9; }
.admin-sidebar { width: 260px; background: var(--admin-sidebar-bg); color: #fff; flex-shrink: 0; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.1); }
.admin-logo-box { padding: 20px; background: rgba(0,0,0,0.2); text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo-box h2 { font-size: 1.2rem; color: #fff; margin-bottom: 5px; }
.admin-menu { padding: 20px 0; overflow-y: auto; flex: 1; }
.admin-menu a { display: flex; align-items: center; padding: 15px 25px; color: #bbb; font-size: 0.95rem; border-left: 4px solid transparent; transition: 0.2s; }
.admin-menu a i { width: 30px; font-size: 1.1rem; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--admin-active); }
.admin-menu a.active i { color: var(--admin-active); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-header { background: #fff; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); z-index: 100; }
.admin-user-menu { display: flex; gap: 20px; align-items: center; }
.btn-logout { background: #ffebee; color: #c62828; padding: 8px 15px; border-radius: 4px; border:none; cursor:pointer; font-weight:600; }
.admin-content-scroll { flex: 1; overflow-y: auto; padding: 30px; }
.admin-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 25px; margin-bottom: 30px; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.btn-add-new { background: var(--admin-active); color: #fff; padding: 10px 20px; border-radius: 5px; border:none; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:8px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
.admin-table th { background: #f8f9fa; font-weight: 700; color: #555; font-size: 0.9rem; text-transform: uppercase; }
.admin-table tr:hover { background: #f9f9f9; }
.admin-table img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; border: 1px solid #ddd; }
.status-badge { background: #e8f5e9; color: #2e7d32; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.action-btns { display: flex; gap: 8px; }
.btn-action { width: 35px; height: 35px; border-radius: 4px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.btn-edit { background: #17a2b8; }
.btn-del { background: #dc3545; }
.form-container { display: none; background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; }
.form-container.active { display: block; animation: slideDown 0.3s; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ================== MOBİL UYUMLULUK ================== */
@media (max-width: 768px) {
    header { padding: 10px 15px; height: 80px; }
    .logo-img { height: 60px; }
    .desktop-nav { display: none; }
    .hamburger { display: block; font-size: 1.8rem; margin-right: 5px; }
    
    .hero-video-container { height: 100vh; min-height: 500px; }
    .hero-content-video { width: 100%; padding: 0 15px; }
    .hero-title { font-size: 2rem !important; line-height: 1.2; margin-bottom: 15px; }
    .hero-title span { display: block; margin-top: 5px; } 
    .hero-text { font-size: 1rem !important; margin-bottom: 25px !important; line-height: 1.4; }
    .hero-search-box { width: 100%; margin-top: 10px; }
    .search-input { padding: 15px 20px; font-size: 0.95rem; }
    .hero-search-results { grid-template-columns: 1fr; max-height: 250px; } 

    .catalog-layout { flex-direction: column; padding: 0 15px; margin-top: 20px; }
    .sidebar { width: 100%; margin-bottom: 30px; }
    .features, .categories-section, .latest-products, .blog-section, .search-hero, footer { padding: 50px 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-col h3 { border-left: none; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; }
    .footer-logo { margin: 0 auto 20px; }
    .footer-col ul li { justify-content: center; }
    
    .contact-container { flex-direction: column; padding: 50px 20px; }
    .map-section { height: 300px; }
    
    .admin-layout { flex-direction: column; height: auto; overflow: auto; }
    .admin-sidebar { width: 100%; height: auto; }
    .admin-main { width: 100%; }
    .admin-table { display: block; overflow-x: auto; }
}
/* ================== WHATSAPP BUTONU ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9990; /* Header'ın (9999) bir tık altında kalsın */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px); /* Hafif büyüme ve yukarı çıkma */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    color: #fff;
}

/* Mobilde biraz daha küçük ve kenara yakın olsun */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}