/* ==========================================================================
   SHOES HUB — MAIN STYLESHEET
   --------------------------------------------------------------------------
   RULES FOR THIS FILE
   - No raw hex colours, font-family names or one-off sizes.
     Use tokens from assets/css/tokens.css for anything brand-related.
   - Mobile-first. Base rules target 360px. Enhance only with min-width.
   - No @import, no frameworks, no build step.

   SECTIONS
    01 Reset & base          06 Header
    02 Typography            07 Mobile drawer
    03 Layout helpers        08 Footer
    04 Buttons               09 Components
    05 Forms                 10 WordPress core / utilities
   ========================================================================== */

/* ==========================================================================
   01 RESET & BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100dvh;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--font-weight-normal);
	line-height: var(--leading-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.drawer-open {
	overflow: hidden;
}

img,
svg,
video,
canvas,
iframe {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	margin: 0;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	text-align: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin-block: var(--space-6);
}

::selection {
	background: var(--color-primary);
	color: var(--color-on-primary);
}

:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
	border-radius: var(--radius-xs);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.skip-link {
	position: absolute;
	left: var(--space-2);
	top: -100px;
	z-index: var(--z-skip);
	padding: var(--space-2) var(--space-4);
	background: var(--color-secondary);
	color: var(--color-on-secondary);
	border-radius: var(--radius-sm);
	transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
	top: var(--space-2);
}

/* ==========================================================================
   02 TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--space-3);
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

h1 {
	font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
}

h2 {
	font-size: clamp(var(--text-xl), 4.5vw, var(--text-3xl));
}

h3 {
	font-size: var(--text-lg);
}

h4 {
	font-size: var(--text-md);
}

h5,
h6 {
	font-size: var(--text-base);
}

p {
	margin: 0 0 var(--space-3);
}

p:last-child {
	margin-bottom: 0;
}

strong,
b {
	font-weight: var(--font-weight-semibold);
}

small {
	font-size: var(--text-sm);
}

.entry-content a:not(.btn) {
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

.entry-content a:not(.btn):hover {
	color: var(--color-accent-text);
}

.eyebrow {
	display: block;
	margin-bottom: var(--space-2);
	color: var(--color-accent-text);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

.text-muted {
	color: var(--color-text-muted);
}

/* ==========================================================================
   03 LAYOUT HELPERS
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.site-main {
	display: block;
	padding-block: var(--space-6) var(--space-8);
}

.site-main--home {
	padding-block: 0;
}

.section {
	padding-block: var(--space-7);
}

@media (min-width: 768px) {
	.section {
		padding-block: var(--space-8);
	}
}

.section--soft {
	background: var(--color-bg-soft);
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2);
	margin-bottom: var(--space-4);
}

.section__head h2 {
	margin: 0;
}

.section__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	color: var(--color-accent-text);
}

.section__link:hover {
	color: var(--color-accent-text-hover);
}

.page-header {
	margin-bottom: var(--space-5);
}

.page-header:empty {
	display: none;
}

/* ==========================================================================
   04 BUTTONS
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: 0 var(--space-5);
	border: 1px solid transparent;
	border-radius: var(--radius-btn);
	background: transparent;
	color: var(--color-text);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	line-height: 1;
	letter-spacing: 0.01em;
	text-align: center;
	transition: background-color var(--dur) var(--ease),
		color var(--dur) var(--ease), border-color var(--dur) var(--ease),
		transform var(--dur-fast) var(--ease);
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background: var(--color-primary);
	color: var(--color-on-primary);
}

.btn--primary:hover {
	background: var(--color-primary-hover);
}

.btn--secondary {
	background: var(--color-secondary);
	color: var(--color-on-secondary);
}

.btn--secondary:hover {
	background: var(--color-secondary-hover);
}

.btn--ghost {
	border-color: var(--color-border-strong);
	background: transparent;
	color: var(--color-text);
}

.btn--ghost:hover {
	border-color: var(--color-text);
}

.btn--sm {
	min-height: var(--tap);
	padding-inline: var(--space-4);
}

.btn--block {
	width: 100%;
}

.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.btn .icon {
	width: 1.1em;
	height: 1.1em;
}

/* ==========================================================================
   05 FORMS
   ========================================================================== */

.field {
	display: grid;
	gap: var(--space-1);
	margin-bottom: var(--space-4);
}

.field label,
.form-row label {
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	/* 16px minimum stops iOS from zooming on focus. */
	font-size: var(--text-base);
	line-height: var(--leading-snug);
	transition: border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--color-text);
	outline: none;
	box-shadow: 0 0 0 3px var(--color-border);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
	border-color: var(--color-error);
}

.field__hint {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.field__error {
	color: var(--color-error);
	font-size: var(--text-sm);
}

.search-form {
	display: flex;
	gap: var(--space-2);
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.search-form input[type="search"] {
	height: 48px;
}

.search-form .btn {
	flex: none;
	padding-inline: var(--space-4);
}

.search-form .btn .icon {
	width: 20px;
	height: 20px;
}

/* ==========================================================================
   06 HEADER
   --------------------------------------------------------------------------
   One row at every size: brand | nav | actions.
   Mobile: menu button, logo, icon actions. Nav is inside the drawer.
   Desktop: wordmark hard left, nav centred, search pill + icons hard right.
   The row is full-bleed; only the page content stays inside .container.
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	padding-top: env(safe-area-inset-top);
	transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-condensed {
	box-shadow: var(--shadow-1);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "brand actions";
	align-items: center;
	gap: var(--space-2);
	/* Full-bleed: the header runs edge to edge, content keeps the gutters. */
	padding-inline: var(--gutter);
	min-height: var(--header-h);
}

.site-branding {
	grid-area: brand;
	justify-self: start;
	min-width: 0;
}

.header-actions {
	grid-area: actions;
	justify-self: end;
}

.primary-nav {
	grid-area: nav;
}

/* ------ Branding --------------------------------------------------------- */

.custom-logo-link,
.site-logo--image {
	display: block;
}

/* The image variant is a flex box, not an inline-block on a text baseline:
   that is what keeps the wordmark optically centred with the icons. */
.site-logo.site-logo--image {
	display: flex;
	align-items: center;
	line-height: 0;
}

.custom-logo,
.site-logo--image img {
	width: auto;
	height: var(--logo-h);
	max-width: none;
}

@media (min-width: 400px) {
	.custom-logo,
	.site-logo--image img {
		height: var(--logo-h-md);
	}
}

@media (min-width: 768px) {
	.custom-logo,
	.site-logo--image img {
		height: var(--logo-h-lg);
	}
}

.site-logo {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-tight);
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.site-logo span {
	color: var(--color-accent-text);
}

/* ------ Icon actions ----------------------------------------------------- */

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-1);
}

.header-action {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--tap);
	height: var(--tap);
	border-radius: var(--radius-pill);
	color: var(--color-text);
	transition: background-color var(--dur) var(--ease);
}

.header-action:hover {
	background: var(--color-bg-soft);
}

.header-action .icon {
	width: 22px;
	height: 22px;
}

/* Account is a desktop affordance; the drawer covers mobile. */
.header-action--account {
	display: none;
}

.header-action__count {
	position: absolute;
	top: 4px;
	right: 6px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-on-primary);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	/* A ring in the page colour lifts the badge off the icon. */
	box-shadow: 0 0 0 2px var(--color-bg);
}

.header-action__count.is-empty {
	display: none;
}

/* ------ Search ----------------------------------------------------------- */

/*
 * Mobile: the form drops out of the row as a full-width bar under the header.
 * .site-header is position:sticky, so it is the containing block.
 */
.header-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	padding: var(--space-3) var(--gutter);
	background: var(--color-bg);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	box-shadow: var(--shadow-1);
}

.site-header.is-search-open .header-search {
	display: block;
}

/* One pill look at every size: soft fill, icon left, no visible border. */
.header-search .search-form {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: var(--space-1) var(--space-2);
	/* Same corner as .btn, so the field matches the hero CTA, not a pill. */
	border-radius: var(--radius-btn);
	background: var(--color-bg-soft);
}

.header-search .search-form:focus-within {
	box-shadow: 0 0 0 2px var(--color-focus);
}

.header-search .search-form input[type="search"] {
	height: 40px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.header-search .search-form input[type="search"]:focus {
	border: 0;
	box-shadow: none;
}

.header-search .search-form input::placeholder {
	color: var(--color-text-subtle);
	opacity: 1;
}

/* The magnifier doubles as the submit button and sits at the start. */
.header-search .search-form .btn {
	order: -1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-btn);
	background: transparent;
	color: var(--color-text-subtle);
}

.header-search .search-form .btn:hover {
	background: transparent;
	color: var(--color-text);
}

.header-search .search-form .btn .icon {
	width: 18px;
	height: 18px;
}

/* ------ Nav panel content (desktop mega panel + drawer accordion) -------- */

/* Closed by default; the desktop media query and the drawer both opt in. */
.nav-panel {
	display: none;
}

.nav-col__title {
	margin: 0 0 var(--space-2);
	color: var(--color-text-subtle);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

.nav-col__list {
	display: grid;
	gap: 2px;
}

.nav-col__list a {
	display: inline-block;
	padding-block: 6px;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	letter-spacing: var(--tracking-caps);
	line-height: var(--leading-snug);
	text-transform: uppercase;
	transition: color var(--dur) var(--ease);
}

.nav-col__list a:hover {
	color: var(--color-accent-text);
}

/* Sneakers children, indented under their parent. */
.nav-sub {
	display: grid;
	gap: 0;
	margin: 0 0 var(--space-2) var(--space-2);
	padding-left: var(--space-3);
	border-left: 1px solid var(--color-border);
}

.nav-sub a {
	padding-block: 4px;
	font-size: var(--text-sm);
	color: var(--color-text-subtle);
}

/* ------ Primary navigation ---------------------------------------------- */

/* Mobile uses the drawer, so the inline nav is desktop-only. */
.primary-nav {
	display: none;
}

@media (min-width: 1024px) {
	.header-action--search {
		display: none;
	}

	.header-action--account {
		display: inline-grid;
	}

	.site-header__inner {
		min-height: var(--header-h-desktop);
	}

	.custom-logo,
	.site-logo--image img {
		height: var(--logo-h-desktop);
	}

	/* Search pill sits inline in the actions cluster. */
	.header-search {
		position: static;
		display: block;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: none;
	}

	.header-search .search-form {
		width: 160px;
		min-height: 42px;
		padding-block: 2px;
	}

	.header-search .search-form input[type="search"] {
		height: 36px;
	}

	.header-search .search-form .btn {
		width: 32px;
		height: 32px;
	}

}

/*
 * The inline nav appears a little later than the rest of the desktop header.
 * At 1024–1079 the action cluster plus the longest sensible menu fits badly;
 * the drawer is the safer layout there. Do not add overflow to the nav — it
 * would clip the dropdowns.
 */
@media (min-width: 1080px) {
	.header-action--menu {
		display: none;
	}

	.site-header__inner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "brand nav actions";
	}

	.primary-nav {
		display: block;
		justify-self: center;
	}

	.primary-nav .nav-menu {
		display: flex;
		align-items: center;
		gap: 0;
	}

	.primary-nav .nav-item {
		display: flex;
		align-items: center;
	}

	.primary-nav .nav-link,
	.primary-nav .nav-toggle {
		display: inline-flex;
		align-items: center;
		min-height: var(--tap);
		border-radius: var(--radius-sm);
		color: var(--color-text);
		font-size: var(--text-sm);
		font-weight: var(--font-weight-bold);
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
		white-space: nowrap;
		transition: color var(--dur) var(--ease);
	}

	.primary-nav .nav-link {
		padding-inline: var(--space-2);
	}

	.primary-nav .nav-link--toggle {
		gap: var(--space-2);
	}

	.primary-nav .nav-toggle {
		width: 26px;
		justify-content: center;
		margin-left: -6px;
		color: var(--color-text-subtle);
	}

	.primary-nav .nav-toggle .icon {
		width: 16px;
		height: 16px;
	}

	.primary-nav .nav-link:hover,
	.primary-nav .nav-toggle:hover,
	.primary-nav .is-current > .nav-link {
		color: var(--color-accent-text);
	}

	.primary-nav .nav-toggle .icon,
	.primary-nav .nav-link__chevron {
		transition: transform var(--dur-fast) var(--ease);
	}

	.primary-nav .is-open > .nav-toggle .icon,
	.primary-nav .is-open > .nav-link .nav-link__chevron {
		transform: rotate(180deg);
	}

	/* Mega panel: absolute to .site-header, so it is always full width and
	   sits directly under the header row. */
	.nav-panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 5;
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-4px);
		background: var(--color-bg);
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-2);
		transition: opacity var(--dur-fast) var(--ease),
			transform var(--dur-fast) var(--ease),
			visibility var(--dur-fast) var(--ease);
	}

	.nav-item.is-open > .nav-panel {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.nav-panel__inner {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-6);
		width: 100%;
		max-width: var(--nav-panel);
		margin-inline: auto;
		padding: var(--space-5) var(--gutter) var(--space-6);
	}

	/* Brands: wider panel, one full-width row flowing into six short columns. */
	.nav-panel--brands .nav-panel__inner {
		max-width: var(--nav-panel-wide);
	}

	.nav-col--wide {
		grid-column: 1 / -1;
	}

	.nav-col--wide .nav-col__list {
		display: block;
		/* 5 columns below 1440 so long names (Polo Ralph Lauren) never wrap. */
		column-count: 5;
		column-gap: var(--space-5);
	}

	.nav-col--wide .nav-col__list li {
		margin-bottom: 2px;
	}

	.nav-col__list li {
		break-inside: avoid;
	}
}

@media (min-width: 1280px) {
	.header-search .search-form {
		width: var(--search-w-wide);
	}

	.primary-nav .nav-link {
		padding-inline: var(--space-3);
	}
}

/*
 * True page-centring: equal side columns put the nav's centre on the viewport's
 * centre. Only safe when the action cluster is narrower than a side column, so
 * it waits until the header is wide.
 */
@media (min-width: 1440px) {
	.site-header__inner {
		grid-template-columns: 1fr auto 1fr;
	}

	.nav-col--wide .nav-col__list {
		column-count: 6;
	}
}

/* ==========================================================================
   07 MOBILE DRAWER
   ========================================================================== */

.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-overlay);
	background: var(--color-overlay);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur) var(--ease),
		visibility var(--dur) var(--ease);
}

.drawer-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.mobile-drawer {
	position: fixed;
	inset-block: 0;
	right: 0;
	z-index: var(--z-drawer);
	display: flex;
	flex-direction: column;
	width: min(88vw, 360px);
	max-width: 100%;
	padding: var(--space-3) var(--space-4)
		calc(var(--space-4) + env(safe-area-inset-bottom));
	background: var(--color-bg);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--dur-slow) var(--ease),
		visibility var(--dur-slow) var(--ease);
}

.mobile-drawer.is-open {
	transform: none;
	visibility: visible;
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--color-border);
}

.drawer__head .site-logo {
	font-size: var(--text-base);
}

.drawer__nav {
	padding-block: var(--space-3);
}

.nav-menu--drawer .nav-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--color-border);
}

.nav-menu--drawer .nav-link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: 52px;
	color: var(--color-text);
	font-size: var(--text-base);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.nav-menu--drawer .nav-link--toggle {
	gap: var(--space-2);
}

.nav-menu--drawer .nav-toggle {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	color: var(--color-text-subtle);
	order: -1;
}

.nav-menu--drawer .nav-toggle .icon,
.nav-menu--drawer .nav-link__chevron {
	width: 18px;
	height: 18px;
	transition: transform var(--dur-fast) var(--ease);
}

.nav-menu--drawer .nav-item.is-open .nav-toggle .icon,
.nav-menu--drawer .nav-item.is-open .nav-link .nav-link__chevron {
	transform: rotate(180deg);
}

/*
 * Every drawer label starts at the same x: the chevron owns a 44px slot on the
 * left. Items without a panel get the same slot as empty space.
 */
.nav-menu--drawer .nav-item:not(.has-panel) > .nav-link {
	padding-left: var(--tap);
}

/* The brands label is itself the toggle, so its chevron sits in that slot. */
.nav-menu--drawer .nav-link--toggle {
	position: relative;
	padding-left: var(--tap);
}

.nav-menu--drawer .nav-link--toggle .nav-link__chevron {
	position: absolute;
	/* Same optical slot as the centred chevron in .nav-toggle (44 - 18) / 2. */
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
}

.nav-menu--drawer .nav-item.is-open .nav-link--toggle .nav-link__chevron {
	transform: translateY(-50%) rotate(180deg);
}

.nav-menu--drawer .is-current > .nav-link {
	color: var(--color-accent-text);
}

.nav-menu--drawer .nav-panel {
	display: none;
	flex: 0 0 100%;
	width: 100%;
}

.nav-menu--drawer .nav-item.is-open > .nav-panel {
	display: block;
}

.nav-menu--drawer .nav-panel__inner {
	display: grid;
	gap: var(--space-4);
	padding: var(--space-2) 0 var(--space-4) var(--space-3);
}

.nav-menu--drawer .nav-col__list {
	column-count: 1;
}

.nav-menu--drawer .nav-col__list a {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	font-size: var(--text-base);
	color: var(--color-text-muted);
}

.nav-menu--drawer .nav-sub a {
	min-height: var(--tap);
	font-size: var(--text-md);
}

.nav-menu--drawer .nav-sub {
	margin-bottom: var(--space-2);
}

.drawer__footer {
	display: grid;
	gap: var(--space-2);
	margin-top: auto;
	padding-top: var(--space-4);
}

.drawer__footer .btn {
	width: 100%;
}

/*
 * Account CTA: brand yellow fill with white text, as requested. Note this is
 * ~2.1:1 against white — below WCAG AA for body text. Swap the colour back to
 * var(--color-on-primary) for a compliant dark-on-yellow button.
 */
.drawer__footer .btn--primary {
	color: var(--color-bg);
}

@media (min-width: 1024px) {
	.mobile-drawer,
	.drawer-overlay {
		display: none;
	}
}

/* ==========================================================================
   08 FOOTER
   ========================================================================== */

/*
 * Two surfaces: a light trust band on the page background, then the navy
 * footer. Links follow the header's voice — bold, uppercase, letter-spaced.
 */

.site-footer {
	margin-top: var(--space-8);
	color: var(--color-on-secondary);
}

/* Full-bleed like the header: content spans the viewport, gutters only. */
.site-footer .container {
	max-width: none;
}

.site-footer a {
	color: inherit;
	transition: opacity var(--dur) var(--ease);
}

.site-footer a:hover {
	opacity: 0.7;
}

/* The global blue focus ring is invisible on navy. */
.site-footer :focus-visible {
	outline-color: var(--color-on-secondary);
}

.site-footer__main {
	padding-block: var(--space-6) var(--space-6);
	background: var(--color-secondary);
}

/* ------ Trust row (light band) ------------------------------------------ */

.trust-row {
	padding-block: var(--space-4);
	background: var(--color-bg-soft);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
}

.trust-row__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3) var(--space-4);
}

.trust-item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-caps);
	line-height: var(--leading-snug);
	text-transform: uppercase;
}

.trust-item .icon {
	width: 20px;
	height: 20px;
	color: var(--color-accent-text);
}

@media (min-width: 768px) {
	.trust-row__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-5);
	}
}

/* ------ Help banner ------------------------------------------------------ */

.footer-help {
	padding-bottom: var(--space-5);
	border-bottom: 1px solid
		color-mix(in srgb, var(--color-on-secondary) 18%, transparent);
}

.footer-help__inner {
	display: grid;
	gap: var(--space-4);
	max-width: 960px;
	margin-inline: auto;
}

.footer-help__title {
	margin: 0 0 var(--space-1);
	color: inherit;
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-tight);
}

.footer-help p {
	max-width: 52ch;
	margin: 0;
	font-size: var(--text-sm);
	opacity: 0.8;
}

.footer-help__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-3);
	width: 100%;
}

.footer-help__cta {
	width: 100%;
	max-width: 340px;
	color: var(--color-on-primary);
}

.footer-help__cta .icon {
	width: 18px;
	height: 18px;
}

.footer-help__phone {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.footer-help {
		padding-bottom: var(--space-6);
	}

	.footer-help__inner {
		grid-template-columns: minmax(0, 430px) auto;
		justify-content: center;
		align-items: center;
		gap: var(--space-6);
		width: fit-content;
		max-width: 100%;
	}

	.footer-help__cta {
		width: auto;
	}

	.footer-help__actions {
		justify-content: flex-end;
		flex-wrap: nowrap;
		width: auto;
	}
}

/* ------ Columns ---------------------------------------------------------- */

.site-footer__grid {
	display: grid;
	gap: 0;
	padding-top: var(--space-5);
}

.footer-brand {
	padding-bottom: var(--space-5);
}

.footer-brand__tagline {
	margin: 0 0 var(--space-2);
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
}

.footer-brand__text {
	max-width: 38ch;
	margin: 0;
	font-size: var(--text-sm);
	opacity: 0.75;
}

.footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.footer-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	border: 1px solid
		color-mix(in srgb, var(--color-on-secondary) 25%, transparent);
	border-radius: 50%;
}

.footer-social:hover {
	background: color-mix(in srgb, var(--color-on-secondary) 8%, transparent);
	opacity: 1;
}

.footer-social .icon {
	width: 18px;
	height: 18px;
}

/* Brand logos are filled glyphs; the sprite's default is a stroke. */
.icon--whatsapp,
.icon--facebook,
.icon--instagram,
.icon--tiktok {
	fill: currentColor;
	stroke: none;
}

/* Accordion: open by default, collapsed on mobile by main.js. */
.footer-col {
	border-top: 1px solid
		color-mix(in srgb, var(--color-on-secondary) 18%, transparent);
}

.footer-col__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: 48px;
	cursor: pointer;
	list-style: none;
}

.footer-col__head::-webkit-details-marker {
	display: none;
}

.footer-col__title {
	margin: 0;
	color: inherit;
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	opacity: 0.65;
}

.footer-col__chevron {
	width: 18px;
	height: 18px;
	transition: transform var(--dur-fast) var(--ease);
}

.footer-col[open] .footer-col__chevron {
	transform: rotate(180deg);
}

.footer-col__body {
	padding-bottom: var(--space-4);
}

/* Links and widget content inside a column. */
.footer-col__body ul {
	display: grid;
	gap: 2px;
}

.footer-col__body li a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.footer-col__body p {
	margin: 0 0 var(--space-2);
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
	opacity: 0.8;
}

.footer-widget + .footer-widget {
	margin-top: var(--space-4);
}

.footer-widget__title {
	margin: 0 0 var(--space-2);
	color: inherit;
	font-family: var(--font-heading);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	opacity: 0.65;
}

/* Core Social Icons block, if the owner adds one to the brand area. */
.footer-brand .wp-block-social-links {
	margin-top: var(--space-4);
}

/* ------ Store column ------------------------------------------------------ */

.footer-store {
	display: grid;
	gap: var(--space-3);
}

.footer-store__row {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.footer-store__row .icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	opacity: 0.6;
}

.footer-store__row p {
	margin: 0;
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
	/* The email is one long token; without this it pushes the page wide at
	   tablet/small-laptop widths. */
	overflow-wrap: anywhere;
	opacity: 0.85;
}

.footer-store__row a {
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.footer-store__directions {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--tap);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.footer-store__directions .icon {
	width: 16px;
	height: 16px;
}

@media (min-width: 768px) {
	.site-footer__grid {
		/* The store column carries the address and the email, which are the
		   longest unbreakable strings; it gets the extra share. */
		grid-template-columns: 1fr 1fr 1.25fr;
		column-gap: var(--space-6);
		padding-top: var(--space-6);
	}

	.footer-brand {
		grid-column: 1 / -1;
		padding-bottom: var(--space-5);
	}

	.footer-col {
		border-top: 0;
	}

	.footer-col__head {
		min-height: 0;
		padding-bottom: var(--space-3);
		cursor: default;
	}

	.footer-col.is-static > .footer-col__head {
		pointer-events: none;
	}

	.footer-col__chevron {
		display: none;
	}

	.footer-col__body {
		padding-bottom: 0;
	}

	.footer-col__body li a,
	.footer-store__directions {
		min-height: 36px;
	}
}

@media (min-width: 1024px) {
	.site-footer__main {
		padding-block: var(--space-7) var(--space-6);
	}

	.site-footer__grid {
		grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
		gap: var(--space-6);
	}


	.footer-brand {
		grid-column: auto;
		padding-bottom: 0;
	}

	.footer-social {
		width: 40px;
		height: 40px;
	}
}

/*
 * 1024-1279: the store column's email is the widest unbreakable string in
 * the footer. Give that column more of the row so it never wraps mid-word.
 */
@media (min-width: 1024px) and (max-width: 1279px) {
	.site-footer__grid {
		grid-template-columns: 1.35fr 0.85fr 0.85fr 1.35fr;
	}
}

.site-footer__bottom {
	padding-block: var(--space-3);
	background: var(--color-secondary);
	border-top: 1px solid
		color-mix(in srgb, var(--color-on-secondary) 12%, transparent);
	font-size: var(--text-xs);
}

.site-footer__bottom .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-4);
}

.site-footer__copy {
	margin: 0;
	opacity: 0.6;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.footer-legal a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.footer-legal a {
		min-height: 36px;
	}
}

/* ==========================================================================
   09 COMPONENTS
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
	margin-bottom: var(--space-4);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-inline: var(--space-1);
	opacity: 0.5;
}

.breadcrumbs a:hover {
	color: var(--color-accent-text);
}

/* Pagination */
.pagination,
.woocommerce-pagination {
	margin-top: var(--space-6);
	text-align: center;
}

.pagination .nav-links,
.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
}

.pagination .page-numbers,
.woocommerce-pagination li .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: var(--tap);
	min-height: var(--tap);
	padding-inline: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-medium);
	transition: border-color var(--dur) var(--ease),
		background-color var(--dur) var(--ease);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.woocommerce-pagination li .page-numbers:hover,
.woocommerce-pagination li .page-numbers.current {
	border-color: var(--color-text);
	background: var(--color-secondary);
	color: var(--color-on-secondary);
}

/* Empty states */
.empty-state {
	padding-block: var(--space-8);
	text-align: center;
}

.empty-state .icon {
	width: 40px;
	height: 40px;
	margin: 0 auto var(--space-3);
	color: var(--color-text-subtle);
}

.empty-state h2 {
	font-size: var(--text-xl);
}

.empty-state p {
	max-width: 42ch;
	margin-inline: auto;
	color: var(--color-text-muted);
}

.empty-state .btn {
	margin-top: var(--space-4);
}

/* Search results */
.search-results {
	display: grid;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}

.search-result {
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--color-border);
}

.search-result .entry-title {
	margin-bottom: var(--space-1);
	font-size: var(--text-lg);
}

.search-result .entry-title a:hover {
	color: var(--color-accent-text);
}

.search-result p {
	margin-bottom: var(--space-2);
}

/* Hero and homepage sections live in assets/css/home.css (front page only). */

/* ==========================================================================
   10 WORDPRESS CORE + UTILITIES
   ========================================================================== */

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

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	clip-path: none;
	white-space: normal;
}

.alignleft {
	float: left;
	margin: 0 var(--space-4) var(--space-3) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--space-3) var(--space-4);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	width: min(100vw - (var(--gutter) * 2), 1100px);
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
	margin-bottom: var(--space-3);
}

.wp-caption-text,
figcaption {
	margin-top: var(--space-1);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content > * + * {
	margin-top: var(--space-4);
}

.entry-content h2 {
	margin-top: var(--space-6);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li + li {
	margin-top: var(--space-1);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
