/*
 * Header: top bar, logo bar, main navigation (desktop, > 800px) and the
 * compact mobile header (<= 800px). Measurements come from the live storefront.
 */

.site-header {
	position: relative;
	z-index: 999;
	background: #fff;
}

/* ---- Top bar ---------------------------------------------------------- */

.rec-topbar {
	position: relative;
	z-index: 99;
	border-bottom: 1px solid #f8f8f8;
	background: #f8f8f8;
}

.rec-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rec-topbar__contact,
.rec-topbar__menu {
	display: flex;
	align-items: center;
}

.rec-topbar a {
	display: block;
	padding: 0 27px;
	color: var(--rec-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 50px;
	white-space: nowrap;
}

.rec-topbar a:hover,
.rec-topbar a:focus {
	color: var(--rec-green);
}

.rec-topbar__icon {
	display: inline-block;
	vertical-align: middle;
}

.rec-topbar__icon svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: var(--rec-text);
	transition: fill 0.15s ease;
}

.rec-topbar__icon--lg svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--rec-text);
}

.rec-topbar a:hover svg,
.rec-topbar a:focus svg {
	fill: var(--rec-green);
}

.rec-topbar a:hover .rec-topbar__icon--lg svg,
.rec-topbar a:focus .rec-topbar__icon--lg svg {
	fill: none;
	stroke: var(--rec-green);
}

.rec-topbar__account {
	position: relative;
}

.rec-topbar__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 100;
	display: none;
	min-width: 100%;
	flex-direction: column;
	align-items: stretch;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.rec-topbar__dropdown a {
	padding: 0 27px;
	line-height: 40px;
}

.rec-topbar__dropdown a:hover,
.rec-topbar__dropdown a:focus {
	background: #f0f0f0;
}

.rec-topbar__account:hover .rec-topbar__dropdown,
.rec-topbar__account:focus-within .rec-topbar__dropdown {
	display: flex;
}

/* ---- Logo bar --------------------------------------------------------- */

.rec-logobar {
	padding: 20px 0;
	background: #fff;
}

.rec-logobar__row {
	display: flex;
	align-items: center;
	margin: 0 -15px;
}

.rec-logobar__logo {
	flex: 0 1 25%;
	max-width: 25%;
	padding: 0 15px;
}

.rec-logo {
	display: block;
}

.rec-logo img {
	display: block;
	width: 250px;
	max-width: 100%;
}

.rec-logobar__search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 50%;
	margin-left: auto;
	padding: 0 15px;
}

.rec-search {
	position: relative;
	margin: 0;
}

.rec-search__input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 60px 0 15px;
	border: 1px solid #d5d5d5;
	border-radius: 30px;
	background: #fff;
	color: #000;
	font-family: var(--rec-font-body);
	font-size: 16px;
	font-weight: 300;
	-webkit-appearance: none;
	appearance: none;
}

.rec-search__input::placeholder {
	color: #757575;
	opacity: 1;
}

.rec-search__input:focus {
	border-color: var(--rec-green);
	outline: none;
}

.rec-search__input:focus::placeholder {
	color: transparent;
}

.rec-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.rec-search__button {
	position: absolute;
	top: 5px;
	right: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rec-green);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.rec-search__button:hover,
.rec-search__button:focus {
	background: var(--rec-green-dark);
}

.rec-search__button svg {
	width: 18px;
	height: 18px;
}

.rec-logobar__wish {
	flex: 0 0 auto;
	padding: 0 10px;
}

.rec-logobar__wish a {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 60px;
	color: var(--rec-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	white-space: nowrap;
}

.rec-logobar__wish a:hover,
.rec-logobar__wish a:focus {
	color: var(--rec-green);
}

.rec-logobar__wish svg {
	display: block;
	width: 36px;
	height: 36px;
	margin: 0 auto;
	color: var(--rec-olive);
}

.rec-logobar__cart {
	flex: 0 0 auto;
	padding: 0 15px;
}

.rec-cart {
	display: flex;
	align-items: center;
	color: var(--rec-text);
	font-family: var(--rec-font-nav);
}

.rec-cart:hover,
.rec-cart:focus {
	color: var(--rec-text);
}

.rec-cart__icon {
	position: relative;
	display: block;
	width: 50px;
	height: 50px;
	padding: 10px;
}

.rec-cart__icon svg {
	display: block;
	width: 30px;
	height: 30px;
	fill: var(--rec-text);
	stroke: var(--rec-text);
}

.rec-cart__badge {
	position: absolute;
	top: 5px;
	right: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--rec-green);
	color: #fff;
	font-size: 12px;
	font-weight: 300;
	line-height: 20px;
	text-align: center;
}

.rec-cart__text {
	display: block;
	margin-left: 9px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
	white-space: nowrap;
}

.rec-cart__total {
	color: var(--rec-olive);
	font-weight: 700;
}

.rec-cart__text svg {
	width: 8px;
	height: 8px;
	margin-left: 4px;
	fill: var(--rec-text);
}

/* ---- Main navigation (desktop) ---------------------------------------- */

.rec-mainnav {
	border: 1px solid #eeeff3;
	background: #fff;
}

.rec-mainnav .rec-container {
	position: relative;
}

.rec-mainnav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.rec-mainnav__link {
	display: block;
	padding: 20px 10px;
	color: var(--rec-ink);
	font-family: var(--rec-font-nav);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	white-space: nowrap;
}

.rec-mainnav__link:hover,
.rec-mainnav__link:focus,
.rec-mainnav__item:hover > .rec-mainnav__link,
.rec-mainnav__item.is-open > .rec-mainnav__link {
	color: var(--rec-hover-blue);
}

.rec-mainnav__link.is-new,
.rec-mainnav__link.is-soon {
	color: var(--rec-blue) !important;
}

.rec-mainnav__chevron {
	width: 8px;
	height: 8px;
	margin-left: 10px;
	fill: currentColor;
	stroke: currentColor;
}

.rec-mainnav__item--dropdown {
	position: relative;
}

.rec-submenu {
	position: absolute;
	top: 100%;
	z-index: 999;
	visibility: hidden;
	background: #fff;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.rec-mainnav__item:hover > .rec-submenu,
.rec-mainnav__item:focus-within > .rec-submenu,
.rec-mainnav__item.is-open > .rec-submenu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s;
}

/* Categories mega menu: four columns across the full container. */
.rec-submenu--mega {
	right: 0;
	left: 0;
	padding: 27px 42px 12px 27px;
}

.rec-submenu__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rec-submenu__group {
	margin-bottom: 15px;
	padding-right: 20px;
}

.rec-submenu__heading {
	display: block;
	color: var(--rec-green);
	font-family: var(--rec-font-nav);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-transform: uppercase;
}

.rec-submenu__heading:hover,
.rec-submenu__heading:focus {
	color: var(--rec-text);
}

.rec-submenu__links {
	margin-top: 5px;
}

.rec-submenu__links a {
	display: block;
	padding: 2px 0;
	color: var(--rec-text);
	font-family: var(--rec-font-nav);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
}

.rec-submenu__links a:hover,
.rec-submenu__links a:focus {
	color: var(--rec-green);
}

/* Services / INFO dropdowns. */
.rec-submenu--page {
	left: 0;
	width: 220px;
}

.rec-submenu__pages a {
	display: block;
	padding: 7px 15px;
	color: var(--rec-text);
	font-family: var(--rec-font-nav);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-transform: uppercase;
}

.rec-submenu__pages a:hover,
.rec-submenu__pages a:focus {
	background: #f0f0f0;
	color: var(--rec-green);
}

/* ---- Mobile header (<= 800px) ----------------------------------------- */

.rec-mobilebar {
	display: none;
}

.rec-mobilebar__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 20px 15px;
}

.rec-mobilebar__toggle {
	display: block;
	width: 60px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.rec-mobilebar__toggle svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: var(--rec-text);
	stroke: var(--rec-text);
}

.rec-mobilebar__logo .rec-logo img {
	width: auto;
	max-height: 3rem;
}

.rec-mobilebar__right {
	justify-self: end;
}

.rec-mobilebar__cart {
	display: block;
}

.rec-mobilebar__cart svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: var(--rec-text);
	stroke: var(--rec-text);
}

.rec-mobilemenu {
	padding: 13px 27px 27px;
	background: #fff;
}

.rec-mobilemenu[hidden],
.rec-mobilemenu [hidden] {
	display: none;
}

.rec-mobilemenu__search {
	margin: 0 0 14px;
}

.rec-mobilemenu__search input {
	display: block;
	width: 100%;
	height: 54px;
	padding: 13.5px 18px;
	border: 1px solid #ccc;
	border-radius: 30px;
	background: #fff;
	color: #666;
	font-family: var(--rec-font-body);
	font-size: 18px;
	font-weight: 300;
	-webkit-appearance: none;
	appearance: none;
}

.rec-mobilemenu__search input:focus {
	border-color: var(--rec-green);
	outline: none;
}

.rec-mobilemenu__button {
	display: block;
	height: 40px;
	margin-bottom: 14px;
	padding: 10px;
	border: 2px solid var(--rec-ink);
	border-radius: 5px;
	color: var(--rec-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-align: center;
	text-transform: uppercase;
}

.rec-mobilemenu__button:hover,
.rec-mobilemenu__button:focus {
	background: var(--rec-ink);
	color: #fff;
}

.rec-mobilemenu__list {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--rec-ink);
}

.rec-mobilemenu__list--user {
	margin-top: 14px;
}

.rec-mobilemenu__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.rec-mobilemenu__link,
.rec-mobilemenu__sublink {
	display: block;
	flex: 1 1 auto;
	padding: 10px 0;
	color: var(--rec-ink);
	font-family: var(--rec-font-nav);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-transform: uppercase;
}

.rec-mobilemenu__expand {
	flex: 0 0 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.rec-mobilemenu__expand svg {
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto;
	fill: var(--rec-ink);
	transition: transform 0.2s ease;
}

.rec-mobilemenu__expand[aria-expanded="true"] svg {
	transform: rotate(90deg);
}

.rec-mobilemenu__sub {
	padding: 0 0 8px 15px;
}

.rec-mobilemenu__sublink {
	padding: 7px 0;
	color: var(--rec-green);
	font-size: 14px;
}

.rec-mobilemenu__sub--deep {
	padding: 0 0 4px 15px;
}

.rec-mobilemenu__sub--deep .rec-mobilemenu__sublink {
	padding: 4px 0;
	color: var(--rec-text);
	font-weight: 400;
	text-transform: none;
}

@media (max-width: 800px) {
	.rec-topbar,
	.rec-logobar,
	.rec-mainnav {
		display: none;
	}

	.rec-mobilebar {
		position: relative;
		z-index: 99;
		display: block;
		background: #fff;
	}

	.body {
		margin-top: 27px;
	}
}
