/* Mobile navigation placement and a consistent single-column style collection. */
html body.alavus-custom-theme .alavus-mobile-nav-heading,
html body.alavus-custom-theme .alavus-mobile-header-spacer {
	display: none;
}

body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-section-heading {
	grid-template-columns: minmax(0, 1fr);
}

body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-section-heading > a.alavus-text-link {
	display: none !important;
}

@media (max-width: 767px) {
	body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-style-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
	body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-style-grid > .alavus-category-card,
	body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-style-grid > .alavus-category-card:first-child,
	body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-style-grid > .alavus-category-card:nth-child(4),
	body.alavus-custom-theme main .alavus-section:has(.alavus-style-grid) .alavus-style-grid > .alavus-category-card:nth-child(5) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1100px) {
	html body.alavus-custom-theme .alavus-site-header {
		background: #faf8f3 !important;
		color: #201f1b !important;
		border-bottom: 1px solid #e4ded2 !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		z-index: 1303 !important;
	}
	html.alavus-mobile-header-ready body.alavus-custom-theme .alavus-site-header {
		position: fixed !important;
		top: var(--alavus-mobile-header-top, 0px) !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		margin: 0 !important;
	}
	html.alavus-mobile-header-ready body.alavus-custom-theme .alavus-site-header.is-hidden {
		transform: translateY(calc(-100% - var(--alavus-mobile-header-top, 0px) - 2px)) !important;
		pointer-events: none !important;
	}
	html.alavus-mobile-header-ready body.alavus-custom-theme.alavus-menu-open .alavus-site-header,
	html.alavus-mobile-header-ready body.alavus-custom-theme .alavus-site-header:has(:focus-visible) {
		transform: translateY(0) !important;
		pointer-events: auto !important;
	}
	html.alavus-mobile-header-ready body.alavus-custom-theme .alavus-mobile-header-spacer {
		display: block;
		height: var(--alavus-mobile-header-height, 65px);
	}
	html body.alavus-custom-theme .alavus-header-grid {
		grid-template-columns: 44px minmax(0, 1fr) 44px !important;
		grid-template-rows: auto !important;
		grid-template-areas: none !important;
		min-height: 64px !important;
		gap: 12px !important;
		padding-block: 0 !important;
	}
	html body.alavus-custom-theme .alavus-header-grid > .alavus-brand-logo {
		grid-column: 2 !important;
		grid-row: 1 !important;
		justify-self: center !important;
		max-width: 176px !important;
		margin: 0 !important;
		color: #201f1b !important;
	}
	html body.alavus-custom-theme .alavus-header-grid .alavus-brand-wordmark,
	html body.alavus-custom-theme .alavus-header-grid .alavus-brand-name,
	html body.alavus-custom-theme .alavus-header-grid .alavus-brand-light {
		color: #201f1b !important;
	}
	html body.alavus-custom-theme .alavus-header-grid > .alavus-header-actions {
		grid-column: 3 !important;
		grid-row: 1 !important;
		justify-self: end !important;
		gap: 0 !important;
		width: 44px !important;
	}
	html body.alavus-custom-theme .alavus-menu-toggle {
		grid-column: 1 !important;
		grid-row: 1 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 5px !important;
		width: 44px !important;
		height: 44px !important;
		min-height: 44px !important;
		margin: 0 !important;
		padding: 10px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		color: #201f1b !important;
		box-shadow: none !important;
	}
	html body.alavus-custom-theme .alavus-menu-toggle > span:not(.screen-reader-text) {
		width: 22px !important;
		height: 1.5px !important;
		margin: 0 !important;
		background: currentColor !important;
		transition: transform 180ms ease, opacity 180ms ease;
	}
	html body.alavus-custom-theme .alavus-menu-toggle[aria-expanded="true"] > span:nth-child(1) {
		transform: translateY(6.5px) rotate(45deg);
	}
	html body.alavus-custom-theme .alavus-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
		opacity: 0;
	}
	html body.alavus-custom-theme .alavus-menu-toggle[aria-expanded="true"] > span:nth-child(3) {
		transform: translateY(-6.5px) rotate(-45deg);
	}
	html body.alavus-custom-theme .alavus-cart-link {
		position: relative !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 44px !important;
		height: 44px !important;
		min-height: 44px !important;
		padding: 0 !important;
		color: #201f1b !important;
		background: transparent !important;
	}
	html body.alavus-custom-theme .alavus-cart-link > span:first-child {
		display: none !important;
	}
	html body.alavus-custom-theme .alavus-cart-link::before {
		content: "";
		display: block;
		width: 24px;
		height: 24px;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 7h12l1 14H5L6 7ZM9 7V5a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 7h12l1 14H5L6 7ZM9 7V5a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	html body.alavus-custom-theme .alavus-cart-count {
		position: absolute !important;
		top: 1px !important;
		right: 0 !important;
		min-width: 16px !important;
		height: 16px !important;
		padding-inline: 3px !important;
		background: #201f1b !important;
		color: #fff !important;
		font-size: 10px !important;
		line-height: 16px !important;
	}
	html.alavus-mobile-header-ready body.alavus-custom-theme .alavus-primary-nav {
		position: fixed !important;
		top: calc(var(--alavus-mobile-header-top, 0px) + var(--alavus-mobile-header-height, 65px)) !important;
		bottom: 0 !important;
		left: 0 !important;
		width: min(88vw, 360px) !important;
		height: calc(100dvh - var(--alavus-mobile-header-top, 0px) - var(--alavus-mobile-header-height, 65px)) !important;
		max-height: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 20px 22px 32px !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		background: #faf8f3 !important;
		color: #201f1b !important;
		border: 0 !important;
		border-right: 1px solid #e4ded2 !important;
		z-index: 1302 !important;
		transform: translateX(-105%) !important;
	}
	html.alavus-mobile-header-ready body.alavus-custom-theme .alavus-primary-nav.is-open {
		transform: translateX(0) !important;
	}
	html body.alavus-custom-theme .alavus-mobile-nav-heading {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
		color: #766b5b;
		font-size: 11px;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}
	html body.alavus-custom-theme button.alavus-menu-close {
		min-height: 40px !important;
		padding: 8px 12px !important;
		border: 1px solid #e4ded2 !important;
		border-radius: 0 !important;
		background: #f3eee4 !important;
		color: #201f1b !important;
		font-size: 12px !important;
		line-height: 1.5 !important;
		letter-spacing: 0.05em !important;
		box-shadow: none !important;
	}
	html body.alavus-custom-theme .alavus-primary-nav > ul > li > a {
		padding: 15px 10px !important;
		color: #201f1b !important;
		font-size: 14px !important;
		line-height: 1.5 !important;
		letter-spacing: 0.055em !important;
		white-space: normal !important;
	}
	html body.alavus-custom-theme .alavus-primary-nav .sub-menu {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 0 !important;
		padding: 8px 8px 12px !important;
		margin: 0 0 12px !important;
		background: #f3eee4 !important;
		border: 0 !important;
		box-shadow: none !important;
	}
	html body.alavus-custom-theme .alavus-primary-nav .sub-menu a {
		min-height: 40px;
		padding: 9px 12px !important;
		background: transparent !important;
		color: #504b43 !important;
		font-size: 13px !important;
		line-height: 1.6 !important;
		letter-spacing: 0.035em !important;
		white-space: normal !important;
	}
	html body.alavus-custom-theme .alavus-primary-nav a:hover,
	html body.alavus-custom-theme .alavus-primary-nav a:focus-visible,
	html body.alavus-custom-theme .alavus-primary-nav .current-menu-item > a,
	html body.alavus-custom-theme .alavus-primary-nav .current-menu-ancestor > a {
		background: #eae0d0 !important;
		color: #71502e !important;
	}
	html body.alavus-custom-theme .alavus-nav-scrim {
		position: fixed !important;
		inset: 0 !important;
		background: rgba(24, 22, 18, 0.36) !important;
		z-index: 1301 !important;
	}
	html body.alavus-custom-theme .alavus-menu-toggle:focus-visible,
	html body.alavus-custom-theme .alavus-menu-close:focus-visible,
	html body.alavus-custom-theme .alavus-cart-link:focus-visible {
		outline: 2px solid #9b7448;
		outline-offset: 2px;
	}
}
