/* ==========================================================================
   WkResponsiveMenu - style menu kategorii
   ========================================================================== */

:root {
	--wkmenu-accent: #5a604c;
	--wkmenu-accent-dark: #1d1d1b;
	--wkmenu-bg: #1D1D1B;
	--wkmenu-text: #d8d8d8;
	--wkmenu-border: #1D1D1B;
	--wkmenu-hover-bg: #1D1D1B;
}

.wkmenu {
	position: relative;
	background: var(--wkmenu-bg);
	border-bottom: 2px solid var(--wkmenu-accent);
	font-family: inherit;
	z-index: 49;
}

.wkmenu * {
	box-sizing: border-box;
}

.wkmenu__toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	background: var(--wkmenu-accent);
	color: #fff;
	border: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
}

.wkmenu__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	position: relative;
}

.wkmenu__toggle-bar::before,
.wkmenu__toggle-bar::after {
	content: '';
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	background: #fff;
}

.wkmenu__toggle-bar::before { top: -7px; }
.wkmenu__toggle-bar::after { top: 7px; }

.wkmenu__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

.wkmenu__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 14px 18px;
	color: var(--wkmenu-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}

.wkmenu__caret {
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform .15s ease;
}

.wkmenu__item-toggle {
	display: none;
}

/* --- Submenu (mega menu) --- */

.wkmenu__submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: var(--wkmenu-bg);
	border: 1px solid var(--wkmenu-border);
	border-top: 3px solid var(--wkmenu-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	padding: 18px 0;
}

.wkmenu__submenu-inner {
	max-height: 70vh;
	overflow-y: auto;
	column-width: 220px;
	column-gap: 24px;
	padding: 0 20px;
}

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

.wkmenu__sub-item {
	break-inside: avoid;
	margin-bottom: 14px;
}

.wkmenu__sub-link {
	display: block;
	color: var(--wkmenu-accent-dark);
	font-weight: 800;
	text-decoration: none;
	font-size: 12px;
	margin-bottom: 6px;
}

.wkmenu__sub-link:hover {
	text-decoration: underline;
}

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

.wkmenu__subsub-item {
	margin-bottom: 4px;
}

.wkmenu__subsub-link {
	display: block;
	color: var(--wkmenu-text);
	text-decoration: none;
	font-size: 11px;
	padding: 2px 0;
}

.wkmenu__subsub-link:hover {
	color: var(--wkmenu-accent);
	text-decoration: underline;
}

/* --- Zachowanie na desktopie: hover pokazuje submenu --- */

@media (min-width: 993px) {
	.wkmenu {
		width: 90vw;
		max-width: 90vw;
		margin-left: calc(50% - 45vw);
		margin-right: calc(50% - 45vw);
	}
	.wkmenu__list {
		justify-content: center;
	}
	.wkmenu__item:hover > .wkmenu__link,
	.wkmenu__item.wkmenu--open > .wkmenu__link {
		background-color: var(--wkmenu-hover-bg);
		color: var(--wkmenu-accent-dark);
	}

	.wkmenu__item:hover > .wkmenu__caret,
	.wkmenu__item.wkmenu--open > .wkmenu__link .wkmenu__caret {
		transform: rotate(225deg);
		margin-top: 3px;
	}

	.wkmenu__item:hover > .wkmenu__submenu,
	.wkmenu__item.wkmenu--open > .wkmenu__submenu {
		display: block;
	}
	.wkmenu__submenu {
		left: 50%;
		width: 100%;        /* 80% szerokości całego paska menu */
		/* albo, jeśli wolisz 80% szerokości ekranu: */
		/* width: 80vw; */
		transform: translateX(-50%);
		min-width: 0;      /* nadpisuje sztywne 260px z bazowej reguły */
	}
}

/* ==========================================================================
   Wersja mobilna (<= 992px): hamburger + akordeon
   ========================================================================== */

@media (max-width: 992px) {
	.wkmenu {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
	.wkmenu__toggle {
		display: flex;
	}

	.wkmenu__list {
		display: none;
		flex-direction: column;
	}

	.wkmenu.wkmenu--mobile-open .wkmenu__list {
		display: flex;
	}

	.wkmenu__item {
		border-right: 0;
		border-bottom: 1px solid var(--wkmenu-border);
		width: 100%;
		position: relative;
	}

	.wkmenu__link {
		width: 100%;
		padding: 14px 16px;
		justify-content: space-between;
	}

	.wkmenu__item-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0;
		width: 48px;
		height: 100%;
		background: transparent;
		border: 0;
		border-left: 1px solid var(--wkmenu-border);
		cursor: pointer;
	}

	.wkmenu__item.wkmenu--open > .wkmenu__item-toggle .wkmenu__caret {
		transform: rotate(225deg);
		margin-top: 3px;
	}

	.wkmenu__submenu {
		position: static;
		border: 0;
		border-top: 1px solid var(--wkmenu-border);
		box-shadow: none;
		padding: 8px 0;
	}

	.wkmenu__submenu-inner {
		column-width: auto;
		columns: 1;
		max-height: none;
		padding: 0 16px 0 28px;
	}

	.wkmenu__item.wkmenu--open > .wkmenu__submenu {
		display: block;
	}
/*	.wkmenu__caret {
		display: none;
	}*/
}
