/* ===============================
   BW HEADER – STABIL VERSION
   =============================== */

/* RESET (AGRESİF DEĞİL) */
.bw-header * {
    box-sizing: border-box;
}

/* HEADER */
.bw-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0 55px 0 35px;
    overflow: visible;
}

.bw-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* LOGO */
.bw-logo img {
    height: 90px;
    display: block;
}

/* MENU (DESKTOP) */
.bw-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bw-link {
    color: #111;
    font-weight: 500;
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
}

.bw-link:hover {
    color: #abc339;
}

/* SUB MENU – DESKTOP */
.has-sub {
    position: relative;
}

.bw-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 10000;
}

.bw-submenu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
}

.has-sub:hover .bw-submenu {
    display: block;
}

/* MOBILE BUTTON */
.bw-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.bw-menu-btn:hover {
    background:none;
}

.bw-menu-btn span {
    width: 24px;
    height: 2px;
    background: #000;
    display: block;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 991px) {

    .bw-header-inner {
        flex-wrap: wrap; /* EN KRİTİK SATIR */
    }

    .bw-menu-btn {
        display: flex;
        width: 80px;
        background: none;
    }
    

    /* NAV LOGONUN ALTINA DÜŞER */
    .bw-nav {
        width: 100%;
        display: none;
        margin-top: 12px;
    }

    .bw-nav:hover{
        width: 100%;
        display: none;
        margin-top: 12px;
    }

    .bw-nav.active {
        display: block;
    }

    .bw-menu {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
        border-top: 1px solid #eee;
    }

    /* SUBMENU MOBİLDE FLOW İÇİNDE */
    .bw-submenu {
        position: static;
        display: none;
        border: none;
        padding-left: 15px;
        margin-top: 6px;
    }

    .has-sub.open .bw-submenu {
        display: block;
    }
}
