/*
 * Final EMS storefront header layer.
 * Loaded after WoodMart and the legacy foundation rules so every public page
 * keeps the reference storefront shell isolated from theme bleed.
 */

body.ems-shell-active .whb-header,
body.ems-shell-active .wd-header,
body.ems-shell-active #masthead:not(.ems-shell-header),
body.ems-shell-active .site-header:not(.ems-shell-header) {
	display: none !important;
}

body.ems-shell-active .ems-shell-header,
body.ems-shell-active .ems-shell-header *,
body.ems-shell-active .ems-shell-header *::before,
body.ems-shell-active .ems-shell-header *::after {
	box-sizing: border-box;
}

body.ems-shell-active .ems-shell-header {
	position: relative;
	z-index: 100;
	width: 100%;
	margin: 0;
	font-family: Inter, Arial, Helvetica, sans-serif;
	letter-spacing: 0;
}

body.ems-shell-active .ems-shell-header button,
body.ems-shell-active .ems-shell-header input,
body.ems-shell-active .ems-shell-header select {
	font: inherit;
	letter-spacing: 0;
}

body.ems-shell-active .ems-shell-container {
	width: min(1320px, calc(100% - 48px)) !important;
	max-width: 1320px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
}

body.ems-shell-active .ems-shell-utility {
	position: relative;
	z-index: 3;
	display: flex !important;
	min-height: 32px !important;
	background: #fff !important;
	border: 0 !important;
	border-bottom: 1px solid #e5e5e5 !important;
	color: #111 !important;
}

body.ems-shell-active .ems-shell-utility__inner {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 32px !important;
}

body.ems-shell-active .ems-shell-utility__message {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	text-align: center !important;
}

body.ems-shell-active .ems-shell-utility__message strong {
	font-weight: 700 !important;
}

body.ems-shell-active .ems-shell-utility__message a {
	color: #111 !important;
	text-decoration: none !important;
}

body.ems-shell-active .ems-shell-logo {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ems-shell-active .ems-shell-logo img {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
}

body.ems-shell-active .ems-shell-search {
	position: relative !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 220px 64px !important;
	width: 100% !important;
	height: 58px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #fff !important;
	border: 2px solid #e5e5e5 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}

body.ems-shell-active .ems-shell-search-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper {
	position: absolute !important;
	z-index: 420 !important;
	top: calc(100% + 8px) !important;
	right: 0 !important;
	left: 0 !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .wd-dropdown-results {
	position: relative !important;
	inset: auto !important;
	display: block;
	width: 100% !important;
	max-width: none !important;
	max-height: min(620px, calc(100vh - 190px)) !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .16) !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .25s ease, visibility .25s ease, transform .25s ease !important;
	pointer-events: auto !important;
}

body.ems-shell-active .ems-shell-search-wrap.wd-searched .ems-shell-search-results-wrapper,
body.ems-shell-active .ems-shell-search-results-wrapper .wd-dropdown-results.wd-opened {
	pointer-events: auto !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .wd-dropdown-results.wd-opened {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

body.ems-shell-active .ems-shell-search-results-wrapper .wd-scroll-content {
	max-height: min(620px, calc(100vh - 190px)) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

body.ems-shell-active .ems-shell-search-results-wrapper .wd-suggestion {
	min-width: 0 !important;
	text-align: left !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .wd-suggestion-thumb img {
	display: block !important;
	width: 65px !important;
	height: 65px !important;
	object-fit: cover !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .wd-entities-title,
body.ems-shell-active .ems-shell-search-results-wrapper .wd-suggestion-sku,
body.ems-shell-active .ems-shell-search-results-wrapper .price {
	color: #222 !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .price del {
	color: #777 !important;
	opacity: 1 !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .price ins {
	color: var(--ems-accent, #F6A51C) !important;
	text-decoration: none !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .price .ems-price-stack {
	display: flex !important;
	align-items: flex-start !important;
	flex-direction: column !important;
	gap: 2px !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .price .ems-price-current {
	color: var(--ems-accent, #F6A51C) !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .price .ems-price-comparison {
	display: inline-flex !important;
	align-items: baseline !important;
	flex-wrap: wrap !important;
	gap: 3px !important;
	color: #777 !important;
	font-size: .82em !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
}

body.ems-shell-active .ems-shell-search-results-wrapper .price .ems-price-comparison-amount {
	color: inherit !important;
	text-decoration: line-through !important;
	text-decoration-thickness: 1px !important;
}

body.ems-shell-active .ems-shell-search__input,
body.ems-shell-active .ems-shell-search__category,
body.ems-shell-active .ems-shell-search__submit {
	height: 54px !important;
	min-height: 54px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.ems-shell-active .ems-shell-search__input {
	min-width: 0 !important;
	padding: 0 22px !important;
	background: #fff !important;
	color: #333 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
}

body.ems-shell-active .ems-shell-search__input::placeholder {
	color: #777 !important;
	opacity: 1 !important;
}

body.ems-shell-active .ems-shell-search__category {
	width: 220px !important;
	padding: 0 42px 0 18px !important;
	background-color: #fff !important;
	border-left: 1px solid #e5e5e5 !important;
	color: #4c4c4c !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
}

body.ems-shell-active .ems-shell-search__submit {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 64px !important;
	min-width: 64px !important;
	padding: 0 !important;
	background: var(--ems-accent, #F6A51C) !important;
	color: #fff !important;
	cursor: pointer !important;
}

body.ems-shell-active .ems-shell-search__submit svg {
	width: 25px !important;
	height: 25px !important;
	stroke: currentColor !important;
}

body.ems-shell-active .ems-shell-cart-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: #fff !important;
	text-decoration: none !important;
}

body.ems-shell-active .ems-shell-cart-link svg {
	width: 30px !important;
	height: 30px !important;
	stroke: currentColor !important;
}

body.ems-shell-active .ems-shell-cart-link__icon {
	position: relative !important;
	display: grid !important;
	place-items: center !important;
	width: 30px !important;
	height: 30px !important;
	overflow: visible !important;
}

body.ems-shell-active .ems-shell-cart-link__count {
	position: absolute !important;
	top: -7px !important;
	right: -9px !important;
	display: grid !important;
	place-items: center !important;
	min-width: 19px !important;
	width: auto !important;
	height: 19px !important;
	margin: 0 !important;
	padding: 0 4px !important;
	border: 2px solid #050505 !important;
	border-radius: 999px !important;
	background: var(--ems-accent, #F6A51C) !important;
	color: #fff !important;
	font-size: 9px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	transform: none !important;
}

@media (min-width: 768px) {
	body.ems-shell-active .ems-shell-mobile {
		display: none !important;
	}

	body.ems-shell-active .ems-shell-desktop {
		display: block !important;
		position: relative !important;
		width: 100% !important;
	}

	body.ems-shell-active .ems-shell-primary {
		display: block !important;
		width: 100% !important;
		min-height: 96px !important;
		background: #050505 !important;
		border: 0 !important;
	}

	body.ems-shell-active .ems-shell-primary__inner {
		display: grid !important;
		grid-template-columns: 220px minmax(360px, 1fr) 154px !important;
		align-items: center !important;
		gap: 28px !important;
		min-height: 96px !important;
	}

	body.ems-shell-active .ems-shell-primary .ems-shell-logo {
		justify-content: flex-start !important;
		width: 220px !important;
	}

	body.ems-shell-active .ems-shell-primary .ems-shell-logo img {
		max-width: 218px !important;
		max-height: 58px !important;
	}

	body.ems-shell-active .ems-shell-actions {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		min-width: 0 !important;
	}

	body.ems-shell-active .ems-shell-cart-link__label,
	body.ems-shell-active .ems-shell-cart-link__total {
		display: inline !important;
		color: #fff !important;
		font-size: 14px !important;
		font-weight: 600 !important;
	}

	body.ems-shell-active .ems-shell-nav-row {
		display: block !important;
		position: relative;
		z-index: 2;
		width: 100% !important;
		min-height: 58px !important;
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		border: 0 !important;
		border-bottom: 1px solid #e7e7e7 !important;
		box-shadow: none !important;
	}

	body.ems-shell-active .ems-shell-nav {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-height: 58px !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.ems-shell-active .ems-shell-nav__list {
		display: flex !important;
		align-items: stretch !important;
		justify-content: center !important;
		gap: 38px !important;
		width: auto !important;
		min-height: 58px !important;
		margin: 0 auto !important;
		padding: 0 !important;
		list-style: none !important;
	}

	body.ems-shell-active .ems-shell-nav__list > li {
		display: flex !important;
		align-items: center !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.ems-shell-active .ems-shell-nav__link {
		display: flex !important;
		align-items: center !important;
		min-height: 58px !important;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		color: #161616 !important;
		font-size: 14px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
		text-decoration: none !important;
		text-transform: uppercase !important;
		white-space: nowrap !important;
	}

	body.ems-shell-active .ems-shell-nav__link:hover,
	body.ems-shell-active .ems-shell-nav__link:focus-visible,
	body.ems-shell-active .ems-shell-nav .current-menu-item > .ems-shell-nav__link,
	body.ems-shell-active .ems-shell-nav__link[aria-current="page"] {
		color: var(--ems-accent, #F6A51C) !important;
	}
}

@media (max-width: 767px) {
	body.ems-shell-active .ems-shell-container {
		width: 100% !important;
		max-width: none !important;
	}

	body.ems-shell-active .ems-shell-desktop {
		display: none !important;
	}

	body.ems-shell-active .ems-shell-mobile {
		display: block !important;
		width: 100% !important;
		background: #050505 !important;
	}

	body.ems-shell-active .ems-shell-utility,
	body.ems-shell-active .ems-shell-utility__inner {
		min-height: 44px !important;
	}

	body.ems-shell-active .ems-shell-utility__message {
		padding: 0 12px !important;
		font-size: 14px !important;
		white-space: nowrap !important;
	}

	body.ems-shell-active .ems-shell-mobile__bar {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
		align-items: center !important;
		width: 100% !important;
		height: 86px !important;
		min-height: 86px !important;
		padding: 0 20px !important;
		background: #050505 !important;
		border: 0 !important;
	}

	body.ems-shell-active .ems-shell-menu-toggle {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 10px !important;
		justify-self: start !important;
		width: auto !important;
		min-width: 0 !important;
		height: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		color: #fff !important;
	}

	body.ems-shell-active .ems-shell-menu-toggle svg {
		width: 28px !important;
		height: 28px !important;
		stroke: currentColor !important;
	}

	body.ems-shell-active .ems-shell-menu-toggle__label {
		display: inline !important;
		font-size: 16px !important;
		font-weight: 700 !important;
		line-height: 1 !important;
	}

	body.ems-shell-active .ems-shell-mobile__bar .ems-shell-logo {
		position: static !important;
		justify-self: center !important;
		width: 150px !important;
		min-width: 0 !important;
		transform: none !important;
	}

	body.ems-shell-active .ems-shell-mobile__bar .ems-shell-logo img {
		max-width: 150px !important;
		max-height: 34px !important;
	}

body.ems-shell-active .ems-shell-mobile__cart {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  justify-self: end !important;
  min-width: 42px !important;
}

body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart--mobile,
body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart-link--mobile {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  overflow: visible !important;
}

body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart--mobile svg,
body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart-link--mobile svg {
  width: 28px !important;
  height: 28px !important;
}

body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart__label,
body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart__total,
body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart-link__label,
body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart-link__total {
  display: none !important;
}

body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart__count,
body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart-link__count {
  position: absolute !important;
  top: 3px !important;
  right: -2px !important;
  display: grid !important;
  place-items: center !important;
  min-width: 19px !important;
  width: auto !important;
  height: 19px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 2px solid #050505 !important;
  border-radius: 999px !important;
  background: var(--ems-accent, #F6A51C) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: none !important;
}

body.ems-shell-active .ems-shell-mobile__cart .ems-shell-cart-link__icon {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  overflow: visible !important;
}

	body.ems-shell-active .ems-shell-mobile-search {
		display: block !important;
		width: 100% !important;
		min-height: 72px !important;
		margin: 0 !important;
		padding: 10px 16px 12px !important;
		background: #fff !important;
		border: 0 !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search {
		grid-template-columns: minmax(0, 1fr) 58px !important;
		height: 50px !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search__input,
	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search__submit {
		height: 46px !important;
		min-height: 46px !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search__input {
		padding: 0 18px !important;
		font-size: 16px !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search__category {
		display: none !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search__submit {
		width: 58px !important;
		min-width: 58px !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search-results-wrapper {
		top: calc(100% + 6px) !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search-results-wrapper .wd-dropdown-results,
	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search-results-wrapper .wd-scroll-content {
		max-height: min(430px, calc(100vh - 180px)) !important;
	}

	body.ems-shell-active .ems-shell-mobile-search .ems-shell-search-results-wrapper .wd-suggestion-thumb img {
		width: 45px !important;
		height: 45px !important;
	}

	body.ems-shell-active .ems-shell-mobile__bar .ems-shell-action--account,
	body.ems-shell-active .ems-shell-mobile__bar .my-account-with-icon,
	body.ems-shell-active .ems-shell-mobile__bar .wd-header-my-account {
		display: none !important;
	}
}

@media (max-width: 430px) {
	body.ems-shell-active .ems-shell-mobile__bar {
		padding-right: 14px !important;
		padding-left: 14px !important;
	}

	body.ems-shell-active .ems-shell-menu-toggle {
		gap: 7px !important;
	}

	body.ems-shell-active .ems-shell-menu-toggle__label {
		font-size: 14px !important;
	}

	body.ems-shell-active .ems-shell-mobile__bar .ems-shell-logo,
	body.ems-shell-active .ems-shell-mobile__bar .ems-shell-logo img {
		max-width: 136px !important;
	}
}
