/* =============================================
   HEADER KATEGORİLER MEGA MENU
   NALBURİS.COM - v4.0 FULL OPTIMIZE
   ============================================= */

/* Navbar düzeni */
#menu .container {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap;
}

/* KATEGORİLER WRAPPER */
.hdr-categories-wrap {
    position: static;
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 8px;
    z-index: 9999;
}

/* KATEGORİLER BUTONU */
.hdr-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5a623;
    background: linear-gradient(135deg, #f5a623 0%, #e09410 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 9px 16px;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
    user-select: none;
    transition: all 0.2s ease;
    height: 38px;
    line-height: 1;
    border: none;
    outline: none;
    position: relative;
    z-index: 10001;
    box-shadow: 0 2px 6px rgba(245,166,35,0.35);
}

.hdr-cat-btn:hover {
    background: linear-gradient(135deg, #e09410 0%, #c8820e 100%);
    box-shadow: 0 3px 10px rgba(245,166,35,0.5);
    transform: translateY(-1px);
}

.hdr-cat-btn .fa-bars {
    font-size: 15px;
    flex-shrink: 0;
}

.hdr-cat-arrow {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.hdr-categories-wrap:hover .hdr-cat-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN PANEL */
.hdr-cat-dropdown {
    display: none;
    position: fixed;
    width: 290px;
    background: #fff;
    border-top: 3px solid #f5a623;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10000;
    padding: 6px 0;
    max-height: 78vh;
    overflow-y: auto;
    overflow-x: visible;
}

/* Scrollbar */
.hdr-cat-dropdown::-webkit-scrollbar { width: 4px; }
.hdr-cat-dropdown::-webkit-scrollbar-track { background: #f9f9f9; }
.hdr-cat-dropdown::-webkit-scrollbar-thumb { background: #f5a623; border-radius: 2px; }

/* KATEGORİ LİSTESİ */
.hdr-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.hdr-cat-item {
    position: relative;
    overflow: visible;
}

/* Her kategori için renk şeridi solda */
.hdr-cat-link {
    display: flex !important;
    align-items: center;
    padding: 9px 14px 9px 12px;
    color: #2c2c2c !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s, padding-left 0.15s;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.hdr-cat-link:hover {
    background: linear-gradient(90deg, #fff8ee 0%, #fff 100%);
    color: #f5a623 !important;
    text-decoration: none !important;
    padding-left: 18px;
}

/* Kategori ikonu */
.hdr-cat-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    transition: transform 0.15s;
}

.hdr-cat-link:hover .hdr-cat-icon-wrap {
    transform: scale(1.1);
}

/* Renk sınıfları */
.hdr-ic-orange  { background: #fff3e0; color: #f57c00; }
.hdr-ic-blue    { background: #e3f2fd; color: #1565c0; }
.hdr-ic-green   { background: #e8f5e9; color: #2e7d32; }
.hdr-ic-red     { background: #fce4ec; color: #c62828; }
.hdr-ic-purple  { background: #f3e5f5; color: #6a1b9a; }
.hdr-ic-teal    { background: #e0f2f1; color: #00695c; }
.hdr-ic-amber   { background: #fffde7; color: #f9a825; }
.hdr-ic-brown   { background: #efebe9; color: #4e342e; }
.hdr-ic-indigo  { background: #e8eaf6; color: #283593; }
.hdr-ic-pink    { background: #fce4ec; color: #ad1457; }
.hdr-ic-cyan    { background: #e0f7fa; color: #006064; }
.hdr-ic-lime    { background: #f9fbe7; color: #558b2f; }
.hdr-ic-gray    { background: #f5f5f5; color: #424242; }
.hdr-ic-deep    { background: #ede7f6; color: #4527a0; }

/* Kategori adı */
.hdr-cat-name {
    flex: 1;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.3px;
}

/* Ok ikonu */
.hdr-cat-chevron {
    font-size: 10px;
    color: #ccc;
    margin-left: auto;
    flex-shrink: 0;
}

/* Son item border yok */
.hdr-cat-list > .hdr-cat-item:last-child > .hdr-cat-link {
    border-bottom: none;
}

/* Hover'da chevron rengi */
.hdr-cat-link:hover .hdr-cat-chevron {
    color: #f5a623;
}

/* Supermenu alanı */
#menu .container > div[style*="padding:0px"] {
    flex: 1 1 auto;
}

/* ============================================
   MOBİL
   ============================================ */
@media (max-width: 1199px) {
    .hdr-categories-wrap { display: none !important; }
}
@media (min-width: 1200px) {
    .hdr-categories-wrap { display: flex !important; }
}