/* General wrapper for the navigation */
.dynamic-navigation__head {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

/* Desktop Navigation */
.desktop__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.desktop__list li {
    position: relative;
}

.desktop__list a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    border: solid 1px #ee4326;
}

.desktop__list a:visited {
    color: black;
}

/* Hover and active state for desktop navigation links */
.desktop__list a:hover,
.desktop__list a:focus {
    background-color: #ee4326; /* Hover effect */
    color: #fff;
}

.desktop__list a.active {
    color: #ee4326; /* Active link color */
    font-weight: 700;
}

/* Mobile Navigation */
.mobile.icon .category {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
}

.mobile.icon .category img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.mobile__list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    background-color: #fff;
    width: 100%;
    top: 50px;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile__list li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.mobile__list a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

/* Hover effect for mobile links */
.mobile__list a:hover {
    color: #ee4326;
}

/* Toggle mobile menu visibility when icon is active */
.mobile.icon.active .mobile__list {
    display: block;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .desktop__list {
        display: none;  /* Hide desktop menu on mobile */
    }

    .mobile.icon {
        width: 100%;
        display: block; /* Show mobile icon on small screens */
    }
}

/* Desktop-specific styles */
@media (min-width: 768px) {
    .mobile.icon {
        display: none;  /* Hide mobile menu toggle on desktop */
    }

    .desktop__list {
        display: flex;  /* Show desktop navigation on larger screens */
    }
}