.smartmenu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 20px;
    position: relative;
    width: 100%;
    background: var(--menu-bg-color, #333333);
    box-shadow: var(--menu-box-shadow, none);
    border-radius: 5px;
}

.smartmenu-container {
    position: relative;
    width: 100%;
}

.smartmenu-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: var(--menu-align, flex-start);
}

.smartmenu-nav li {
    position: relative;
}

.smartmenu-nav > li > a {
    color: var(--menu-text-color, #ffffff);
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    font-size: var(--menu-font-size, 16px);
    transition: background-color 0.3s ease;
}

.smartmenu-nav > li > a:hover {
    background-color: var(--menu-hover-color, #00aaff);
}

.smartmenu-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--submenu-bg-color, #ffffff);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    border-radius: 5px;
}

.smartmenu-nav .sub-menu li a {
    color: var(--submenu-text-color, #333333);
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    font-size: var(--submenu-font-size, 14px);
}

.smartmenu-nav .sub-menu li a:hover {
    background-color: var(--submenu-hover-color, #f0f0f0);
}

.smartmenu-nav .smartmenu-mega .sub-menu {
    width: 100%;
    left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 20px;
}

.smartmenu-nav li:hover > .sub-menu {
    display: block;
}

.smartmenu-logo {
    display: inline-block;
    margin-right: 20px;
    flex-shrink: 0;
}

.smartmenu-logo img {
    display: block;
    max-height: 50px;
    vertical-align: middle;
}

.smartmenu-hamburger {
    display: none;
    width: var(--hamburger-size, 30px);
    height: calc(var(--hamburger-size, 30px) / 1.5);
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.smartmenu-hamburger span {
    background: var(--hamburger-color, #ffffff);
    height: calc(var(--hamburger-size, 30px) / 10);
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.smartmenu-hamburger span:nth-child(1) {
    top: 0;
}

.smartmenu-hamburger span:nth-child(2) {
    top: calc(var(--hamburger-size, 30px) / 3);
}

.smartmenu-hamburger span:nth-child(3) {
    top: calc(var(--hamburger-size, 30px) * 2 / 3);
}

.smartmenu-hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: calc(var(--hamburger-size, 30px) / 3);
}

.smartmenu-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.smartmenu-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: calc(var(--hamburger-size, 30px) / 3);
}

@media (max-width: 768px) {
    .smartmenu-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .smartmenu-hamburger {
        display: block;
    }

    .smartmenu-nav {
        display: none;
        flex-direction: column;
        width: var(--mobile-menu-width, 100%);
        position: absolute;
        top: calc(100% + var(--mobile-menu-padding, 10px));
        left: 0;
        background: var(--mobile-menu-bg-color, #444444);
        z-index: 999;
        border-radius: 0 0 5px 5px;
    }

    .smartmenu-nav.active {
        display: flex !important;
    }

    .smartmenu-nav > li {
        width: 100%;
    }

    .smartmenu-nav > li > a {
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
        font-size: var(--mobile-menu-font-size, 16px);
    }

    .smartmenu-nav .sub-menu {
        position: static;
        box-shadow: none;
        background: var(--mobile-submenu-bg-color, #555555);
        width: 100%;
    }

    .smartmenu-nav .sub-menu li a {
        color: var(--mobile-submenu-text-color, #ffffff);
        padding-left: 30px;
        font-size: var(--mobile-submenu-font-size, 14px);
    }

    .smartmenu-nav .sub-menu li a:hover {
        background-color: var(--mobile-submenu-hover-color, #666666);
    }

    .smartmenu-nav .smartmenu-mega .sub-menu {
        grid-template-columns: 1fr;
    }
}

:root {
    --menu-align: flex-start;
}