/** جداسازی ظریف تصاویر گرید محصولات صفحه اصلی. */
.igshop-products-grid {
	gap: 3px;
	background: #edf0f2;
}

/** کارت محصول فقط به‌اندازه تصویر است و عنوان روی خود تصویر قرار می‌گیرد. */
.igshop-product-tile {
	position: relative;
	display: block;
	aspect-ratio: auto;
	overflow: hidden;
	background: #fff;
	color: #25282c;
	text-decoration: none;
}

.igshop-product-image {
	display: block;
	aspect-ratio: 1 / 1.33;
	overflow: hidden;
	background: #fff;
}

.igshop-product-image > .igshop-empty-product {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.igshop-product-title {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	display: grid;
	min-height: 44px;
	align-items: end;
	padding: 17px 7px 6px;
	overflow: hidden;
	background: linear-gradient(to top, rgba(45, 24, 22, 0.94), rgba(45, 24, 22, 0.54) 58%, transparent);
	border: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
	direction: rtl;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.igshop-product-title > span {
	display: block;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: clip;
}

/** نمایش عنوان با هاور ماوس یا فوکوس کیبورد در دسکتاپ. */
.igshop-product-tile:hover .igshop-product-title,
.igshop-product-tile:focus-visible .igshop-product-title {
	opacity: 1;
	transform: translateY(0);
}

.igshop-thread-chip {
	color: inherit;
	text-decoration: none;
}

/** در صفحات لمسی عنوان همیشه روی گرادیان پایین تصویر دیده می‌شود. */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
	.igshop-product-title {
		min-height: 38px;
		padding: 13px 5px 5px;
		font-size: 11px;
		line-height: 1.55;
		opacity: 1;
		transform: translateY(0);
	}
}
