/*
 * Crown One B2B Product Cleanup 1.0
 * Product/shop pages only.
 */

/* Hide result-count text such as:
   "显示 1-12 个结果（共14个结果）"
*/
.woocommerce-result-count,
.wd-products-per-page,
.products-per-page,
.wd-products-shop-view,
.wd-shop-tools .woocommerce-result-count {
    display: none !important;
}

/* Hide Quick View across common WoodMart/WooCommerce variants. */
.quick-view,
.quick-view-button,
.wd-quick-view,
.wd-quick-view-icon,
.wd-action-btn.wd-quick-view-icon,
.product-quick-view,
a[class*="quick-view"],
button[class*="quick-view"] {
    display: none !important;
}

/* Hide wishlist actions across common WoodMart/YITH variants. */
.wd-wishlist-btn,
.wd-wishlist-icon,
.wd-action-btn.wd-wishlist-icon,
.add_to_wishlist,
.yith-wcwl-add-to-wishlist,
.yith-wcwl-add-button,
a[class*="wishlist"],
button[class*="wishlist"] {
    display: none !important;
}

/* Keep useful B2B product action prominent. */
.products .product .wd-buttons .wd-action-btn:not(.wd-quick-view-icon):not(.wd-wishlist-icon),
.products .product a[href*="/product/"] {
    visibility: visible;
}

/* Do not collapse product cards awkwardly after removing action buttons. */
.products .product .wd-buttons,
.products .product .product-element-bottom {
    min-height: 0;
}

/* Mobile: keep product grids clean and avoid empty action gaps. */
@media (max-width: 767px) {
    .wd-products-per-page,
    .products-per-page,
    .woocommerce-result-count {
        display: none !important;
    }

    .products .product .wd-buttons:empty {
        display: none !important;
    }
}
