How to make accordion category product cat page like accordion category style in home and sho page.
—————————————————————————————–
I attach an existing global css below
.products-grid .product {
width: 33.33% !important;
}
.row-count-3 .product:nth-child(2n+1), .home .row-count-4 .product:nth-child(2n+1){
clear: none !important;
}
.products-loop.products-grid {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
float:left;
}
.products-loop.products-grid .product {
position: relative;
padding-bottom: 35px;
}
.products-loop.products-grid .add_to_cart_button {
position: absolute;
left: 3px;
bottom: 0;
}
.products-loop.products-grid .product .price,
.products-loop.products-grid .product del {
font-size: 14px !important;
}
.products-loop.products-grid .product .add_to_cart_button {
padding: 5px;
}
.pagination-cubic li span.page-numbers.current,
.woocommerce-message .button, .cart-collaterals .checkout-button {
color: #fff !important;
}
.single-product .product-information .cart button[type=”submit”], .footer-product a, .footer-product .show-quickly,
.quick-view-popup .product-information .cart button[type=”submit”] {
color: white!important;
}
.home .categories-menu-element.product-categories.with-accordion {
border: 2px solid #f3b714;
margin-right: 0px;
margin-bottom: 20px;
margin-left: 0px;
}
.home .categories-menu-element.product-categories > li > a {
padding-left: 20px !important;
}
.home .categories-menu-element.product-categories.with-accordion h2 {
text-align: center;
border: 2px solid #f3b714;
background-color: #f3b714;
color: white;
font-size: 20px;
padding: 10px;
}
.post-type-archive-product #woocommerce_product_categories-2 .widget-title:before,
.post-type-archive-product #woocommerce_product_categories-2 .widget-title:before {
display: none;
}
.post-type-archive-product #woocommerce_product_categories-2 .widget-title {
text-align: center;
border: 2px solid #f3b714;
background-color: #f3b714;
color: white;
font-size: 20px;
padding: 10px;
}
.post-type-archive-product #woocommerce_product_categories-2 .widget-title span {
background: #f3b714;
}
.post-type-archive-product #woocommerce_product_categories-2 {
border: 2px solid #f3b714;
margin-right: 0px;
margin-bottom: 20px;
margin-left: 0px;
}
.post-type-archive-product #woocommerce_product_categories-2 li > a {
padding-left: 20px !important;
}
.post-type-archive-product #woocommerce_product_categories-2 .product-categories {
margin-bottom: 0px;
}