/* Header layout */
.websoft-nav.nav-bar {
    top: 48px;
    background: #fff;
    border-bottom: 1px solid rgba(33, 58, 91, 0.08);
    z-index: 9998;
}

.websoft-nav.nav-bar.scrolling {
    box-shadow: 0 8px 24px rgba(33, 58, 91, 0.08);
}

.websoft-nav .nav-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 76px;
    gap: 12px;
}

.websoft-nav .logo {
    flex: 0 0 auto;
    height: 40px;
    margin-right: 4px;
}

.websoft-nav .logo img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.websoft-nav .nav-bar-menu {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

.websoft-nav .nav-bar-menu-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.websoft-nav .nav-bar-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 2px;
    margin: 0 !important;
}

.websoft-nav .nav-bar-links .link,
.websoft-nav .drop-down .drop-down-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: #213a5b !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    border-radius: 8px;
    transition: 0.2s ease;
}

.websoft-nav .nav-bar-links .link:hover,
.websoft-nav .drop-down .drop-down-btn:hover {
    color: #1e824c !important;
    background: rgba(30, 130, 76, 0.08);
    opacity: 1;
}

.websoft-nav .drop-down .drop-down-menu {
    border-radius: 10px;
    border: 1px solid rgba(33, 58, 91, 0.1);
    box-shadow: 0 12px 32px rgba(33, 58, 91, 0.12);
    padding: 6px;
}

.websoft-nav .nav-bar-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.websoft-nav a.link.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(33, 58, 91, 0.12) !important;
    border-radius: 10px;
    color: #213a5b !important;
    background: transparent !important;
}

.websoft-nav .cart-btn .cart-counter {
    background: #1e824c !important;
}

.websoft-nav .nav-bar-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(33, 58, 91, 0.12);
    border-radius: 10px;
    background: #fff;
    color: #213a5b;
    cursor: pointer;
}

.websoft-nav .nav-bar-menu-header {
    display: none;
}

.websoft-nav .nav-bar-buttons--mobile {
    display: none;
}

/* Desktop */
@media (min-width: 1400px) {
    .websoft-nav .nav-bar-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        width: auto;
        height: auto;
    }

    .websoft-nav .nav-bar-menu .overlay {
        display: none !important;
    }

    .websoft-nav .nav-bar-buttons--mobile {
        display: none !important;
    }

    .websoft-nav .nav-bar-menu-btn {
        display: none !important;
    }
}

/* Mobile & tablet */
@media (max-width: 1399.98px) {
    .websoft-nav .nav-bar-menu {
        position: fixed !important;
        inset: 0;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        visibility: hidden;
        opacity: 0;
        transition: 0.25s ease;
    }

    .websoft-nav .nav-bar-menu.show {
        visibility: visible;
        opacity: 1;
    }

    .websoft-nav .nav-bar-menu .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(13, 23, 38, 0.45);
    }

    .websoft-nav .nav-bar-menu-inner {
        position: fixed;
        top: 0;
        right: -320px;
        flex-direction: column;
        align-items: stretch;
        width: min(320px, 88vw) !important;
        height: 100dvh !important;
        padding: 16px;
        background: #fff;
        overflow-y: auto;
        transition: 0.25s ease;
        z-index: 10000;
    }

    .websoft-nav .nav-bar-menu.show .nav-bar-menu-inner {
        right: 0;
    }

    .websoft-nav .nav-bar-menu-header {
        display: flex;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(33, 58, 91, 0.08);
    }

    .websoft-nav .nav-bar-menu-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(33, 58, 91, 0.12);
        border-radius: 8px;
        cursor: pointer;
    }

    .websoft-nav .nav-bar-links {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .websoft-nav .nav-bar-links .link,
    .websoft-nav .drop-down .drop-down-btn {
        width: 100%;
        padding: 12px 0;
    }

    .websoft-nav .nav-bar-buttons--mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(33, 58, 91, 0.08);
    }

    .websoft-nav .nav-bar-buttons--mobile .btn {
        width: 100%;
    }

    .websoft-nav .nav-bar-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 575.98px) {
    .websoft-nav .logo img {
        max-width: 130px;
    }

    .websoft-nav .nav-bar-container {
        gap: 8px;
    }
}
