/* Ledmax – mobilmeny */

.lm-fullscreen-mobile-menu,
.lm-mobile-menu-btn,
.lm-mobile-cart-btn {
	font-family: var(--lm-font);
}

/* 1. Hamburgare */
.lm-mobile-menu-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	padding: 0;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	background: linear-gradient(135deg, var(--lm-accent) 0%, var(--lm-accent-2) 100%);
	border: 1px solid rgba(255, 255, 255, .2);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	transition: transform .25s ease;
}

.lm-mobile-menu-btn:hover,
.lm-mobile-menu-btn:active {
	transform: scale(1.05);
}

.lm-mobile-menu-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.lm-mobile-menu-btn span {
	display: block;
	width: 26px;
	height: 2px;
	background: #fff;
	position: relative;
	transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

.lm-mobile-menu-btn span::before,
.lm-mobile-menu-btn span::after {
	content: '';
	position: absolute;
	width: 26px;
	height: 2px;
	background: #fff;
	left: 0;
	transition: all .28s cubic-bezier(.4, 0, .2, 1);
}

.lm-mobile-menu-btn span::before { top: -8px; }
.lm-mobile-menu-btn span::after { top: 8px; }

.lm-mobile-menu-btn.active span { background: transparent; }
.lm-mobile-menu-btn.active span::before { top: 0; transform: rotate(45deg); }
.lm-mobile-menu-btn.active span::after { top: 0; transform: rotate(-45deg); }

/* 2. Hyreskorg-knapp */
.lm-mobile-cart-btn {
	position: fixed;
	bottom: 95px;
	right: 25px;
	width: 50px;
	height: 50px;
	padding: 0;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10001;
	background: #000;
	border: 1px solid rgba(255, 255, 255, .15);
	box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
	color: #fff;
	transition: transform .25s ease;
}

.lm-mobile-cart-btn:active { transform: scale(.95); }

.lm-mobile-cart-btn svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.lm-mobile-cart-badge {
	position: absolute;
	top: -3px;
	right: -3px;
	background: var(--lm-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	min-width: 18px;
	height: 18px;
	border-radius: 99px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #000;
}

.lm-mobile-cart-badge.hidden { display: none; }

/* 3. Fullskärmsmeny */
.lm-fullscreen-mobile-menu {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 78px 18px 28px;
	background:
		radial-gradient(1200px 800px at 20% 10%, rgba(255, 77, 0, .16), transparent 55%),
		radial-gradient(1200px 800px at 90% 35%, rgba(255, 77, 0, .10), transparent 55%),
		linear-gradient(135deg, var(--lm-bg-2) 0%, rgba(11, 15, 20, .96) 100%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .38s cubic-bezier(.4, 0, .2, 1), visibility .38s;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lm-fullscreen-mobile-menu.active {
	opacity: 1;
	visibility: visible;
}

.lm-menu-shell {
	width: 100%;
	max-width: 520px;
}

.lm-menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid var(--lm-border);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
	box-shadow: var(--lm-shadow);
}

.lm-brand {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.lm-brand strong {
	color: var(--lm-text);
	font-size: 16px;
	text-transform: uppercase;
	font-weight: 800;
}

.lm-brand span {
	color: var(--lm-muted);
	font-size: 12px;
}

.lm-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 77, 0, .35);
	background: rgba(255, 77, 0, .12);
	color: var(--lm-text);
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 700;
}

.lm-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--lm-accent);
	box-shadow: 0 0 0 6px rgba(255, 77, 0, .12);
}

/* Navigation */
.lm-fullscreen-mobile-menu nav > ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lm-fullscreen-mobile-menu nav > ul > li {
	margin: 0 0 14px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .38s ease, transform .38s ease;
}

.lm-fullscreen-mobile-menu.active nav > ul > li {
	opacity: 1;
	transform: translateY(0);
}

.lm-fullscreen-mobile-menu nav > ul > li > a,
.lm-fullscreen-mobile-menu nav > ul > li > .lm-menu-item-container {
	display: flex;
	align-items: center;
	width: 100%;
	color: var(--lm-text);
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	padding: 16px 2px;
	border-bottom: 1px solid rgba(255, 255, 255, .10);
	transition: color .2s, border-color .2s;
}

.lm-fullscreen-mobile-menu nav > ul > li > a:hover {
	color: var(--lm-accent);
	border-color: rgba(255, 77, 0, .30);
}

.lm-menu-item-container {
	justify-content: space-between;
	cursor: pointer;
}

.lm-menu-dropdown-toggle {
	width: 26px;
	height: 26px;
	color: var(--lm-accent);
	transition: transform .22s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lm-menu-dropdown-toggle svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.menu-item-has-children.active .lm-menu-dropdown-toggle {
	transform: rotate(180deg);
}

/* Undermeny */
.lm-fullscreen-mobile-menu nav ul ul.sub-menu {
	list-style: none;
	padding: 0;
	height: 0;
	overflow: hidden;
	opacity: 0;
	transition: height .28s ease, opacity .28s ease, padding .28s ease;
}

.menu-item-has-children.active > ul.sub-menu {
	opacity: 1;
	padding: 10px 0 0;
	margin-left: 12px;
}

.lm-fullscreen-mobile-menu nav ul ul.sub-menu li a {
	display: block;
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
	font-size: 14.5px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-weight: 400;
}

/* Produktkarusell */
.lm-menu-products {
	margin-top: 18px;
	padding: 16px;
	border-radius: 18px;
	border: 1px solid var(--lm-border);
	background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
}

.lm-menu-products h3 {
	margin: 0 0 10px;
	color: var(--lm-text);
	font-size: 14px;
	text-transform: uppercase;
	font-weight: 700;
}

.lm-product-row {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
}

.lm-product-card {
	flex: 0 0 68%;
	max-width: 68%;
	scroll-snap-align: start;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .06);
	overflow: hidden;
}

.lm-product-card a { text-decoration: none; }

.lm-product-thumb {
	aspect-ratio: 1 / 1;
	background: rgba(255, 255, 255, .06);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lm-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lm-product-body { padding: 12px; }

.lm-product-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--lm-text);
}

.lm-product-cta {
	display: inline-flex;
	padding: 12px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 77, 0, .92), rgba(255, 106, 42, .92));
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
}

/* Sidfot i menyn */
.lm-mobile-menu-footer {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .36s ease, transform .36s ease;
}

.lm-fullscreen-mobile-menu.active .lm-mobile-menu-footer {
	opacity: 1;
	transform: translateY(0);
	transition-delay: .30s;
}

.lm-mobile-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 16px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	border-radius: 16px;
	border: 1px solid var(--lm-border);
}

.lm-btn-primary {
	background: linear-gradient(135deg, var(--lm-accent) 0%, var(--lm-accent-2) 100%);
	color: #fff;
	border-color: rgba(255, 77, 0, .55);
}

.lm-btn-secondary {
	background: rgba(255, 255, 255, .06);
	color: var(--lm-text);
}

@media (min-width: 1025px) {
	.lm-mobile-menu-btn,
	.lm-mobile-cart-btn,
	.lm-fullscreen-mobile-menu {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.lm-mobile-menu-btn { width: 56px; height: 56px; bottom: 15px; right: 15px; }
	.lm-mobile-cart-btn { bottom: 85px; right: 18px; }
	.lm-product-card { flex-basis: 78%; max-width: 78%; }
	.lm-fullscreen-mobile-menu { padding: 72px 16px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.lm-fullscreen-mobile-menu,
	.lm-fullscreen-mobile-menu nav > ul > li,
	.lm-mobile-menu-footer,
	.lm-mobile-menu-btn span,
	.lm-mobile-menu-btn span::before,
	.lm-mobile-menu-btn span::after {
		transition-duration: .01ms !important;
	}
}
