/*
 * header.css - site offer bar, header, navigation, search and cart drawer.
 * Enqueued on every page after common.css.
 */

/* --------------------------------------------------------------------------
   Offer bar (currently hidden)
   -------------------------------------------------------------------------- */
.fh-offer-bar {
	display: none;
	background: var(--fh-blue);
	color: var(--fh-white);
}

.fh-offer-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	min-height: 44px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

.fh-offer-inner a {
	background: var(--fh-orange);
	padding: 9px 18px;
	color: var(--fh-white);
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.fh-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--fh-bg);
	overflow: visible;
	box-shadow: 0 2px 14px rgba(0, 48, 87, 0.08);
}

.admin-bar .fh-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .fh-site-header {
		top: 0;
	}
}

.fh-header-main {
	display: flex;
	align-items: center;
	min-height: var(--fh-header-height);
	padding: 0;
	overflow: visible;
}

.fh-header-grid {
	display: grid;
	grid-template-columns: 205px minmax(0, 1fr) 110px;
	align-items: center;
	gap: 30px;
	min-height: var(--fh-header-height);
	overflow: visible;
}

.fh-logo {
	display: inline-flex;
	width: 160px;
	margin-left: 0;
	justify-self: start;
	flex: none;
}

.fh-logo img {
	width: 160px;
}

/* --------------------------------------------------------------------------
   Primary nav + dropdowns
   -------------------------------------------------------------------------- */
.fh-main-nav {
	display: flex;
	flex-wrap: nowrap;
	align-self: stretch;
	align-items: stretch;
	justify-content: center;
	gap: 0 clamp(20px, 2.15vw, 42px);
	min-width: 0;
	font-family: "Optima", Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.fh-main-nav > a,
.fh-nav-item > a {
	position: relative;
	display: inline-flex;
	align-self: center;
	align-items: center;
	gap: 9px;
	min-height: 28px;
	padding: 0;
	color: #131313;
}

.fh-main-nav > a:last-child {
	flex-basis: auto;
	justify-content: center;
	margin-top: 0;
}

.fh-nav-item {
	position: relative;
	display: flex;
	align-items: center;
	flex: none;
}

.fh-nav-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5px;
	height: 3px;
	background: var(--fh-blue);
	opacity: 0;
	transition: opacity 160ms ease;
}

.fh-nav-item:hover > a::after {
	opacity: 1;
}

.fh-nav-item span {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
}

.fh-dropdown {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 10;
	display: grid;
	min-width: 255px;
	padding: 0;
	background: var(--fh-white);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
	text-align: left;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.fh-dropdown.wide {
	min-width: 310px;
}

.fh-dropdown.tall {
	min-width: 340px;
}

.fh-dropdown-item {
	position: relative;
}

.fh-dropdown-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: 12px 18px;
	font-size: 17px;
	font-weight: 600;
	color: #131313;
}

.fh-dropdown-item > a:hover {
	background: var(--fh-blue);
	color: var(--fh-white);
}

.fh-dropdown-item > a span {
	width: 0;
	height: 0;
	margin-left: auto;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 6px solid currentColor;
}

.fh-dropdown .fh-dropdown {
	top: 0;
	left: 100%;
	min-width: 290px;
	opacity: 0;
	visibility: hidden;
	transform: translateX(8px);
}

.fh-dropdown .fh-dropdown .fh-dropdown {
	min-width: 245px;
}

.fh-nav-item:hover > .fh-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fh-dropdown-item:hover > .fh-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* --------------------------------------------------------------------------
   Header tools: search + cart + mobile toggle
   -------------------------------------------------------------------------- */
.fh-header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	padding-top: 0;
}

.fh-search {
	position: relative;
	display: flex;
	align-items: center;
}

.fh-search-open {
	overflow: hidden;
}

.fh-search input {
	position: absolute;
	right: 36px;
	width: 0;
	height: 42px;
	border: 0;
	border-radius: 3px;
	background: var(--fh-white);
	opacity: 0;
	padding: 0;
	pointer-events: none;
	transition: width 180ms ease, opacity 180ms ease, padding 180ms ease;
}

.fh-search.is-open {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: block;
	background: rgba(0, 0, 0, 0.92);
	cursor: default;
}

.fh-search.is-open input[type="search"] {
	position: absolute;
	top: 54px;
	left: 50%;
	right: auto;
	width: min(948px, calc(100vw - 188px));
	height: 74px;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 11px;
	background: #2b2b2b;
	color: var(--fh-white);
	opacity: 1;
	padding: 0 20px;
	font-family: "Optima", Arial, sans-serif;
	font-size: 18px;
	line-height: 1;
	pointer-events: auto;
	transform: translateX(-50%);
	outline: none;
}

.fh-search.is-open input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.54);
}

.fh-search.is-open button {
	position: absolute;
	top: 70px;
	left: 50%;
	z-index: 1;
	width: 42px;
	height: 42px;
	color: rgba(255, 255, 255, 0.78);
	transform: translateX(422px);
}

.fh-search.is-open button:hover,
.fh-search.is-open button:focus {
	color: var(--fh-white);
	background: transparent !important;
}

.fh-search.is-open::after {
	content: "Search suggestions";
	position: absolute;
	top: 158px;
	left: 50%;
	color: rgba(255, 255, 255, 0.58);
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 1.2;
	transform: translateX(-474px);
}

.fh-search:not(.is-open) button:hover,
.fh-search:not(.is-open) button:focus {
	background: transparent !important;
	color: var(--fh-blue);
	box-shadow: none !important;
}

.fh-search button,
.fh-cart,
.fh-menu-toggle {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50px;
	background: transparent;
	color: #303030;
	padding: 0;
	cursor: pointer;
}

body.fh-home .fh-search button,
body.fh-home .fh-search button:hover,
body.fh-home .fh-search button:focus,
body.fh-home .fh-search button:active {
	background: transparent !important;
	box-shadow: none !important;
}

body.fh-home .fh-search.is-open button,
body.fh-home .fh-search.is-open button:hover,
body.fh-home .fh-search.is-open button:focus,
body.fh-home .fh-search.is-open button:active {
	color: var(--fh-white);
	background: transparent !important;
	box-shadow: none !important;
}

.fh-search svg,
.fh-cart svg,
.fh-menu-toggle svg {
	width: 31px;
	height: 31px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fh-cart {
	position: relative;
	border: 1px solid #d9e7f2;
	background: #e6f2fb;
	color: var(--fh-blue);
}

.fh-cart:hover,
.fh-cart:focus {
	border-color: #bed3e5;
	background: #d8ebf8;
	color: var(--fh-blue);
	box-shadow: none;
}

.fh-cart span {
	position: absolute;
	top: -8px;
	right: -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e12e2e;
	color: var(--fh-white);
	font-family: Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.fh-cart-open {
	overflow: hidden;
}

.fh-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 9998;
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(337px, 86vw);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.fh-cart-drawer.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.fh-cart-drawer-backdrop {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.32) !important;
	padding: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.fh-cart-drawer-backdrop:hover,
.fh-cart-drawer-backdrop:focus,
.fh-cart-drawer-backdrop:active {
	background: rgba(0, 0, 0, 0.32) !important;
	box-shadow: none !important;
	outline: none;
}

.fh-cart-drawer-panel {
	position: relative;
	height: 100vh;
	background: var(--fh-white);
	padding: 64px 16px 24px;
	overflow-y: auto;
	box-shadow: -10px 0 26px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 220ms ease;
}

.fh-cart-drawer.is-open .fh-cart-drawer-panel {
	transform: translateX(0);
}

.fh-cart-drawer-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: #68717a;
	font-family: Arial, sans-serif;
	font-size: 46px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.fh-cart-drawer-close:hover,
.fh-cart-drawer-close:focus {
	background: transparent !important;
	color: var(--fh-blue);
}

.fh-cart-drawer-content,
.fh-cart-drawer-content .widget_shopping_cart_content {
	font-family: Arial, sans-serif;
}

.fh-cart-drawer-content .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fh-cart-drawer-content .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) 24px;
	grid-template-areas:
		"thumb title remove"
		"thumb quantity remove";
	column-gap: 12px;
	row-gap: 8px;
	align-items: start;
	margin: 0;
	padding: 0 0 20px !important;
	border-bottom: 1px solid #d6d9de;
	color: var(--fh-blue);
}

.fh-cart-drawer-content .woocommerce-mini-cart-item + .woocommerce-mini-cart-item {
	margin-top: 24px;
}

.fh-cart-drawer-content .woocommerce-mini-cart-item a:not(.remove) {
	display: contents;
	color: var(--fh-blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.fh-cart-drawer-content .fh-mini-cart-title {
	grid-area: title;
	display: block;
	min-width: 0;
	color: var(--fh-blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.fh-cart-drawer-content .woocommerce-mini-cart-item a:not(.remove):hover .fh-mini-cart-title,
.fh-cart-drawer-content .woocommerce-mini-cart-item a:not(.remove):focus .fh-mini-cart-title {
	color: var(--fh-blue);
}

.fh-cart-drawer-content .woocommerce-mini-cart-item img {
	grid-area: thumb;
	float: none !important;
	width: 74px !important;
	height: 97px !important;
	max-width: 74px !important;
	margin: 0 !important;
	background: #f2f5f7;
	object-fit: cover;
	object-position: center;
}

.fh-cart-drawer-content .woocommerce-mini-cart-item .quantity {
	grid-area: quantity;
	display: block;
	padding-left: 0;
	margin-top: 0;
	color: var(--fh-blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.fh-cart-drawer-content .woocommerce-mini-cart-item .remove,
.fh-cart-drawer-content .remove_from_cart_button {
	grid-area: remove;
	position: static !important;
	align-self: center;
	justify-self: end;
	display: grid !important;
	place-items: center;
	width: 23px;
	height: 23px;
	border: 1px solid #d8dde4;
	border-radius: 50%;
	background: var(--fh-white) !important;
	color: #c9d0d8 !important;
	font-size: 0 !important;
	text-decoration: none;
}

.fh-cart-drawer-content .woocommerce-mini-cart-item .remove::before,
.fh-cart-drawer-content .remove_from_cart_button::before {
	content: "\00d7";
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
}

.fh-cart-drawer-content .woocommerce-mini-cart__total {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 20px 0;
	border-bottom: 1px solid #d6d9de;
	padding: 0 0 20px;
	color: #303030;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.fh-cart-drawer-content .woocommerce-mini-cart__total strong {
	font-weight: 700;
}

.fh-cart-drawer-content .woocommerce-mini-cart__total .amount {
	color: var(--fh-blue);
}

.fh-cart-drawer-content .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.fh-cart-drawer-content .woocommerce-mini-cart__buttons .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 47px;
	margin: 0;
	border-radius: 0;
	background: var(--fh-blue) !important;
	color: var(--fh-white) !important;
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}

.fh-cart-drawer-content .woocommerce-mini-cart__buttons .button:hover,
.fh-cart-drawer-content .woocommerce-mini-cart__buttons .button:focus {
	background: var(--fh-blue-dark) !important;
	color: var(--fh-white) !important;
}

.fh-cart-drawer-content .woocommerce-mini-cart__empty-message {
	margin: 18px 0 0;
	color: #1f2937;
	font-family: Arial, sans-serif;
	font-size: 16px;
	text-align: center;
}

.fh-menu-state,
.fh-menu-toggle {
	display: none;
}

/* --------------------------------------------------------------------------

   Responsive - header only

   -------------------------------------------------------------------------- */

@media (max-width: 1500px) {
	:root {
		--fh-header-height: 52px;
	}

	.fh-header-main,
	.fh-header-grid {
		min-height: var(--fh-header-height);
	}

	.fh-header-grid {
		grid-template-columns: 185px minmax(0, 1fr) 98px;
		gap: 24px;
	}

	.fh-logo,
	.fh-logo img {
		width: 185px;
	}

	.fh-main-nav {
		gap: 0 30px;
		font-size: 16px;
	}

	.fh-main-nav > a:last-child {
		flex-basis: auto;
		margin-top: 0;
	}
}

@media (max-width: 1136px) and (min-width: 768px) {
	.fh-search.is-open input[type="search"] {
		top: 54px;
		left: 94px;
		right: 94px;
		width: auto;
		transform: none;
	}

	.fh-search.is-open button {
		top: 70px;
		left: auto;
		right: 106px;
		transform: none;
	}

	.fh-search.is-open::after {
		top: 158px;
		left: 94px;
		transform: none;
	}
}

@media (max-width: 1200px) {
	:root {
		--fh-header-height: 50px;
	}

	.fh-header-main,
	.fh-header-grid {
		min-height: var(--fh-header-height);
	}

	.fh-header-grid {
		grid-template-columns: 150px 1fr 96px;
		gap: 18px;
	}

	.fh-main-nav {
		gap: 0 22px;
		font-size: 17px;
	}
}

@media (max-width: 767px) {
	.fh-header-main {
		min-height: 0;
		padding: 11px 0;
	}

	.fh-header-grid {
		position: relative;
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr) 96px;
		grid-template-areas: "menu logo tools";
		align-items: center;
		min-height: 0;
		gap: 0 10px;
		padding: 0 16px;
	}

	.fh-logo {
		grid-area: logo;
		justify-self: center;
		width: 118px;
		margin: 0;
	}

	.fh-logo img {
		width: 118px;
	}

	.fh-menu-toggle {
		display: grid;
		grid-area: menu;
		width: 38px;
		height: 38px;
		border-radius: 2px;
		background: #d5dde5;
	}

	.fh-menu-toggle svg {
		width: 25px;
		height: 25px;
	}

	.fh-search button,
	.fh-cart {
		width: 38px;
		height: 38px;
	}

	.fh-search svg,
	.fh-cart svg {
		width: 27px;
		height: 27px;
	}

	.fh-header-tools {
		grid-area: tools;
		gap: 10px;
		justify-content: flex-end;
		padding: 0;
		margin-bottom: 0;
	}

	.fh-search input {
		display: none;
	}

	.fh-search.is-open input[type="search"] {
		display: block;
		top: 76px;
		width: calc(100vw - 32px);
		height: 62px;
		border-width: 2px;
		font-size: 17px;
	}

	.fh-search.is-open button {
		top: 86px;
		left: auto;
		right: 26px;
	}

	.fh-search.is-open::after {
		top: 156px;
		left: 18px;
	}

	.fh-main-nav {
		position: absolute;
		top: calc(100% + 4px);
		left: 16px;
		right: 16px;
		z-index: 20;
		display: none;
		width: auto;
		max-height: calc(100vh - var(--fh-header-height) - 16px);
		overflow-y: auto;
		padding: 8px 0;
		background: var(--fh-white);
		border: 1px solid rgba(0, 48, 87, 0.12);
		box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
		text-align: left;
	}

	.fh-menu-state:checked ~ .fh-main-nav {
		display: block;
	}

	.fh-main-nav > a,
	.fh-nav-item > a {
		display: flex;
		justify-content: space-between;
		width: 100%;
		min-height: 0;
		padding: 13px 18px;
		border-bottom: 1px solid rgba(0, 48, 87, 0.08);
		color: #131313;
		font-size: 17px;
		line-height: 1.2;
	}

	.fh-main-nav > a:last-child {
		flex-basis: auto;
		justify-content: space-between;
		margin: 0;
	}

	.fh-nav-item {
		display: block;
		width: 100%;
	}

	.fh-nav-item > a > span {
		border-top: 5px solid transparent;
		border-bottom: 5px solid transparent;
		border-left: 6px solid currentColor;
		border-right: 0;
	}

	.fh-dropdown {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: #f7f9fb;
		white-space: normal;
	}

	.fh-nav-item.is-submenu-open > .fh-dropdown,
	.fh-dropdown-item.is-submenu-open > .fh-dropdown {
		display: block;
	}

	.fh-dropdown-item > a {
		padding: 11px 18px 11px 34px;
		border-bottom: 1px solid rgba(0, 48, 87, 0.06);
		color: #1d2630;
		font-size: 16px;
		line-height: 1.2;
	}

	.fh-dropdown-item > a span {
		border-top: 5px solid transparent;
		border-bottom: 5px solid transparent;
		border-left: 6px solid currentColor;
		border-right: 0;
	}

	.fh-nav-item.is-submenu-open > a > span {
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 6px solid currentColor;
		border-bottom: 0;
	}

	.fh-dropdown-item.is-submenu-open > a > span {
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 6px solid currentColor;
		border-bottom: 0;
	}

	.fh-dropdown .fh-dropdown {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.fh-dropdown .fh-dropdown .fh-dropdown-item > a {
		padding-left: 50px;
		font-size: 15px;
	}
}

@media (max-width: 430px) {
	.fh-header-grid {
		grid-template-columns: 56px 1fr 112px;
	}

	.fh-search button,
	.fh-cart {
		width: 38px;
		height: 38px;
	}

	.fh-search svg,
	.fh-cart svg {
		width: 27px;
		height: 27px;
	}
}
