/* صفحة تركيب الخلطات. تستعمل ألوان قالب عسل الشفاء لو موجودة. */
.asal-mixes {
	--mx-green: var(--green, #2F5D3A);
	--mx-green-dark: var(--green-dark, #1f4128);
	--mx-gold: var(--gold, #C8902E);
	--mx-cream: var(--cream, #FFF8E7);
	--mx-ink: var(--ink, #26302a);
	--mx-muted: var(--muted, #5f6b62);
	--mx-line: var(--line, rgba(47, 93, 58, 0.14));
	--mx-radius: var(--radius, 14px);
	max-width: 860px;
	margin: 0 auto 40px;
	color: var(--mx-ink);
	font-family: var(--font, "Cairo", system-ui, sans-serif);
	text-align: right;
}
.asal-mixes button { font-family: inherit; cursor: pointer; }
.asal-mixes__head { margin-bottom: 18px; }
.asal-mixes__title { margin: 0 0 4px; font-size: 1.6rem; color: var(--mx-green-dark); }
.asal-mixes__sub { margin: 0; color: var(--mx-muted); }
.asal-mixes__loading, .asal-mixes__empty { color: var(--mx-muted); text-align: center; padding: 30px 0; }

/* البطاقات */
.asal-mixes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.asal-mix-card {
	display: flex; gap: 12px; align-items: center; text-align: right;
	background: #fff; border: 1.5px solid var(--mx-line); border-radius: var(--mx-radius);
	padding: 12px; color: inherit; transition: border-color .15s, transform .15s;
}
.asal-mix-card:hover, .asal-mix-card:focus-visible { border-color: var(--mx-green); transform: translateY(-2px); outline: none; }
.asal-mix-card.is-custom { background: var(--mx-cream); border-style: dashed; border-color: var(--mx-gold); }
.asal-mix-card__pic {
	flex: 0 0 72px; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
	background: var(--mx-cream); display: flex; align-items: center; justify-content: center;
}
.asal-mix-card.is-custom .asal-mix-card__pic { background: #fff; }
.asal-mix-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.asal-mix-card__icon { font-size: 30px; color: var(--mx-gold); line-height: 1; }
.asal-mix-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asal-mix-card__name { font-size: 1.05rem; color: var(--mx-green-dark); }
.asal-mix-card__desc { font-size: .85rem; color: var(--mx-muted); line-height: 1.5; }
.asal-mix-card__price { font-size: .9rem; font-weight: 700; color: var(--mx-gold); }

/* التركيب */
.asal-mix-back { background: none; border: 0; padding: 0; margin-bottom: 10px; color: var(--mx-green); font-weight: 600; font-size: .95rem; }
.asal-mix-sec { background: #fff; border: 1px solid var(--mx-line); border-radius: var(--mx-radius); padding: 16px; margin-bottom: 14px; }
.asal-mix-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.asal-mix-sec__head h3 { margin: 0; font-size: 1.05rem; color: var(--mx-green-dark); }
.asal-mix-sec__hint { font-size: .82rem; color: var(--mx-muted); }
.asal-mix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.asal-mix-chip {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	background: #fff; border: 1.5px solid var(--mx-line); border-radius: 12px;
	padding: 8px 14px; color: var(--mx-ink); min-width: 92px;
}
.asal-mix-chip__label { font-weight: 700; font-size: .95rem; }
.asal-mix-chip__sub { font-size: .8rem; color: var(--mx-muted); }
.asal-mix-chip.is-active { border-color: var(--mx-green); background: rgba(47, 93, 58, 0.08); }
.asal-mix-chip.is-active .asal-mix-chip__sub { color: var(--mx-green-dark); }

.asal-mix-comps { display: flex; flex-direction: column; gap: 8px; }
.asal-mix-comp {
	display: flex; align-items: center; gap: 12px;
	border: 1.5px solid var(--mx-line); border-radius: 12px; padding: 8px 10px;
}
.asal-mix-comp.is-on { border-color: var(--mx-green); background: rgba(47, 93, 58, 0.05); }
.asal-mix-comp.is-off { opacity: .5; }
.asal-mix-comp__img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 52px; background: var(--mx-cream); }
.asal-mix-comp__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.asal-mix-comp__info strong { font-size: .95rem; }
.asal-mix-comp__info span { font-size: .8rem; color: var(--mx-muted); }
.asal-mix-step { display: flex; align-items: center; gap: 4px; background: var(--mx-cream); border-radius: 999px; padding: 4px; flex: 0 0 auto; }
.asal-mix-step button {
	width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff;
	color: var(--mx-green-dark); font-size: 1.15rem; font-weight: 700; line-height: 1;
}
.asal-mix-step button:disabled { opacity: .35; cursor: not-allowed; }
.asal-mix-step__n { min-width: 26px; text-align: center; font-weight: 700; }

.asal-mix-bar {
	position: sticky; bottom: 10px; z-index: 5;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: #fff; border: 1px solid var(--mx-line); border-radius: var(--mx-radius);
	padding: 12px 16px; box-shadow: 0 8px 24px rgba(31, 65, 40, 0.12);
}
.asal-mix-bar__sum { display: flex; flex-direction: column; }
.asal-mix-bar__sum span { font-size: .8rem; color: var(--mx-muted); }
.asal-mix-bar__sum strong { font-size: 1.3rem; color: var(--mx-green-dark); }
.asal-mix-add {
	background: var(--mx-green); color: #fff; border: 0; border-radius: 999px;
	padding: 12px 26px; font-weight: 700; font-size: 1rem;
}
.asal-mix-add:hover { background: var(--mx-green-dark); }
.asal-mix-add:disabled { opacity: .6; cursor: wait; }

.asal-mix-msg { margin-top: 12px; }
.asal-mix-notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.asal-mix-notice.is-ok { background: rgba(47, 93, 58, 0.1); color: var(--mx-green-dark); }
.asal-mix-notice.is-error { background: #fdecea; color: #8a1c14; }
.asal-mix-notice__link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font-weight: 700; font-size: inherit; }


@media (max-width: 520px) {
	.asal-mix-bar { flex-direction: column; align-items: stretch; text-align: center; }
	.asal-mix-bar__sum { align-items: center; }
	.asal-mix-comp__img { width: 44px; height: 44px; flex-basis: 44px; }
}
