/* ============================================================
   MOP Category Sidebar — Layout & Mobile Drawer
   ============================================================ */

/* ── Breadcrumb ──────────────────────────────────────────── */

.mop-cat-breadcrumb {
	justify-self: center;
	max-width: 1200px !important;
	width: 100%;
	padding-block: 10px !important;
	font-size: 10px;
}

.mop-cat-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.mop-cat-breadcrumb a:hover {
	text-decoration: underline;
}

/* ── Desktop layout ──────────────────────────────────────── */

.mop-cat-layout {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	width: 100%;
	max-width: 1200px !important;
	justify-self: center;
	padding-inline: 18px;
	box-sizing: border-box;
}

.mop-cat-sidebar {
	flex: 0 0 280px;
	width: 280px;
	position: sticky;
	top: 100px;
	align-self: flex-start;
}

.mop-cat-main {
	flex: 1 1 0%;
	min-width: 0;
	display: block;
}

.mop-cat-banner {
	display: block;
	width: 100%;
	margin-bottom: 24px;
}

.mop-cat-content {
	display: block;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

/* Force Elementor containers inside to respect parent width */
.mop-cat-content .elementor,
.mop-cat-content .elementor-section-wrap,
.mop-cat-content > .elementor {
	width: 100% !important;
	max-width: 100% !important;
}

/* ── Mobile FAB + drawer — hidden on desktop ─────────────── */

.mop-drawer-toggle,
.mop-drawer,
.mop-drawer-overlay {
	display: none;
}

/* ── iPad / tablet — no sidebar, no FAB ─────────────────── */

@media (max-width: 1024px) {
	.mop-cat-sidebar {
		display: none;
	}

	.mop-cat-layout {
		gap: 0;
	}
}

/* ── Mobile — no sidebar, show FAB drawer ───────────────── */

@media (max-width: 768px) {

	/* Floating Action Button — bottom-right */
	.mop-drawer-toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		position: fixed;
		bottom: 24px;
		right: 24px;
		z-index: 9999;
		background: #1e3a8a;
		color: #fff;
		border: none;
		border-radius: 50px;
		padding: 12px 20px;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: 0.02em;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
		cursor: pointer;
		transition: background 0.2s, box-shadow 0.2s;
	}

	.mop-drawer-toggle:hover,
	.mop-drawer-toggle:focus {
		background: #1e40af;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
		outline: none;
	}

	/* Semi-transparent overlay */
	.mop-drawer-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 9998;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}

	.mop-drawer-overlay.is-open {
		opacity: 1;
		pointer-events: all;
	}

	/* Slide-in drawer panel */
	.mop-drawer {
		display: block;
		position: fixed;
		top: 0;
		right: -320px;
		width: 300px;
		height: 100%;
		background: #fff;
		z-index: 10000;
		overflow-y: auto;
		padding: 16px;
		box-sizing: border-box;
		transition: right 0.3s ease;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
	}

	.mop-drawer.is-open {
		right: 0;
	}

	/* Close button inside drawer */
	.mop-drawer-close {
		display: block;
		margin-left: auto;
		margin-bottom: 16px;
		background: none;
		border: 1px solid #e5e5e5;
		border-radius: 4px;
		padding: 4px 10px;
		font-size: 16px;
		line-height: 1.5;
		cursor: pointer;
		color: #444;
		transition: background 0.15s;
	}

	.mop-drawer-close:hover {
		background: #f5f5f5;
	}
}
