/**
 * al-breadcrumbs - the Rank Math trail, site-wide: product and category
 * pages (an Elementor widget, on white) and the page-title band of pages and
 * the blog (Woodmart, on a photo, where its light colours are kept).
 *
 * Theme Settings drew every link as a grey pill (`.rank-math-breadcrumb a`,
 * 0,1,1) and Rank Math's "»" points back at the start in RTL. The `nav.`
 * prefix puts these rules one step above the pills whatever the print order.
 * Logical properties only; this is an RTL-first site (inline-start = right).
 */
nav.rank-math-breadcrumb p {
	display: inline-flex; /* inline, so a centred page title still centres it */
	align-items: center;
	max-inline-size: 100%;
	margin: 0;
	vertical-align: top;
	font-size: var(--al-fs-sm);
	line-height: 1.4;
	white-space: nowrap;
}
nav.rank-math-breadcrumb a {
	flex: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	text-decoration: none;
}
/* The current page gives way first, with an ellipsis. */
nav.rank-math-breadcrumb .last {
	min-inline-size: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The "»" is hidden and a chevron drawn instead, pointing the way the trail
   reads. currentColor, so it suits the white row and the photo alike. */
nav.rank-math-breadcrumb .separator {
	flex: none;
	display: inline-flex;
	margin-inline: 10px;
	font-size: 0;
	color: inherit;
}
nav.rank-math-breadcrumb .separator::before {
	content: "";
	inline-size: 5px;
	block-size: 5px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px; /* └ turned 45° = a chevron pointing left */
	opacity: .6;
	transform: rotate(45deg);
}
html[dir="ltr"] nav.rank-math-breadcrumb .separator::before {
	transform: rotate(-135deg);
}

/* On white (product and category pages): quiet ink, the current page a step
   darker. Elementor's 18px black is set on the widget, not the trail. */
.elementor-widget-breadcrumbs nav.rank-math-breadcrumb p {
	color: var(--al-ink-3);
}
.elementor-widget-breadcrumbs nav.rank-math-breadcrumb a:hover {
	color: var(--al-ink);
}
.elementor-widget-breadcrumbs nav.rank-math-breadcrumb .last {
	color: var(--al-ink-2);
}

@media (max-width: 767px) {
	nav.rank-math-breadcrumb p {
		font-size: var(--al-fs-xs);
	}
	/* Product page on a phone: the title right below repeats the product
	   name, so the trail stops at its category. A category name too long for
	   the row still gives way rather than running into the gutter. */
	.single-product nav.rank-math-breadcrumb :is(.last, .separator:nth-last-child(2)) {
		display: none;
	}
	.single-product nav.rank-math-breadcrumb a {
		flex: 0 1 auto;
		min-inline-size: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
