/* The contextual category sidebar. Logical properties throughout, so the same
   stylesheet serves the Arabic (RTL) and English (LTR) sides of the shop. */

.diwan-cat-nav {
	--diwan-paper: #faf7db;
	--diwan-papyrus: #e0b070;
	--diwan-wood: #3b0f00;
	--diwan-taupe: #ab9169;
	--diwan-blue: #246b8f;

	font-size: 15px;
	line-height: 1.5;
}

.diwan-cat-nav__title {
	color: var(--diwan-blue);
	font-size: 1.05rem;
	margin: 0 0 0.35em;
}

.diwan-cat-nav__up {
	color: var(--diwan-wood);
	display: inline-block;
	font-size: 0.85em;
	margin-block-end: 0.75em;
	text-decoration: none;
}

.diwan-cat-nav__up:hover,
.diwan-cat-nav__up:focus {
	text-decoration: underline;
}

.diwan-cat-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.diwan-cat-nav__list--level-2 {
	border-inline-start: 2px solid var(--diwan-paper);
	margin-block-start: 0.2em;
	margin-inline-start: 0.5em;
	padding-inline-start: 0.75em;
}

.diwan-cat-nav__item > a {
	border-radius: 4px;
	color: var(--diwan-wood);
	display: flex;
	gap: 0.5em;
	justify-content: space-between;
	padding: 0.3em 0.5em;
	text-decoration: none;
}

.diwan-cat-nav__item > a:hover,
.diwan-cat-nav__item > a:focus {
	background: var(--diwan-papyrus);
	color: var(--diwan-wood);
}

.diwan-cat-nav__item.is-current > a {
	background: var(--diwan-paper);
	font-weight: 600;
}

.diwan-cat-nav__count {
	color: var(--diwan-taupe);
	font-size: 0.8em;
	font-variant-numeric: tabular-nums;
}

/* Language switcher, printed by [diwan_language_switcher]. */

.diwan-lang-switch {
	display: flex;
	gap: 0.75em;
	margin-block-end: 1em;
}

.diwan-lang-switch a {
	border: 1px solid #e0d9b4;
	border-radius: 4px;
	color: #3b0f00;
	padding: 0.25em 0.8em;
	text-decoration: none;
}

.diwan-lang-switch a.is-current {
	background: #246b8f;
	border-color: #246b8f;
	color: #fff;
}
