/* CATEGORY PAGE ONLY */
.tax-product_cat .shop-container,
.category-products .shop-container {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    padding: 48px 4%;
    align-items: flex-start;
}

.tax-product_cat .shop-sidebar,
.category-products .shop-sidebar {
    width: 100%;
}

.tax-product_cat .shop-content,
.category-products .shop-content {
    width: 100%;
}

/* TOOLBAR */
.tax-product_cat .shop-toolbar,
.category-products .shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.tax-product_cat .shop-toolbar .product-count,
.tax-product_cat .shop-toolbar .woocommerce-ordering,
.category-products .shop-toolbar .product-count,
.category-products .shop-toolbar .woocommerce-ordering {
    min-width: 220px;
}

/* PRODUCT GRID */
.tax-product_cat .shop-content ul.products,
.category-products .shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    width: 100% !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.tax-product_cat .shop-content ul.products li.product,
.category-products .shop-content ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    text-align: left;
    border: 1px solid #e7e7e7;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tax-product_cat .shop-content ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.tax-product_cat ul.products li.product img,
.category-products ul.products li.product img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 14px;
    margin-bottom: 16px;
}

.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.category-products ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    line-height: 1.5;
    color: #111;
    font-weight: 600;
    margin: 0 0 10px;
    min-height: 3rem;
}

.tax-product_cat ul.products li.product .price,
.category-products ul.products li.product .price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f172a;
}

.tax-product_cat ul.products li.product del {
    color: #888;
    margin-right: 5px;
}

.tax-product_cat ul.products li.product .button,
.tax-product_cat ul.products li.product a.add_to_cart_button,
.tax-product_cat ul.products li.product .added_to_cart,
.category-products ul.products li.product .button,
.category-products ul.products li.product a.add_to_cart_button,
.category-products ul.products li.product .added_to_cart {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: 2px solid #0a8a43;
    background: #0a8a43;
    /*color: #fff !important;*/
    font-weight: 600;
    text-align: center;
    transition: background 0.25s ease, color 0.25s ease;
}

.tax-product_cat ul.products li.product .button:hover,
.tax-product_cat ul.products li.product a.add_to_cart_button:hover,
.tax-product_cat ul.products li.product .added_to_cart:hover {
    background: #0d6e35;
    border-color: #0d6e35;
    color: #fff !important;
}

/* FILTER SIDEBAR */
.tax-product_cat .shop-sidebar .widget {
    margin-bottom: 35px;
    padding: 22px 20px;
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tax-product_cat .shop-sidebar .widget form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tax-product_cat .shop-sidebar .widget .button,
.tax-product_cat .shop-sidebar .widget input[type="submit"],
.tax-product_cat .shop-sidebar .widget button {
    width: 100%;
    order: 999;
    margin-top: 6px;
}

.tax-product_cat .shop-sidebar .widget-title,
.category-products .shop-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

/* APPLY BUTTON */
.tax-product_cat .filter-apply-wrap{
    display:flex;
    gap:10px;
    margin-top:6px;
}

.tax-product_cat .filter-apply-btn{
    display:inline-block;
    width:100%;
    padding:12px 16px;
    border-radius:12px;
    background:#0a8a43;
    color:#fff !important;
    border:0;
    font-weight:700;
    text-align:center;
    cursor:pointer;
}

.tax-product_cat .filter-reset-btn{
    display:inline-block;
    padding:12px 16px;
    border-radius:12px;
    background:#fff;
    color:#0f172a !important;
    border:1px solid #e6e6e6;
    cursor:pointer;
}

/* hide apply button - UI shows Reset only */
.tax-product_cat .filter-apply-btn{ display:none !important; }

/* make the apply area sticky on tall sidebars */
.tax-product_cat .shop-sidebar .apply-sticky{
    position: sticky;
    bottom: 20px;
    padding-top: 14px;
}

.tax-product_cat .shop-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tax-product_cat .shop-sidebar li {
    margin-bottom: 12px;
}

.tax-product_cat .shop-sidebar label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
}

.tax-product_cat .shop-sidebar input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin-right: 8px;
    vertical-align: middle;
}

.tax-product_cat .shop-sidebar svg {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

.tax-product_cat .shop-sidebar img,
.category-products .shop-sidebar img {
    max-width: 100%;
    height: auto;
}

/* Apply same shop sidebar styling to generic shop archive pages */
.category-products .shop-sidebar .widget {
    margin-bottom: 35px;
    padding: 22px 20px;
    background: #fbfbfb;
    border: 1px solid #ececec;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-products .shop-sidebar .widget form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.category-products .shop-sidebar .widget .button,
.category-products .shop-sidebar .widget input[type="submit"],
.category-products .shop-sidebar .widget button {
    width: 100%;
    order: 999;
    margin-top: 6px;
}

.category-products .filter-apply-wrap{
    display:flex;
    gap:10px;
    margin-top:6px;
}

.category-products .filter-apply-btn{
    display:inline-block;
    width:100%;
    padding:12px 16px;
    border-radius:12px;
    background:#0a8a43;
    color:#fff !important;
    border:0;
    font-weight:700;
    text-align:center;
    cursor:pointer;
}

.category-products .filter-reset-btn{
    display:inline-block;
    padding:12px 16px;
    border-radius:12px;
    background:#fff;
    color:#0f172a !important;
    border:1px solid #e6e6e6;
    cursor:pointer;
}

.category-products .filter-apply-btn{ display:none !important; }

.category-products .shop-sidebar .apply-sticky{
    position: sticky;
    bottom: 20px;
    padding-top: 14px;
}

.category-products .shop-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-products .shop-sidebar li {
    margin-bottom: 12px;
}

.category-products .shop-sidebar label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
}

.category-products .shop-sidebar input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin-right: 8px;
    vertical-align: middle;
}

.category-products .shop-sidebar svg {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

.category-products .shop-sidebar img {
    max-width: 100%;
    height: auto;
}

.tax-product_cat .shop-sidebar .widget {
    overflow: hidden;
}

.tax-product_cat .category-description {
    margin-top: 60px;
    line-height: 1.85;
    padding: 0 4%;
}

.tax-product_cat .category-description h2 {
    font-size: 2.25rem;
    margin-bottom: 22px;
}

.tax-product_cat .category-description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .tax-product_cat .shop-container {
        grid-template-columns: 1fr;
        padding: 32px 4%;
    }

    .tax-product_cat .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tax-product_cat .shop-content ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tax-product_cat ul.products li.product img {
        height: 240px !important;
    }
}

@media (max-width: 680px) {
    .tax-product_cat .shop-content ul.products {
        grid-template-columns: 1fr;
    }

    .tax-product_cat ul.products li.product img {
        height: auto !important;
    }

    .tax-product_cat .shop-toolbar {
        gap: 12px;
    }
}
.woocommerce ul.products::before {
    content: " ";
    display: none !important;
}