header {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 140px;
    width: 100%;
    z-index: 100;
}
header .preheader {
    padding: 20px 50px;
    width: 100%;
    height: 80px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 20px;
}
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.5s ease;
}
@keyframes slideDown {
    from {
        top: -100px;
    }
    to {
        top: 0;
    }
}
header .logo {
    width: 150px;
    height: auto;
}
header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
header .sideicons {
    display: flex;
    font-size: 18px;
    align-items: center;
    gap: 20px;
}

header .searchbar {
    position: relative;
    width: 30%;
    display: flex;
    justify-content: center;
}
header .searchbar input {
    height: 45px;
    width: 100%;
    padding: 0px 10px 0px 45px;
    border: 1px solid #ccc;
    border-radius: 80px;
    outline: none;
    font-size: 16px;
}
header .searchbar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}
header .navigation {
    width: 100%;
    height: 60px;
    padding: 20px 50px;
    border-top: #e4e4e4 1px solid;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation .menu {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 20px;
}
.navigation .menu li {
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}
.navigation .menu li:hover {
    color: #ff0000;
}
.navigation .menu li.active {
    color: #ff0000;
}
.navigation .menu li.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #ff0000;
    margin-top: 5px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    header .sideicons {
        font-size: 12px;
    }
    header .searchbar {
        width: 50%;
    }
    header .preheader {
        padding: 20px;
    }
    header .navigation {
        padding: 10px 20px;
    }
    .navigation .menu {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navigation .menu li {
        font-size: 16px;
    }
    header .sideicons {
        gap: 10px;
    }
    header {
        height: auto;
    }
}
header .sideicons i {
    cursor: pointer;
}
header .sideicons i:hover {
    color: #ff0000;
}

.navigation .menu li a {
    text-decoration: none;
    color: inherit;
}
.navigation .menu li a:hover {
    color: #ff0000;
}
.navigation .menu li .submenu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin-top: -5px;
    border-radius: 5px;
}
.navigation .menu li:hover .submenu {
    display: block;
    animation: alternateFadeIn 0.3s ease;
}
@keyframes alternateFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.navigation .menu li .submenu li {
    padding: 10px 20px;
    white-space: nowrap;
}
.navigation .menu li .submenu li:hover {
    background: #f5f5f5;
}
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.navigation .mobile-search {
    display: none;
}
@media (max-width: 768px) {
    .preheader .searchbar {
        display: none;
    }
    .searchbar.mobile-search {
        display: flex;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .navigation .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    .navigation .menu.active {
        display: flex;
        padding: 10px;
        animation: slideDownMenu 0.3s ease;
    }

    .navigation .menu.active li {
        padding: 10px 15px;
    }
    .navigation .menu.active li ul {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        margin-top: 0;
        border-radius: 0;
        animation: none;
    }
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger .lines {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .hamburger .lines div {
        width: 25px;
        height: 3px;
        background: #333;
    }
    .hamburger.active .lines div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .lines div:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .lines div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}



