.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    content: unset;
}


#ArchiveBady {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1760px;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap;
}

#ArchiveBady.over {
    align-items: flex-end;
}

#primary {
    flex: 0 0 79%;
    order: 2;
    margin-right: auto;
}

#sidebar {
    flex: 0 0 20%;
    max-width: 20%;
    order: 1;
    height: 90vh;
}

.latest-products-carousel {
    padding: 0 !important;
    background: unset !important;
}

.latest-products-carousel .owl-nav {
    position: absolute;
    top: -43px;
    left: 0;
    direction: ltr;
    display: flex;
    gap: 8px;
}

.SidebarLink {
    padding: 10px 0px;
    position: relative;
    display: block;
}

.bapf_sfilter .bapf_hascolarr,
.bapf_sfilter .bapf_hasdesc {
    margin: 10px !important;
}

.latest-products-carousel [id^=ProductBox_].product {
    border: none !important;
}

.bapf_sfilter {
    margin: unset !important;
}

#sidebar.sticky {
    width: 20%;
    position: fixed;
    right: 10px;
    top: 40px;
    overflow-y: auto;
}

div#sidebar>div {
    padding: 5px 10px;
    border-radius: 5px;
    background: #f3f3f3;
    margin: 10px 0;
}

.bapf_sfilter .bapf_hascolarr,
.bapf_sfilter .bapf_hasdesc {
    cursor: pointer;
}

.bapf_body>ul {
    max-height: 200px;
    overflow-y: auto;
}

.bapf_body>ul>li>label {
    padding: 5px 0;
}

.bapf_body>ul>li>input {
    width: 20px;
    height: 20px;
}

.woocommerce nav.woocommerce-pagination ul li>* {
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 17px;
    width: 100%;
    padding: 10px 0 !important;
}

.woocommerce nav.woocommerce-pagination ul {
    border: navajowhite;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--Secondery);
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--White);
    transition: .5s;
}

.page-numbers.next,
.page-numbers.prev {
    display: none !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    flex: 0 0 50px;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

main#main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

nav.woocommerce-breadcrumb {
    flex: 0 0 calc(100% - 40px);
    background: #f3f3f3;
    padding: 10px 20px !important;
    border-radius: 5px;
    margin: 10px 0 !important;
    order: 1;
}

.woocommerce-notices-wrapper {
    flex: 0 0 100%;
    grid-column: 1/13;
    grid-row: 1/2;
}

header.woocommerce-products-header {
    order: 2;
    display: grid;
    background: #f3f3f3;
    flex: 0 0 calc(100% - 40px);
    padding: 10px 20px;
    grid-template-columns: repeat(12, 1fr);
}

p.woocommerce-result-count {
    grid-column: 1/5;
    grid-row: 3/4;
    margin: 0 !important;
}

/* ==========================================================
   Enet shop toolbar — sort + per-page count.
   Rendered by the "Enet Shop Toolbar" plugin inside this same
   grid header, on its own full-width row below the title and
   result-count area (so it never overlaps them).
   ========================================================== */
.enet-toolbar {
    grid-column: 1 / 13;
    grid-row: 4 / 5;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--White);
    border-radius: 10px;
    box-shadow: var(--BoxShadow);
    padding: 14px 20px;
    box-sizing: border-box;
}

.enet-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.enet-toolbar .group-sort { order: 1; }
.enet-toolbar .group-perpage { order: 2; }

.enet-toolbar .group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Primary);
    flex-shrink: 0;
}
.enet-toolbar .group-icon svg { width: 19px; height: 19px; }

.enet-toolbar .group-label {
    font-size: 14px;
    color: var(--Black);
    font-weight: 600;
    white-space: nowrap;
}

.enet-toolbar .option-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.enet-toolbar .option-list li {
    display: flex;
    align-items: center;
}
.enet-toolbar .option-list li:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 14px;
    background: var(--Grey);
    margin: 0 12px;
    display: inline-block;
    opacity: .6;
}

.enet-toolbar .option-list a {
    text-decoration: none;
    font-size: 14px;
    color: var(--Black);
    cursor: pointer;
    transition: color .15s ease;
    white-space: nowrap;
}
.enet-toolbar .option-list a:hover { color: var(--Primary); }

.enet-toolbar .option-list a.active {
    color: var(--Primary);
    font-weight: 700;
}

ul.products.columns-4 {
    flex: 0 0 100%;
    order: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 10px;
}

.bapf_no_products {
    flex: 0 0 100%;
    order: 2;
    margin-top: 10px;
}

nav.woocommerce-pagination {
    flex: 0 0 100%;
    order: 5;
}

header.woocommerce-products-header h1 {
    grid-column: 1/12;
    grid-row: 2/3;
    margin: 0 !important;
}

span.bapf_from {
    float: left;
    margin: 0 !important;
}

.bapf_slidr_main.ui-widget-content .ui-slider-range,
.berocket_filter_price_slider.ui-widget-content .ui-slider-range,
span.ui-slider-handle.ui-corner-all.ui-state-default,
span.ui-slider-handle.ui-corner-all.ui-state-default {
    background: var(--Primary) !important;
    z-index: 1;
}

span.bapf_to {
    margin: 0 !important;
    width: unset !important;
}

span.bapf_tbprice {
    float: left;
    margin-right: 5px;
}

div#SearchResualtBady {
    max-width: 1760px;
    margin: 0 auto;
    padding: 5px 20px !important;
}

button#StickyFilterButton {
    display: none;
}

.bapf_lcontainer {
    flex: 0 0 10%;
    position: relative;
    height: auto;
    top: unset;
    right: unset;
    left: unset;
}

.bapf_loader_page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bapf_lcontainer .bapf_limg {
    animation: beat 1s linear infinite;
}

button#StickyFilterButton.show.End {
    bottom: 120px;
}

.term-description {
    flex: 0 0 100%;
    order: 5;
    border: 1px solid var(--Grey);
    box-sizing: border-box;
    padding: 8px;
    border-radius: 4px;
    margin: 16px 0;
}

@media screen and (max-width: 1300px) {
    [id^=ProductBox_].product {
        flex: 0 0 33%;
    }
}

@media screen and (max-width: 1100px) {

    div#primary {
        width: 100%;
        flex: 0 0 100%;
        orphans: 1;
    }

    div#sidebar {
        position: fixed;
        top: 0;
        right: -100vw;
        height: 101vh;
        width: 70vw;
        background: var(--Body);
        z-index: 999999999;
        border-left: 4px solid var(--Primary);
        overflow-y: auto;
        transition: .5s;
    }

    div#sidebar.open {
        right: 0;
    }

    button#StickyFilterButton {
        position: fixed;
        bottom: 70px;
        right: 10px;
        z-index: -1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 50%;
        border: 2px solid #f3f3f3;
        background: var(--White);
        box-shadow: var(--BoxShadow);
        opacity: 0;
        cursor: pointer;
        transition: .5s;
    }

    button#StickyFilterButton.show {
        z-index: 9999;
        opacity: 1;
    }

    div#sidebar>div {
        margin: 0;
        background: transparent;
    }
}

@media screen and (max-width: 850px) {

    .bapf_sfilter .bapf_hascolarr,
    .bapf_sfilter .bapf_hasdesc {
        font-size: 15px;
    }

    button#StickyFilterButton {
        bottom: 130px;
    }

    button#StickyFilterButton.show.End {
        bottom: 170px;
    }
}

@media screen and (max-width: 800px) {
    [id^=ProductBox_].product {
        flex: 0 0 50%;
    }

    p.woocommerce-result-count {
        display: none;
    }

    .enet-toolbar {
        grid-column: 1 / 13;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }
    .enet-toolbar .toolbar-group {
        justify-content: space-between;
        width: 100%;
        flex-wrap: nowrap;
    }
    .enet-toolbar .group-perpage {
        border-top: 1px solid var(--Secondery);
        padding-top: 12px;
    }
    .enet-toolbar .option-list {
        flex: 1;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .woocommerce nav.woocommerce-pagination ul {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 550px) {
    [id^=ProductBox_].product {
        flex: 0 0 100%;
    }

    header.woocommerce-products-header {
        display: flex;
        flex-wrap: wrap;
    }

    header.woocommerce-products-header h1,
    header.woocommerce-products-header p.woocommerce-result-count,
    header.woocommerce-products-header .enet-toolbar {
        flex: 0 0 100%;
        width: 100%;
    }
}