/* 图2：浅灰底条 + 白卡片柔影、分类格内「左图 | 文 | 右下箭头」
 * 首段「Products」链接目标：inc/breadcrumb.php → he_breadcrumb_get_shop_url()（默认 /products/） */

.he-breadcrumb {
	--he-bc-radius: 4px;
	--he-bc-bg: #fff;
	--he-bc-page: #f0f2f5;
	--he-bc-text: #333;
	--he-bc-muted: #9a9a9a;
	--he-bc-shadow: 0 2px 8px rgb(0 0 0 / 8%), 0 1px 2px rgb(0 0 0 / 4%);
	--he-bc-shadow-hover: 0 4px 14px rgb(0 0 0 / 10%);
	--he-bc-dd-max-h: min(70vh, 520px);
}

.he-breadcrumb--panel {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: unset;
	box-sizing: border-box;
	border-radius: 4px;
}

.he-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.he-breadcrumb__sep {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--he-bc-muted);
	font-size: 0.95rem;
	line-height: 1;
	user-select: none;
}

.he-breadcrumb__chev {
	display: inline-block;
	font-weight: 400;
	font-size: 21px;
	color: #333;
}

.he-breadcrumb__li {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

/* 卡片：首段纯文字 与 分类行 通用 */
.he-breadcrumb__card {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 55px;
	height: 100%;
	padding: 0.45rem 1rem;
	background: #ffffff;
	border: none;
	border-radius: 0;
	color: var(--he-bc-text);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	box-sizing: border-box;
	box-shadow: var(--he-bc-shadow) !important;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

a.he-breadcrumb__card:hover {
	box-shadow: var(--he-bc-shadow-hover);
	color: var(--he-bc-text);
}

.he-breadcrumb__card--text {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

.he-breadcrumb__text {
	display: inline-block;
	white-space: nowrap;
}

.he-breadcrumb__card--row .he-breadcrumb__text {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(100vw - 4rem, 22rem);
}

/* 分类 / 产品：左图 + 文 + 右侧下箭头 */
.he-breadcrumb__card--row {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.4rem 0.45rem 0.4rem 0.5rem;
	max-width: min(100%, 28rem);
}

.he-breadcrumb__card--row.he-breadcrumb__card--current {
	cursor: default;
}

.he-breadcrumb__card-inr {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.he-breadcrumb__cell-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #f5f5f5;
	border-radius: 3px;
	overflow: hidden;
}

.he-breadcrumb__cell-img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.he-breadcrumb__cell-img--ph {
	display: block;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #eee 0%, #e4e4e4 100%);
	border-radius: 3px;
}

.he-breadcrumb__card--row .he-breadcrumb__text {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.he-breadcrumb__card--current .he-breadcrumb__text {
	font-weight: 600;
}

.he-breadcrumb__cell-box {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
}

/* 下箭头：在卡片内右侧，不单独成格 */
.he-breadcrumb__toggle {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin: 0 0.15rem 0 0;
	padding: 0;
	border: none;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23555' d='M1 0l4 4 4-4 1 1-5 5-5-5z'/%3E%3C/svg%3E")
		center / 10px 6px no-repeat;
	cursor: pointer;
	border-radius: 3px;
	align-self: center;
}

.he-breadcrumb__toggle:hover,
.he-breadcrumb__toggle:focus-visible {
	background-color: rgb(0 0 0 / 5%);
	outline: none;
}

/* 与下拉同条件：点击展开 (.is-open) 或悬停展开 (:hover)，箭头与菜单一致 */
.he-breadcrumb__li--has-dd.is-open .he-breadcrumb__toggle,
.he-breadcrumb__li--has-dd:hover .he-breadcrumb__toggle {
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

/* 下拉：与父格左对齐，上留缝 */
.he-breadcrumb__dropdown {
	position: absolute;
	left: 0;
	top: calc(100%);
	min-width: min(100vw - 2rem, 300px);
	max-width: min(100vw - 2rem, 360px);
	max-height: var(--he-bc-dd-max-h);
	overflow: auto;
	margin: 0;
	padding: 0.4rem 0;
	list-style: none;
	background: var(--he-bc-bg);
	border: none;
	border-radius: var(--he-bc-radius);
	box-shadow: var(--he-bc-shadow-hover);
	z-index: 100100;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		visibility 0s linear 0.22s;
}

.he-breadcrumb__li--has-dd.is-open .he-breadcrumb__dropdown,
.he-breadcrumb__li--has-dd:hover .he-breadcrumb__dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		visibility 0s;
}

@media (hover: none) {
	.he-breadcrumb__li--has-dd:hover .he-breadcrumb__dropdown {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
	.he-breadcrumb__li--has-dd:hover .he-breadcrumb__toggle {
		transform: none;
	}
	.he-breadcrumb__li--has-dd.is-open .he-breadcrumb__dropdown {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}
}

.he-breadcrumb__dropdown li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.he-breadcrumb__dropdown a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 0.85rem;
	color: var(--he-bc-text);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.15s ease;
}

.he-breadcrumb__dropdown a:hover,
.he-breadcrumb__dropdown li.is-current a {
	background: #e8f0f8;
}

.he-breadcrumb__thumb {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
	border: 0;
	border-radius: 3px;
	background: #f5f5f5;
}

.he-breadcrumb__thumb--ph {
	display: inline-block;
	width: 40px;
	height: 40px;
	background: #eee;
	border-radius: 3px;
}

.he-breadcrumb__ddtext {
	flex: 1;
	line-height: 1.35;
}
@media(max-width:769px){
	.he-breadcrumb__li {
		width: 90%;
	}
	.he-breadcrumb__card{
	}
}