/* Heatmedia Blog Studio - product block (frontend) */

.hbs-products {
	margin: 2.5em 0;
	padding-top: 1.5em;
	border-top: 1px solid rgba(0, 0, 0, .1);
}

.hbs-products__title {
	margin: 0 0 1em;
	font-size: 1.4em;
	line-height: 1.25;
}

.hbs-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.hbs-product {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .18s ease, transform .18s ease;
}

.hbs-product:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
	transform: translateY(-2px);
}

.hbs-product__imgwrap {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	overflow: hidden;
}

.hbs-product__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbs-product__body {
	display: flex;
	flex-direction: column;
	gap: .5em;
	padding: 14px 16px 16px;
	flex: 1 1 auto;
}

.hbs-product__name {
	margin: 0;
	font-size: 1.02em;
	line-height: 1.3;
}

.hbs-product__name a {
	text-decoration: none;
	color: inherit;
}

.hbs-product__name a:hover {
	text-decoration: underline;
}

.hbs-product__desc {
	margin: 0;
	font-size: .88em;
	line-height: 1.45;
	opacity: .8;
}

.hbs-product__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: .5em;
}

.hbs-product__price {
	font-weight: 700;
	font-size: 1em;
}

.hbs-product__btn {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 8px;
	background: #1f2937;
	color: #fff;
	font-size: .85em;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.hbs-product__btn:hover {
	background: #111827;
	color: #fff;
}

.hbs-products__all {
	margin: 1.2em 0 0;
	font-weight: 600;
}
