/* ============================================================
   COSMOD Mobile Menu — Luxury Minimal (merged into [cosmod_header])
   Same look as standalone Cosmod Mobile Menu plugin v4 / v2.1 CSS
   ============================================================ */

.cosmod-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	width: 22px;
	padding: 2px 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: #fff;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.cosmod-menu-toggle span {
	display: block;
	height: 1.5px;
	width: 100%;
	background: currentColor;
	margin: 3.5px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.cosmod-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(8.5px) rotate(45deg);
}

.cosmod-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.cosmod-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8.5px) rotate(-45deg);
}

.cosmod-mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	z-index: 999998;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

body.cosmod-mobile-open {
	overflow: hidden;
}

body.cosmod-mobile-open .cosmod-mobile-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.cosmod-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background: #fff;
	color: #111;
	z-index: 999999;
	transform: translateX(-105%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	box-shadow: 4px 0 32px rgba(0, 0, 0, 0.1);
	pointer-events: none;
}

body.cosmod-mobile-open .cosmod-mobile-drawer {
	transform: translateX(0);
	pointer-events: auto;
}

.cosmod-mobile-overlay[hidden],
.cosmod-mobile-drawer[hidden] {
	display: block !important;
}

.cosmod-mobile-panel {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.cosmod-mobile-panel.active {
	transform: translateX(0);
}

/* ===== HEADER ===== */
.cosmod-mobile-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 0.5px solid #e8e6e1;
	position: sticky;
	top: 0;
	z-index: 2;
	background: #fff;
}

.cosmod-mobile-panel__title {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #111;
	white-space: nowrap;
	text-decoration: none;
}

.cosmod-mobile-panel__spacer {
	width: 44px;
	display: block;
	flex-shrink: 0;
}

.cosmod-mobile-panel__back,
.cosmod-mobile-panel__close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	border: 0;
	background: none;
	padding: 0;
	font-size: 0;
	color: transparent;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.cosmod-mobile-panel__back::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	border-left: 2.5px solid #111;
	border-bottom: 2.5px solid #111;
	transform: rotate(45deg);
	margin-left: 4px;
}

.cosmod-mobile-panel__close {
	opacity: 0.65;
	position: relative;
	transition: opacity 0.2s;
}

.cosmod-mobile-panel__close::before,
.cosmod-mobile-panel__close::after {
	content: "";
	position: absolute;
	width: 22px;
	height: 2.5px;
	background: #111;
	left: 50%;
	top: 50%;
	margin-left: -11px;
	margin-top: -1.25px;
}

.cosmod-mobile-panel__close::before {
	transform: rotate(45deg);
}

.cosmod-mobile-panel__close::after {
	transform: rotate(-45deg);
}

.cosmod-mobile-panel__close:hover {
	opacity: 1;
}

/* ===== LIST ===== */
.cosmod-mobile-list,
.cosmod-mobile-drawer .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cosmod-mobile-list > li,
.cosmod-mobile-drawer .sub-menu > li {
	border-bottom: 0.5px solid #f0ede8;
}

.cosmod-mobile-list a,
.cosmod-mobile-drawer .sub-menu a {
	display: block;
	padding: 20px 22px;
	text-decoration: none;
	color: #111 !important;
	font-size: 16px;
	font-family: Georgia, "Times New Roman", Times, serif !important;
	font-weight: 400 !important;
	font-style: normal !important;
	letter-spacing: 0.02em;
	transition: background 0.15s;
}

.cosmod-mobile-list a:hover,
.cosmod-mobile-drawer .sub-menu a:hover {
	background: #f9f8f6;
}

.cosmod-mobile-list ul.sub-menu {
	display: none;
}

.cosmod-mobile-list .menu-item-has-children,
.cosmod-mobile-drawer .menu-item-has-children {
	position: relative;
}

.cosmod-mobile-list .menu-item-has-children > a,
.cosmod-mobile-drawer .menu-item-has-children > a {
	padding-right: 72px;
}

/* Submenu chevron — larger icon + tap target */
.cosmod-mobile-arrow {
	position: absolute;
	right: 0;
	top: 0;
	width: 72px;
	height: 100%;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
	z-index: 10;
	font-size: 0;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.cosmod-mobile-arrow::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	border-right: 2.5px solid #777;
	border-top: 2.5px solid #777;
	transform: rotate(45deg);
}

.cosmod-mobile-arrow:hover::after {
	border-color: #111;
}

/* Divider before last item (Livraison) */
.cosmod-mobile-list > li:last-child {
	border-top: 1.5px solid #e8e6e1;
	margin-top: 8px;
}

.cosmod-mobile-list > li:last-child > a {
	color: #000 !important;
	font-size: 16px !important;
	letter-spacing: 0.06em !important;
}

.cosmod-mobile-empty {
	padding: 40px 20px;
	text-align: center;
	color: #111;
	font-size: 14px;
	font-family: Georgia, serif;
}

@media (max-width: 960px) {
	.cosmod-menu-toggle {
		display: inline-flex;
	}
}

@media (min-width: 961px) {
	.cosmod-mobile-overlay,
	.cosmod-mobile-drawer,
	.cosmod-menu-toggle {
		display: none !important;
	}
}
