/* Публичные ленты: главная, категории/подкатегории, поиск, продавец,
   избранное, Китай и похожие объявления. 04.10.2026, правка Амира.
   Телефон — структура FeedCard приложения: фото 164/182, r24, сердце
   у названия, регион и город отдельно. Название теперь в одну строку.
   .post-item--public задан только общим компонентом публичного объявления,
   поэтому карточки пользователей/магазинов админки сюда не попадают. */
@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Medium.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Bold.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

.posts-grid .post-item.post-item--public {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"img img"
		"title title"
		"loc loc"
		"pair pair";
	align-items: start;
}

.posts-grid .post-item.post-item--public > .post-item-image {
	grid-area: img;
	min-width: 0;
	margin-bottom: 10px;
	grid-template-rows: minmax(0, 1fr);
}

.posts-grid .post-item.post-item--public > .post-item-title {
	grid-area: title;
	min-width: 0;
	margin: 0;
	padding: 0 3px;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	height: 20px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	white-space: normal;
	text-overflow: ellipsis;
	overflow: hidden;
}

.posts-grid .post-item.post-item--public > .post-item-location {
	grid-area: loc;
	min-width: 0;
	margin-top: 2px;
	padding: 0 3px;
	font-size: 14px;
	line-height: 20px;
	height: 20px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	overflow: hidden;
}

.posts-grid .post-item.post-item--public > .post-item-pair {
	grid-area: pair;
	min-width: 0;
	display: flex;
	margin-top: 4px;
	padding: 0 3px;
}

.posts-grid .post-item.post-item--public .post-item-price {
	min-width: 0;
	margin: 0;
	padding: 0;
	font-size: 21px;
	font-weight: 700;
	line-height: 27px;
}

@media (min-width: 769px) and (max-width: 1200px) {
	/* Узкая сетка ПК: длинная цена и «Цена не указана» рядом с сердцем. */
	.posts-grid .post-item.post-item--public .post-item-price {
		font-size: 17px;
		line-height: 23px;
	}
}

@media (max-width: 768px) {
	.posts-grid .post-item.post-item--public {
		grid-template-areas:
			"img img"
			"title fav"
			"loc loc"
			"price price";
		font-family: Inter, sans-serif;
	}

	.posts-grid .post-item.post-item--public > .post-item-image {
		aspect-ratio: 164 / 182;
		height: auto;
		margin-bottom: 8px;
		border-radius: 24px;
	}

	.posts-grid .post-item.post-item--public > .post-item-image::after {
		display: none;
	}

	.posts-grid .post-item.post-item--public > .post-item-image > img {
		min-height: 0;
		height: 100%;
		aspect-ratio: auto;
	}

	.posts-grid .post-item.post-item--public > .post-item-title {
		padding: 0;
		font-family: Inter, sans-serif;
		font-size: 13px;
		line-height: 18px;
		height: 18px;
	}

	.posts-grid .post-item.post-item--public > .post-item-pair {
		display: contents;
	}

	.posts-grid .post-item.post-item--public .post-item-favorite {
		grid-area: fav;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 20px;
		margin: 0 0 0 6px;
		padding: 0;
		color: var(--label-gray);
	}

	.posts-grid .post-item.post-item--public .post-item-favorite svg {
		width: 18px;
		height: 18px;
	}

	.posts-grid .post-item.post-item--public .post-item-favorite.active svg {
		color: var(--red);
	}

	.posts-grid .post-item.post-item--public > .post-item-location {
		display: block;
		padding: 0;
		font-family: Inter, sans-serif;
		font-size: 11px;
		font-weight: 500;
		line-height: 16px;
		height: 32px;
		color: rgb(22 14 24 / 40%); /* FeedCard._locationStyle */
	}

	.post-item--public .post-item-location-region,
	.post-item--public .post-item-location-city {
		display: -webkit-box;
		font-family: inherit;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		line-clamp: 1;
		height: 16px;
		overflow: hidden;
	}

	.post-item--public .post-item-location-separator {
		display: none;
	}

	.posts-grid .post-item.post-item--public .post-item-price {
		grid-area: price;
		margin-top: 4px;
		font-family: Inter, sans-serif;
		font-size: 17px;
		line-height: 22px;
	}
}
