.whb-header-bottom .wd-nav-main > li.ps-category-catalog {
	position: static;
	flex: 0 0 auto;
}

.whb-header-bottom .wd-nav-main > li.ps-category-catalog {
	margin: 0;
}

.whb-header-bottom .wd-nav-main > li.ps-mega-more {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
}

.whb-header-bottom .wd-nav-main > li.ps-mega-more[hidden] {
	display: none !important;
}

.ps-mega-more__trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 48px;
	padding: 14px 18px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #f3f4f6;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.ps-mega-more__trigger:hover,
.ps-mega-more__trigger:focus-visible,
.ps-mega-more.is-open .ps-mega-more__trigger {
	color: #e83a17;
	border-bottom-color: #e83a17;
}

.ps-mega-more__panel[hidden] {
	display: none !important;
}

.ps-mega-more__panel > .ps-mega-more__link[hidden] {
	display: none !important;
}

.ps-mega-more__panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 1015;
	min-width: 220px;
	padding: 8px 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: 2px solid #e83a17;
	box-shadow: 0 10px 24px rgba(16, 24, 40, .14);
}

.ps-mega-more__link {
	display: block;
	padding: 11px 16px;
	color: #20252b;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

.ps-mega-more__link:hover,
.ps-mega-more__link:focus-visible {
	background: #fff7f2;
	color: #e83a17;
}

.ps-category-catalog__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: #f3f4f6;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.ps-category-catalog__trigger:hover,
.ps-category-catalog__trigger:focus-visible,
.ps-category-catalog.is-open .ps-category-catalog__trigger {
	color: #e83a17;
	border-bottom-color: #e83a17;
}

.ps-category-catalog__icon {
	font-size: 17px;
	line-height: 1;
}

.ps-category-catalog__chevron {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .16s ease;
}

.ps-category-catalog.is-open .ps-category-catalog__chevron {
	transform: rotate(225deg) translate(-1px, -1px);
}

.ps-category-catalog__panel[hidden],
.ps-category-catalog__group[hidden] {
	display: none !important;
}

.ps-category-catalog__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1010;
	display: grid;
	grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
	height: min(72vh, 640px);
	min-height: 360px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: 2px solid #e83a17;
	box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
	color: #20252b;
	text-align: left;
}

.wd-header-cats .wd-dropdown-cats {
	width: min(1000px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
}

.wd-header-cats .wd-dropdown-cats > .wd-nav-vertical {
	width: 100%;
	min-width: 0;
	padding: 0;
}

.ps-category-catalog--embedded {
	width: 100%;
	margin: 0;
	padding: 0;
}

.ps-category-catalog__panel--embedded {
	position: relative;
	inset: auto;
	width: 100%;
	border: 0;
	box-shadow: none;
}

.ps-category-catalog__roots {
	padding: 12px 0;
	border-right: 1px solid #e9ecef;
	background: #f7f8f9;
	overflow-y: auto;
}

.ps-category-catalog__root {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	min-height: 42px;
	padding: 8px 18px;
	border: 0;
	border-left: 3px solid transparent;
	background: transparent;
	color: #29313a;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.ps-category-catalog__root::after {
	content: "›";
	color: #8b9299;
	font-size: 20px;
}

.ps-category-catalog__root:hover,
.ps-category-catalog__root:focus-visible,
.ps-category-catalog__root.is-active {
	border-left-color: #e83a17;
	background: #fff;
	color: #171b20;
	font-weight: 700;
}

.ps-category-catalog__contents {
	min-width: 0;
	padding: 24px 30px;
	overflow-y: auto;
}

.ps-category-catalog__group {
	min-height: 100%;
}

.ps-category-catalog__heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e9ecef;
}

.ps-category-catalog__heading h2 {
	margin: 0;
	color: #20252b;
	font-family: var(--wd-text-font, "Fira Sans", Arial, Helvetica, sans-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.ps-category-catalog__all {
	flex: 0 0 auto;
	color: #d93212;
	font-size: 13px;
	font-weight: 700;
}

.ps-category-catalog__all:hover,
.ps-category-catalog__all:focus-visible {
	color: #aa260d;
}

/* Sekcijos sudedamos į 3 stulpelius iš viršaus žemyn (CSS columns,
   masonry principu), o ne į grid eilutes — aukšta sekcija nebepalieka
   tuščios vietos šalia savęs. Sekcija niekada neperskeliama per du
   stulpelius. */
.ps-category-catalog__sections {
	display: block;
	column-count: 3;
	column-gap: 32px;
}

.ps-category-catalog__section {
	display: block;
	min-width: 0;
	padding-bottom: 22px;
	break-inside: avoid;
}

.ps-category-catalog__section h3 {
	margin: 0 0 8px;
	padding-bottom: 7px;
	border-bottom: 1px solid #e9ecef;
	color: #73777d;
	font-family: var(--wd-text-font, "Fira Sans", Arial, Helvetica, sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .035em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ps-category-catalog__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Desktop panelyje — viena nuorodų kolona sekcijoje: vaikinė kategorija
   su savo subkategorijomis nebeištempia gretimos celės. Mobile drawer
   išdėstymas nekeičiamas. */
.ps-category-catalog__panel .ps-category-catalog__links {
	display: block;
}

/* WoodMart visiems <li> prideda margin-bottom (--li-mb: 10px). */
.ps-category-catalog__panel .ps-category-catalog__links li {
	margin: 0;
}

.ps-category-catalog__links li {
	min-width: 0;
}

.ps-category-catalog__links a {
	display: block;
	padding: 4px 0;
	color: #34383d;
	font-size: 14px;
	line-height: 1.4;
}

.ps-category-catalog__links a:hover,
.ps-category-catalog__links a:focus-visible {
	color: #d93212;
}

.ps-category-catalog__links .ps-category-catalog__links {
	display: block;
	margin: 0 0 6px 2px;
	padding-left: 12px;
	border-left: 1px solid #e4e7ea;
}

.ps-category-catalog__links .ps-category-catalog__links a {
	padding: 2px 0;
	color: #5b6168;
	font-size: 13px;
}

.mobile-nav .wd-nav-mobile > .ps-mobile-catalog-group {
	border-bottom: 1px solid var(--brdcolor-gray-300, #e1e1e1);
}

.mobile-nav .wd-nav-mobile .ps-mobile-catalog-category > a {
	font-weight: 500;
}

@media (min-width: 1025px) and (max-width: 1366px) {
	.ps-category-catalog__panel {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.ps-category-catalog__contents {
		padding-right: 20px;
		padding-left: 20px;
	}

	.ps-category-catalog__sections {
		column-gap: 24px;
	}
}

@media (max-width: 1024px) {
	.whb-header-bottom .wd-nav-main > li.ps-category-catalog {
		display: none;
	}

	.whb-header-bottom .wd-nav-main > li.ps-mega-more {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ps-category-catalog__chevron {
		transition: none;
	}
}

.ps-mobile-category-drawer[hidden] {
	display: none !important;
}

.ps-mobile-category-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	pointer-events: none;
}

.ps-mobile-category-drawer.is-open {
	pointer-events: auto;
}

.ps-mobile-category-drawer__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(18, 22, 26, .58);
	opacity: 0;
	transition: opacity .2s ease;
}

.ps-mobile-category-drawer.is-open .ps-mobile-category-drawer__overlay {
	opacity: 1;
}

.ps-mobile-category-drawer__panel {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	width: min(440px, 100%);
	max-width: 100vw;
	height: 100%;
	padding-top: env(safe-area-inset-top);
	background: #fff;
	color: #20252b;
	box-shadow: 12px 0 32px rgba(16, 24, 40, .18);
	transform: translateX(-102%);
	transition: transform .24s ease;
}

.ps-mobile-category-drawer.is-open .ps-mobile-category-drawer__panel {
	transform: translateX(0);
}

.ps-mobile-category-drawer__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 8px 58px;
	border-bottom: 1px solid #e5e7eb;
}

.ps-mobile-category-drawer__header h2 {
	margin: 0;
	color: #20252b;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.ps-mobile-category-drawer__back,
.ps-mobile-category-drawer__close {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 0;
	background: transparent;
	color: #20252b;
	font: inherit;
	cursor: pointer;
	transform: translateY(-50%);
}

.ps-mobile-category-drawer__back {
	left: 8px;
	gap: 5px;
	padding: 0 8px;
	color: #e83a17;
	font-size: 14px;
	font-weight: 600;
}

.ps-mobile-category-drawer__close {
	right: 8px;
	width: 44px;
	padding: 0;
	font-size: 30px;
	line-height: 1;
}

.ps-mobile-category-drawer__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.ps-mobile-category-drawer__groups,
.ps-mobile-category-drawer__category {
	padding: 8px 16px 24px;
}

.ps-mobile-category-drawer__groups[hidden],
.ps-mobile-category-drawer__category[hidden] {
	display: none !important;
}

.ps-mobile-category-drawer__group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 10px 4px;
	border: 0;
	border-bottom: 1px solid #e9ecef;
	background: #fff;
	color: #20252b;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	white-space: normal;
	cursor: pointer;
}

.ps-mobile-category-drawer__group:hover,
.ps-mobile-category-drawer__group:focus-visible {
	color: #e83a17;
}

.ps-mobile-category-drawer__arrow {
	flex: 0 0 auto;
	color: #e83a17;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
}

.ps-mobile-category-drawer__all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	margin: 4px 0 18px;
	padding: 10px 14px;
	background: #272b30;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.ps-mobile-category-drawer__all:hover,
.ps-mobile-category-drawer__all:focus-visible {
	background: #e83a17;
	color: #fff;
}

.ps-mobile-category-drawer__section + .ps-mobile-category-drawer__section {
	margin-top: 22px;
}

.ps-mobile-category-drawer__section h3 {
	margin: 0 0 8px;
	padding-bottom: 7px;
	border-bottom: 2px solid #e83a17;
	color: #20252b;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.ps-mobile-category-drawer__section .ps-category-catalog__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-mobile-category-drawer__section .ps-category-catalog__links ul {
	margin: 0 0 0 12px;
	padding: 0 0 0 10px;
	border-left: 1px solid #e5e7eb;
	list-style: none;
}

.ps-mobile-category-drawer__section .ps-category-catalog__links li {
	margin: 0;
}

.ps-mobile-category-drawer__section .ps-category-catalog__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 4px;
	color: #353b42;
	font-size: 15px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.ps-mobile-category-drawer__section .ps-category-catalog__links a:hover,
.ps-mobile-category-drawer__section .ps-category-catalog__links a:focus-visible {
	color: #e83a17;
}

.ps-mobile-category-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	width: 100%;
	min-height: 50px;
	padding: 8px 20px;
	border: 0;
	background: #fff;
	color: #20252b;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.mobile-nav .wd-nav-mobile > .ps-mobile-category-trigger-item {
	margin-bottom: 8px;
	border-bottom: 1px solid #e5e7eb;
}

.ps-mobile-category-trigger svg {
	width: 20px;
	height: 20px;
	color: #e83a17;
}

.ps-mobile-category-trigger:hover,
.ps-mobile-category-trigger:focus-visible,
.ps-mobile-category-trigger[aria-expanded="true"] {
	color: #e83a17;
}

@media (min-width: 1025px) {
	.ps-mobile-category-drawer,
	.mobile-nav .ps-mobile-category-trigger-item {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ps-mobile-category-drawer__overlay,
	.ps-mobile-category-drawer__panel {
		transition: none;
	}
}
