/* Лента статей: вид следующей статьи, товары по теме, переход к рубрикам. */

.dsh-feed-sentinel {
	height: 1px;
}

.dsh-feed-live {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dsh-feed-item {
	margin-top: 56px;
}

.dsh-feed-sep {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

.dsh-feed-sep::before,
.dsh-feed-sep::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

.dsh-feed-title {
	margin: 0 0 10px;
	font-size: 1.55em !important;
	line-height: 1.25 !important;
}

.dsh-feed-title a {
	color: inherit;
	text-decoration: none;
}

.dsh-feed-title a:hover {
	text-decoration: underline;
}

/* подзаголовки внутри подгруженной статьи на шаг меньше её заголовка,
   иначе h2 темы совпадает с названием статьи и путает читателя.
   Тема задаёт размер с !important, поэтому перебиваем так же */
#main section.dsh-feed-item .entry-content h2 {
	font-size: 1.25em !important;
	line-height: 1.32 !important;
	margin: 1.6em 0 0.6em !important;
}

#main section.dsh-feed-item .entry-content h3 {
	font-size: 1.15em !important;
	line-height: 1.35 !important;
	margin: 1.4em 0 0.5em !important;
}

#main section.dsh-feed-item .entry-content h4,
#main section.dsh-feed-item .entry-content h5,
#main section.dsh-feed-item .entry-content h6 {
	font-size: 1em !important;
	line-height: 1.4 !important;
	margin: 1.2em 0 0.4em !important;
}

.dsh-feed-meta {
	margin-bottom: 22px;
	font-size: 13px;
	color: #6b7280;
}

.dsh-feed-meta a {
	color: #4b5563;
	text-decoration: none;
	border-bottom: 1px solid #d1d5db;
}

.dsh-feed-products {
	margin-top: 30px;
	padding: 16px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fafafa;
}

.dsh-feed-products-title {
	margin-bottom: 10px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

.dsh-feed-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: inherit;
	text-decoration: none;
}

.dsh-feed-product + .dsh-feed-product {
	border-top: 1px solid #eceef1;
}

.dsh-feed-product img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}

.dsh-feed-product-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.dsh-feed-product-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.dsh-feed-product-price {
	font-size: 14px;
	color: #111827;
}

.dsh-feed-product-stock {
	font-size: 12px;
	color: #b45309;
}

.dsh-feed-cats {
	margin-top: 48px;
	padding: 24px;
	border-radius: 16px;
	background: #f4f5f7;
}

.dsh-feed-cats-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.dsh-feed-cats-sub {
	margin: 6px 0 18px;
	font-size: 13px;
	color: #6b7280;
}

.dsh-feed-cats-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}

.dsh-feed-cat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #e1e4e8;
	border-radius: 10px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.dsh-feed-cat:hover {
	border-color: #c3c8cf;
	transform: translateY(-1px);
}

.dsh-feed-cat-name {
	font-size: 14px;
	font-weight: 600;
}

.dsh-feed-cat-count {
	font-size: 12px;
	color: #6b7280;
	white-space: nowrap;
}

.dsh-feed-error {
	margin-top: 40px;
	padding: 18px;
	border: 1px solid #f3d5d5;
	border-radius: 12px;
	background: #fdf4f4;
	font-size: 14px;
	color: #7f1d1d;
}

.dsh-feed-error a {
	display: inline-block;
	margin-top: 8px;
	color: #1d4ed8;
}

@media (max-width: 700px) {
	.dsh-feed-item {
		margin-top: 40px;
	}

	#main section.dsh-feed-item .dsh-feed-title {
		font-size: 1.3em !important;
	}

	#main section.dsh-feed-item .entry-content h2 {
		font-size: 1.05em !important;
	}

	#main section.dsh-feed-item .entry-content h3 {
		font-size: 1.08em !important;
	}

	.dsh-feed-products,
	.dsh-feed-cats {
		padding: 14px;
	}

	.dsh-feed-product img {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
	}
}
