/* Product Studio on the store front (1.5.0): product cards inside an
   article and "articles about this product" on a product page. Neutral
   colours so any theme keeps its own look. */

.pstudio-products,
.pstudio-related {
	margin: 2em 0;
}

.pstudio-products h2,
.pstudio-related h2 {
	margin: 0 0 0.8em;
	font-size: 1.25em;
}

.pstudio-products ul,
.pstudio-related ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
	gap: 16px;
}

.pstudio-products li,
.pstudio-related li {
	margin: 0;
}

.pstudio-pcard a,
.pstudio-related a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 10px;
	border: 1px solid rgb(0 0 0 / 10%);
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.pstudio-pcard a:hover,
.pstudio-related a:hover {
	box-shadow: 0 6px 18px -8px rgb(0 0 0 / 25%);
}

.pstudio-pcard img,
.pstudio-related img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
}

.pstudio-related img {
	aspect-ratio: 1200 / 630;
}

.pstudio-pcard__name,
.pstudio-related span {
	font-weight: 700;
	line-height: 1.4;
}

.pstudio-pcard__price {
	opacity: 0.85;
}

.pstudio-pcard__btn {
	margin-top: auto;
	padding: 8px 12px;
	border-radius: 8px;
	text-align: center;
	font-weight: 700;
	background: #111;
	color: #fff;
}
