/**
 * =========================================================
 * HEMRITU SHOP - BEST SELLERS
 * =========================================================
 * Uses the central Hemritu product-card system.
 * Best Sellers only controls grid and local spacing.
 * =========================================================
 */

.hemritu-shop-best-sellers{
    width:100%;
}

/* Product grid */
.hemritu-shop-best-sellers-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px;
    align-items:start;
    margin:0;
    padding:0;
    list-style:none;
}

/* Product item - central card remains in control */
.hemritu-shop-best-sellers-grid > li.product{
    min-width:0;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
    width:auto !important;
    list-style:none;
}

/* =========================================================
 * CONTENT SPACING
 *
 * Central product-card CSS currently sets summary padding to
 * zero. Use a more specific Best Sellers selector so ONLY this
 * section gets the requested spacing.
 * ========================================================= */

body.woocommerce-shop
.hemritu-shop-best-sellers
ul.products
li.product
.ast-woo-product-category{
    display:block !important;
    margin-top:8px !important;
    margin-left:8px !important;
    margin-right:8px !important;
}

body.woocommerce-shop
.hemritu-shop-best-sellers
ul.products
li.product
.woocommerce-loop-product__title{
    margin-left:8px !important;
    margin-right:8px !important;
}

body.woocommerce-shop
.hemritu-shop-best-sellers
ul.products
li.product
.price{
    margin-left:8px !important;
    margin-right:8px !important;
}

/* Keep Add to Cart button full card width */
body.woocommerce-shop
.hemritu-shop-best-sellers
ul.products
li.product
.button{
    margin-left:0 !important;
    margin-right:0 !important;
}

/* Tablet */
@media (min-width:768px) and (max-width:1024px){
    .hemritu-shop-best-sellers-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:16px;
    }
}

/* Mobile */
@media (max-width:767px){
    .hemritu-shop-best-sellers-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px;
    }

    body.woocommerce-shop
    .hemritu-shop-best-sellers
    ul.products
    li.product
    .ast-woo-product-category{
        margin-top:6px !important;
        margin-left:7px !important;
        margin-right:7px !important;
    }

    body.woocommerce-shop
    .hemritu-shop-best-sellers
    ul.products
    li.product
    .woocommerce-loop-product__title,
    body.woocommerce-shop
    .hemritu-shop-best-sellers
    ul.products
    li.product
    .price{
        margin-left:7px !important;
        margin-right:7px !important;
    }
}

/* Very small mobile */
@media (max-width:380px){
    .hemritu-shop-best-sellers-grid{
        gap:9px;
    }

    body.woocommerce-shop
    .hemritu-shop-best-sellers
    ul.products
    li.product
    .ast-woo-product-category{
        margin-left:6px !important;
        margin-right:6px !important;
    }

    body.woocommerce-shop
    .hemritu-shop-best-sellers
    ul.products
    li.product
    .woocommerce-loop-product__title,
    body.woocommerce-shop
    .hemritu-shop-best-sellers
    ul.products
    li.product
    .price{
        margin-left:6px !important;
        margin-right:6px !important;
    }
}

/* =========================================================
 * BEST SELLERS HEADING - SAME SIZE AS SHOP BY CATEGORY
 * ========================================================= */

.hemritu-shop-best-sellers
.hemritu-shop-section-heading h2 {
	font-size: 20px !important;
	line-height: 1.3 !important;
	margin: 0 !important;
}

