/**
 * Shelby New Products — front-end styles.
 * Scoped under .np-archive / .np-single so nothing leaks into the rest of
 * the site. Inherits the site's Libre Franklin body type; headers use the
 * theme's condensed display face.
 */

:root {
	--np-header-font: "Fira Sans Condensed", Helvetica, sans-serif;
	--np-ink: #1a1a1a;
	--np-muted: #6b6b6b;
	--np-line: #e2e2e2;
	--np-accent: #b8232f;      /* Product News badge — distinct from editorial labels */
	--np-accent-ink: #fff;
	--np-featured: #f4b000;
	--np-bg-soft: #f7f7f5;
	--np-radius: 4px;
	--np-maxw: 1400px;   /* matches the site's desktop body width */
}

/* -------------------------------------------------------------------------
 * Theme header reset
 * The default theme gives h1–h4 a background fill and a bottom border.
 * Neutralize that inside our section so product headings read as clean type.
 * ---------------------------------------------------------------------- */
.np-archive h1, .np-archive h2, .np-archive h3, .np-archive h4,
.np-single  h1, .np-single  h2, .np-single  h3, .np-single  h4 {
	background: none !important;
	border-bottom: 0 !important;
	padding: 0;
	margin: 0;
	font-family: var(--np-header-font);
	line-height: 1.15;
	color: var(--np-ink);
}

/* -------------------------------------------------------------------------
 * Archive
 * ---------------------------------------------------------------------- */
.np-archive {
	max-width: var(--np-maxw);
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.np-archive__head {
	padding-bottom: 18px;
	border-bottom: 2px solid var(--np-ink);
}
.np-archive__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}
.np-archive__intro {
	margin: 6px 0 0;
	max-width: 52ch;
	color: var(--np-muted);
	font-size: 1rem;
}

/* Toolbar: product count on the left, filters on the right, full width. */
.np-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	margin: 18px 0 28px;
}
.np-toolbar__count {
	margin: 0;
	font-family: var(--np-header-font);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--np-muted);
}

/* Filters */
.np-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0;
}
.np-filters select {
	padding: 8px 10px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	background: #fff;
	font-size: 0.95rem;
	max-width: 240px;
}
.np-filters__go {
	padding: 8px 16px;
	border: 0;
	border-radius: var(--np-radius);
	background: var(--np-ink);
	color: #fff;
	font-family: var(--np-header-font);
	cursor: pointer;
}
.np-filters__go:hover { background: var(--np-accent); }
.np-filters__clear {
	color: var(--np-muted);
	font-size: 0.9rem;
	text-decoration: underline;
}

/* Card grid */
.np-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px;
}
.np-card {
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.np-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}
.np-card--featured { border-color: var(--np-featured); }
.np-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 0 0 16px;
}
.np-card__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--np-bg-soft);
	overflow: hidden;
}
.np-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.np-card__thumb-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #f0f0ee, #f0f0ee 10px, #eaeae7 10px, #eaeae7 20px);
}
.np-card__flag {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--np-featured);
	color: #1a1a1a;
	font-family: var(--np-header-font);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 2px;
}
.np-card__brand {
	display: block;
	margin: 14px 16px 2px;
	font-family: var(--np-header-font);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--np-accent);
}
.np-card__name {
	margin: 0 16px !important;
	font-size: 1.12rem;
}
.np-card__meta {
	margin: 8px 16px 0;
	color: var(--np-muted);
	font-size: 0.9rem;
}

/* Pagination */
.np-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 40px;
	justify-content: center;
}
.np-pagination .page-numbers {
	padding: 8px 13px;
	border: 1px solid var(--np-line);
	border-radius: var(--np-radius);
	text-decoration: none;
	color: var(--np-ink);
}
.np-pagination .page-numbers.current {
	background: var(--np-ink);
	color: #fff;
	border-color: var(--np-ink);
}
.np-empty { padding: 48px 0; color: var(--np-muted); }

/* -------------------------------------------------------------------------
 * Single entry
 * ---------------------------------------------------------------------- */
.np-single {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}
.np-badge {
	display: inline-block;
	background: var(--np-accent);
	color: var(--np-accent-ink);
	font-family: var(--np-header-font);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 2px;
	margin-bottom: 14px;
}
.np-entry__title {
	font-size: clamp(1.9rem, 4.5vw, 2.8rem);
	margin-bottom: 10px !important;
}
.np-entry__terms {
	color: var(--np-muted);
	font-size: 0.95rem;
	margin: 0 0 24px;
}
.np-entry__terms span + span { margin-left: 14px; }
.np-entry__terms a { color: var(--np-accent); text-decoration: none; }
.np-entry__terms a:hover { text-decoration: underline; }

/* Two-column body: image on the left, copy + specs on the right. */
.np-entry__cols {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 36px;
	align-items: start;
}
.np-entry__cols--nomedia {
	grid-template-columns: 1fr;
}
.np-entry__media {
	margin: 0;
	position: sticky;
	top: 24px;
}
.np-entry__media img {
	width: 100%;
	height: auto;
	border-radius: var(--np-radius);
	display: block;
	background: var(--np-bg-soft);
}
.np-entry__main {
	min-width: 0; /* let the column shrink so long words/tables don't overflow */
}
.np-entry__body {
	font-size: 1.08rem;
	line-height: 1.7;
}
.np-entry__body p { margin: 0 0 1.1em; }

/* Spec table */
.np-specs {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0 20px;
	font-size: 1rem;
}
.np-specs th,
.np-specs td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--np-line);
	vertical-align: top;
}
.np-specs th {
	width: 34%;
	font-family: var(--np-header-font);
	font-weight: 600;
	color: var(--np-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.85rem;
}
.np-specs td a { color: var(--np-accent); }

.np-disclosure {
	margin-top: 8px;
	font-size: 0.85rem;
	font-style: italic;
	color: var(--np-muted);
}
.np-entry__foot {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--np-line);
}
.np-entry__back {
	font-family: var(--np-header-font);
	text-decoration: none;
	color: var(--np-ink);
}
.np-entry__back:hover { color: var(--np-accent); }

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
/* Narrower image column on mid widths. */
@media (max-width: 760px) {
	.np-entry__cols { grid-template-columns: 240px 1fr; gap: 26px; }
}

/* Stack the image above the copy on phones; drop the sticky. */
@media (max-width: 560px) {
	.np-entry__cols { grid-template-columns: 1fr; gap: 20px; }
	.np-entry__media {
		position: static;
		max-width: 260px;
	}
}

@media (max-width: 600px) {
	.np-archive__head { flex-direction: column; align-items: flex-start; }
	.np-filters select { flex: 1 1 100%; max-width: none; }
	.np-specs th { width: 42%; }
}
