/* Product cards: picture, stars, name, what it is for, and a button. Shown on the home page under
   "I need relief from" and in the empty cart (theme/sections/products.php). Loaded only on those
   pages (inc/assets.php). Written for a phone first. */

/* On a phone the cards sit closer to the screen edge than the text does (169 px wide on live). */
.hugg-products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 9px;
	margin: 0 -11px;
	padding: 0;
	list-style: none;
}

.hugg-products [hidden] {
	display: none;
}

.hugg-product {
	display: grid;
	gap: 6px;
	height: 100%;
	padding: 25px 20px;
	border-radius: 20px;
	background: #fbf9f4;
	text-decoration: none;
}

.hugg-product img {
	width: 100%;
	margin-bottom: 6px;
}

.hugg-product .hugg-rating {
	font-size: var(--hugg-text-xs);
}

.hugg-product .hugg-rating__stars {
	margin-right: 6px;
	color: var(--hugg-amber);
	font-size: 13px;
	letter-spacing: 1px;
}

.hugg-product__name {
	font-size: var(--hugg-text-xs);
	font-weight: 600;
	text-transform: uppercase;
}

.hugg-product__for {
	font-size: var(--hugg-text-xs); /* 12px; was 10-11px (owner, 21 Nov 2026: mobile UI log B10) */
	font-weight: 400;
}

.hugg-product__button {
	align-self: end;
	margin-top: 8px;
	padding: 10px 8px;
	border-radius: var(--hugg-radius-s);
	color: var(--hugg-white);
	background: var(--hugg-black);
	font-size: var(--hugg-text-xs); /* 12px; was 10-11px (owner, 21 Nov 2026: mobile UI log B10) */
	text-align: center;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.hugg-products {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
		margin: 0;
	}

	.hugg-product {
		padding: 30px;
	}

	.hugg-product .hugg-rating {
		font-size: var(--hugg-text-s);
	}

	.hugg-product__name {
		font-size: 20px;
	}

	.hugg-product__for {
		font-size: var(--hugg-text-s);
	}

	.hugg-product__button {
		font-size: var(--hugg-text-s);
	}
}
