/* =====================================================
   MOBİL SIDEBAR MENÜ
   ===================================================== */
.bs-category-menu {
    position: relative; width: 100%; height: 100%;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden; display: flex; flex-direction: column;
}
.bs-menu-level {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex; flex-direction: column; overflow: hidden;
}
.bs-menu-level.active        { transform: translateX(0); }
.bs-menu-level-0             { position: relative; transform: translateX(0); height: 100%; }
.bs-menu-level-0.slide-out   { position: absolute; transform: translateX(-100%); }

/* Header */
.bs-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; background: #fff; flex-shrink: 0;
}
.bs-menu-title  { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.bs-menu-back {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 36px !important; height: 36px !important;
    border: none !important; background: #f5f5f5 !important; border-radius: 50% !important;
    cursor: pointer !important; color: #333 !important; margin-right: 12px !important; flex-shrink: 0 !important;
}
.bs-menu-back:hover { background: #eee !important; color: #f27a1a !important; }

/* Tab bar */
.bs-tab-bar {
    display: flex; background: #fff; border-bottom: 1px solid #eee;
    flex-shrink: 0; position: relative;
}
.bs-tab-bar::after {
    content: ''; position: absolute; bottom: -10px; left: 0; right: 0; height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,.06), rgba(0,0,0,0));
    pointer-events: none; z-index: 5;
}
.bs-tab {
    flex: 1 !important; padding: 14px 16px !important;
    border: none !important; background: transparent !important;
    font-size: 15px !important; font-weight: 600 !important; color: #666 !important;
    cursor: pointer !important; position: relative !important; transition: color .2s !important;
}
.bs-tab:hover        { color: #333 !important; }
.bs-tab.active       { color: #f27a1a !important; }
.bs-tab.active::after {
    content: '' !important; position: absolute !important; bottom: -1px !important; left: 0 !important; right: 0 !important;
    height: 3px !important; background: #f27a1a !important; border-radius: 3px 3px 0 0 !important;
}

/* Tab content */
.bs-tab-content        { display: none; flex: 1; overflow: hidden; position: relative; }
.bs-tab-content.active { display: flex; flex-direction: column; }

/* Scroll area */
.bs-menu-scroll-area {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 20px 16px 60px;
}

/* Promo card */
.bs-promo-section { margin-bottom: 16px; }
.bs-promo-card {
    display: flex; align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    border: 1.5px solid #ffcdd2; border-radius: 12px;
    text-decoration: none; transition: all .2s; position: relative;
}
.bs-promo-card:hover { border-color: #e53935; background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); }
.bs-promo-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 10px; margin-right: 14px; color: #e53935; flex-shrink: 0;
}
.bs-promo-icon svg     { width: 26px; height: 26px; }
.bs-promo-content      { flex: 1; display: flex; flex-direction: column; }
.bs-promo-title        { font-size: 15px; font-weight: 700; color: #c62828; }
.bs-promo-subtitle     { font-size: 12px; color: #e57373; margin-top: 2px; }
.bs-promo-badge {
    position: absolute; top: -8px; right: 12px;
    padding: 4px 10px; background: #e53935; color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 6px; text-transform: uppercase;
}
.bs-promo-arrow { color: #e57373; flex-shrink: 0; margin-left: 8px; }

/* Category grid */
.bs-category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bs-category-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 12px; background: #fff; border: 1.5px solid #eee; border-radius: 12px;
    text-decoration: none; transition: all .2s; min-height: 110px; position: relative;
}
.bs-category-card:hover,
.bs-category-card:active  { border-color: #f27a1a; background: #fff9f5; }
.bs-card-icon             { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; color: #f27a1a; }
.bs-card-icon svg         { width: 32px; height: 32px; }
.bs-card-icon img.bs-cat-img { width: 40px !important; height: 40px !important; object-fit: cover !important; border-radius: 8px !important; display: block !important; }
.bs-card-name             { font-size: 13px; font-weight: 600; color: #333; text-align: center; line-height: 1.3; }
.bs-service-card .bs-card-icon { color: #7b1fa2; }
.bs-service-card:hover,
.bs-service-card:active   { border-color: #7b1fa2; background: #faf5fc; }

/* Fade overlay at bottom */
.bs-menu-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 50px;
    background: linear-gradient(to top, rgba(245,245,245,.95) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none; z-index: 5;
}

/* Submenu list */
.bs-submenu-scroll    { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bs-submenu-list      { padding: 8px 0; padding-bottom: 80px; }
.bs-submenu-item {
    display: flex; align-items: center;
    padding: 14px 20px; text-decoration: none; color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.bs-submenu-item:hover        { background: #fafafa; }
.bs-submenu-icon              { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; margin-right: 14px; color: #f27a1a; }
.bs-submenu-icon svg          { width: 24px; height: 24px; }
.bs-submenu-icon img.bs-cat-img { width: 32px !important; height: 32px !important; object-fit: cover !important; border-radius: 6px !important; display: block !important; }
.bs-submenu-text              { flex: 1; font-size: 15px; font-weight: 500; }
.bs-submenu-arrow             { color: #ccc; display: flex; align-items: center; }
.bs-submenu-item:hover .bs-submenu-arrow { color: #f27a1a; }
.bs-view-all-btn {
    display: flex; align-items: center; justify-content: center;
    margin: 16px 20px; padding: 14px;
    background: #f27a1a; color: #fff; text-decoration: none;
    border-radius: 10px; font-weight: 600; font-size: 14px;
}
.bs-view-all-btn:hover { background: #e06a0a; color: #fff; }

/* Overlay + Sidebar */
.bs-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.4); z-index: 9998;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.bs-menu-overlay.active { opacity: 1; visibility: visible; }
.bs-menu-sidebar {
    position: fixed; top: 0; left: -100%; width: 80%; max-width: 340px; height: 100%;
    background: #fff; z-index: 9999;
    transition: left .3s ease;
    box-shadow: 4px 0 25px rgba(0,0,0,.15);
    display: flex; flex-direction: column; overflow: hidden;
}
.bs-menu-sidebar.active { left: 0; }
.bs-menu-sidebar .bs-category-menu  { height: 100%; width: 100%; display: flex; flex-direction: column; }
.bs-menu-sidebar .bs-menu-level     { height: 100%; display: flex; flex-direction: column; }
.bs-menu-sidebar .bs-menu-level-0   { display: flex; flex-direction: column; }
.bs-menu-sidebar .bs-tab-content    { flex: 1; min-height: 0; }
.bs-menu-sidebar #bs-submenu-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; pointer-events: none;
}
.bs-menu-sidebar #bs-submenu-container .bs-menu-level { pointer-events: auto; }

/* Close button */
.bs-menu-close {
    position: absolute !important; top: 16px !important; right: 16px !important;
    width: 36px !important; height: 36px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    border: none !important; background: #f5f5f5 !important; border-radius: 50% !important;
    cursor: pointer !important; color: #333 !important; z-index: 9999 !important;
}
.bs-menu-close:hover { background: #eee !important; color: #f27a1a !important; }
.bs-menu-close svg   { width: 20px !important; height: 20px !important; stroke-width: 2.5 !important; }

/* Hamburger trigger */
.bs-hamburger-trigger {
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
    gap: 0 !important; padding: 8px 12px !important;
    border: none !important; background: transparent !important; cursor: pointer !important; width: auto !important;
}
.bs-hamburger-trigger svg         { width: 22px !important; height: 22px !important; color: #333 !important; }
.bs-hamburger-text                { font-size: 10px !important; font-weight: 600 !important; color: #333 !important; margin-top: 0 !important; }
.bs-hamburger-trigger:hover       { background: transparent !important; }
.bs-hamburger-trigger:hover svg,
.bs-hamburger-trigger:hover .bs-hamburger-text { color: #f27a1a !important; }

/* =====================================================
   MEGA MENÜ (masaüstü)
   ===================================================== */
.bs-mega-menu {
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
}
.bs-mega-menu .bs-mega-nav {
    display: flex; align-items: center;
    max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative;
    overflow: hidden;
}
.bs-mega-menu .bs-mega-trigger-wrapper { position: static; flex-shrink: 0; }
.bs-mega-menu .bs-mega-trigger {
    display: flex !important; align-items: center !important; gap: 6px !important; padding: 0 !important; width: 150px !important;
    background: transparent !important; color: #333 !important; border: none !important;
    font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important;
}
.bs-mega-menu .bs-mega-trigger:hover                         { color: #f27a1a !important; }
.bs-mega-menu .bs-mega-trigger svg                           { transition: transform .2s; }
.bs-mega-menu .bs-mega-trigger-wrapper:hover .bs-mega-trigger svg { transform: rotate(180deg); }

/* Dropdown */
.bs-mega-menu .bs-mega-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; background: #fff;
    border-radius: 0 0 8px 8px; border-top: 2px solid #f27a1a;
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
    z-index: 9999; max-height: 75vh; overflow: hidden;
}
.bs-mega-menu .bs-mega-trigger-wrapper:hover .bs-mega-dropdown { display: flex; }
.bs-mega-menu.loading .bs-mega-dropdown                        { display: none !important; }

/* Parent list */
.bs-mega-menu .bs-mega-parents {
    width: 220px; background: #fafafa;
    padding: 8px 0; border-right: 1px solid #eee; overflow-y: auto;
}
.bs-mega-menu .bs-mega-parent-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; color: #333; text-decoration: none;
    font-size: 13px; font-weight: 500; border-left: 3px solid transparent;
}
.bs-mega-menu .bs-mega-parent-item:hover,
.bs-mega-menu .bs-mega-parent-item.active { background: #fff; color: #f27a1a; border-left-color: #f27a1a; }
.bs-mega-menu .bs-mega-parent-item svg                         { color: #ccc; }
.bs-mega-menu .bs-mega-parent-item:hover svg,
.bs-mega-menu .bs-mega-parent-item.active svg                  { color: #f27a1a; }

/* Children panel */
.bs-mega-menu .bs-mega-children     { flex: 1; padding: 20px 24px; max-height: 70vh; overflow-y: auto; }
.bs-mega-menu .bs-mega-child-panel  { display: none; }
.bs-mega-menu .bs-mega-child-panel.active { display: block; }

/* Columns */
.bs-mega-menu .bs-mega-columns      { column-count: 5; column-gap: 30px; }
.bs-mega-menu .bs-mega-column       { break-inside: avoid; margin-bottom: 20px; }
.bs-mega-menu .bs-mega-column-title {
    display: block; font-size: 13px; font-weight: 600; color: #f27a1a;
    text-decoration: none; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #eee;
}
.bs-mega-menu .bs-mega-column-title:hover { color: #e06a0a; }
.bs-mega-menu .bs-mega-column-list  { list-style: none; margin: 0; padding: 0; }
.bs-mega-menu .bs-mega-column-list li { margin-bottom: 5px; }
.bs-mega-menu .bs-mega-column-list a  { font-size: 12px; color: #555; text-decoration: none; }
.bs-mega-menu .bs-mega-column-list a:hover              { color: #f27a1a; }
.bs-mega-menu .bs-mega-view-all-item                    { margin-top: 6px; }
.bs-mega-menu .bs-mega-view-all-item a                  { color: #333 !important; font-weight: 700; }
.bs-mega-menu .bs-mega-view-all-item a:hover            { color: #f27a1a !important; }
.bs-mega-menu .bs-mega-empty {
    display: flex; align-items: center; justify-content: center; min-height: 200px;
}
.bs-mega-menu .bs-mega-view-all-btn {
    padding: 12px 24px; background: #f27a1a; color: #fff;
    text-decoration: none; border-radius: 6px; font-weight: 600;
}
.bs-mega-menu .bs-mega-view-all-btn:hover { background: #e06a0a; color: #fff; }

/* Horizontal nav */
.bs-mega-menu .bs-mega-horizontal-nav {
    display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
    flex-wrap: nowrap; overflow-x: auto; flex: 1; min-width: 0;
    scrollbar-width: none; -ms-overflow-style: none;
}
.bs-mega-menu .bs-mega-horizontal-nav::-webkit-scrollbar { display: none; }
.bs-mega-menu .bs-mega-nav-item           { position: relative; margin-bottom: 0 !important; padding: 0 4px; }
.bs-mega-menu .bs-mega-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 8px; color: #333; text-decoration: none;
    font-size: 13px; font-weight: 500; white-space: nowrap;
}
.bs-mega-menu .bs-mega-nav-link:hover                 { color: #f27a1a; }
.bs-mega-menu .bs-mega-nav-highlight .bs-mega-nav-link {
    color: #f27a1a; font-weight: 600; padding-right: 24px; position: relative;
}
.bs-mega-menu .bs-mega-badge {
    position: absolute; top: 3px; right: -5px;
    padding: 2px 5px; background: #e53935; color: #fff;
    font-size: 9px; font-weight: 700; border-radius: 4px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 380px) {
    .bs-menu-sidebar    { width: 88%; }
    .bs-category-grid   { gap: 10px; }
    .bs-category-card   { padding: 16px 10px; min-height: 100px; }
    .bs-card-icon svg   { width: 28px; height: 28px; }
    .bs-card-name       { font-size: 12px; }
}

@media (max-width: 1400px) { .bs-mega-menu .bs-mega-columns { column-count: 4; } }

@media (max-width: 1200px) {
    .bs-mega-menu .bs-mega-nav-link  { padding: 10px 6px; font-size: 12px; }
    .bs-mega-menu .bs-mega-columns   { column-count: 3; }
}

@media (max-width: 1024px) {
    .bs-mega-menu { display: none; }
}

@media (min-width: 1025px) {
    .bs-hamburger-trigger,
    .bs-mobile-header,
    .bs-menu-overlay,
    .bs-menu-sidebar { display: none !important; }
}
