/* Only the archive navigation; product cards and theme containers retain their styles. */
.avs3d-category-nav {
	position: relative;
	z-index: 6;
	width: 100%;
	max-width: 100%;
	margin: 0 0 24px;
}
.avs3d-category-nav__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.avs3d-category-nav__scroll {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	padding: 4px 2px 8px;
	scrollbar-width: thin;
	scrollbar-color: #d8c7aa transparent;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}
.avs3d-category-nav__link,
.avs3d-category-nav__more > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 7px;
	min-height: 44px;
	padding: 10px 15px;
	border: 1px solid #ded7cb;
	border-radius: 999px;
	background: #fcfaf6;
	color: #292d30;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.avs3d-category-nav__link:hover,
.avs3d-category-nav__more > summary:hover {
	border-color: #c69a53;
	background: #f2e9da;
	color: #3e2e19;
}
.avs3d-category-nav__link.is-current,
.avs3d-category-nav__more.is-current > summary {
	border-color: #151b20;
	background: #151b20;
	color: #efc877;
}
.avs3d-category-nav a:focus-visible,
.avs3d-category-nav summary:focus-visible,
.avs3d-category-nav__scroll:focus-visible {
	outline: 2px solid #bf842b;
	outline-offset: 2px;
}
.avs3d-category-nav__more {
	position: relative;
	flex: 0 0 auto;
	max-width: 48%;
	margin-bottom: 4px;
}
.avs3d-category-nav__more > summary { list-style: none; }
.avs3d-category-nav__more > summary::-webkit-details-marker { display: none; }
.avs3d-category-nav__more > summary::after {
	content: '';
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.avs3d-category-nav__more[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.avs3d-category-nav__current-extra { font-size: 12px; }
.avs3d-category-nav__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10;
	display: grid;
	gap: 4px;
	width: min(320px, calc(100vw - 32px));
	max-height: min(360px, 60vh);
	overflow-y: auto;
	padding: 8px;
	border: 1px solid #ded7cb;
	border-radius: 16px;
	background: #fffdf9;
	box-shadow: 0 14px 35px rgb(34 27 16 / 15%);
}
.avs3d-category-nav__menu .avs3d-category-nav__link {
	justify-content: flex-start;
	border-color: transparent;
	border-radius: 10px;
	white-space: normal;
}
@media (max-width: 689px) {
	.avs3d-category-nav { margin-bottom: 18px; }
	.avs3d-category-nav__bar { gap: 7px; }
	.avs3d-category-nav__scroll { gap: 7px; scrollbar-width: none; }
	.avs3d-category-nav__scroll::-webkit-scrollbar { display: none; }
	.avs3d-category-nav__link,
	.avs3d-category-nav__more > summary { padding: 10px 13px; font-size: 12px; }
	.avs3d-category-nav__more.is-current > summary { display: grid; grid-template-columns: minmax(0, 1fr) 6px; gap: 2px 6px; }
	.avs3d-category-nav__more.is-current > summary::after { grid-column: 2; grid-row: 1; }
	.avs3d-category-nav__current-extra { grid-column: 1 / -1; grid-row: 2; font-size: 11px; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.avs3d-category-nav__link,
	.avs3d-category-nav__more > summary { transition: none; }
}
