/* ============================================================
   HEADER
   ============================================================ */
.header-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* ============================================================
   DESKTOP NAV
   ============================================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links > li > a,
.nav-links > li > form > a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links > li > a::after,
.nav-links > li > form > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #245e83;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links > li > a:hover,
.nav-links > li > form > a:hover {
    color: #245e83;
}

.nav-links > li > a:hover::after,
.nav-links > li > form > a:hover::after {
    width: 100%;
}

.nav-links > li > a svg {
    transition: transform 0.3s ease;
}

.nav-links > li.has-child:hover > a svg {
    transform: rotate(180deg);
}

/* ============================================================
   DROPDOWN (CHILD MENU)
   ============================================================ */
.child-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 10px;
    border-radius: 8px;
    min-width: 220px;
    border: 1px solid #f5f5f5;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;

    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
}

.has-child:hover .child-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.child-menu a {
    display: block;
    padding: 8px 15px;
    color: #555 !important;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.child-menu a::after {
    display: none !important;
}

.child-menu a:hover {
    background-color: #f8f9fa;
    color: #245e83 !important;
    padding-left: 22px;
}

.child-menu::-webkit-scrollbar {
    width: 6px;
}

.child-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.child-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.child-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
    min-width: 120px;
}

.modern-search {
    position: relative;
}

.modern-search input {
    width: 220px;
    padding: 10px 40px 10px 15px;
    border-radius: 25px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.25s ease;
    font-size: 14px;
    outline: none;
}

.modern-search input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    width: 260px;
}

.modern-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* ============================================================
   CART BUTTON
   ============================================================ */
.cart-btn {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    gap: 5px;
}

.modern-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #245e83;
    color: #fff;
    transition: all 0.25s ease;
    text-decoration: none;
}

.modern-cart:hover {
    background: #1d4f6b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.modern-cart svg {
    transition: transform 0.2s ease;
}

.modern-cart:hover svg {
    transform: scale(1.1);
}

/* ============================================================
   MOBİL SIDEBAR
   ============================================================ */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    display: block;
}

.close-sidebar {
    cursor: pointer;
    color: #333;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .search-container {
        max-width: none;
    }

    .logo-desktop {
        display: none;
    }
}
