/**
 * SportsHub360 — main stylesheet
 *
 * Ports the approved "Clean Pitch" design direction (D24) —
 * design/build/direction-b.html is the visual spec.
 *
 * WooCommerce's own stylesheets are dequeued in functions.php, so everything a
 * shopper sees is defined here. That is the point: nothing loads that we did not
 * write (D25).
 *
 * Contents
 *   1.  Fonts
 *   2.  Tokens
 *   3.  Base and typography
 *   4.  Layout
 *   5.  Buttons and forms
 *   6.  Header and navigation
 *   7.  Footer
 *   8.  WooCommerce — notices and chrome
 *   9.  WooCommerce — product grid
 *   10. WooCommerce — filter rail
 *   11. Content pages
 *   12. Accessibility
 */

/* ---------------------------------------------------------------- 1. Fonts */
/* Declared here as well as in theme.json. theme.json covers the block editor;
   these guarantee the front end, so a change to how WordPress emits global
   styles can never silently drop us to a system font. */

@font-face {
	font-family: "Ubuntu";
	src: url("../fonts/ubuntu-var.woff2") format("woff2-variations");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Liberation Sans";
	src: url("../fonts/liberation-sans.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Liberation Sans";
	src: url("../fonts/liberation-sans-bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
/* The category intro. Without it the browser slants the upright face itself. */
@font-face {
	font-family: "Liberation Sans";
	src: url("../fonts/liberation-sans-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Ubuntu Sans Mono";
	src: url("../fonts/ubuntu-mono-var.woff2") format("woff2-variations");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* --------------------------------------------------------------- 2. Tokens */

:root {
	/* Brand — sampled exactly from the source logo (PROJECT_PLAN §9.1). */
	--sh-ink: #0C0C0C;
	--sh-muted: #63695F;
	--sh-dim: #9AA096;
	--sh-accent: #47FD6E;
	--sh-accent-hover: #6BFF8C;
	--sh-ground: #FBFCFA;
	--sh-surface: #FFFFFF;
	--sh-panel: #F3F6F2;
	--sh-line: #E4E8E2;
	--sh-line-soft: #F0F3EF;

	/* WhatsApp brand green, used only on the order hand-off button. */
	--sh-wa: #25D366;
	--sh-wa-ink: #06240F;

	--sh-font-display: "Ubuntu", system-ui, sans-serif;
	--sh-font-body: "Liberation Sans", system-ui, sans-serif;
	--sh-font-mono: "Ubuntu Sans Mono", ui-monospace, monospace;

	--sh-pad: clamp(0.9rem, 2vw, 1.75rem);
	--sh-max: 1560px;
	--sh-gap: 1.4rem;
}

/* ----------------------------------------------- 3. Base and typography */

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

body {
	margin: 0;
	background: var(--sh-ground);
	color: var(--sh-ink);
	font-family: var(--sh-font-body);
	font-size: clamp(15px, 0.55vw + 13px, 17px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sh-font-display);
	font-weight: 500;
	letter-spacing: -0.021em;
	line-height: 1.12;
	text-wrap: balance;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* Prices, SKUs, counts — anything that should line up in a column. */
.sh-num,
.woocommerce-Price-amount,
.price {
	font-family: var(--sh-font-mono);
	font-variant-numeric: tabular-nums;
}

.sh-kicker {
	font-family: var(--sh-font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--sh-muted);
}

/* --------------------------------------------------------------- 4. Layout */

.sh-wrap {
	max-width: var(--sh-max);
	margin-inline: auto;
	padding-inline: var(--sh-pad);
}

.sh-section {
	padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.sh-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.7rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--sh-line);
}

.sh-head h1,
.sh-head h2 {
	margin: 0;
}

.sh-mark {
	display: inline-block;
	width: 7px;
	height: 7px;
	background: var(--sh-accent);
	flex: none;
}

/* ----------------------------------------------------- 5. Buttons and forms */

.sh-btn,
button.button,
a.button,
input.button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	background: var(--sh-accent);
	/* D22: black on green. Never white on green — it measures 1.35:1. */
	color: var(--sh-ink);
	border: 1px solid var(--sh-accent);
	border-radius: 0;
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.98rem;
	line-height: 1.2;
	padding: 0.78rem 1.35rem;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.sh-btn:hover,
button.button:hover,
a.button:hover,
.button:hover {
	background: var(--sh-accent-hover);
	border-color: var(--sh-accent-hover);
	color: var(--sh-ink);
}

.sh-btn--quiet {
	background: transparent;
	border-color: var(--sh-line);
}

.sh-btn--quiet:hover {
	background: transparent;
	border-color: var(--sh-ink);
}

.sh-btn--dark {
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-surface);
}

.sh-btn--dark:hover {
	background: var(--sh-accent);
	border-color: var(--sh-accent);
	color: var(--sh-ink);
}

/* The single most important control on the site. Uses WhatsApp's own green for
   recognition, with near-black text for contrast (PROJECT_PLAN §9.6). */
.sh-btn--whatsapp {
	background: var(--sh-wa);
	border-color: var(--sh-wa);
	color: var(--sh-wa-ink);
	width: 100%;
}

.sh-btn--whatsapp:hover {
	background: var(--sh-wa);
	border-color: var(--sh-wa);
	color: var(--sh-wa-ink);
	filter: brightness(1.08);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
textarea,
select {
	font: inherit;
	color: inherit;
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	border-radius: 0;
	padding: 0.55rem 0.8rem;
	width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--sh-ink);
	outline-offset: 1px;
}

/* ------------------------------------------------- 6. Header and navigation */

.sh-announce {
	background: var(--sh-panel);
	border-bottom: 1px solid var(--sh-line);
}

.sh-announce .sh-wrap {
	padding-block: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.4rem;
	justify-content: center;
	font-family: var(--sh-font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--sh-muted);
}

.sh-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(251, 252, 250, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--sh-line);
}

.sh-header .sh-wrap {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 1rem;
}

.sh-logo,
.custom-logo-link {
	flex: none;
	display: block;
	line-height: 0;
}

.sh-logo img,
.custom-logo-link img {
	height: 46px;
	width: auto;
}

/* Larger where the header has room; phones keep 46px so the logo, search and
   tools still share one row. */
@media (min-width: 900px) {
	.sh-logo img,
	.custom-logo-link img {
		height: 56px;
	}
}

.sh-search {
	flex: 1;
	max-width: 340px;
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	border: 1px solid var(--sh-line);
	background: var(--sh-surface);
	padding: 0.5rem 0.8rem;
	color: var(--sh-dim);
	font-size: 0.86rem;
	text-decoration: none;
	transition: border-color 0.18s;
}

.sh-search:hover {
	border-color: var(--sh-ink);
}

.sh-tools {
	display: flex;
	gap: 1.1rem;
	align-items: center;
	flex: none;
}

.sh-tools a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.86rem;
	color: var(--sh-muted);
	text-decoration: none;
}

.sh-tools a:hover {
	color: var(--sh-ink);
}

.sh-count {
	background: var(--sh-accent);
	color: var(--sh-ink);
	font-family: var(--sh-font-mono);
	font-size: 0.66rem;
	font-weight: 700;
	padding: 0.05rem 0.34rem;
}

/* Header icons: a 40px tap target each, with the count as a badge on the
   icon's corner. */
.sh-tools .sh-tool {
	position: relative;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--sh-ink);
}

.sh-tool svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linejoin: round;
}

.sh-tool .sh-count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 1.1rem;
	text-align: center;
	line-height: 1.35;
}

/* Phones: logo and tools share the top row and search takes a full row under
   them — squeezed between the two it was only a few characters wide. */
@media (max-width: 720px) {
	.sh-header .sh-wrap {
		flex-wrap: wrap;
		row-gap: 0.75rem;
	}

	.sh-tools {
		margin-inline-start: auto;
	}

	.sh-search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
		margin-inline-start: 0;
	}
}

/* --- favourite toggle --- */

.sh-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	cursor: pointer;
	color: var(--sh-ink);
	font: inherit;
}

.sh-fav svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	transition: fill 0.15s, transform 0.15s;
}

.sh-fav[aria-pressed="true"] svg {
	fill: var(--sh-accent);
}

.sh-fav:active svg {
	transform: scale(0.85);
}

.sh-fav:focus-visible {
	outline: 2px solid var(--sh-ink);
	outline-offset: 2px;
}

/* On the card: a small plate over the photo, opposite the sale badge. */
.sh-fav--card {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--sh-line);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
}

.sh-fav--card:hover {
	border-color: var(--sh-ink);
}

/* On the product page: a quiet labelled button under Add to order. */
.sh-fav--full {
	align-self: flex-start;
	width: auto;
	margin: 0 0 1.2rem;
	padding: 0.6rem 0.95rem;
	border: 1px solid var(--sh-line);
	background: transparent;
	font-size: 0.88rem;
}

.sh-fav--full:hover {
	border-color: var(--sh-ink);
}

/* .sh-noresults sets its own display, which would override [hidden]. */
.sh-fav-empty[hidden] {
	display: none;
}

.sh-fav-intro {
	margin: 0 0 1.2rem;
	color: var(--sh-muted);
	font-size: 0.9rem;
}

.sh-nav {
	border-bottom: 1px solid var(--sh-line);
	background: var(--sh-surface);
}

.sh-nav .sh-wrap > ul {
	display: flex;
	gap: 1.7rem;
	overflow-x: auto;
	padding: 0.75rem 0;
	margin: 0;
	list-style: none;
	scrollbar-width: thin;
}

/* Centre the items. Auto margins rather than justify-content: center, so a
   list wider than the screen still scrolls from its first item instead of
   clipping it off the left edge. */
.sh-nav .sh-wrap > ul > li:first-child { margin-left: auto; }
.sh-nav .sh-wrap > ul > li:last-child { margin-right: auto; }

.sh-nav a {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.93rem;
	white-space: nowrap;
	color: var(--sh-muted);
	text-decoration: none;
	padding-bottom: 0.15rem;
	border-bottom: 2px solid transparent;
	transition: color 0.18s, border-color 0.18s;
}

.sh-nav a:hover,
.sh-nav .current-menu-item > a,
.sh-nav .current-menu-parent > a {
	color: var(--sh-ink);
	border-bottom-color: var(--sh-accent);
}

/* --------------------------------------------------------------- 7. Footer */

.sh-footer {
	border-top: 1px solid var(--sh-line);
	background: var(--sh-surface);
	/* Clears the floating buttons, which would otherwise cover the last links. */
	padding-bottom: 5.5rem;
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* The four reasons to trust a shop you have never ordered from. */
.sh-promises {
	background: var(--sh-panel);
	border-bottom: 1px solid var(--sh-line);
	margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}

/* Out-specifies the generic `.sh-footer ul` reset below, which would strip the
   .sh-wrap gutter and its auto side margins (leaving the strip left-aligned). */
.sh-footer .sh-promises > ul {
	margin-block: 0;
	margin-inline: auto;
	padding-block: 1.8rem;
	padding-inline: var(--sh-pad);
	list-style: none;
	display: grid;
	gap: 1.6rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sh-promises .sh-wrap > li {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	color: var(--sh-muted);
	font-size: 0.84rem;
	line-height: 1.35;
}

.sh-promises .sh-wrap > li > div {
	min-width: 0;
}

/* Out-specifies the `.sh-footer ul` grid reset. */
.sh-footer .sh-promise-list {
	margin: 0.7rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
	font-size: 0.8rem;
	line-height: 1.45;
	counter-reset: sh-promise;
}

.sh-promise-list li {
	position: relative;
	padding-left: 1.15rem;
}

.sh-promise-list li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.55em;
	width: 5px;
	height: 5px;
	background: var(--sh-accent);
}

ol.sh-promise-list li::before {
	counter-increment: sh-promise;
	content: counter(sh-promise);
	left: 0;
	top: 0.1em;
	width: auto;
	height: auto;
	background: none;
	font-family: var(--sh-font-mono);
	font-size: 0.72rem;
	color: var(--sh-ink);
}

.sh-footer .sh-promise-link {
	display: inline-block;
	margin-top: 0.7rem;
	color: var(--sh-ink);
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.84rem;
}

.sh-promises svg {
	flex: none;
	width: 38px;
	height: 38px;
	padding: 8px;
	background: var(--sh-ink);
	color: var(--sh-accent);
}

.sh-promises strong {
	display: block;
	color: var(--sh-ink);
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.95rem;
}

/* Phones: brand and contact span the width, Shop and Help sit side by side. */
.sh-footer-grid {
	display: grid;
	gap: 2.2rem 1.9rem;
	grid-template-columns: 1fr 1fr;
}

.sh-footer-brand,
.sh-footer-grid > :last-child {
	grid-column: 1 / -1;
}

@media (min-width: 900px) {
	.sh-footer-brand,
	.sh-footer-grid > :last-child {
		grid-column: auto;
	}

	.sh-footer-grid {
		grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
		gap: 2.5rem;
	}
}

.sh-footer-brand p {
	max-width: 34ch;
	margin: 1rem 0 1.2rem;
	color: var(--sh-muted);
	font-size: 0.89rem;
	line-height: 1.6;
}

.sh-footer-brand .sh-logo img,
.sh-footer-brand .custom-logo {
	width: auto;
	max-height: 44px;
}

.sh-footer .sh-footer-cta {
	color: var(--sh-surface);
	font-size: 0.9rem;
	margin-bottom: 1.1rem;
}

.sh-footer .sh-footer-cta:hover {
	color: var(--sh-ink);
	text-decoration: none;
}

.sh-contact {
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.sh-contact dt {
	font-family: var(--sh-font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

.sh-contact dd {
	margin: 0;
	color: var(--sh-muted);
	font-size: 0.89rem;
}

/* Out-specifies the `.sh-footer ul` grid reset, which would stack these. */
.sh-footer .sh-colophon-links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.4rem;
}

.sh-footer .sh-colophon a {
	color: var(--sh-dim);
	font-size: inherit;
}

.sh-footer .sh-colophon a:hover {
	color: var(--sh-ink);
}

/* Studio credit: present, but quieter than anything the shopper might need. */
.sh-credit {
	opacity: 0.7;
}

.sh-footer h2,
.sh-footer h4 {
	margin: 0 0 0.7rem;
	font-family: var(--sh-font-mono);
	font-size: 0.63rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

.sh-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.42rem;
}

.sh-footer a {
	color: var(--sh-muted);
	font-size: 0.89rem;
	text-decoration: none;
}

.sh-footer a:hover {
	color: var(--sh-ink);
}

.sh-colophon {
	margin-top: 2.3rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--sh-line);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: space-between;
	font-family: var(--sh-font-mono);
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

/* ------------------------------------------ 8. WooCommerce — notices, chrome */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem;
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	border-left: 3px solid var(--sh-accent);
	list-style: none;
	font-size: 0.92rem;
}

.woocommerce-error {
	border-left-color: #C0392B;
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-inline-start: 0.75rem;
	padding: 0.35rem 0.8rem;
	font-size: 0.85rem;
}

.woocommerce-breadcrumb {
	font-size: 0.8rem;
	color: var(--sh-muted);
	padding-block: 1rem 0;
}

.woocommerce-breadcrumb a {
	color: var(--sh-muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--sh-ink);
	text-decoration: underline;
}

.woocommerce-result-count,
.woocommerce-ordering {
	font-size: 0.84rem;
	color: var(--sh-muted);
	margin: 0;
}

.woocommerce-ordering select {
	width: auto;
	font-size: 0.84rem;
	padding: 0.35rem 0.6rem;
}

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 0.5rem;
	border: 1px solid var(--sh-line);
	font-family: var(--sh-font-mono);
	font-size: 0.82rem;
	text-decoration: none;
	color: var(--sh-muted);
}

.woocommerce-pagination a:hover {
	border-color: var(--sh-ink);
	color: var(--sh-ink);
}

.woocommerce-pagination .current {
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-surface);
}

/* --------------------------------------------- 9. WooCommerce — product grid */

/* Four per row on desktop, three on tablet, two on a phone — the same rhythm as
   the homepage rows and the related-products row. An auto-fill grid fitted five
   or six at the wider container, which made the cards small and the page busy. */
ul.products {
	display: grid;
	gap: var(--sh-gap);
	grid-template-columns: repeat(2, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 700px) {
	ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1000px) {
	ul.products {
		grid-template-columns: repeat(4, 1fr);
	}
}

ul.products li.product {
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	display: flex;
	flex-direction: column;
	margin: 0;
	position: relative;
	transition: border-color 0.2s, box-shadow 0.2s;
}

ul.products li.product:hover {
	border-color: var(--sh-ink);
	box-shadow: 0 10px 26px rgba(12, 12, 12, 0.06);
}

ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

ul.products li.product img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-bottom: 1px solid var(--sh-line-soft);
	transition: transform 0.45s ease;
}

ul.products li.product:hover img {
	transform: scale(1.04);
}

/* The image must not escape its box while scaling. */
ul.products li.product .sh-shot {
	overflow: hidden;
	position: relative;
}

ul.products li.product .sh-body {
	padding: 0.95rem 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

ul.products li.product .sh-club {
	font-family: var(--sh-font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 1.02rem;
	line-height: 1.25;
	letter-spacing: -0.012em;
	padding: 0;
	/* Always two lines tall: short names keep an empty second line and long ones
	   are clipped with an ellipsis, so price and button sit level across a row.
	   Sized in em against the line-height, so it holds when the text is zoomed. */
	min-height: calc(2 * 1.25em);
}

/* The clamp sits on the link, not the heading: the template's whitespace after
   the link counts as a third line to line-clamp, which put an ellipsis on every
   name that exactly filled two lines. */
ul.products li.product .woocommerce-loop-product__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

/* theme.json underlines links globally, which is right for body copy and wrong
   for a product card — the whole card reads as the link. */
ul.products li.product .woocommerce-loop-product__title a,
.sh-nav a,
.sh-tools a,
.sh-footer a,
.sh-facet a,
.woocommerce-breadcrumb a {
	text-decoration: none;
}

ul.products li.product .woocommerce-loop-product__title a:hover,
.sh-footer a:hover,
.woocommerce-breadcrumb a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* Cart, checkout and account pages need the full column, not reading width. */
.sh-woo-page {
	max-width: none;
}

ul.products li.product .price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	color: var(--sh-ink);
	font-size: 1rem;
	font-weight: 700;
	/* The button's auto margin collapses to nothing on the tallest card, so the
	   minimum space above it lives here. */
	margin: 0 0 0.55rem;
}

ul.products li.product .price del {
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--sh-dim);
	order: 2;
}

ul.products li.product .price ins {
	text-decoration: none;
	order: 1;
}

span.onsale {
	position: absolute;
	top: 0.55rem;
	left: 0.55rem;
	z-index: 2;
	background: var(--sh-accent);
	color: var(--sh-ink);
	font-family: var(--sh-font-mono);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	padding: 0.22rem 0.48rem;
	margin: 0;
	min-height: 0;
	line-height: 1.4;
	border-radius: 0;
}

/* Size chips. Sold-out sizes stay visible and hatched rather than disappearing
   (D5) — hiding them removes URLs Google has indexed. */
.sh-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: auto;
	padding-top: 0.45rem;
}

.sh-size {
	min-width: 32px;
	text-align: center;
	border: 1px solid var(--sh-line);
	padding: 0.24rem 0.3rem;
	font-family: var(--sh-font-mono);
	font-size: 0.71rem;
	color: var(--sh-muted);
	transition: border-color 0.15s, color 0.15s;
}

.sh-size:hover {
	border-color: var(--sh-ink);
	color: var(--sh-ink);
}

.sh-size--out {
	color: var(--sh-dim);
	cursor: not-allowed;
	background: repeating-linear-gradient(
		-45deg,
		transparent 0 4px,
		var(--sh-line-soft) 4px 5px
	);
}

.sh-size--out:hover {
	border-color: var(--sh-line);
	color: var(--sh-dim);
}

/* auto rather than a fixed gap: cards in a row stretch to the tallest, and this
   pins every button to the bottom whatever sits above it (a sale price, a
   missing club line). */
ul.products li.product .button {
	margin-top: auto;
	width: 100%;
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-surface);
	font-size: 0.9rem;
	padding: 0.58rem;
}

ul.products li.product .button:hover {
	background: var(--sh-accent);
	border-color: var(--sh-accent);
	color: var(--sh-ink);
}

/* --------------------------------------------- 10. WooCommerce — filter rail */

.sh-shop {
	display: grid;
	gap: 2.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.sh-shop {
		grid-template-columns: 190px 1fr;
		gap: 2.75rem;
	}
}

.sh-rail {
	display: none;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 960px) {
	.sh-rail {
		display: flex;
	}
}

.sh-facet h2,
.sh-facet h3 {
	margin: 0 0 0.65rem;
	font-family: var(--sh-font-mono);
	font-size: 0.63rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

.sh-facet ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.42rem;
}

.sh-facet li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	color: var(--sh-muted);
	text-decoration: none;
	transition: color 0.15s;
}

.sh-facet li a:hover {
	color: var(--sh-ink);
}

/* Checkbox affordance. A real input would be more work to style consistently
   across browsers than it is worth for what is really a link. */
.sh-box {
	width: 13px;
	height: 13px;
	border: 1px solid var(--sh-line);
	background: var(--sh-surface);
	flex: none;
	transition: background 0.15s, border-color 0.15s;
}

.sh-facet li a:hover .sh-box {
	border-color: var(--sh-ink);
}

.sh-facet .current-cat > a {
	color: var(--sh-ink);
	font-weight: 700;
}

.sh-facet .current-cat > a .sh-box {
	background: var(--sh-accent);
	border-color: var(--sh-accent);
}

/* Ordering dropdown sits above the grid, right-aligned. */
.sh-results-bar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 1.1rem;
}

.sh-results-bar:empty {
	display: none;
}

/* Category intro copy — the paragraph that makes a category page rank rather
   than being a bare grid (§11.2). */
.sh-archive-intro {
	margin-inline: auto;
	margin-bottom: 2rem;
	color: var(--sh-muted);
	font-style: italic;
	text-align: center;
}

/* -------------------------------------------------------- 11. Content pages */

.sh-entry {
	max-width: 68ch;
}

.sh-entry img {
	margin-block: 1.5rem;
}

.sh-entry ul,
.sh-entry ol {
	padding-inline-start: 1.25rem;
}

.sh-entry li {
	margin-bottom: 0.4rem;
}

.sh-entry blockquote {
	margin: 1.5rem 0;
	padding-inline-start: 1.1rem;
	border-inline-start: 3px solid var(--sh-accent);
	color: var(--sh-muted);
}

.sh-entry a {
	text-underline-offset: 0.2em;
}

/* --------------------------------------------------------- 12. Accessibility */

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

.sh-skip {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.7rem 1.1rem;
	background: var(--sh-ink);
	color: var(--sh-surface);
	text-decoration: none;
}

.sh-skip:focus {
	left: 0.5rem;
	top: 0.5rem;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--sh-ink);
	outline-offset: 3px;
}

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

/* ------------------------------------------ 13. WooCommerce — single product */

.sh-product {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 880px) {
	.sh-product {
		grid-template-columns: 1fr 1fr;
		gap: 3.25rem;
	}
}

/* Positioned so the sale flash anchors here instead of the page corner. */
.sh-product-media {
	position: relative;
	background: var(--sh-panel);
	padding: clamp(1rem, 3vw, 2.25rem);
}

.sh-product-media img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply; /* white product cutouts sit on the panel cleanly */
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.flex-control-thumbs li {
	width: 68px;
}

.flex-control-thumbs img {
	border: 1px solid transparent;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.18s, border-color 0.18s;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--sh-ink);
}

.sh-product-summary {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.sh-product-summary .product_title {
	margin: 0;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.sh-product-summary .price {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
}

.sh-product-summary .price del {
	font-size: 1rem;
	font-weight: 400;
	color: var(--sh-dim);
	order: 2;
}

.sh-product-summary .price ins {
	text-decoration: none;
	order: 1;
}

.woocommerce-product-details__short-description {
	color: var(--sh-muted);
}

/* --- variation form --- */

.variations {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.variations th,
.variations td {
	display: block;
	text-align: left;
	padding: 0;
}

.variations th.label {
	font-family: var(--sh-font-mono);
	font-size: 0.63rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sh-dim);
	padding-bottom: 0.5rem;
}

.variations .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--sh-muted);
}

.sh-size-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.6rem;
}

.sh-size--pick {
	min-width: 46px;
	padding: 0.55rem 0.7rem;
	background: var(--sh-surface);
	font-family: var(--sh-font-mono);
	font-size: 0.85rem;
	color: var(--sh-ink);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sh-size--pick:hover:not(:disabled) {
	border-color: var(--sh-ink);
}

.sh-size--pick.is-selected {
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-surface);
}

.sh-size--pick:disabled {
	cursor: not-allowed;
	color: var(--sh-dim);
}

/* Kept in the DOM for assistive tech and as the no-JS fallback. */
.sh-visually-hidden-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.woocommerce-variation-price {
	margin-bottom: 0.6rem;
}

.woocommerce-variation-availability p {
	margin: 0 0 0.6rem;
	font-size: 0.88rem;
	color: var(--sh-muted);
}

form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: stretch;
	margin: 0.4rem 0 0;
}

form.cart .quantity input {
	width: 78px;
	height: 100%;
	text-align: center;
	font-family: var(--sh-font-mono);
}

form.cart .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
}

.woocommerce-variation-add-to-cart {
	display: flex;
	gap: 0.6rem;
	width: 100%;
}

.product_meta {
	font-size: 0.82rem;
	color: var(--sh-muted);
	padding-top: 0.9rem;
	border-top: 1px solid var(--sh-line);
	display: grid;
	gap: 0.3rem;
}

.product_meta > span {
	display: block;
}

.sh-order-note {
	background: var(--sh-panel);
	border-left: 3px solid var(--sh-accent);
	padding: 0.85rem 1rem;
	font-size: 0.86rem;
	color: var(--sh-muted);
}

.sh-order-note p {
	margin: 0;
}

/* --- tabs and related --- */

.woocommerce-tabs {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	list-style: none;
	margin: 0 0 1.4rem;
	padding: 0 0 0.7rem;
	border-bottom: 1px solid var(--sh-line);
}

.woocommerce-tabs ul.tabs a {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--sh-muted);
	text-decoration: none;
	padding-bottom: 0.7rem;
	border-bottom: 2px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a {
	color: var(--sh-ink);
	border-bottom-color: var(--sh-accent);
}

.woocommerce-tabs .panel > h2:first-child {
	display: none; /* the tab already names the panel */
}

.related.products,
.up-sells.products {
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.related.products > h2,
.up-sells.products > h2 {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--sh-line);
	margin-bottom: 1.5rem;
}

/* WooCommerce disables the add-to-cart button until a size is chosen, via JS
   after page load. Without this it stays fully green and looks clickable, which
   invites a shopper to click and be ignored. */
button.button:disabled,
button.button.disabled,
button.button[disabled],
.button.wc-variation-selection-needed {
	background: var(--sh-line);
	border-color: var(--sh-line);
	color: var(--sh-dim);
	cursor: not-allowed;
}

button.button:disabled:hover,
button.button.disabled:hover,
button.button[disabled]:hover,
.button.wc-variation-selection-needed:hover {
	background: var(--sh-line);
	border-color: var(--sh-line);
	color: var(--sh-dim);
}

/* ------------------------------------------------------------- 14. Homepage */

.sh-hero .sh-hero-grid {
	display: grid;
	gap: 2rem;
	align-items: center;
	grid-template-columns: 1fr;
	padding-block: clamp(2rem, 5.5vw, 3.75rem);
}

@media (min-width: 900px) {
	.sh-hero .sh-hero-grid {
		grid-template-columns: 1fr 1fr;
		gap: 3.5rem;
	}
}

.sh-hero-panel {
	position: relative;
	background: var(--sh-panel);
	display: grid;
	place-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.sh-hero-panel img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.sh-stamp {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	background: var(--sh-accent);
	color: var(--sh-ink);
	font-family: var(--sh-font-mono);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.28rem 0.6rem;
}

.sh-hero-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.15rem;
}

.sh-hero-copy h1 {
	margin: 0;
	font-size: clamp(2.15rem, 5.2vw, 3.5rem);
}

.sh-hero-copy p {
	margin: 0;
	max-width: 46ch;
	color: var(--sh-muted);
}

.sh-underline {
	width: 170px;
	height: 2px;
	background: var(--sh-accent);
}

.sh-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.sh-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.6rem;
	padding-top: 0.4rem;
}

.sh-fact {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.83rem;
	color: var(--sh-muted);
}

.sh-section--tint {
	background: var(--sh-panel);
	border-block: 1px solid var(--sh-line);
}

/* --- category tiles --- */

.sh-tiles {
	display: grid;
	gap: 1px;
	background: var(--sh-line);
	border: 1px solid var(--sh-line);
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sh-tile {
	background: var(--sh-surface);
	padding: 1.7rem 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 140px;
	text-decoration: none;
	transition: background 0.2s;
}

.sh-tile:hover {
	background: var(--sh-ground);
}

.sh-tile b {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 1.3rem;
	line-height: 1.15;
	margin-top: auto;
}

.sh-tile-count {
	font-family: var(--sh-font-mono);
	font-size: 0.64rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

/* --- ordering steps --- */

.sh-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.6rem;
	counter-reset: sh-step;
	grid-template-columns: 1fr;
}

@media (min-width: 820px) {
	.sh-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
}

.sh-steps li {
	counter-increment: sh-step;
	display: grid;
	gap: 0.35rem;
	padding-top: 2.6rem;
	position: relative;
}

.sh-steps li::before {
	content: counter(sh-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	background: var(--sh-ink);
	color: var(--sh-surface);
	font-family: var(--sh-font-mono);
	font-weight: 700;
	font-size: 0.78rem;
}

.sh-steps h3 {
	margin: 0;
	font-size: 1.05rem;
}

.sh-steps p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--sh-muted);
}

/* --- value band --- */

.sh-band {
	display: grid;
	gap: 1px;
	background: var(--sh-line);
	border: 1px solid var(--sh-line);
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sh-value {
	background: var(--sh-surface);
	padding: 1.5rem 1.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.sh-value .sh-mark {
	margin-bottom: 0.35rem;
}

.sh-value h3 {
	margin: 0;
	font-size: 1.04rem;
}

.sh-value p {
	margin: 0;
	font-size: 0.89rem;
	color: var(--sh-muted);
}

/* --------------------------------------------- 15. Cart, checkout, account */

.shop_table {
	width: 100%;
	border-collapse: collapse;
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	margin-bottom: 1.75rem;
}

.shop_table th,
.shop_table td {
	padding: 0.85rem 0.9rem;
	text-align: left;
	border-bottom: 1px solid var(--sh-line-soft);
	vertical-align: middle;
}

.shop_table thead th {
	font-family: var(--sh-font-mono);
	font-size: 0.62rem;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sh-dim);
	border-bottom: 1px solid var(--sh-line);
}

.shop_table tbody tr:last-child td {
	border-bottom: none;
}

.shop_table .product-thumbnail img {
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.shop_table .product-name a {
	font-family: var(--sh-font-display);
	font-weight: 500;
	text-decoration: none;
}

.shop_table .product-name a:hover {
	text-decoration: underline;
}

/* Variation details under the product name — the chosen size. */
.shop_table .variation {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: var(--sh-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.4rem;
}

.shop_table .variation dt,
.shop_table .variation dd {
	margin: 0;
}

.shop_table .variation dd::after {
	content: "";
}

.shop_table .product-remove a {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--sh-line);
	color: var(--sh-muted);
	text-decoration: none;
	font-size: 1rem;
	line-height: 1;
}

.shop_table .product-remove a:hover {
	border-color: #C0392B;
	color: #C0392B;
}

.shop_table td.product-price,
.shop_table td.product-subtotal,
.shop_table td.product-total {
	font-family: var(--sh-font-mono);
	font-variant-numeric: tabular-nums;
}

.cart .quantity input {
	width: 74px;
	text-align: center;
	font-family: var(--sh-font-mono);
}

/* Cart tables become unreadable on a phone. Stack each row into a card and
   label the cells from the column headers instead of scrolling sideways. */
@media (max-width: 720px) {
	.shop_table.cart thead {
		display: none;
	}

	.shop_table.cart tbody tr {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 0.3rem 0.9rem;
		padding: 0.9rem;
		border-bottom: 1px solid var(--sh-line);
	}

	.shop_table.cart tbody td {
		border: none;
		padding: 0;
	}

	.shop_table.cart td.product-thumbnail {
		grid-row: span 4;
	}

	.shop_table.cart td::before {
		content: attr(data-title) ": ";
		font-family: var(--sh-font-mono);
		font-size: 0.62rem;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--sh-dim);
		margin-inline-end: 0.4rem;
	}

	.shop_table.cart td.product-name::before,
	.shop_table.cart td.product-thumbnail::before,
	.shop_table.cart td.product-remove::before {
		content: none;
	}
}

.cart-collaterals {
	display: grid;
	gap: 1.5rem;
	margin-top: 1rem;
}

@media (min-width: 820px) {
	.cart-collaterals {
		grid-template-columns: 1fr 380px;
		align-items: start;
	}

	.cart-collaterals .cross-sells {
		grid-column: 1;
	}

	.cart-collaterals .cart_totals {
		grid-column: 2;
	}
}

.cart_totals h2 {
	font-size: 1.15rem;
	margin-bottom: 0.9rem;
}

.cart_totals .shop_table {
	margin-bottom: 1rem;
}

.cart_totals .order-total {
	font-weight: 700;
}

.wc-proceed-to-checkout {
	display: grid;
}

.wc-proceed-to-checkout .checkout-button {
	width: 100%;
}

/* Coupons are unlikely in Phase 1 but the markup ships regardless. */
.coupon {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.coupon input[type="text"] {
	max-width: 220px;
}

/* --- checkout --- */

.woocommerce-checkout .col2-set {
	display: grid;
	gap: 1.5rem;
}

.woocommerce-checkout h3 {
	font-size: 1.15rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--sh-line);
	margin-bottom: 1.1rem;
}

.woocommerce-checkout .form-row {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.woocommerce-checkout label {
	font-size: 0.85rem;
	color: var(--sh-muted);
}

.woocommerce-checkout .required {
	color: #C0392B;
	text-decoration: none;
}

#customer_details,
#order_review {
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	padding: 1.35rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: 1fr 400px;
		/* Two rows: the summary heading, then the summary itself. Billing spans
		   both. Without the explicit rows the heading is stranded at the top of a
		   row as tall as the billing form, leaving a large gap above the totals. */
		grid-template-rows: auto 1fr;
		gap: 0 2rem;
		align-items: start;
	}

	.woocommerce-checkout form.checkout > #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.woocommerce-checkout form.checkout > h3#order_review_heading {
		grid-column: 2;
		grid-row: 1;
		margin-top: 0;
	}

	.woocommerce-checkout form.checkout > #order_review {
		grid-column: 2;
		grid-row: 2;
	}
}

#payment .wc_payment_methods {
	list-style: none;
	margin: 0 0 1.1rem;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

#payment .wc_payment_method label {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 1rem;
	color: var(--sh-ink);
	cursor: pointer;
}

#payment .payment_box {
	background: var(--sh-panel);
	border-left: 3px solid var(--sh-accent);
	padding: 0.8rem 1rem;
	margin-top: 0.5rem;
	font-size: 0.88rem;
	color: var(--sh-muted);
}

#payment .payment_box p:last-child {
	margin-bottom: 0;
}

#place_order {
	width: 100%;
	font-size: 1.05rem;
	padding-block: 0.9rem;
}

.woocommerce-terms-and-conditions-wrapper {
	font-size: 0.85rem;
	color: var(--sh-muted);
	margin-bottom: 1rem;
}

/* --- empty cart --- */

.cart-empty {
	font-size: 1.1rem;
}

.return-to-shop {
	margin-top: 1.25rem;
}

/* --- order received --- */

.woocommerce-order .woocommerce-thankyou-order-received {
	font-family: var(--sh-font-display);
	font-size: 1.35rem;
	margin-bottom: 1.25rem;
}

.woocommerce-order-overview {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 1.1rem 1.25rem;
	background: var(--sh-panel);
	border: 1px solid var(--sh-line);
	display: grid;
	gap: 0.7rem;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.woocommerce-order-overview li {
	font-family: var(--sh-font-mono);
	font-size: 0.95rem;
	display: grid;
	gap: 0.2rem;
}

.woocommerce-order-overview li strong {
	font-size: 1.05rem;
}

/* Product cutouts sit on white, so a white cell makes them look like floating
   fragments. A tint gives the thumbnail an edge and reads as a tile. */
.shop_table .product-thumbnail img {
	background: var(--sh-panel);
}

/* ------------------------------------------------- 16. WhatsApp hand-off */
/* Rendered by the sportshub360-core plugin on the order-received page. The
   single most important moment in the whole Phase 1 flow, so it is given the
   weight of a hero rather than being a link under the order table. */

.sh-handoff {
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	border-top: 3px solid var(--sh-wa);
	padding: clamp(1.25rem, 4vw, 2rem);
	margin: 0 0 2rem;
	max-width: 560px;
}

.sh-handoff-title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}

.sh-handoff-copy {
	margin: 0 0 1.25rem;
	color: var(--sh-muted);
}

.sh-handoff-copy strong {
	font-family: var(--sh-font-mono);
	color: var(--sh-ink);
}

.sh-handoff-btn {
	font-size: 1.05rem;
	padding-block: 0.9rem;
}

.sh-handoff-note {
	margin: 0.85rem 0 0;
	font-size: 0.8rem;
	color: var(--sh-dim);
	text-align: center;
}

/* Header search is a real form, not a link. The bordered box is the form; the
   input inside it is borderless so the whole thing reads as one control. */
.sh-search input[type="search"] {
	flex: 1;
	border: 0;
	padding: 0;
	background: transparent;
	font: inherit;
	font-size: 0.86rem;
	color: var(--sh-ink);
	min-width: 0;
}

.sh-search input[type="search"]::placeholder {
	color: var(--sh-dim);
}

.sh-search input[type="search"]:focus {
	outline: none;
}

.sh-search:focus-within {
	border-color: var(--sh-ink);
}

/* --- empty search results --- */

.sh-noresults {
	max-width: 60ch;
	display: grid;
	gap: 1rem;
}

.sh-noresults-hint {
	color: var(--sh-muted);
	margin: 0;
}

.sh-noresults-cats ul {
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sh-noresults-cats a {
	display: inline-block;
	border: 1px solid var(--sh-line);
	padding: 0.4rem 0.85rem;
	font-size: 0.88rem;
	text-decoration: none;
	transition: border-color 0.15s;
}

.sh-noresults-cats a:hover {
	border-color: var(--sh-ink);
}

/* ------------------------------------------- 16. Homepage merchandising rows */

.sh-section--tight {
	padding-block: clamp(1.25rem, 3vw, 2rem);
}

/* Scroll-snap rows. A native swipe on a phone, arrow-key and scrollbar friendly
   on desktop, and no carousel library — which keeps the page fast on the mobile
   data this store is actually browsed over. */
.sh-rowwrap {
	position: relative;
}

.products.sh-row {
	display: flex;
	gap: var(--sh-gap);
	grid-template-columns: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Scrollbar hidden: the row is driven by the arrows, and a visible bar under
	   a merchandising row reads as a rendering artefact. Swipe and trackpad still
	   work, and the track is keyboard focusable. */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.products.sh-row::-webkit-scrollbar {
	display: none;
}

/* Exactly four cards per view on desktop, two on a phone. The calc accounts for
   the gaps so the fourth card ends flush with the container. */
.products.sh-row li.product {
	flex: 0 0 calc((100% - var(--sh-gap)) / 2);
	scroll-snap-align: start;
}

@media (min-width: 700px) {
	.products.sh-row li.product {
		flex-basis: calc((100% - 2 * var(--sh-gap)) / 3);
	}
}

@media (min-width: 1000px) {
	.products.sh-row li.product {
		flex-basis: calc((100% - 3 * var(--sh-gap)) / 4);
	}
}

/* Compact cards carry no size chips, so give the body a little more room and
   let the photo dominate. */
.products.sh-row li.product .sh-body {
	gap: 0.35rem;
}

.products.sh-row li.product .price {
	margin-bottom: 0.7rem;
}

/* Row arrows sit just outside the cards, matching the hero controls. */
.sh-row-nav {
	top: 38%;
}

.sh-row-nav.sh-hero-nav--prev { left: -14px; }
.sh-row-nav.sh-hero-nav--next { right: -14px; }

@media (max-width: 720px) {
	.sh-row-nav { display: none; }
}

/* --- picture tiles --- */

.sh-picture-tiles {
	display: grid;
	gap: 1px;
	background: var(--sh-line);
	border: 1px solid var(--sh-line);
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sh-picture-tile {
	background: var(--sh-surface);
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.85rem 1rem;
	text-decoration: none;
	transition: background 0.18s;
}

.sh-picture-tile:hover {
	background: var(--sh-ground);
}

.sh-picture-tile-media {
	flex: none;
	width: 56px;
	height: 56px;
	background: var(--sh-panel);
	overflow: hidden;
	display: grid;
	place-items: center;
}

.sh-picture-tile-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A league logo is artwork: shown whole, never cropped like a jersey photo. */
.sh-picture-tile-media--badge img {
	object-fit: contain;
}

.sh-picture-tile-text {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
	align-content: center;
}

.sh-picture-tile-text b {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2;
}

/* --- club rail --- */

.sh-club-rail {
	display: flex;
	gap: 0.9rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 0.25rem;
}

.sh-club-rail::-webkit-scrollbar {
	display: none;
}

/* Tiles are short, so centre the arrows on them rather than using the product
   rows' 38% (which aims at the middle of a jersey photo). */
.sh-row-nav.sh-club-nav {
	top: calc(50% - 0.6rem);
}

.sh-club-tile {
	flex: 0 0 130px;
	scroll-snap-align: start;
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	padding: 0.9rem;
	display: grid;
	justify-items: center;
	gap: 0.35rem;
	text-decoration: none;
	text-align: center;
	transition: border-color 0.18s, box-shadow 0.18s;
}

.sh-club-tile:hover {
	border-color: var(--sh-ink);
	box-shadow: 0 8px 20px rgba(12, 12, 12, 0.06);
}

.sh-club-tile-media {
	width: 78px;
	height: 78px;
	background: var(--sh-panel);
	overflow: hidden;
	display: grid;
	place-items: center;
}

.sh-club-tile-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A crest is artwork, not a photo: no panel behind it, and never cropped. */
.sh-club-tile-media--badge {
	background: none;
}

.sh-club-tile-media--badge img {
	object-fit: contain;
}

.sh-club-tile b {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.88rem;
	line-height: 1.2;
}

/* --- fan vs player --- */

.sh-compare {
	display: grid;
	gap: 1px;
	background: var(--sh-line);
	border: 1px solid var(--sh-line);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sh-compare-card {
	background: var(--sh-surface);
	padding: 1.5rem 1.35rem;
	display: grid;
	gap: 0.4rem;
	align-content: start;
}

.sh-compare-card h3 {
	margin: 0;
	font-size: 1.08rem;
}

.sh-compare-card p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--sh-muted);
}

.sh-compare-card--ask {
	background: var(--sh-panel);
	border-left: 3px solid var(--sh-wa);
}

/* ------------------------------------------------- 17. Search suggestions */

/* The panel is positioned against the form, so it lines up with the bordered
   box the shopper is typing into rather than the header. */
.sh-search,
.sh-searchform {
	position: relative;
}

.sh-suggest {
	position: absolute;
	top: calc(100% + 6px);
	/* -1px on each side so the panel's border sits over the form's outer edge
	   instead of 1px inside it. */
	inset-inline: -1px;
	z-index: 30;
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	box-shadow: 0 14px 34px rgba(12, 12, 12, 0.11);
	/* Tall enough for the six suggestions the endpoint returns, but never taller
	   than the screen on a phone — and the page behind it stays put when the list
	   is scrolled to its end. */
	max-height: min(70vh, 30rem);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.sh-suggest-head {
	margin: 0;
	padding: 0.7rem 0.9rem 0.45rem;
	font-family: var(--sh-font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

.sh-suggest-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.9rem;
	text-decoration: none;
	color: var(--sh-ink);
}

/* Hover and keyboard highlight are the same state — the shopper should not have
   to work out which of two rows is the one Enter will open. */
.sh-suggest-item:hover,
.sh-suggest-item.is-active {
	background: var(--sh-panel);
}

/* The panel already outlines the highlighted row; the global focus ring would
   sit half outside the scroll container. */
.sh-suggest-item:focus-visible {
	outline: none;
	background: var(--sh-panel);
}

.sh-suggest-media {
	flex: none;
	width: 48px;
	height: 48px;
	background: var(--sh-panel);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.sh-suggest-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sh-suggest-text {
	display: grid;
	gap: 0.1rem;
	min-width: 0;
}

/* Two lines, then an ellipsis: jersey names run long ("Real Madrid Away Player
   Version Jersey 2026/27") and a wrapping title would push the rest off screen. */
.sh-suggest-title {
	font-size: 0.84rem;
	line-height: 1.3;
	color: var(--sh-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.sh-suggest-price {
	font-family: var(--sh-font-mono);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--sh-ink);
}

.sh-suggest-empty {
	margin: 0;
	padding: 0.9rem;
	font-size: 0.86rem;
	color: var(--sh-muted);
}

/* Sticky so the way out of the panel is always in reach, however far the list
   has been scrolled. */
.sh-suggest-all {
	position: sticky;
	bottom: 0;
	display: block;
	padding: 0.65rem 0.9rem;
	background: var(--sh-surface);
	border-top: 1px solid var(--sh-line);
	font-family: var(--sh-font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--sh-muted);
	text-decoration: none;
}

.sh-suggest-all:hover {
	background: var(--sh-panel);
	color: var(--sh-ink);
}

/* ------------------------------------------------- 17. Dark sections & social */

/* A dark band breaks up a long light page and gives the green somewhere it can
   act as type rather than only as a fill (D22). */
.sh-section--dark {
	background: var(--sh-ink);
	color: #F2F5F1;
	border-block: 1px solid var(--sh-ink);
}

.sh-section--dark h2,
.sh-section--dark h3,
.sh-section--dark b {
	color: #FFFFFF;
}

.sh-section--dark .sh-head {
	border-bottom-color: rgba(255, 255, 255, 0.14);
}

.sh-section--dark .sh-kicker,
.sh-section--dark p {
	color: #9BA398;
}

.sh-section--dark .sh-head a {
	color: var(--sh-accent);
	border-bottom-color: transparent;
}

.sh-section--dark .sh-head a:hover {
	border-bottom-color: var(--sh-accent);
}

/* Tiles and bands invert their surfaces so the hairline grid still reads. */
.sh-section--dark .sh-picture-tiles,
.sh-section--dark .sh-band,
.sh-section--dark .sh-compare {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.12);
}

.sh-section--dark .sh-picture-tile,
.sh-section--dark .sh-value,
.sh-section--dark .sh-compare-card {
	background: var(--sh-ink);
}

.sh-section--dark .sh-picture-tile:hover {
	background: #161816;
}

.sh-section--dark .sh-picture-tile-media {
	background: rgba(255, 255, 255, 0.08);
}

.sh-section--dark .sh-tile-count {
	color: #7E877C;
}

.sh-section--dark .sh-compare-card--ask {
	background: rgba(37, 211, 102, 0.08);
}

/* --- social icons --- */

.sh-social {
	display: flex;
	gap: 0.55rem;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 0.2rem;
}

.sh-social a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--sh-line);
	color: var(--sh-muted);
	transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.sh-social a:hover {
	border-color: var(--sh-ink);
	color: var(--sh-ink);
}

.sh-social svg {
	width: 17px;
	height: 17px;
}

.sh-section--dark .sh-social a,
.sh-footer--dark .sh-social a {
	border-color: rgba(255, 255, 255, 0.18);
	color: #C9CFC6;
}

.sh-section--dark .sh-social a:hover,
.sh-footer--dark .sh-social a:hover {
	border-color: var(--sh-accent);
	color: var(--sh-accent);
}

/* --- hero carousel --- */

.sh-hero-carousel {
	position: relative;
}

/* overflow-x: auto forces overflow-y to auto as well, so anything taller than
   the frame would become a vertical scroll inside the hero. Clip it instead. */
.sh-hero-track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	background: var(--sh-panel);
	aspect-ratio: 1 / 1;
}

.sh-hero-track::-webkit-scrollbar {
	display: none;
}

.sh-hero-slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 3vw, 2.25rem);
	position: relative;
}

.sh-hero-slide img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.sh-hero-caption {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	right: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.7rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	padding: 0.55rem 0.8rem;
	text-decoration: none;
}

.sh-hero-caption b {
	font-family: var(--sh-font-display);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--sh-ink);
}

.sh-hero-caption .price {
	font-size: 0.9rem;
	font-weight: 700;
}

.sh-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--sh-line);
	color: var(--sh-ink);
	cursor: pointer;
	transition: background 0.18s, border-color 0.18s;
	z-index: 3;
}

.sh-hero-nav:hover {
	background: #fff;
	border-color: var(--sh-ink);
}

.sh-hero-nav[hidden] {
	display: none;
}

.sh-hero-nav--prev { left: 0.6rem; }
.sh-hero-nav--next { right: 0.6rem; }

.sh-hero-dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.sh-hero-dot {
	width: 28px;
	height: 3px;
	background: var(--sh-line);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s;
}

.sh-hero-dot.is-active {
	background: var(--sh-ink);
}

/* Related products and upsells: four per row, matching the homepage rows.
   The default auto-fill grid would fit five or six at 1560px, which makes the
   cards small and the row read as a dump rather than a suggestion. */
.related.products ul.products,
.up-sells.products ul.products {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
	.related.products ul.products,
	.up-sells.products ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1000px) {
	.related.products ul.products,
	.up-sells.products ul.products {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* --- hero: merchant photo slides --- */

/* Lifestyle photography needs the opposite treatment to a product cutout: it
   fills the frame instead of floating on a panel, and must not be multiplied
   against the background. A wider ratio also suits people over folded shirts. */
.sh-hero-carousel--photo .sh-hero-track {
	aspect-ratio: 4 / 3;
	background: var(--sh-ink);
}

.sh-hero-carousel--photo .sh-hero-slide {
	padding: 0;
}

/* Pinned to the slide rather than sized as a grid item: height: 100% does not
   resolve inside an auto-sized grid row, so the photo grew to its own
   proportions and spilled below the frame. */
.sh-hero-carousel--photo .sh-hero-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	mix-blend-mode: normal;
}

/* Over a photograph the caption needs its own contrast, not a translucent panel
   that happens to work on a light background. */
.sh-hero-carousel--photo .sh-hero-caption {
	left: 0;
	right: 0;
	bottom: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	padding: 2.5rem 1.1rem 1rem;
	background: linear-gradient( to top, rgba(12, 12, 12, 0.85), rgba(12, 12, 12, 0) );
	backdrop-filter: none;
}

.sh-hero-carousel--photo .sh-hero-caption b {
	color: #FFFFFF;
	font-size: 1.15rem;
}

.sh-hero-sub {
	color: #D6DBD3;
	font-size: 0.86rem;
}

/* League badges are logos, not photographs: they must sit whole inside the tile
   rather than being cropped to fill it, and transparent ones need a light plate
   to read against the dark band. */
.sh-picture-tile-media {
	background: var(--sh-surface);
	padding: 6px;
}

.sh-picture-tile-media img {
	object-fit: contain;
}

.sh-section--dark .sh-picture-tile-media {
	background: var(--sh-surface);
}

/* --- jersey badges on the product page (SH360_Badges) --- */

.sh-badges {
	/* A full row of its own in the wrapping form.cart flexbox. */
	flex: 0 0 100%;
	margin: 0.5rem 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.sh-badges legend {
	padding: 0 0 0.5rem;
	font-family: var(--sh-font-mono);
	font-size: 0.63rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sh-dim);
}

.sh-badge-option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	padding: 0.35rem 0.7rem;
	background: var(--sh-surface);
	border: 1px solid var(--sh-line);
	cursor: pointer;
}

.sh-badge-option + .sh-badge-option {
	margin-top: 0.4rem;
}

.sh-badge-option:has(input:checked) {
	border-color: var(--sh-ink);
}

.sh-badge-option input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--sh-ink);
}

.sh-badge-mark {
	flex: none;
	width: 56px;
	height: 40px;
	object-fit: contain;
}

.sh-badge-name {
	flex: 1;
	min-width: 0;
	font-size: 0.9rem;
}

.sh-badge-fee {
	flex: none;
	font-family: var(--sh-font-mono);
	font-size: 0.8rem;
	color: var(--sh-muted);
}

.sh-badges-total {
	margin: 0.6rem 0 0;
	font-size: 0.9rem;
}

/* --- floating call and WhatsApp buttons --- */

.sh-float {
	position: fixed;
	/* Over page content, under the search suggestions. */
	z-index: 25;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.sh-float--call {
	left: 1rem;
}

.sh-float--whatsapp {
	right: 1rem;
}

.sh-float svg {
	box-sizing: content-box;
	flex: none;
	width: 28px;
	height: 28px;
	padding: 14px;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(12, 12, 12, 0.24);
}

.sh-float--call svg {
	background: var(--sh-ink);
	color: var(--sh-surface);
}

.sh-float--whatsapp svg {
	background: var(--sh-wa);
	color: var(--sh-wa-ink);
}

/* Labels are for laptops: a phone has neither the room nor a use for them. */
.sh-float-label {
	display: none;
	padding: 0.55rem 0.8rem;
	background: var(--sh-panel);
	color: var(--sh-ink);
	font-size: 0.85rem;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(12, 12, 12, 0.1);
}

@media (hover: hover) and (min-width: 900px) {
	.sh-float--whatsapp .sh-float-label {
		display: block;
	}

	/* A laptop often has no dialer, so the number itself is the useful part. */
	.sh-float--call:hover .sh-float-label,
	.sh-float--call:focus-visible .sh-float-label {
		display: block;
	}
}

@media print {
	.sh-float {
		display: none;
	}
}
