/* ═══════════════════════════════════════════════════════════
   NV Product Catalog — catalog.css
   Стили для сетки товаров (Концепция 1) и боковых фильтров
   ═══════════════════════════════════════════════════════════ */

/* ── Заголовок каталога ───────────────────────────────────── */
.nvpc-catalog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 20px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e2e8f0;
}
.nvpc-catalog-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}
.nvpc-catalog-count {
	font-size: 14px;
	font-weight: 600;
	color: #3b82f6;
	background: #eff6ff;
	padding: 2px 10px;
	border-radius: 20px;
	margin-left: 10px;
}
.nvpc-sort-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
}
.nvpc-sort-btn {
	padding: 5px 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: all .15s;
}
.nvpc-sort-btn:hover { border-color: #3b82f6; color: #1d4ed8; }
.nvpc-sort-active { background: #1d4ed8; color: #fff !important; border-color: #1d4ed8; }

/* ── Сетка товаров ────────────────────────────────────────── */
.nvpc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-bottom: 32px;
}
@media (max-width: 1100px) { .nvpc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nvpc-grid { grid-template-columns: 1fr; } }

/* ── Карточка товара ──────────────────────────────────────── */
.nvpc-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .15s;
}
.nvpc-card:hover {
	box-shadow: 0 8px 28px rgba(0,0,0,.1);
	transform: translateY(-2px);
}
.nvpc-card--featured {
	border-color: #fbbf24;
	box-shadow: 0 0 0 2px #fef3c7;
}

/* Фото */
.nvpc-card__img-link { display: block; }
.nvpc-card__img {
	position: relative;
	width: 100%;
	height: 190px;
	background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.nvpc-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nvpc-card__img-placeholder { font-size: 56px; }
.nvpc-card__badge {
	position: absolute;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	line-height: 1.4;
}
.nvpc-card__badge--top { top: 10px; left: 10px; background: #ea580c; color: #fff; }
.nvpc-card__badge--photo { top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }

/* Тело */
.nvpc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}
.nvpc-card__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
	color: #0f172a;
}
.nvpc-card__name a { color: inherit; text-decoration: none; }
.nvpc-card__name a:hover { color: #1d4ed8; }

/* Характеристики */
.nvpc-card__specs { margin: 0 0 12px; }
.nvpc-card__spec {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	padding: 4px 0;
	border-bottom: 1px dashed #f1f5f9;
	gap: 6px;
}
.nvpc-card__spec:last-child { border-bottom: none; }
.nvpc-card__spec dt { color: #64748b; flex-shrink: 0; }
.nvpc-card__spec dd { font-weight: 600; color: #0f172a; text-align: right; margin: 0; }
.nvpc-unit { color: #94a3b8; font-weight: 400; }

/* Компания */
.nvpc-card__company {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: #eff6ff;
	border-radius: 10px;
	margin: 0 0 8px;
}
.nvpc-card__co-logo {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #1d4ed8;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}
.nvpc-card__co-info { flex: 1; min-width: 0; }
.nvpc-card__co-name {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #1d4ed8;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nvpc-card__co-name:hover { text-decoration: underline; }
.nvpc-card__co-rating { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.nvpc-stars { color: #f59e0b; font-size: 11px; }
.nvpc-card__co-rating-val { font-size: 11px; font-weight: 700; color: #374151; }
.nvpc-card__co-reviews { font-size: 11px; color: #94a3b8; }

/* Адрес */
.nvpc-card__address {
	font-size: 11px;
	color: #64748b;
	margin: 0 0 8px;
	display: flex;
	align-items: flex-start;
	gap: 4px;
}
.nvpc-card__ico { flex-shrink: 0; }

/* Цена */
.nvpc-card__price-block { margin-top: auto; padding-top: 10px; }
.nvpc-card__price-from { font-size: 11px; color: #94a3b8; }
.nvpc-card__price { font-size: 20px; font-weight: 900; color: #1d4ed8; line-height: 1.2; }
.nvpc-card__price--request { font-size: 14px; color: #94a3b8; font-style: italic; }
.nvpc-card__price-per { font-size: 12px; color: #64748b; font-weight: 400; }
.nvpc-card__deposit { font-size: 11px; color: #ea580c; margin-top: 2px; }

/* Кнопки */
.nvpc-card__actions {
	display: flex;
	gap: 6px;
	margin-top: 12px;
}
.nvpc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 1;
	padding: 9px 6px;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all .15s;
	white-space: nowrap;
}
.nvpc-btn--call { background: #dcfce7; color: #16a34a; }
.nvpc-btn--call:hover { background: #16a34a; color: #fff; }
.nvpc-btn--item { background: #1d4ed8; color: #fff; }
.nvpc-btn--item:hover { background: #1e40af; }

/* ── Фильтры по характеристикам (вставляются в сайдбар) ───── */
.nvpc-filter-extra {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}
.nvpc-filter-extra__title {
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 12px;
}
.nvpc-filter-field { margin-bottom: 16px; }
.nvpc-filter-field__label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}
.nvpc-range-wrap {}
.nvpc-range-slider {
	height: 4px;
	background: #dbeafe;
	border-radius: 2px;
	margin-bottom: 8px;
}
.nvpc-range-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}
.nvpc-range-input {
	width: 80px;
	padding: 4px 8px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 12px;
}
.nvpc-select-filter {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
}
.nvpc-bool-filter {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}
.nvpc-filter-apply {
	display: block;
	width: 100%;
	padding: 9px;
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 12px;
	transition: background .15s;
}
.nvpc-filter-apply:hover { background: #1e40af; }
.nvpc-filter-reset {
	display: block;
	text-align: center;
	margin-top: 8px;
	font-size: 12px;
	color: #64748b;
}

/* ── Пагинация ────────────────────────────────────────────── */
.nvpc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin: 24px 0;
}
.nvpc-page-btn {
	padding: 7px 13px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all .15s;
}
.nvpc-page-btn:hover { border-color: #3b82f6; color: #1d4ed8; }
.nvpc-page-active { background: #1d4ed8; color: #fff !important; border-color: #1d4ed8; }

/* ── Пустой результат ─────────────────────────────────────── */
.nvpc-empty {
	text-align: center;
	color: #94a3b8;
	padding: 40px 20px;
	font-size: 15px;
}

/* ─── FIX #4: новые виджеты фильтров ──────────────────── */
.nvpc-cb-filter {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	padding: 4px 0;
	cursor: pointer;
}
.nvpc-cb-filter input { margin: 0; accent-color: #1d4ed8; }

.nvpc-btn-filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.nvpc-btn-filter {
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all .12s;
}
.nvpc-btn-filter input { display: none; }
.nvpc-btn-filter--on,
.nvpc-btn-filter:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

.nvpc-filter-unit { font-style: normal; color: #94a3b8; font-size: 11px; font-weight: 400; }

/* ─── FIX #6: intro / seo-text / FAQ ──────────────────── */
.nvpc-catalog-h1 {
	font-size: 26px;
	font-weight: 800;
	color: #1a2332;
	margin: 0 0 16px;
	line-height: 1.2;
}
.nvpc-catalog-intro {
	font-size: 15px;
	line-height: 1.7;
	color: #374151;
	margin-bottom: 24px;
	max-width: 800px;
}

.nvpc-catalog-seo-text { margin: 32px 0 0; }
.nvpc-seo-text-toggle {
	background: none;
	border: none;
	color: #3498db;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	margin-bottom: 10px;
}
.nvpc-seo-text-toggle:hover { text-decoration: underline; }
.nvpc-seo-text-body {
	display: none;
	font-size: 14px;
	line-height: 1.75;
	color: #475569;
	max-width: 800px;
}
.nvpc-seo-text-body.is-open { display: block; }

.nvpc-catalog-faq { margin: 32px 0 0; }
.nvpc-catalog-faq__head {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
	color: #1a2332;
}
.nvpc-faq-item {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 8px;
	overflow: hidden;
}
.nvpc-faq-item__q {
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
}
.nvpc-faq-item__q::after { content: '↓'; color: #94a3b8; flex-shrink: 0; }
details[open] .nvpc-faq-item__q::after { content: '↑'; }
.nvpc-faq-item__a {
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
	border-top: 1px solid #e2e8f0;
}

/* ─── FIX #8: улучшенная пагинация ────────────────────── */
.nvpc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	align-items: center;
	margin: 28px 0;
}
.nvpc-page-btn {
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: all .15s;
}
.nvpc-page-btn:hover { border-color: #3b82f6; color: #1d4ed8; }
.nvpc-page-active { background: #1d4ed8; color: #fff !important; border-color: #1d4ed8; }
.nvpc-page-prev, .nvpc-page-next { color: #64748b; font-size: 12px; }
.nvpc-page-dots { color: #94a3b8; padding: 0 4px; }

/* ─── FIX #9: статус наличия в карточке ───────────────── */
.nvpc-card__stock { margin: 6px 0; }
.nvpc-stock { font-size: 12px; font-weight: 700; }
.nvpc-stock--in { color: #16a34a; }
.nvpc-stock--out { color: #dc2626; }

.nvpc-card--out-of-stock { opacity: .75; }
.nvpc-card--out-of-stock .nvpc-card__img { filter: grayscale(30%); }
.nvpc-card__badge--out {
	top: 10px; left: 10px;
	background: #dc2626;
	color: #fff;
}

/* ── SEO-теги: перелинковка длинного хвоста ─────────────── */
.nvpc-seo-tags-links {
	margin: 24px 0 0;
	padding: 16px 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}
.nvpc-seo-tags-links__title {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 10px;
}
.nvpc-seo-tags-links__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.nvpc-seo-tags-links__item {
	display: inline-block;
	padding: 5px 12px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	font-size: 13px;
	color: #374151;
	text-decoration: none;
	transition: all .15s;
}
.nvpc-seo-tags-links__item:hover {
	border-color: #3b82f6;
	color: #1d4ed8;
	background: #eff6ff;
}
