/* ==========================================================================
   Artwallz DE – Full-screen mobile navigation overlay
   Breakpoint: ≤ 921px (matches Astra & our mega-menu.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Overlay – full-screen, slides in from the right
   -------------------------------------------------------------------------- */

.awz-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 10000;         /* above mega menu (1000), search (9999) */
	background: #fff;
	overflow: hidden;       /* panel handles its own scroll */

	/* Hidden state */
	transform: translateX(100%);
	visibility: hidden;
	transition:
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0.35s;
}

.awz-mobile-menu.awz-mobile-menu--open {
	transform: translateX(0);
	visibility: visible;
	transition:
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0s linear 0s;
}

/* Lock page scroll while overlay is open */
body.awz-mobile-menu-open {
	overflow: hidden;
}

/* Never render on desktop */
@media (min-width: 922px) {
	.awz-mobile-menu {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   2. Scrollable inner panel
   -------------------------------------------------------------------------- */

.awz-mobile-menu-panel {
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	display: flex;
	flex-direction: column;
	padding-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   3. Sticky header row (close button)
   -------------------------------------------------------------------------- */

.awz-mobile-header-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid #f0f0f0;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.awz-mobile-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: #000;
	transition: color 0.15s ease;
	line-height: 1;
}

.awz-mobile-close:hover,
.awz-mobile-close:focus-visible {
	color: #777;
	background: transparent;
}

.awz-mobile-close:focus-visible {
	outline: 2px solid #000;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Navigation list
   -------------------------------------------------------------------------- */

.awz-mobile-nav {
	flex: 1;
	padding: 1.25rem;
}

.awz-m-nav-list,
.awz-m-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.awz-m-nav-list .menu-item .menu-link {
	font-size: 18px;
	padding: 5px 0;
	display: inline-block;
}

.awz-m-item {
	border-bottom: 1px solid #f0f0f0;
}

/* --------------------------------------------------------------------------
   5. Item row (link + toggle button side by side)
   -------------------------------------------------------------------------- */

.awz-m-row {
	display: flex;
	align-items: stretch;
}

/* Depth-0 link */
.awz-m-link {
	flex: 1;
	display: block;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	padding: 0.9rem 1.25rem;
	transition: color 0.15s ease;
}

.menu-link {
	font-family: 'Roboto', sans-serif;
	font-size: 17px;
	font-weight: 500;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 0.15s ease;
}

.awz-m-link:hover {
	color: #777;
}

.awz-m-link.awz-m-active {
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Submenu toggle button (+/×)
   -------------------------------------------------------------------------- */

.awz-m-toggle {
	flex-shrink: 0;
	background: transparent!important;
	border: none;
	cursor: pointer;
	color: #000;
	padding: 0 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background 0.15s ease;
}

.awz-m-toggle:hover {
	color: #777;
	background: #fafafa!important;
}

.awz-m-toggle:focus-visible {
	background: #fafafa;
	outline: 2px solid #000;
	outline-offset: -2px;
}

/* Rotate chevron-down → chevron-up when open */
.awz-m-toggle svg {
	transition: transform 0.25s ease;
}

.awz-m-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   7. Sub-menu (collapsible, max-height animation)
   -------------------------------------------------------------------------- */

.awz-m-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
	background: #fafafa;
}

.awz-m-submenu.awz-m-submenu--open {
	max-height: 3000px; /* large enough for any menu */
}

/* Sub-item styling — smaller, not uppercase, indented */
.awz-m-submenu .awz-m-item {
	border-bottom: none;
	border-top: 1px solid #f0f0f0;
}

.awz-m-submenu .awz-m-item:first-child {
	border-top: none;
}

.awz-m-submenu .awz-m-link {
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	padding-left: 2.25rem;
	color: #333;
}

.awz-m-submenu .awz-m-link:hover {
	color: #777;
}

/* Nested depth-2+ deeper indent */
.awz-m-submenu .awz-m-submenu .awz-m-link {
	padding-left: 3.25rem;
}

/* --------------------------------------------------------------------------
   8. Actions row (account + cart)
   -------------------------------------------------------------------------- */

.awz-mobile-actions {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 1.25rem 1.25rem;
	border-top: 2px solid #000;
	border-bottom: 1px solid #f0f0f0;
}

.awz-mobile-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 0.15s ease;
}

.awz-mobile-action:hover {
	color: #777;
}

.awz-mobile-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	border-radius: 9px;
	padding: 0 3px;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   9. Search form
   -------------------------------------------------------------------------- */

.awz-mobile-search-wrap {
	padding: 1.25rem 1.25rem;
}

.awz-mobile-search-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

.awz-mobile-search-icon {
	display: flex;
	align-items: center;
	color: #888;
	flex-shrink: 0;
}

.awz-mobile-search-input {
	flex: 1;
	border: none;
	outline: none !important;
	box-shadow: none;
	background: transparent;
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #000;
	padding: 4px 0;
	-webkit-appearance: none;
	appearance: none;
}

.awz-mobile-search-input:focus,
.awz-mobile-search-input:focus-visible {
	outline: none !important;
	box-shadow: none;
}

.awz-mobile-search-input::placeholder {
	color: #aaa;
	font-weight: 300;
}

.awz-mobile-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
