@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Existing Metal mobile menu — Figma-aligned styling */

#mobile-menu-wrapper.mobile-menu-wrapper {
	/* Pin to the viewport — never rely on static position (scrolls/shifts) or a
	   hardcoded bar offset like calc(100vh - 55px) when bars are hidden. */
	position: fixed !important;
	top: var(--starfab-mobile-menu-top, 0px) !important;
	right: 0;
	bottom: 0 !important;
	left: -100%;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	max-height: none !important;
	min-height: 0;
	border-right: 0;
	background: #ffffff;
	color: #111111;
	font-family: "Barlow", sans-serif;
	display: flex;
	flex-direction: column;
	/* Outer stays non-scrolling so nested .mobile-sub-menu can scroll. */
	overflow: hidden;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	z-index: 100010;
}

.mobile-menu-open #mobile-menu-wrapper.mobile-menu-wrapper.mobile-menu-left {
	left: 0;
}

#mobile-menu-wrapper.mobile-menu-wrapper.mobile-menu-right {
	right: -100%;
	left: auto;
}

.mobile-menu-open #mobile-menu-wrapper.mobile-menu-wrapper.mobile-menu-right {
	right: 0;
}

/* Prevent background scroll from shifting a mis-positioned fixed drawer */
body.mobile-menu-open {
	overflow: hidden;
}

#mobile-menu-wrapper.mobile-menu-wrapper a {
	color: #111111;
	text-decoration: none;
}

#mobile-menu-wrapper .mobile-menu-item {
	display: none;
}

#mobile-menu-wrapper .mobile-search-form,
#mobile-menu-wrapper .mobile-menu-languages {
	flex-shrink: 0;
}

#mobile-menu-wrapper .main-mobile-navigation-wrapper {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 20px calc(96px + env(safe-area-inset-bottom, 0px));
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

/* Drill-down open: lock the main list so only the submenu panel scrolls */
#mobile-menu-wrapper:has(.mobile-sub-menu.sub-menu-active) .main-mobile-navigation-wrapper {
	overflow: hidden;
}

/* Search */
#mobile-menu-wrapper .mobile-search-form {
	position: relative;
	margin: 0;
	padding: 16px 20px 12px;
	border-bottom: 0;
}

#mobile-menu-wrapper .mobile-search-form::before {
	content: "";
	position: absolute;
	left: 34px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%239ca3af' stroke-width='1.75'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%239ca3af' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 1;
}

#mobile-menu-wrapper .mobile-search-form input {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px 0 44px;
	border: 1px solid #d1d5dc;
	border-radius: 8px;
	background: #ffffff;
	color: #111111;
	font-family: "Barlow", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

#mobile-menu-wrapper .mobile-search-form input::placeholder {
	color: #9ca3af;
	text-transform: none;
	opacity: 1;
}

#mobile-menu-wrapper .mobile-search-form input:focus {
	border-color: #e07b00;
}

/* Section labels injected by JS */
#mobile-menu-wrapper .starfab-mobile-section-label {
	display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -20px;
    color: #9ca3af;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
    list-style: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 5px 20px;
}

#mobile-menu-wrapper .starfab-mobile-section-label > a,
#mobile-menu-wrapper .starfab-mobile-section-label span {
	color: #9ca3af !important;
	font: inherit;
	padding: 0 !important;
	border: 0 !important;
	text-transform: uppercase;
	pointer-events: none;
}

/* Top-level rows */
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > a,
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > .toggle-wrapper > a {
	display: block;
	padding: 14px 20px;
	border-bottom: 1px solid #e5e7eb;
	color: #111111 !important;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-transform: uppercase;
	background: transparent;
	margin-inline: -20px;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > .toggle-wrapper {
	position: relative;
	display: block;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > .toggle-wrapper > a {
	padding-right: 36px;
	border-bottom: 0;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav .submenu-toggle {
	border-left: 0;
	width: 28px;
	line-height: 52px;
	color: #9ca3af;
	font-size: 18px;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav .submenu-toggle i {
	font-size: 18px;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > a:hover,
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > .toggle-wrapper > a:hover,
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > a:focus,
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav > li > .toggle-wrapper > a:focus {
	color: #e07b00 !important;
}

/* Shop preview + view all (injected) */
#mobile-menu-wrapper .starfab-mobile-preview {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

#mobile-menu-wrapper .starfab-mobile-preview li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

#mobile-menu-wrapper .starfab-mobile-preview a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0 !important;
	border: 0 !important;
	color: #111111 !important;
	font-family: "Barlow", sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.25 !important;
	text-transform: none !important;
}

#mobile-menu-wrapper .starfab-mobile-preview a:hover {
	color: #e07b00 !important;
}

#mobile-menu-wrapper .starfab-mobile-cat-bullet {
	flex-shrink: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #e07b00;
	margin-left: 15px;
}

#mobile-menu-wrapper .starfab-mobile-view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0 16px 15px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent;
	color: #e07b00 !important;
	cursor: pointer;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.25;
	text-transform: uppercase;
}

#mobile-menu-wrapper .starfab-mobile-view-all:hover {
	color: #c86d00 !important;
}

/* Custom Fabrication card */
#mobile-menu-wrapper .starfab-mobile-custom-item {
	margin: 8px -20px;
    list-style: none;
    padding: 12px 20px;
    border-block: 1px solid #e5e7eb;
}

#mobile-menu-wrapper .starfab-mobile-custom-item > a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 14px 14px 14px 12px !important;
	border: 1px solid #f0d7b8 !important;
	border-radius: 10px;
	background: #fbf4ec !important;
	color: #111111 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-transform: none !important;
}

#mobile-menu-wrapper .starfab-mobile-custom-item > a::before {
	content: "";
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #e07b00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z' stroke='%23fff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

#mobile-menu-wrapper .starfab-mobile-custom-item .starfab-mobile-custom-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	font-size: initial;
	line-height: normal;
}

#mobile-menu-wrapper .starfab-mobile-custom-item .starfab-mobile-custom-title {
	display: block;
	color: #e07b00;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-transform: uppercase;
}

#mobile-menu-wrapper .starfab-mobile-custom-item .starfab-mobile-custom-sub {
	display: block;
	color: #111111;
	font-family: "Barlow", sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.25;
	text-transform: none;
}

#mobile-menu-wrapper .starfab-mobile-custom-item > a::after {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 18l6-6-6-6' stroke='%23e07b00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Submenu panel (theme drill-down) — fill the nav area with a definite height */
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu {
	background: #ffffff;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
	z-index: 100;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px !important;
	border-bottom: 0 !important;
	color: #111111 !important;
	font-family: "Barlow", sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	line-height: 1.25 !important;
	text-transform: none !important;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li > a:hover {
	color: #e07b00 !important;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li:not(.back-to-menu) > a::before {
	content: "";
	flex-shrink: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #e07b00;
	margin-left: 15px;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li.back-to-menu > a {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding: 12px 20px 16px !important;
	font-family: "Barlow Condensed", sans-serif !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li.back-to-menu > a::before {
	display: none;
}

#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li.back-to-menu > a::after {
	content: none;
}

/* Theme uses :before with FontAwesome for back — restyle it */
#mobile-menu-wrapper .main-mobile-nav .zozo-main-nav li .mobile-sub-menu > li.back-to-menu > a:before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin: 0;
	left: 0;
	position: static;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 18l-6-6 6-6' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	font-family: inherit;
}

@media (min-width: 992px) {
	/* Mobile drawer unused on desktop */
}
