/* 🔹 Wrapper: sidebar + main content */
.wc-product-table-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    /* flex-wrap: wrap; */
}

/* Sidebar */
.wc-filter-sidebar {
    position: sticky;
    top: 80px;   /* adjust based on your site header height */
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 5;
}
.wc-filter-sidebar .widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

/* Category list */

.wc-cat-hidden {
    display: none;
}

.wc-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wc-category-list li {
    margin-bottom: 8px;
}
.wc-category-list li a {
    display: block;
    padding: 8px 12px;
    color: #092d7b;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.wc-category-list li.active a,
.wc-category-list li.current-cat a,
.wc-category-list li a:hover {
    background-color: #092d7b;
    color: #fff;
}

/* Main content */
.wc-main-content {
    width: 75%;
}

/* Search bar */
.wc-search-filter {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}
.wc-search-filter input {
    width: 100%;
    padding-left: 65px !important;
    padding-right: 115px !important;
    height: 50px !important;
    font-size: 15px;
    border: 1px solid #80808052;
    border-radius: 5px;
    box-shadow: rgba(0,0,0,0.06) 0px 4px 8px;
}
.wc-search-filter button {
    position: absolute;
    right: 5px;
    top: 4.5px;
    padding: 9px 26px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Sorting */
.wc-filter-sorting-section {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.wc-sorting-section select {
    font-size: 15px;
    padding: 10px 50px 10px 20px;
    height: 50px;
    border-radius: 5px;
}

/* Product table */
.wc-product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.wc-product-table thead {
    background-color: #0087c9;
    color: #fff;
}
.wc-product-table th, .wc-product-table td {
    border: 1px solid #8dc3de;
    padding: 8px 12px;
}
.wc-product-table tbody tr:nth-child(odd) {
    background-color: #0087c921;
}
.wc-product-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Pagination */
.wc-product-table .pagination {
    text-align: center;
    margin-top: 10px;
}
.wc-product-table .pagination a {
    margin: 0 5px;
    color: #0073aa;
    text-decoration: none;
}

/* Responsive */
@media only screen and (max-width: 991px) {
    .wc-filter-sidebar,
    .wc-main-content {
        width: 100%;
    }
    .wc-product-table-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}
/* 🔹 Pagination wrapper */
.wc-product-table .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

/* Pagination links */
.wc-product-table .pagination a,
.wc-product-table .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #0087c9;
    border-radius: 4px;
    background-color: #fff;
    color: #0087c9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover effect for links */
.wc-product-table .pagination a:hover {
    background-color: #0087c9;
    color: #fff;
    border-color: #006699;
}

/* Current page */
.wc-product-table .pagination .current {
    background-color: #0087c9;
    color: #fff;
    border-color: #0087c9;
    pointer-events: none;
}

/* Next / Prev special style */
.wc-product-table .pagination .next,
.wc-product-table .pagination .prev {
    font-weight: 600;
}

/* Wrapper for sort + toggle */
.wc-sorting-section-and-toggle {
    display: flex;
    align-items: center;
    gap: 10px; /* space between sort and toggle */
}

/* Hide toggle by default (desktop) */
.wc-sidebar-toggle-btn {
    display: none;
    background-color: #0087c9;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .wc-product-table .pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    .wc-product-table .pagination a,
    .wc-product-table .pagination span {
        padding: 6px 10px;
        font-size: 14px;
    }
     .wc-sidebar-toggle-btn {
        display: inline-block;
    }

    /* Optional: make sort and toggle wrap nicely on very small screens */
    .wc-sorting-section-and-toggle {
        flex-wrap: wrap;
        gap: 8px;
    }
}
/* Mobile Toggle Button */
.wc-sidebar-toggle-btn {
    display: none;
    background-color: #0087c9;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Sidebar (mobile) */
@media (max-width: 991px) {
    .wc-sidebar-toggle-btn { display: block; }
    .wc-filter-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100%;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 1002;
        padding: 20px;
    }
   /* Show sidebar when checkbox checked */
    #wc-sidebar-toggle:checked + .wc-sidebar-toggle-btn + .wc-filter-sidebar {
        left: 0;
    }

    /* Show close button inside sidebar */
    #wc-sidebar-toggle:checked + .wc-sidebar-toggle-btn + .wc-filter-sidebar .wc-sidebar-close-btn {
        display: block;
    }

    .wc-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1001;
        cursor: pointer;
    }
    #wc-sidebar-toggle:checked ~ .wc-filter-overlay { display: block; }
    #wc-sidebar-toggle:checked ~ .wc-main-content { opacity: 0.5; }
}