﻿
.nav-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-header {
    background: #BC9B42;
    color: white;
    padding: 3px 4px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 200;
    font-size: 14px;
}
/* Navbar */
.top-nav {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0 20px;
    height: 46px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    /*z-index: 1001;*/
    /* border-radius: 8px; */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.new-badge {
    background-color: #f90000;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: bold;
}

.light-image-logo {
    width: 35px;
    height: auto
}

.main-categories {
    display: flex;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .main-categories::-webkit-scrollbar {
        display: none;
    }

    .main-categories li {
        margin: 0 10px;
        position: relative;
        flex-shrink: 0;
    }


    .main-categories a {
        text-decoration: none;
        color: #111;
        font-size: 12px;
        font-weight: 500;
        padding: 8px 5px;
        display: block;
        transition: color 0.2s;
    }

        .main-categories a:hover {
            color: #f27a1a;
            background-color: #f1f1f1;
        }

.left-nav {
    display: flex;
    align-items: center;
}

.categories-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    transition: 0.2s;
}

    .categories-toggle:hover {
        background: #f5f5f5;
    }

    .categories-toggle i {
        margin-right: 8px;
        font-size: 13px;
        color: #555;
    }

    .categories-toggle span {
        font-weight: 600;
        color: #333;
    }

/* Main Categories */
.main-categories-list {
    width: 240px;
    background: #f8f8f8;
    height: 100%;
    overflow-y: auto;
    border-right: 1px solid #e5e5e5;
    border-radius: 8px;
}

.main-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;
}

    .main-category-item:hover,
    .main-category-item.active {
        background: #fff;
    }

    .main-category-item.active {
        border-right: 3px solid #f27a1a;
    }

.category-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.category-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

/* Mega Menu */
.categories-menu {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 256px);
    background: #fff;
    z-index: 1002;
    display: none;
    border-radius: 8px;
}

.categories-container {
    display: flex;
    height: 100%;
}

.subcategories-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Alt Kategoriler */
.subcategory-grid-wrapper {
    display: none;
}

.subcategory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;


}

.subcategory-block {
    flex: 0 1 150px;
    background: #dac9a4;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

    .subcategory-block:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        background: #dac9a4;
    }

    .subcategory-block:active {
        transform: translateY(-2px);
    }

.subcategory-title a {
    font-weight: 600;
    color: white;
    text-decoration: none;
}
/*-----*/
.subcategory-list {
    display: none;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: #dac9a4;
    /*  border: 1px solid #ddd; */
    border-radius: 4px;
    padding: 5px 10px;
    gap: 4px;
    max-height: 200px; /* çok uzun listeyi scrollable yap */
    overflow-y: auto;
    margin-top: 5px;
    animation: fadeIn 0.2s ease-in-out;
}

    .subcategory-list::-webkit-scrollbar {
        width: 6px;
    }

    .subcategory-list::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

        .subcategory-list::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }



.subcategory-block:hover .subcategory-list {
    display: flex;
}

.subcategory-item a {
    display: block;
    color: #666;
    text-decoration: none;
}

    .subcategory-item a:hover {
        color: #f27a1a;
    }


.dropdown-menucustom {
    list-style: none;
    margin: 5px 0 0 10px;
    padding: 0;
    display: none; /* hover’da açılacak */
    flex-direction: column;
    background: #dac9a4;
    border-left: 2px solid #f1f1f1;
}

.subcategory-item:hover > .dropdown-menucustom {
    display: flex;
}

.dropdown-menucustom .list-item a {
    display: block;
    padding: 5px 10px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

    .dropdown-menucustom .list-item a:hover {
        color: #f27a1a;
        background: #fafafa;
    }







/* Overlay */
.categories-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}


/* Küçük açılma animasyonu */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-item a {
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
}

    .subcategory-item a:hover {
        color: #f27a1a;
    }

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .subcategory-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-menu {
        width: 95%;
    }

    .subcategory-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 10px;
    }

    .main-categories {
        justify-content: initial;
    }

    .categories-menu {
        width: 100%;
        left: 0;
        border-radius: 0;
    }

    .categories-container {
        flex-direction: column;
    }

    .main-categories-list {
        width: 100%;
        height: auto;
        max-height: 250px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .main-category-item.active {
        border-right: none;
        border-bottom: 3px solid #f27a1a;
    }

    .subcategories-panel {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-wrap: wrap; /* grid gibi davranır */
        gap: 15px;
    }

    .subcategory-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-toggle span {
        font-size: 10px;
    }

    .main-categories a {
        font-size: 10px;
        margin: 0 5px;
    }

    .subcategory-title {
        font-size: 13px;
    }

    .subcategory-item a {
        font-size: 11px;
    }
}


