/* NV Product Catalog — admin-extended.css */

/* ── SEO Form ──────────────────────────────────────── */
.nvpc-seo-form { max-width: 900px; }
.nvpc-field-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.nvpc-hint { font-size: 11px; color: #94a3b8; font-weight: 400; }

/* FAQ editor */
.nvpc-faq-row {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px;
	margin-bottom: 12px;
	background: #f8fafc;
}
.nvpc-faq-q { margin-bottom: 8px !important; }
.nvpc-faq-a { margin-bottom: 8px !important; }

/* Filter tpl links */
.nvpc-filter-tpl { font-size: 12px; margin-right: 6px; }

/* ── Import layout ─────────────────────────────────── */
.nvpc-import-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 16px;
	max-width: 1100px;
}
@media(max-width:800px){ .nvpc-import-layout { grid-template-columns: 1fr; } }

/* ── Filter cfg layout ─────────────────────────────── */
.nvpc-filters-cfg-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 16px;
	max-width: 900px;
}

/* ═══════════════════════════════════════════════════════
   ФРОНТЕНД: lead form + reviews + crosslinks
   ═══════════════════════════════════════════════════════ */

/* ── Lead form ─────────────────────────────────────── */
.nvpc-lead-form {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.nvpc-lead-form__title {
	font-size: 14px;
	font-weight: 700;
	color: #1a2332;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}
.nvpc-lead-form__field { margin-bottom: 10px; }
.nvpc-lead-form__input,
.nvpc-lead-form__textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 13px;
	font-family: inherit;
	transition: border-color .15s;
}
.nvpc-lead-form__input:focus,
.nvpc-lead-form__textarea:focus { border-color: #3b82f6; outline: none; box-shadow: 0 0 0 2px rgba(59,130,246,.12); }
.nvpc-lead-form__textarea { resize: vertical; min-height: 72px; }
.nvpc-lead-form__btn {
	width: 100%;
	padding: 12px;
	background: #2c3e50;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s;
}
.nvpc-lead-form__btn:hover { background: #1a2332; }
.nvpc-lead-form__msg {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 500;
}
.nvpc-lead-form__msg--ok  { background: #dcfce7; color: #16a34a; }
.nvpc-lead-form__msg--err { background: #fee2e2; color: #dc2626; }
.nvpc-lead-form__privacy  { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 8px; }

/* ── Reviews ───────────────────────────────────────── */
.nvpc-reviews {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 28px 32px;
	margin-bottom: 24px;
}
.nvpc-reviews__head {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 12px;
}
.nvpc-reviews__summary { font-size: 14px; font-weight: 500; color: #64748b; }
.nvpc-reviews__stars { color: #f59e0b; }
.nvpc-reviews__empty { color: #94a3b8; font-size: 14px; margin-bottom: 24px; }
.nvpc-reviews__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.nvpc-review-item {
	background: #f8fafc;
	border-radius: 10px;
	padding: 14px 16px;
	border: 1px solid #f1f5f9;
}
.nvpc-review-item__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.nvpc-review-item__author { font-size: 13px; font-weight: 700; color: #1a2332; }
.nvpc-review-item__stars  { color: #f59e0b; font-size: 13px; }
.nvpc-review-item__date   { font-size: 11px; color: #94a3b8; margin-left: auto; }
.nvpc-review-item__text   { font-size: 14px; color: #374151; line-height: 1.6; }

/* Review form */
.nvpc-review-form { padding-top: 20px; border-top: 1px solid #e2e8f0; }
.nvpc-review-form__title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.nvpc-review-form__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: #64748b; }
.nvpc-review-form__input,
.nvpc-review-form__textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-family: inherit;
	margin-bottom: 10px;
}
.nvpc-review-form__btn {
	padding: 10px 20px;
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s;
}
.nvpc-review-form__btn:hover { background: #1e40af; }
.nvpc-review-form__msg { margin-top: 10px; padding: 8px 12px; border-radius: 7px; font-size: 13px; }

/* Star picker CSS-only */
.nvpc-star-picker { display: flex; flex-direction: row-reverse; gap: 2px; }
.nvpc-star-picker input { display: none; }
.nvpc-star-picker label { font-size: 22px; color: #d1d5db; cursor: pointer; transition: color .1s; }
.nvpc-star-picker label:hover,
.nvpc-star-picker label:hover ~ label,
.nvpc-star-picker input:checked ~ label { color: #f59e0b; }

/* ── Crosslinks ────────────────────────────────────── */
.nvpc-crosslink-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 24px 28px;
	margin-bottom: 20px;
}
.nvpc-crosslink-section--cats,
.nvpc-crosslink-section--tags { background: #f8fafc; }
.nvpc-crosslink-head {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
	color: #1a2332;
}
.nvpc-crosslink-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media(max-width:700px) { .nvpc-crosslink-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .nvpc-crosslink-grid { grid-template-columns: 1fr; } }

.nvpc-mini-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	background: #fff;
	transition: box-shadow .2s, transform .15s;
}
.nvpc-mini-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); transform: translateY(-2px); }
.nvpc-mini-card__img {
	height: 100px;
	background: linear-gradient(135deg, #e8f4fd, #dbeafe);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.nvpc-mini-card__img img { width: 100%; height: 100%; object-fit: cover; }
.nvpc-mini-card__no-photo { font-size: 32px; }
.nvpc-mini-card__body { padding: 10px 12px; flex: 1; }
.nvpc-mini-card__title { font-size: 12px; font-weight: 700; color: #1a2332; margin-bottom: 4px; line-height: 1.3; }
.nvpc-mini-card__company { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.nvpc-mini-card__price { font-size: 13px; font-weight: 700; color: #1d4ed8; }

/* Category links */
.nvpc-cat-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nvpc-cat-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #1a2332;
	text-decoration: none;
	transition: all .15s;
}
.nvpc-cat-link:hover { border-color: #1d4ed8; color: #1d4ed8; }
.nvpc-cat-link__cnt {
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 20px;
}

/* Tag links */
.nvpc-tag-group { margin-bottom: 14px; }
.nvpc-tag-group__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: 8px; }
.nvpc-tag-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nvpc-tag-link {
	padding: 5px 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	text-decoration: none;
	transition: all .15s;
}
.nvpc-tag-link:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
