/* ========== MEGA MENU NAVIGATION ========== */

/* Kategori Butonu */
.hb-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #F68220;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hb-category-btn:hover {
    background: #e0741c;
}

.hb-category-btn.active {
    background: #d46918;
}

.hb-category-btn i.icli {
    font-size: 18px;
}

.hb-category-btn .fa-chevron-down {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.hb-category-btn.active .fa-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .hb-category-btn {
        display: none;
    }
    
    .hb-mega-menu {
        display: none !important;
    }
}

/* Mega Menu */
.hb-mega-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 1000px;
    max-height: 600px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.hb-mega-menu.active,
.header-nav-left:hover .hb-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hb-mega-menu-container {
    display: flex;
    height: 100%;
    max-height: 600px;
}

/* Sol Sidebar - Kategoriler */
.hb-category-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    flex-shrink: 0;
}

.hb-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.hb-category-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid #e8e8e8;
}

.hb-category-item:last-child {
    border-bottom: none;
}

.hb-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.hb-category-link:hover,
.hb-category-item.active .hb-category-link {
    background: white;
    color: #F68220;
}

.hb-category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.hb-category-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.hb-category-count {
    background: #e0e0e0;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.hb-category-item.active .hb-category-count {
    background: #F68220;
    color: white;
}

.hb-category-arrow {
    color: #999;
    font-size: 11px;
    margin-left: auto;
}

.hb-category-item.active .hb-category-arrow {
    color: #F68220;
}

/* Sağ Panel - Alt Kategoriler */
.hb-subcategory-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hb-subcategory-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.hb-subcategory-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hb-subcategory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F68220;
}

.hb-subcategory-title {
    font-size: 18px;
    font-weight: 700;
    color: #F68220;
    text-decoration: none;
}

.hb-subcategory-title:hover {
    color: #d46918;
}

.hb-subcategory-total {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.hb-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hb-subcategory-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hb-subcategory-link {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hb-subcategory-link:hover {
    color: #F68220;
}

.hb-subcategory-badge {
    background: #F68220;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.hb-subcategory-level3 {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 12px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hb-subcategory-level3 li {
    margin: 0;
}

.hb-subcategory-level3-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 4px 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hb-subcategory-level3-link:hover {
    color: #F68220;
    padding-left: 4px;
}

.hb-subcategory-level3-badge {
    background: #999;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

/* Scrollbar Styling */
.hb-category-sidebar::-webkit-scrollbar,
.hb-subcategory-content::-webkit-scrollbar {
    width: 6px;
}

.hb-category-sidebar::-webkit-scrollbar-track,
.hb-subcategory-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.hb-category-sidebar::-webkit-scrollbar-thumb,
.hb-subcategory-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.hb-category-sidebar::-webkit-scrollbar-thumb:hover,
.hb-subcategory-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Responsive */
@media (max-width: 1200px) {
    .hb-mega-menu {
        width: 900px;
    }
    
    .hb-subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .hb-mega-menu {
        width: 100%;
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .hb-mega-menu.active {
        transform: translateX(-50%) translateY(0);
    }
    
    .hb-category-sidebar {
        width: 240px;
    }
    
    .hb-subcategory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobilde navigation menüsü gizli - mobil menü kullanılıyor */
    .hb-category-btn,
    .hb-mega-menu {
        display: none !important;
    }
}

