.hifine-layout-container {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    align-items: flex-start;
}

.hifine-sidebar-wrapper {
    position: sticky;
    top: 120px;
    width: 280px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.hifine-sidebar-wrapper.is-collapsed {
    width: 0;
    margin-right: -40px;
}

.hifine-sidebar-wrapper.is-collapsed .hifine-cat-filter {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hifine-toggle-btn {
    position: absolute;
    top: 0;
    right: -35px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 11;
    padding: 0;
    transition: all 0.3s ease;
}

.hifine-sidebar-wrapper.is-collapsed .hifine-toggle-btn {
    transform: rotate(180deg);
    right: -16px;
}

.hifine-toggle-btn:hover {
    background: #5cb85c;
    color: #fff;
    border-color: #5cb85c;
}

.hifine-cat-filter {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.hifine-cat-list, 
.hifine-cat-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hifine-cat-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: 48px;
    text-decoration: none !important;
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    line-height: 1;
}

.hifine-cat-item.is-active a {
    color: #5cb85c !important;
    background: #f9fff9;
    font-weight: 700;
    border-left: 3px solid #5cb85c;
}

.hifine-products-wrapper {
    flex: 1;
    min-width: 0;
}

.hifine-hepa-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 15px 0;
    border-bottom: 2px solid #f5f5f5;
}

.nav-hint {
    font-size: 13px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.nav-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hepa-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    height: 46px;
    border-radius: 6px;
    background: #ffffff;
    color: #333 !important;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #e0e0e0;
    text-decoration: none !important;
    transition: all 0.3s ease;
    line-height: 1;
    box-sizing: border-box;
}

.hepa-pill.is-active {
    background: #5cb85c;
    color: #ffffff !important;
    border-color: #4cae4c;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
}

.hf-custom-pagination {
    margin-top: 50px;
    text-align: center;
    border: none !important;
    background: transparent !important;
}

.hf-custom-pagination ul {
    display: inline-flex !important;
    list-style: none !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hf-custom-pagination li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hf-custom-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    background: #fff;
}

.hf-custom-pagination .page-numbers.current {
    background: #5cb85c;
    color: #fff !important;
    border-color: #5cb85c;
}

@media (max-width: 768px) {
    .hifine-layout-container {
        flex-direction: column;
        gap: 20px;
    }
    .hifine-sidebar-wrapper, 
    .hifine-sidebar-wrapper.is-collapsed {
        width: 100%;
        margin-right: 0;
        position: static;
    }
    .hifine-sidebar-wrapper.is-collapsed .hifine-cat-filter {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .hifine-toggle-btn {
        display: none;
    }
    .hifine-cat-filter {
        border: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hifine-cat-list {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    .hifine-cat-item {
        flex: 0 0 auto;
    }
    .hifine-cat-item a {
        border: 1px solid #eee;
        border-radius: 4px;
        white-space: nowrap;
        height: 40px;
        padding: 0 15px;
    }
    .hifine-cat-arrow {
        display: none;
    }
    .hifine-hepa-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .nav-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .hepa-pill {
        flex: 0 0 auto;
        height: 38px;
        padding: 0 15px;
    }
}