.myd-product-list {
	display: grid;
	grid-gap: var(--myd-space-5);
	flex-grow: 1;
	grid-template-rows: 1fr;
}

.myd-product-list--1column {
	grid-template-columns: 1fr;
}

.myd-product-list--2columns {
	grid-template-columns: 1fr 1fr;
}

.myd-product-list__title {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
	flex-basis: 100%;
	margin-block-end: 0;
}

.myd-product-item {
	background: var(--myd-color-surface);
	border: solid 1px var(--myd-color-border-subtle);
	width: 100%;
	min-height: 170px;
	height: 100%;
	padding: var(--myd-space-5);
	border-radius: var(--myd-radius-md);
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	cursor: pointer;
	position: relative;
}

.myd-product-item--boxshadow {
	box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.06);
}

.myd-product-item__content {
	width: 60%;
	height: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.myd-product-item__title {
	margin: 0;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.4;
}

.myd-product-item__desc {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--myd-color-text-muted);
	overflow: hidden;
	max-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	width: 100%;
}

.myd-product-item__actions {
	display: flex;
	align-items: center;
}

.myd-product-item__price {
	font-weight: bold;
	font-size: 14px;
	color: var(--myd-color-price);
	font-variant-numeric: tabular-nums;
}

.myd-product-item__price--hide {
	visibility: hidden;
	opacity: 0;
}

.myd-product-item__img {
	width: 35%;
	overflow: hidden;
	background: var(--myd-color-surface-muted);
	border-radius: var(--myd-radius-sm) !important;
}

.myd-product-item-img,
.myd-product-item-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	max-height: 140px;
	border-radius: var(--myd-radius-sm) !important;
}

.myd-product-item__divider {
	display: none;
}

.myd-item-hide {
	display: none !important;
}

.myd-product-item__not-available {
	position: absolute;
	top: 0;
	right: 0;
	background: var(--myd-color-primary);
	white-space: nowrap;
	color: var(--myd-color-text-inverse);
	padding: var(--myd-space-1) var(--myd-space-2);
	z-index: 2;
	font-size: 0.8rem;
	border-radius: var(--myd-radius-md);
	font-weight: 400;
}

.myd-product-item__not-available-overlay {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: var(--myd-color-surface);
	opacity: 0.6;
	z-index: 1;
}

.myd-product-disabled {
	pointer-events: none;
}

.myd-products__wrapper {
	display: flex;
	flex-direction: column;
	gap: var(--myd-space-4);
}

@media only screen and (max-width: 768px) {
	.myd-product-list__title {
		background: var(--myd-color-surface-muted);
		text-align: center;
		border-radius: var(--myd-radius-md);
		padding-block: var(--myd-space-2);
		font-size: 16px;
		font-weight: bold;
		border: 1px solid var(--myd-color-border);
	}

	.myd-product-item {
		padding: 0;
		border-radius: 0;
		border: unset;
		box-shadow: unset;
		min-height: 130px;
		height: 100%;
	}

	.myd-product-item__divider {
		display: block;
		border-top: 1px dashed var(--myd-color-border-subtle);
		width: 100%;
	}

	.myd-product-list .myd-product-item__divider:last-of-type {
		display: none;
	}

	.myd-product-item__content {
		width: 65%;
		margin-right: var(--myd-space-2);
	}

	.myd-product-item__actions {
		flex-wrap: wrap;
	}

	.myd-product-item__price {
		text-align: center;
		width: auto;
		font-size: 16px;
	}

	.myd-product-list--2columns {
		grid-template-columns: 1fr;
	}

	.myd-products__wrapper:last-of-type {
		margin-block-end: var(--myd-space-8);
	}
}
