/* ==========================================================================
   Store-only header & footer (loaded on Store pages only)
   See inc/store-header-footer.php
   ========================================================================== */

/* --- Hide Salient's header, hamburger/off-canvas menu and footer ---------- */
body.ie-store-layout #header-space,
body.ie-store-layout #header-outer,
body.ie-store-layout #search-outer,
body.ie-store-layout .nectar-slide-in-cart,
body.ie-store-layout #slide-out-widget-area,
body.ie-store-layout #slide-out-widget-area-bg,
body.ie-store-layout .slide_out_area_close,
body.ie-store-layout #mobile-menu,
body.ie-store-layout #footer-outer {
	display: none !important;
}

body.ie-store-layout {
	--ie-green: #008000;
	--ie-blue: #023e8a;
	--ie-text: #54565a;
	--ie-border: #e3e5ee;
	--ie-soft-bg: #f4f5fa;
	--ie-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	padding-top: 0 !important;
}

/* --- Shared link style ---------------------------------------------------- */
.ie-store-header a,
.ie-store-footer a {
	text-decoration: none;
	transition: color .2s ease, opacity .2s ease;
}

.ie-store-header a:focus-visible,
.ie-store-footer a:focus-visible {
	outline: 2px solid var(--ie-blue);
	outline-offset: 3px;
	border-radius: 2px;
}

.ie-store-link {
	font-family: var(--ie-font);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	white-space: nowrap;
}

.ie-store-link--back,
.ie-store-link--back:visited {
	color: var(--ie-green) !important;
}

.ie-store-link--account,
.ie-store-link--account:visited {
	color: var(--ie-blue) !important;
}

.ie-store-link:hover {
	text-decoration: underline;
}

.ie-store-link__arrow {
	display: inline-block;
	margin-right: 4px;
	font-weight: 400;
}

/* --- Header --------------------------------------------------------------- */
.ie-store-header {
	position: relative;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--ie-border);
}

.ie-store-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo nav cart";
	align-items: center;
	column-gap: 40px;
	max-width: 1425px;
	margin: 0 auto;
	padding: 20px 90px;
}

.ie-store-header__logo {
	grid-area: logo;
	display: block;
	line-height: 0;
}

.ie-store-header__logo img {
	display: block;
	width: auto;
	height: 60px;
	max-width: none;
}

.ie-store-header__site-name {
	font-family: var(--ie-font);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.2;
	color: var(--ie-blue);
}

.ie-store-header__nav {
	grid-area: nav;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 40px;
}

.ie-store-header__cart,
.ie-store-header__cart:visited {
	grid-area: cart;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ie-blue) !important;
}

.ie-store-header__cart:hover {
	opacity: .75;
}

.ie-store-header__cart-icon {
	display: block;
	width: 26px;
	height: 30px;
}

.ie-store-cart-count {
	position: absolute;
	top: 0;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--ie-green);
	color: #fff;
	font-family: var(--ie-font);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.ie-store-cart-count.is-empty {
	display: none;
}

/* --- Footer --------------------------------------------------------------- */
.ie-store-footer {
	background: var(--ie-soft-bg);
	border-top: 1px solid var(--ie-border);
	text-align: center;
}

.ie-store-footer__inner {
	max-width: 1425px;
	margin: 0 auto;
	padding: 40px 24px 36px;
}

.ie-store-footer p {
	margin: 0;
	padding: 0;
}

.ie-store-footer__back {
	margin-bottom: 18px !important;
}

.ie-store-footer__back .ie-store-link {
	font-size: 20px;
	white-space: normal;
}

.ie-store-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 18px;
	font-family: var(--ie-font);
	font-size: 16px;
	line-height: 1.4;
}

.ie-store-footer__links a,
.ie-store-footer__links a:visited {
	color: var(--ie-green) !important;
	font-weight: 700;
}

.ie-store-footer__links a:hover {
	text-decoration: underline;
}

.ie-store-footer__sep {
	color: var(--ie-text);
}

.ie-store-footer__copyright {
	font-family: var(--ie-font);
	font-size: 15px;
	line-height: 1.7;
	color: var(--ie-text);
}

/* --- Tablet --------------------------------------------------------------- */
@media (max-width: 1300px) {
	.ie-store-header__inner {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* --- Mobile: two-row header (matches Salient's 1000px header breakpoint) -- */
@media (max-width: 999px) {
	.ie-store-header__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo cart"
			"nav  nav";
		row-gap: 14px;
		padding: 14px 24px 0;
	}

	.ie-store-header__logo img {
		height: 48px;
	}

	.ie-store-header__nav {
		justify-content: space-between;
		gap: 16px;
		/* full-bleed second row */
		margin: 0 -24px;
		padding: 12px 24px;
		background: var(--ie-soft-bg);
		border-top: 1px solid var(--ie-border);
	}

	.ie-store-link {
		font-size: 15px;
	}
}

@media (max-width: 380px) {
	.ie-store-header__inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.ie-store-header__nav {
		margin: 0 -16px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.ie-store-link {
		font-size: 14px;
	}

	.ie-store-footer__links {
		font-size: 15px;
	}
}
