/* Black Antler — supplementary CSS (design system lives in theme.json).
   Keep minimal: only what the block engine can't express. */

/* --- Sticky footer: footer sits at viewport bottom on short pages --- */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* --- Links on dark (hero) backgrounds: white, turn accent orange on hover --- */
.has-hero-background-color a,
.has-hero-2-background-color a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}
.has-hero-background-color a:hover,
.has-hero-background-color a:focus,
.has-hero-2-background-color a:hover,
.has-hero-2-background-color a:focus {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* --- Single product: sticky mobile buy bar --- */
.ba-buybar {
	display: none;
}
@media (max-width: 781px) {
	.ba-buybar {
		display: flex;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 100;
		border-top: 1px solid var(--wp--preset--color--base-3);
		box-shadow: 0 -4px 16px rgba(26, 32, 44, 0.12);
		gap: 1rem;
	}
	.ba-buybar .wp-block-woocommerce-product-price {
		margin: 0;
		font-size: 1.15rem;
		white-space: nowrap;
	}
	.ba-buybar .wp-block-woocommerce-product-button {
		margin: 0;
		flex: 1;
	}
	.ba-buybar .wp-block-woocommerce-product-button .wp-block-button__link,
	.ba-buybar .wc-block-components-product-button .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
	/* Keep the fixed bar from covering the footer's last content. */
	.wp-site-blocks > footer {
		padding-bottom: 5rem;
	}
}

/* --- Single product: confidence box link hover --- */
.ba-confidence a:hover {
	color: var(--wp--preset--color--accent);
}

/* --- Product archive: filters sidebar --- */
.ba-filters {
	align-self: flex-start;
}
.ba-filter {
	padding-block: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--base-3);
}
.ba-filter:last-child {
	border-bottom: 0;
}
@media (min-width: 782px) {
	.ba-filters {
		position: sticky;
		top: 1rem;
	}
}
/* Mobile filter drawer (bottom-sheet). Trigger + backdrop injected by theme.js. */
.ba-filter-toggle,
.ba-filter-done {
	display: none;
}
.ba-filter-backdrop {
	display: none;
}
body.ba-no-scroll {
	overflow: hidden;
}
@media (max-width: 781px) {
	.ba-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		font-family: var(--wp--preset--font-family--heading, sans-serif);
		font-weight: 600;
		padding: 0.7rem 1.2rem;
		min-height: 44px;
		border: 1px solid var(--wp--preset--color--base-3);
		border-radius: 8px;
		background: var(--wp--preset--color--base);
		color: var(--wp--preset--color--contrast);
		margin-bottom: 1.25rem;
		cursor: pointer;
	}
	.ba-filters {
		position: fixed;
		inset: auto 0 0 0;
		max-height: 85vh;
		overflow-y: auto;
		margin: 0;
		padding: 1.25rem;
		background: var(--wp--preset--color--base);
		border: 0;
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 30px rgba(26, 32, 44, 0.22);
		z-index: 200;
		transform: translateY(100%);
		transition: transform 0.25s ease;
	}
	.ba-filters.is-open {
		transform: translateY(0);
	}
	.ba-filter-backdrop.is-open {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(26, 32, 44, 0.5);
		z-index: 199;
	}
	.ba-filter-done {
		display: block;
		width: 100%;
		margin-top: 1rem;
		padding: 0.85rem;
		min-height: 48px;
		border: 0;
		border-radius: 8px;
		background: var(--wp--preset--color--accent);
		color: var(--wp--preset--color--hero);
		font-family: var(--wp--preset--font-family--heading, sans-serif);
		font-weight: 600;
		cursor: pointer;
	}
}

/* --- Checkout step indicator --- */
.ba-steps {
	gap: 0;
	counter-reset: step;
}
.ba-steps .ba-step {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--heading, sans-serif);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast-3, #718096);
	padding: 0 1.25rem;
	position: relative;
}
.ba-steps .ba-step:not(:last-child)::after {
	content: "";
	width: 1.5rem;
	height: 2px;
	background: var(--wp--preset--color--base-3, #ededed);
	margin-left: 0.75rem;
}
.ba-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--base-3, #ededed);
	color: var(--wp--preset--color--contrast-2, #4a5568);
	font-size: 0.85rem;
}
.ba-step--active {
	color: var(--wp--preset--color--contrast, #333);
}
.ba-step--active .ba-step__num {
	background: var(--wp--preset--color--accent, #ff9800);
	color: var(--wp--preset--color--hero, #1a202c);
}
.ba-step--done {
	color: var(--wp--preset--color--contrast-2, #4a5568);
}
.ba-step--done .ba-step__num {
	background: var(--wp--preset--color--success, #13612e);
	color: #fff;
}
@media (max-width: 600px) {
	.ba-steps .ba-step {
		padding: 0 0.6rem;
		font-size: 0.8rem;
	}
	.ba-steps .ba-step:not(:last-child)::after {
		width: 0.75rem;
		margin-left: 0.4rem;
	}
}

/* --- Header nav submenu polish --- */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(26, 32, 44, 0.18);
	min-width: 220px;
}
