/*
 * 3D By Humpf Store: catalog styles (header, footer, home, shop, category, search, product).
 * Only what theme.json and block attributes cannot express: WooCommerce component internals,
 * interaction states, responsive behavior and a few layout details. Colors, type and spacing
 * come from theme.json presets (var(--wp--preset--...)); change them there, not here.
 *
 * Theme hooks use the "humpf-" prefix. Product cards are styled from WooCommerce's own
 * product-template markup so every product grid (catalog, related, cart cross-sells) matches.
 */

:root {
	--humpf-tap: 44px;
	--humpf-control-h: 48px;
	--humpf-button-tracking: 0.06em;
	--humpf-eyebrow-tracking: 0.14em;
	--humpf-error: #f18c8c;
	--humpf-ok: #4ab866;
	--humpf-header-h: 73px;
	--humpf-sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--humpf-header-h));
	--humpf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--humpf-field-border: color-mix(in srgb, var(--wp--preset--color--accent-4) 60%, var(--wp--preset--color--base));
}

@media (max-width: 599px) {
	:root {
		--humpf-header-h: 65px;
		/* The admin bar scrolls away on phones, so sticky items sit right under the header. */
		--humpf-sticky-top: var(--humpf-header-h);
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Eyebrow label above section headings. */
.humpf-eyebrow {
	margin: 0;
	font-weight: 500;
	letter-spacing: var(--humpf-eyebrow-tracking);
	text-transform: uppercase;
}

/* Match the native form CTAs; compact product-card actions retain their 44px row. */
body:not(.woocommerce-checkout) .wp-site-blocks .wp-block-button__link:not(.wc-block-components-product-button__button) {
	box-sizing: border-box;
	min-height: var(--humpf-control-h);
}

/* Content sections use the same responsive spacing step as the storefront sections. */
body.page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .wp-site-blocks main > .wp-block-post-content > h2.wp-block-heading {
	margin-top: var(--wp--preset--spacing--60);
}

/* Policy pages: one quiet reading column, scoped to the existing page body classes. */
body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main {
	--wp--style--global--content-size: 36rem;
	margin-block-start: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-title {
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	line-height: 1.15;
	text-wrap: balance;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content {
	overflow-wrap: anywhere;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content h2 {
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content h3 {
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	line-height: 1.4;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content :is(h2, h3) + :is(p, ul, ol) {
	margin-block-start: var(--wp--preset--spacing--30);
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content :is(ul, ol) {
	padding-inline-start: 1.4em;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content li {
	padding-inline-start: var(--wp--preset--spacing--10);
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content li + li {
	margin-block-start: var(--wp--preset--spacing--20);
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content a {
	color: var(--wp--preset--color--accent-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

body:is(.page-id-38791, .page-id-14, .page-id-3, .page-id-38328) main > .wp-block-post-content a:hover {
	color: var(--wp--preset--color--white);
}

/* These three pages open with their existing "Last updated" paragraph; SMS opens with a lead. */
body:is(.page-id-38791, .page-id-14, .page-id-3) main > .wp-block-post-content > p:first-child {
	color: var(--wp--preset--color--accent-4);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

/* "View all" link beside a section heading: a 44px tap row with an arrow that nudges on hover. */
.humpf-more-link {
	margin: 0;
	font-weight: 700;
}

.humpf-more-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: var(--humpf-tap);
	text-underline-offset: 0.25em;
	text-decoration: none;
	border-bottom: 0;
}

.humpf-more-link a::after {
	content: "→";
	transition: transform 0.2s var(--humpf-ease);
}

.humpf-more-link a:hover {
	text-decoration: underline;
	color: var(--wp--preset--color--accent-2);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.humpf-more-link a:hover::after {
		transform: translateX(3px);
	}
}

/* ---------- Focus ---------- */

html {
	scroll-padding-top: calc(var(--humpf-sticky-top) + var(--wp--preset--spacing--30));
}

.skip-link.screen-reader-text:focus {
	box-sizing: border-box;
	min-height: var(--humpf-tap);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	z-index: 1000;
}

:where(input, select, textarea, button, summary, a):focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: 2px;
}

/* The Cream band (home "Need It Different"): a Cream ring vanishes on Cream, so focus is Ink there. */
.humpf-custom-work {
	--wp--custom--focus-ring: var(--wp--preset--color--base);
}

.humpf-custom-work :is(a, button, .wp-element-button, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 3px;
}

/* =========================================================================
 * Header
 * ====================================================================== */

/* The template-part wrapper is the sticky box. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.humpf-header {
	position: relative;
}

@media (max-width: 599px) {
	.wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}

	.humpf-header {
		padding-top: var(--wp--preset--spacing--20) !important;
		padding-bottom: var(--wp--preset--spacing--20) !important;
	}
}

.humpf-header > .alignwide {
	min-height: 48px;
}

.humpf-logo {
	flex-shrink: 0;
}

.humpf-logo a {
	display: flex;
	align-items: center;
	min-height: var(--humpf-tap);
}

/* Main menu: every link and the submenu toggle get a 44px hit area. */
.humpf-main-nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-width: var(--humpf-tap);
	min-height: var(--humpf-tap);
}

.humpf-header .humpf-main-nav .wp-block-navigation-item__label {
	white-space: nowrap;
}

/* The Shop chevron is its own toggle button: widen its hit area without growing the icon. */
.humpf-main-nav .wp-block-navigation__submenu-icon {
	width: var(--humpf-tap);
	height: var(--humpf-tap);
	margin-left: 2px;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.humpf-main-nav .wp-block-navigation__submenu-icon svg {
	width: 12px;
	height: 12px;
	margin: 0;
}

.humpf-main-nav .wp-block-navigation__responsive-container-open {
	width: var(--humpf-tap);
	height: var(--humpf-tap);
	align-items: center;
	justify-content: center;
}

@media (max-width: 599px) {
	.humpf-main-nav .wp-block-navigation__responsive-container-open:not([hidden]) {
		display: inline-flex;
	}
}

.humpf-main-nav .wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
}

/* Shop dropdown panel. */
.humpf-header .humpf-main-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--accent-5);
	border-radius: var(--wp--preset--border-radius--md);
	padding: var(--wp--preset--spacing--20) 0;
	min-width: 240px !important;
	box-shadow: var(--wp--preset--shadow--lift);
}

.humpf-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	width: 100%;
	padding: 0 1.1rem;
}

.humpf-main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-3);
	text-decoration: none;
}

/* Search, account and cart: same 44px square. */
.humpf-header-tools .wp-block-search__button,
.humpf-header-tools .wp-block-woocommerce-customer-account a,
.humpf-header-tools .wc-block-mini-cart__button {
	min-width: var(--humpf-tap);
	min-height: var(--humpf-tap);
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--contrast);
	border-radius: var(--wp--preset--border-radius--sm);
	transition: background-color 0.15s ease;
}

.humpf-header-tools .wp-block-search__button:hover,
.humpf-header-tools .wp-block-woocommerce-customer-account a:hover,
.humpf-header-tools .wc-block-mini-cart__button:hover {
	background: var(--wp--preset--color--accent-5);
}

.humpf-header-search .wp-block-search__button {
	background: transparent;
	border: 0;
	margin: 0;
}

.humpf-header-search .wp-block-search__button svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Reserve the icon's space; expand the field below the header without moving its tools. */
.humpf-header-search {
	flex: 0 0 var(--humpf-tap);
	width: var(--humpf-tap);
}

.humpf-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper {
	position: absolute;
	top: 100%;
	right: 0;
	box-sizing: border-box;
	width: min(100%, 420px);
	padding: var(--wp--preset--spacing--30) var(--wp--style--root--padding-right);
	gap: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--accent-5);
	box-shadow: var(--wp--preset--shadow--lift);
}

.humpf-header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	min-width: 0;
}

/* Woo chooses Ink text for this red badge inline; white keeps the count readable. */
.humpf-header-tools .wc-block-mini-cart__badge {
	color: var(--wp--preset--color--white) !important;
}

@media (max-width: 781px) {
	/* Leave room for all tools on phones and for the full menu on small tablets. */
	.humpf-header > .alignwide,
	.humpf-header > .alignwide > .wp-block-group {
		gap: var(--wp--preset--spacing--20);
	}
}

@media (max-width: 599px) {
	.humpf-header .humpf-main-nav {
		order: 2;
	}

	.humpf-header .humpf-header-tools {
		gap: 0;
	}

	.humpf-header .humpf-logo img {
		width: 108px !important;
	}
}

@media (min-width: 600px) and (max-width: 781px) {
	.humpf-header .humpf-logo img {
		width: 104px !important;
	}

	.humpf-header .humpf-main-nav,
	.humpf-header .humpf-main-nav .wp-block-navigation__container {
		gap: 1rem;
	}

	.humpf-header .humpf-header-tools {
		gap: 0;
	}
}

/* Mobile menu (parts/navigation-overlay.html). */
.humpf-main-nav .wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open {
	background: var(--wp--preset--color--base);
}

.humpf-overlay .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: var(--humpf-tap);
	padding: 0;
}

.humpf-overlay .wp-block-navigation-overlay-close {
	min-width: var(--humpf-tap);
	min-height: var(--humpf-tap);
	color: var(--wp--preset--color--contrast);
}

.humpf-overlay .wp-block-navigation-overlay-close svg {
	fill: currentColor;
}

/* Search with the button inside the field: one dark field, no light frame. */
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	padding: 4px;
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--humpf-field-border);
	border-radius: var(--wp--preset--border-radius--sm);
}

.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input {
	border: 0;
	background: transparent;
}

.wp-block-search__button {
	min-height: var(--humpf-tap);
	min-width: var(--humpf-tap);
}

.wp-block-search__input {
	min-height: var(--humpf-tap);
	border-color: var(--humpf-field-border);
}

/* =========================================================================
 * Category rail (blocks/category-rail): image chips, scrolls on small screens
 * ====================================================================== */

.humpf-rail {
	position: relative;
}

.humpf-rail__list {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

.humpf-rail__item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

/* A thin divider after the current category's family (parent and its subcategories). */
.humpf-rail__item:has(> .is-family-end)::after {
	content: "";
	width: 1px;
	height: 28px;
	margin-left: var(--wp--preset--spacing--10);
	background: var(--wp--preset--color--accent-6);
}

.humpf-rail__chip {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 4px 0.9rem 4px 4px;
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
	.humpf-rail__chip:not([aria-current="page"]):hover {
		background: var(--wp--preset--color--accent-5);
		border-color: var(--wp--preset--color--accent-4);
		color: var(--wp--preset--color--contrast);
		text-decoration: none;
	}
}

.humpf-rail__chip:active {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent-4);
}

.humpf-rail__chip:focus-visible {
	outline-offset: 3px;
}

.humpf-rail__thumb {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	overflow: hidden;
	border: 1px solid rgba(13, 13, 13, 0.2);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--base);
}

.humpf-rail__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.humpf-rail__chip.is-all .humpf-rail__thumb {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
}

.humpf-rail__initial {
	font-weight: 800;
}

.humpf-rail__count {
	flex: 0 0 auto;
	padding: 0.15rem 0.45rem;
	border-radius: var(--wp--preset--border-radius--pill);
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-2);
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.humpf-rail__chip.is-child {
	min-height: var(--humpf-tap);
	gap: var(--wp--preset--spacing--20);
	background: transparent;
	border-color: var(--wp--preset--color--accent-5);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}

.humpf-rail__chip.is-child .humpf-rail__thumb {
	width: 28px;
	height: 28px;
}

.humpf-rail__chip.is-child .humpf-rail__count {
	background: transparent;
	color: inherit;
}

.humpf-rail__chip[aria-current="page"] {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	border-style: solid;
	color: var(--wp--preset--color--base);
}

.humpf-rail__chip[aria-current="page"] .humpf-rail__count {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--base);
}

/* Desktop: an even grid of chips instead of ragged rows. */
@media (min-width: 1024px) {
	.humpf-rail__list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
	}

	.humpf-rail__chip {
		width: 100%;
		min-width: 0;
	}

	.humpf-rail__name {
		flex: 1 1 auto;
		min-width: 0;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.humpf-rail__item:has(> .is-family-end)::after {
		content: none;
	}
}

/* Phones, foldables and tablets: one swipeable row that stays under the header while you browse. */
@media (max-width: 1023px) {
	.humpf-rail {
		position: sticky;
		top: var(--humpf-sticky-top);
		z-index: 50;
		/* Bleed to the screen edges so chips scroll out of view at the edge, not at the gutter. */
		margin-left: calc(-1 * var(--wp--style--root--padding-left)) !important;
		margin-right: calc(-1 * var(--wp--style--root--padding-right)) !important;
		max-width: none !important;
		padding-block: var(--wp--preset--spacing--20);
		background: var(--wp--preset--color--base);
		border-bottom: 1px solid var(--wp--preset--color--accent-5);
	}

	.humpf-rail__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: var(--wp--style--root--padding-left);
		scrollbar-width: none;
		/* End padding keeps the final chip and its focus ring clear of the fade. */
		padding-inline: var(--wp--style--root--padding-left) max(var(--wp--style--root--padding-right), 2.5rem);
		padding-block: 5px;
		mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 32px), transparent);
	}

	.humpf-rail__list::-webkit-scrollbar {
		display: none;
	}

	.humpf-rail__item {
		scroll-snap-align: start;
	}

	.humpf-rail__chip {
		min-height: var(--humpf-tap);
		padding-right: 0.75rem;
	}

	.humpf-rail__thumb {
		width: 34px;
		height: 34px;
	}
}

/* =========================================================================
 * Archive header (shop, category, tag, search) and toolbar
 * ====================================================================== */

.humpf-archive-head .wp-block-query-title {
	line-height: 1;
}

.humpf-count {
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--pill);
	color: var(--wp--preset--color--accent-2);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.humpf-term-intro,
.humpf-term-intro p {
	margin: 0;
	max-width: 62ch;
	color: var(--wp--preset--color--accent-4);
	line-height: 1.6;
}

.humpf-intro-toggle {
	display: none;
	min-height: var(--humpf-tap);
	margin-block: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

/* Shorten long intros only when the script can offer a working disclosure. */
@media (max-width: 1100px) {
	.humpf-archive-head .wp-block-query-title {
		font-size: var(--wp--preset--font-size--xx-large) !important;
	}

	.humpf-term-intro,
	.humpf-term-intro p {
		font-size: var(--wp--preset--font-size--small) !important;
		line-height: 1.55;
	}

	.humpf-term-intro.is-collapsible:not(.is-expanded) {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.humpf-intro-toggle:not([hidden]) {
		display: inline-flex;
		align-items: center;
	}
}

@media (max-width: 781px) {
	.humpf-archive-head__cols {
		gap: var(--wp--preset--spacing--30) !important;
	}
}

.humpf-search-field {
	max-width: 32rem;
}

/* Search is a compact utility header; keep its repeated context secondary. */
.search .humpf-archive-head {
	padding-block: var(--wp--preset--spacing--40) !important;
}

.search .humpf-archive-head .wp-block-query-title {
	font-size: var(--wp--preset--font-size--x-large) !important;
	font-weight: 700;
	line-height: 1.25;
}

.search .humpf-archive-head .woocommerce-breadcrumb {
	font-size: var(--wp--preset--font-size--x-small);
}

.search .humpf-archive-head__cols {
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50) !important;
}

.search .humpf-products {
	padding-top: var(--wp--preset--spacing--20) !important;
}

/* Retain every category, image and count while giving results more emphasis. */
.search .humpf-rail__chip {
	min-height: var(--humpf-tap);
	gap: var(--wp--preset--spacing--20);
	background: transparent;
	border-color: var(--wp--preset--color--accent-5);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
}

.search .humpf-rail__thumb {
	width: 24px;
	height: 24px;
}

.search .humpf-rail__count {
	background: transparent;
	color: var(--wp--preset--color--accent-4);
}

@media (min-width: 1024px) {
	.search .humpf-rail__list {
		display: flex;
	}
}

/* Search terms can be long; keep the heading and search field inside the page. */
.search .humpf-archive-head .wp-block-query-title,
.search .humpf-archive-head .woocommerce-breadcrumb {
	overflow-wrap: anywhere;
}

.humpf-search-field .wp-block-search__input,
.humpf-no-products .wp-block-search__input,
.humpf-404-search .wp-block-search__input {
	min-width: 0;
}

.humpf-search-field .wp-block-search__button,
.humpf-no-products .wp-block-search__button,
.humpf-404-search .wp-block-search__button {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Keep room for a new search and the category links on narrow phones. */
@media (max-width: 599px) {
	.humpf-no-products {
		padding-inline: var(--wp--preset--spacing--30) !important;
	}
}

/* Result count and sorting share a row when both fit. */
.humpf-toolbar {
	min-height: var(--humpf-tap);
}

.humpf-toolbar .wc-block-product-results-count,
.humpf-toolbar .woocommerce-result-count {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.humpf-toolbar .woocommerce-result-count {
	margin: 0 !important;
	white-space: normal;
}

.humpf-toolbar .wc-block-catalog-sorting,
.humpf-toolbar .woocommerce-ordering {
	flex: 0 0 auto;
	margin: 0 !important;
}

.wc-block-catalog-sorting select,
.woocommerce-ordering select {
	min-height: var(--humpf-tap);
	border-color: var(--humpf-field-border);
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

@media (max-width: 599px) {
	.humpf-toolbar {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--20);
	}

	.humpf-toolbar .wc-block-product-results-count,
	.humpf-toolbar .wc-block-catalog-sorting {
		flex-basis: 100%;
		width: 100%;
	}

	.humpf-toolbar .woocommerce-result-count {
		font-size: var(--wp--preset--font-size--small);
	}

	.humpf-toolbar .woocommerce-ordering,
	.humpf-toolbar .woocommerce-ordering select {
		width: 100%;
		max-width: none;
		min-width: 0;
	}
}

/* Result count and sorting render nothing when a shelf is empty; drop the empty bar. */
.humpf-toolbar:not(:has(.woocommerce-result-count, .woocommerce-ordering)) {
	display: none;
}

/* =========================================================================
 * Product cards (every product-template grid)
 * ====================================================================== */

/* Match the catalog and browser-history shelves, including Woo's container breakpoints. */
.wp-block-woocommerce-product-template:is(.humpf-grid, .humpf-recently-viewed__grid) {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 640px) {
	.wp-block-woocommerce-product-template:is(.humpf-grid, .humpf-recently-viewed__grid) {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	/* Four-item shelves make two balanced rows instead of leaving one card on its own. */
	.wp-block-woocommerce-product-template:is(.humpf-grid, .humpf-recently-viewed__grid):has(> :nth-child(4)):not(:has(> :nth-child(5))) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1024px) {
	.wp-block-woocommerce-product-template:is(.humpf-grid, .humpf-recently-viewed__grid) {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: var(--wp--preset--spacing--50);
	}
}

/* Wide screens keep four columns: 16 products per page would leave a lone card in a five-column grid. */

.wp-block-woocommerce-product-template .wc-block-product {
	display: flex;
	min-width: 0;
}

.wp-block-woocommerce-product-template .wc-block-product > .wp-block-group {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.25s var(--humpf-ease), box-shadow 0.25s var(--humpf-ease);
}

.wp-block-woocommerce-product-template .wc-block-product > .wp-block-group:hover {
	border-color: var(--wp--preset--color--accent-6) !important;
}

.wp-block-woocommerce-product-template .wc-block-components-product-image {
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--white);
}

.wp-block-woocommerce-product-template .wc-block-components-product-image img {
	transition: transform 0.45s var(--humpf-ease);
}

/* Secondary button at rest, brand red on hover: red stays reserved for the action in focus. */
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wp-element-button {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--humpf-tap);
	padding: 0.625rem 1rem;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--contrast);
	letter-spacing: var(--humpf-button-tracking);
	line-height: 1.25;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wp-element-button:hover,
.wp-block-woocommerce-product-template .wc-block-product:hover .wp-block-woocommerce-product-button .wp-element-button {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
}

.wp-block-woocommerce-product-template .wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
	border: 0;
	border-radius: var(--wp--preset--border-radius--sm);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* The theme's card: photo edge to edge, then title, price and button. */
.humpf-card {
	isolation: isolate;
}

/* Title and photo outlines can be clipped by the card's crop and title clamp. */
.humpf-card:has(a:focus-visible) {
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: 3px;
}

.humpf-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.humpf-card__title {
	min-height: 2.6em;
	overflow-wrap: anywhere;
}

/* Clamp the link: the flex layout blockifies the heading and defeats its line clamp. */
.humpf-card__title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none;
}

/* The whole card opens the product; the button stays its own target above it. */
.humpf-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.humpf-card:hover .humpf-card__title a {
	color: var(--wp--preset--color--accent-2);
}

.humpf-card__price {
	color: var(--wp--preset--color--accent-2);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
}

/* Keep each amount together while ranges and sale prices can wrap between amounts. */
.humpf-card__price :is(.amount, del, ins) {
	display: inline-block;
}

.humpf-card__price .amount {
	white-space: nowrap;
}

.humpf-card__price del {
	color: var(--wp--preset--color--accent-4);
	font-weight: 400;
	opacity: 1;
}

.humpf-card__price ins {
	text-decoration: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wp-block-woocommerce-product-template .wc-block-product > .wp-block-group:hover {
		transform: translateY(-3px);
		box-shadow: var(--wp--preset--shadow--card);
	}

	.wp-block-woocommerce-product-template .wc-block-product:hover .wc-block-components-product-image img {
		transform: scale(1.04);
	}
}

@media (max-width: 599px) {
	.humpf-card__body {
		padding: var(--wp--preset--spacing--30) !important;
	}

	.humpf-card__title {
		font-size: var(--wp--preset--font-size--medium) !important;
		min-height: 3.9em;
	}

	/* Long catalog names need another line before the ellipsis on narrow cards. */
	.humpf-card__title a {
		-webkit-line-clamp: 3;
	}

	.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wp-element-button {
		padding-inline: 0.5rem;
		letter-spacing: 0.02em;
	}
}

/* Browser-local history: no space or heading until usable products arrive. */
.humpf-recently-viewed:not(.has-products) {
	display: none;
}

.humpf-recently-viewed {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.humpf-recently-viewed__grid {
	display: grid;
	margin: var(--wp--preset--spacing--50) 0 0;
	padding: 0;
	list-style: none;
}

.humpf-recently-viewed .humpf-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--wp--preset--color--accent-5);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--accent-3);
}

.humpf-recently-viewed .humpf-card__media,
.humpf-recently-viewed .humpf-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.humpf-recently-viewed .humpf-card__media img {
	height: auto;
}

.humpf-recently-viewed .humpf-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
}

.humpf-recently-viewed .humpf-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

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

.wp-block-woocommerce-product-collection .wp-block-query-pagination,
.wp-block-query .wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--60);
}

/* Middle pages ("1 … 3 4 5 6 7 … 10") are wider than a phone: let the numbers wrap instead of scrolling sideways. */
.wp-block-query-pagination {
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	min-inline-size: 0;
	max-inline-size: 100%;
}

.wp-block-query-pagination-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	min-inline-size: 0;
	max-inline-size: 100%;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--humpf-tap);
	min-height: var(--humpf-tap);
	padding: 0 0.75rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--sm);
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	background: var(--wp--preset--color--accent-5);
	border-color: var(--wp--preset--color--accent-4);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wp-block-query-pagination .page-numbers.dots {
	border-color: transparent;
}

/* =========================================================================
 * Home
 * ====================================================================== */

/* Small laptops and foldables: tighter hero buttons keep both on one row. */
@media (min-width: 782px) and (max-width: 1100px) {
	.humpf-hero .wp-block-button__link {
		padding-inline: 1.1rem;
		letter-spacing: 0.04em;
	}
}

.humpf-hero-links .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: var(--humpf-tap);
	padding: 0 0.9rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--pill);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.humpf-hero-links .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-5);
	border-color: var(--wp--preset--color--accent-4);
	text-decoration: none;
}

/* Trust strip: compact; phones show the four promises as a 2 x 2 of titles. */
.humpf-trust .wp-block-icon {
	flex-shrink: 0;
}

@media (min-width: 600px) and (max-width: 1000px) {
	.humpf-trust > .alignwide {
		grid-template-columns: 1fr 1fr !important;
	}
}

@media (max-width: 599px) {
	.humpf-trust .humpf-trust__text {
		display: none;
	}

	.humpf-trust .wp-block-heading {
		margin-top: 0 !important;
		font-size: var(--wp--preset--font-size--small) !important;
	}

	.humpf-trust > .alignwide {
		grid-template-columns: 1fr 1fr !important;
		gap: var(--wp--preset--spacing--40) !important;
	}

	.humpf-trust .humpf-trust__item {
		flex-direction: row !important;
		align-items: center !important;
	}

	.humpf-trust .wp-block-icon {
		width: 36px !important;
		padding: 8px !important;
	}
}

/* Shop-by-shelf tiles: centered crops and a strong lower scrim for bright or busy photos. */
.humpf-shelves .wc-block-featured-category {
	isolation: isolate;
	overflow: hidden;
}

.humpf-shelves .background-dim__overlay {
	/* Woo supplies the gradient inline; keep the label area dark even on a white photo. */
	background-image: linear-gradient(180deg, rgba(13, 13, 13, 0) 25%, rgba(13, 13, 13, 0.3) 48%, rgba(13, 13, 13, 0.82) 76%, rgba(13, 13, 13, 0.98) 100%) !important;
}

.humpf-shelves .wc-block-featured-category__background-image {
	object-fit: cover;
	object-position: 50% 50%;
	transition: transform 0.6s var(--humpf-ease);
}

.humpf-shelves .wc-block-featured-category__inner-blocks {
	/* Let the title's stretched link reach the tile wrapper, beyond the text. */
	position: static;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
	max-width: none;
	padding: 0;
}

.humpf-shelves .wp-block-woocommerce-category-title {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	text-wrap: balance;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.humpf-shelves .wp-block-woocommerce-category-title a {
	text-decoration: none;
}

/* The whole tile opens the category. */
.humpf-shelves .wp-block-woocommerce-category-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: var(--wp--preset--border-radius--md);
	transition: box-shadow 0.25s var(--humpf-ease);
}

.humpf-shelves .humpf-shelf-count {
	align-self: flex-start;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--wp--preset--color--accent-2);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.humpf-shelves .humpf-shelf-count::after {
	content: " →";
}

.humpf-shelves .wp-block-woocommerce-category-title a:is(:focus, :focus-visible) {
	/* The inset tile ring stays visible inside the phone's scrolling viewport. */
	outline: none;
}

.humpf-shelves .wp-block-woocommerce-category-title a:focus-visible::after,
.humpf-shelves .wc-block-featured-category:active .wp-block-woocommerce-category-title a::after {
	box-shadow: inset 0 0 0 3px var(--wp--custom--focus-ring);
}

@media (hover: hover) {
	.humpf-shelves .wc-block-featured-category:hover:not(:focus-within, :active) .wp-block-woocommerce-category-title a::after {
		box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent-4);
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.humpf-shelves .wc-block-featured-category:hover .wc-block-featured-category__background-image {
		transform: scale(1.025);
	}
}

@media (max-width: 599px) {
	/* Phones: the category tiles right below do this job; keep the hero short. */
	.humpf-hero .humpf-hero-links {
		display: none;
	}

	.humpf-custom-work .is-style-checkmark-list {
		display: none;
	}

	.humpf-shelves .wc-block-featured-category {
		aspect-ratio: 4 / 3 !important;
	}
}

@media (max-width: 781px) {
	.humpf-shelves .wc-block-featured-category {
		min-height: 0 !important;
		padding: var(--wp--preset--spacing--30) !important;
	}

	.humpf-shelves .wp-block-woocommerce-category-title {
		font-size: 1rem !important;
	}

	/* Custom work band: phones get a wide crop of the photo instead of a tall one. */
	.humpf-custom-work .humpf-custom-work__photo img {
		aspect-ratio: 16 / 10 !important;
	}
}

/* Section heading row: eyebrow + title on the left, "view all" on the right. */
.humpf-section-head {
	row-gap: var(--wp--preset--spacing--20) !important;
}

/* =========================================================================
 * Custom request band (shop, category, search, product)
 * ====================================================================== */

.humpf-cta {
	position: relative;
	overflow: hidden;
}

/* The photo fills its column whatever height the copy beside it takes. */
.humpf-cta__photo {
	position: relative;
	min-height: 18rem;
}

.humpf-cta__photo .wp-block-image {
	position: absolute;
	inset: 0;
}

.humpf-cta__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.humpf-cta__uses {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	list-style: none;
}

.humpf-cta__uses li {
	margin: 0;
}

.humpf-cta__uses li {
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

@media (max-width: 781px) {
	.humpf-cta__photo {
		display: none;
	}

	.humpf-cta-actions {
		justify-content: flex-start !important;
	}
}

@media (max-width: 599px) {
	.humpf-cta-actions > .wp-block-button,
	.humpf-cta-actions .wp-block-button__link {
		width: 100%;
	}
}

/* =========================================================================
 * Product page
 * ====================================================================== */

/* Keep the photo prominent, with enough room for options beside it on tablets. */
@media (min-width: 782px) {
	.humpf-product-columns {
		align-items: flex-start !important;
		column-gap: var(--wp--preset--spacing--60) !important;
	}

	.humpf-product-columns > .humpf-buy-box {
		position: static;
	}

	.humpf-buy-box > .wp-block-post-excerpt,
	.humpf-buy-box > .wc-block-components-notices,
	.humpf-buy-box > .humpf-add-to-cart,
	.humpf-buy-box > .humpf-product-trust {
		margin-block-start: var(--wp--preset--spacing--50);
	}

	.humpf-buy-box .humpf-product-trust {
		padding-block: var(--wp--preset--spacing--40) !important;
	}

	/* The details and browsing rows share a quieter section spacing. */
	.single-product main > .wp-block-group:has(> .humpf-details) {
		padding-block: var(--wp--preset--spacing--60) !important;
	}

	.single-product main > .wp-block-group:has(> .wp-block-woocommerce-product-collection) {
		padding-block-start: var(--wp--preset--spacing--60) !important;
	}
}

@media (min-width: 782px) and (max-width: 1100px) {
	.humpf-product-columns > .wp-block-column {
		flex-basis: 50% !important;
	}
}

/* Short viewports scroll the whole box naturally, including the trust list and meta.
 * On taller screens it follows a tall gallery, then stops before Product Details. */
@media (min-width: 1024px) and (min-height: 900px) {
	.humpf-product-columns > .humpf-buy-box {
		position: sticky;
		top: calc(var(--humpf-sticky-top) + var(--wp--preset--spacing--40));
	}
}

/* Use the existing wide page edges at desktop sizes, keeping the reading column bounded. */
@media (min-width: 1200px) {
	.single-product main > .wp-block-group:has(> .humpf-details) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
		align-items: start;
		gap: var(--wp--preset--spacing--60);
		padding-inline: max(var(--wp--style--root--padding-left), calc((100% - var(--wp--style--global--wide-size)) / 2));
	}

	.single-product main > .wp-block-group:has(> .humpf-details) > * {
		min-width: 0;
		max-width: none;
		margin: 0 !important;
	}
}

/* Gallery (woocommerce/product-gallery): rounded main photo, one scrolling row of thumbnails. */
.humpf-gallery {
	gap: var(--wp--preset--spacing--30) !important;
}

.humpf-gallery .wc-block-product-gallery-large-image {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--accent-3);
}

/* Fill the square frame whatever the photo's shape (the full-screen viewer still shows the whole photo). */
.humpf-gallery .wc-block-product-gallery-large-image__wrapper img {
	width: 100%;
	height: 100% !important;
	aspect-ratio: 1;
	object-fit: cover !important;
}

/* Keep photos easy to tap; longer thumbnail rows scroll instead of shrinking. */
.humpf-gallery .wc-block-product-gallery-thumbnails {
	--humpf-thumb-gap: var(--wp--preset--spacing--30);
	aspect-ratio: auto !important;
	height: auto !important;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail {
	flex: 0 0 clamp(64px, 16%, 88px) !important;
	width: auto !important;
	height: auto !important;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	box-sizing: border-box;
	width: 100% !important;
	height: auto !important;
	object-fit: cover;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__scrollable {
	height: auto !important;
	gap: var(--humpf-thumb-gap) !important;
	scroll-snap-type: x proximity;
	scrollbar-width: none !important;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__scrollable::-webkit-scrollbar {
	display: none;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail {
	scroll-snap-align: start;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	aspect-ratio: 1;
	border: 2px solid transparent;
	border-radius: var(--wp--preset--border-radius--sm);
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail__image:hover,
.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	opacity: 1;
	filter: none !important;
	border-color: var(--wp--preset--color--contrast);
}

.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail__image:focus-visible {
	opacity: 1;
	border-color: var(--wp--preset--color--base);
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: -4px;
}

.humpf-gallery .wc-block-next-previous-buttons__button {
	width: var(--humpf-tap);
	height: var(--humpf-tap);
	margin: 0 var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 50%;
	background: rgba(13, 13, 13, 0.78);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
}

.humpf-gallery .wc-block-next-previous-buttons__button:hover:not(:disabled):not([aria-disabled="true"]) {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--accent-4);
}

.humpf-gallery .wc-block-next-previous-buttons__button:disabled,
.humpf-gallery .wc-block-next-previous-buttons__button[aria-disabled="true"] {
	opacity: 0;
	visibility: hidden;
}

.humpf-gallery .wc-block-next-previous-buttons__icon {
	fill: currentColor;
	color: currentColor;
	width: 10px;
	height: auto;
}

@media (max-width: 781px) {
	/* Woo hides these on touch screens; retain a visible alternative to swiping. */
	.humpf-gallery .wc-block-next-previous-buttons:not([hidden]) {
		display: flex;
	}
}

/* Buy box. */
.humpf-buy-box .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.humpf-kicker a {
	text-decoration: none;
}

.humpf-buy-box .wc-block-components-product-price,
.humpf-buy-box .wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--accent-2);
}

/* Options as large tap-friendly buttons (native Add to Cart + Options block). */
.humpf-add-to-cart .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute > .wp-block-group {
	margin-top: 0 !important;
	margin-bottom: var(--wp--preset--spacing--50) !important;
	gap: var(--wp--preset--spacing--30) !important;
}

.humpf-add-to-cart .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name {
	color: var(--wp--preset--color--accent-4);
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: var(--humpf-eyebrow-tracking);
	text-transform: uppercase;
}

.humpf-add-to-cart .wp-block-woocommerce-product-filter-chips {
	display: flex;
	flex-wrap: wrap;
	align-self: stretch;
	width: 100%;
	gap: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
}

.humpf-add-to-cart .wc-block-product-filter-chips__show-more {
	display: inline-flex;
	align-items: center;
	width: auto;
	min-height: var(--humpf-tap);
	padding: 0 0.25rem;
	color: var(--wp--preset--color--accent-2);
	font-weight: 600;
}

.humpf-add-to-cart .wc-block-product-filter-chips__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	min-width: 48px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--sm);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.humpf-add-to-cart .wc-block-product-filter-chips__item:hover:not(:disabled) {
	border-color: var(--wp--preset--color--accent-4);
	background: var(--wp--preset--color--accent-5);
}

.humpf-add-to-cart .wc-block-product-filter-chips__item[aria-checked="true"],
.humpf-add-to-cart .wc-block-product-filter-chips__item[aria-checked="true"]:hover:not(:disabled) {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	box-shadow: 0 0 0 1px var(--wp--preset--color--contrast);
}

.humpf-add-to-cart .wc-block-product-filter-chips__label {
	min-width: 0;
}

.humpf-add-to-cart .wc-block-product-filter-chips__text {
	overflow-wrap: anywhere;
}

/* Reserve the check's space so selecting an option cannot move other pills. */
.humpf-add-to-cart .wc-block-product-filter-chips__label::before {
	content: "";
	flex-shrink: 0;
	width: 0.45em;
	height: 0.8em;
	margin: -0.2em 0.35em 0 0;
	border: solid transparent;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.humpf-add-to-cart .wc-block-product-filter-chips__item[aria-checked="true"] .wc-block-product-filter-chips__label::before {
	border-color: currentColor;
}

.humpf-add-to-cart .wc-block-product-filter-chips__item:focus {
	outline: none;
}

.humpf-add-to-cart .wc-block-product-filter-chips__item:focus-visible {
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: 2px;
}

.humpf-add-to-cart .wc-block-product-filter-chips__item:disabled {
	opacity: 0.4;
}

/* Long option lists (teams, job titles) stay scannable: a tidy grid of equal buttons. */
.humpf-add-to-cart .wp-block-woocommerce-product-filter-chips:has(.wc-block-product-filter-chips__item:nth-child(9)) .wc-block-product-filter-chips__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--20);
	width: 100%;
}

.humpf-add-to-cart .wc-block-components-product-stock-indicator:empty,
.humpf-add-to-cart .wp-block-woocommerce-add-to-cart-with-options-variation-description:empty {
	display: none;
}

.humpf-add-to-cart .wc-block-components-product-stock-indicator {
	margin: 0 0 var(--wp--preset--spacing--30) !important;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--small);
}

/* Quantity and Add to Cart on one line; the button takes the remaining width. */
.humpf-add-to-cart .wc-block-add-to-cart-with-options__quantity-selector {
	/* The inner stepper owns the border, matching classic forms and the side cart. */
	border: 0;
}

.humpf-add-to-cart > .wp-block-group:has(> .wp-block-woocommerce-add-to-cart-with-options-quantity-selector) {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--wp--preset--spacing--30);
}

.humpf-add-to-cart .wp-block-woocommerce-product-button {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.humpf-add-to-cart .wp-block-woocommerce-product-button .wp-element-button {
	width: 100%;
	min-height: 52px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.25;
}

.humpf-add-to-cart .wc-block-components-quantity-selector {
	box-sizing: border-box;
	width: 8.5rem;
	min-height: 52px;
	margin: 0;
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: var(--wp--preset--border-radius--sm);
	color: var(--wp--preset--color--contrast);
}

.humpf-add-to-cart .wc-block-components-quantity-selector::after {
	border: 0 !important;
}

.humpf-add-to-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	min-width: var(--humpf-tap);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	box-shadow: none;
}

.humpf-add-to-cart .wc-block-components-quantity-selector__button {
	min-width: var(--humpf-tap);
	color: var(--wp--preset--color--contrast);
	font-size: 1.125rem;
	opacity: 0.85;
}

.humpf-add-to-cart .wc-block-components-quantity-selector :is(input.wc-block-components-quantity-selector__input, .wc-block-components-quantity-selector__button):focus-visible {
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: -3px;
	box-shadow: none;
	opacity: 1;
}

@media (max-width: 599px) {
	.humpf-add-to-cart .wc-block-components-quantity-selector {
		width: 8.5rem;
	}
}

.humpf-product-trust .wp-block-icon {
	flex-shrink: 0;
	margin-top: 1px;
}

.humpf-product-trust .wp-block-icon svg {
	/* The block writes its old 22px width inline. */
	width: var(--wp--preset--spacing--50) !important;
	height: var(--wp--preset--spacing--50);
}

/* ---------- Many variations: WooCommerce's classic gallery and add-to-cart form ----------
 * Products with more variations than HUMPF_MANY_VARIATIONS (functions.php) get these instead of the
 * Product Gallery and Add to Cart + Options blocks. Same look: square photo frame, one row of
 * thumbnails, round arrows, and one large select per option. Woo's own rules start with
 * ".woocommerce div.product", so these do too. */
.woocommerce .humpf-gallery-classic {
	max-width: none;
}

.woocommerce div.product .humpf-gallery-classic div.images {
	container-type: inline-size;
	float: none;
	width: 100%;
	margin: 0;
}

.woocommerce div.product .humpf-gallery-classic div.images .flex-viewport,
.woocommerce div.product .humpf-gallery-classic div.images > .woocommerce-product-gallery__wrapper {
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--accent-3);
}

/* Fill the square frame whatever the photo's shape (the full-screen viewer still shows the whole photo). */
.woocommerce div.product .humpf-gallery-classic div.images .woocommerce-product-gallery__image > a > img {
	aspect-ratio: 1;
	object-fit: cover;
}

/* Zoom-to-full-screen control: a dark round 44px button like the arrows. */
.woocommerce div.product .humpf-gallery-classic div.images .woocommerce-product-gallery__trigger {
	top: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
	z-index: 2;
	width: var(--humpf-tap);
	height: var(--humpf-tap);
	border: 1px solid var(--wp--preset--color--accent-6);
	background: rgba(13, 13, 13, 0.78);
}

.woocommerce div.product .humpf-gallery-classic div.images .woocommerce-product-gallery__trigger::before {
	top: 12px;
	left: 12px;
	border-color: var(--wp--preset--color--contrast);
}

.woocommerce div.product .humpf-gallery-classic div.images .woocommerce-product-gallery__trigger::after {
	top: 23px;
	left: 25px;
	background: var(--wp--preset--color--contrast);
}

/* Previous and next: round 44px buttons centered on the square photo (50cqi = half its height). */
.humpf-gallery-classic .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.humpf-gallery-classic .flex-direction-nav a {
	position: absolute;
	top: calc(50cqi - var(--humpf-tap) / 2);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--humpf-tap);
	height: var(--humpf-tap);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 50%;
	background: rgba(13, 13, 13, 0.78);
	color: transparent;
	font-size: 0;
	text-decoration: none;
}

.humpf-gallery-classic .flex-direction-nav .flex-prev {
	left: var(--wp--preset--spacing--30);
}

.humpf-gallery-classic .flex-direction-nav .flex-next {
	right: var(--wp--preset--spacing--30);
}

.humpf-gallery-classic .flex-direction-nav a::before {
	content: "";
	width: 9px;
	height: 9px;
	border: solid var(--wp--preset--color--contrast);
	border-width: 0 0 2px 2px;
	transform: translateX(2px) rotate(45deg);
}

.humpf-gallery-classic .flex-direction-nav .flex-next::before {
	transform: translateX(-2px) rotate(-135deg);
}

.humpf-gallery-classic .flex-direction-nav a:hover {
	border-color: var(--wp--preset--color--accent-4);
	background: var(--wp--preset--color--base);
}

.humpf-gallery-classic .flex-direction-nav .flex-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Match the block gallery's tap targets; more photos scroll sideways. */
.woocommerce div.product .humpf-gallery-classic div.images .flex-control-thumbs {
	--humpf-thumb-gap: var(--wp--preset--spacing--30);
	display: flex;
	gap: var(--humpf-thumb-gap);
	margin-top: var(--wp--preset--spacing--30);
	padding-bottom: 6px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-color: var(--wp--preset--color--accent-6) transparent;
	scrollbar-width: thin;
}

.woocommerce div.product .humpf-gallery-classic div.images .flex-control-thumbs li {
	flex: 0 0 clamp(64px, 16%, 88px);
	width: auto;
	float: none;
	scroll-snap-align: start;
}

.woocommerce div.product .humpf-gallery-classic div.images .flex-control-thumbs li img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: var(--wp--preset--border-radius--sm);
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.woocommerce div.product .humpf-gallery-classic div.images .flex-control-thumbs li img:hover,
.woocommerce div.product .humpf-gallery-classic div.images .flex-control-thumbs li img.flex-active {
	border-color: var(--wp--preset--color--contrast);
	opacity: 1;
}

/* Options: one labelled, full-width select per option. Woo's block CSS makes the form a grid; a plain block here. */
.woocommerce div.product .humpf-add-to-cart--classic form.cart {
	display: block;
	margin: 0;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations {
	display: block;
	width: 100%;
	margin: 0 0 var(--wp--preset--spacing--40);
}

.humpf-add-to-cart--classic .variations tbody {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

/* Label on the left, "Clear" at the right of the last label row, the select full width below. */
.humpf-add-to-cart--classic .variations tr {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations th {
	display: block;
	padding: 0;
	line-height: 1.4;
	text-align: left;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations td.value {
	display: contents;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations label {
	margin: 0;
	color: var(--wp--preset--color--accent-4);
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: var(--humpf-eyebrow-tracking);
	text-transform: uppercase;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations select {
	display: block;
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 0.75rem 3rem 0.75rem 1rem;
	/* 3:1 against the page, so the field edge stays visible (WCAG 1.4.11). */
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-4) 60%, var(--wp--preset--color--base));
	border-radius: var(--wp--preset--border-radius--sm);
	background: var(--wp--preset--color--accent-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f4f1ea' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1.125rem center / 0.875rem auto;
	color: var(--wp--preset--color--contrast);
	color-scheme: dark;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	appearance: none;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations select:hover {
	border-color: var(--wp--preset--color--accent-4);
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .variations select:focus-visible {
	border-color: var(--wp--preset--color--contrast);
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: 2px;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .reset_variations {
	display: inline-flex;
	grid-column: 2;
	grid-row: 1;
	align-items: center;
	min-height: var(--humpf-tap);
	/* A 44px target that does not make the label row taller. */
	margin: -12px 0;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--small);
}

/* Chosen option: its price (when prices differ), stock and notes, then quantity and Add to Cart. */
.woocommerce div.product .humpf-add-to-cart--classic .single_variation_wrap .woocommerce-variation:not(:empty) {
	margin: 0 0 var(--wp--preset--spacing--40);
}

.woocommerce div.product .humpf-add-to-cart--classic .woocommerce-variation-price .price {
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}

.woocommerce div.product .humpf-add-to-cart--classic .woocommerce-variation :is(p, .stock) {
	margin: 0;
	color: var(--wp--preset--color--accent-2);
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce div.product .humpf-add-to-cart--classic .woocommerce-variation .out-of-stock {
	color: var(--humpf-error);
}

.woocommerce div.product .humpf-add-to-cart--classic .wc-no-matching-variations {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-left: 3px solid var(--wp--preset--color--accent-1);
	border-radius: var(--wp--preset--border-radius--sm);
	background: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
}

.woocommerce div.product .humpf-add-to-cart--classic .wc-no-matching-variations::before {
	content: none;
}

.woocommerce div.product .humpf-add-to-cart--classic .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--wp--preset--spacing--30);
}

/* Woo's stepper rules are long selectors with a white field; these match the Add to Cart + Options stepper. */
.woocommerce div.product .humpf-add-to-cart--classic form.cart div.quantity {
	display: flex;
	flex: 0 0 auto;
	float: none;
	width: 8.5rem;
	margin: 0;
	background: var(--wp--preset--color--accent-3);
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart div.quantity input.qty.text[type="number"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	text-align: center;
	appearance: textfield;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart div.quantity .qty::-webkit-inner-spin-button,
.woocommerce div.product .humpf-add-to-cart--classic form.cart div.quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.woocommerce div.product .humpf-add-to-cart--classic form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	float: none;
	min-height: 52px;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 599px) {
	.woocommerce div.product .humpf-add-to-cart--classic form.cart div.quantity {
		width: 7.5rem;
	}
}

/* Details band. */
.humpf-details .wp-block-accordion-heading {
	margin: 0;
	padding: 0;
}

.humpf-details .wp-block-woocommerce-product-description h2 {
	font-size: var(--wp--preset--font-size--x-large);
	margin-top: var(--wp--preset--spacing--50);
}

.humpf-details .wp-block-woocommerce-product-description h3 {
	font-size: var(--wp--preset--font-size--large);
}

.humpf-details .wp-block-accordion-heading__toggle {
	min-height: 56px;
	gap: var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--40);
}

.humpf-details .wp-block-accordion-heading__toggle:focus-visible {
	outline: 2px solid var(--wp--custom--focus-ring);
	outline-offset: -2px;
}

.humpf-details .wp-block-accordion-panel {
	margin-top: 0;
}

.humpf-details .wp-block-accordion-panel > :first-child,
.humpf-details .wp-block-woocommerce-product-description > :first-child,
.humpf-details td p:first-child {
	margin-top: 0;
}

.humpf-details table {
	width: 100%;
	border-collapse: collapse;
}

/* Specification rows: hairlines between rows instead of a full grid. */
.humpf-details .wp-block-table th,
.humpf-details .wp-block-table td,
.humpf-details th,
.humpf-details td {
	padding: 0.75rem 0;
	border-width: 0 0 1px;
	border-style: solid;
	border-color: var(--wp--preset--color--accent-5);
	background: none;
	text-align: left;
	vertical-align: top;
}

.humpf-details th {
	width: 35%;
	color: var(--wp--preset--color--accent-4);
	font-weight: 600;
	padding-right: var(--wp--preset--spacing--40);
}

.humpf-details .wp-block-woocommerce-product-reviews-title {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.01em;
}

.humpf-details .comment-form-rating button {
	color: var(--wp--preset--color--accent-2);
}

.humpf-details input[type="checkbox"] {
	accent-color: var(--wp--preset--color--accent-1);
}

/* =========================================================================
 * Store notices on catalog pages (same treatment as buying.css)
 * ====================================================================== */

.wp-block-woocommerce-store-notices .wc-block-components-notice-banner {
	align-items: center;
	background: var(--wp--preset--color--accent-3);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-left-width: 4px;
	border-radius: var(--wp--preset--border-radius--sm);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-woocommerce-store-notices .wc-block-components-notice-banner.is-success {
	border-left-color: var(--humpf-ok);
}

.wp-block-woocommerce-store-notices .wc-block-components-notice-banner.is-error {
	border-left-color: var(--wp--preset--color--accent-1);
}

.wp-block-woocommerce-store-notices .wc-block-components-notice-banner.is-info {
	border-left-color: var(--wp--preset--color--accent-2);
}

/* WooCommerce sets this link color with !important; matching it is the only override. */
.wp-block-woocommerce-store-notices .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	color: var(--wp--preset--color--contrast) !important;
	opacity: 1;
}

.wp-block-woocommerce-store-notices .wc-block-components-notice-banner:focus:not(:focus-visible) {
	outline: none;
}

/* =========================================================================
 * Footer
 * ====================================================================== */

/* Every footer link is a 44px row. */
.humpf-footer .wp-block-navigation .wp-block-navigation__container {
	gap: 0 !important;
}

.humpf-footer .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-width: var(--humpf-tap);
	min-height: var(--humpf-tap);
	padding: 0;
	color: var(--wp--preset--color--contrast);
}

.humpf-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent-2);
}

.humpf-footer .humpf-logo a {
	min-height: var(--humpf-tap);
}

@media (max-width: 599px) {
	/* Phones: each link group lays its links out two to a row. */
	.humpf-footer .humpf-footer-links {
		grid-template-columns: 1fr !important;
		gap: var(--wp--preset--spacing--40) !important;
	}

	.humpf-footer .humpf-footer-links .wp-block-navigation__container {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.humpf-footer .humpf-footer-links .wp-block-navigation {
		width: 100%;
	}
}

/* =========================================================================
 * Motion
 * ====================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* No reviews yet: hide the empty Reviews row. It comes back with the first review. */
.humpf-no-reviews .wp-block-accordion-item:has(.wp-block-woocommerce-product-reviews) {
	display: none;
}

/* Loading states: keep the photo's space and a quiet dark surface until it decodes.
 * The background sits behind the image, so no loaded class or JavaScript is needed.
 * Static gradients also stay still for reduced motion and on slow phones. */
.wp-block-woocommerce-product-template .humpf-card__media,
.humpf-recently-viewed .humpf-card__media {
	aspect-ratio: 1;
	background: var(--wp--preset--color--accent-3);
}

.humpf-card__media > a {
	aspect-ratio: 1;
}

.humpf-card__media img,
.humpf-gallery .wc-block-components-product-image img,
.humpf-gallery .wc-block-product-gallery-thumbnails__thumbnail__image,
.woocommerce div.product .humpf-gallery-classic div.images img,
.humpf-rail__thumb:has(img) {
	background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--accent-5));
}

/* =========================================================================
 * Empty storefronts: a little print on the build plate, then a way back in.
 * Shared here so cart page content and the lazy-loaded drawer get it too.
 * ====================================================================== */
:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search), .wc-block-mini-cart__empty-cart-wrapper) {
	background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--wp--preset--color--accent-1) 9%, transparent), transparent 65%), var(--wp--preset--color--accent-3);
	border-color: var(--wp--preset--color--accent-6) !important;
	border-radius: var(--wp--preset--border-radius--lg) !important;
	padding: clamp(28px, 4vw, 48px) 24px !important;
	text-align: center;
}

/* A three-sided print with visible layers; decorative, no image or extra markup. */
:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search), .wc-block-mini-cart__empty-cart-wrapper)::before {
	background: repeating-linear-gradient(0deg, transparent 0 5px, color-mix(in srgb, var(--wp--preset--color--base) 22%, transparent) 5px 6px), conic-gradient(from 63.435deg at 50% 50%, var(--wp--preset--color--accent-7) 0deg 116.565deg, var(--wp--preset--color--accent-1) 116.565deg 233.13deg, var(--wp--preset--color--accent-2) 233.13deg);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	content: "";
	display: block;
	height: 72px;
	margin: 0 auto 24px;
	pointer-events: none;
	width: 80px;
}

:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) > :is(h1, h2) {
	font-size: clamp(26px, 3vw, 38px) !important;
	letter-spacing: -0.035em;
	line-height: 1.12;
	margin-block: 0 16px;
	text-wrap: balance;
}

:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) > p {
	color: var(--wp--preset--color--accent-2);
	line-height: 1.6;
	margin-block: 0 24px;
	max-width: 34rem;
	text-wrap: pretty;
}

.error404 main > .wp-block-group:has(> .humpf-404-search) > p:first-of-type {
	color: var(--wp--preset--color--accent-4);
	font-size: var(--wp--preset--font-size--x-small);
	margin-bottom: 12px;
}

:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) .wp-block-buttons {
	gap: 12px;
	margin-block-start: 24px !important;
}

:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) .wp-block-button__link {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 48px;
}

:is(.humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) .wp-block-search {
	margin-block-start: 24px;
	max-width: 34rem;
}

/* Shelves become a quiet, evenly spaced set of routes rather than loose buttons. */
:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) {
	border-block: 1px solid var(--wp--preset--color--accent-5);
	margin-block: 32px !important;
	padding-block: 28px;
}

:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) > h2 {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.02em;
	margin-block: 0 20px;
}

:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) > .wp-block-buttons {
	gap: 10px;
	margin-block: 0;
	max-width: none;
}

:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) .wp-block-button__link {
	background: var(--wp--preset--color--accent-3);
	border-color: var(--wp--preset--color--accent-6);
	min-height: 48px;
	padding: 12px 18px;
}

@media (min-width: 1000px) {
	:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) > .wp-block-buttons {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) .wp-block-button__link {
		width: 100%;
	}
}

:is(.humpf-empty-cart-products, .humpf-recovery-products) > h2 {
	align-items: center;
	display: flex;
	gap: 20px;
	letter-spacing: -0.025em;
	margin-block: 36px 24px !important;
}

:is(.humpf-empty-cart-products, .humpf-recovery-products) > h2::after {
	background: var(--wp--preset--color--accent-5);
	content: "";
	flex: 1;
	height: 1px;
}

/* Only the empty drawer gets the centered composition; filled carts stay native. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
	border: 1px solid var(--wp--preset--color--accent-6);
	margin: 72px 24px 24px;
	width: auto;
}

.wc-block-mini-cart__empty-cart-wrapper > h2 {
	font-size: clamp(26px, 3vw, 32px) !important;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 16px;
	text-wrap: balance;
}

.wc-block-mini-cart__empty-cart-wrapper > p {
	color: var(--wp--preset--color--accent-2);
	line-height: 1.6;
	margin: 0 0 24px;
}

.wc-block-mini-cart__empty-cart-wrapper .wc-block-mini-cart__shopping-button {
	justify-content: center;
	margin: 0;
	min-height: 48px;
	width: 100%;
}

@media (max-width: 599px) {
	:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) {
		padding-inline: 20px !important;
	}

	:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) .wp-block-buttons > .wp-block-button,
	:is(.humpf-empty-cart, .humpf-no-products, .error404 main > .wp-block-group:has(> .humpf-404-search)) .wp-block-button__link {
		width: 100%;
	}

	:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) > .wp-block-buttons {
		align-items: stretch;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(.error404 main, .humpf-products:has(.humpf-no-products)) .wp-block-group:has(> .wp-block-buttons a[href="/product-category/ducks/"]) .wp-block-button__link {
		align-items: center;
		display: flex;
		font-size: var(--wp--preset--font-size--x-small);
		height: 100%;
		justify-content: center;
		padding-inline: 10px;
		width: 100%;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
		margin-inline: 16px;
		padding-inline: 20px !important;
	}
}
