﻿

/* Sticky nav bar */
.main-navigation {
    background-color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    width: 250px;
}

.horizontal-menu {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
    .horizontal-menu .nav-link {
        padding: 12px 18px;
        color: var(--white);
        font-weight: 500;
        text-decoration: none;
    }

        .horizontal-menu .nav-link:hover {
            background-color: var(--hover-bg);
            color: var(--primary-dark);
        }


.search-bar {
    width: 250px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    padding: 2px 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

    .search-bar input {
        border: none;
        outline: none;
        background: transparent;
        color: var(--text-color);
    }

    .search-bar button {
        background: none;
        border: none;
        height: 35px;
        aspect-ratio: 1 / 1;
        border-radius: 50%;
        color: var(--primary-dark);
        font-size: 16px;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .search-bar button:hover {
            background: var(--hover-bg);
        }

    .search-bar:hover,
    .search-bar:focus-within {
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }



.category-dropdown-wrapper {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1100;
}

.category-toggle-btn {
    position: relative;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 50px;
    background: var(--primary-dark);
    color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: width 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    white-space: nowrap;
}

.category-arrow {
    font-size: 10px;
    line-height: 1;
}

.category-dropdown-wrapper:hover .category-toggle-btn {
    width: 280px;
}

.category-dropdown-wrapper:hover .category-label,
.category-dropdown-wrapper:hover .category-arrow {
    display: inline-block;
    opacity: 1;
}

.toggle-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-label,
.category-arrow {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}



.category-dropdown-box {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 280px;
}

.vertical-menu h4 {
    font-size: 16px;
    margin: 0 15px 10px;
    border-bottom: 1px solid var(--background-light);
    color: var(--text-color);
    padding-bottom: 4px;
}

.vertical-menu .list-group {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 700px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--white);
}

.parent-category {
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.parent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 600;
    transition: background 0.2s;
}

    .parent-header:hover {
        background: var(--hover-bg);
    }

.parent-toggle-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

    .parent-toggle-arrow.rotate {
        transform: rotate(180deg);
    }

.child-list {
    list-style: none;
    margin: 0;
    padding-left: 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

    .child-list.open {
        max-height: 500px;
        opacity: 1;
    }

.child-category a {
    display: block;
    padding: 6px 10px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

    .child-category a:hover {
        background: var(--hover-bg);
        color: var(--primary-dark);
    }
