/* WRAP */
.lnp-menu-wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 5px 10px;
    border-top: 2px solid #33cc33;
    border-left: 10px solid #33cc33;
    border-right: 10px solid #33cc33;
    border-bottom: 2px solid #33cc33;
}

/* MENU */
.lnp-menu ul{
    list-style:none;
    margin:0;
    padding:0;
}

.lnp-menu > ul{
    display:flex;
    gap: 10px;
}

.lnp-menu > ul > li{
    position: relative;
    margin: 0px;
    /*background-color: #f9f9f9;*/
    padding: 0px 5px;
    border-radius: 10px;
    /*border: 1px solid #e9c82e;*/
}

.lnp-menu li{
    position: relative;
    margin: 0px;
}

.lnp-menu a{
    text-decoration:none;
    color: #007bff;
    font-size: 18px;
    font-weight:500;
    padding:8px 5px;
    display:flex;
    align-items:center;
    gap:5px;
    transition:0.2s;
}
.lnp-menu a i{
    padding-bottom: 3px;
}

.lnp-menu a:hover{
    color:#ff4d4f;
}

/* DROPDOWN */
.lnp-menu ul ul{
    position:absolute;
    top:100%;
    left:0;
    display:none;
    flex-direction:column;
    min-width:220px;
    background: #fff;
    border-radius:10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    padding:10px 0;
    z-index:999;
}

.lnp-menu ul ul li{
    width:100%;
    white-space: nowrap;
}

.lnp-menu ul ul a{
    color: #0000cc;
    font-size: 15px;
    padding:10px 15px;
    width:100%;
}

/* hover show */
.lnp-menu li:hover > ul{
    display:flex;
}

/* level 3 bay ngang */
.lnp-menu ul ul ul{
    top:0;
    left:100%;
}

/* RIGHT */
.lnp-right{
    display:flex;
    align-items:center;
    gap:10px;
}

/* FILTER */
.lnp-filter{
    color: #007bff;
    width:40px;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius: 50px;
    background:#f5f5f5;
    cursor:pointer;
    transition:0.2s;
    border: 2px dashed #33cc33;
}

.lnp-filter:hover{
    background:#ff4d4f;
    color:#fff;
}

/* SORT */
.lnp-sort{
    position:relative;
}

.lnp-sort-toggle{
    color: #007bff;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    gap:6px;
    padding:8px 12px;
    background:#f5f5f5;
    border-radius: 50px;
    cursor:pointer;
    transition:0.2s;
    border: 2px dashed #33cc33;
}
.lnp-sort-toggle i{
    padding-left: 2px;
}

.lnp-sort-toggle:hover{
    background:#ff4d4f;
    color:#fff;
}

/* DROPDOWN SORT */
.lnp-sort-dropdown{
    color: #0000cc;
    position:absolute;
    top:120%;
    right:0;
    background:#fff;
    border-radius:12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    padding:10px 0;
    display:none;
    min-width:180px;
    z-index: 101;
}

.lnp-sort-dropdown div{
    padding:10px 15px;
    cursor:pointer;
    transition:0.2s;
}

.lnp-sort-dropdown div:hover{
    background:#f5f5f5;
}

/* ACTIVE */
.lnp-sort.active .lnp-sort-dropdown{
    display:block;
}

/*TITLE*/
.lnp-page-title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 5px 0px 5px 10px;
    /*border-radius: 10px;*/
    border-bottom: 1px solid #000000;
}

.lnp-page-title span{
    text-transform: uppercase;
    font-weight: 600;
    font-size: 20px;
    text-shadow: -3px 2px 6px #bfb5b5;
}
.lnp-page-title span i{
    margin-right: 10px;
}

.lnp-sort-text{
    color:#ff4d4f;
    font-weight:600;
}

/* ẨN MOBILE */
.lnp-mobile-menu-top, .lnp-mobile-submenu{
    display:none;
}


/* Khi lock scroll, sẽ thêm class 'lnp-no-scroll' vào body */
body.lnp-no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* POP UP TAG*/

/* Overlay nền */
.lnp-tag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none; /* sẽ bật khi popup mở */
}

/* Popup chính */
.lnp-tag-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none; /* bật khi cần */
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Header */
.lnp-tag-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
}

.lnp-tag-popup-header button.lnp-tag-popup-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.lnp-tag-popup-header button.lnp-tag-popup-close:hover {
    color: red;
}

/* Danh sách tag */
.lnp-tag-list {
    max-height: 300px; /* chiều cao tối đa */
    overflow-y: auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
}

.lnp-tag-list label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.lnp-tag-list label:hover {
    background: #e0e0e0;
}

.lnp-tag-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0px;
}

/* Footer */
.lnp-tag-popup-footer {
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f5f5f5;
}

.lnp-tag-popup-footer button.lnp-tag-apply {
    padding: 8px 18px;
    background: #ff3b3b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.lnp-tag-popup-footer button.lnp-tag-apply:hover {
    background: #e22e2e;
}

/* Scrollbar đẹp */
.lnp-tag-list::-webkit-scrollbar {
    width: 6px;
}

.lnp-tag-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.lnp-tag-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* Hiển thị popup khi active */
.lnp-tag-popup.active,
.lnp-tag-overlay.active {
    display: flex;
}


@media(max-width: 768px){
    .lnp-menu-wrap{
        padding: 7px 0px;
        border-radius: 10px;
        border: none;
        gap: 5px;
        margin-bottom: 10px;
        box-shadow: none;
    }
    
    .lnp-left {
        overflow-x: auto;
    }
    /* Chrome, Edge, Safari */
    .lnp-left::-webkit-scrollbar {
        display: none;
    }
    
    /* Firefox */
    .lnp-left {
        scrollbar-width: none; /* ẩn scrollbar */
        -ms-overflow-style: none; /* IE 10+ */
    }
    
    /* Giữ vẫn scroll được */
    .lnp-left {
        overflow-x: auto;
    }
    .lnp-right{
        gap: 5px;
        padding: 0px 0px 0px 5px;
        border-left: 1px solid #33cc33;
    }
    .lnp-filter, .lnp-sort-toggle{
        border-radius: 10px;
        border: 1px dashed #33cc33;
    }
    .lnp-page-title{
        padding: 10px 0px;
    }
    .lnp-page-title span {
        font-size: 17px;
    }
    .lnp-page-title span i {
        margin-right: 5px;
    }
    /* MENU CHO MOBILE*/
    .lnp-mobile-menu-wrap {
        position: relative;
        width: 100%;
    }
    
    /* Nút ngang scroll */
    .lnp-mobile-menu-top {
        display: flex;
        border-radius: 50px;
        background: #fff;
        gap: 5px;
    }
    
    .lnp-mobile-menu-top::-webkit-scrollbar {
        display: none;
    }
    
    .lnp-mobile-cat {
        flex: 0 0 auto;
        border-radius: 10px;
        padding: 0px 15px;
        border: none;
        background: none;
        cursor: pointer;
        font-weight: 600;
        white-space: nowrap;
        margin: 0px;
        border: 1px dashed #33cc33;
        color: #007bff;
        background: #fff9f7;
    }
    
    .lnp-mobile-cat i{
        padding-bottom: 3px;
    }
    
    .lnp-mobile-cat.active {
        color: #007bff;
        border: 1px dashed #4dbaff;
        background-color: #caffea;
    }
    
    /* Submenu */
    .lnp-mobile-submenu {
        display: none;
        position: fixed;
        top: 170px; /* phía dưới menu top */
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 100;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 10px 15px 15px 15px;
        border-radius: 0px 0px 10px 10px;
    }
    
    .lnp-mobile-submenu ul {
        margin: 0;
        padding: 10px;
        list-style: none;
        border: 2px dashed #4dbaff;
        border-radius: 10px;
    }
    
    .lnp-mobile-submenu li {
        /*padding: 10px 15px;*/
    }
    
    .lnp-mobile-submenu li a {
        text-decoration: none;
        color: #0000cc;
        display: block;
    }
    
    /* Overlay */
    .lnp-overlay {
        display: none;
        position: fixed;
        top: 170px;
        left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.3);
        z-index: 99;
    }
    

}