/**
 * علاقه‌مندی و مقایسه + نان‌ریزه.
 * چیدمان و ظاهر پیش‌فرض؛ CSSای که المنتور می‌سازد وزن بیشتری دارد.
 */

/* ---------- دکمه‌های عمل ---------- */

.nb-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nb-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 42px;
	min-height: 42px;
	padding: 0 10px;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.nb-acts:not(.nb-acts--text) .nb-act {
	padding: 0;
}

.nb-act__icon {
	display: inline-flex;
	font-size: 18px;
	line-height: 1;
}

.nb-act__icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.nb-act.is-on {
	color: #e5484d;
}

/* قلبِ اضافه‌شده پر می‌شود، نه فقط رنگش عوض */
.nb-act.is-on .nb-act__icon svg path {
	fill: currentColor;
}


/* ---------- فهرست ذخیره‌شده‌ها ---------- */

.nb-list__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.nb-list__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	border-radius: 12px;
}

.nb-list__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.nb-list__name {
	text-decoration: none;
	line-height: 1.7;
}

.nb-list__remove {
	position: absolute;
	inset-inline-end: 8px;
	inset-block-start: 8px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 17px;
	line-height: 1;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border: 0;
	border-radius: 50%;
}

.nb-list__empty {
	opacity: .6;
}

/* جدول عریض باید داخل خودش اسکرول شود، نه اینکه صفحه را پهن کند */
.nb-list__scroll {
	overflow-x: auto;
}

.nb-list__table {
	width: 100%;
	border-collapse: collapse;
}

.nb-list__table th,
.nb-list__table td {
	padding: 10px 12px;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nb-list__table thead th {
	position: relative;
	min-width: 150px;
}

.nb-list__none {
	opacity: .35;
}


/* ---------- نان‌ریزه ---------- */

.nb-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.nb-crumbs a {
	text-decoration: none;
}

.nb-crumbs__sep {
	opacity: .45;
}
