/* SD Mobile Drawer Menu – defaults match the Stil & Design reference.
   Every value here can be overridden from the Elementor Style tab. */

/* ---------- Trigger ---------- */
.sdmd {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.sdmd .sdmd-trigger,
.sdmd .sdmd-trigger:hover,
.sdmd .sdmd-trigger:focus {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	min-height: 0;
	text-transform: none;
	letter-spacing: normal;
}
.sdmd .sdmd-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	color: #1d1a17;
	cursor: pointer;
	line-height: 1;
	font: inherit;
}
.sdmd-trigger-icon {
	display: inline-flex;
	font-size: 24px;
}
.sdmd .sdmd-trigger:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ---------- Icons ---------- */
.sdmd-ico {
	width: 1em;
	height: 1em;
	display: block;
	flex: 0 0 auto;
}
.sdmd-ico-wrap {
	display: inline-flex;
	line-height: 1;
}
.sdmd-ico-wrap svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.sdmd-ico-wrap i {
	font-size: 1em;
}

/* ---------- Overlay ---------- */
.sdmd-overlay {
	--sdmd-duration: 380ms;
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(29, 26, 23, .42);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--sdmd-duration) ease, visibility 0s linear var(--sdmd-duration);
}
.sdmd-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--sdmd-duration) ease;
}

/* ---------- Drawer ---------- */
.sdmd-drawer {
	--sdmd-accent: #52231c;
	--sdmd-text: #1d1a17;
	--sdmd-muted: #635c57;
	--sdmd-border: #eae7e2;
	--sdmd-pill-border: #dcd7cf;
	--sdmd-bg: #ffffff;
	--sdmd-pad-x: 20px;
	--sdmd-section-gap: 30px;
	--sdmd-duration: 380ms;
	--sdmd-ease: cubic-bezier(.32, .72, 0, 1);

	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	width: 85vw;
	max-width: 384px;
	height: 100%;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--sdmd-bg);
	color: var(--sdmd-text);
	box-shadow: 0 0 48px rgba(0, 0, 0, .18);
	overflow: hidden;
	outline: 0;
	transform: translate3d(-100%, 0, 0);
	visibility: hidden;
	transition: transform var(--sdmd-duration) var(--sdmd-ease), visibility 0s linear var(--sdmd-duration);
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overscroll-behavior: contain;
}
.sdmd-drawer.sdmd-side-right {
	left: auto;
	right: 0;
	transform: translate3d(100%, 0, 0);
}
.sdmd-drawer.is-open {
	transform: none;
	visibility: visible;
	transition: transform var(--sdmd-duration) var(--sdmd-ease);
}
.sdmd-drawer.is-dragging {
	transition: none;
}
.sdmd-drawer *,
.sdmd-drawer *::before,
.sdmd-drawer *::after {
	box-sizing: border-box;
}

/* Theme button resets inside the drawer (Hello, Astra… style buttons globally). */
.sdmd-drawer button,
.sdmd-drawer button:hover,
.sdmd-drawer button:focus {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	min-height: 0;
	width: auto;
	font-family: inherit;
	text-decoration: none;
}
.sdmd-drawer a,
.sdmd-drawer a:hover,
.sdmd-drawer a:focus {
	text-decoration: none;
	box-shadow: none;
}
.sdmd-drawer :focus-visible {
	outline: 2px solid var(--sdmd-accent);
	outline-offset: -2px;
}

/* ---------- Header ---------- */
.sdmd-drawer .sdmd-header {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-height: 75px;
	padding: 12px 60px 12px var(--sdmd-pad-x);
	background: var(--sdmd-accent);
	color: #fff;
}
.sdmd-header-brand,
.sdmd-header-sub {
	display: flex;
	align-items: center;
	min-width: 0;
}
.sdmd-drawer .sdmd-brand {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	color: inherit;
}
.sdmd-drawer .sdmd-brand img {
	display: block;
	width: 122px;
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.sdmd-brand-name {
	font-size: 22px;
	line-height: 1.1;
	font-style: italic;
}
.sdmd-tagline {
	font-size: 7.5px;
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 500;
	opacity: .9;
	white-space: nowrap;
}
.sdmd-header-sub {
	display: none;
	gap: 14px;
}
.sdmd-drawer.is-sub .sdmd-header-brand {
	display: none;
}
.sdmd-drawer.is-sub .sdmd-header-sub {
	display: flex;
}
.sdmd-drawer .sdmd-back,
.sdmd-drawer .sdmd-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	color: inherit;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}
.sdmd-drawer .sdmd-back {
	margin-left: -8px;
}
.sdmd-drawer .sdmd-back:hover,
.sdmd-drawer .sdmd-close:hover,
.sdmd-drawer .sdmd-back:focus,
.sdmd-drawer .sdmd-close:focus {
	color: inherit;
	opacity: .8;
}
.sdmd-drawer .sdmd-close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
}
.sdmd-sub-title {
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Tiles ---------- */
.sdmd-tiles {
	flex: 0 0 auto;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	border-bottom: 1px solid var(--sdmd-border);
	background: var(--sdmd-bg);
}
.sdmd-drawer .sdmd-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 74px;
	padding: 12px 8px;
	color: var(--sdmd-text);
	transition: background-color .2s ease;
}
.sdmd-tile + .sdmd-tile {
	border-left: 1px solid var(--sdmd-border);
}
.sdmd-tile-icon {
	position: relative;
	display: inline-flex;
	font-size: 19px;
}
.sdmd-tile-label {
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.sdmd-badge {
	position: absolute;
	top: -7px;
	right: -11px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 99px;
	background: var(--sdmd-accent);
	color: #fff;
	font-size: 9px;
	line-height: 16px;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0;
}
.sdmd-badge[hidden] {
	display: none;
}
.sdmd-drawer.is-sub .sdmd-tiles {
	display: none;
}

/* ---------- Panels ---------- */
.sdmd-panels {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}
.sdmd-panel {
	position: absolute;
	inset: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 6px var(--sdmd-pad-x) 36px;
	background: var(--sdmd-bg);
	transform: translate3d(100%, 0, 0);
	visibility: hidden;
	transition: transform var(--sdmd-duration) var(--sdmd-ease), visibility 0s linear var(--sdmd-duration);
	scrollbar-width: thin;
}
.sdmd-panel.is-active {
	transform: none;
	visibility: visible;
	transition: transform var(--sdmd-duration) var(--sdmd-ease);
}
.sdmd-panel.is-behind {
	transform: translate3d(-28%, 0, 0);
}

/* ---------- Lists & rows ---------- */
.sdmd-drawer .sdmd-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sdmd-drawer .sdmd-row {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--sdmd-border);
}
.sdmd-drawer .sdmd-list > .sdmd-row:last-child {
	border-bottom-style: none;
}
.sdmd-drawer .sdmd-row::before,
.sdmd-drawer .sdmd-row::marker {
	content: none;
}
.sdmd-drawer .sdmd-row-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	color: var(--sdmd-text);
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 400;
	background: transparent;
	transition: color .2s ease;
	-webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
	.sdmd-drawer .sdmd-row-link:hover {
		color: var(--sdmd-accent);
	}
	.sdmd-drawer .sdmd-tile:hover {
		background-color: rgba(0, 0, 0, .02);
	}
	.sdmd-drawer .sdmd-pill:not(.is-active):hover {
		border-color: var(--sdmd-accent);
		color: var(--sdmd-accent);
	}
}
.sdmd-drawer .sdmd-row.is-highlight > .sdmd-row-link,
.sdmd-drawer .sdmd-row.is-current > .sdmd-row-link {
	color: var(--sdmd-accent);
}
.sdmd-drawer .sdmd-row.is-current > .sdmd-row-link {
	font-weight: 500;
}
.sdmd-label {
	flex: 1 1 auto;
	min-width: 0;
}
.sdmd-chevron {
	flex: 0 0 auto;
	display: inline-flex;
	font-size: 15px;
	color: var(--sdmd-muted);
	margin-left: auto;
}
.sdmd-drawer .sdmd-row--cat > .sdmd-row-link {
	padding: 10px 0;
}
.sdmd-thumb {
	flex: 0 0 auto;
	display: block;
	width: 44px;
	height: auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f3efea;
}
.sdmd-drawer .sdmd-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.sdmd-drawer .sdmd-row--viewall > .sdmd-row-link {
	color: var(--sdmd-accent);
	font-weight: 500;
}
.sdmd-drawer .sdmd-panel--sub .sdmd-row > .sdmd-row-link {
	padding-top: 13px;
	padding-bottom: 13px;
}

/* ---------- Headings / blocks ---------- */
.sdmd-drawer .sdmd-heading {
	margin: var(--sdmd-section-gap) 0 6px;
	font-size: 10px;
	line-height: 1.3;
	letter-spacing: .2em;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--sdmd-muted);
}
.sdmd-panel > .sdmd-heading:first-child {
	margin-top: 18px;
}
.sdmd-block {
	margin-top: var(--sdmd-section-gap);
}
.sdmd-drawer .sdmd-block > .sdmd-heading {
	margin: 0 0 10px;
}
.sdmd-block + .sdmd-block {
	margin-top: 20px;
}
.sdmd-spacer {
	height: 24px;
}

/* ---------- Pills (language / currency) ---------- */
.sdmd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sdmd-drawer .sdmd-pill,
.sdmd-drawer .sdmd-pill:hover,
.sdmd-drawer .sdmd-pill:focus {
	border: 1px solid var(--sdmd-pill-border);
	background: transparent;
	color: var(--sdmd-muted);
}
.sdmd-drawer .sdmd-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 5px 12px;
	font-family: inherit;
	font-size: 12px;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: none;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.sdmd-drawer .sdmd-pill.is-active,
.sdmd-drawer .sdmd-pill.is-active:hover,
.sdmd-drawer .sdmd-pill.is-active:focus {
	background: var(--sdmd-accent);
	border-color: var(--sdmd-accent);
	color: #fff;
	font-weight: 500;
	cursor: default;
}
.sdmd-drawer .sdmd-pill.is-loading {
	opacity: .55;
	pointer-events: none;
}
.sdmd-yay-hidden,
.sdmd-yay-hidden[hidden] {
	display: none !important;
}

/* ---------- Page lock ---------- */
html.sdmd-lock,
html.sdmd-lock body {
	overflow: hidden !important;
}
html.sdmd-lock body {
	touch-action: none;
}
html.sdmd-lock .sdmd-drawer {
	touch-action: pan-y;
}

/* ---------- Portal wrapper (drawer moved to <body> on the live site) ---------- */
.sdmd-portal,
.sdmd-portal > .elementor-element {
	display: contents !important;
}

/* ---------- Editor ---------- */
.elementor-editor-active .sdmd-overlay.is-open {
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.sdmd-drawer,
	.sdmd-overlay,
	.sdmd-panel {
		transition-duration: 1ms !important;
	}
}
