/* NPP Product Archive Landing — Phase 1
   Breadcrumb, "how to order" strip and browse-by chips on product category /
   tag archives. Loaded only on product archives (includes/npp-archive-landing.php).
   Plan: npp-category-landing-plan.md */

/* ---- Breadcrumb ---- */

.npp-archive-crumbs {
	margin: 0 0 14px;
	font-family: 'Cabin', sans-serif;
	font-size: 13px;
	line-height: 18px;
	text-align: center;
}
.npp-archive-crumbs ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
.npp-archive-crumbs li {
	display: inline;
	color: #767676;
}
.npp-archive-crumbs li + li:before {
	content: "/";
	margin: 0 8px;
	color: #b5b5b5;
}
.npp-archive-crumbs a {
	color: #666;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.npp-archive-crumbs a:hover,
.npp-archive-crumbs a:focus {
	color: #3d3d3a;
	border-bottom-color: currentColor;
}
.npp-archive-crumbs [aria-current="page"] {
	color: #3d3d3a;
}

/* ---- "How to order" strip ---- */

/* ---- Plain intro (term description only; the coloured band was removed) ---- */

.npp-archive-intro {
	margin-bottom: 6px;
}
.npp-archive-intro .category-intro {
	max-width: 760px;
	margin: 0 auto;
}

/* ---- "Buy native plants online" — eNursery step cards + CTA band ---- */

.npp-archive-how {
	margin: 0 0 10px;
}
/* Reuses the theme's .custom-title.full-width-title rule (centred text with the
   flanking hairlines); only the size is lifted to match the eNursery heading. */
.npp-archive-how__title {
	font-size: 26px;
	line-height: 30px;
}
/* The cards come from the eNursery page's [npp_grid] verbatim, so they carry
   their own mt-50/mb-50 utilities — nothing to lay out here. */
.npp-archive-how__steps {
	margin: 0;
}

/* CTA band — replaces the removed slate intro band as the page's colour block */
.npp-archive-how__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	padding: 22px 24px;
	background: #f6f4ee;
	border-radius: 3px;
}
/* The CTA button itself is the shared .npp-box-cta from the single plant pages —
   only the archive wrapper's spacing is overridden here. Scoped to .npp-archive-how
   so it outranks .npp-box-cta in npp-favourites.css regardless of sheet order. */
.npp-archive-how .npp-box-cta--archive {
	margin: 0;
}
.npp-archive-how__price {
	margin: 0;
	font-family: 'Cabin', sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #6a6a63;
}
.npp-archive-how__price .amount {
	color: #3d3d3a;
	font-weight: bold;
}

/* ---- Orientation bar (directly above the product grid) ----
   Note: the theme hides .woocommerce-result-count and the ordering select
   (style.css:1967), so this bar is the only thing between the header and the
   grid — nothing to sit alongside. */

.npp-archive-bar {
	display: flex;
	flex-wrap: wrap;
	/* flex-end, not center: the button is taller than the text, and centring it
	   left the label floating 15px clear of the hairline. Bottom-aligning both
	   anchors the label to the line. */
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 34px 0 22px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e0e0da;
}
/* Lora italic, matching the .category-intro voice used elsewhere on the page.
   Selector is `.npp-archive-bar p.…` deliberately: style.css:142 sets
   `p:not(:last-child) { margin-bottom: 20px }` at (0,1,1), which outranks a bare
   single class and pushed the hairline 20px away from the text. */
.npp-archive-bar p.npp-archive-bar__label {
	margin: 0;
	font-family: 'Lora', serif;
	font-style: italic;
	font-size: 22px;
	line-height: 26px;
	color: #3d3d3a;
}
.npp-archive-bar__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 9px 18px;
	border: 1px solid #d3d0c6;
	border-radius: 999px;
	background: #fff;
	color: #4a4a46;
	font-family: 'Cabin', sans-serif;
	font-size: 13px;
	line-height: 17px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.npp-archive-bar__back:hover,
.npp-archive-bar__back:focus {
	background: #adc087;
	border-color: #adc087;
	color: #fff;
	text-decoration: none;
}
.npp-archive-bar__back-arrow {
	font-size: 15px;
	line-height: 1;
}

/* ---- Browse-by chips (after the loop) ---- */

.npp-archive-browse {
	margin: 10px 0 50px;
	padding-top: 26px;
	border-top: 1px solid #e0e0da;
	text-align: center;
}
.npp-archive-browse__title {
	margin: 0 0 16px;
	font-family: 'Lora', serif;
	font-size: 18px;
	line-height: 22px;
	font-weight: bold;
	text-transform: uppercase;
	color: #3d3d3a;
}
.npp-archive-browse__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.npp-archive-chip {
	display: inline-block;
	padding: 7px 15px;
	border: 1px solid #d3d0c6;
	border-radius: 999px;
	background: #fff;
	color: #4a4a46;
	font-family: 'Cabin', sans-serif;
	font-size: 14px;
	line-height: 18px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.npp-archive-chip:hover,
.npp-archive-chip:focus {
	background: #adc087;
	border-color: #adc087;
	color: #fff;
	text-decoration: none;
}
.npp-archive-browse__all {
	margin: 0;
	font-family: 'Cabin', sans-serif;
	font-size: 15px;
	line-height: 21px;
}
.npp-archive-browse__link {
	color: #3d3d3a;
	font-weight: bold;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.npp-archive-browse__link:hover,
.npp-archive-browse__link:focus {
	color: #bf1e2d;
	text-decoration: none;
}
.npp-archive-browse__note {
	display: block;
	margin-top: 5px;
	color: #767676;
	font-size: 14px;
}

/* ---- Mobile ---- */

@media (max-width: 767px) {
	.npp-archive-how__title {
		font-size: 20px;
		line-height: 24px;
	}
	/* Stack the band: button above the price line, both centred. */
	.npp-archive-how__cta {
		flex-direction: column;
		gap: 12px;
		padding: 18px 16px;
		text-align: center;
	}
	/* Stack the orientation bar; the button goes under the label, left-aligned. */
	.npp-archive-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin: 26px 0 18px;
	}
	.npp-archive-bar p.npp-archive-bar__label {
		font-size: 20px;
		line-height: 24px;
	}
	.npp-archive-browse {
		margin-bottom: 34px;
	}
}
