/* Shared layout: header, footer, section titles. Colours and fonts come from theme.json / the brand file. */

body {
	-webkit-font-smoothing: antialiased;
}

/* Sticky header on wider screens only; on phones it would take a fifth of the viewport. */
@media (min-width: 782px) {
	.wp-site-blocks > header.site-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.admin-bar .wp-site-blocks > header.site-header {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.site-header,
.site-header > .wp-block-group,
.wp-site-blocks > header {
	margin-block: 0;
}

.shop-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border-light);
	padding: 0.75rem var(--wp--style--root--padding-right, 1rem) 0.75rem var(--wp--style--root--padding-left, 1rem);
}

.shop-header__bar {
	gap: 1.5rem;
	min-height: 52px;
}

.shop-header__logo img {
	display: block;
	height: auto;
}

.shop-header__nav {
	flex: 1 1 auto;
	font-weight: 700;
}

.shop-header__nav .wp-block-navigation-item__content {
	padding-block: 0.4rem;
}

.shop-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-alt-accent);
}

.shop-header__actions {
	gap: 0.75rem;
	flex-shrink: 0;
}

.shop-header__search {
	width: 260px;
}

.shop-header__search .wp-block-search__inside-wrapper,
.shop-header__search-mobile .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white, #fff);
	padding: 3px;
}

.shop-header .wp-block-search__input,
.shop-header .wp-block-search__input:focus {
	border: 0 !important;
	box-shadow: none;
	outline-offset: -2px;
	background: transparent;
	padding: 0.45rem 0.9rem;
	font-size: 0.95rem;
	min-width: 0;
}

.shop-header .wp-block-search__button {
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary-alt-accent);
	color: var(--wp--preset--color--white, #fff);
	padding: 0.45rem 0.7rem;
	margin: 0;
}

.shop-header__search-mobile {
	display: none;
}

.shop-header .wc-block-mini-cart__button,
.shop-header .wc-block-customer-account a {
	color: var(--wp--preset--color--main);
	padding: 0.4rem;
}

.shop-header .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white, #fff);
	border: 0;
}

@media (max-width: 781px) {
	.shop-header {
		padding-top: 0.5rem;
		padding-bottom: 0.6rem;
	}

	.shop-header__bar {
		gap: 0.5rem;
		min-height: 44px;
	}

	.shop-header__nav {
		order: -1;
		flex: 0 0 auto;
	}

	.shop-header__logo {
		flex: 1 1 auto;
		display: flex;
		justify-content: center;
	}

	.shop-header__logo img {
		width: 140px !important;
	}

	.shop-header__actions {
		gap: 0;
	}

	.shop-header__search {
		display: none;
	}

	.shop-header__search-mobile {
		display: block;
		margin-top: 0.5rem !important;
	}
}

/* Section titles used across templates and home sections. */
.shop-section-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	margin-bottom: 1.25rem;
}

.shop-eyebrow {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-alt-accent);
	margin-bottom: 0.25rem;
}

/* Footer styles: footer.css. */
