/* Sidebar Mega Menu for Elementor
 * Every value below can be changed from the widget's Style tab.
 * Selectors are prefixed with .smm so theme / Elementor Kit link and button
 * styles don't leak in.
 */

.smm {
	--smm-sidebar-w: 336px;
	--smm-sidebar-radius: 20px;
	--smm-sidebar-bg: #2f2f2f;
	--smm-sidebar-border: #2f2f2f;
	--smm-divider: rgba(255, 255, 255, 0.08);
	--smm-item-color: #fff;
	--smm-item-active-bg: #fff;
	--smm-item-active-color: #2b2b2b;

	--smm-panel-w: 1000px;
	--smm-panel-offset: 0px;
	--smm-panel-radius: 20px;
	--smm-panel-bg: #333;
	--smm-cols: 3;
	--smm-col-w: 200px;
	--smm-col-gap: 75px;
	--smm-row-gap: 50px;

	--smm-heading-color: #fff;
	--smm-heading-hover: #bdbdbd;
	--smm-heading-gap: 26px;
	--smm-link-color: #fff;
	--smm-link-hover: #bdbdbd;
	--smm-link-gap: 15px;

	--smm-toggle-bg: #2f2f2f;
	--smm-toggle-color: #fff;
	--smm-toggle-radius: 999px;
	--smm-drop-offset: 10px;

	--smm-bar-color: #2b2b2b;
	--smm-bar-hover: #7a7a7a;
	--smm-bar-active: #2b2b2b;
	--smm-bar-gap: 32px;
	--smm-bar-offset: 32px;
	--smm-bar-drop-bg: #2f2f2f;
	--smm-bar-drop-color: #fff;
	--smm-bar-drop-hover: #bdbdbd;
	--smm-bar-drop-radius: 12px;

	--smm-burger-color: #2b2b2b;
	--smm-burger-bg: transparent;
	--smm-drawer-w: 400px;
	--smm-drawer-bg: #2f2f2f;
	--smm-drawer-sub-bg: #383838;
	--smm-drawer-color: #fff;
	--smm-overlay: rgba(0, 0, 0, 0.5);

	position: relative;
	font-size: 17px;
	line-height: 1.45;
}

.smm *,
.smm *::before,
.smm *::after {
	box-sizing: border-box;
}

/* ---------- Layout ---------- */

.smm .smm__body {
	position: relative; /* panels are positioned against this */
	width: var(--smm-sidebar-w);
	max-width: 100%;
}

.smm .smm__sidebar {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--smm-sidebar-bg);
	border: 1px solid var(--smm-sidebar-border);
	border-radius: var(--smm-sidebar-radius);
}

.smm .smm__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Sidebar rows ---------- */

.smm .smm__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 17px 24px;
	color: var(--smm-item-color);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.smm .smm__item + .smm__item > .smm__row {
	border-top: 1px solid var(--smm-divider);
}

.smm .smm__item:first-child > .smm__row {
	border-top-left-radius: calc(var(--smm-sidebar-radius) - 1px);
	border-top-right-radius: calc(var(--smm-sidebar-radius) - 1px);
}

.smm .smm__item:last-child > .smm__row {
	border-bottom-left-radius: calc(var(--smm-sidebar-radius) - 1px);
	border-bottom-right-radius: calc(var(--smm-sidebar-radius) - 1px);
}

.smm .smm__item.is-active > .smm__row {
	background: var(--smm-item-active-bg);
	color: var(--smm-item-active-color);
}

.smm .smm__link {
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.smm .smm__link:hover,
.smm .smm__link:focus {
	color: inherit;
	text-decoration: none;
}

.smm .smm__item.is-active .smm__link {
	font-weight: 600;
}

.smm .smm__arrow,
.smm .smm__arrow:hover,
.smm .smm__arrow:focus,
.smm .smm__arrow:active {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: -4px -8px -4px 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	box-shadow: none;
	cursor: pointer;
	opacity: 0.85;
}

.smm .smm__arrow svg {
	display: block;
	transition: transform 0.2s ease;
}

/* ---------- Panel (desktop) ---------- */

.smm .smm__panel {
	background: var(--smm-panel-bg);
}

.smm .smm__panel {
	position: absolute;
	top: 0;
	left: calc(100% + var(--smm-panel-offset));
	z-index: 60;
	width: var(--smm-panel-w);
	min-height: 100%;
	padding: 46px 62px 56px;
	border-radius: var(--smm-panel-radius);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.smm .smm__item.is-active > .smm__panel {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.smm .smm__grid {
	display: grid;
	grid-template-columns: repeat(var(--smm-cols), minmax(0, var(--smm-col-w)));
	column-gap: var(--smm-col-gap);
	row-gap: var(--smm-row-gap);
	align-items: start;
}

.smm .smm__heading {
	display: block;
	margin: 0 0 var(--smm-heading-gap);
	color: var(--smm-heading-color);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
	text-decoration: none;
}

.smm .smm__col > .smm__heading:last-child {
	margin-bottom: 0;
}

.smm a.smm__heading:hover {
	color: var(--smm-heading-hover);
	text-decoration: none;
}

.smm .smm__links {
	display: flex;
	flex-direction: column;
	gap: var(--smm-link-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__sublink {
	color: var(--smm-link-color);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.15s ease;
}

.smm a.smm__sublink:hover {
	color: var(--smm-link-hover);
	text-decoration: none;
}

/* Panel opening to the left (menu placed on the right side of the page) */
.smm.smm--panel-left .smm__panel {
	left: auto;
	right: calc(100% + var(--smm-panel-offset));
}

.smm.smm--panel-left.smm--dropdown .smm__body {
	left: auto;
	right: 0;
}

.smm.smm--panel-left.smm--dropdown {
	text-align: right;
}

.smm.smm--panel-left.smm--dropdown .smm__body {
	text-align: left;
}

/* ---------- Focus ---------- */

.smm a:focus-visible,
.smm button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------- Dropdown mode ---------- */

.smm.smm--dropdown {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

/* Button + extra links row */
.smm.smm--dropdown.smm--has-bar .smm__bar {
	margin-left: var(--smm-bar-offset);
}

.smm.smm--dropdown.smm--panel-left.smm--has-bar {
	flex-direction: row-reverse;
}

.smm.smm--dropdown.smm--panel-left.smm--has-bar .smm__bar {
	margin-left: 0;
	margin-right: var(--smm-bar-offset);
}

/* Always-visible mode: links in a row above the sidebar */
.smm.smm--inline.smm--has-bar .smm__bar {
	margin-bottom: 18px;
}

.smm .smm__toggle,
.smm .smm__toggle:hover,
.smm .smm__toggle:focus,
.smm .smm__toggle:active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--smm-toggle-radius);
	background: var(--smm-toggle-bg);
	color: var(--smm-toggle-color);
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.smm .smm__toggle svg {
	transition: transform 0.2s ease;
}

.smm.is-open .smm__toggle svg {
	transform: rotate(180deg);
}

.smm--dropdown .smm__body {
	position: absolute;
	top: calc(100% + var(--smm-drop-offset));
	left: 0;
	z-index: 9999;
	width: var(--smm-sidebar-w);
	max-width: none;
	visibility: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* Invisible bridge so the mouse can travel from the button to the menu */
.smm--dropdown .smm__body::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: var(--smm-drop-offset);
}

.smm--dropdown.is-open .smm__body {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

/* ---------- Extra links row (desktop) ---------- */

.smm .smm__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px var(--smm-bar-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__bar-item {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__bar-link,
.smm .smm__bar-link:focus {
	color: var(--smm-bar-color);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.smm a.smm__bar-link:hover {
	color: var(--smm-bar-hover);
}

.smm .smm__bar-link[aria-current="page"] {
	color: var(--smm-bar-active);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.smm .smm__bar-arrow,
.smm .smm__bar-arrow:hover,
.smm .smm__bar-arrow:focus,
.smm .smm__bar-arrow:active {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0 0 0 2px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--smm-bar-color);
	box-shadow: none;
	cursor: pointer;
}

.smm .smm__bar-arrow svg {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.smm .smm__bar-item.is-open .smm__bar-arrow svg {
	transform: rotate(180deg);
}

.smm .smm__bar-drop {
	position: absolute;
	top: calc(100% + 12px);
	left: -16px;
	z-index: 9998;
	min-width: 200px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--smm-bar-drop-bg);
	border-radius: var(--smm-bar-drop-radius);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
	visibility: hidden;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* Invisible bridge between the link and its dropdown */
.smm .smm__bar-drop::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 12px;
}

.smm .smm__bar-item.is-open > .smm__bar-drop {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.smm .smm__bar-drop li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__bar-sublink,
.smm .smm__bar-sublink:focus {
	display: block;
	padding: 9px 20px;
	color: var(--smm-bar-drop-color);
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.smm a.smm__bar-sublink:hover {
	color: var(--smm-bar-drop-hover);
}

/* ---------- Mobile: menu button ---------- */

.smm .smm__burger {
	display: none; /* shown below the breakpoint by the widget's inline <style> */
}

.smm .smm__burger,
.smm .smm__burger:hover,
.smm .smm__burger:focus,
.smm .smm__burger:active {
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 10px;
	background: var(--smm-burger-bg);
	color: var(--smm-burger-color);
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.smm .smm__burger-icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: space-between;
	width: 22px;
	height: 16px;
}

.smm .smm__burger-icon span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

/* ---------- Mobile: off-canvas drawer ---------- */

.smm .smm__offcanvas {
	position: fixed;
	inset: 0;
	z-index: 99999;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.3s;
}

.smm .smm__offcanvas.is-open {
	visibility: visible;
	pointer-events: auto;
	transition: visibility 0s;
}

.smm .smm__overlay {
	position: absolute;
	inset: 0;
	background: var(--smm-overlay);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.smm .smm__offcanvas.is-open .smm__overlay {
	opacity: 1;
}

.smm .smm__drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(var(--smm-drawer-w), 88vw);
	background: var(--smm-drawer-bg);
	color: var(--smm-drawer-color);
	box-shadow: -16px 0 40px rgba(0, 0, 0, 0.25);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
	outline: none;
}

.smm .smm__offcanvas.is-open .smm__drawer {
	transform: none;
}

.smm .smm__drawer-head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 12px 14px 24px;
	border-bottom: 1px solid var(--smm-divider);
}

.smm .smm__drawer-title {
	font-size: 18px;
	font-weight: 700;
}

.smm .smm__close,
.smm .smm__close:hover,
.smm .smm__close:focus,
.smm .smm__close:active,
.smm .smm__acc-arrow,
.smm .smm__acc-arrow:hover,
.smm .smm__acc-arrow:focus,
.smm .smm__acc-arrow:active {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	box-shadow: none;
	cursor: pointer;
}

.smm .smm__drawer-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.smm .smm__acc {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__acc-item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--smm-divider);
}

.smm .smm__acc-row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding: 6px 10px 6px 24px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.smm .smm__acc-item.has-sub > .smm__acc-row {
	cursor: pointer;
}

.smm .smm__acc-item.is-open > .smm__acc-row {
	background: var(--smm-item-active-bg);
	color: var(--smm-item-active-color);
}

.smm .smm__acc-link,
.smm .smm__acc-link:hover,
.smm .smm__acc-link:focus {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 0;
	color: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.smm .smm__acc-arrow svg {
	transition: transform 0.2s ease;
}

.smm .smm__acc-item.is-open > .smm__acc-row .smm__acc-arrow svg {
	transform: rotate(90deg);
}

.smm .smm__acc-sub {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px 24px 24px;
	background: var(--smm-drawer-sub-bg);
}

.smm .smm__acc-sub[hidden] {
	display: none;
}

.smm .smm__acc-heading {
	display: block;
	margin: 0 0 12px;
	color: var(--smm-heading-color);
	font-weight: 700;
	text-decoration: none;
}

.smm .smm__acc-group > .smm__acc-heading:last-child {
	margin-bottom: 0;
}

.smm .smm__acc-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__acc-links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.smm .smm__acc-sublink,
.smm .smm__acc-sublink:hover,
.smm .smm__acc-sublink:focus {
	color: var(--smm-link-color);
	text-decoration: none;
}

/* Extra links: set apart from the product list and a little lighter */
.smm .smm__acc + .smm__acc--extra {
	margin-top: 20px;
	border-top: 1px solid var(--smm-divider);
}

.smm .smm__acc--extra .smm__acc-link {
	font-weight: 500;
}

html.smm-lock,
html.smm-lock body {
	overflow: hidden;
}

/* The drawer is moved to <body>; this host keeps Elementor's style scope */
.smm-portal,
.smm-portal > .elementor,
.smm-portal .elementor-element {
	display: contents;
}

/* ---------- Misc ---------- */

.smm-notice {
	padding: 16px 20px;
	border: 1px dashed #999;
	border-radius: 8px;
	font-size: 14px;
	color: #555;
}

@media (prefers-reduced-motion: reduce) {
	.smm *,
	.smm .smm__body,
	.smm .smm__offcanvas {
		transition: none !important;
	}
}
