/*centers single product pages*/
.single-product .site-content {
    max-width: 1600px;
    margin: 0 auto;
}

.single-product .content-area {
    margin: 0 auto;
}

.single-product div.product {
    margin: 0 auto;
}

/*center justify*/

.single-product .woocommerce div.product {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Center WooCommerce archive/shop/category content area */
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
    max-width: 1320px;
    margin: 0 auto;
}

/* Center the product grid row */
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
.tax-product_tag ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}

/* Make product cards a consistent width */
.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product {
    float: none !important;
    width: 320px !important;
    margin: 0 !important;
}

/* Center category/archive header content */
.woocommerce-products-header,
.term-description,
.woocommerce-result-count,
.woocommerce-ordering {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Put result count and sorting on a balanced row */
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    float: none;
    text-align: right;
}

.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    float: none;
    text-align: left;
}

/* Optional: make count + sorting sit neatly */
.woocommerce .woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-result-count {
    display: inline-block;
}

.woocommerce .woocommerce-ordering {
    display: inline-block;
}

/* Better wrapper spacing */
.woocommerce .site-main {
    padding-left: 20px;
    padding-right: 20px;
}


/* Hide WooCommerce retail price fields on WCFM product form */
#wcfm_products_manage_form .regular_price,
#wcfm_products_manage_form .sale_price,
#wcfm_products_manage_form .sale_price_ele,
#wcfm_products_manage_form .regular_price_ele {
    display: none !important;
}