@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

.main-menu00758 {
    width: 100%;
    max-width: 1250px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}





.main-menu-wrapper {
    width: 100%;
    position: fixed;
    top: 65px; /* header yüksekliği */
    left: 0;
    right: 0;
    z-index: 201;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    display: flex;
    justify-content: center;
}


  



.main-menu00758 ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu00758 li {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #979797;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding-right: 20px;
    position: relative;
}

.main-menu00758 li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1.5px;
    margin-right: 8px;
    background-color: #d9d9d9;
}

.main-menu00758 li i {
    font-size: 20px;
    color: #008080;
    margin-right: 6px;
}

.main-menu00758 li a {
    margin-left: 0;
    text-decoration: none;
    color: #333;
}

/* Kategoriler için Stiller */
.categories-container {
    width: 170px;
    position: relative;
}

.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}

.categories-header span {
    margin-left: 10px;
    font-size: 12px;
}

.categories-dropdown {
    visibility: hidden;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    transition: all 0.1s ease;
    width: 290px;
    max-height: 70vh;
    overflow-y: auto;
    left: 0;
    top: 100%;
    z-index: 999;
}

.categories-dropdown::-webkit-scrollbar {
    width: 10px;
}

.categories-dropdown::-webkit-scrollbar-thumb {
    background-color: #007782;
    border-radius: 10px;
}

.categories-dropdown::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.categories-dropdown.open {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
    width: 320px;
    margin-left: 0px;
    margin-top: -2px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #4f4f4f;
    gap: 7px;
}

.category-item:hover {
    background-color: #eaeaea;
}

.category-icon {
    margin-right: 20px;
}

.icon-resim {
    font-size: 16px;
    color: #007782;
}

/* Mevcut stillerin üstüne ekleyin veya değiştirin */
.subcategory-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    position: relative; /* Sağ kaydırma için pozisyon eklendi */
}

.subcategory-list.open {
    max-height: 700px;
    opacity: 1;
    overflow: visible;
    left: 5px; /* Açıldığında 5px sağa kayar */
}

/* Alt kategori ikonları için stil */
.subcategory-item i {
    font-size: 14px; /* İkon boyutu */
    color: #007782; /* İkon rengi, mevcut temaya uyumlu */
    margin-right: 5px; /* İkon ile metin arası boşluk */
}

.subcategory-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px solid #ccc;
    margin-left: 30px;
    color: black;
    white-space: nowrap;
    width: 220px;
    box-sizing: border-box;
}

.subcategory-item:hover {
    background-color: #e0e0e0;
}

.subcategory-item a {
    text-decoration: none;
    color: #080873;
    font-size: 15px;
}

.subcategory-item a:hover {
    color: #007782;
}

.icon_header {
    color: #007782 !important;
    font-size: 18px;
    padding-right: 7px;
}

.category-item.active-category {
    background-color: #d0d0d0 !important; /* açık gri tonu */
    color: #000 !important; /* aktif metin rengi */
}

.category-item.active-category:hover {
    background-color: #c0c0c0 !important; /* hoverda biraz daha koyu gri */
}

/* Birinci alt kategori (ana kategorinin hemen altındaki ilk alt menü) */
.categories-dropdown .subcategory-list > .category-item {
    padding-left: 10px !important; /* 10px sağa kaydır */
   margin-left: 20px;
}

/* İkinci alt kategori (birinci alt kategorinin altındaki ikinci alt menü) */
.categories-dropdown .subcategory-list .subcategory-list > .category-item {
    padding-left: 20px !important; /* ikinci alt menüyü daha içeri al */
    font-style: normal !important; /* normal stil */
}

/* Mobil Responsive Ayarları */
@media (max-width: 768px) {
    .main-menu00758 {
        display: none;
    }

    .main-menu00758 ul {
        flex-direction: column;
        align-items: center;
    }

    .main-menu00758 li {
        font-size: 14px;
        padding: 10px 0;
    }

    .main-menu00758 li i {
        font-size: 18px;
    }

    .categories-dropdown {
        width: 100%;
        position: fixed;
        top: 105px;
        left: 0;
    }

    .subcategory-list {
        position: static;
        width: 100%;
    }

    .subcategory-list.open {
        max-height: 500px;
    }
}