/* =====================================================================
   فلاتر الأقسام — عادل إكسبريس
   ===================================================================== */
.adelf { --side-w: 280px; text-align: start; }
.adelf [hidden] { display: none !important; }

/* ---------- هيدر القسم ---------- */
.adelf-hero {
	position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; align-items: center; gap: 20px;
	border-radius: 28px; background: #fff; padding: 40px 44px;  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
}
.adelf-hero.has-img { grid-template-columns: 1.1fr 1fr; padding-block: 30px; min-height: 280px; }
.adelf-hero__kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-2, #f26b00); margin-bottom: 6px; }
.adelf .adelf-hero__title { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--navy, #0a2263); }
.adelf-hero__desc { margin: 0; max-width: 600px; font-size: 16.5px; line-height: 1.7; color: var(--muted, #6e6e73); }
.adelf-hero__img img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 18px; transition: opacity .18s; }
.adelf-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad, #ff7a00); }

/* شريط الماركات */
.adelf-hero__brands { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 18px 2px 4px; }
.adelf-hero__brands::-webkit-scrollbar { display: none; }
.adelf .adelf-hb {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
	background: #fff; color: var(--ink, #1d1d1f); font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line, #e3e3e8); transition: box-shadow .2s, background .2s, color .2s;
}
.adelf .adelf-hb:hover { box-shadow: inset 0 0 0 1px var(--ink, #1d1d1f); }
.adelf .adelf-hb small { color: var(--faint, #86868b); font-size: 12px; }
.adelf .adelf-hb.is-on { background: var(--navy, #0a2263); color: #fff; box-shadow: none; }
.adelf .adelf-hb.is-on small { color: rgba(255,255,255,.6); }

/* شريط الأدوات */
.adelf-toolbar { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.adelf .adelf-open-filters {
	display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--navy, #0a2263); color: #fff; font-weight: 600; font-size: 14px;
}
.adelf-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent, #ff7a00); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; }
.adelf-count { font-size: 15px; font-weight: 600; color: var(--ink, #1d1d1f); }
.adelf-views { display: inline-flex; margin-inline-start: auto; background: rgba(0,0,0,.05); border-radius: 999px; padding: 3px; }
.adelf .adelf-view { width: 36px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--muted, #6e6e73); display: grid; place-items: center; cursor: pointer; transition: .2s; }
.adelf .adelf-view.is-on { background: #fff; color: var(--ink, #1d1d1f); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.adelf-sort-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 12px 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line, #e3e3e8); color: var(--muted, #6e6e73); }
.adelf .adelf-sort { border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink, #1d1d1f); padding: 0 6px 0 4px; height: 100%; cursor: pointer; outline: none; }
.adelf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adelf .adelf-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--accent-soft, #fff4ea); color: var(--accent-2, #f26b00); font-size: 13px; font-weight: 600;
}
.adelf .adelf-chip span { font-size: 16px; line-height: 1; }
.adelf .adelf-chip--clear { background: none; color: var(--blue, #0066cc); }

/* ---------- التخطيط ---------- */
.adelf-body { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 28px; align-items: start; }

/* ---------- عمود الفلاتر ---------- */
.adelf-side { background: #fff; border-radius: 22px; padding: 6px 18px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04); }
.adelf-side-head, .adelf-side-foot { display: none; }
.adelf-search { display: flex; align-items: center; gap: 8px; height: 42px; margin: 12px 0 6px; padding: 0 12px; border-radius: 12px; background: var(--bg, #f5f5f7); color: var(--faint, #86868b); }
.adelf .adelf-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink, #1d1d1f); }
.adelf-facet { border-bottom: 1px solid var(--line, #e3e3e8); }
.adelf-facet:last-child { border-bottom: 0; }
.adelf-facet > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 15px 0; font-size: 15px; font-weight: 600; user-select: none; }
.adelf-facet > summary::-webkit-details-marker { display: none; }
.adelf-facet > summary small { color: var(--faint, #86868b); font-weight: 400; }
.adelf-facet > summary::after {
	content: ""; margin-inline-start: auto; width: 7px; height: 7px; border: solid var(--faint, #86868b); border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg); transition: transform .25s; margin-top: -4px;
}
.adelf-facet[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.adelf-fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--navy, #0a2263); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.adelf-fbody { padding-bottom: 16px; }
.adelf .adelf-fsearch { width: 100%; height: 36px; border: 0; border-radius: 10px; background: var(--bg, #f5f5f7); padding: 0 12px; margin-bottom: 8px; font-size: 13.5px; outline: none; }
.adelf .adelf-opts { list-style: none; margin: 0; padding: 0; }
.adelf .adelf-opts li { margin: 0; }
.adelf-opts li.adelf-hid { display: none; }
.adelf-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14.5px; }
.adelf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adelf-box { flex: 0 0 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2, #d2d2d7); background: #fff; display: grid; place-items: center; transition: .15s; }
.adelf-opt input:checked + .adelf-box { background: var(--navy, #0a2263); box-shadow: none; }
.adelf-opt input:checked + .adelf-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }
.adelf-opt input:focus-visible + .adelf-box, .adelf-opt input:focus-visible ~ .adelf-ol { outline: 2px solid var(--blue, #0066cc); outline-offset: 2px; }
.adelf-ol { flex: 1; }
.adelf-oc { color: var(--faint, #86868b); font-size: 12.5px; }
.adelf-opt.is-zero { opacity: .35; cursor: default; }

/* اختيارات على شكل أزرار */
.adelf .adelf-opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adelf-opts--chips .adelf-opt { padding: 0 14px; height: 36px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2, #d2d2d7); gap: 6px; font-size: 13.5px; font-weight: 500; transition: .15s; }
.adelf-opts--chips .adelf-box { display: none; }
.adelf-opts--chips .adelf-oc { font-size: 11px; }
.adelf-opts--chips .adelf-opt:hover { box-shadow: inset 0 0 0 1px var(--ink, #1d1d1f); }
.adelf-opts--chips .adelf-opt:has(input:checked), .adelf-opts--chips .adelf-opt.is-on { background: var(--navy, #0a2263); color: #fff; box-shadow: none; }
.adelf-opts--chips .adelf-opt:has(input:checked) .adelf-oc { color: rgba(255,255,255,.6); }

/* الألوان */
.adelf .adelf-opts--swatch { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px 6px; }
.adelf-opts--swatch .adelf-opt { flex-direction: column; gap: 5px; padding: 2px 0; font-size: 11.5px; text-align: center; line-height: 1.25; }
.adelf-sw { width: 32px; height: 32px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .2s, transform .2s; }
.adelf-opts--swatch .adelf-opt:hover .adelf-sw { transform: scale(1.08); }
.adelf-opts--swatch .adelf-opt:has(input:checked) .adelf-sw { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px #fff, 0 0 0 4px var(--navy, #0a2263); }
.adelf-opts--swatch .adelf-oc { display: none; }
.adelf .adelf-toggle-more { background: none; border: 0; padding: 6px 0 0; color: var(--blue, #0066cc); font-size: 13.5px; font-weight: 500; cursor: pointer; }

/* السعر */
.adelf-range { position: relative; height: 30px; margin: 4px 6px 10px; }
.adelf-range::before { content: ""; position: absolute; inset-inline: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--line, #e3e3e8); }
.adelf .adelf-range input[type=range] { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 30px; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.adelf-range input[type=range]::-webkit-slider-runnable-track { background: none; height: 30px; }
.adelf-range input[type=range]::-moz-range-track { background: none; }
.adelf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 6px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.06); cursor: grab; }
.adelf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: grab; }
.adelf-price-in { display: flex; gap: 8px; }
.adelf-price-in label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--faint, #86868b); }
.adelf .adelf-price-in input { width: 100%; height: 40px; border: 0; border-radius: 10px; background: var(--bg, #f5f5f7); padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--ink, #1d1d1f); -moz-appearance: textfield; outline: none; }
.adelf .adelf-price-in input:focus { box-shadow: inset 0 0 0 2px var(--blue, #0066cc); background: #fff; }
.adelf-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.adelf .adelf-preset { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg, #f5f5f7); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: .15s; }
.adelf .adelf-preset:hover { background: #ebebf0; }
.adelf .adelf-preset.is-on { background: var(--navy, #0a2263); color: #fff; }

/* ---------- المنتجات ---------- */
.adelf .adelf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.adelf .adelf-card { margin: 0; min-width: 0; }
.adelf-link { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04); transition: transform .35s cubic-bezier(.25,.1,.25,1), box-shadow .35s; }
.adelf-link:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.1); }
.adelf-img { position: relative; display: block; aspect-ratio: 1; padding: 20px; background: #fff; }
.adelf .adelf-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.25,.1,.25,1); }
.adelf-link:hover .adelf-img img { transform: scale(1.05); }
.adelf-off { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; background: var(--sale, #e3342f); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.adelf-oos { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; background: rgba(0,0,0,.7); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; }
.adelf-out .adelf-img img { opacity: .45; filter: grayscale(.4); }
.adelf-info { display: flex; flex-direction: column; gap: 4px; padding: 2px 18px 18px; flex: 1; }
.adelf-eyebrow { font-size: 12px; font-weight: 600; color: var(--accent-2, #f26b00); }
.adelf-name { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink, #1d1d1f); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.adelf-spec { font-size: 12.5px; color: var(--muted, #6e6e73); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adelf-price { margin-top: auto; padding-top: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--navy, #0a2263); }
.adelf-btn {
	align-self: flex-start; margin-top: 10px; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px;
	background: var(--bg, #f5f5f7); color: var(--ink, #1d1d1f); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s;
}
.adelf-link:hover .adelf-btn { background: var(--accent, #ff7a00); color: #fff; }

/* عرض القايمة */
.adelf--list .adelf-grid { grid-template-columns: 1fr; gap: 12px; }
.adelf--list .adelf-link { flex-direction: row; align-items: stretch; }
.adelf--list .adelf-img { flex: 0 0 190px; aspect-ratio: auto; height: 190px; padding: 16px; }
.adelf--list .adelf-info { padding: 20px 22px; justify-content: center; }
.adelf--list .adelf-name { -webkit-line-clamp: 2; min-height: 0; font-size: 16.5px; }
.adelf--list .adelf-price { margin-top: 6px; }

.adelf-empty { text-align: center; padding: 60px 16px; color: var(--muted, #6e6e73); }
.adelf-empty .ic { color: var(--line-2, #d2d2d7); margin: 0 auto 10px; }
.adelf .adelf-empty .adelf-clear, .adelf .adelf-more {
	height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: #fff; color: var(--ink, #1d1d1f); font-weight: 600; font-size: 15px; cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--line-2, #d2d2d7); transition: .2s;
}
.adelf .adelf-more:hover { background: var(--navy, #0a2263); color: #fff; box-shadow: none; }
.adelf-more-wrap { text-align: center; margin-top: 30px; }

/* ---------- موبايل وتابلت: الفلاتر درج ---------- */
@media (max-width: 1024px) {
	.adelf-body { grid-template-columns: minmax(0, 1fr); }
	.adelf .adelf-open-filters { display: inline-flex; }
	.adelf .adelf-side {
		position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1150; width: min(400px, 92vw); max-height: none;
		border-radius: 0; box-shadow: 0 0 60px rgba(0,0,0,.2); overflow-y: auto; overscroll-behavior: contain;
		padding: 0 20px; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .38s cubic-bezier(.25,.1,.25,1);
	}
	[dir=ltr] .adelf .adelf-side { transform: translateX(-105%); }
	.adelf--drawer-open .adelf-side, [dir=ltr] .adelf--drawer-open .adelf-side { transform: none; }
	.adelf-side-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 0 10px; background: #fff; font-size: 20px; }
	.adelf .adelf-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg, #f5f5f7); display: grid; place-items: center; cursor: pointer; }
	.adelf-facets { flex: 1; }
	.adelf-side-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line, #e3e3e8); }
	.adelf .adelf-side-foot button { flex: 1; height: 48px; border: 0; border-radius: 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
	.adelf .adelf-side-foot .adelf-clear { background: var(--bg, #f5f5f7); color: var(--ink, #1d1d1f); }
	.adelf .adelf-apply { background: var(--navy, #0a2263); color: #fff; }
	.adelf-overlay { position: fixed; inset: 0; z-index: 1140; background: rgba(0,0,0,.35); backdrop-filter: blur(3px); }
	html.adelf-lock { overflow: hidden; }
	.adelf-hero.has-img { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
	.adelf-hero, .adelf-hero.has-img { grid-template-columns: 1fr; padding: 26px 20px; border-radius: 22px; text-align: center; min-height: 0; }
	.adelf-hero__img { order: -1; }
	.adelf-hero__img img { max-height: 170px; margin: 0 auto; }
	.adelf .adelf-hero__title { font-size: 30px; }
	.adelf-hero__desc { font-size: 14.5px; margin: 0 auto; }
	.adelf-toolbar { gap: 8px; }
	.adelf-count { order: 5; width: 100%; font-size: 14px; color: var(--muted, #6e6e73); font-weight: 500; }
	.adelf-views { display: none; }
	.adelf-sort-wrap { margin-inline-start: auto; }
	.adelf .adelf-sort { max-width: 150px; }
	.adelf .adelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.adelf-img { padding: 12px; }
	.adelf-info { padding: 0 12px 14px; }
	.adelf-name { font-size: 13.5px; }
	.adelf-price { font-size: 15.5px; }
	.adelf-btn { display: none; }
	.adelf--list .adelf-grid { grid-template-columns: 1fr; }
}
