/*
Theme Name: courtvoro
Description: A responsive basketball jersey storefront for WordPress and WooCommerce.
Version: 0.2.34
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: courtvoro
*/

:root {
	--hv-ink: #22201e;
	--hv-dark: #191817;
	--hv-paper: #faf9f7;
	--hv-white: #fff;
	--hv-orange: #f48253;
	--hv-rust: #9b3a20;
	--hv-muted: #615c57;
	--hv-line: #e4dfd9;
	--hv-shell: 1264px;
	--hv-gutter: clamp(16px, 4vw, 48px);
	--hv-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hv-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--hv-paper);
	color: var(--hv-ink);
	font: 1rem/1.6 var(--hv-body);
	overflow-wrap: anywhere;
}

a { color: var(--hv-rust); text-underline-offset: 0.2em; }
a:hover { color: var(--hv-ink); }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--hv-rust);
	outline-offset: 3px;
}

img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 0.55em; line-height: 1.12; }
h1, h2 { letter-spacing: -0.035em; }
p { margin: 0 0 1em; }

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

.hv-skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 10px 16px;
	background: var(--hv-white);
}

.hv-shell { width: min(var(--hv-shell), 100% - 2 * var(--hv-gutter)); margin-inline: auto; }
.hv-main { min-height: 55vh; padding-block: clamp(22px, 4vw, 56px); }
body.woocommerce-shop .hv-main.hv-shop { padding-top: 24px; }
.hv-prose { max-width: 780px; }

.hv-header { position: relative; z-index: 5; background: var(--hv-paper); border-bottom: 1px solid var(--hv-line); }
.hv-header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 74px; gap: 20px; }
.hv-brand {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	color: var(--hv-ink);
	text-decoration: none;
}
.hv-brand svg { display: block; width: clamp(166px, 19vw, 236px); height: auto; }
.hv-brand-basketball { color: #f67b13; fill: currentColor; }
.hv-header-actions { display: flex; align-items: center; justify-content: end; gap: 4px; }
.hv-icon-link {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	color: var(--hv-ink);
	cursor: pointer;
	border-radius: 50%;
}
.hv-icon-link:hover, details[open] > .hv-icon-link { background: #eee8dc; }
.hv-icon-link svg { width: 23px; height: 23px; }
.hv-icon-link::-webkit-details-marker { display: none; }
.hv-cart-link { position: relative; background: #f3ede7; }
.hv-cart-link:hover { background: #f4ddd2; }
.hv-cart-link .cv-cart-count { position: absolute; top: -3px; right: -4px; display: grid; min-width: 21px; height: 21px; padding: 0 5px; place-items: center; border: 2px solid var(--hv-paper); border-radius: 999px; background: var(--hv-rust); color: var(--hv-white); font-size: 0.65rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.hv-cart-link .cv-cart-count[hidden] { display: none; }
.hv-mobile-nav { display: none; }
.hv-search { position: relative; }
.hv-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 2;
	width: min(320px, calc(100vw - 2 * var(--hv-gutter)));
	padding: 16px;
	border: 1px solid var(--hv-line);
	background: var(--hv-white);
	box-shadow: 0 12px 30px #1817141c;
}
.hv-popover form { display: flex; align-items: end; gap: 8px; }
.hv-popover form > label { min-width: 0; flex: 1; }
.hv-popover form input[type="search"] { min-width: 0; flex: 1; width: 100%; }
.hv-popover ul, .hv-desktop-nav ul, .hv-footer nav ul { margin: 0; padding: 0; list-style: none; }
.hv-desktop-nav > ul { display: flex; gap: clamp(20px, 3vw, 42px); }
.hv-desktop-nav li { position: relative; }
.hv-desktop-nav li > a, .hv-popover nav a, .hv-popover li > a {
	display: block;
	padding: 10px 0;
	color: var(--hv-ink);
	font-size: 0.89rem;
	font-weight: 750;
	text-decoration: none;
}
.hv-desktop-nav a:hover, .hv-popover a:hover { color: var(--hv-rust); text-decoration: underline; }
.hv-desktop-nav ul.sub-menu {
	display: none;
	position: absolute;
	z-index: 2;
	min-width: 165px;
	padding: 8px 16px;
	background: var(--hv-white);
	border: 1px solid var(--hv-line);
}
.hv-desktop-nav li:hover > .sub-menu, .hv-desktop-nav li:focus-within > .sub-menu { display: block; }
.hv-desktop-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.hv-mobile-nav .sub-menu { padding-inline-start: 18px; }
.hv-header:has(.hv-desktop-nav .hv-category-menu) .hv-desktop-nav { border-top: 1px solid var(--hv-line); }
.hv-desktop-nav > ul { justify-content: center; flex-wrap: wrap; }
.hv-desktop-nav > .hv-category-menu { gap: 0 clamp(12px, 1.6vw, 26px); }
.hv-desktop-nav .hv-category-menu > li > a { display: flex; align-items: center; min-height: 46px; font-size: 0.82rem; white-space: nowrap; }
.hv-category-menu > .current-menu-item > a { color: var(--hv-rust); }
.hv-desktop-nav .hv-category-menu li { position: static; }
.hv-category-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	color: var(--hv-ink);
	font-size: 0.82rem;
	font-weight: 760;
	line-height: 1.3;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
}
.hv-category-trigger::-webkit-details-marker { display: none; }
.hv-category-disclosure > .hv-category-trigger::after {
	content: '';
	width: 6px;
	height: 6px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: translateY(-2px) rotate(45deg);
}
.hv-category-disclosure[open] > .hv-category-trigger::after { transform: translateY(1px) rotate(225deg); }
.hv-desktop-nav .hv-category-current .hv-category-trigger,
.hv-category-disclosure[open] > summary,
.hv-category-trigger:hover { color: var(--hv-rust); }
.hv-desktop-nav .hv-category-panel {
	position: absolute;
	inset: calc(100% - 1px) 0 auto;
	z-index: 1;
	padding: 18px var(--hv-gutter);
	border-block: 1px solid var(--hv-line);
	background: var(--hv-paper);
	box-shadow: 0 18px 30px #1817141c;
}
.hv-category-children { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hv-desktop-nav .hv-category-children { width: min(100%, 900px); margin-inline: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hv-category-panel .hv-category-children li > a {
	display: grid;
	justify-items: center;
	align-content: center;
	height: 100%;
	min-height: 46px;
	gap: 6px;
	padding: 10px 6px;
	border: 1px solid var(--hv-line);
	border-radius: 9px;
	background: var(--hv-white);
	font-size: 0.83rem;
	line-height: 1.25;
	text-align: center;
	overflow-wrap: normal;
}
.hv-category-panel .hv-category-children li > a:is(:hover, :focus-visible, [aria-current]) {
	border-color: var(--hv-rust);
	color: var(--hv-rust);
}
.hv-category-children img { display: block; width: clamp(48px, 7vw, 76px); aspect-ratio: 1; object-fit: contain; }
.hv-mobile-menu { width: min(420px, calc(100vw - 2 * var(--hv-gutter))); max-height: calc(100dvh - 115px); overflow: auto; }
.hv-mobile-menu .hv-category-menu > li + li { border-top: 1px solid var(--hv-line); }
.hv-mobile-menu .hv-category-menu > li > a { display: flex; align-items: center; min-height: 46px; font-size: 0.82rem; }
.hv-mobile-menu .hv-category-disclosure > summary { justify-content: space-between; }
.hv-mobile-menu .hv-category-panel { padding-bottom: 12px; }
.hv-team-archive-image {
	display: grid;
	width: 104px;
	aspect-ratio: 1;
	place-items: center;
	border: 1px solid var(--hv-line);
	border-radius: 16px;
	background: var(--hv-white);
}
.hv-team-archive-image img { width: 85%; height: auto; }
.woocommerce-products-header:has(> .hv-team-archive-image) {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	align-items: start;
	gap: 12px 24px;
}
.woocommerce-products-header > .hv-team-archive-image { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-products-header:has(> .hv-team-archive-image) > .woocommerce-products-header__title { grid-column: 2; grid-row: 1; margin: 0; }
.hv-shop.hv-main:has(> .woocommerce-products-header) { padding-top: 28px; }
.woocommerce .hv-shop .woocommerce-breadcrumb { margin-bottom: 22px; color: var(--hv-muted); font-size: 0.8rem; }
.hv-shop .woocommerce-products-header { margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--hv-line); }
.hv-shop .woocommerce-products-header .term-description { grid-column: 1 / -1; max-width: 94ch; color: var(--hv-muted); font-size: 0.92rem; line-height: 1.7; }
.hv-shop .woocommerce-products-header:has(> .hv-team-archive-image) .term-description { grid-column: 2; grid-row: 2; }
.hv-shop .woocommerce-products-header .term-description p { margin-bottom: 0.8em; }
.hv-shop .woocommerce-products-header .term-description > :last-child { margin-bottom: 0; }

.hv-hero { padding-top: clamp(12px, 2.5vw, 32px); }
.hv-hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	align-items: center;
	overflow: hidden;
	border-radius: calc(var(--hv-radius) + 4px);
	background: var(--hv-dark);
	color: var(--hv-paper);
}
.hv-hero-copy { padding: clamp(24px, 5vw, 76px); }
.hv-hero h1 {
	max-width: 9ch;
	margin-bottom: 0.45em;
	font-size: clamp(2.4rem, 5.8vw, 5.35rem);
	font-weight: 790;
	line-height: 0.98;
	letter-spacing: -0.055em;
}
.hv-hero-media { aspect-ratio: 3 / 2; }
.hv-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv-kicker {
	margin-bottom: 0.6rem;
	color: var(--hv-muted);
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.08em;
}

.hv-button,
.hv-shell button:not([class]),
.hv-popover button[type="submit"],
.hv-shell input[type="submit"],
.woocommerce .hv-shell :is(a, button, input).button,
.hv-shell .woocommerce :is(a, button, input).button,
.hv-shell :is(.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 44px;
	padding: 0.68em 1.05em;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--hv-ink);
	color: var(--hv-white);
	font: 700 0.89rem/1.3 var(--hv-body);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.hv-button:hover,
.hv-shell button:not([class]):hover,
.hv-popover button[type="submit"]:hover,
.hv-shell input[type="submit"]:hover,
.woocommerce .hv-shell :is(a, button, input).button:hover,
.hv-shell .woocommerce :is(a, button, input).button:hover,
.hv-shell :is(.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button):hover {
	background: #463c36;
	color: var(--hv-white);
}
.hv-hero .hv-button { background: var(--hv-orange); color: var(--hv-dark); }
.hv-hero .hv-button:hover { background: #ffab8a; }
.hv-hero a:focus-visible, .hv-footer a:focus-visible { outline-color: var(--hv-orange); }
.hv-button span, .hv-text-link span { font-size: 1.15em; }
.hv-section { padding-block: clamp(34px, 4.5vw, 66px); }
.hv-section + .hv-section { border-top: 1px solid var(--hv-line); }
.hv-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 22px; margin-bottom: 24px; }
.hv-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.65rem); font-weight: 750; }
.hv-text-link { color: var(--hv-rust); font-size: 0.86rem; font-weight: 800; }
.hv-empty { padding: 22px; margin: 0; background: var(--hv-white); border: 1px solid var(--hv-line); color: var(--hv-muted); }

.hv-collection-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.hv-collection-grid a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	min-height: 66px;
	padding: 16px;
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	background: var(--hv-white);
	color: var(--hv-ink);
	text-decoration: none;
}
.hv-collection-grid a:hover { border-color: var(--hv-rust); }

.hv-page-heading { margin-bottom: clamp(24px, 4vw, 44px); }
.hv-page-heading h1, .hv-shop .woocommerce-products-header__title {
	font-size: clamp(1.9rem, 4vw, 3.3rem);
	font-weight: 750;
	letter-spacing: -0.045em;
}
.hv-shop .woocommerce-products-header__title { font-size: clamp(1.65rem, 2.7vw, 2.25rem); line-height: 1.18; }
.hv-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.hv-post-card { padding: 20px; background: var(--hv-white); border: 1px solid var(--hv-line); }
.hv-post-card img { display: block; margin-bottom: 1rem; }
.hv-post-card h2 a { color: var(--hv-ink); }
.hv-entry-content > :last-child, .hv-post-card > :last-child { margin-bottom: 0; }
.hv-entry-content :where(.aligncenter, .alignwide, .alignfull) { max-width: 100%; }
.hv-comments { margin-top: 36px; }

.hv-shell :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), select, textarea) {
	max-width: 100%;
	min-height: 44px;
	padding: 0.58em 0.75em;
	border: 1px solid #aaa39b;
	border-radius: 8px;
	background: var(--hv-white);
	color: var(--hv-ink);
	font: inherit;
}
.hv-shell :where(input[type="radio"], input[type="checkbox"]) { accent-color: var(--hv-rust); }

/* Native WooCommerce catalog and product forms. */
.hv-shop .woocommerce-breadcrumb { color: var(--hv-muted); }
.hv-shop .woocommerce-breadcrumb a { color: var(--hv-rust); }
.hv-shop .woocommerce-ordering select { min-height: 44px; }
.hv-catalog {
	display: grid;
	gap: clamp(18px, 3vw, 38px);
	align-items: start;
}
.hv-catalog-results { min-width: 0; scroll-margin-top: 20px; }
.hv-catalog-results:focus { outline: none; }
.hv-catalog-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-height: 53px;
	padding-bottom: 12px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--hv-line);
}
.woocommerce .hv-catalog-toolbar :is(.woocommerce-result-count, .woocommerce-ordering) { float: none; margin: 0; }
.hv-catalog-toolbar .woocommerce-result-count { color: var(--hv-muted); font-size: 0.84rem; }
.hv-catalog-toolbar .woocommerce-ordering { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hv-catalog-toolbar .woocommerce-ordering label { color: var(--hv-muted); font-size: 0.8rem; white-space: nowrap; }
.hv-catalog-toolbar .woocommerce-ordering select {
	width: auto;
	max-width: 210px;
	min-width: 150px;
	min-height: 40px;
	padding: 7px 10px;
	border-color: var(--hv-line);
	border-radius: 7px;
	font-size: 0.83rem;
	line-height: 1.4;
}
.hv-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.hv-active-filters ul { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.hv-active-filters li { max-width: 100%; }
.hv-filter-chip {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 36px;
	padding: 5px 12px;
	border: 1px solid #dcc8bc;
	border-radius: 20px;
	background: #f6ebe4;
	color: var(--hv-rust);
	font-size: 0.83rem;
	font-weight: 650;
	text-decoration: none;
}
.hv-filter-chip:hover { border-color: var(--hv-rust); background: #f2ded2; }
.hv-filter-chip > :first-child { min-width: 0; overflow-wrap: anywhere; }
.hv-filter-chip > :last-child { flex: none; font-size: 1.1rem; }
.hv-clear-filters { padding-block: 8px; color: var(--hv-muted); font-size: 0.83rem; }
.hv-shop-filters {
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	background: var(--hv-white);
}
.hv-shop-filters h2 { margin: 0 0 8px; font-size: 1.1rem; }
.hv-filter-toggle.hv-button, .hv-filter-close { display: none; }
.hv-filter-toggle svg { width: 20px; height: 20px; }
.hv-filter-toggle-count { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #ffffff24; font-size: 0.75rem; }
.hv-filter-dialog {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(380px, calc(100vw - 36px));
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: var(--hv-white);
	color: var(--hv-ink);
	box-shadow: 10px 0 35px #18171426;
}
.hv-filter-dialog[open] { animation: hv-filter-enter 180ms ease-out; }
.hv-filter-dialog::backdrop { background: #18171480; }
.hv-filter-dialog .hv-shop-filters { display: flex; flex-direction: column; height: 100%; padding: 0; border: 0; border-radius: 0; }
.hv-filter-dialog .hv-filter-header { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--hv-line); }
.hv-filter-dialog h2 { margin: 0; }
.hv-filter-dialog .hv-filter-close { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--hv-paper); color: var(--hv-ink); font: 400 1.75rem/1 var(--hv-body); cursor: pointer; }
.hv-filter-dialog form { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.hv-filter-dialog .hv-filter-fields { flex: 1; min-height: 0; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
.hv-filter-dialog .hv-filter-group:first-child { border-top: 0; }
.hv-filter-dialog .hv-filter-options { max-height: none; overflow: visible; scrollbar-gutter: auto; }
.hv-filter-dialog .hv-filter-options label { min-height: 40px; }
.hv-filter-dialog input[type="checkbox"] { accent-color: var(--hv-rust); }
.hv-filter-dialog .hv-filter-actions { flex: none; justify-content: center; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); }
.hv-filter-dialog .hv-filter-submit { width: 100%; }
html.hv-filters-open, html.hv-filters-open body { overflow: hidden; overscroll-behavior: none; }
@keyframes hv-filter-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.hv-filter-group { border-top: 1px solid var(--hv-line); }
.hv-filter-group summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.hv-filter-group summary::-webkit-details-marker { display: none; }
.hv-filter-group summary::after {
	content: '';
	width: 7px;
	height: 7px;
	margin-inline: auto 3px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}
.hv-filter-group[open] summary::after { transform: rotate(225deg); }
.hv-filter-count {
	min-width: 1.4rem;
	border-radius: 1rem;
	background: var(--hv-paper);
	color: var(--hv-rust);
	font-size: 0.78rem;
	text-align: center;
}
.hv-filter-options {
	display: grid;
	max-height: 15rem;
	overflow-y: auto;
	padding: 0 4px 10px;
	scrollbar-gutter: stable;
}
.hv-filter-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 33px;
	font-size: 0.92rem;
	cursor: pointer;
}
.hv-filter-options input { flex: none; width: 16px; height: 16px; margin: 0; }
.hv-filter-options .hv-filter-child { padding-inline-start: 16px; }
.hv-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hv-line); }
.hv-filter-actions .hv-button { font-size: 0.88rem; }
.hv-filter-actions > a { color: var(--hv-rust); font-size: 0.88rem; }

.woocommerce .hv-catalog-results > ul.products { margin: 0; padding: 0; }
.woocommerce .hv-catalog-results ul.products li.product { position: relative; padding: 12px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.woocommerce .hv-catalog-results ul.products li.product:hover { border-color: #c7b8ad; box-shadow: 0 5px 18px #22201e0a; }
.woocommerce .hv-catalog-results ul.products li.product a img { border-radius: 8px; background: #f7f6f4; }
.woocommerce .hv-catalog-results ul.products li.product .woocommerce-loop-product__title { min-height: 4.14em; padding-block: 14px 10px; font-size: 0.94rem; line-height: 1.45; }
.woocommerce .hv-catalog-results ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-height: 1.7rem; margin: 0; font-size: 1rem; }
.woocommerce .hv-catalog-results ul.products li.product .price del { font-size: 0.82rem; }
.woocommerce .hv-catalog-results nav.woocommerce-pagination { padding-top: 30px; }
.woocommerce .hv-catalog-results nav.woocommerce-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; border: 0; }
.woocommerce .hv-catalog-results nav.woocommerce-pagination ul li { float: none; border: 0; }
.woocommerce .hv-catalog-results nav.woocommerce-pagination ul li :is(a, span) { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 7px; border: 1px solid var(--hv-line); border-radius: 8px; background: var(--hv-white); color: var(--hv-ink); }
.woocommerce .hv-catalog-results nav.woocommerce-pagination ul li .current { border-color: var(--hv-ink); background: var(--hv-ink); color: var(--hv-white); }

.hv-shell :is(.woocommerce, .related, .upsells, .cross-sells) ul.products,
.woocommerce .hv-shop > ul.products,
.woocommerce .hv-catalog-results > ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
	clear: both;
}
.hv-shell ul.products::before, .hv-shell ul.products::after { display: none; }
.hv-shell .woocommerce ul.products li.product,
.woocommerce .hv-shop ul.products li.product {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: clamp(8px, 1.4vw, 15px);
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	background: var(--hv-white);
}
.hv-shell ul.products li.product > a:first-of-type {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--hv-ink);
}
.hv-shell ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	margin: 0;
	border-radius: 7px;
	background: #f7f6f4;
}
.hv-shell ul.products li.product :is(.woocommerce-loop-product__title, .woocommerce-loop-category__title) {
	flex: 1;
	padding: 0.75rem 0 0.55rem;
	color: var(--hv-ink);
	font-size: clamp(0.875rem, 1.2vw, 1rem);
	font-weight: 650;
	line-height: 1.38;
	letter-spacing: -0.015em;
}
.hv-shell ul.products li.product .price,
.hv-shop div.product .summary .price { color: var(--hv-ink); font-weight: 700; }
.hv-shell .price :is(ins, del) { font-variant-numeric: tabular-nums; }
.hv-shell .price ins { color: var(--hv-rust); text-decoration: none; }
.hv-shell .price del { color: var(--hv-muted); }
.hv-shell ul.products li.product .price { margin-bottom: 0; }
.hv-shell ul.products li.product span.onsale,
.hv-shop div.product > span.onsale {
	top: 12px;
	left: auto;
	right: 12px;
	min-height: 0;
	margin: 0;
	padding: 0.25rem 0.6rem;
	border-radius: 5px;
	background: #f8e5db;
	color: var(--hv-rust);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.5;
}
.single-product .hv-shop div.product > span.onsale { left: 14px; right: auto; z-index: 1; }
.single-product .hv-shop div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
}
.single-product .hv-shop div.product::before,
.single-product .hv-shop div.product::after { display: none; }
.single-product .hv-shop div.product > :not(.woocommerce-product-gallery):not(.summary):not(.onsale) { grid-column: 1 / -1; }
.single-product .hv-shop div.product > :is(.woocommerce-product-gallery, .summary) { float: none; width: 100%; min-width: 0; margin: 0; }
.hv-shop div.product .product_title {
	margin-bottom: 0.65rem;
	font-size: clamp(1.45rem, 2.45vw, 2.3rem);
	font-weight: 750;
	line-height: 1.16;
	letter-spacing: -0.04em;
}
.hv-shop div.product .summary > .price { margin-bottom: 0.75rem; font-size: 1.25rem; }
.hv-shop .woocommerce-product-details__short-description { max-width: 58ch; color: var(--hv-muted); }
.hv-shop .woocommerce-product-gallery__wrapper { background: var(--hv-white); }
.hv-shop .woocommerce-product-gallery .flex-viewport,
.hv-shop .woocommerce-product-gallery .woocommerce-product-gallery__image { border-radius: var(--hv-radius); overflow: hidden; }
.woocommerce .hv-shop div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.woocommerce .hv-shop div.product div.images .flex-control-thumbs li {
	width: min(21%, 84px);
	overflow: hidden;
	border: 1px solid var(--hv-line);
	border-radius: 8px;
	background: var(--hv-white);
}

.woocommerce .hv-shop div.product .summary form.cart {
	margin: 1.1rem 0 0;
	padding-top: 1.1rem;
	border-top: 1px solid var(--hv-line);
}
.woocommerce .hv-shop div.product form.cart .variations { margin-bottom: 0.65rem; }
.woocommerce .hv-shop div.product form.cart .variations :is(th, td) { display: block; padding: 0; }
.woocommerce .hv-shop div.product form.cart .variations th { margin-bottom: 5px; text-align: start; }
.woocommerce .hv-shop div.product form.cart .variations td { margin-bottom: 12px; }
.woocommerce .hv-shop div.product form.cart .variations select[hidden] { display: none; }
.hv-product-options { display: flex; flex-wrap: wrap; gap: 7px; }
.hv-product-option {
	min-height: 44px;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid #b8b0a7;
	border-radius: 7px;
	background: var(--hv-white);
	color: var(--hv-ink);
	font: 600 0.86rem/1.35 var(--hv-body);
	text-align: start;
	overflow-wrap: anywhere;
	cursor: pointer;
}
.hv-product-option:hover:not(:disabled) { border-color: var(--hv-rust); }
.hv-product-option[aria-pressed="true"] { border-color: var(--hv-ink); background: var(--hv-ink); color: var(--hv-white); }
.hv-product-option:disabled { border-style: dashed; color: var(--hv-muted); background: var(--hv-paper); cursor: not-allowed; }
.woocommerce .hv-shop div.product form.cart .reset_variations { display: inline-block; margin-top: 8px; }
.woocommerce .hv-shop div.product form.cart .button.single_add_to_cart_button { float: none; min-width: min(65%, 15rem); min-height: 46px; }
.woocommerce .hv-shop div.product form.cart .button.single_add_to_cart_button:is(:disabled, .disabled) { cursor: not-allowed; opacity: 0.55; }

.hv-shop .msp-personalization { margin: 12px 0; }
.hv-shop .msp-personalization label { display: block; font-weight: 750; }
.hv-shop .msp-personalization input { display: block; width: 100%; }
.hv-shop .msp-personalization small { display: block; margin-top: 4px; color: var(--hv-muted); }

/* Transaction pages keep WooCommerce's markup, links, validation and gateway UI. */
.hv-entry-content :is(.woocommerce-MyAccount-content, .woocommerce-form, .woocommerce-order, .wc-block-cart, .wc-block-checkout) { min-width: 0; }
.hv-entry-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { background: var(--hv-white); color: var(--hv-ink); }
.hv-entry-content .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	border: 1px solid var(--hv-line);
	background: var(--hv-white);
}
.hv-entry-content .woocommerce-MyAccount-navigation li + li { border-top: 1px solid var(--hv-line); }
.hv-entry-content .woocommerce-MyAccount-navigation a { display: block; padding: 0.55em 0.85em; text-decoration: none; font-weight: 750; }
.hv-entry-content .woocommerce-MyAccount-navigation .is-active a { background: var(--hv-orange); color: var(--hv-ink); }
.hv-entry-content .woocommerce-MyAccount-content { display: flow-root; }
.hv-entry-content :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-verify-email) { max-width: 46rem; }
.hv-entry-content :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-order-details, .woocommerce-customer-details) {
	padding: clamp(14px, 2vw, 26px);
	border: 1px solid var(--hv-line);
	border-radius: var(--hv-radius);
	background: var(--hv-white);
}
.hv-entry-content .woocommerce-order-details, .hv-entry-content .woocommerce-customer-details { margin-block: 20px; }
.hv-entry-content .woocommerce-order-details table { margin-bottom: 0; }
.hv-entry-content .woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: 1px;
	margin: 16px 0 24px;
	padding: 1px;
	list-style: none;
	background: var(--hv-line);
}
.hv-entry-content .woocommerce-order ul.woocommerce-order-overview li {
	float: none;
	margin: 0;
	padding: 14px;
	border: 0;
	background: var(--hv-white);
}
.hv-entry-content .woocommerce-order-overview li strong { margin-top: 4px; font-size: 1rem; }
.hv-entry-content .woocommerce-thankyou-order-received { font-weight: 800; }
.hv-entry-content .shop_table { background: var(--hv-white); }
.hv-entry-content :is(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) { color: var(--hv-ink); }
.hv-entry-content .wc-block-components-order-summary { background: var(--hv-white); }
.hv-entry-content .wc-block-components-totals-wrapper { border-color: var(--hv-line); }
.hv-entry-content .woocommerce-MyAccount-navigation ul { border-radius: var(--hv-radius); overflow: hidden; }

.hv-footer { margin-top: auto; background: var(--hv-ink); color: #ddd6ca; border-top: 1px solid var(--hv-line); }
.hv-footer-main { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 26px; padding-block: 36px; }
.hv-footer .hv-brand { color: var(--hv-paper); }
.hv-footer .hv-brand svg { width: 178px; }
.hv-footer nav > ul { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.hv-footer a { color: var(--hv-paper); }
.hv-footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 15px; border-top: 1px solid #534b40; font-size: 0.83rem; }

@media (max-width: 880px) {
	.hv-header-inner { grid-template-columns: auto 1fr auto; min-height: 64px; gap: 8px; }
	.hv-mobile-nav { display: block; }
	.hv-mobile-nav > .hv-popover { top: 100%; right: auto; left: var(--hv-gutter); }
	.hv-desktop-nav { display: none; }
	.hv-shell :is(.woocommerce, .related, .upsells, .cross-sells) ul.products,
	.woocommerce .hv-shop > ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.single-product .hv-shop div.product { grid-template-columns: minmax(0, 1fr); }
	.hv-shop .woocommerce-breadcrumb { font-size: 0.78rem; }
	.hv-header .hv-brand svg { width: clamp(118px, 39vw, 166px); }
	.hv-header-actions { gap: 0; }
	.hv-search { position: static; }
	.hv-search > .hv-popover { top: 100%; right: var(--hv-gutter); }
	.hv-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hv-hero-copy { padding: 28px 22px 20px; }
	.hv-hero h1 { font-size: clamp(2rem, 8vw, 3rem); max-width: none; }
	.hv-hero-media { aspect-ratio: 3 / 2; }
	.hv-shell :is(.woocommerce, .related, .upsells, .cross-sells) ul.products,
	.woocommerce .hv-shop > ul.products,
	.woocommerce .hv-catalog-results > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hv-shop .woocommerce-ordering { float: none; clear: both; }
	.hv-entry-content .woocommerce-MyAccount-navigation,
	.hv-entry-content .woocommerce-MyAccount-content { float: none; width: 100%; }
	.hv-entry-content table.woocommerce-table--order-details { display: block; overflow-x: auto; }
	.hv-footer-main { padding-block: 26px; }
	.hv-shop.hv-main:has(> .woocommerce-products-header) { padding-top: 20px; }
	.woocommerce .hv-shop .woocommerce-breadcrumb { margin-bottom: 18px; font-size: 0.75rem; }
	.woocommerce-products-header:has(> .hv-team-archive-image) { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; }
	.woocommerce-products-header > .hv-team-archive-image { grid-row: 1; width: 64px; border-radius: 12px; }
	.hv-shop .woocommerce-products-header:has(> .hv-team-archive-image) .term-description { grid-column: 1 / -1; }
	.hv-shop .woocommerce-products-header { padding-bottom: 22px; margin-bottom: 22px; }
	.hv-catalog-toolbar { gap: 10px; }
	.hv-catalog-toolbar .woocommerce-ordering { justify-content: space-between; width: 100%; }
	.hv-catalog-toolbar .woocommerce-ordering select { flex: 1; max-width: 240px; }
	.woocommerce .hv-catalog-results ul.products li.product { padding: 8px; }
	.woocommerce .hv-catalog-results ul.products li.product .woocommerce-loop-product__title { font-size: 0.86rem; padding-block: 10px 8px; }
	.woocommerce .hv-catalog-results ul.products li.product .button { font-size: 0.78rem; }
}

@media (min-width: 881px) {
	.hv-auto-filters .hv-filter-submit { display: none; }
	.hv-auto-filters .hv-filter-actions:has(> :only-child) { display: none; }
}

@media (max-width: 880px) {
	.hv-drawer-ready > .hv-filter-toggle { display: inline-flex; justify-self: start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce .hv-catalog-results ul.products li.product { transition: none; }
	.hv-filter-dialog[open] { animation: none; }
}

@media (min-width: 681px) {
	.hv-catalog:has(> .hv-shop-filters) { grid-template-columns: clamp(192px, 22vw, 248px) minmax(0, 1fr); }
	.woocommerce .hv-catalog-results > ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 681px) and (max-width: 920px) {
	.woocommerce .hv-catalog-results > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 375px) {
	.hv-header-inner { gap: 4px; }
	.hv-header .hv-icon-link { width: 38px; }
	.hv-header .hv-brand svg { width: 120px; }
}

@media (forced-colors: active) {
	.hv-icon-link, .hv-button { border: 1px solid ButtonText; }
}
