/* Κατηγορίες mega menu — desktop flyout with category images. */

@media (min-width: 1200px) {
	.departments-menu-v2 {
		position: relative;
	}

	.departments-menu-v2 > .dropdown.show,
	.departments-menu-v2 > .dropdown:hover {
		z-index: 80;
	}

	.departments-menu-v2 > .dropdown.show > .bc-mega-menu,
	.departments-menu-v2 > .dropdown.bc-mega-hold > .bc-mega-menu,
	.electro-navigation:not(.yes-home) .departments-menu-v2 > .dropdown:hover > .dropdown-menu.bc-mega-menu,
	.electro-navigation:not(.yes-home) .departments-menu-v2 > .dropdown.bc-mega-hold > .dropdown-menu.bc-mega-menu,
	.header-v1 .electro-navigation.yes-home .departments-menu-v2 > .dropdown.bc-mega-open > .yamm.bc-mega-menu {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
		pointer-events: auto !important;
	}

	.header-v1 .electro-navigation.yes-home .departments-menu-v2 > .dropdown:not(.bc-mega-open) > .yamm.bc-mega-menu {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
		transform: none !important;
	}

	.departments-menu-v2 .bc-mega-menu {
		width: 300px !important;
		min-width: 300px !important;
		max-height: min(72vh, 680px);
		overflow-x: hidden;
		overflow-y: auto;
		padding: 8px !important;
		margin-top: 8px !important;
		border: 1px solid #e6e8ee !important;
		border-radius: 16px !important;
		background: #fff !important;
		box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14) !important;
	}

	.departments-menu-v2 .bc-mega-menu > li {
		padding: 0 !important;
	}

	.departments-menu-v2 .bc-mega-menu > li > a {
		display: flex !important;
		align-items: center;
		border: 0 !important;
		border-radius: 10px !important;
		padding: 7px 28px 7px 7px !important;
		color: #0f172a !important;
		font-weight: 600;
		line-height: 1.3 !important;
		background: transparent !important;
	}

	.departments-menu-v2 .bc-mega-menu > li > a .bc-mega-item {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		min-width: 0;
	}

	.departments-menu-v2 .bc-mega-menu > li > a .bc-mega-img {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
		border-radius: 9px;
	}

	.departments-menu-v2 .bc-mega-menu > li > a .bc-mega-name {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.departments-menu-v2 .bc-mega-menu > li:hover > a,
	.departments-menu-v2 .bc-mega-menu > li:focus-within > a,
	.departments-menu-v2 .bc-mega-menu > li > a:hover,
	.departments-menu-v2 .bc-mega-menu > li > a:focus {
		background: #0f172a !important;
		color: #fff !important;
		font-weight: 600 !important;
	}

	.departments-menu-v2 .bc-mega-menu > li.menu-item-has-children > a::after,
	.departments-menu-v2 .bc-mega-menu > li.menu-item-has-children:hover > a::after,
	.departments-menu-v2 .bc-mega-menu > li.menu-item-has-children:focus-within > a::after {
		color: #ea1b25 !important;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent {
		position: static !important;
	}

	.departments-menu-v2 .departments-menu-v2-title + .dropdown-menu.bc-mega-menu > li.menu-item-has-children.bc-mega-parent > .dropdown-menu,
	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu {
		display: none !important;
		position: fixed !important;
		left: var(--bc-mega-left, calc(100% - 1px)) !important;
		right: auto !important;
		top: var(--bc-mega-top, 0px) !important;
		width: var(--bc-mega-w, 880px) !important;
		min-height: 280px !important;
		max-height: var(--bc-mega-max-h, min(72vh, 680px));
		margin: 0 !important;
		padding: 18px 18px 20px !important;
		overflow: auto;
		border: 1px solid #e6e8ee !important;
		border-left: 3px solid #0f172a !important;
		border-radius: 0 18px 18px 0 !important;
		background: #fff !important;
		box-shadow: 28px 24px 60px rgba(15, 23, 42, 0.16) !important;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 10px;
		align-content: start;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
		pointer-events: auto !important;
		z-index: 1000;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: -24px;
		width: 24px;
	}

	.departments-menu-v2 .departments-menu-v2-title + .dropdown-menu.bc-mega-menu > li.menu-item-has-children.bc-mega-parent:hover > .dropdown-menu,
	.departments-menu-v2 .departments-menu-v2-title + .dropdown-menu.bc-mega-menu > li.menu-item-has-children.bc-mega-parent:focus-within > .dropdown-menu,
	.departments-menu-v2 .departments-menu-v2-title + .dropdown-menu.bc-mega-menu > li.menu-item-has-children.bc-mega-parent.bc-mega-on > .dropdown-menu,
	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent:hover > .dropdown-menu,
	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent:focus-within > .dropdown-menu,
	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent.bc-mega-on > .dropdown-menu {
		display: grid !important;
		width: var(--bc-mega-w, 880px) !important;
		min-width: var(--bc-mega-w, 880px) !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		transition: none !important;
		animation: none !important;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li {
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li.bc-mega-child > a {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 8px;
		min-height: 138px;
		height: 100%;
		margin: 0 !important;
		padding: 14px 10px 12px !important;
		border: 1px solid #e7ebf1 !important;
		border-radius: 14px !important;
		background: #f8fafc !important;
		color: #0f172a !important;
		text-align: center;
		text-decoration: none !important;
		font-weight: 600 !important;
		font-size: 13px;
		line-height: 1.35 !important;
		white-space: normal !important;
		box-shadow: none;
		transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li.bc-mega-child > a::after {
		display: none !important;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li.bc-mega-child > a:hover,
	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li.bc-mega-child > a:focus {
		background: #fff !important;
		border-color: #0f172a !important;
		color: #0f172a !important;
		text-decoration: none !important;
		font-weight: 600 !important;
		transform: translateY(-2px);
		box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu .bc-mega-img {
		width: 76px;
		height: 76px;
		border-radius: 12px;
		background: #fff;
	}

	.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu .bc-mega-name {
		display: block;
		width: 100%;
	}

	.bc-mega-head {
		grid-column: 1 / -1;
		position: sticky;
		top: -18px;
		z-index: 3;
		list-style: none;
		margin: -6px 0 2px !important;
		padding: 0 0 8px !important;
		background: #fff;
	}

	.bc-mega-head > a {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 16px;
		min-height: 0 !important;
		padding: 2px 2px 10px !important;
		border: 0 !important;
		border-bottom: 1px solid #eef1f5 !important;
		border-radius: 0 !important;
		background: #fff !important;
		box-shadow: none !important;
		text-decoration: none !important;
		transform: none !important;
	}

	.bc-mega-head > a:hover,
	.bc-mega-head > a:focus {
		background: #fff !important;
		border-color: transparent !important;
		border-bottom-color: #eef1f5 !important;
	}

	.bc-mega-head-copy {
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
	}

	.bc-mega-head-kicker {
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: #64748b;
	}

	.bc-mega-head-title {
		font-size: 18px;
		font-weight: 700;
		letter-spacing: -0.02em;
		color: #0f172a;
		line-height: 1.2;
	}

	.bc-mega-head em {
		flex: 0 0 auto;
		font-style: normal;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #fff;
		background: #ea1b25;
		border-radius: 999px;
		padding: 7px 12px;
	}

	@media (prefers-reduced-motion: reduce) {
		.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li.bc-mega-child > a {
			transition: none;
		}
		.departments-menu-v2 .bc-mega-menu > li.bc-mega-parent > .dropdown-menu > li.bc-mega-child > a:hover {
			transform: none;
		}
	}
}

.bc-mega-img {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f1f5f9;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.bc-mega-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bc-mega-img--empty::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	box-shadow: 6px 6px 0 -3px #cbd5e1;
}

@media (max-width: 1199.98px) {
	.departments-menu-v2 .bc-mega-img {
		display: none;
	}
}
