/* -------------------------------------------------------
   Mobile menu — only rendered/active below 1024px
   ------------------------------------------------------- */

.mobile-menu {
	display: none;
}

@keyframes drawerSlideIn {
	from { transform: translateX(-100%); }
	to   { transform: translateX(0); }
}

@keyframes drawerSlideOut {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}

@keyframes overlayFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes overlayFadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

@media (max-width: 64rem) {
	.mobile-menu {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 200;
		pointer-events: none;
	}

	.mobile-menu.is-open,
	.mobile-menu.is-closing {
		pointer-events: auto;
	}
}

/* Overlay */
.mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 50%);
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
}

.mobile-menu.is-open .mobile-menu__overlay {
	animation: overlayFadeIn 0.3s ease forwards;
	pointer-events: auto;
}

.mobile-menu.is-closing .mobile-menu__overlay {
	animation: overlayFadeOut 0.3s ease forwards;
	pointer-events: none;
}

/* Drawer */
.mobile-menu__drawer {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 338px;
	max-width: 85vw;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(-100%);
}

.mobile-menu.is-open .mobile-menu__drawer {
	animation: drawerSlideIn 0.3s ease forwards;
}

.mobile-menu.is-closing .mobile-menu__drawer {
	animation: drawerSlideOut 0.3s ease forwards;
}

@media (max-width: 24.375rem) {
	.mobile-menu__drawer {
		width: 100%;
		max-width: none;
	}

	.mobile-menu__overlay {
		display: none;
	}
}

/* Drawer header */
.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	padding: 0.75rem 1.375rem;
	background: var(--color-header-bg, #1a2340);
	border-bottom: 2px solid #111827;
	flex-shrink: 0;
}

.mobile-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

@media (hover: hover) {
	.mobile-menu__close:hover {
		opacity: 0.8;
	}
}

.mobile-menu__close:focus-visible {
	opacity: 0.8;
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 2px;
}

.mobile-menu__logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #fff;
}

.mobile-menu__logo-image {
	display: block;
	width: 59px;
	height: 58px;
	object-fit: contain;
}

.mobile-menu__logo-text {
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

.mobile-menu__header-spacer {
	width: 2rem;
	flex-shrink: 0;
}

/* Nav list */
.mobile-menu__nav {
	flex: 0 0 auto;
}

.mobile-menu__nav .nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu__nav .nav-menu > li {
	border-top: 1px solid #e5e7eb;
}

.mobile-menu__nav .nav-menu > li > a,
.mobile-menu__nav .nav-menu > li > .mobile-menu__nav-row > .mobile-menu__nav-link {
	display: flex;
	align-items: center;
	padding: 1rem 1.25rem;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #4c4d4f;
	text-decoration: none;
	line-height: 1;
}

.mobile-menu__nav-row {
	display: flex;
	align-items: stretch;
}

.mobile-menu__nav .nav-menu > li > .mobile-menu__nav-row > .mobile-menu__nav-link {
	flex: 1 1 auto;
	min-width: 0;
	padding: 1rem 0.25rem 1rem 1.25rem;
}

.mobile-menu__nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 3.75rem;
	padding: 1rem 1.5rem 1rem calc(1rem + 5px);
	border: 0;
	background: transparent;
	color: #4c4d4f;
	cursor: pointer;
}

@media (hover: hover) {
	.mobile-menu__nav-toggle:hover {
		color: #111;
	}

	.mobile-menu__nav .nav-menu > li > a:hover,
	.mobile-menu__nav .nav-menu > li > .mobile-menu__nav-row > .mobile-menu__nav-link:hover {
		color: #111;
	}
}

.mobile-menu__nav-toggle:focus-visible {
	color: #111;
}

.mobile-menu__nav .nav-menu > li.is-expanded > .mobile-menu__nav-row > .mobile-menu__nav-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mobile-menu__nav .nav-menu > li.is-expanded > a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Chevron */
.mobile-menu__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.mobile-menu__chevron svg {
	display: block;
}

.mobile-menu__nav .nav-menu > li.is-expanded > .mobile-menu__nav-row .mobile-menu__chevron {
	transform: rotate(180deg);
}

/* Sub-menu accordion */
.mobile-menu__nav .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 1.25rem 0.75rem 1.25rem;
	flex-direction: column;
	gap: 0.625rem;
}

.mobile-menu__nav .menu-item-has-children.is-expanded > .sub-menu {
	display: flex;
}

.mobile-menu__nav .sub-menu li {
	margin: 0;
	padding: 0;
}

.mobile-menu__nav .sub-menu li a {
	display: block;
	font-size: 0.875rem;
	color: #111;
	text-decoration: none;
	line-height: 1.4;
	padding: 0.25rem 0;
}

@media (hover: hover) {
	.mobile-menu__nav .sub-menu li a:hover {
		color: var(--color-header-bg, #1a2340);
	}
}

/* Store locator strip */
.mobile-menu__store {
	flex-shrink: 0;
	background: var(--color-header-bg, #1a2340);
}

.mobile-menu__store-link {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 1rem 1.25rem;
	color: #fff;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (hover: hover) {
	.mobile-menu__store-link:hover {
		opacity: 0.85;
	}
}

.mobile-menu__store-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.mobile-menu__store-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------------
   Mobile nav panels (ACF-driven, hidden until parent tapped)
   ------------------------------------------------------- */

.mobile-nav-panel {
	border-top: none;
}

/* Simple panel — text links only, no images */
.mobile-nav-panel__simple {
	list-style: none;
	margin: 0;
	padding: 0 0 0.75rem 0;
}

.mobile-nav-panel__simple-item {
	border-bottom: none;
}

.mobile-nav-panel__simple-link {
	display: block;
	padding: 0.35rem 1.25rem 0.35rem 2rem;
	font-size: 0.875rem;
	font-weight: 400;
	color: #111;
	text-decoration: none;
	line-height: 1.4;
}

.mobile-nav-panel__simple-link p {
	margin: 0;
}

.mobile-nav-panel__simple-link strong,
.mobile-nav-panel__simple-link b {
	font-weight: 400;
}

.mobile-nav-panel__simple-item:first-child .mobile-nav-panel__simple-link {
	padding-top: 0.1rem;
}

@media (hover: hover) {
	.mobile-nav-panel__simple-link:hover {
		color: var(--color-header-bg, #1a2340);
	}
}

/* Mega panel — column groups */
.mobile-nav-panel__mega {
	padding: 0 0 0.75rem 0;
}

.mobile-nav-panel__column {
	border-bottom: 0;
}

.mobile-nav-panel__column-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.35rem 1.25rem 0.35rem 2rem;
	border: 0;
	background: transparent;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #111;
	text-align: left;
	cursor: pointer;
}

.mobile-nav-panel__column:first-child .mobile-nav-panel__column-toggle {
	padding-top: 0.1rem;
}

@media (hover: hover) {
	.mobile-nav-panel__column-toggle:hover {
		color: var(--color-header-bg, #1a2340);
	}
}

.mobile-nav-panel__column-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.mobile-nav-panel__column-chevron svg {
	display: block;
}

.mobile-nav-panel__column.is-expanded .mobile-nav-panel__column-chevron {
	transform: rotate(180deg);
}

.mobile-nav-panel__column-links {
	list-style: none;
	margin: 0;
	padding: 0 1.25rem 0.35rem 2.75rem;
	display: none;
	flex-direction: column;
	gap: 0;
}

.mobile-nav-panel__column.is-expanded .mobile-nav-panel__column-links {
	display: flex;
}

.mobile-nav-panel__column-links li {
	margin: 0;
	padding: 0;
}

.mobile-nav-panel__column-links a {
	display: block;
	font-size: 0.875rem;
	color: #111;
	text-decoration: none;
	line-height: 1.4;
	padding: 0.35rem 0;
}

@media (hover: hover) {
	.mobile-nav-panel__column-links a:hover {
		color: var(--color-header-bg, #1a2340);
	}
}

/* Prevent body scroll when drawer is open */
body.mobile-menu-open {
	overflow: hidden;
}

