/* assets/css/style.css - Merkezi Yönetim Dosyası (80px Dev Mobil Arama Çubuğu) */

:root {
    --brand-primary: #F97316;
    --brand-secondary: #65A30D;
    --brand-hover: #EA580C;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --bg-body: #FFFFFF;
    --bg-gray: #F8FAFC;
    --border-color: #E2E8F0;
    --font-main: 'Inter', sans-serif;
    --transition: 0.3s ease;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-hover); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   MASAÜSTÜ HEADER TASARIMI
   ========================================= */

.top-bar-bg { border-bottom: 1px solid var(--border-color); background: var(--bg-body); }
.top-bar { padding: 8px 20px; font-size: 12px; color: var(--text-gray); display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.top-bar-left a { color: #0369A1; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.top-bar-right { display: flex; gap: 20px; font-weight: 600; }
.top-bar-right span { display: flex; align-items: center; gap: 5px; }

.header-main { padding: 20px; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 30px; position: relative; z-index: 100; }
.logo { font-size: 28px; font-weight: 900; color: var(--text-dark); text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -1px; margin: 0; }

.search-box { flex: 1; max-width: 600px; display: flex; height: 50px; border: 2px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: var(--transition); }
.search-box:focus-within { border-color: var(--brand-primary); }
.search-box input { flex: 1; min-width: 0; border: none; padding: 0 20px; outline: none; font-family: var(--font-main); font-size: 15px; }
.search-box button { width: 60px; flex-shrink: 0; background: var(--brand-primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); padding: 0; }
.search-box button:hover { background: var(--brand-hover); }

.header-icons { display: flex; align-items: center; gap: 25px; }
.h-icon-box { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text-dark); background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; transition: var(--transition); }
.h-icon-box .material-symbols-outlined { font-size: 26px; }
.h-icon-text { font-size: 11px; font-weight: 600; color: var(--text-gray); transition: var(--transition); }
.h-icon-box:hover, .h-icon-box:hover .h-icon-text { color: var(--brand-primary); }

.cart-icon-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: #DC2626; color: white; font-size: 10px; font-weight: 800; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid white; z-index: 5; }

.mobile-menu-btn { display: none; }
.mobile-overlay { display: none; }

/* Alt Navigasyon Barı */
.nav-bar-bg { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-body); position: relative; z-index: 90; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; gap: 30px; }
.nav-link { padding: 16px 0; color: var(--text-dark); font-weight: 700; text-decoration: none; font-size: 15px; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.nav-link:hover { color: var(--brand-secondary); }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-body); border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-radius: 0 0 8px 8px; width: 260px; z-index: 200; padding: 10px 0; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { position: relative; }
.dropdown-item > a { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; color: var(--text-gray); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--bg-gray); transition: var(--transition); }
.dropdown-item > a:hover { background: var(--bg-gray); color: var(--brand-secondary); padding-left: 25px; }

.flyout-menu { display: none; position: absolute; top: 0; left: 100%; background: var(--bg-body); border: 1px solid var(--border-color); box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-radius: 8px; width: 240px; z-index: 201; padding: 10px 0; }
.dropdown-item:hover > .flyout-menu { display: block; }
.flyout-menu a { display: block; padding: 10px 20px; color: var(--text-gray); text-decoration: none; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--bg-gray); transition: var(--transition); }
.flyout-menu a:hover { color: var(--brand-secondary); padding-left: 25px; background: var(--bg-gray); }

/* =========================================
   🔥 MOBİL HEADER TASARIMI (TAM FLYERALARM) 🔥
   ========================================= */
@media (max-width: 900px) {
    .top-bar-bg { display: none; }
    .desktop-only { display: none !important; }
    
    .header-main { 
        display: flex; 
        flex-direction: column; 
        padding: 15px; 
        gap: 15px; 
        width: 100%;
    }
    
    /* 1. Logo (En Üstte) */
    .logo { 
        order: 1; 
        margin: 0 auto; 
        font-size: 26px; 
        display: flex; 
        justify-content: center; 
    }
    .logo svg { width: 28px; height: 28px; }

    /* 2. İkonlar (Ortada, Yan Yana, Eşit Dağılım) */
    .header-icons { 
        order: 2; 
        width: 100%; 
        display: flex; 
        justify-content: space-between; 
        gap: 5px; 
    }
    
    .h-icon-box { flex: 1; }
    .h-icon-box .material-symbols-outlined { font-size: 26px; }
    .h-icon-text { font-size: 11px; }
    .mobile-menu-btn { display: flex; }

    /* 3. Arama Çubuğu (En Altta, Çok Daha Kalın ve Ferah: 80px) */
    .search-box { 
        order: 3; 
        width: 100%; 
        max-width: 100%; 
        height: 80px; 
        margin: 0; 
    }
    .search-box input { 
        font-size: 14px; 
        padding: 0 20px; 
        border-radius: 8px 0 0 8px; 
    }
    .search-box button { 
        width: 80px; 
    }
    .search-box button .material-symbols-outlined { 
        font-size: 32px; 
    }

    /* OFF-CANVAS MOBİL MENÜ */
    .mobile-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.6); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(2px); }
    .mobile-overlay.active { opacity: 1; visibility: visible; }

    .nav-bar-bg { position: fixed; top: 0; left: -100%; width: 85%; max-width: 340px; height: 100vh; background: var(--bg-body); z-index: 1000; border: none; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; display: block; }
    .nav-bar-bg.active { left: 0; box-shadow: 20px 0 50px rgba(0,0,0,0.2); }
    
    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--bg-gray); border-bottom: 1px solid var(--border-color); }
    .mobile-menu-header h3 { margin: 0; font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
    .mobile-close-btn { background: none; border: none; padding: 0; color: var(--text-gray); cursor: pointer; display: flex; transition: var(--transition); }
    .mobile-close-btn:hover { color: #DC2626; }

    .nav-container { flex-direction: column; gap: 0; padding: 0; display: flex; }
    .nav-link { padding: 16px 20px; border-bottom: 1px solid var(--border-color); width: 100%; justify-content: space-between; }
    
    .dropdown { position: static; }
    .dropdown-menu { position: static; box-shadow: none; border: none; border-radius: 0; width: 100%; background: var(--bg-gray); display: none; padding: 0; }
    .dropdown-menu.show { display: block; }
    .dropdown-item > a { padding: 15px 30px; border-bottom: 1px solid var(--border-color); }
    
    .flyout-menu { position: static; box-shadow: none; border: none; border-radius: 0; display: none; padding: 0; background: #F1F5F9; width: 100%; }
    .dropdown-item.active > .flyout-menu { display: block; }
    .flyout-menu a { padding: 12px 40px; border-bottom: 1px solid var(--border-color); }
}