/* Amish Country Heirlooms custom header */

.site-header {
	background: #fff;
	box-shadow: none;
	position: relative;
	z-index: 300;
}

.site-header > .wrap {
	max-width: none;
	padding: 0;
	width: 100%;
}

.ach-header-shell,
.ach-header-shell * {
	box-sizing: border-box;
}

.ach-header-shell {
	--ach-red: #940417;
	--ach-text: #000;
	--ach-cream: #f2eae6;
	background: #fff;
	font-family: "Sora", sans-serif;
	max-width: 100%;
	position: relative;
	width: 100%;
}

.ach-header-top {
	align-items: center;
	column-gap: clamp(24px, 4vw, 72px);
	display: grid;
	grid-template-columns: minmax(190px, 300px) minmax(280px, 1fr) minmax(190px, 300px);
	margin: 0 auto;
	max-width: 100%;
	padding: 32px 52px 24px;
	width: 100%;
}

.ach-header-logo {
	align-items: center;
	display: flex;
	min-width: 0;
}

.ach-header-logo .custom-logo-link,
.ach-header-logo .custom-logo,
.ach-header-logo img {
	display: block;
}

.ach-header-logo .custom-logo,
.ach-header-logo img {
	height: auto;
	max-height: 94px;
	max-width: 280px;
	width: auto;
}

.ach-site-title {
	color: var(--ach-red);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
}

.ach-header-search-form {
	align-items: center;
	background: #fff;
	border: 1px solid #222;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 56px;
	height: 50px;
	margin: 0 auto;
	max-width: 970px;
	width: 100%;
}

.ach-header-search-field {
	appearance: none;
	background: transparent;
	border: 0;
	color: #333;
	font-family: "Sora", sans-serif;
	font-size: 18px;
	height: 100%;
	line-height: 1.2;
	min-width: 0;
	padding: 0 18px;
	width: 100%;
}

.ach-header-search-field:focus {
	box-shadow: none;
	outline: 2px solid var(--ach-red);
	outline-offset: -2px;
}

.ach-header-search-submit {
	align-items: center;
	background: transparent;
	border: 0;
	color: #000;
	cursor: pointer;
	display: inline-flex;
	font-size: 26px;
	height: 100%;
	justify-content: center;
	padding: 0;
	width: 56px;
}

.ach-header-search-submit:focus,
.ach-header-search-submit:hover {
	color: var(--ach-red);
}

.ach-header-actions {
	align-items: center;
	display: flex;
	gap: 22px;
	justify-content: flex-end;
}

.ach-social-menu {
	align-items: center;
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ach-social-menu__item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header .ach-header-shell .ach-social-menu .ach-social-menu__link {
	align-items: center;
	color: #fff;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	width: 44px;
}

.site-header .ach-header-shell .ach-social-menu .ach-social-menu__link i {
	color: var(--ach-red);
	line-height: 1;
}

.site-header .ach-header-shell .ach-social-menu .ach-social-menu__link:focus,
.site-header .ach-header-shell .ach-social-menu .ach-social-menu__link:hover {
	color: var(--ach-red);
	text-decoration: none;
}

.site-header .ach-header-shell .ach-social-menu .ach-social-menu__link:focus i,
.site-header .ach-header-shell .ach-social-menu .ach-social-menu__link:hover i {
	color: #000;
}

.ach-primary-nav {
	margin: 0 auto;
	max-width: 1530px;
	position: relative;
	width: calc(100% - 104px);
}

.ach-primary-menu {
	align-items: center;
	display: flex;
	gap: clamp(26px, 3.1vw, 58px);
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 14px 0 16px;
}

.ach-primary-menu__item {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.ach-primary-menu__item > a {
	border-bottom: 3px solid transparent;
	color: var(--ach-text);
	display: inline-flex;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	padding: 0 0 6px;
	text-decoration: none;
	white-space: nowrap;
}

.ach-primary-menu__item.current-menu-item > a,
.ach-primary-menu__item.current-menu-ancestor > a,
.ach-primary-menu__item.mega_open > a,
.ach-primary-menu__item > a:focus,
.ach-primary-menu__item > a:hover {
	border-bottom-color: var(--ach-red);
	color: var(--ach-text);
	text-decoration: none;
}

.ach-mega-trigger {
	position: static;
}

.ach-mega-panel {
	background: rgba(242, 234, 230, 0.9);
	border-radius: 5px;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
	display: none;
	left: 50%;
	overflow: hidden;
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
	width: min(1500px, calc(100vw - 80px));
	z-index: 350;
}

.ach-mega-trigger.mega_open > .ach-mega-panel {
	display: block;
}

.ach-mega-panel__inner {
	display: grid;
	grid-template-columns: minmax(300px, 28%) minmax(0, 1fr);
	height: 478px;
}

.ach-mega-panel__links {
	padding: 30px 40px 42px;
}

.ach-mega-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ach-mega-panel__list-item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ach-mega-panel__list a {
	color: #000;
	display: inline-block;
	font-family: "Sora", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.25;
	padding: 6px 0;
	text-decoration: none;
}

.ach-mega-panel__list a:focus,
.ach-mega-panel__list a:hover {
	color: var(--ach-red);
	text-decoration: none;
}

.ach-mega-panel__image-link,
.ach-mega-panel__image {
	display: block;
	height: 100%;
	width: 100%;
}

.ach-mega-panel__image {
	object-fit: cover;
	object-position: center center;
}

.ach-sub-menu {
	background: var(--ach-cream);
	border-radius: 5px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
	display: none;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 230px;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	z-index: 340;
}

.ach-primary-menu__item:focus-within > .ach-sub-menu,
.ach-primary-menu__item:hover > .ach-sub-menu {
	display: block;
}

.ach-sub-menu .ach-sub-menu {
	left: 100%;
	top: 0;
}

.ach-sub-menu__item {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.ach-sub-menu a {
	color: #000;
	display: block;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	padding: 9px 18px;
	text-decoration: none;
	white-space: nowrap;
}

.ach-sub-menu a:focus,
.ach-sub-menu a:hover {
	background: rgba(148, 4, 23, 0.08);
	color: var(--ach-red);
}

.ach-menu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: #000;
	cursor: pointer;
	display: none;
	font-size: 30px;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.ach-menu-toggle__close,
.ach-header-shell.menu_open .ach-menu-toggle__open {
	display: none;
}

.ach-header-shell.menu_open .ach-menu-toggle__close {
	display: inline-block;
}

.ach-mobile-nav {
	display: none;
}

.ach-header-shell .ach-mobile-nav .ach-submenu-toggle .ach-submenu-toggle__open {
	display: none;
}

.ach-header-shell .ach-mobile-nav .ach-mobile-menu > .menu-item.submenu_open > .ach-submenu-toggle .ach-submenu-toggle__closed {
	display: none;
}

.ach-header-shell .ach-mobile-nav .ach-mobile-menu > .menu-item.submenu_open > .ach-submenu-toggle .ach-submenu-toggle__open {
	display: inline-block;
}

@media (max-width: 1400px) {
	.ach-header-top {
		grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr) minmax(170px, 240px);
		padding-left: 32px;
		padding-right: 32px;
	}

	.ach-primary-nav {
		width: calc(100% - 64px);
	}

	.ach-primary-menu {
		gap: 24px;
	}

/*	.ach-primary-menu__item > a {
		font-size: 16px;
	} */
}

@media (max-width: 1150px) {
	.ach-header-top {
		column-gap: 16px;
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 14px 18px 16px;
		row-gap: 14px;
	}

	.ach-header-logo .custom-logo,
	.ach-header-logo img {
		max-height: 82px;
		max-width: 245px;
	}

	.ach-header-search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.ach-header-search-form {
		height: 46px;
		max-width: none;
	}

	.ach-header-search-field {
		font-size: 16px;
	}

	.ach-social-menu,
	.ach-primary-nav {
		display: none;
	}

	.ach-menu-toggle {
		display: inline-flex;
	}

	.ach-mobile-nav {
		background: var(--ach-cream);
		box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
		display: none;
		left: 0;
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 360;
	}

	.ach-header-shell.menu_open .ach-mobile-nav {
		display: block;
	}

	.ach-mobile-menu,
	.ach-mobile-menu .sub-menu {
		background: var(--ach-cream);
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.ach-mobile-menu .menu-item {
		border-top: 1px solid rgba(0, 0, 0, 0.09);
		list-style: none;
		margin: 0;
		padding: 0;
		position: relative;
	}

	.ach-mobile-menu a {
		color: #000;
		display: block;
		font-family: "Sora", sans-serif;
		font-size: 18px;
		line-height: 1.2;
		padding: 15px 58px 15px 18px;
		text-decoration: none;
	}

	.ach-mobile-menu a:focus,
	.ach-mobile-menu a:hover {
		color: var(--ach-red);
	}

	.ach-mobile-menu > .menu-item > .sub-menu {
		display: none;
		padding-left: 18px;
	}

	.ach-mobile-menu > .menu-item.submenu_open > .sub-menu {
		display: block;
	}

	.ach-mobile-menu .sub-menu .sub-menu {
		display: block;
		padding-left: 18px;
	}

	.ach-submenu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		color: #000;
		cursor: pointer;
		display: inline-flex;
		height: 48px;
		justify-content: center;
		padding: 0;
		position: absolute;
		right: 8px;
		top: 0;
		width: 48px;
	}

	.site-header .ach-header-shell .ach-mobile-nav .ach-submenu-toggle:focus,
	.site-header .ach-header-shell .ach-mobile-nav .ach-submenu-toggle:hover {
		background-color: transparent;
		color: #000;
	}

	.ach-submenu-toggle__open {
		display: none;
	}

	.ach-mobile-menu > .menu-item.submenu_open > .ach-submenu-toggle .ach-submenu-toggle__closed {
		display: none;
	}

	.ach-mobile-menu > .menu-item.submenu_open > .ach-submenu-toggle .ach-submenu-toggle__open {
		display: inline-block;
	}
}

@media (max-width: 520px) {
	.ach-header-logo .custom-logo,
	.ach-header-logo img {
		max-height: 74px;
		max-width: 210px;
	}
}
