/*
 * Site header: the Homepage 2 design's utility bar, masthead and nav.
 *
 * Loads on every page. The plugin swaps Flatsome's header for this one
 * (see includes/header/class-wscf-site-header.php). It also holds the base
 * and Flatsome-reset rules for .gh-root, which homepage.css builds on.
 */

/* ---------------------------------------------------------------------------
 * Base (the mockup's :root, body and element rules)
 * ------------------------------------------------------------------------ */

.gh-root {
	--gh-red: #ee3342;
	--gh-ink: #353430;
	--gh-grey: #f5f5f4;
	--gh-line: #e5e5e3;
	margin: 0;
	font: 16px/1.6 Inter, Arial, sans-serif;
	color: var(--gh-ink);
	background: #fff;
	text-align: left;
	/* Flatsome turns on antialiasing site-wide; the design renders without it. */
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}

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

/* ---------------------------------------------------------------------------
 * Flatsome reset: undo the theme's global element styles inside .gh-root
 * ------------------------------------------------------------------------ */

.gh-root :is(h1, h2, h3, h4) {
	color: inherit;
	font-family: inherit;
	font-weight: 700;
	text-transform: none;
	text-rendering: auto;
	width: auto;
}

.gh-root a:not(.gh-btn):hover,
.gh-root a:not(.gh-btn):focus {
	color: inherit;
}

.gh-root form {
	margin: 0;
}

.gh-root label {
	color: inherit;
}

.gh-root button {
	font: inherit;
	margin: 0;
	min-height: 0;
	min-width: 0;
	max-width: none;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	text-rendering: auto;
	border-radius: 0;
	position: static;
	vertical-align: baseline;
	transition: none;
	box-shadow: none;
}

.gh-root button:hover,
.gh-root button:focus {
	box-shadow: none;
}

.gh-root :is(input, select, textarea) {
	font: inherit;
	color: inherit;
	height: auto;
	margin: 0;
	max-width: none;
	box-shadow: none;
	border-radius: 0;
	vertical-align: baseline;
	transition: none;
}

.gh-root select {
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
	background-image: none;
}

.gh-root blockquote {
	border: 0;
	color: inherit;
	font-style: normal;
	padding: 0;
	position: static;
}

.gh-root img {
	max-width: none;
	height: auto;
	vertical-align: baseline;
	transition: none;
}

/* ---------------------------------------------------------------------------
 * Mockup styles
 * ------------------------------------------------------------------------ */

.gh-root a {
	color: inherit;
	text-decoration: none;
}

.gh-root button,
.gh-root input {
	font: inherit;
}

.gh-root a,
.gh-root button,
.gh-root input {
	outline-offset: 5px;
}

.gh-root img {
	width: 100%;
	display: block;
	object-fit: cover;
}

.gh-root button {
	cursor: pointer;
}

.gh-root .gh-wrap {
	max-width: 1280px;
	margin: auto;
	padding: 0 36px;
}

.gh-root .gh-utility {
	background: var(--gh-red);
	color: white;
	font-size: 13px;
}

.gh-root .gh-utility .gh-wrap {
	display: flex;
	justify-content: space-between;
	padding-top: 9px;
	padding-bottom: 9px;
}

.gh-root .gh-utility .gh-utility-cta {
	font-weight: 700;
}

.gh-root .gh-utility a:hover {
	text-decoration: underline;
}

.gh-root .gh-mast {
	display: flex;
	align-items: center;
	gap: 40px;
	padding-top: 24px;
	padding-bottom: 24px;
}

.gh-root .gh-logo {
	width: 235px;
	height: auto;
}

/*
 * The search bar holds the site's own product search form (Flatsome's
 * template), so it keeps the old header's live product suggestions. These
 * rules dress it up as the design's bar.
 */
.gh-root .gh-search {
	position: relative;
	display: flex;
	border: 1px solid #d7d7d5;
	max-width: 390px;
	flex: 1;
	background: white;
	transition: border-color .15s, box-shadow .15s;
}

.gh-root .gh-search:focus-within {
	border-color: var(--gh-red);
	box-shadow: 0 0 0 3px #ee334215;
}

.gh-root .gh-search .searchform {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.gh-root .gh-search .search-field {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	min-width: 0;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	background: white;
	color: var(--gh-ink);
	font: inherit;
	line-height: inherit;
}

.gh-root .gh-search .search-field:focus {
	outline: 0;
	box-shadow: none;
	background: white;
	color: var(--gh-ink);
}

.gh-root .gh-search .search-field::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.gh-root .gh-search .ux-search-submit,
.gh-root .gh-search .ux-search-submit:hover,
.gh-root .gh-search .ux-search-submit:focus {
	border: 0;
	border-radius: 0;
	background: white;
	box-shadow: none;
	color: var(--gh-red);
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 10px 15px;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: normal;
	text-transform: none;
}

.gh-root .gh-search .ux-search-submit:hover {
	color: #d92232;
}

/* Beats the Customizer's ".searchform .button.icon i" (black). */
.gh-root .gh-search .searchform .ux-search-submit i {
	color: inherit;
}

/* Flatsome's "searching…" spinner is white; make it red on the white bar. */
.gh-root .gh-search .ux-search-submit.loading {
	color: transparent;
}

.gh-root .gh-search .searchform .ux-search-submit.loading i {
	opacity: 0;
}

.gh-root .gh-search .ux-search-submit.loading::after {
	border-color: var(--gh-red);
}

/* Live product suggestions, styled like the old header's search dropdown. */
.gh-root .gh-search .live-search-results {
	position: absolute;
	top: calc(100% + 1px);
	left: -1px;
	right: -1px;
	z-index: 30;
	text-align: left;
	background: none;
	box-shadow: none;
}

.gh-root .gh-search .autocomplete-suggestions {
	background: var(--gh-red);
	color: white;
	padding: 0;
	max-height: 70vh;
	overflow-y: auto;
	box-shadow: 0 8px 30px #0002;
}

.gh-root .gh-search .autocomplete-suggestion {
	display: flex;
	align-items: center;
	/* Rows run edge to edge; content lines up with the search text. */
	padding: 12px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, .05);
	font-size: 14px;
	line-height: 1.6;
	color: white;
	cursor: pointer;
}

.gh-root .gh-search .autocomplete-suggestion:last-child {
	border-bottom: 0;
}

.gh-root .gh-search .autocomplete-selected {
	background: rgba(0, 0, 0, .05);
}

.gh-root .gh-search .autocomplete-suggestion img {
	flex: none;
	display: inline-block;
	width: 40px;
	height: 40px;
	max-width: none;
	border-radius: 99px;
	object-fit: cover;
	margin-right: 10px;
}

.gh-root .gh-search .search-name {
	flex: 1;
	min-width: 0;
	padding-left: 7px;
	margin-top: -.15em;
}

.gh-root .gh-search .search-name strong {
	font-weight: 700;
}

.gh-root .gh-search .search-price {
	flex: none;
	font-size: 11.2px;
	margin-left: 5px;
	padding-top: 3px;
	color: white;
}

.gh-root .gh-search .search-price .amount {
	font-size: 14px;
	font-weight: 700;
	color: white;
}

.gh-root .gh-search .search-price del .amount {
	font-weight: 400;
	opacity: .6;
}

.gh-root .gh-search .search-price .woocommerce-price-suffix {
	font-size: .8em;
}

/* The catalogue link sits before the search bar, so it does the pushing right. */
.gh-root .gh-catalogue {
	margin-left: auto;
	font-size: 13px;
	font-weight: 700;
	border-bottom: 1px solid var(--gh-red);
	padding-bottom: 4px;
}

.gh-root .gh-navrow {
	border-top: 1px solid var(--gh-line);
	border-bottom: 1px solid var(--gh-line);
}

.gh-root .gh-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 59px;
	font-size: 14px;
	font-weight: 600;
}

.gh-root .gh-nav > a:hover,
.gh-root .gh-nav summary:hover {
	color: var(--gh-red);
}

.gh-root .gh-nav details {
	position: relative;
}

.gh-root .gh-nav summary {
	cursor: pointer;
	list-style: none;
}

.gh-root .gh-nav summary::-webkit-details-marker {
	display: none;
}

.gh-root .gh-nav summary::after {
	content: '⌄';
	margin-left: 8px;
	color: #777;
}

.gh-root .gh-drop {
	position: absolute;
	z-index: 5;
	top: 35px;
	left: 0;
	background: white;
	width: 265px;
	padding: 14px;
	box-shadow: 0 8px 30px #0002;
	border: 1px solid var(--gh-line);
}

.gh-root .gh-drop a {
	display: block;
	padding: 8px;
}

.gh-root .gh-drop a:hover {
	background: var(--gh-grey);
}

.gh-root .gh-mobile {
	display: none;
}

/* The page you're on, like the old Flatsome menu did. */
.gh-root .gh-nav a[aria-current="page"],
.gh-root .gh-nav .gh-current > summary {
	color: var(--gh-red);
}

@media (max-width: 950px) {
	.gh-root .gh-wrap {
		padding-left: 24px;
		padding-right: 24px;
	}

	.gh-root .gh-mast {
		gap: 20px;
	}

	.gh-root .gh-logo {
		width: 190px;
	}

	.gh-root .gh-catalogue {
		max-width: 160px;
	}

	.gh-root .gh-nav {
		gap: 13px;
		font-size: 12px;
	}
}

@media (max-width: 650px) {
	.gh-root .gh-utility {
		font-size: 11px;
	}

	.gh-root .gh-mast {
		flex-wrap: wrap;
		padding-top: 18px;
		padding-bottom: 18px;
		gap: 17px;
	}

	.gh-root .gh-logo {
		width: 170px;
	}

	.gh-root .gh-catalogue {
		margin-left: auto;
		font-size: 11px;
		max-width: 125px;
	}

	.gh-root .gh-search {
		order: 3;
		max-width: none;
		flex-basis: 100%;
	}

	.gh-root .gh-mobile {
		display: block;
		border: 0;
		background: white;
		padding: 15px 24px;
		width: 100%;
		text-align: left;
		font-weight: 700;
	}

	.gh-root .gh-nav {
		display: none;
		align-items: stretch;
		padding-top: 10px;
		padding-bottom: 20px;
		flex-direction: column;
		font-size: 14px;
	}

	.gh-root .gh-nav.gh-open {
		display: flex;
	}

	.gh-root .gh-drop {
		position: static;
		box-shadow: none;
		width: 100%;
		margin-top: 10px;
	}
}
