:root {
    --primary: #0B192C; /* Koyu Endüstriyel Lacivert */
    --primary-light: #1E2E4A;
    --accent: #0284C7; /* Elektrik Mavisi */
    --accent-hover: #0369A1;
    --accent-light: #F0F9FF;
    --energy-gold: #F59E0B; /* Enerji Sarısı / Kehribar */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.08);
    --transition: all 0.2s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.topbar {
    background-color: var(--primary);
    color: #94A3B8;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; }
.engine-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; color: #E2E8F0;
}
.engine-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; }

/* Header Navbar */
.navbar {
    background: var(--surface);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; gap: 24px;
}
.brand-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.brand-logo-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.brand-text-main {
    font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; line-height: 1.1;
}
.brand-text-main span { color: var(--accent); }
.brand-sub { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--energy-gold); font-weight: 700; display: block; }

/* Search Bar & Autocomplete */
.search-container { flex: 1; max-width: 520px; position: relative; }
.search-form { display: flex; position: relative; }
.search-input {
    width: 100%; padding: 11px 48px 11px 18px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none; transition: var(--transition);
    background: #F8FAFC;
}
.search-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.search-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 6px;
    background: var(--accent); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
}
.search-btn:hover { background: var(--accent-hover); }

.search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: 8px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    display: none; z-index: 1100; overflow: hidden;
}
.suggestion-item {
    padding: 12px 18px; display: flex; align-items: center; justify-content: space-between;
    color: var(--text-main); text-decoration: none; border-bottom: 1px solid #F1F5F9;
    font-size: 0.88rem; transition: background 0.15s;
}
.suggestion-item:hover { background: #F8FAFC; }
.suggestion-cat { font-size: 0.75rem; color: var(--accent); background: var(--accent-light); padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-btn {
    color: var(--text-main); text-decoration: none; font-size: 0.88rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-btn:hover { background: #F1F5F9; color: var(--accent); }
.btn-erp-nav {
    background: #0B132B; color: #38BDF8 !important; border: 1px solid rgba(56, 189, 248, 0.3);
}
.btn-erp-nav:hover { background: #1C2541; }

.cart-badge {
    background: var(--energy-gold); color: #fff; font-size: 0.72rem; font-weight: 800;
    padding: 2px 7px; border-radius: 12px;
}

/* Main Content Container */
.main-wrapper { min-height: calc(100vh - 350px); padding-bottom: 60px; }

/* Modern Toast */
.toast-notify {
    position: fixed; bottom: 24px; right: 24px; background: var(--primary); color: #fff;
    padding: 14px 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    display: none; z-index: 9999; animation: slideInUp 0.3s ease;
    border-left: 4px solid var(--accent);
}

/* Footer */
.footer {
    background: var(--primary); color: #94A3B8; padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-title { color: #fff; font-size: 0.95rem; margin-bottom: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #38BDF8; }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem;
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; }
    .navbar-inner { flex-wrap: wrap; }
    .search-container { order: 3; max-width: 100%; width: 100%; margin-top: 10px; }
}