/*
 * Product lists (avalon/product-list: related, up-sells and cross-sells on the product page, the products of a shop
 * or category page). The cards are the product cards (products.css .ab-pcards--grid .ab-product): the picture on
 * the tint, the name 17/18px, rows on phones and tablets, cards on desktop. This file: the list's heading, the intro
 * text (the card's note) clamped, and the page numbers.
 */

/* the list's heading ("Katso myös", "Tämän tuotteen valinnaiset lisät") is a section h2 like the blocks' titles
   (.ab-title in blocks.css); the category pages' "Tuotteet" is quieter (theme style.css .an-archive-products) */
.ab-plist__head {
	margin: 0 0 var(--ab-head-gap, 20px);
	color: var(--ab-heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	line-height: 1.15;
}

@media (max-width: 1024px) {
	.ab-plist__head {
		line-height: 1.2;
	}
}

.ab-product-list.is-dark .ab-plist__head {
	color: #fff;
}

/* the product's intro text: 2 lines in the rows, 3 in the cards */
.ab-plist .ab-product__note {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

@media (min-width: 1025px) {
	.ab-plist .ab-product__note {
		font-size: 15px;
		line-height: 1.5;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}
}

/* page numbers: 44px tap targets */
.ab-plist .ab-pagination {
	margin-top: var(--ab-flow-c, 24px);
}

.ab-plist .ab-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: var(--ab-tap, 44px);
	min-height: var(--ab-tap, 44px);
	padding: 0 14px;
	border-color: var(--ab-line, #e3e8ee);
	border-radius: var(--ab-radius-s, 8px);
}

.ab-plist .ab-pagination .page-numbers.dots {
	border-color: transparent;
}
