:root {
	--twc-nav-accent: #087f7c;
	--twc-nav-accent-dark: #056763;
	--twc-nav-text: #17212b;
	--twc-nav-muted: #66727f;
	--twc-nav-line: #e3e8ec;
	--twc-nav-soft: #f5f8f8;
}

.wd-header-cats .wd-dropdown-cats {
	width: min(1060px, calc(100vw - 40px)) !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid var(--twc-nav-line);
	border-radius: 0 0 14px 14px;
	box-shadow: 0 22px 48px rgba(20, 41, 55, 0.16);
}

#menu-all-categories {
	width: 100%;
	padding: 0 !important;
}

#menu-all-categories > .twc-cat-menu-shell {
	display: grid !important;
	grid-template-columns: 274px minmax(0, 1fr);
	width: 100%;
	height: min(570px, calc(100vh - 225px));
	min-height: 440px;
	padding: 0 !important;
	background: #fff;
}

.twc-cat-rail {
	overflow-y: auto;
	padding: 10px 0;
	background: var(--twc-nav-soft);
	border-right: 1px solid var(--twc-nav-line);
	scrollbar-color: #bdc9ca transparent;
	scrollbar-width: thin;
}

#menu-all-categories .twc-cat-trigger {
	display: flex !important;
	align-items: center;
	justify-content: space-between !important;
	gap: 16px;
	width: 100%;
	min-height: 44px;
	padding: 10px 18px !important;
	color: var(--twc-nav-text) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	background: transparent !important;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

#menu-all-categories .twc-cat-trigger:hover,
#menu-all-categories .twc-cat-trigger:focus-visible,
#menu-all-categories .twc-cat-trigger.is-active {
	color: var(--twc-nav-accent-dark) !important;
	background: #fff !important;
}

#menu-all-categories .twc-cat-trigger:focus-visible {
	outline: 2px solid var(--twc-nav-accent);
	outline-offset: -3px;
}

.twc-cat-trigger small {
	font-size: 12px;
	font-weight: 700;
	color: var(--twc-nav-accent);
}

.twc-cat-trigger i {
	width: 8px;
	height: 8px;
	border-top: 1.5px solid currentcolor;
	border-right: 1.5px solid currentcolor;
	transform: rotate(45deg);
	flex: 0 0 auto;
}

.twc-cat-panels {
	min-width: 0;
	background: #fff;
}

.twc-cat-panel {
	height: 100%;
	overflow-y: auto;
	padding: 28px 30px 30px;
	scrollbar-color: #bdc9ca transparent;
	scrollbar-width: thin;
}

.twc-cat-panel[hidden] {
	display: none !important;
}

.twc-cat-panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--twc-nav-line);
}

.twc-cat-panel-heading h2 {
	margin: 0 0 5px;
	color: var(--twc-nav-text);
	font-size: 22px;
	line-height: 1.2;
}

.twc-cat-panel-heading p {
	margin: 0;
	color: var(--twc-nav-muted);
	font-size: 13px;
	line-height: 1.5;
}

.twc-cat-panel-heading > a {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--twc-nav-accent-dark) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.twc-cat-search {
	position: relative;
	display: block;
	margin-bottom: 18px;
}

.twc-cat-search input[type="search"] {
	width: 100%;
	height: 44px;
	padding: 0 15px;
	color: var(--twc-nav-text);
	background: #fff;
	border: 1px solid #cfd8dc;
	border-radius: 10px;
}

.twc-cat-search input[type="search"]:focus {
	border-color: var(--twc-nav-accent);
	box-shadow: 0 0 0 3px rgba(8, 127, 124, 0.14);
	outline: 0;
}

.twc-cat-all-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 26px;
}

.twc-cat-all-list > a[hidden] {
	display: none !important;
}

.twc-cat-all-list > a,
.twc-cat-group-list > a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	padding: 11px 4px;
	color: var(--twc-nav-text) !important;
	border-bottom: 1px solid #eef1f3;
}

.twc-cat-all-list > a:hover,
.twc-cat-all-list > a:focus-visible,
.twc-cat-group-list > a:hover,
.twc-cat-group-list > a:focus-visible {
	color: var(--twc-nav-accent-dark) !important;
	background: #f7fbfb;
}

.twc-cat-all-list > a:focus-visible,
.twc-cat-group-list > a:focus-visible {
	outline: 2px solid var(--twc-nav-accent);
	outline-offset: -2px;
}

.twc-cat-all-list span,
.twc-cat-group-list span {
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
}

.twc-cat-all-list small,
.twc-cat-group-list small {
	flex: 0 0 auto;
	color: var(--twc-nav-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
}

.twc-cat-group-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 34px;
}

.twc-cat-group-list > a {
	min-height: 58px;
}

.twc-cat-group-list > a span {
	font-size: 14px;
}

.twc-cat-empty {
	margin: 36px 0;
	color: var(--twc-nav-muted);
	text-align: center;
}

.wd-header-main-nav .twc-mobile-categories {
	display: none !important;
}

@media (max-width: 1200px) {
	.wd-header-cats .wd-dropdown-cats {
		width: min(930px, calc(100vw - 30px)) !important;
	}

	#menu-all-categories > .twc-cat-menu-shell {
		grid-template-columns: 250px minmax(0, 1fr);
	}

	.twc-cat-all-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.mobile-pages-menu .twc-mobile-categories {
		display: list-item;
	}
}

/* Live homepage category directory. */
.twc-home-categories {
	padding: 44px 20px 58px;
	background: #fff;
}

.twc-home-categories__inner {
	width: min(100%, 1400px);
	margin: 0 auto;
}

.twc-home-categories__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #dfe6e8;
}

.twc-home-categories__header h2 {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	color: var(--twc-nav-text);
	font-size: clamp(28px, 2.1vw, 34px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.twc-home-categories__header h2::after {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 92px;
	height: 2px;
	background: var(--twc-nav-accent);
	content: '';
}

.twc-home-categories__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	margin-bottom: 2px;
	padding: 8px 2px 8px 14px;
	color: var(--twc-nav-accent-dark) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.twc-home-categories__more svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: transform 180ms ease-out;
}

.twc-home-categories__more:hover,
.twc-home-categories__more:focus-visible {
	color: #005d5b !important;
}

.twc-home-categories__more:hover svg,
.twc-home-categories__more:focus-visible svg {
	transform: translateX(3px);
}

.twc-home-categories__more:focus-visible,
.twc-home-category-card:focus-visible {
	outline: 2px solid var(--twc-nav-accent);
	outline-offset: 3px;
}

.twc-home-categories__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 16px;
}

.twc-home-category-card {
	display: flex;
	min-width: 0;
	padding: 14px;
	flex-direction: column;
	color: var(--twc-nav-text) !important;
	background: #fff;
	border: 1px solid #d4dcdf;
	border-radius: 12px;
	transition: transform 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}

.twc-home-category-card:hover,
.twc-home-category-card:focus-visible {
	color: var(--twc-nav-accent-dark) !important;
	border-color: rgba(8, 127, 124, 0.55);
	box-shadow: 0 12px 28px rgba(21, 45, 54, 0.1);
	transform: translateY(-2px);
}

.twc-home-category-card__media {
	display: grid;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1;
	place-items: center;
	background: #eef6f6;
	border-radius: 9px;
}

.twc-home-category-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.twc-home-category-card__fallback {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	color: #fff;
	background: var(--twc-nav-accent);
	border-radius: 50%;
	font-size: 24px;
	font-weight: 700;
}

.twc-home-category-card__title {
	margin-top: 14px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 1199px) {
	.twc-home-categories__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.twc-home-categories {
		padding: 34px 15px 44px;
	}

	.twc-home-categories__header {
		margin-bottom: 18px;
	}

	.twc-home-categories__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px 12px;
	}

	.twc-home-category-card {
		padding: 10px;
	}

	.twc-home-category-card__title {
		margin-top: 10px;
		font-size: 15px;
	}
}

@media (max-width: 520px) {
	.twc-home-categories__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.twc-home-categories__more svg,
	.twc-home-category-card {
		transition: none;
	}
}

/* Live homepage brand directory. */
.twc-home-brands {
	padding: 48px 20px 58px;
	background: #fff;
}

.twc-home-brands__inner {
	width: min(100%, 1400px);
	margin: 0 auto;
}

.twc-home-brands__header {
	margin-bottom: 28px;
}

.twc-home-brands__header h2 {
	position: relative;
	width: fit-content;
	margin: 0;
	padding-bottom: 12px;
	color: var(--twc-nav-text);
	font-size: clamp(28px, 2.1vw, 34px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.twc-home-brands__header h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 92px;
	height: 2px;
	background: var(--twc-nav-accent);
	content: '';
}

.twc-home-brands__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px 24px;
}

.twc-home-brand-card {
	display: grid;
	min-width: 0;
	min-height: 154px;
	padding: 20px;
	place-items: center;
	color: var(--twc-nav-text) !important;
	background: #fff;
	border: 1px solid #d6dddf;
	border-radius: 12px;
	transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.twc-home-brand-card[hidden] {
	display: none;
}

.twc-home-brand-card:hover,
.twc-home-brand-card:focus-visible {
	border-color: rgba(8, 127, 124, 0.62);
	background: #f8fbfb;
	transform: translateY(-2px);
}

.twc-home-brand-card:focus-visible,
.twc-home-brands__more:focus-visible {
	outline: 2px solid var(--twc-nav-accent);
	outline-offset: 3px;
}

.twc-home-brand-card__media {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
}

.twc-home-brand-card__media img {
	display: block;
	width: min(100%, 170px);
	height: 100px;
	object-fit: contain;
}

.twc-home-brand-card__wordmark {
	display: block;
	max-width: 100%;
	color: #18353d;
	font-size: clamp(17px, 1.2vw, 21px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-align: center;
	text-wrap: balance;
}

.twc-home-brands__actions {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.twc-home-brands__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 11px 22px;
	color: var(--twc-nav-accent-dark) !important;
	background: #fff !important;
	border: 1px solid rgba(8, 127, 124, 0.55);
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}

.twc-home-brands__more:hover,
.twc-home-brands__more:focus-visible {
	color: #fff !important;
	background: var(--twc-nav-accent) !important;
	border-color: var(--twc-nav-accent);
}

.twc-home-brands__more svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: transform 180ms ease-out;
}

.twc-home-brands__more.is-expanded svg {
	transform: rotate(180deg);
}

@media (max-width: 1199px) {
	.twc-home-brands__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.twc-home-brands {
		padding: 38px 15px 46px;
	}

	.twc-home-brands__header {
		margin-bottom: 20px;
	}

	.twc-home-brands__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 12px;
	}

	.twc-home-brand-card {
		min-height: 124px;
		padding: 14px;
	}

	.twc-home-brand-card__media img {
		height: 78px;
	}

	.twc-home-brand-card__wordmark {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.twc-home-brand-card,
	.twc-home-brands__more,
	.twc-home-brands__more svg {
		transition: none;
	}
}

