/* Blog / news — чёткое разделение статей в ленте */

body#news .posts.news-feed .nm_post {
	display: block;
	overflow: hidden;
	margin: 0 0 32px !important;
	padding: 24px 22px 20px !important;
	background: #f7f8fa;
	border: 1px solid #dde2e8;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	clear: both;
}

body#news .posts.news-feed .nm_post + .nm_post {
	margin-top: 12px !important;
}

body#news .posts.news-feed .nm_post:last-child {
	margin-bottom: 0 !important;
}

/* Заголовок — всегда отделён от предыдущей статьи */
body#news .posts.news-feed .nm_post_title {
	margin: 0 0 12px !important;
	padding: 0 0 12px !important;
	font-size: 22px;
	line-height: 1.35;
	border-bottom: 3px solid #3D61FF;
	clear: both;
}

body#news .posts.news-feed .nm_post_title a {
	color: #222;
	text-decoration: none;
}

body#news .posts.news-feed .nm_post_title a:hover {
	color: #3D61FF;
}

body#news .posts.news-feed .nm_post_date {
	margin: 0 0 16px !important;
	padding: 0 !important;
	font-size: 13px;
	color: #888;
	clear: both;
}

/* Картинка слева — сброс float внутри карточки */
body#news .posts.news-feed .nm_post_image {
	float: left;
	margin: 4px 18px 12px 0 !important;
	max-width: 150px;
}

body#news .posts.news-feed .nm_post_image img {
	float: none !important;
	display: block;
	width: 100% !important;
	max-width: 150px;
	height: auto !important;
	margin: 0 !important;
	padding: 4px;
	background: #fff;
	border: 1px solid #e0e0e0;
}

body#news .posts.news-feed .nm_post_content {
	overflow: hidden;
	line-height: 1.65;
}

body#news .posts.news-feed .nm_post_content p {
	margin-bottom: 14px !important;
}

/* Теги — внизу карточки, после текста */
body#news .posts.news-feed .nm_post_meta {
	clear: both !important;
	margin: 18px 0 0 !important;
	padding: 14px 0 0 !important;
	font-size: 13px;
	color: #666;
	border-top: 1px dashed #cfd5dc;
}

body#news .posts.news-feed .nm_readmore a {
	font-weight: 600;
}

/* Одиночная статья */
body#news .posts.news-feed .nm_post_single {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

body#news .posts.news-feed .nm_post_single .nm_post_title {
	display: none;
}

body#news .posts.news-feed .nm_post_single .nm_post_date {
	margin-bottom: 24px !important;
	font-size: 14px;
	color: #666;
}

body#news .posts.news-feed .nm_post_single .nm_post_content > h3,
body#news .posts.news-feed .nm_post_single .nm_post_content h3:first-of-type {
	font-size: 19px;
	margin: 28px 0 12px;
	padding: 8px 0 8px 14px;
	border-left: 4px solid #3D61FF;
	border-bottom: none;
}

body#news .posts.news-feed .nm_post_single .nm_post_content h3:after {
	display: none;
}

body#news .posts.news-feed .nm_post_back {
	clear: both;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

body#news .posts.news-feed .nm_post_back a {
	font-weight: 600;
}

/* Пагинация */
body#news nav.nm_pagination_wrap {
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
	text-align: center;
}

body#news .nm_page_nav.pagination {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body#news .nm_page_nav.pagination > li {
	display: inline-block;
}

body#news .nm_page_nav.pagination > li > a,
body#news .nm_page_nav.pagination > li > span {
	display: inline-block;
	min-width: 38px;
	height: 38px;
	line-height: 36px;
	padding: 0 12px;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	background: #fff;
}

body#news .nm_page_nav.pagination > li > a:hover {
	background: #ffd200;
	border-color: #ffd200;
	color: #222;
}

body#news .nm_page_nav.pagination > li.active > span {
	background: #3D61FF;
	border-color: #3D61FF;
	color: #fff;
}

body#news .nm_page_nav.pagination > li.disabled > span {
	color: #bbb;
	border-color: #eee;
	background: #fafafa;
}

/* Прайс-таблица в статьях — клик по строке / корзинке как на /price/ */
body#news .posts .modal-table {
	width: 100%;
	margin: 16px 0;
}

body#news .posts .modal-table tr[data-type] {
	transition: background 0.2s ease;
}

body#news .posts .modal-table tr[data-type]:hover {
	background: #e6e6e6;
	cursor: pointer;
}

body#news .posts .modal-table button#add-product-to-cart {
	pointer-events: none;
}
