/* =========================================================================
   Product archives (shop, categories, brands, tags)
   archive-product.php + inc/archive.php. Loaded only on those pages.
   Values are read off Category Page.dc.html / Shop.dc.html.
   Class prefix: .ahnl-arc-*   (tokens come from style.css :root)
   ========================================================================= */

.ahnl-arc {
	color: var( --ahnl-ink );
}

/* --- Hero ---------------------------------------------------------------- */
/* A short banner (2026-09-30, user): the design's tall hero with a kicker pill, decorative rings
   and a "Shop N products" button made every archive look like a second homepage. */
.ahnl-arc-hero {
	background:
		radial-gradient( 900px 420px at 88% 18%, rgba( 76, 175, 80, 0.22 ), transparent 70% ),
		linear-gradient( 104deg, #16220f 0%, #1f2b1e 52%, #2a3a24 100% );
}

.ahnl-arc-hero__inner {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	padding: clamp( 18px, 2.4vw, 32px ) 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Parent trail on sub-categories, "Ayurveda › Churna". */
.ahnl-arc-hero__trail {
	color: #e9c97c;
	font: 600 11px/1.3 "AH Inter", system-ui, sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ahnl-arc-hero__title {
	margin: 0;
	color: #fff;
	font: 700 clamp( 20px, 2.6vw, 32px ) / 1.2 "AH Poppins", sans-serif;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.ahnl-arc-hero__intro {
	margin: 0;
	max-width: 70ch;
	color: #dde5d8;
	font: 400 clamp( 13px, 1.1vw, 15px ) / 1.5 "AH Inter", system-ui, sans-serif;
	text-wrap: pretty;
}

/* --- Trust strip ---------------------------------------------------------- */
.ahnl-arc-trust {
	background: #fff;
	border-bottom: 1px solid var( --ahnl-line );
}

.ahnl-arc-trust__grid {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	padding: clamp( 18px, 2.2vw, 26px ) 22px;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 220px ), 1fr ) );
	gap: 12px;
}

.ahnl-arc-trust__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 15px 16px;
	background: var( --ahnl-page );
	border: 1px solid var( --ahnl-line );
	border-radius: 16px;
}

.ahnl-arc-trust__icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: #f1f5ef;
}

.ahnl-arc-trust__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ahnl-arc-trust__title {
	font: 600 12.5px/1.35 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-ink );
}

.ahnl-arc-trust__sub {
	font: 400 11.5px/1.5 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-muted );
	text-wrap: pretty;
}

/* Phones: one swipe row instead of three stacked cards (auto-advances, js/rail.js). */
@media ( max-width: 699px ) {
	.ahnl-arc-trust__grid {
		display: flex;
		gap: 10px;
		padding-block: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 22px;
		scrollbar-width: none;
	}

	.ahnl-arc-trust__grid::-webkit-scrollbar {
		display: none;
	}

	.ahnl-arc-trust__item {
		flex: 0 0 82%;
		padding: 11px 14px;
		align-items: center;
		scroll-snap-align: start;
	}
}

.ahnl-arc-anchor {
	display: block;
	height: 0;
}

/* --- Sticky toolbar --------------------------------------------------------- */
.ahnl-arc-bar {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var( --ahnl-page );
	border-bottom: 1px solid var( --ahnl-line );
	box-shadow: 0 6px 18px rgba( 31, 43, 30, 0.05 );
}

.ahnl-arc-bar__inner {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	padding: 11px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ahnl-arc-bar__count {
	font: 600 13px/1.3 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-ink );
	white-space: nowrap;
}

.ahnl-arc-bar__spacer {
	flex: 1;
}

.ahnl-arc-stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px;
	border: 1.5px solid #dcdbd0;
	border-radius: 99px;
	background: #fff;
	color: var( --ahnl-muted );
	font: 600 12px/1 "AH Inter", system-ui, sans-serif;
	white-space: nowrap;
	text-decoration: none;
}

.ahnl-arc-stock__box {
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #dcdbd0;
	border-radius: 4px;
	color: #fff;
	font: 700 8.5px/1 "AH Inter", system-ui, sans-serif;
}

.ahnl-arc-stock.is-on {
	border-color: var( --ahnl-green );
	background: #f1f5ef;
	color: var( --ahnl-green );
}

.ahnl-arc-stock.is-on .ahnl-arc-stock__box {
	border-color: var( --ahnl-green );
	background: var( --ahnl-green );
}

.ahnl-arc-stock:hover,
.ahnl-arc-stock:focus {
	border-color: var( --ahnl-green-accent );
	color: var( --ahnl-green );
}

.ahnl-arc-sort {
	margin: 0;
}

.ahnl-arc-sort select {
	min-height: 42px;
	padding: 0 13px;
	border: 1px solid var( --ahnl-line );
	border-radius: 99px;
	background-color: #fff;
	color: var( --ahnl-ink );
	font: 500 12px/1 "AH Inter", system-ui, sans-serif;
	cursor: pointer;
}

/* --- Main: filters + results --------------------------------------------------- */
.ahnl-arc-main {
	padding: clamp( 18px, 2.4vw, 28px ) 22px clamp( 34px, 4vw, 54px );
	background: var( --ahnl-page );
}

.ahnl-arc-main__grid {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax( 220px, 258px ) minmax( 0, 1fr );
	gap: clamp( 16px, 2vw, 26px );
	align-items: start;
}

/* Not sticky: the filter column is taller than a laptop screen, and a sticky
   box taller than the viewport cuts its own bottom off while scrolling. */
.ahnl-arc-side {
	min-width: 0;
}

.ahnl-arc-filters > * + * {
	margin-top: 12px;
}

.ahnl-arc-filters > summary {
	display: none;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var( --ahnl-line );
	border-radius: 99px;
	background: #fff;
	color: var( --ahnl-ink );
	font: 600 13px/1 "AH Inter", system-ui, sans-serif;
	cursor: pointer;
	list-style: none;
}

.ahnl-arc-filters > summary::-webkit-details-marker {
	display: none;
}

.ahnl-arc-card {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 18px;
	background: #fff;
	border: 1px solid var( --ahnl-line );
	border-radius: 18px;
}

.ahnl-arc .ahnl-arc-card__title {
	margin: 0;
	font: 600 16px/1.3 "AH Poppins", sans-serif;
	letter-spacing: 0;
	color: var( --ahnl-ink );
}

/* --- Filter groups (inc/archive.php ahnl_archive_facet) --- */
.ahnl-facet__search {
	position: relative;
}

.ahnl-facet__search[hidden] {
	display: none;
}

.ahnl-arc .ahnl-facet__search input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid var( --ahnl-line );
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: var( --ahnl-ink );
	font: 400 14px/1.2 "AH Inter", system-ui, sans-serif;
}

.ahnl-arc .ahnl-facet__search input[type="search"]:focus {
	border-color: var( --ahnl-green );
	outline: 2px solid rgba( 46, 125, 50, 0.25 );
	outline-offset: 0;
}

.ahnl-facet__search svg {
	position: absolute;
	top: 50%;
	right: 13px;
	transform: translateY( -50% );
	color: #6b7265;
	pointer-events: none;
}

.ahnl-arc ul.ahnl-facet__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahnl-facet__li[hidden] {
	display: none;
}

.ahnl-arc a.ahnl-facet__item {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 36px;
	padding: 2px 0;
	color: #3b4138;
	font: 400 14px/1.35 "AH Inter", system-ui, sans-serif;
	text-decoration: none;
}

.ahnl-arc a.ahnl-facet__item:hover,
.ahnl-arc a.ahnl-facet__item:focus-visible {
	color: var( --ahnl-green );
}

.ahnl-facet__box {
	flex: 0 0 auto;
	position: relative;
	width: 17px;
	height: 17px;
	border: 1.5px solid #c9cdc4;
	border-radius: 4px;
	background: #fff;
}

.ahnl-facet__item:hover .ahnl-facet__box {
	border-color: var( --ahnl-green );
}

.ahnl-facet__item.is-on .ahnl-facet__box {
	border-color: var( --ahnl-green );
	background: var( --ahnl-green );
}

/* The tick. */
.ahnl-facet__item.is-on .ahnl-facet__box::after {
	content: "";
	position: absolute;
	left: 4.5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.ahnl-arc a.ahnl-facet__item.is-on {
	color: var( --ahnl-ink );
	font-weight: 600;
}

.ahnl-facet__name {
	flex: 1 1 auto;
	min-width: 0;
}

.ahnl-facet__count {
	flex: 0 0 auto;
	color: #6b7265;
	font-size: 13px;
	font-weight: 400;
}

.ahnl-facet__more > summary {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var( --ahnl-green );
	font: 600 14px/1 "AH Inter", system-ui, sans-serif;
	cursor: pointer;
	list-style: none;
}

.ahnl-facet__more > summary::-webkit-details-marker {
	display: none;
}

/* The "+N more" line reads "Show less" once opened; hidden while searching. */
.ahnl-facet__more[open] > summary {
	font-size: 0;
}

.ahnl-facet__more[open] > summary::before {
	content: "Show less";
	font-size: 14px;
}

.ahnl-facet__more.is-searching > summary {
	display: none;
}

.ahnl-facet__none {
	margin: 0;
	color: #6b7265;
	font: 400 13px/1.4 "AH Inter", system-ui, sans-serif;
}

.ahnl-facet__none[hidden] {
	display: none;
}

.ahnl-arc a.ahnl-facet__clear {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: var( --ahnl-green );
	font: 600 13.5px/1 "AH Inter", system-ui, sans-serif;
	text-decoration: underline;
}

.ahnl-arc-help {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 18px;
	background: #1f2b1e;
	border-radius: 18px;
}

.ahnl-arc-help__title {
	font: 600 13.5px/1.35 "AH Poppins", sans-serif;
	color: #fff;
}

.ahnl-arc-help__text {
	font: 400 12.5px/1.65 "AH Inter", system-ui, sans-serif;
	color: #d8ded4;
	text-wrap: pretty;
}

.ahnl-arc-help__btn {
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 99px;
	background: #fff;
	color: #1f2b1e;
	font: 600 12.5px/1 "AH Inter", system-ui, sans-serif;
	text-decoration: none;
}

.ahnl-arc-help__btn:hover,
.ahnl-arc-help__btn:focus {
	background: #f1f5ef;
	color: #1f2b1e;
}

.ahnl-arc-results {
	min-width: 0;
}

.ahnl-arc-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( min( 100%, 218px ), 1fr ) );
	gap: clamp( 12px, 1.4vw, 16px );
}

.ahnl-arc-empty {
	padding: 34px 22px;
	text-align: center;
	background: #fff;
	border: 1px dashed #dcdbd0;
	border-radius: 18px;
	font: 500 14px/1.6 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-muted );
}

.ahnl-arc-empty a {
	color: var( --ahnl-green );
	font-weight: 600;
	text-decoration: underline;
}

/* WooCommerce's pagination, reset from its bordered-box default to pills. */
.ahnl-arc .woocommerce-pagination {
	margin-top: 34px;
}

.ahnl-arc .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.ahnl-arc .woocommerce-pagination ul.page-numbers li {
	float: none;
	margin: 0;
	border: 0;
	overflow: visible;
}

.ahnl-arc .woocommerce-pagination .page-numbers a,
.ahnl-arc .woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var( --ahnl-line );
	border-radius: 99px;
	background: #fff;
	color: var( --ahnl-ink );
	font: 600 13px/1 "AH Inter", system-ui, sans-serif;
	text-decoration: none;
}

.ahnl-arc .woocommerce-pagination .page-numbers a:hover,
.ahnl-arc .woocommerce-pagination .page-numbers a:focus {
	border-color: var( --ahnl-green-accent );
	background: #fff;
	color: var( --ahnl-green );
}

.ahnl-arc .woocommerce-pagination .page-numbers .current {
	border-color: var( --ahnl-green );
	background: var( --ahnl-green );
	color: #fff;
}

/* --- Long description (only when the term has real copy beyond ~320 chars) --- */
.ahnl-arc-about {
	padding: 52px max( 22px, calc( ( 100% - var( --ahnl-container ) ) / 2 ) );
	background: #fff;
	border-top: 1px solid var( --ahnl-line );
}

.ahnl-arc-about__inner {
	max-width: 820px;
	font: 400 15.5px/1.8 "AH Inter", system-ui, sans-serif;
	color: #4a4f46;
}

.ahnl-arc-about__inner h2,
.ahnl-arc-about__inner h3 {
	margin: 1.6em 0 0.6em;
	font-family: "AH Poppins", sans-serif;
	font-weight: 600;
	line-height: 1.25;
	color: var( --ahnl-ink );
}

.ahnl-arc-about__inner h2 { font-size: clamp( 22px, 2.6vw, 28px ); }
.ahnl-arc-about__inner h3 { font-size: clamp( 18px, 2vw, 21px ); }
.ahnl-arc-about__inner > :first-child { margin-top: 0; }
.ahnl-arc-about__inner p { margin: 0 0 1.1em; }
.ahnl-arc-about__inner ul,
.ahnl-arc-about__inner ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.ahnl-arc-about__inner a { color: var( --ahnl-green ); text-decoration: underline; }

@media ( max-width: 899px ) {
	.ahnl-arc-main__grid {
		grid-template-columns: 1fr;
	}

	.ahnl-arc-side {
		position: static;
	}

	.ahnl-arc-filters > summary {
		display: flex;
		margin-bottom: 12px;
	}

	.ahnl-arc-filters:not( [open] ) > summary {
		margin-bottom: 0;
	}
}
