/* ==========================================================================
   HA Product Page – shop / product archive
   Scoped to .ha-shop (inside .ha-pp), never loaded outside targeted archives.
   Tokens, badge, stars and trust badges come from ha-base.css.
   ========================================================================== */

.ha-pp.ha-shop {
	--ha-hero-height: clamp(440px, 44vw, 620px);
	--ha-hero-overlay: 0.65;
	/* Heavy condensed display face for the hero heading. Point this at the
	   brand font once it is self-hosted; the stack is a system fallback. */
	--ha-font-display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "HelveticaNeue-CondensedBlack", Impact, sans-serif;
	--ha-card-gap: 40px;
	--ha-columns: 1;
	--ha-sidebar-width: 220px;

	display: block;
	overflow-x: clip;
}

/* --------------------------------------------------------------------------
   Shared inner width
   -------------------------------------------------------------------------- */

.ha-shop__inner {
	max-width: var(--ha-max-width);
	margin: 0 auto;
	padding: 0 var(--ha-gutter);
}

/* --------------------------------------------------------------------------
   Hero banner – full bleed, dark gradient on the left
   -------------------------------------------------------------------------- */

.ha-shop__hero {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--ha-hero-height);
	overflow: hidden;
	background: var(--ha-dark);
	isolation: isolate;
}

.ha-shop__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	z-index: -2;
}

/* No image set: a brand gradient still gives the white text something to sit on. */
.ha-shop__hero--plain {
	background: linear-gradient(120deg, var(--ha-dark) 0%, var(--ha-purple-dark) 100%);
}

.ha-shop__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Darkens only the left, behind the text, and is fully clear by 75%:
	   the image itself is never dimmed across the board. */
	background: linear-gradient(
		90deg,
		rgba(10, 18, 40, var(--ha-hero-overlay)) 0%,
		rgba(10, 18, 40, calc(var(--ha-hero-overlay) * 0.75)) 35%,
		rgba(10, 18, 40, calc(var(--ha-hero-overlay) * 0.25)) 60%,
		rgba(10, 18, 40, 0) 75%
	);
}

.ha-shop__hero-inner {
	position: relative;
	width: 100%;
	padding-top: 48px;
	padding-bottom: 48px;
}

.ha-shop__hero-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	/* Roughly the left half of the banner on desktop. */
	max-width: min(640px, 52%);
	color: #fff;
	text-align: left;
}

.ha-shop .ha-shop__hero-eyebrow {
	margin: 0 0 14px;
	font-size: clamp(14px, 1.35vw, 20px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: #fff;
}

.ha-shop .ha-shop__hero-heading {
	margin: 0;
	font-family: var(--ha-font-display);
	font-size: clamp(56px, 7.6vw, 124px);
	font-stretch: condensed;
	font-style: italic;
	font-weight: 900;
	line-height: 0.88;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #fff;
	/* Last resort for a long custom word on a narrow phone. */
	overflow-wrap: anywhere;
}

.ha-shop__hero-line {
	display: block;
}

.ha-shop__hero-line--2 {
	color: var(--ha-lime);
}

.ha-shop .ha-shop__hero-subtitle {
	margin: 22px 0 0;
	font-size: clamp(15px, 1.3vw, 19px);
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
}

/* One line each on desktop; on narrow screens they flow as one sentence. */
.ha-shop__hero-subline {
	display: block;
}

.ha-shop .ha-shop__hero-btn,
.ha-shop .ha-shop__hero-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 50px;
	margin-top: 28px;
	padding: 0 34px;
	border: 1px solid #fff;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ha-shop .ha-shop__hero-btn:hover,
.ha-shop .ha-shop__hero-btn:focus {
	background: #fff;
	color: var(--ha-dark);
}

.ha-shop .ha-shop__hero-btn:focus-visible {
	outline: 3px solid var(--ha-lime);
	outline-offset: 3px;
}

.ha-shop__hero-btn-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

/* Script accent, bottom right. */
.ha-shop__hero-script {
	position: absolute;
	right: clamp(24px, 5vw, 96px);
	bottom: clamp(20px, 4vw, 56px);
	z-index: 1;
	width: clamp(180px, 20vw, 300px);
	height: auto;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Feature strip – full bleed, below the hero
   -------------------------------------------------------------------------- */

.ha-shop__strip {
	width: 100%;
	/* Reuses the existing soft-purple brand tint. */
	background: var(--ha-purple-soft);
}

.ha-shop__strip-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding-top: 22px;
	padding-bottom: 22px;
}

.ha-shop__strip-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
	padding: 4px 16px;
	list-style: none;
	text-align: center;
}

/* Thin dividers between items, never before the first one in a row. */
.ha-shop__strip-item + .ha-shop__strip-item {
	border-left: 1px solid var(--ha-strip-divider, rgba(124, 58, 237, 0.22));
}

.ha-shop__strip-icon {
	width: 30px;
	height: 30px;
	color: var(--ha-purple);
	flex: 0 0 auto;
}

.ha-shop__strip-label {
	max-width: 16ch;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ha-purple-dark);
}
/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */

.ha-shop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	padding-top: 40px;
	padding-bottom: 8px;
}

.ha-shop .ha-shop__heading {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ha-dark);
}

/* Short purple rule under the heading. */
.ha-shop .ha-shop__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: var(--ha-purple);
}

.ha-shop__sort {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.ha-shop__sort .woocommerce-ordering {
	margin: 0;
	float: none;
}

/* Specificity is deliberate: it has to beat `.woocommerce …` defaults from
   WooCommerce and from themes. */
.ha-shop .ha-shop__sort select,
.ha-shop .ha-shop__sort form.woocommerce-ordering select.orderby {
	appearance: none;
	-webkit-appearance: none;
	max-width: 100%;
	min-height: 44px;
	padding: 0 42px 0 16px;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
	color: var(--ha-dark);
	font: inherit;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
}

.ha-shop .ha-shop__sort select:focus-visible {
	outline: 3px solid var(--ha-purple);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Listing: filter sidebar + product grid
   -------------------------------------------------------------------------- */

.ha-shop__listing {
	display: grid;
	grid-template-columns: var(--ha-sidebar-width) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	padding-top: 16px;
	padding-bottom: 56px;
}

.ha-shop__sidebar {
	min-width: 0;
}

/* ---- "Browse by" ---- */

.ha-shop .ha-filters__title {
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ha-border);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ha-dark);
}

/* Toggle button, added by JS on small screens only. */
.ha-filters__toggle {
	display: none;
}

.ha-shop .ha-filters__group {
	border-bottom: 1px solid var(--ha-border);
}

.ha-shop .ha-filters__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	color: var(--ha-dark);
	font-size: 15px;
	font-weight: 600;
}

/* Hide the native disclosure marker in every engine. */
.ha-shop .ha-filters__summary::-webkit-details-marker {
	display: none;
}

.ha-shop .ha-filters__summary::marker {
	content: "";
}

.ha-shop .ha-filters__summary:focus-visible {
	outline: 3px solid var(--ha-purple);
	outline-offset: 2px;
}

/* The +/- indicator. */
.ha-shop .ha-filters__summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: var(--ha-muted);
}

.ha-shop .ha-filters__group[open] > .ha-filters__summary::after {
	content: "\2212"; /* minus */
}

.ha-shop .ha-filters__list {
	list-style: none;
	margin: 0;
	padding: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ha-shop .ha-filters__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ha-shop .ha-filters__link {
	display: inline-block;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--ha-muted);
	text-decoration: none;
}

.ha-shop .ha-filters__link:hover,
.ha-shop .ha-filters__link:focus-visible {
	color: var(--ha-purple);
}

.ha-shop .ha-filters__link.is-active {
	font-weight: 600;
	color: var(--ha-purple);
}

/* ---- colour swatches ---- */

.ha-shop .ha-filters__colour {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--ha-text);
	text-decoration: none;
}

.ha-shop .ha-filters__colour:hover .ha-filters__colour-name,
.ha-shop .ha-filters__colour:focus-visible .ha-filters__colour-name {
	color: var(--ha-purple);
}

.ha-shop .ha-filters__colour.is-selected .ha-filters__colour-name {
	font-weight: 700;
	color: var(--ha-dark);
}

.ha-shop .ha-filters__swatch {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ha-swatch, #d1d5db);
	/* Inner hairline keeps pale swatches visible on white. */
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.16);
}

/* Selected swatches get the purple ring used on the single product page. */
.ha-shop .ha-filters__colour.is-selected .ha-filters__swatch {
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.16), 0 0 0 2px #fff, 0 0 0 4px var(--ha-purple);
}

.ha-shop .ha-filters__colour:focus-visible .ha-filters__swatch {
	outline: 3px solid var(--ha-purple);
	outline-offset: 4px;
}

.ha-shop .ha-filters__clear {
	margin: 18px 0 0;
	font-size: 14px;
}

.ha-shop .ha-filters__clear a {
	color: var(--ha-purple);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Product grid
   -------------------------------------------------------------------------- */

.ha-shop__results {
	padding-bottom: 56px;
}

.ha-shop ul.ha-shop__grid {
	display: grid;
	/* A fixed track count, not auto-fit: with one or two products the cards
	   keep their size instead of stretching across the whole row. */
	grid-template-columns: repeat(var(--ha-columns), minmax(0, 1fr));
	gap: var(--ha-card-gap);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Undo the float grid WooCommerce and themes attach to `.products` / `.product`. */
.ha-shop ul.ha-shop__grid::before,
.ha-shop ul.ha-shop__grid::after,
.ha-shop ul.ha-shop__grid li.ha-card::before,
.ha-shop ul.ha-shop__grid li.ha-card::after {
	content: none;
	display: none;
}

.ha-shop ul.ha-shop__grid li.ha-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
	clear: none;
	list-style: none;
	text-align: left;
}

/* ---- media ---- */

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--ha-radius);
	overflow: hidden;
	/* Flush: no plate behind the image, no card border or background. */
	background: none;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__media-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__media-link:hover img,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__media-link:focus-visible img {
	transform: scale(1.03);
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	align-self: auto;
	padding: 4px 12px;
	font-size: 12px;
	box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

/* ---- body ---- */

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--ha-dark);
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__title a {
	color: inherit;
	text-decoration: none;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__title a:hover,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__title a:focus-visible {
	text-decoration: underline;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ha-muted);
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price .amount {
	color: inherit;
	font-weight: inherit;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price del,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price del .amount {
	font-weight: 500;
	color: var(--ha-muted);
	text-decoration: line-through;
	opacity: 1;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price ins {
	background: none;
	text-decoration: none;
	font-weight: 700;
	color: var(--ha-dark);
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price small,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__price .woocommerce-Price-taxLabel {
	font-size: 12px;
	font-weight: 500;
	color: var(--ha-muted);
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__rating .ha-stars svg {
	flex-basis: 15px;
	width: 15px;
	height: 15px;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__reviews {
	font-size: 14px;
	color: var(--ha-muted);
}

/* ---- action: pushed to the bottom so buttons line up across a row ---- */

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__action {
	margin-top: auto;
	padding-top: 6px;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	margin: 0;
	border: 0;
	/* Pill. */
	border-radius: 999px;
	background: var(--ha-purple);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	float: none;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn:hover,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn:focus {
	background: var(--ha-purple-dark);
	color: #fff;
}

/* Out of stock. */
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn--disabled,
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn--disabled:hover {
	background: var(--ha-surface);
	color: var(--ha-muted);
	cursor: not-allowed;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn:focus-visible {
	outline: 3px solid var(--ha-purple);
	outline-offset: 2px;
}

/* Woo's own states while an AJAX add-to-cart is in flight. */
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ha-shop ul.ha-shop__grid li.ha-card .ha-card__btn.added {
	background: var(--ha-purple);
	color: #fff;
}

/* Woo appends a "View cart" link after a successful AJAX add. */
.ha-shop ul.ha-shop__grid li.ha-card .ha-card__action .added_to_cart {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: var(--ha-purple);
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.ha-shop__empty {
	padding: 40px 24px 48px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius);
	background: var(--ha-surface);
	text-align: center;
}

.ha-shop .ha-shop__empty-text {
	margin: 0;
	font-size: 17px;
	color: var(--ha-text);
}

.ha-shop .ha-shop__empty-action {
	margin: 10px 0 0;
	font-size: 15px;
}

.ha-shop .ha-shop__empty-action a {
	color: var(--ha-purple);
	font-weight: 600;
	text-decoration: underline;
}

/* WooCommerce notices printed above the loop. */
.ha-shop .ha-shop__results .woocommerce-info,
.ha-shop .ha-shop__results .woocommerce-message {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--ha-border);
	border-radius: var(--ha-radius-sm);
	background: var(--ha-surface);
	color: var(--ha-text);
	list-style: none;
}

.ha-shop .ha-shop__results .woocommerce-info::before,
.ha-shop .ha-shop__results .woocommerce-message::before {
	content: none;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.ha-shop nav.woocommerce-pagination {
	margin: 40px 0 0;
	text-align: center;
}

.ha-shop nav.woocommerce-pagination ul,
.ha-shop nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.ha-shop nav.woocommerce-pagination ul li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	overflow: visible;
	float: none;
}

.ha-shop nav.woocommerce-pagination ul li a.page-numbers,
.ha-shop nav.woocommerce-pagination ul li span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ha-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ha-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ha-shop nav.woocommerce-pagination ul li a.page-numbers:hover,
.ha-shop nav.woocommerce-pagination ul li a.page-numbers:focus {
	border-color: var(--ha-purple);
	background: #fff;
	color: var(--ha-purple);
}

.ha-shop nav.woocommerce-pagination ul li span.page-numbers.current {
	background: var(--ha-purple);
	border-color: var(--ha-purple);
	color: #fff;
}

.ha-shop nav.woocommerce-pagination ul li span.page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* --------------------------------------------------------------------------
   Footer CTA band – full bleed, water-texture background
   -------------------------------------------------------------------------- */

.ha-shop__cta {
	position: relative;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
	background: var(--ha-purple-soft);
}

.ha-shop__cta-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	z-index: -1;
}

.ha-shop__cta-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 40px;
	padding-top: 40px;
	padding-bottom: 40px;
}

.ha-shop__cta-heading {
	flex: 0 0 auto;
	margin: 0;
	/* Thin divider between the heading and the copy. */
	padding-right: 40px;
	border-right: 1px solid rgba(124, 58, 237, 0.28);
	font-size: clamp(30px, 3.6vw, 44px);
	font-style: italic;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--ha-purple);
}

.ha-shop__cta-line {
	display: block;
}

/* Short lime stroke beneath the last line. */
.ha-shop__cta-line--last {
	position: relative;
	display: inline-block;
}

.ha-shop__cta-line--last::after {
	content: "";
	position: absolute;
	left: 2%;
	right: -6%;
	bottom: -0.12em;
	height: 0.1em;
	min-height: 4px;
	border-radius: 999px;
	background: var(--ha-lime);
	transform: rotate(-1.2deg);
}

.ha-shop__cta-text {
	flex: 1 1 auto;
	max-width: 36ch;
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ha-text);
}

.ha-shop__cta-action {
	flex: 0 0 auto;
	margin-left: auto;
}

.ha-shop .ha-shop__cta-btn,
.ha-shop .ha-shop__cta-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 32px;
	border: 2px solid var(--ha-purple);
	border-radius: 999px;
	background: transparent;
	color: var(--ha-purple);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ha-shop .ha-shop__cta-btn:hover,
.ha-shop .ha-shop__cta-btn:focus {
	background: var(--ha-purple);
	color: #fff;
}

.ha-shop .ha-shop__cta-btn:focus-visible {
	outline: 3px solid var(--ha-purple);
	outline-offset: 3px;
}

.ha-shop__cta-btn-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Breakpoints – the column count is fixed per step so the design holds
   -------------------------------------------------------------------------- */

/* 1 column on phones, 2 on tablet, 3 once the sidebar sits alongside. */
@media (min-width: 560px) {
	.ha-pp.ha-shop {
		--ha-columns: 2;
	}
}

@media (min-width: 900px) {
	.ha-pp.ha-shop {
		--ha-columns: 3;
	}
}

/* Below 900px the sidebar becomes a panel stacked above the grid. JS adds the
   toggle button and collapses it; with JS off it simply stays open. */
@media (max-width: 899.98px) {
	.ha-shop__listing {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.ha-shop .ha-filters {
		border: 1px solid var(--ha-border);
		border-radius: var(--ha-radius);
		padding: 4px 18px 8px;
	}

	.ha-shop .ha-filters__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.ha-shop .ha-filters__title {
		padding: 14px 0;
		border-bottom: 0;
		font-size: 18px;
	}

	/* Only exists once the script has run. */
	.ha-shop .ha-filters__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
		padding: 0 10px;
		border: 1px solid var(--ha-border);
		border-radius: 999px;
		background: #fff;
		color: var(--ha-dark);
		font-size: 18px;
		line-height: 1;
	}

	.ha-shop .ha-filters__toggle:focus-visible {
		outline: 3px solid var(--ha-purple);
		outline-offset: 2px;
	}

	.ha-shop .ha-filters__body[hidden] {
		display: none;
	}

	.ha-shop .ha-filters__group:first-child {
		border-top: 1px solid var(--ha-border);
	}

	.ha-shop .ha-filters__group:last-of-type {
		border-bottom: 0;
	}
}

/* Feature strip: 4 across → 2×2 → 1 up, dividers dropped once stacked. */
@media (max-width: 900px) {
	.ha-shop__strip-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 0;
	}

	/* First item of each row starts a new row, so it takes no divider. */
	.ha-shop__strip-item:nth-child(2n + 1) {
		border-left: 0;
	}
}

/* CTA band: the divider only makes sense while the three parts sit in a row. */
@media (max-width: 900px) {
	.ha-shop__cta-inner {
		flex-direction: column;
		align-items: center;
		gap: 24px;
		text-align: center;
	}

	.ha-shop__cta-heading {
		padding-right: 0;
		border-right: 0;
	}

	.ha-shop__cta-text {
		max-width: 46ch;
	}

	.ha-shop__cta-action {
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	.ha-pp.ha-shop {
		--ha-hero-height: 0px; /* content height decides on mobile */
		--ha-card-gap: 28px;
	}

	.ha-shop__hero-inner {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.ha-shop__hero-content {
		max-width: 100%;
	}

	.ha-shop .ha-shop__hero-eyebrow {
		margin-bottom: 10px;
		letter-spacing: 0.26em;
	}

	.ha-shop .ha-shop__hero-heading {
		font-size: clamp(44px, 14vw, 64px);
	}

	.ha-shop .ha-shop__hero-subtitle {
		margin-top: 16px;
	}

	/* Let the two subtitle lines flow together instead of breaking badly
	   (the whitespace between the spans in the markup supplies the space). */
	.ha-shop__hero-subline {
		display: inline;
	}

	.ha-shop .ha-shop__hero-btn {
		margin-top: 22px;
		padding: 0 26px;
	}

	.ha-shop__hero-script {
		display: none;
	}

	.ha-shop__strip-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px 0;
		padding-top: 26px;
		padding-bottom: 26px;
	}

	.ha-shop__strip-item {
		border-left: 0;
	}

	.ha-shop__strip-label {
		max-width: 26ch;
	}

	.ha-shop__head {
		padding-top: 28px;
		align-items: flex-start;
	}

	/* The sorting select drops below the heading and fills the width. */
	.ha-shop__sort,
	.ha-shop .ha-shop__sort select {
		width: 100%;
	}

	.ha-shop__sort .woocommerce-ordering {
		width: 100%;
	}


	.ha-shop__results {
		padding-bottom: 40px;
	}

	.ha-shop__cta-inner {
		padding-top: 32px;
		padding-bottom: 32px;
	}
}
