.ep-container {
	width: min(100% - 32px, var(--ep-container-width));
	margin-inline: auto;
}

.ep-container--narrow {
	width: min(100% - 2rem, 860px);
}

.ep-main {
	flex: 1 0 auto;
	min-width: 0;
	padding: 1.6rem 0;
}

.ep-site-header {
	position: relative;
	z-index: 80;
	background: var(--ep-color-surface);
	border-bottom: 1px solid var(--ep-color-border);
}

.ep-header-topbar {
	background: #f7f8fb;
	border-bottom: 1px solid var(--ep-color-border);
	color: var(--ep-color-muted);
	font-size: 0.78rem;
}

.ep-header-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 28px;
}

.ep-header-topbar__message {
	margin: 0;
	font-weight: 700;
}

.ep-header-topbar__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ep-header-topbar__link {
	color: var(--ep-color-muted);
	font-weight: 700;
}

.ep-header-topbar__link:hover,
.ep-header-topbar__link:focus {
	color: var(--ep-color-primary-dark);
}

.ep-header-sticky {
	position: sticky;
	top: 0;
	z-index: 90;
	background: #ffffff;
	transition: box-shadow 180ms ease;
}

.ep-site-header--scrolled .ep-header-sticky {
	box-shadow: var(--ep-shadow-sm);
}

.admin-bar .ep-header-sticky {
	top: 32px;
}

.ep-header-main {
	background: var(--ep-color-surface);
}

.ep-header-main__inner {
	display: grid;
	grid-template-columns: minmax(185px, 220px) minmax(360px, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 76px;
}

.ep-header-main__search {
	min-width: 0;
}

/*
 * Mobile-only header row + its own search bar (see responsive.css, max-width: 767px).
 * Desktop keeps its existing 3-column .ep-header-main__inner layout untouched;
 * these two are only ever shown on mobile, never alongside it.
 */
.ep-header-mobile-row,
.ep-header-main__search--mobile {
	display: none;
}

.ep-header-branding {
	display: grid;
	gap: 0.18rem;
	min-width: 0;
}

.ep-header-logo,
.ep-footer__brand-link {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.ep-header-logo__link,
.ep-footer__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--ep-color-text);
	font-weight: 900;
}

.ep-header-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
	max-width: 210px;
}

.ep-header-logo .custom-logo {
	max-width: 180px;
	max-height: 52px;
	width: auto;
}

.ep-header-logo__image {
	display: block;
	max-width: 180px;
	max-height: 32px;
	width: auto;
	height: auto;
}

.ep-footer__brand-image {
	display: block;
	max-width: 150px;
	max-height: 30px;
	width: auto;
	height: auto;
}

.ep-header-logo__mark,
.ep-footer__brand-mark {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 15px;
	background: var(--ep-color-primary);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 900;
	letter-spacing: 0;
}

.ep-header-logo__name,
.ep-footer__brand-name {
	font-size: 1.35rem;
	letter-spacing: 0;
}

.ep-header-branding__tagline {
	margin: 0;
	color: var(--ep-color-muted);
	font-size: 0.78rem;
	font-weight: 700;
}

.ep-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.7rem;
}

.ep-header-nav {
	background: #ffffff;
	border-top: 1px solid var(--ep-color-border);
	border-bottom: 1px solid var(--ep-color-border);
}

.ep-header-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.35rem;
	min-height: 44px;
}

.ep-header-nav__menu {
	min-width: 0;
	flex: 0 1 auto;
	width: 100%;
}

.ep-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 95;
	background: rgba(15, 23, 42, 0.46);
	opacity: 0;
	transition: opacity 180ms ease;
}

.ep-mobile-overlay:not([hidden]) {
	opacity: 1;
}

.ep-mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 100;
	display: grid;
	grid-template-rows: auto 1fr;
	width: min(360px, 88vw);
	height: 100vh;
	background: var(--ep-color-surface);
	box-shadow: -24px 0 50px rgba(36, 49, 63, 0.18);
	transform: translateX(100%);
	transition: transform 220ms ease;
}

.ep-mobile-drawer:not([hidden]) {
	transform: translateX(0);
}

.admin-bar .ep-mobile-drawer {
	top: 32px;
	height: calc(100vh - 32px);
}

.ep-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px solid var(--ep-color-border);
}

.ep-mobile-drawer__close {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ep-color-border);
	border-radius: var(--ep-radius-md);
	background: var(--ep-color-background);
	color: var(--ep-color-text);
}

.ep-mobile-drawer__content {
	display: grid;
	align-content: start;
	gap: 1.2rem;
	overflow-y: auto;
	padding: 1rem;
}

.ep-mobile-drawer__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.ep-mobile-drawer__cart {
	grid-column: 1 / -1;
}

.ep-mobile-drawer__section {
	display: grid;
	gap: 0.75rem;
}

.ep-mobile-drawer__title {
	margin: 0;
	font-size: 0.95rem;
}

.ep-mobile-drawer__quicklinks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.ep-footer {
	margin-top: 1rem;
	background: var(--ep-color-navy);
	border-top: 0;
	color: #c7d2e2;
}

.ep-footer__accordion {
	border: 0;
}

.ep-footer__accordion > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}

.ep-footer__accordion > summary::-webkit-details-marker {
	display: none;
}

.ep-footer__accordion > summary::after {
	content: "+";
	flex: 0 0 auto;
	color: #ffffff;
	font-size: 1.1rem;
}

.ep-footer__accordion[open] > summary::after {
	content: "\2212";
}

.ep-footer__accordion .ep-footer__title {
	margin: 0;
}

.ep-footer__grid {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(130px, 1fr));
	align-items: start;
	gap: 0.9rem;
	padding: 0.9rem 0;
}

.ep-footer__brand-mark {
	width: 22px;
	height: 22px;
	border-radius: 8px;
	font-size: 0.6rem;
}

.ep-footer .custom-logo-link {
	display: inline-flex;
}

.ep-footer .custom-logo {
	max-width: 170px;
	max-height: 44px;
	width: auto;
	height: auto;
}

.ep-footer__brand-name {
	font-size: 0.92rem;
}

.ep-footer__description {
	max-width: 25rem;
	margin: 0.4rem 0 0;
	color: #9ca3af;
	font-size: 0.82rem;
}

.ep-footer__title {
	margin: 0 0 0.45rem;
	color: #ffffff;
	font-size: 0.86rem;
}

.ep-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.45rem 0;
	color: #9ca3af;
	font-size: 0.78rem;
}

.ep-footer__legal {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.ep-shop-layout {
	display: grid;
	grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	width: 100%;
	max-width: 100%;
	margin-top: 1rem;
}

.ep-shop-layout__content {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.ep-shop-layout--full {
	display: block;
}

.ep-filter-overlay {
	position: fixed;
	inset: 0;
	z-index: 115;
	background: rgba(15, 23, 42, 0.46);
	opacity: 0;
	transition: opacity 180ms ease;
}

.ep-filter-overlay:not([hidden]) {
	opacity: 1;
}

.ep-filter-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 120;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(360px, 88vw);
	height: 100vh;
	height: 100dvh;
	background: var(--ep-color-surface);
	box-shadow: -20px 0 44px rgba(15, 23, 42, 0.18);
	transform: translateX(100%);
	transition: transform 220ms ease;
}

.ep-filter-drawer:not([hidden]) {
	transform: translateX(0);
}

.ep-promo-banners {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.admin-bar .ep-filter-drawer {
	top: 32px;
	height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	.admin-bar .ep-header-sticky {
		top: 46px;
	}

	.admin-bar .ep-mobile-drawer,
	.admin-bar .ep-filter-drawer {
		top: 46px;
		height: calc(100vh - 46px);
	}
}
