/**
 * Resha custom mobile menu drawer
 */

/* Trigger (replaces theme burger on small screens) */
.resha-mobile-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 12px;
	margin: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(225, 188, 146, 0.16);
	border-radius: 999px;
	color: #f6dec0;
	cursor: pointer;
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	-webkit-tap-highlight-color: transparent;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
	transition: background 0.18s ease, border-color 0.18s ease;
}

.resha-mobile-menu-trigger:hover {
	background: rgba(225, 188, 146, 0.1);
	border-color: rgba(225, 188, 146, 0.34);
}

.resha-mobile-menu-trigger__lines {
	display: block;
	position: relative;
	width: 20px;
	height: 12px;
	flex-shrink: 0;
}

.resha-mobile-menu-trigger__lines::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.resha-mobile-menu-trigger__label {
	color: inherit;
}

/* Backdrop */
.resha-mobile-drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(13, 6, 37, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	pointer-events: none;
}

body.resha-mobile-menu-open--visible .resha-mobile-drawer-backdrop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Drawer panel */
.resha-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 9999;
	width: min(100vw - 34px, 344px);
	max-width: 100%;
	background:
		radial-gradient(circle at top left, rgba(225, 188, 146, 0.16), transparent 32%),
		linear-gradient(180deg, #12092d, var(--resha-mobile-bg, #0d0625));
	color: rgba(255, 255, 255, 0.92);
	box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
	transform: translateX(-105%);
	visibility: hidden;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	pointer-events: none;
}

body.resha-mobile-menu-open--visible .resha-mobile-drawer {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.resha-mobile-drawer__head {
	flex-shrink: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 14px 10px 20px;
	border-bottom: 1px solid rgba(225, 188, 146, 0.2);
}

.resha-mobile-drawer__head::before {
	content: 'Resha Rugs';
	color: var(--resha-mobile-accent, #e1bc92);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.resha-mobile-menu-close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--resha-mobile-accent, #e1bc92);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.resha-mobile-menu-close:hover {
	background: rgba(225, 188, 146, 0.12);
}

.resha-mobile-menu-close__icon {
	display: block;
	width: 18px;
	height: 18px;
	position: relative;
}

.resha-mobile-menu-close__icon::before,
.resha-mobile-menu-close__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transform-origin: center;
}

.resha-mobile-menu-close__icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.resha-mobile-menu-close__icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.resha-mobile-drawer__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0 24px;
}

.resha-mobile-drawer__meta {
	margin: 12px 16px 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 12px;
	border: 1px solid rgba(225, 188, 146, 0.16);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.045);
}

.resha-mobile-drawer__email,
.resha-mobile-drawer__phone {
	color: var(--resha-mobile-accent, #e1bc92);
	text-decoration: none;
	font-weight: 500;
}

.resha-mobile-drawer__email:hover,
.resha-mobile-drawer__phone:hover {
	opacity: 0.88;
}

/* Primary nav */
.resha-mobile-drawer__nav-wrap {
	display: block;
	padding: 6px 12px;
}

.resha-mobile-drawer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.resha-mobile-drawer__nav > li {
	border-bottom: 0;
}

.resha-mobile-drawer__nav > li > a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	border-radius: 14px;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.resha-mobile-drawer__nav > li > a:hover {
	background: rgba(225, 188, 146, 0.09);
	color: var(--resha-mobile-accent, #e1bc92);
	transform: translateX(2px);
}

.resha-mobile-drawer__nav .sub-menu {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0 0 4px 8px;
	background: rgba(0, 0, 0, 0.12);
	border-left: 2px solid rgba(225, 188, 146, 0.35);
	margin-left: 12px;
}

.resha-mobile-drawer__nav .sub-menu .sub-menu {
	margin-top: 4px;
}

.resha-mobile-drawer__nav .sub-menu a {
	display: block;
	padding: 10px 20px 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.resha-mobile-drawer__nav .sub-menu a:hover {
	color: var(--resha-mobile-accent, #e1bc92);
}

/* Secondary links */
.resha-mobile-drawer__secondary {
	padding: 12px 12px 8px;
	margin-top: 8px;
	border-top: 1px solid rgba(225, 188, 146, 0.15);
}

.resha-mobile-drawer__secondary-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.resha-mobile-drawer__secondary-list li a {
	display: block;
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: rgba(225, 188, 146, 0.95);
	text-decoration: none;
	text-transform: uppercase;
}

.resha-mobile-drawer__secondary-list li a:hover {
	color: #fff;
}

.resha-mobile-drawer__cta {
	display: block;
	margin: 16px 16px 0;
	padding: 12px 16px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #0d0625;
	background: var(--resha-mobile-accent, #e1bc92);
	border-radius: 999px;
	text-decoration: none;
}

.resha-mobile-drawer__cta:hover {
	filter: brightness(1.05);
}

body.resha-mobile-menu-open {
	overflow: hidden;
}

@media (min-width: 1025px) {
	.resha-mobile-drawer,
	.resha-mobile-drawer-backdrop,
	.resha-mobile-menu-trigger {
		display: none !important;
	}
}
