/*
 * Storefront chrome copied from the Shopify (Dawn-based) theme: announcement bar, header, footer, buttons,
 * product cards and section titles. Values are the computed styles of the Shopify storefront (1440px and
 * 390px), measured with Playwright. Shopify's rem is 10px; everything here is in px.
 */

:root {
	--bih-fg: 26, 26, 26;
	--bih-page-width: 1400px;
	--bih-page-gutter: 50px;
}

@media (max-width: 749px) {
	:root {
		--bih-page-gutter: 15px;
	}

	/* Dawn body text is 15px on phones, 16px from 750px. */
	body {
		font-size: 15px;
	}
}

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

/* Dawn .page-width */
.bih-page-width {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--bih-page-width);
	margin-inline: auto !important;
	padding-inline: var(--bih-page-gutter);
}

/* Buttons: Dawn .button (Inter 600 15px, 12px 25px, 45px tall, 4px radius). */
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	box-sizing: border-box;
	text-decoration: none;
}

/* ------------------------------------------------------------------ Announcement bar (utility bar) */
.bih-announcement-bar {
	position: relative;
	padding: 0 !important;
}

.bih-announcement-bar .wp-block-bih-slider {
	position: relative;
	display: block;
	max-width: var(--bih-page-width);
	margin: 0 auto;
	padding: 0 var(--bih-page-gutter);
	box-sizing: border-box;
}

.bih-announcement-bar .bih-slider__viewport {
	margin: 0 44px;
	border-radius: 0;
}

.bih-announcement-bar .wp-block-bih-slide {
	border-radius: 0;
}

.bih-announcement-bar__message {
	margin: 0;
	padding: 19px 0 20px;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 15.6px;
	font-weight: 700;
	line-height: 21px;
	letter-spacing: 1px;
	text-align: center;
	color: #fff;
}

.bih-announcement-bar__message a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bih-announcement-bar .bih-slider__controls {
	position: absolute;
	inset: 0 calc(var(--bih-page-gutter) - 15px);
	justify-content: space-between;
	pointer-events: none;
}

.bih-announcement-bar .bih-slider__button {
	pointer-events: auto;
	width: 44px;
	height: 60px;
	border: 0;
	border-radius: 0;
	color: rgba(255, 255, 255, 0.75);
}

.bih-announcement-bar .bih-slider__button:hover {
	background: transparent;
	color: #fff;
}

.bih-announcement-bar .bih-slider__button svg {
	width: 14px;
	height: 14px;
}

/* The pause control stays in the tab order but only shows when focused (the bar also pauses on hover). */
.bih-announcement-bar .bih-slider__rotation {
	position: absolute;
	left: 50%;
	top: 8px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.bih-announcement-bar .bih-slider__rotation:focus-visible {
	width: 32px;
	height: 32px;
	clip-path: none;
	transform: translateX(-50%);
	background: #000;
}

/* ------------------------------------------------------------------------------------ Header */
.bih-header-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 12px 0 !important;
}

.bih-header-inner {
	display: flex;
	align-items: center;
	gap: 20px !important;
	max-width: var(--bih-page-width);
	margin: 0 auto;
	padding: 0 calc(var(--bih-page-gutter) - 7.5px);
	box-sizing: border-box;
}

.bih-logo {
	display: block;
	flex-shrink: 0;
	padding: 7.5px;
}

.bih-logo img {
	display: block;
	width: 119px;
	height: auto;
	max-width: none;
}

.bih-primary-nav {
	flex: 1;
	min-width: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 14px;
	font-weight: 400;
	line-height: 18.2px;
	letter-spacing: 0.6px;
}

.bih-primary-nav .wp-block-navigation__container {
	gap: 0;
	row-gap: 0;
}

.bih-primary-nav .wp-block-navigation-item__content {
	display: block;
	padding: 12px !important;
	color: rgba(var(--bih-fg), 0.75) !important;
	text-decoration: none;
	text-underline-offset: 3px;
}

.bih-primary-nav .wp-block-navigation-item__content:hover,
.bih-primary-nav .current-menu-item > .wp-block-navigation-item__content {
	color: rgb(var(--bih-fg)) !important;
	text-decoration: underline;
}

.bih-header-icons {
	flex-shrink: 0;
	gap: 0 !important;
	margin-left: auto;
}

.bih-header-icons .bih-icon-link,
.bih-header-icons .bih-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: rgb(var(--bih-fg));
}

/* Below 990px Shopify shows the menu drawer button on the left and centres the logo. */
@media (max-width: 989px) {
	.bih-header-inner {
		display: grid !important;
		grid-template-columns: 1fr auto 1fr;
		gap: 0 !important;
		padding: 0 calc(var(--bih-page-gutter) - 2px);
	}

	.bih-header-inner > .bih-primary-nav {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.bih-header-inner > .bih-logo,
	.bih-header-inner > .wp-block-html:has(.bih-logo) {
		grid-column: 2;
		grid-row: 1;
	}

	.bih-header-inner > .bih-header-icons {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	.bih-header-icons .bih-account-link {
		display: none;
	}

	.bih-primary-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
	}

	.bih-primary-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.bih-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: 18px;
		padding: 11px 0 !important;
	}
}

/* ------------------------------------------------------------------------------------ Footer */
.bih-footer {
	padding: 0 !important;
	color: #fff;
	font-family: var(--wp--preset--font-family--inter);
}

.bih-footer a {
	color: inherit;
}

.bih-footer p {
	margin: 0;
}

.bih-footer__newsletter {
	padding: 30px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bih-footer__newsletter-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	max-width: var(--bih-page-width);
	margin: 0 auto;
	padding: 0 var(--bih-page-gutter);
	box-sizing: border-box;
}

.bih-footer__newsletter-inner > * {
	margin: 0 !important;
}

.bih-footer__newsletter-left {
	max-width: 450px;
}

.bih-footer__newsletter-icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-bottom: 8px !important;
	border-radius: 4px;
	background: #fff;
	color: #1a1a1a;
	font-size: 16px;
	line-height: 1;
}

.bih-footer__newsletter-text {
	font-size: 13px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
}

.bih-footer__newsletter-form {
	flex: 1;
}

.bih-footer__main {
	display: grid;
	grid-template-columns: 1fr 1fr 1.5fr;
	gap: 30px;
	max-width: var(--bih-page-width);
	margin: 0 auto;
	padding: 50px 0;
}

.bih-footer__main > * {
	margin: 0 !important;
}

.bih-footer__heading {
	margin: 0 0 25px !important;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 13px !important;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #fff;
}

.bih-footer .bih-footer-links {
	gap: 0;
}

.bih-footer .bih-footer-links .wp-block-navigation__container {
	gap: 0;
	align-items: flex-start;
}

.bih-footer .bih-footer-links .wp-block-navigation-item {
	margin-bottom: 15px;
}

.bih-footer .bih-footer-links .wp-block-navigation-item__content {
	padding: 0;
	font-size: 14px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.bih-footer .bih-footer-links .wp-block-navigation-item__content:hover {
	color: #fff;
}

.bih-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bih-footer__brand > * {
	margin: 0 !important;
}

.bih-footer-logo {
	display: block;
	width: 150px;
	height: auto;
	margin: 0 0 5px;
}

.bih-footer__brand-text {
	margin-top: -5px !important;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
}

.bih-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 10px;
}

.bih-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 25.2px;
	text-decoration: none;
	color: #fff !important;
	transition: transform 0.3s;
}

.bih-footer__social:hover {
	transform: translateX(5px);
}

.bih-footer__band {
	min-height: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin: 0 !important;
}

.bih-footer__copyright {
	box-sizing: border-box;
	max-width: var(--bih-page-width);
	padding: 30px var(--bih-page-gutter);
	margin: 0 auto !important;
	text-align: center;
	font-size: 12px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.5);
}

.bih-footer__policies {
	margin-top: 10px !important;
}

.bih-footer__policies a {
	margin: 0 8px;
	color: rgba(255, 255, 255, 0.5) !important;
	text-decoration: none;
}

.bih-footer__policies a:hover {
	color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 990px) {
	.bih-footer__main {
		grid-template-columns: 1fr 1fr;
		padding-inline: var(--bih-page-gutter);
	}

	.bih-footer__brand {
		grid-column: span 2;
	}

	.bih-footer__newsletter-inner {
		flex-direction: column;
		text-align: center;
	}

	.bih-footer__newsletter-left {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.bih-footer__newsletter-form {
		width: 100%;
	}

	.bih-footer__newsletter-form .bih-newsletter__form,
	.wp-block-bih-newsletter.bih-footer__newsletter-form {
		align-items: center;
		justify-content: center;
	}
}

@media (max-width: 749px) {
	.bih-footer__newsletter {
		padding: 20px 0;
	}

	.bih-footer__main {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 30px var(--bih-page-gutter);
		text-align: center;
	}

	.bih-footer__brand {
		grid-column: span 1;
		align-items: center;
		margin-top: 10px !important;
	}

	.bih-footer .bih-footer-links .wp-block-navigation__container {
		align-items: center;
	}

	.bih-footer__socials {
		justify-content: center;
	}
}

/* ----------------------------------------------------------------------------- Section titles */
.bih-sf-section {
	margin: 0 !important;
}

.bih-sf-head {
	margin-bottom: 15px;
}

.bih-sf-head > * {
	margin: 0;
}

.bih-sf-head > * + * {
	margin-top: 10px;
}

.bih-sf-title {
	margin: 0;
	font-size: 42px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.bih-sf-center {
	justify-content: center;
}

@media (max-width: 749px) {
	.bih-sf-title {
		font-size: 28px;
	}
}

/* ------------------------------------------------------------------- Product cards (Dawn card) */
.bih-card-grid .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.bih-card-grid .wc-block-product-template > li {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left;
}

.bih-card-grid .wc-block-components-product-image {
	position: relative;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.bih-card-grid .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0 !important;
	transition: transform 0.6s ease;
}

.bih-card-grid .wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.03);
}

.bih-card-grid .wc-block-components-product-sale-badge {
	position: absolute;
	inset: auto auto 10px 10px !important;
	margin: 0 !important;
	padding: 5px 13px 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: none;
}

.bih-card-grid .bih-card__title {
	margin: 17px 0 0 !important;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 15.6px !important;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.72px;
	text-align: left;
}

.bih-card-grid .bih-card__title a {
	color: inherit;
	text-decoration: none;
}

.bih-card-grid .bih-card__title a:hover {
	text-decoration: underline;
}

.bih-card-grid .bih-card__price {
	margin: 7px 0 0 !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
	text-align: left !important;
	color: inherit;
}

.bih-card-grid .bih-card__price del {
	margin-right: 10px;
	font-size: 13px;
	opacity: 0.75;
	text-decoration: line-through;
}

.bih-card-grid .bih-card__price ins {
	color: #c41e3a;
	font-weight: 800;
	text-decoration: none;
}

.has-scheme-3-bg-background-color .bih-card__title,
.has-scheme-3-bg-background-color .bih-card__price {
	color: #fff;
}

@media (max-width: 749px) {
	.bih-card-grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.bih-card-grid .bih-card__title {
		margin-top: 12px !important;
		font-size: 14.4px !important;
	}

	.bih-card-grid .bih-card__price {
		font-size: 15px;
	}
}

/* Sections butt against each other as on Shopify (no block gap between header, main and footer). */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Shopify colour schemes: body text at 75% of the scheme's text colour, headings at full strength. */
.bih-sf-section.has-scheme-1-text-color,
.bih-sf-section.has-scheme-2-text-color {
	color: rgba(26, 26, 26, 0.75) !important;
}

.bih-sf-section.has-scheme-3-text-color,
.bih-sf-section.has-scheme-4-text-color,
.bih-sf-section.has-scheme-5-text-color {
	color: rgba(255, 255, 255, 0.75) !important;
}

.has-scheme-3-text-color :is(h1, h2, h3, h4),
.has-scheme-4-text-color :is(h1, h2, h3, h4),
.has-scheme-5-text-color :is(h1, h2, h3, h4) {
	color: #fff;
}

.bih-footer .bih-footer-links .wp-block-navigation-item {
	min-height: 28.8px;
}

@media (max-width: 749px) {
	.bih-announcement-bar .bih-slider__viewport {
		margin: 0 64px;
	}

	.bih-announcement-bar__message {
		font-size: 14.4px;
		line-height: 18px;
		padding: 19.5px 0;
	}

	.bih-announcement-bar .bih-slider__controls {
		inset: 0;
	}

	.bih-announcement-bar .bih-slider__button {
		height: 100%;
	}

	.bih-header-bar {
		padding: 6px 0 !important;
	}

	.bih-header-inner {
		padding: 0 calc(var(--bih-page-gutter) + 11px) 0 var(--bih-page-gutter);
	}
}

/* Short pages: the footer sits at the bottom of the window. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > footer {
	margin-top: auto !important;
}

/* Cart page as on Shopify: an empty cart shows "Your cart is empty" as the page title. */
.bih-cart-page:has(.wp-block-woocommerce-empty-cart-block) .bih-cart-page__title {
	display: none;
}

.bih-cart-empty h2.has-xx-large-font-size {
	font-size: 42px !important;
	line-height: 1.2;
}

.bih-cart-empty__account {
	margin: 40px 0 0 !important;
	font-size: 28.8px;
}

.bih-cart-empty__login {
	margin: 0 !important;
}

.bih-cart-empty__login a {
	text-underline-offset: 3px;
}

.bih-cart-featured .bih-sf-title {
	font-size: 28.8px;
	letter-spacing: 0.72px;
}

.bih-collection .bih-sf-center {
	margin-top: 30px;
}

/* ------------------------------------------------- Shopify product form (home feature rows and product page) */
.bih-feature__form .bih-variation-pills__prices {
	display: block;
	margin: 0 0 15px;
	font-size: 18px;
	font-weight: 700;
	line-height: 27px;
	letter-spacing: 1.3px;
	color: rgb(var(--bih-fg));
}

.bih-feature__form .bih-variation-pills__prices::after {
	content: "Shipping calculated at checkout.";
	display: block;
	margin-top: 6px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	letter-spacing: 0.7px;
	color: rgba(var(--bih-fg), 0.75);
}

.bih-feature__form .bih-variation-pills__compare {
	font-size: 14px;
	font-weight: 400;
	margin-right: 10px;
}

.bih-feature__form .bih-variation-pills__group {
	margin: 0 0 12px;
}

.bih-feature__form .bih-variation-pills__legend {
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.4px;
	color: rgba(var(--bih-fg), 0.75);
}

.bih-feature__form .bih-variation-pills__chosen {
	display: none;
}

.bih-feature__form .bih-variation-pills__options {
	gap: 9px 10px;
}

.bih-feature__form .bih-variation-pills__pill {
	min-width: 0;
	min-height: 36px;
	padding: 10px 20px;
	border: 1px solid rgba(var(--bih-fg), 0.55);
	border-radius: 40px;
	background: #fafafa;
	color: rgb(var(--bih-fg));
	font-size: 14px;
	line-height: 1;
	letter-spacing: 1px;
}

.bih-feature__form .bih-variation-pills__input:checked + .bih-variation-pills__pill {
	border-color: rgba(var(--bih-fg), 0.55);
	background: rgb(var(--bih-fg));
	color: #fafafa;
}

.bih-feature__form .bih-variation-pills__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 440px;
	margin-top: 27px;
}

.bih-feature__form .bih-variation-pills__buy-now {
	width: 100%;
	min-height: 46px;
	padding: 12px;
	border: 1px solid rgb(var(--bih-fg));
	border-radius: 8px;
	background: rgb(var(--bih-fg));
	color: #fafafa;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 1px;
	cursor: pointer;
}

.bih-feature__form .bih-variation-pills__buy-now:hover {
	box-shadow: 0 0 0 1px rgb(var(--bih-fg));
}

.bih-feature__form .bih-variation-pills__button {
	flex: none !important;
	width: 100%;
	min-height: 49px;
	padding: 14px 30px;
	border: 1px solid rgb(var(--bih-fg)) !important;
	border-radius: 8px;
	background: transparent !important;
	color: rgb(var(--bih-fg)) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.48px;
}

.bih-feature__form .bih-variation-pills__button:hover {
	box-shadow: 0 0 0 1px rgb(var(--bih-fg));
}

.bih-feature__form .quantity,
.bih-feature__form .bih-variation-pills__reset {
	display: none !important;
}

.bih-feature__form .bih-variation-pills__message:empty {
	display: none;
}

/* The pills format prices without the currency code; the Shopify row shows "$69.00 USD". */
.bih-feature__form .bih-variation-pills__price::after {
	content: " USD";
}

@media (max-width: 749px) {
	.bih-feature__form .bih-variation-pills__prices {
		font-size: 16px;
		line-height: 24px;
	}
}

.bih-feature__vendor {
	margin: 0;
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	color: rgba(var(--bih-fg), 0.75);
}
