/**
 * Trending Now — static grid of equal-size product cards (no slider).
 * A real grid (not flex-wrap) so a partial last row keeps card sizes
 * consistent instead of the leftover card stretching to fill the row.
 */

.zozia-trending-now {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
}

.zozia-trending-now__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--lg);
	flex-wrap: wrap;
	margin-bottom: var(--wp--preset--spacing--lg);
}

.zozia-trending-now__shop-link {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--medium);
	text-decoration: none;
}

.zozia-trending-now__shop-link:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.zozia-trending-now__shop-link svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Grid tracks size each card — no explicit card width needed. The card's
   look (image, badge, wishlist heart, title, price) is the canonical
   `.zozia-product-card` design in assets/css/product-card.css, which
   zozia_render_product_card() renders as this grid's direct children. */
.zozia-trending-now__row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.zozia-trending-now__empty {
	margin: 0;
	padding: 40px 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
}

/* Tablet: 3 columns. */
@media (max-width: 1024px) {
	.zozia-trending-now__row {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile: 2 columns. */
@media (max-width: 599px) {
	.zozia-trending-now__row {
		grid-template-columns: repeat(2, 1fr);
	}
}
