.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--eliyas-border);
	--eliyas-header-height: 76px;
}

body.admin-bar .site-header {
	top: 32px;
}

body.admin-bar .products-mega-menu {
	top: calc(var(--eliyas-header-height) + 32px);
}

.site-header__inner,
.site-header__search-form,
.site-footer__inner,
.section,
.page-content,
.archive-content,
.shop-content,
.shop-archive {
	width: min(100% - 2rem, var(--eliyas-max));
	margin-inline: auto;
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
	align-items: center;
	gap: 1rem;
	min-height: 76px;
}

.site-header__title {
	font-size: 1.35rem;
	font-weight: 700;
	text-decoration: none;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-width: 160px;
	max-height: 54px;
	width: auto;
	height: auto;
}

.site-header__nav {
	justify-self: center;
}

.header-menu,
.primary-menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-menu a,
.primary-menu a,
.footer-menu a {
	color: var(--eliyas-text);
	font-size: 0.94rem;
	text-decoration: none;
}

.header-menu > .menu-item {
	display: flex;
	align-items: center;
	min-height: var(--eliyas-header-height);
}

.header-menu > .menu-item > a {
	display: inline-flex;
	align-items: center;
	min-height: var(--eliyas-header-height);
}

.header-menu a:hover,
.header-menu .current-menu-item > a,
.header-menu .current-menu-ancestor > a {
	color: var(--eliyas-accent);
}

.header-menu > .menu-item.has-products-mega-menu > a:focus-visible ~ .products-mega-menu,
.header-menu > .menu-item.has-products-mega-menu:focus-within > .products-mega-menu,
.header-menu > .menu-item.has-products-mega-menu:hover > .products-mega-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.products-mega-menu__toggle {
	display: none;
}

.products-mega-menu {
	position: fixed;
	top: var(--eliyas-header-height);
	left: 0;
	width: 100vw;
	padding: 1.25rem 1rem 1.5rem;
	border-top: 1px solid var(--eliyas-border);
	border-bottom: 1px solid var(--eliyas-border);
	background: #fff;
	box-shadow: 0 18px 36px rgb(30 27 24 / 8%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.products-mega-menu__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	width: min(100%, var(--eliyas-max));
	margin-inline: auto;
}

.products-mega-menu__card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 220px;
	overflow: hidden;
	border-radius: var(--eliyas-radius);
	background-color: #ede6df;
	background-position: center;
	background-size: cover;
	color: #fff;
	text-decoration: none;
	transform: translateY(0);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.products-mega-menu__card:hover,
.products-mega-menu__card:focus-visible {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 18px 36px rgb(30 27 24 / 14%);
}

.products-mega-menu__card--fallback {
	background:
		linear-gradient(135deg, #efe7df, #d8c7ba),
		#ede6df;
}

.products-mega-menu__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(30 27 24 / 10%), rgb(30 27 24 / 58%));
	transition: background 180ms ease;
}

.products-mega-menu__card:hover .products-mega-menu__overlay,
.products-mega-menu__card:focus-visible .products-mega-menu__overlay {
	background: linear-gradient(180deg, rgb(30 27 24 / 4%), rgb(30 27 24 / 68%));
}

.products-mega-menu__name {
	position: relative;
	z-index: 1;
	display: block;
	padding: 1.1rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.15;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
}

.site-header__icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--eliyas-text);
	text-decoration: none;
}

.site-header__icon-link:hover {
	background: #f7f4f1;
	color: var(--eliyas-accent);
}

.site-header__icon-link--active {
	color: #168247;
}

.site-header__icon-link svg,
.site-header__toggle svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-header__cart-count {
	position: absolute;
	top: 0.25rem;
	right: 0.15rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding-inline: 0.35rem;
	border-radius: 999px;
	background: var(--eliyas-accent);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.1rem;
	text-align: center;
}

.site-header__toggle {
	display: none;
	color: var(--eliyas-text);
}

.site-header__search[hidden] {
	display: none;
}

.site-header__search {
	border-top: 1px solid var(--eliyas-border);
	background: #fff;
}

.site-header__search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	padding-block: 0.85rem;
}

.site-header__search-form input[type="search"] {
	min-height: 44px;
	width: 100%;
	border: 1px solid var(--eliyas-border);
	border-radius: var(--eliyas-radius);
	padding: 0.7rem 0.85rem;
	background: #fff;
}

.hero {
	min-height: 60vh;
	display: grid;
	align-items: center;
	padding: clamp(4rem, 9vw, 7rem) 1rem;
	background:
		linear-gradient(90deg, rgb(251 250 248 / 94%), rgb(251 250 248 / 74%)),
		linear-gradient(135deg, #f4e8e0, #f7f3ef 42%, #efe3dc);
}

.hero__inner {
	width: min(100%, var(--eliyas-max));
	margin-inline: auto;
}

.hero__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--eliyas-accent);
	font-weight: 700;
}

.hero h1 {
	max-width: 12ch;
	margin: 0;
	font-size: clamp(3rem, 7vw, 6.5rem);
	line-height: 0.95;
}

.hero p:not(.hero__eyebrow) {
	max-width: 34rem;
	margin: 1.25rem 0 2rem;
	color: var(--eliyas-muted);
	font-size: 1.1rem;
}

.section,
.page-content,
.archive-content,
.shop-content,
.shop-archive {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.section__header,
.page-content__header,
.archive-content__header,
.shop-archive__header {
	margin-bottom: 1.5rem;
}

.section__header h2,
.page-content__header h1,
.archive-content__header h1,
.shop-archive__header h1 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.08;
}

.page-content__body,
.section--content {
	max-width: 780px;
}

.archive-content__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.25rem;
}

.archive-card {
	border-bottom: 1px solid var(--eliyas-border);
	padding-bottom: 1rem;
}

.archive-card a {
	text-decoration: none;
}

.archive-card h2 {
	font-size: 1.1rem;
}

.site-footer {
	border-top: 1px solid var(--eliyas-border);
	padding-block: 2rem;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer__brand {
	margin: 0;
	color: var(--eliyas-muted);
}

@media (max-width: 760px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto auto;
		gap: 0.5rem;
		min-height: 68px;
	}

	.site-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: transparent;
	}

	.site-header__nav {
		display: none;
		grid-column: 1 / -1;
		justify-self: stretch;
		padding-bottom: 1rem;
	}

	.site-header__nav.is-open {
		display: block;
	}

	.header-menu,
	.primary-menu {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
		padding-top: 0.5rem;
		border-top: 1px solid var(--eliyas-border);
	}

	.header-menu a,
	.primary-menu a {
		display: block;
		padding-block: 0.7rem;
	}

	.header-menu > .menu-item {
		display: block;
		width: 100%;
		min-height: 0;
	}

	.header-menu > .menu-item > a {
		display: inline-flex;
		min-height: 0;
		padding-block: 0.7rem;
	}

	.header-menu > .menu-item.has-products-mega-menu {
		position: relative;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.products-mega-menu__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border: 0;
		border-radius: 999px;
		background: transparent;
		color: var(--eliyas-text);
		cursor: pointer;
	}

	.products-mega-menu__toggle::before,
	.products-mega-menu__toggle::after {
		position: absolute;
		width: 13px;
		height: 1px;
		background: currentColor;
		content: "";
		transition: transform 160ms ease;
	}

	.products-mega-menu__toggle::after {
		transform: rotate(90deg);
	}

	.header-menu > .menu-item.has-products-mega-menu.is-mega-open .products-mega-menu__toggle::after {
		transform: rotate(0deg);
	}

	.products-mega-menu {
		position: static;
		grid-column: 1 / -1;
		width: 100%;
		padding: 0.25rem 0 0.9rem;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
		display: none;
	}

	.header-menu > .menu-item.has-products-mega-menu.is-mega-open > .products-mega-menu {
		display: block;
	}

	.products-mega-menu__inner {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		width: 100%;
	}

	.products-mega-menu__card {
		min-height: 132px;
	}

	.products-mega-menu__name {
		padding: 0.9rem;
		font-size: 1rem;
	}

	.site-header__actions {
		gap: 0.1rem;
	}

	.site-header__icon-link {
		width: 38px;
		height: 38px;
	}

	.site-header__search-form {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}
