::-webkit-scrollbar-thumb:hover { background: #8c939e; }
* { scrollbar-width: auto; scrollbar-color: #b0b5bd #e8eaed; }
.mega-menu { opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.group:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.category-mega-menu {
    width: min(1240px, calc(100vw - 64px));
    max-height: min(72vh, 760px);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.985), rgba(8, 8, 8, 0.99));
    border-color: rgba(255,255,255,0.07) !important;
    box-shadow: 0 34px 84px rgba(0,0,0,.44);
    border-radius: 24px;
    z-index: 200;
}
/* Mobil: Sağa dayalı full-height drawer */
@media (max-width: 767px) {
    .category-mega-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        /* Alt mobil nav'a yapışmasın — nav görünür kalsın (54px + safe-area) */
        bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100vh - 54px - env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 0 !important;
        transform: translateY(-110%) !important;
        opacity: 1 !important;
        visibility: hidden !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
    }
    .category-mega-menu.mobile-open {
        transform: translateY(0) !important;
        visibility: visible !important;
        overflow-y: auto !important;
        display: block !important;
        padding: 0 !important;
        pointer-events: auto !important;
    }
    /* Overlay drawer'ın altında — mobilde gölgelendirme yok ve alt nav bölgesini KAPLAMAZ */
    .category-overlay {
        z-index: 9998 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
        inset: 0 0 auto 0 !important;
        height: calc(100vh - 54px - env(safe-area-inset-bottom, 0px)) !important;
    }
    /* Kullanıcının istediği: Merhaba/Giriş greeting ve quicknav alanı mobil hamburger drawer'da gizlensin */
    .category-mega-menu .amazon-mobile-drawer-header .amazon-drawer-greeting,
    .category-mega-menu .amazon-mobile-drawer-header .amazon-drawer-quicknav {
        display: none !important;
    }
    /* Kategori drawer başlık çubuğu (AliExpress tarzı) */
    .category-mega-menu .amazon-mobile-drawer-header {
        background: #ffffff !important;
        padding: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    .category-mega-menu .amazon-drawer-section-title {
        padding: 10px 14px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb !important;
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .category-mega-menu .cat-drawer-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }
    .category-mega-menu .cat-drawer-logo img {
        height: 22px;
        width: auto;
        object-fit: contain;
        display: block;
    }
    /* Drawer ara (büyüteç) butonu - başlığın içinde üst sağ köşede floating */
    .cat-drawer-close-btn,
    .cat-drawer-search-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f3f4f6;
        color: #475569;
        border: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        cursor: pointer;
    }
    .cat-drawer-close-btn:active,
    .cat-drawer-search-btn:active {
        background: #e5e7eb;
    }
    /* Drawer içindeki tüm linkler tıklanabilir */
    .category-mega-menu a,
    .category-mega-menu button,
    .category-mega-menu .category-parent-item {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* ═══ AliExpress TARZI MOBIL KATEGORI PANELI ═══ */
    /* Drawer tam ekran */
    .category-mega-menu {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    .category-mega-menu.mobile-open {
        background: #ffffff !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        box-shadow: none !important;
        overflow: hidden !important;
        transform: translateX(0) !important;
    }
    /* Grid: sol dikey tablar | sağ alt-kategori içeriği */
    .category-mega-menu > .grid {
        display: grid !important;
        grid-template-columns: 96px minmax(0, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 0 !important;
        height: calc(100dvh - 52px) !important; /* minus header title */
    }
    /* Sağ 3. panel (featured) gizli */
    .category-mega-menu > .grid > :nth-child(3) { display: none !important; }
    /* Sol: ana kategori dikey tab listesi */
    .category-mega-menu > .grid > :nth-child(1) {
        max-height: 100% !important;
        overflow-y: auto !important;
        border-right: 1px solid #e5e7eb !important;
        padding: 0 !important;
        background: #f3f4f6 !important;
    }
    /* Orta: alt kategori panelleri (artık görünür) */
    .category-mega-menu > .grid > :nth-child(2) {
        display: block !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        padding: 12px !important;
        background: #ffffff !important;
    }
    /* Sol ana kategori itemleri (sade tab görünümü) */
    .category-mega-menu .category-parent-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 16px 6px !important;
        margin: 0 !important;
        background: transparent !important;
        color: #475569 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-align: center !important;
        line-height: 1.25 !important;
        border: 0 !important;
        border-left: 3px solid transparent !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    .category-mega-menu .category-parent-item:first-of-type { margin-top: 0 !important; }
    .category-mega-menu .category-parent-item.active {
        background: #ffffff !important;
        color: #0f172a !important;
        border-left-color: #0f172a !important;
        font-weight: 700 !important;
    }
    .category-mega-menu .category-parent-item:hover,
    .category-mega-menu .category-parent-item:active {
        background: rgba(15,23,42,0.06) !important;
        color: #0f172a !important;
    }
    .category-mega-menu .category-parent-item i.fa-angle-right {
        display: none !important;
    }
    /* Sağ panel: alt kategori kartları AliExpress tarzı 3 sütun grid */
    .category-mega-menu .category-panel > .grid,
    .category-mega-menu .category-panel .grid.md\:grid-cols-2 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .category-mega-menu .category-panel .space-y-2 {
        display: contents !important;
    }
    .category-mega-menu .category-panel {
        display: none;
    }
    .category-mega-menu .category-panel.active {
        display: block !important;
    }
    .category-mega-menu .category-child-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 16px 6px !important;
        border-radius: 12px !important;
        background: #f8fafc !important;
        border: 1px solid #e5e7eb !important;
        color: #0f172a !important;
        min-height: 80px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        text-decoration: none !important;
    }
    .category-mega-menu .category-child-link:hover,
    .category-mega-menu .category-child-link:active {
        border-color: #0f172a !important;
        background: #f1f5f9 !important;
    }
    .category-mega-menu .category-child-link span {
        color: #0f172a !important;
        font-size: 11px !important;
        font-weight: 600 !important;
    }

    /* ═══ Amazon tarzı mobil drawer üst paneli ═══ */
    .amazon-mobile-drawer-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(180deg, #0a0f1a 0%, #040608 100%);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 12px;
    }
    .amazon-drawer-greeting {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 18px 16px 14px;
        background: linear-gradient(135deg, rgba(15,23,42,0.14) 0%, rgba(15,23,42,0.04) 55%, transparent 100%);
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .amazon-drawer-avatar {
        width: 44px; height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0f172a, #f59e0b);
        display: flex; align-items: center; justify-content: center;
        color: white; font-size: 18px;
        box-shadow: 0 6px 18px rgba(15,23,42,0.3);
        flex-shrink: 0;
    }
    .amazon-drawer-greeting-text { flex: 1; min-width: 0; }
    .amazon-drawer-hello {
        font-size: 11px;
        color: rgba(255,255,255,0.55);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        font-weight: 600;
    }
    .amazon-drawer-name {
        font-size: 15px;
        color: white;
        font-weight: 700;
        margin-top: 2px;
    }
    .amazon-drawer-name a { color: #0f172a; }
    .amazon-drawer-close {
        width: 36px; height: 36px;
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.75);
        border: 1px solid rgba(255,255,255,0.08);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        font-size: 16px;
    }
    .amazon-drawer-close:active { background: rgba(255,255,255,0.12); }

    .amazon-drawer-quicknav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: rgba(255,255,255,0.03);
        padding: 1px 0;
    }
    .amazon-drawer-quick-item {
        background: #060a12;
        padding: 14px 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        transition: background .15s ease;
    }
    .amazon-drawer-quick-item:active { background: #0d1420; }
    .amazon-drawer-quick-item i {
        font-size: 18px;
        color: #f59e0b;
    }
    .amazon-drawer-quick-item span {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: -0.01em;
        text-align: center;
    }
    .amazon-drawer-section-title {
        padding: 14px 18px 10px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: rgba(255,255,255,0.45);
        font-weight: 700;
        background: #040608;
    }
    /* AliExpress tarzı: 2 sütun grid (sol tab + sağ içerik) — eski stack rules kaldırıldı */
    .category-mega-menu .category-menu-scroll {
        max-height: 100% !important;
    }
    .category-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 9998;
        display: none;
    }
    .category-overlay.active { display: block; }
}
.category-menu-scroll { scrollbar-width: thin; scrollbar-color: #262626 transparent; }
.category-parent-item {
    border: 1px solid transparent;
    transition: all .18s ease;
}
.category-parent-item.active,
.category-parent-item:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 25, 37, 0.92), rgba(10, 14, 20, 0.92));
    border-color: rgba(255,255,255,0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.category-panel { display: none; }
.category-panel.active { display: block; }
.category-child-link {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
    color: #d1d5db;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
    border: 1px solid transparent;
}
.category-child-link:hover {
    background: linear-gradient(180deg, rgba(16, 24, 36, 0.88), rgba(9, 13, 18, 0.88));
    color: #fff;
    border-color: rgba(255,255,255,0.07);
}
.category-trigger {
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.nav-utility-link {
    color: #9aa4b2;
    font-size: 12px;
    transition: color .18s ease;
}
.nav-utility-link:hover { color: #fff; }
.header-action-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: auto;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.header-action-link:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
    transform: translateY(-1px);
}
.header-action-link span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    opacity: .82;
}
.header-action-link:hover span { opacity: 1; }
.user-menu-card {
    width: 260px;
    background: linear-gradient(180deg, rgba(9, 12, 17, 0.98), rgba(6, 8, 11, 0.99));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    box-shadow: 0 28px 64px rgba(0,0,0,.42);
}
/* Header topbar yumuşak gizlenir (display:none yerine max-height + opacity) */
#header-topbar {
    max-height: 80px;
    overflow: hidden;
    transition: max-height .28s cubic-bezier(0.4, 0, 0.2, 1), opacity .2s ease, padding-top .28s ease, padding-bottom .28s ease;
}
#header-topbar.topbar-hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}
#header-mainbar { transition: transform .3s ease, opacity .3s ease; }
#header-mainbar.mainbar-hidden { transform: translateY(-110%); opacity: 0; }
.main-dynamic-offset { padding-top: var(--site-main-offset, 0px) !important; }
@media (max-width: 767px) {
    /* Hamburger mobilde görünmesin — kategoriler alt nav'dan */
    .site-hamburger,
    #hamburger-btn,
    #category-menu-wrapper {
        display: none !important;
    }
    .site-topbar-row {
        /* Logo (sol) | teslimat adresi (sağ) — hamburger yok */
        grid-template-columns: auto minmax(0,1fr);
        gap: 6px;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .site-topbar-row .site-brand-link {
        margin-left: 4px !important;
        justify-content: flex-start;
    }
    /* Logo mobilde daha küçük + sola yaslı */
    .site-topbar-row .site-brand-link img {
        height: 22px !important;
    }
    .header-action-link {
        padding: 10px;
    }
    .header-action-link i {
        font-size: 24px !important;
    }
    .header-action-link span {
        display: none;
    }
    .seller-quick-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 19px !important;
    }
    /* AliExpress tarzı pill arama kutusu — sol ikon sadece, sağ buton yok */
    .search-shell {
        border-radius: 999px !important;
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
    }
    .search-shell::before {
        content: "\f002"; /* fa-magnifying-glass */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #6b7280;
        font-size: 15px;
        padding-left: 16px;
        padding-right: 10px;
        flex-shrink: 0;
    }
    .search-input {
        background: transparent !important;
        color: #0f172a !important;
        padding: 9px 14px 9px 0 !important;
        font-size: 14px !important;
        border: 0 !important;
        line-height: 1.2 !important;
    }
    .search-input::placeholder {
        color: #9ca3af !important;
    }
    /* Mobilde sağdaki büyüteç submit butonunu gizle — AliExpress tarzı sadece input */
    .search-btn {
        display: none !important;
    }
    /* Mobilde yatay scroll olmasın — agresif kilit */
    /* CSS spec: overflow-x: hidden + overflow-y: visible → browser overflow-y'yi auto'ya çevirir
       ve body scroll-container olur, bu da sticky kırar. "clip" bu coercion'u tetiklemiyor. */
    html, body {
        overflow-x: clip !important;
        overflow-y: visible !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    /* Sadece html/body scroll container; main/section'a overflow verirsek sticky kırılıyor */
    .site-container, .site-container-wide, .nav-shell, header, footer {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    main {
        max-width: 100vw !important;
        /* overflow-x YOK — sticky için scroll ancestor = html/body olmalı */
    }
    .site-search-row {
        padding-top: 0 !important;
        padding-bottom: 4px !important;
        /* Üst satır ile arama arasında ne çizgi ne boşluk */
        border-top: 0 !important;
        margin-top: 0 !important;
    }
    /* Mobilde glass-nav: tek düz siyah (gradient yok), gölge/kenar yok */
    .glass-nav,
    #header-topbar.glass-nav,
    #header-mainbar.glass-nav {
        background: #000000 !important;
        box-shadow: none !important;
        border-bottom: 0 !important;
        border-top: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    /* Header'ın kendi body/alt border'ları da gitsin */
    header.w-full.fixed {
        box-shadow: none !important;
        border: 0 !important;
    }
    /* Topbar alt padding sıfır — search-row ile aralık bırakma */
    .site-topbar-row {
        padding-top: 6px !important;
        padding-bottom: 0 !important;
        min-height: 44px !important;
    }
    /* Eski sarı search-btn kuralları kaldırıldı — pill tasarımında buton yok */
    /* Amazon tarzı mobil teslimat adresi (kutusuz, düz metin) */
    .mobile-delivery-chip {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-self: end;
        max-width: 100%;
        min-width: 0;
        padding: 0 4px;
        text-decoration: none;
        color: #e2e8f0;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    .mobile-delivery-chip:active {
        opacity: 0.75;
    }
    .mobile-delivery-chip i {
        color: #f27a1a;
        font-size: 14px;
        flex-shrink: 0;
    }
    .mobile-delivery-chip .mdc-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
        min-width: 0;
        overflow: hidden;
    }
    .mobile-delivery-chip .mdc-sub {
        font-size: 9px;
        color: #94a3b8;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-delivery-chip .mdc-main {
        font-size: 12px;
        color: #f1f5f9;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Drawer mobilde sağdan açılır — left override yok */
}
/* Üretici kısayol butonu (A harfi) */
.seller-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8b55a, #0f172a);
    color: #1a1300;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 8px 20px rgba(15,23,42,0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.seller-quick-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15,23,42,0.34);
}
.color-glow-card { --card-glow-rgb: 120, 132, 156; }
.color-glow-card .color-glow-media { position: relative; isolation: isolate; overflow: hidden; }
.color-glow-card .color-glow-media::before,
.color-glow-card .color-glow-media::after {
    content: none !important;
    display: none !important;
}
.auth-panel { background: rgba(8, 8, 8, 0.62); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; }
.auth-panel {
    background:
        linear-gradient(180deg, rgba(13, 18, 27, 0.78), rgba(6, 8, 12, 0.92));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

/* Live Search Sonuçları */
#search-results {
    scrollbar-width: thin;
    scrollbar-color: #333 #050505;
    background: linear-gradient(180deg, rgba(9, 12, 17, 0.98), rgba(5, 7, 10, 0.98));
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.42);
}
.surface-panel {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.soft-divider {
    border-color: var(--line) !important;
}
.frost-chip {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.market-input,
.market-select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1e293b;
    border-radius: 18px;
}
.market-input::placeholder { color: #94a3b8; }
.market-input:focus,
.market-select:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}
.market-button-light {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.market-button-dark {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1e293b;
    border-radius: 18px;
}
.market-card-shell {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 26px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.market-image-shell {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 24px;
}
