/* Your CSS styling here */
/* Same CSS as previous example (filter sidebar, buttons, grid, responsive) */
.woocommerce-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 3em;
}
.woocommerce-filter-row > * {
    width: 33.33%;
    text-align: center;
}
.product-count {
    font-weight: 600;
}
.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: capitalize;
}
.filter-toggle-btn {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-family: var(--heading-font);
    font-weight: 400;
    padding: 0.5em 0.8em;
    transition: all 0.4s
}
.filter-toggle-btn:hover {
    background-color: var(--primary);
    color: #fff
}
.woocommerce-filter-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -3px 0 12px rgba(0,0,0,0.15);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 10000;
    padding-bottom: 3em;
}
.woocommerce-filter-sidebar.open {
    right: 0;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.woocommerce-filter-sidebar h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.woocommerce-filter-sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}
.woocommerce-filter-sidebar li {
    margin-bottom: 8px;
}
/* .products {
    /* max-width: 1200px; */
    /* margin: 0 auto 40px; */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
} */
.products li.product {
    width: calc(33.333% - 13.333px);
    box-sizing: border-box;
}
.woocommerce .woocommerce-result-count {
    margin-bottom: 0;
}
.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering {
    float: none;
    margin-bottom: 0;
}
.woocommerce .woocommerce-ordering select {
    height: 100%;
    padding: 0.8em 0.3em;
    border: 1px solid #e8e8e8;
    font-size: 0.85em;
}
/* .woocommerce ul.products { max-width: unset; } */

/* @media (max-width: 900px) {
    .products li.product {
        width: calc(50% - 10px);
    }
} */
@media (max-width: 767px) {
    .woocommerce-filter-row {
        flex-direction: column;
        gap: 10px;
        flex-wrap: wrap;
    }
    .products li.product {
        width: 100%;
    }
    .category-title { width: 100%; text-align: center; }
    .product-count { order: 2 }
    .woocommerce-filter-row > * {
        width: auto;
    }
}