:root { --bg-color: #fafafa; --card-bg: #ffffff; --text-main: #111111; --text-muted: #6b7280; --border-color: #e5e7eb; --accent: #f39c12; }

        html.dark-mode {
            --bg-color: #0f172a;
            --card-bg: #1e293b;
            --text-main: #f1f5f9;
            --text-muted: #94a3b8;
            --border-color: #334155;
        }

        html, body {
            overflow-x: hidden !important;
            width: 100% !important;
            max-width: 100vw !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); padding-bottom: 50px; }

        .navbar { background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); }
        .navbar-brand { font-weight: 700; color: var(--text-main) !important; letter-spacing: -0.5px; }

        .hero-banner { background: #111; color: white; padding: 60px 0 100px 0; text-align: center; border-radius: 0 0 40px 40px; margin-bottom: -50px; }
        .search-wrapper { max-width: 650px; margin: 0 auto; position: relative; z-index: 10; }
        .search-input { width: 100%; padding: 20px 20px 20px 60px; border-radius: 16px; border: none; font-size: 17px; background-color: var(--card-bg); color: var(--text-main); box-shadow: 0 10px 25px rgba(0,0,0,0.1); transition: 0.3s; }
        .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 20px; z-index: 2; pointer-events: none; }
        .search-submit-btn {
            position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
            border: none; border-radius: 12px; background: var(--accent); color: #111;
            font-weight: 700; padding: 10px 18px; font-size: 14px;
        }
        .search-results-hero {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 24px;
            margin-bottom: 28px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
        }
        .search-cat-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }
        .search-cat-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            background: var(--bg-color);
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: 0.2s;
        }
        .search-cat-pill:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            color: var(--text-main);
        }
        .search-cat-pill img { height: 28px; width: auto; object-fit: contain; }
        .search-cat-pill small {
            display: block;
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
        }

        .search-suggest-form { z-index: 120; }
        .search-suggest-dropdown {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 8px);
            background: #151b2e;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            box-shadow: 0 24px 48px rgba(0,0,0,0.35);
            overflow: hidden;
            display: none;
            text-align: left;
        }
        html.dark-mode .search-suggest-dropdown {
            background: #0f1524;
            border-color: rgba(255,255,255,0.1);
        }
        .search-suggest-dropdown.open { display: block; }
        .search-suggest-label {
            padding: 10px 16px 6px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .search-suggest-list { max-height: 320px; overflow-y: auto; }
        .search-suggest-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            text-decoration: none;
            color: #f8fafc;
            border-top: 1px solid rgba(255,255,255,0.06);
            transition: background 0.15s;
        }
        .search-suggest-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
        .search-suggest-thumb {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255,255,255,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }
        .search-suggest-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
        .search-suggest-text strong {
            display: block;
            font-size: 14px;
            font-weight: 700;
            line-height: 1.25;
        }
        .search-suggest-sub {
            display: block;
            font-size: 12px;
            color: #94a3b8;
            margin-top: 2px;
        }
        .search-suggest-more {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border-top: 1px solid rgba(255,255,255,0.08);
            background: rgba(0,0,0,0.2);
            color: #f8fafc;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
        }
        .search-suggest-more:hover { background: rgba(0,0,0,0.35); color: #fff; }

        .mobile-nav-search {
            display: none !important;
        }

        .mobile-header-shell {
            gap: 8px;
            padding-top: 10px !important;
            padding-bottom: 10px !important;
        }
        .mobile-header-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
        }
        .mobile-header-main .navbar-brand {
            font-size: 1.05rem !important;
            white-space: nowrap;
        }
        .mobile-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .mobile-header-tools {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            width: 100%;
            padding: 10px;
            border-radius: 16px;
            background: var(--card-bg);
            box-shadow: inset 0 0 0 1px var(--border-color);
        }
        .mob-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 40px;
            padding: 0 12px;
            border-radius: 13px;
            font-size: 12px;
            font-weight: 700;
            white-space: nowrap;
            text-decoration: none;
            flex-shrink: 0;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .mob-chip:active { transform: scale(0.97); }
        .mob-chip--balance {
            background: linear-gradient(135deg, rgba(243, 156, 18, 0.14), rgba(243, 156, 18, 0.06));
            color: var(--text-main);
            box-shadow: inset 0 0 0 1px rgba(243, 156, 18, 0.35);
        }
        .mob-chip--balance i {
            font-size: 15px;
            color: #d97706;
        }
        .mob-chip--balance small {
            font-size: 10px;
            font-weight: 600;
            opacity: 0.65;
        }
        .mob-chip--admin {
            background: rgba(239, 68, 68, 0.12);
            color: #dc2626;
            box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.3);
            font-size: 11px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }
        .mob-tool-btn {
            width: 40px;
            height: 40px;
            border-radius: 13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            border: none;
            padding: 0;
            cursor: pointer;
            flex-shrink: 0;
            background: var(--bg-color);
            color: var(--text-main);
            box-shadow: inset 0 0 0 1px var(--border-color);
            transition: transform 0.15s ease, background 0.15s ease;
        }
        .mob-tool-btn i { font-size: 16px; line-height: 1; }
        .mob-tool-btn:active { transform: scale(0.96); }
        .mob-tool-btn--success {
            background: rgba(16, 185, 129, 0.1);
            color: #059669;
            box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
        }
        .mob-tool-btn--accent {
            background: rgba(243, 156, 18, 0.12);
            color: #d97706;
            box-shadow: inset 0 0 0 1px rgba(243, 156, 18, 0.32);
        }
        .mob-tool-btn--neutral {
            background: var(--bg-color);
            color: var(--text-main);
        }
        .mob-tool-btn--ghost {
            background: var(--card-bg);
        }
        .mob-lang-select {
            height: 36px;
            min-width: 88px;
            max-width: 110px;
            padding: 0 8px;
            border-radius: 12px;
            border: none;
            background: var(--bg-color);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: inset 0 0 0 1px var(--border-color);
            appearance: none;
        }
        html.dark-mode .mob-chip--balance {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
            box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
        }
        html.dark-mode .mob-chip--balance i { color: #fbbf24; }
        html.dark-mode .mob-chip--admin {
            background: rgba(248, 113, 113, 0.14);
            color: #fca5a5;
            box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.28);
        }
        html.dark-mode .mob-tool-btn--success {
            background: rgba(52, 211, 153, 0.12);
            color: #6ee7b7;
            box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.25);
        }
        html.dark-mode .mob-tool-btn--accent {
            background: rgba(251, 191, 36, 0.14);
            color: #fcd34d;
            box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.28);
        }

        body.search-suggest-open { overflow: hidden; }
        .search-suggest-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            z-index: 1090;
        }
        body.search-suggest-open .search-suggest-backdrop { display: block; }

        .category-nav { display: flex; gap: 12px; margin: 80px auto 40px auto; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; align-items: center; padding: 10px; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .category-nav::-webkit-scrollbar { display: none; }

        .cat-pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 12px; background-color: var(--card-bg); color: var(--text-muted); border: 1px solid var(--border-color); font-size: 13px; font-weight: 600; transition: 0.2s; text-decoration: none; height: 45px !important; white-space: nowrap; flex-shrink: 0; }
        .cat-pill:hover { background-color: #111; color: #fff; }

        .category-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 20px; padding: 30px 20px; transition: 0.3s; text-decoration: none; color: var(--text-main); display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
        .category-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
        .cat-icon-box { font-size: 3rem; margin-bottom: 15px; }
        .cat-title { font-weight: 700; font-size: 16px; margin: 0; color: var(--text-main); }

        /* Boosted */
        .category-card.promoted { border: 2px solid #f59e0b !important; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15) !important; background: linear-gradient(135deg, #fff9eb 0%, #fff3cd 100%) !important; }
        .promoted-badge { font-size: 10px; font-weight: 700; background: #f59e0b; color: #111; padding: 2px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }

        .lang-btn { font-size: 13px; padding: 6px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.2s; display: block; }
        .lang-btn:hover { background: #f3f4f6; }
        .lang-btn.active-lang { background: #f39c12; color: white; }
        .dropdown-menu { border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 6px; min-width: 140px; }
        .world-icon { font-size: 20px; cursor: pointer; color: #111; transition: 0.2s; }
        .world-icon:hover { color: var(--accent); }

        /* FİLTRE PANELİ */
        .filter-sidebar { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
        .filter-sidebar .form-control, .filter-sidebar .form-select { border-radius: 10px; border: 1px solid var(--border-color); padding: 10px 14px; font-size: 14px; margin-bottom: 15px; }
        .filter-sidebar .form-check { margin-bottom: 10px; }
        .filter-sidebar .form-check-label { font-size: 14px; font-weight: 500; margin-left: 4px; }
        .filter-sidebar .btn { width: 100%; margin-bottom: 8px; border-radius: 12px; font-weight: 600; }

        /* Teslimat rozetleri */
        .delivery-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .delivery-auto { background: #dcfce7; color: #166534; }
        .delivery-manual { background: #fef3c7; color: #92400e; }


        /* Dark mode'da teslimat rozetleri daha okunaklı */
html.dark-mode .delivery-auto {
    background: #14532d;       /* koyu yeşil arka plan */
    color: #bbf7d0;           /* açık yeşil yazı */
    border: 1px solid #22c55e;
}
html.dark-mode .delivery-manual {
    background: #713f12;       /* koyu turuncu/kahve arka plan */
    color: #fef3c7;           /* açık sarı yazı */
    border: 1px solid #f59e0b;
}

        /* Mobil alt navigasyon stili (Dark Mode uyumlu) */
        .mobile-bottom-nav { display: none; }
        @media (max-width: 768px) {
            .mobile-bottom-nav {
                display: flex; position: fixed; bottom: 0; left: 0; right: 0;
                background: #ffffff;
                border-top: 1px solid #e5e7eb;
                z-index: 1000; justify-content: space-around; padding: 8px 0 10px 0;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
            }
            .mobile-bottom-nav a {
                color: #6b7280; text-align: center; text-decoration: none;
                font-size: 11px; font-weight: 600; display: flex; flex-direction: column;
                align-items: center; gap: 2px;
            }
            .mobile-bottom-nav a.active { color: #f39c12; }
            .mobile-bottom-nav i { font-size: 20px; }
            body { padding-bottom: 70px; }

            html.dark-mode .mobile-bottom-nav {
                background: #1e293b !important;
                border-top: 1px solid #334155 !important;
                box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
            }
            html.dark-mode .mobile-bottom-nav a {
                color: #94a3b8 !important;
            }
            html.dark-mode .mobile-bottom-nav a.active {
                color: #f59e0b !important;
            }
        }

        /* Mobil navbar */
        .mobile-navbar-row {
            width: 100%;
            display: flex;
            align-items: center;
        }

        /* Dil select kutusu */
        .lang-select {
            background: transparent;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 4px 6px;
            font-size: 13px;
            color: var(--text-main);
            outline: none;
            cursor: pointer;
            max-width: 110px;
            appearance: auto;
        }
        html.dark-mode .lang-select {
            border-color: #555;
            color: #f1f5f9;
            background: #1e293b;
        }

        /* Mobil auth butonları */
        .mobile-auth-btn {
            font-size: 12px; font-weight: 600; padding: 6px 14px;
            border-radius: 20px; text-decoration: none;
            white-space: nowrap; min-width: 50px; text-align: center;
        }
        .mobile-auth-btn.login { color: #111; border: 1px solid #ccc; }
        .mobile-auth-btn.register { background: #111; color: #fff; }
        html.dark-mode .mobile-auth-btn.login { color: #f1f5f9; border-color: #555; }
        html.dark-mode .mobile-auth-btn.register { background: #f59e0b; color: #111; }

        @media (max-width: 768px) {
            .mobile-header-guest-bar {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: 6px;
                width: 100%;
            }
            .mobile-flash-wrap {
                margin-top: 0 !important;
                padding-top: 0 !important;
            }
            .mobile-flash-wrap:empty {
                display: none;
            }
            .hero-banner {
                padding: 18px 0 52px;
                margin-bottom: -28px;
                overflow: visible;
                position: relative;
                z-index: 20;
            }
            .hero-banner h1,
            .hero-banner .hero-title {
                font-size: 22px;
                margin-top: 0 !important;
                margin-bottom: 8px !important;
            }
            .hero-banner p,
            .hero-banner .hero-subtitle {
                font-size: 14px;
                margin-bottom: 16px !important;
            }
            .hero-banner .search-wrapper {
                display: block;
                max-width: 100%;
            }
            .hero-banner .search-input {
                padding: 14px 88px 14px 46px;
                font-size: 16px;
                border-radius: 14px;
                box-shadow: 0 10px 24px rgba(0,0,0,0.18);
            }
            .hero-banner .search-icon { left: 14px; font-size: 18px; }
            .hero-banner .search-submit-btn {
                padding: 8px 14px;
                font-size: 13px;
                border-radius: 10px;
            }
            .search-results-hero > form.search-wrapper { display: block; }
            .search-results-hero .search-input {
                padding: 14px 88px 14px 46px;
                font-size: 16px;
                border-radius: 14px;
                box-shadow: none;
                border: 1px solid var(--border-color);
            }
            .search-suggest-form { z-index: 1100; }
            .search-suggest-dropdown.search-suggest-dropdown-mobile {
                position: fixed;
                left: 12px !important;
                right: 12px !important;
                width: auto !important;
                top: auto;
                max-height: min(62vh, 420px);
                z-index: 1110;
                -webkit-overflow-scrolling: touch;
            }
            .search-suggest-dropdown.search-suggest-dropdown-mobile .search-suggest-list {
                max-height: calc(min(62vh, 420px) - 96px);
            }
            .search-suggest-item:active { background: rgba(255,255,255,0.12); }
            .category-nav { margin: 44px auto 24px auto; position: relative; z-index: 1; }
            .cat-pill { font-size: 11px; padding: 8px 14px; height: 38px !important; }
            .category-card div:first-child { height: 140px; }
            .filter-sidebar { margin-bottom: 15px; }

            .container {
                max-width: 100% !important;
                padding-left: 12px !important;
                padding-right: 12px !important;
                overflow-x: hidden !important;
            }
            .row { margin-left: 0 !important; margin-right: 0 !important; }
            .filter-sidebar { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
            #itemGrid .col-6 { padding-left: 6px !important; padding-right: 6px !important; }
            .category-card { width: 100% !important; }
        }

        /* Dark mode mobil navbar yazıları */
        html.dark-mode .navbar .text-dark {
            color: #f1f5f9 !important;
        }
