/* ==========================================================
   Mobile Menu Drawer — Bricks Child Theme
   ========================================================== */

/* ── Trigger (hamburger) ─────────────────────────────────── */
.mm-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: inherit;
	line-height: 0;
	position: relative;
	z-index: 2;
	pointer-events: auto;
	width: 24px;
	height: 24px;
}

.mm-wrapper {
	position: relative;
	pointer-events: auto;
}

.mm-trigger__bar {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: opacity .2s, transform .2s;
}

.mm-trigger__icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0 !important;
	padding: 0 !important;
}

/* ── Overlay / Backdrop ──────────────────────────────────── */
.mm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	z-index: 9998;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}

.mm-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* ── Drawer container ────────────────────────────────────── */
.mm-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(360px, 92vw);
	background: #fff;
	z-index: 9999;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
	-webkit-overflow-scrolling: touch;
}

/* If WordPress admin bar is visible (logged-in users), keep header actions visible */
body.admin-bar .mm-drawer {
	top: 32px;
	height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .mm-drawer {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}

.mm-drawer--left  { left: 0;  transform: translateX(-100%); }
.mm-drawer--right { right: 0; transform: translateX(100%); }

.mm-drawer.is-open { transform: translateX(0); }

/* ── Drawer head ─────────────────────────────────────────── */
.mm-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 18px 20px;
	min-height: 0;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.mm-brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.mm-brand__link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.mm-brand__logo {
	display: block;
	width: 180px;
	height: auto;
	max-height: 28px;
}

.mm-brand__logo--custom img {
	display: block;
	width: 28px;
	height: auto;
	max-height: 28px;
}

.mm-brand__text {
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mm-close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #1a1a1a;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: opacity .2s;
}

.mm-close:hover { opacity: .6; }

/* ── Search ──────────────────────────────────────────────── */
.mm-search {
	padding: 0 18px 0px;
}

.mm-search form {
	display: flex;
	align-items: center;
	background: #f2f2f2;
	border-radius: 40px;
	padding: 0 20px;
	gap: 8px;
}

.mm-search input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	padding: 5px 0;
	font-size: 14px;
	outline: none;
	color: #1a1a1a;
	-webkit-appearance: none;
	appearance: none;
}

.mm-search input[type="search"]::placeholder { color: #999; }

.mm-search button[type="submit"] {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 0;
	color: #666;
}

/* ── Nav list ────────────────────────────────────────────── */
.mm-nav { flex: 1;
padding:20px;

}
.mm-nav__list{
    border-top: 1px solid #e8e8e8;
}
.mm-nav__list,
.mm-nav__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mm-nav__item {
	border-bottom: 1px solid #e8e8e8;
}

.mm-nav__row {
	display: flex;
	align-items: center;
}
.mm-color-red{
        color: var(--bricks-color-jlhqmp);
}

.mm-nav__link {
	flex: 1;
	display: block;
	padding: 18px 0px;
	font-size: 15px;
	color: #1a1a1a;
	text-decoration: none;
	line-height: 1.2;
	transition: color .15s;
}

.mm-nav__link:hover { color: #555; }

/* Highlight items with "sale" class (WordPress menu item class) */
.mm-nav__item.sale    > .mm-nav__row > .mm-nav__link,
.mm-nav__item.current-menu-item > .mm-nav__row > .mm-nav__link {
	color: #c0392b;
}

/* Toggle arrow button */
.mm-nav__toggle {
	background: none;
	border: none;
	padding: 18px 20px;
	cursor: pointer;
	color: #1a1a1a;
	line-height: 0;
	display: flex;
	align-items: center;
}

.mm-chevron {
	transition: transform .25s ease;
	display: block;
}

.mm-nav__item--open > .mm-nav__row .mm-chevron {
	transform: rotate(90deg);
}

/* Sub-menu */
.mm-nav__sub {
	display: none;
	background: #fafafa;
	border-top: 1px solid #f0f0f0;
}

.mm-nav__item--open > .mm-nav__sub {
	display: block;
}

/* Nested items (depth 1+) */
.mm-nav__sub .mm-nav__item {
	border-bottom: 1px solid #f0f0f0;
}

.mm-nav__sub .mm-nav__link {
	padding: 14px 32px;
	font-size: 14px;
	color: #444;
}

.mm-nav__sub .mm-nav__item:last-child {
	border-bottom: none;
}

/* ── Utility menu (bottom links) ─────────────────────────── */
.mm-utility {
	border-top: 1px solid #e8e8e8;
	padding: 20px 0 12px;
	margin-top: auto;
}

.mm-utility__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	font-size: 14px;
	color: #444;
	text-decoration: none;
	transition: color .15s;
}

.mm-utility__link:hover { color: #1a1a1a; }

/* Color helpers via WordPress Menu Item CSS Classes */
.mm-nav__item.mm-color-red > .mm-nav__row > .mm-nav__link,
.mm-utility__link.mm-color-red {
	color: #d62f2f;
}

.mm-nav__item.mm-color-orange > .mm-nav__row > .mm-nav__link,
.mm-utility__link.mm-color-orange {
	color: #d97706;
}

.mm-nav__item.mm-color-green > .mm-nav__row > .mm-nav__link,
.mm-utility__link.mm-color-green {
	color: #15803d;
}

.mm-nav__item.mm-color-blue > .mm-nav__row > .mm-nav__link,
.mm-utility__link.mm-color-blue {
	color: #2563eb;
}

/* ── Accessibility ───────────────────────────────────────── */
.mm-drawer:focus-within { outline: none; }

@media (prefers-reduced-motion: reduce) {
	.mm-drawer,
	.mm-overlay,
	.mm-chevron { transition: none; }
}
