/*
 * J. Ottenheijm.com Product Grid – base styles, loaded on every front-end page because the
 * mini cart and the cart can appear anywhere. Kept small on purpose; the grid styles are in
 * frontend.css and only load where the grid is shown. The design variables are attached here.
 */

/* Mini cart: heading with the chosen product counter */
.jo-pg-minicart { margin: 0 30px 10px 0; }

.jo-pg-minicart .jo-pg-minicart__title {
	margin: 0;
	color: var(--jo-product-grid-color-primary);
	font-family: var(--jo-product-grid-font-headings);
	font-size: 1.25em;
	font-weight: var(--jo-product-grid-weight-headings);
	line-height: 1.2;
}

.jo-pg-minicart .jo-pg-minicart__count {
	margin: 0;
	color: var(--jo-product-grid-color-text);
	font-family: var(--jo-product-grid-font-body);
	font-size: 1em;
	line-height: 1.75;
}

/* Cart: hide the price column while only free products are in the cart */
table.cart:not(:has(tr.cart_item:not(.jo-pg-free))) .product-price { display: none; }

@media (max-width: 767px) {
	.jo-pg-minicart .jo-pg-minicart__title { font-size: 1.2em; }

	table.shop_table_responsive tr.cart_item td.product-price,
	table.shop_table_responsive tr.cart_item.jo-pg-free td.product-quantity,
	table.shop_table_responsive tr.cart_item.jo-pg-free td.product-subtotal { display: none; }
}
