/*
 * الرئيسية بتقسيمة وودمارت «Mega Electronics» بألوان متجر محمد بكري (template-parts/home-mega.php)
 */
.mg-home { padding: 0 0 40px; }
.mg-home .container { max-width: 1400px; }
.mg-section { margin-top: 34px; }
.mg-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(var(--primary-rgb), .12); border: 1px solid rgba(var(--primary-rgb), .3); color: var(--primary); font-size: .78rem; font-weight: 800; }
.mg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 800; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.mg-btn-primary { background: var(--gradient-primary); color: #fff !important; box-shadow: 0 8px 24px rgba(var(--primary-rgb), .25); }
.mg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--primary-rgb), .35); }
.mg-btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--border-color); color: var(--text-primary) !important; }
.mg-btn-ghost:hover { border-color: var(--primary); }
.mg-btn-sm { padding: 9px 16px; font-size: .85rem; border-radius: 12px; }

/* ===== عنوان السكشن ===== */
.mg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mg-head-title { display: flex; align-items: center; gap: 12px; }
.mg-head-ico { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-primary); color: #fff; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(var(--primary-rgb), .25); flex-shrink: 0; }
.mg-head h2 { margin: 0; font-size: 1.35rem; font-weight: 900; color: var(--text-primary); }
.mg-head p { margin: 2px 0 0; font-size: .85rem; color: var(--text-secondary); }
.mg-head-actions { display: flex; align-items: center; gap: 8px; }
.mg-more { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(var(--primary-rgb), .1); border: 1px solid rgba(var(--primary-rgb), .3); color: var(--primary) !important; font-weight: 800; font-size: .85rem; text-decoration: none; }
.mg-more:hover { background: rgba(var(--primary-rgb), .18); }
.mg-arrow { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; min-height: 0; transition: border-color .2s, color .2s; }
.mg-arrow:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.mg-arrow:disabled { opacity: .35; cursor: default; }

/* ===== الهيرو ===== */
.mg-hero { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 18px; }
.mg-slider { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--border-color); min-height: 420px; background: var(--bg-card); }
.mg-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.mg-slides::-webkit-scrollbar { display: none; }
.mg-hero-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 10px; padding: 38px 46px 54px; position: relative; overflow: hidden; }
.mg-hero-slide::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.mg-tone-0::before { background: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, .45), transparent 60%), linear-gradient(135deg, #1a1033, #0f0f1a); }
.mg-tone-1::before { background: radial-gradient(circle at 15% 50%, rgba(0, 212, 255, .35), transparent 60%), linear-gradient(135deg, #071c2b, #0f0f1a); }
.mg-tone-2::before { background: radial-gradient(circle at 15% 50%, rgba(245, 158, 11, .35), transparent 60%), linear-gradient(135deg, #241808, #0f0f1a); }
.mg-tone-3::before { background: radial-gradient(circle at 15% 50%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(135deg, #2a0b1d, #0f0f1a); }
.mg-hero-text, .mg-hero-img { position: relative; z-index: 1; }
.mg-hero-text h2 { margin: 14px 0 10px; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.35; font-weight: 900; color: #fff; }
.mg-hero-text p { margin: 0 0 16px; color: rgba(255, 255, 255, .75); font-size: .95rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-hero-price { font-size: 1.6rem; font-weight: 900; color: var(--primary); margin-bottom: 18px; }
.mg-hero-price del { font-size: 1rem; color: rgba(255, 255, 255, .45); font-weight: 600; margin-inline-start: 6px; }
.mg-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mg-hero-img { display: flex; justify-content: center; }
.mg-hero-img img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .55)); animation: mgFloat 6s ease-in-out infinite; }
@keyframes mgFloat { 50% { transform: translateY(-10px); } }
.mg-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); background: rgba(10, 10, 15, .55); color: #fff; cursor: pointer; padding: 0; min-height: 0; backdrop-filter: blur(6px); transition: background .2s; }
.mg-slider-arrow:hover { background: var(--primary); }
.mg-slider-arrow.prev { right: 14px; }
.mg-slider-arrow.next { left: 14px; }
.mg-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.mg-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; min-height: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .3s, background .3s; }
.mg-dots button.on { width: 28px; background: var(--primary); }

.mg-hero-side { display: flex; flex-direction: column; gap: 18px; }
.mg-deal { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px; border-radius: 24px; background: linear-gradient(160deg, rgba(239, 68, 68, .16), var(--bg-card) 55%); border: 1px solid rgba(239, 68, 68, .35); color: var(--text-primary) !important; text-decoration: none; transition: transform .25s, border-color .25s; }
.mg-deal:hover { transform: translateY(-3px); border-color: #ef4444; }
.mg-deal-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .78rem; font-weight: 800; }
.mg-deal img { width: 130px; height: 130px; object-fit: contain; border-radius: 16px; }
.mg-deal b { font-size: 1rem; line-height: 1.5; }
.mg-deal-price { font-size: 1.2rem; font-weight: 900; color: var(--primary); }
.mg-deal-price del { font-size: .85rem; color: var(--text-secondary); font-weight: 600; }
.mg-countdown { display: flex; gap: 6px; direction: rtl; }
.mg-countdown span { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 4px; border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); font-size: .68rem; color: var(--text-secondary); }
.mg-countdown b { font-size: 1.05rem; color: var(--text-primary); font-weight: 900; }
.mg-side-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-side-banner { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-primary) !important; transition: transform .25s, border-color .25s; }
.mg-side-banner:hover { transform: translateY(-3px); }
.mg-side-banner b { display: block; font-size: .92rem; }
.mg-side-banner small { display: block; color: var(--text-secondary); font-size: .75rem; }
.mg-side-banner em { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-style: normal; font-size: .75rem; font-weight: 800; color: var(--primary); }
.mg-side-ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; }
.mg-side-ico i { font-size: 1.7rem; color: var(--primary); }
.mg-b-blue { background: linear-gradient(160deg, rgba(0, 120, 212, .22), var(--bg-card) 70%); }
.mg-b-blue:hover { border-color: #0078d4; }
.mg-b-orange { background: linear-gradient(160deg, rgba(235, 60, 0, .22), var(--bg-card) 70%); }
.mg-b-orange:hover { border-color: #eb3c00; }

/* ===== شريط الثقة ===== */
.mg-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.mg-trust > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-color); }
.mg-trust i { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--primary-rgb), .12); color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.mg-trust b { display: block; font-size: .92rem; color: var(--text-primary); }
.mg-trust small { color: var(--text-secondary); font-size: .78rem; }

/* ===== الأقسام الشائعة ===== */
.mg-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.mg-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 14px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-color); text-decoration: none; text-align: center; transition: transform .25s, border-color .25s, box-shadow .25s; }
.mg-cat:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .5); box-shadow: 0 12px 28px rgba(var(--primary-rgb), .14); }
.mg-cat-ico { width: 78px; height: 78px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, rgba(var(--primary-rgb), .16), var(--bg-secondary) 70%); margin-bottom: 4px; }
.mg-cat-ico i { font-size: 2rem; color: var(--primary); }
.mg-cat b { color: var(--text-primary); font-size: .92rem; }
.mg-cat small { color: var(--text-secondary); font-size: .75rem; }

/* ===== الكاروسيل ===== */
.mg-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; }
.mg-track::-webkit-scrollbar { display: none; }
.mg-slide { scroll-snap-align: start; min-width: 0; }
.mg-slide .product-card { height: 100%; }

/* ===== بانر طولي + الجديد ===== */
.mg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: 18px; align-items: stretch; }
.mg-tall { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 16px; border-radius: 24px; text-align: center; text-decoration: none; background: radial-gradient(circle at 50% 70%, rgba(var(--primary-rgb), .25), transparent 60%), linear-gradient(180deg, #111827, #0b0b12); border: 1px solid var(--border-color); color: #fff !important; transition: border-color .25s; }
.mg-tall:hover { border-color: var(--primary); }
.mg-tall b { font-size: 1.15rem; line-height: 1.5; }
.mg-tall img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; border-radius: 18px; }
.mg-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

/* ===== الأكثر مبيعاً ===== */
.mg-event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; padding: 26px; border-radius: 28px; background: radial-gradient(circle at 85% 20%, rgba(124, 58, 237, .28), transparent 55%), radial-gradient(circle at 10% 90%, rgba(var(--primary-rgb), .2), transparent 50%), var(--bg-card); border: 1px solid var(--border-color); }
.mg-event-head { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.mg-event-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; color: var(--text-primary); }
.mg-event-head p { margin: 0; color: var(--text-secondary); line-height: 1.8; }
.mg-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mg-mini { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); text-decoration: none; transition: border-color .2s, transform .2s; min-width: 0; }
.mg-mini:hover { border-color: rgba(var(--primary-rgb), .5); transform: translateY(-2px); }
.mg-mini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.mg-mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mg-mini-body b { color: var(--text-primary); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-stars { color: #fbbf24; font-size: .75rem; font-weight: 700; }
.mg-stars small { color: var(--text-secondary); }
.mg-mini-price { color: var(--primary); font-weight: 900; font-size: .9rem; }
.mg-mini-price del { color: var(--text-secondary); font-size: .75rem; font-weight: 600; }

/* ===== بلوك مايكروسوفت ===== */
.mg-brand { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 18px; }
.mg-brand-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 30px; border-radius: 28px; background: radial-gradient(circle at 80% 30%, rgba(0, 120, 212, .3), transparent 55%), var(--bg-card); border: 1px solid var(--border-color); }
.mg-brand-text h2 { margin: 12px 0 8px; font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 900; color: var(--text-primary); }
.mg-brand-text p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.8; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chips a { padding: 7px 13px; border-radius: 999px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary) !important; font-size: .8rem; font-weight: 700; text-decoration: none; }
.mg-chips a:hover { border-color: var(--primary); color: var(--primary) !important; }
.mg-brand-icons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.mg-brand-icons a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border-color); color: var(--text-primary) !important; font-weight: 800; text-decoration: none; transition: transform .25s, border-color .25s; }
.mg-brand-icons a:hover { transform: translateY(-4px); border-color: #0078d4; }
.mg-brand-icons i { font-size: 3rem; color: var(--primary); }
.mg-brand-card .product-card { height: 100%; }

/* ===== 3 بانرات ===== */
.mg-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mg-promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px; border-radius: 24px; color: #fff !important; text-decoration: none; border: 1px solid rgba(255, 255, 255, .08); transition: transform .25s, box-shadow .25s; min-height: 150px; }
.mg-promo:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.mg-promo b { display: block; font-size: 1.15rem; font-weight: 900; }
.mg-promo small { display: block; opacity: .8; font-size: .82rem; margin: 4px 0 12px; }
.mg-promo em { display: inline-block; font-style: normal; font-size: .78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.mg-promo-ico { width: 96px; height: 96px; border-radius: 26px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mg-promo-ico i { font-size: 2.6rem; color: #fff; }
.mg-p-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.mg-p-pink { background: linear-gradient(135deg, #db2777, #831843); }
.mg-p-green { background: linear-gradient(135deg, #059669, #064e3b); }

/* ===== عن المتجر ===== */
.mg-about { padding: 24px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border-color); }
.mg-about h2 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 900; color: var(--text-primary); }
.mg-about-text { color: var(--text-secondary); line-height: 1.9; font-size: .92rem; max-height: 5.7em; overflow: hidden; position: relative; transition: max-height .4s; }
.mg-about-text::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3em; background: linear-gradient(transparent, var(--bg-card)); }
.mg-about-text.open { max-height: 60em; }
.mg-about-text.open::after { display: none; }
.mg-about-text p { margin: 0 0 8px; }
.mg-more-btn { margin-top: 8px; background: none; border: 0; padding: 0; min-height: 0; color: var(--primary); font-weight: 800; cursor: pointer; font-family: inherit; }

/* ===== الشاشات ===== */
@media (max-width: 1280px) { .mg-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); } }
@media (max-width: 1024px) {
	.mg-hero { grid-template-columns: 1fr; }
	.mg-hero-side { flex-direction: row; }
	.mg-deal { flex: 1 1 50%; }
	.mg-side-banners { flex: 1 1 50%; grid-template-columns: 1fr; }
	.mg-trust { grid-template-columns: repeat(2, 1fr); }
	.mg-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
	.mg-split { grid-template-columns: 1fr; }
	.mg-tall { flex-direction: row; text-align: start; }
	.mg-tall img { max-width: 120px; }
	.mg-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-event { grid-template-columns: 1fr; }
	.mg-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mg-brand { grid-template-columns: 1fr; }
	.mg-brand-card { display: none; }
	.mg-promos { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.mg-home { padding-top: 10px; }
	.mg-section { margin-top: 26px; }
	.mg-slider { min-height: 0; border-radius: 20px; }
	.mg-hero-slide { grid-template-columns: 1fr; padding: 22px 18px 44px; text-align: center; }
	.mg-hero-img { order: -1; }
	.mg-hero-img img { max-width: 190px; }
	.mg-hero-text p { display: none; }
	.mg-hero-btns { justify-content: center; }
	.mg-slider-arrow { display: none; }
	.mg-hero-side { flex-direction: column; }
	.mg-side-banners { grid-template-columns: 1fr 1fr; }
	.mg-head h2 { font-size: 1.12rem; }
	.mg-head-ico { width: 38px; height: 38px; border-radius: 12px; }
	.mg-arrow { display: none; }
	.mg-track { grid-auto-columns: 46%; gap: 12px; }
	.mg-cats { grid-auto-flow: column; grid-auto-columns: 112px; grid-template-columns: none; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
	.mg-cats::-webkit-scrollbar { display: none; }
	.mg-cat-ico { width: 60px; height: 60px; }
	.mg-grid4 { gap: 12px; }
	.mg-event { padding: 18px; border-radius: 22px; }
	.mg-event-list { grid-template-columns: 1fr; }
	.mg-brand-main { grid-template-columns: 1fr; padding: 20px; }
	.mg-trust > div { padding: 10px 12px; }
	.mg-trust i { width: 36px; height: 36px; }
}

/* ===== الوضع الفاتح ===== */
html[data-theme="light"] .mg-hero-text h2 { color: #fff; }
html[data-theme="light"] .mg-tall b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .mg-hero-img img { animation: none; } .mg-slides, .mg-track { scroll-behavior: auto; } }

/* إطار الأقسام (نفس متجر محمد بكري) جوه الرئيسية */
.mg-cats-mb { margin-top: 30px; }
.mg-cats-mb .categories-showcase { padding: 34px 0 6px; background: none; overflow: visible; } /* مساحة لعنوان «تصفح الأقسام» اللي طالع فوق الإطار */
.mg-cats-mb .categories-showcase > .container { max-width: none; padding: 0; }

/* السلايدر: مساحة للأسهم علشان ماتغطيش على الكلام */
.mg-hero-slide { padding-inline: 78px; }
.mg-slider-arrow { width: 40px; height: 40px; }
.mg-slider-arrow.prev { right: 18px; }
.mg-slider-arrow.next { left: 18px; }
@media (max-width: 1024px) and (min-width: 769px) {
	.mg-hero-slide { padding-inline: 66px; grid-template-columns: 1.2fr 1fr; }
	.mg-hero-text h2 { font-size: 1.45rem; }
}
@media (max-width: 768px) { .mg-hero-slide { padding-inline: 18px; } }

/* ===== صفقة اليوم (نسخة احترافية — بتتظبط على عرض الكارت نفسه) ===== */
.mg-deal { container-type: inline-size; align-items: stretch; text-align: start; gap: 12px; padding: 16px; position: relative; overflow: hidden; }
.mg-deal::before { content: ''; position: absolute; width: 220px; height: 220px; top: -90px; left: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 68, 68, .28), transparent 70%); pointer-events: none; }
.mg-deal > * { position: relative; }
.mg-deal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mg-deal-off { padding: 4px 10px; border-radius: 10px; background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .45); color: #f87171; font-weight: 900; font-size: .9rem; direction: ltr; }
.mg-deal-body { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: center; }
.mg-deal-img { display: block; border-radius: 18px; overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--border-color); aspect-ratio: 1; }
.mg-deal .mg-deal-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.mg-deal:hover .mg-deal-img img { transform: scale(1.06); }
.mg-deal-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mg-deal-cat { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: rgba(var(--primary-rgb), .1); color: var(--primary); font-size: .7rem; font-weight: 800; }
.mg-deal-name { font-size: .98rem; line-height: 1.45; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-deal-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: var(--text-secondary); }
.mg-deal-meta .fa-star { color: #fbbf24; }
.mg-deal-meta .fa-shopping-cart { color: var(--primary); }
.mg-deal .mg-deal-price { font-size: 1.25rem; line-height: 1.2; }
.mg-deal-save { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: rgba(16, 185, 129, .12); color: #34d399; font-size: .74rem; font-weight: 800; }
.mg-deal-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-deal-feats span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; background: var(--bg-secondary); border: 1px solid var(--border-color); font-size: .72rem; font-weight: 700; color: var(--text-secondary); }
.mg-deal-feats i { color: var(--primary); }
.mg-deal .mg-countdown { justify-content: center; }
.mg-deal-cta { width: 100%; margin-top: auto; }
/* كارت ضيق (موبايل صغير): الصورة فوق */
@container (max-width: 300px) {
	.mg-deal-body { grid-template-columns: 1fr; text-align: center; }
	.mg-deal-img { max-width: 150px; margin: 0 auto; }
	.mg-deal-info { align-items: center; }
	.mg-deal-cat, .mg-deal-save { align-self: center; }
	.mg-deal-meta, .mg-deal-feats { justify-content: center; }
}
/* كارت عريض (تابلت): صورة أكبر */
@container (min-width: 460px) {
	.mg-deal-body { grid-template-columns: 150px minmax(0, 1fr); }
	.mg-deal-name { font-size: 1.08rem; }
}

/* =====================================================================
   السلايدر — نسخة 2 (أفخم): صورة كبيرة بهالة + ميلان، نقوش، شرايح مميزات، بلوك سعر، شريط تحكم تحت، حركة دخول
   ===================================================================== */
.mg-slider { min-height: 460px; isolation: isolate; }
.mg-hero-slide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 44px 48px 84px; gap: 24px; }
.mg-hero-slide::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px;
	mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 20%, transparent 70%); }
.mg-hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mg-hero-deco i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.mg-hero-deco i:nth-child(1) { width: 260px; height: 260px; left: 8%; top: -60px; background: var(--mg-c1); }
.mg-hero-deco i:nth-child(2) { width: 200px; height: 200px; left: 30%; bottom: -80px; background: var(--mg-c2); }
.mg-hero-deco i:nth-child(3) { width: 140px; height: 140px; right: 6%; top: 20%; background: var(--mg-c2); opacity: .25; }
.mg-tone-0 { --mg-c1: #7c3aed; --mg-c2: #00d4ff; }
.mg-tone-1 { --mg-c1: #0ea5e9; --mg-c2: #10b981; }
.mg-tone-2 { --mg-c1: #f59e0b; --mg-c2: #ef4444; }
.mg-tone-3 { --mg-c1: #ec4899; --mg-c2: #8b5cf6; }

.mg-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-hero-cat, .mg-hero-off { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.mg-hero-cat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }
.mg-hero-cat img, .mg-hero-cat i { width: 16px !important; height: 16px !important; }
.mg-hero-off { background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; box-shadow: 0 6px 18px rgba(239, 68, 68, .35); }
.mg-hero-text h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); margin: 16px 0 10px; letter-spacing: -.3px; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.mg-hero-text p { -webkit-line-clamp: 2; max-width: 560px; }
.mg-hero-feats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mg-hero-feats li { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .85); font-size: .85rem; font-weight: 700; }
.mg-hero-feats i { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: var(--mg-c2); font-size: .75rem; }
.mg-hero-feats .fa-star { color: #fbbf24; }
.mg-hero-buy { display: inline-flex; align-items: center; gap: 14px; padding: 8px; padding-inline-start: 20px; border-radius: 20px; background: rgba(10, 10, 15, .45); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); flex-wrap: wrap; }
.mg-hero-price { margin: 0; display: flex; flex-direction: column; line-height: 1.15; font-size: 1rem; }
.mg-hero-price span { font-size: 1.7rem; font-weight: 900; color: #fff; }
.mg-hero-price span small { font-size: .75rem; color: rgba(255, 255, 255, .6); font-weight: 700; }
.mg-hero-price del { font-size: .9rem; color: rgba(255, 255, 255, .5); margin: 0; }
.mg-hero-cta { padding: 14px 24px; font-size: 1rem; }

.mg-hero-img { position: relative; perspective: 900px; }
.mg-hero-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
	background: conic-gradient(from 0deg, var(--mg-c1), var(--mg-c2), var(--mg-c1)); filter: blur(46px); opacity: .55; animation: mgSpin 14s linear infinite; }
@keyframes mgSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mg-hero-img img { max-width: 400px; border-radius: 26px; transform: rotateY(-10deg) rotateX(4deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); filter: none; animation: mgFloat3d 6s ease-in-out infinite; }
@keyframes mgFloat3d { 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-12px); } }
.mg-hero-seal { position: absolute; top: 6%; left: 10%; width: 78px; height: 78px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; box-shadow: 0 10px 26px rgba(239, 68, 68, .45); transform: rotate(-12deg); border: 3px solid rgba(255, 255, 255, .25); }
.mg-hero-seal b { font-size: 1.25rem; font-weight: 900; line-height: 1; direction: ltr; }
.mg-hero-seal small { font-size: .7rem; font-weight: 800; }

/* شريط التحكم تحت */
.mg-slider-bar { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 999px; background: rgba(10, 10, 15, .5); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.mg-slider-bar .mg-slider-arrow { position: static; transform: none; width: 34px; height: 34px; border: 0; background: rgba(255, 255, 255, .08); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.mg-slider-bar .mg-slider-arrow:hover { background: var(--primary); }
.mg-slider-bar .mg-dots { position: static; }
.mg-dots button { position: relative; overflow: hidden; }
.mg-dots button.on { width: 36px; background: rgba(255, 255, 255, .25); }
.mg-dots button.on::after { content: ''; position: absolute; inset: 0; background: var(--primary); transform-origin: right; animation: mgDotFill 6s linear forwards; }
.mg-slider.paused .mg-dots button.on::after { animation-play-state: paused; }
@keyframes mgDotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* حركة دخول */
.mg-hero-slide .mg-hero-text > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mg-hero-slide .mg-hero-img { opacity: 0; transform: scale(.92); transition: opacity .7s ease, transform .7s ease; }
.mg-hero-slide.is-active .mg-hero-text > *, .mg-hero-slide.is-active .mg-hero-img { opacity: 1; transform: none; }
.mg-hero-slide.is-active .mg-hero-text > :nth-child(2) { transition-delay: .08s; }
.mg-hero-slide.is-active .mg-hero-text > :nth-child(3) { transition-delay: .16s; }
.mg-hero-slide.is-active .mg-hero-text > :nth-child(4) { transition-delay: .24s; }
.mg-hero-slide.is-active .mg-hero-text > :nth-child(5) { transition-delay: .32s; }

@media (max-width: 1024px) and (min-width: 769px) {
	.mg-hero-slide { padding: 34px 32px 80px; }
	.mg-hero-text h2 { font-size: 1.6rem; }
	.mg-hero-feats li:nth-child(3) { display: none; }
}
@media (max-width: 768px) {
	.mg-slider { min-height: 0; }
	.mg-hero-slide { padding: 22px 16px 70px; gap: 6px; }
	.mg-hero-img img { max-width: 210px; transform: none; animation: mgFloat 6s ease-in-out infinite; }
	.mg-hero-seal { width: 60px; height: 60px; left: 4%; }
	.mg-hero-seal b { font-size: 1rem; }
	.mg-hero-chips, .mg-hero-feats { justify-content: center; }
	.mg-hero-feats { margin-bottom: 14px; gap: 6px 10px; }
	.mg-hero-feats li { font-size: .75rem; }
	.mg-hero-buy { justify-content: center; padding-inline-start: 14px; }
	.mg-hero-price span { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
	.mg-hero-glow, .mg-hero-img img { animation: none; }
	.mg-hero-slide .mg-hero-text > *, .mg-hero-slide .mg-hero-img { opacity: 1; transform: none; transition: none; }
}

/* ===== الفاصل بين السكاشن (section-divider من متجر محمد بكري) ===== */
.mg-divider { margin: 34px 0 6px !important; }
.mg-divider + .mg-section { margin-top: 18px; }

/* ===== كارت «الأكثر مبيعاً» الطولي — نسخة 2 ===== */
.mg-tall { position: relative; overflow: hidden; justify-content: flex-start; gap: 10px; padding: 18px 16px; background: linear-gradient(180deg, #13132a 0%, #0b0b14 100%); }
.mg-tall-glow { position: absolute; width: 240px; height: 240px; top: 60px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb), .35), rgba(124, 58, 237, .2) 45%, transparent 70%); filter: blur(10px); pointer-events: none; }
.mg-tall > *:not(.mg-tall-glow) { position: relative; }
.mg-tall-rank { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: .8rem; font-weight: 900; box-shadow: 0 8px 20px rgba(245, 158, 11, .3); }
.mg-tall-img { display: block; width: 100%; max-width: 230px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .4s; }
.mg-tall .mg-tall-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.mg-tall:hover .mg-tall-img { transform: translateY(-4px) scale(1.02); }
.mg-tall-name { font-size: 1.05rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-tall-stats { display: flex; justify-content: center; gap: 12px; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.mg-tall-stats .fa-star { color: #fbbf24; }
.mg-tall-stats .fa-shopping-cart { color: var(--primary); }
.mg-tall-price { font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.mg-tall-price small { font-size: .72rem; color: rgba(255, 255, 255, .6); }
.mg-tall-price del { font-size: .82rem; color: rgba(255, 255, 255, .45); font-weight: 600; }
.mg-tall-cta { width: 100%; margin-top: auto; }
@media (max-width: 1024px) {
	.mg-tall { display: grid; grid-template-columns: 130px minmax(0, 1fr); grid-template-areas: 'img rank' 'img name' 'img stats' 'img price' 'cta cta'; text-align: start; align-items: center; column-gap: 16px; row-gap: 6px; }
	.mg-tall-img { grid-area: img; max-width: 130px; }
	.mg-tall-rank { grid-area: rank; justify-self: start; }
	.mg-tall-name { grid-area: name; }
	.mg-tall-stats { grid-area: stats; justify-content: flex-start; }
	.mg-tall-price { grid-area: price; }
	.mg-tall-cta { grid-area: cta; margin-top: 8px; }
	.mg-tall-glow { left: auto; right: -40px; top: -40px; transform: none; }
}

/* السعر القديم: أصغر + باهت + مشطوب (wc_price جوه del كان بياخد حجم ولون السعر الجديد) */
.mg-home del, .mg-home del .woocommerce-Price-amount, .mg-home del bdi { font-size: inherit !important; color: inherit !important; font-weight: 600 !important; }
.mg-home del { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(239, 68, 68, .75); opacity: 1; }
.mg-hero-price { flex-direction: column; align-items: flex-start; gap: 2px; }
.mg-hero-price del { font-size: .95rem !important; color: rgba(255, 255, 255, .5) !important; }
.mg-hero-price span, .mg-hero-price span .woocommerce-Price-amount { font-size: 1.75rem; color: #fff; font-weight: 900; }

/* ===== بلوك مايكروسوفت — نسخة 2 ===== */
.mg-ms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; align-items: center; padding: 30px; border-radius: 28px; position: relative; overflow: hidden;
	background: radial-gradient(circle at 90% 10%, rgba(0, 120, 212, .3), transparent 50%), radial-gradient(circle at 5% 95%, rgba(127, 186, 0, .14), transparent 45%), var(--bg-card); border: 1px solid var(--border-color); }
.mg-ms-logo { display: grid; grid-template-columns: repeat(2, 20px); gap: 3px; margin-bottom: 14px; }
.mg-ms-logo i { width: 20px; height: 20px; }
.mg-ms-logo i:nth-child(1) { background: #f25022; } .mg-ms-logo i:nth-child(2) { background: #7fba00; } .mg-ms-logo i:nth-child(3) { background: #00a4ef; } .mg-ms-logo i:nth-child(4) { background: #ffb900; }
.mg-ms-info h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; color: var(--text-primary); }
.mg-ms-info p { margin: 0 0 16px; color: var(--text-secondary); line-height: 1.8; }
.mg-ms-feats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mg-ms-feats li { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 700; font-size: .92rem; }
.mg-ms-feats i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(16, 185, 129, .15); color: #34d399; font-size: .7rem; }
.mg-ms-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mg-ms-btns .mg-btn img, .mg-ms-btns .mg-btn i { width: 20px !important; height: 20px !important; }
.mg-ms-btns small { padding: 1px 8px; border-radius: 999px; background: rgba(var(--primary-rgb), .15); color: var(--primary); font-size: .72rem; }
.mg-ms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mg-ms-tile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: rgba(10, 10, 15, .45); border: 1px solid var(--border-color); text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; min-width: 0; }
.mg-ms-tile:hover { transform: translateY(-4px); border-color: rgba(0, 164, 239, .6); box-shadow: 0 14px 30px rgba(0, 120, 212, .2); }
.mg-ms-img { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-secondary); }
.mg-ms-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mg-ms-tile:hover .mg-ms-img img { transform: scale(1.06); }
.mg-ms-img em { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 8px; background: #ef4444; color: #fff; font-style: normal; font-size: .72rem; font-weight: 900; direction: ltr; }
.mg-ms-tile b { color: var(--text-primary); font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.mg-ms-price { color: var(--primary); font-weight: 900; font-size: .95rem; }
.mg-ms-price small { color: var(--text-secondary); font-size: .7rem; font-weight: 700; }
.mg-ms-price del { color: var(--text-secondary) !important; font-size: .75rem !important; }
@media (min-width: 1200px) { .mg-ms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mg-ms { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); } }
@media (max-width: 1024px) { .mg-ms { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 768px) { .mg-ms { padding: 18px; border-radius: 22px; } .mg-ms-grid { gap: 10px; } .mg-ms-tile { padding: 8px; border-radius: 16px; } }
/* السعر الحالي في السلايدر بس (مش اللي جوه del) */
.mg-hero-price > span, .mg-hero-price > span .woocommerce-Price-amount { font-size: 1.75rem !important; color: #fff !important; }
/* كل اللي جوه السعر القديم (رمز العملة + الرقم) بنفس الحجم الصغير */
.mg-home del * { font-size: inherit !important; color: inherit !important; font-weight: inherit !important; }
.mg-hero-price > del { font-size: .95rem !important; color: rgba(255, 255, 255, .5) !important; font-weight: 700 !important; }


/* =====================================================================
   الوضع الفاتح للرئيسية (كل اللي ألوانه غامقة ثابتة فوق) — نفس قاعدة light-mode في shop-common.css
   ===================================================================== */
html[data-theme="light"] .mg-tone-0::before { background: radial-gradient(circle at 15% 50%, rgba(124, 58, 237, .16), transparent 60%), linear-gradient(135deg, #f5f3ff, #ffffff); }
html[data-theme="light"] .mg-tone-1::before { background: radial-gradient(circle at 15% 50%, rgba(0, 170, 220, .16), transparent 60%), linear-gradient(135deg, #ecfeff, #ffffff); }
html[data-theme="light"] .mg-tone-2::before { background: radial-gradient(circle at 15% 50%, rgba(245, 158, 11, .18), transparent 60%), linear-gradient(135deg, #fffbeb, #ffffff); }
html[data-theme="light"] .mg-tone-3::before { background: radial-gradient(circle at 15% 50%, rgba(236, 72, 153, .14), transparent 60%), linear-gradient(135deg, #fdf2f8, #ffffff); }
html[data-theme="light"] .mg-hero-slide::after { background-image: radial-gradient(rgba(15, 23, 42, .08) 1px, transparent 1px); }
html[data-theme="light"] .mg-hero-deco i { opacity: .28; }
html[data-theme="light"] .mg-hero-text h2 { color: #0f172a; text-shadow: none; }
html[data-theme="light"] .mg-hero-text p { color: #475569; }
html[data-theme="light"] .mg-hero-feats li { color: #334155; }
html[data-theme="light"] .mg-hero-feats i { background: rgba(15, 23, 42, .06); }
html[data-theme="light"] .mg-hero-cat { background: #fff; border-color: rgba(15, 23, 42, .12); color: #0f172a; }
html[data-theme="light"] .mg-hero-buy { background: rgba(255, 255, 255, .85); border-color: rgba(15, 23, 42, .1); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
html[data-theme="light"] .mg-hero-price > span, html[data-theme="light"] .mg-hero-price > span .woocommerce-Price-amount { color: #0f172a !important; }
html[data-theme="light"] .mg-hero-price > del { color: #94a3b8 !important; }
html[data-theme="light"] .mg-hero-img img { box-shadow: 0 24px 50px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06); }
html[data-theme="light"] .mg-hero-glow { opacity: .35; }
html[data-theme="light"] .mg-slider { border-color: rgba(15, 23, 42, .08); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
html[data-theme="light"] .mg-slider-bar { background: rgba(255, 255, 255, .85); border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .mg-slider-bar .mg-slider-arrow { background: rgba(15, 23, 42, .06); color: #0f172a; }
html[data-theme="light"] .mg-slider-bar .mg-slider-arrow:hover { background: var(--primary); color: #fff; }
html[data-theme="light"] .mg-dots button { background: rgba(15, 23, 42, .18); }
html[data-theme="light"] .mg-dots button.on { background: rgba(15, 23, 42, .12); }

html[data-theme="light"] .mg-tall { background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%); border-color: rgba(15, 23, 42, .08); color: #0f172a !important; }
html[data-theme="light"] .mg-tall-glow { opacity: .5; }
html[data-theme="light"] .mg-tall-stats { color: #475569; }
html[data-theme="light"] .mg-tall-price small, html[data-theme="light"] .mg-tall-price del { color: #94a3b8; }
html[data-theme="light"] .mg-tall-img { box-shadow: 0 16px 34px rgba(15, 23, 42, .15), 0 0 0 1px rgba(15, 23, 42, .06); }

html[data-theme="light"] .mg-ms-tile { background: #fff; }
html[data-theme="light"] .mg-deal { box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
html[data-theme="light"] .mg-promo { box-shadow: 0 10px 26px rgba(15, 23, 42, .1); }
html[data-theme="light"] .mg-arrow { background: #fff; }

/* ===== صفقة اليوم: التوفير + شريط المبيعات/المخزون (بيملوا الكارت بدل الفراغ) + شارة الخصم أوضح ===== */
.mg-deal-off { background: linear-gradient(135deg, #ef4444, #f97316); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(239, 68, 68, .3); }
.mg-deal-price del { margin-inline-start: 4px; }
.mg-deal-saving { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(16, 185, 129, .04)); border: 1px dashed rgba(16, 185, 129, .45); }
.mg-deal-saving > i { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(16, 185, 129, .18); color: #10b981; font-size: 1rem; }
.mg-deal-saving > span { display: flex; flex-direction: column; font-size: .72rem; font-weight: 700; color: var(--text-secondary); line-height: 1.3; }
.mg-deal-saving b { font-size: 1.05rem; font-weight: 900; color: #10b981; }
.mg-deal-saving em { margin-inline-start: auto; padding: 4px 9px; border-radius: 8px; background: #10b981; color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.mg-deal-stock { display: flex; flex-direction: column; gap: 7px; }
.mg-deal-stock-row { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; font-weight: 700; color: var(--text-secondary); }
.mg-deal-stock-row b { color: var(--text-primary); font-weight: 900; }
.mg-deal-stock-row .fa-fire-alt { color: #f97316; }
.mg-deal-stock-row .fa-check-circle { color: #10b981; }
.mg-deal-bar { display: block; height: 8px; border-radius: 99px; background: var(--bg-secondary); border: 1px solid var(--border-color); overflow: hidden; }
.mg-deal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f97316, #ef4444); }
html[data-theme="light"] .mg-deal::before { opacity: .55; }
html[data-theme="light"] .mg-deal-saving b { color: #059669; }
html[data-theme="light"] .mg-deal-saving > i { color: #059669; }
/* السعر المشطوب قبل الحالي (زي متجر محمد بكري): المبلغين أرقام لاتيني فبيتعرضوا شمال→يمين — العزل بيخليهم يمشوا مع اتجاه الصفحة */
.mg-deal-price .woocommerce-Price-amount, .mg-mini-price .woocommerce-Price-amount, .mg-tall-price .woocommerce-Price-amount, .mg-ms-price .woocommerce-Price-amount, .mg-hero-price .woocommerce-Price-amount { unicode-bidi: isolate; }

/* السلايدر على الموبايل: عمود واحد (قاعدة «نسخة 2» فوق كانت بترجّع عمودين بعد قاعدة الموبايل) + الشريحة كاملة العرض */
@media (max-width: 768px) {
	.mg-hero-slide { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.mg-hero-text { min-width: 0; }
	.mg-hero-text h2 { font-size: clamp(1.25rem, 5.6vw, 1.6rem); overflow-wrap: anywhere; }
	.mg-hero-buy { justify-content: center; }
	.mg-hero-price { align-items: center; }
}

/* موبايل: صفقة اليوم وبانرات ويندوز/أوفيس تحت بعض بارتفاع محتواهم (flex 50% كان بيطوّل البانرات لـ ~300px) */
@media (max-width: 768px) {
	.mg-hero-side > .mg-deal, .mg-hero-side > .mg-side-banners { flex: none; }
	.mg-side-banner { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
	.mg-side-banner .mg-side-ico { flex-shrink: 0; }
	.mg-side-banner b { font-size: .88rem; }
	.mg-side-banner em { margin-top: 4px; }
}
@media (max-width: 380px) {
	.mg-side-banners { grid-template-columns: 1fr; }
}

/* ===== اختر حسب احتياجك: 4 كروت لأنواع العملاء — كل كارت بلونه + أفضل 3 منتجات ===== */
.mg-personas { padding: 28px; border-radius: 28px; border: 1px solid var(--border-color); position: relative; overflow: hidden;
	background: radial-gradient(circle at 85% 0%, rgba(0, 212, 255, .12), transparent 45%), radial-gradient(circle at 10% 100%, rgba(124, 58, 237, .14), transparent 45%), var(--bg-card); }
.mg-personas-head { text-align: center; max-width: 620px; margin: 0 auto 24px; }
.mg-personas-head h2 { margin: 12px 0 8px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; color: var(--text-primary); }
.mg-personas-head p { margin: 0; color: var(--text-secondary); line-height: 1.8; }
.mg-personas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mg-persona { --pc: #00d4ff; --pc-rgb: 0, 212, 255; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: rgba(10, 14, 28, .55); border: 1px solid rgba(var(--pc-rgb), .25); position: relative; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.mg-persona::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, transparent, var(--pc), transparent); opacity: .8; }
.mg-persona:hover { transform: translateY(-4px); border-color: rgba(var(--pc-rgb), .55); box-shadow: 0 16px 36px rgba(var(--pc-rgb), .14); }
.mg-p-design { --pc: #a855f7; --pc-rgb: 168, 85, 247; }
.mg-p-creator { --pc: #f43f5e; --pc-rgb: 244, 63, 94; }
.mg-p-student { --pc: #10b981; --pc-rgb: 16, 185, 129; }
.mg-p-business { --pc: #f59e0b; --pc-rgb: 245, 158, 11; }
.mg-persona-top { display: flex; align-items: center; gap: 12px; }
.mg-persona-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--pc), rgba(var(--pc-rgb), .55)); box-shadow: 0 8px 20px rgba(var(--pc-rgb), .35); }
.mg-persona-top b { display: block; font-size: 1.05rem; font-weight: 900; color: var(--text-primary); }
.mg-persona-top small { display: block; margin-top: 2px; font-size: .78rem; color: var(--text-secondary); line-height: 1.5; }
.mg-persona-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mg-persona-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "img name" "img price"; column-gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.mg-persona-list a:hover { background: rgba(var(--pc-rgb), .08); border-color: rgba(var(--pc-rgb), .3); }
.mg-persona-list img { grid-area: img; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mg-persona-name { grid-area: name; font-size: .84rem; font-weight: 800; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mg-persona-price { grid-area: price; font-size: .85rem; font-weight: 900; color: var(--pc); }
.mg-persona-price small { color: var(--text-secondary); font-weight: 600; font-size: .72rem; }
.mg-persona-price .woocommerce-Price-amount { unicode-bidi: isolate; }
.mg-persona-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 12px; font-weight: 800; font-size: .88rem; color: var(--pc) !important; background: rgba(var(--pc-rgb), .1); border: 1px solid rgba(var(--pc-rgb), .3); text-decoration: none; transition: all .2s ease; }
.mg-persona-more:hover { background: var(--pc); color: #fff !important; }
html[data-theme="light"] .mg-persona { background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
html[data-theme="light"] .mg-persona-list a { background: #f8fafc; border-color: rgba(15, 23, 42, .06); }
@media (max-width: 1200px) { .mg-personas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.mg-personas { padding: 18px 14px; border-radius: 22px; }
	.mg-personas-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== آراء عملائنا: كروت تقييمات حقيقية في شريط بيتحرك + متوسط التقييم ===== */
.mg-testi { padding: 28px; border-radius: 28px; border: 1px solid var(--border-color); position: relative; overflow: hidden;
	background: radial-gradient(circle at 0% 0%, rgba(251, 191, 36, .1), transparent 40%), radial-gradient(circle at 100% 100%, rgba(0, 212, 255, .1), transparent 45%), var(--bg-card); }
.mg-testi-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.mg-testi-head h2 { margin: 10px 0 6px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; color: var(--text-primary); }
.mg-testi-head p { margin: 0; color: var(--text-secondary); line-height: 1.8; max-width: 560px; }
.mg-testi-score { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 24px; border-radius: 20px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); }
.mg-testi-score b { font-size: 2.2rem; line-height: 1; font-weight: 900; color: #fbbf24; }
.mg-testi-score small { font-size: .78rem; color: var(--text-secondary); font-weight: 700; }
.mg-testi-stars { display: inline-flex; gap: 2px; color: #fbbf24; font-size: .8rem; }
.mg-testi .mg-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
.mg-testi-card { position: relative; height: 100%; margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; background: rgba(10, 14, 28, .55); border: 1px solid rgba(255, 255, 255, .08); transition: transform .25s ease, border-color .25s ease; }
.mg-testi-card:hover { transform: translateY(-3px); border-color: rgba(251, 191, 36, .4); }
.mg-testi-quote { position: absolute; top: 14px; left: 16px; font-size: 1.8rem; color: rgba(251, 191, 36, .18); }
.mg-testi-card blockquote { margin: 0; flex: 1; color: var(--text-primary); font-size: .92rem; line-height: 1.85; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mg-testi-card figcaption { display: flex; align-items: center; gap: 10px; }
.mg-testi-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #00d4ff, #7c3aed); }
.mg-testi-who b { display: block; font-size: .9rem; color: var(--text-primary); }
.mg-testi-who small { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: #10b981; }
.mg-testi-prod { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); text-decoration: none; color: var(--text-secondary) !important; font-size: .8rem; font-weight: 700; transition: border-color .2s ease, color .2s ease; }
.mg-testi-prod img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mg-testi-prod span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-testi-prod i { font-size: .7rem; color: var(--primary); }
.mg-testi-prod:hover { border-color: rgba(var(--primary-rgb), .4); color: var(--text-primary) !important; }
.mg-testi-foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
html[data-theme="light"] .mg-testi-card { background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
html[data-theme="light"] .mg-testi-prod { background: #f8fafc; border-color: rgba(15, 23, 42, .06); }
@media (max-width: 1024px) { .mg-testi .mg-track { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 640px) {
	.mg-testi { padding: 18px 14px; border-radius: 22px; }
	.mg-testi-head { flex-direction: column; text-align: center; }
	.mg-testi .mg-track { grid-auto-columns: 86%; }
}
/* آراء عملائنا: نص التقييم في فقاعة كلام بتملا الكارت (التقييمات القصيرة كانت بتسيب فراغ) */
.mg-testi-card blockquote { position: relative; display: flex; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(251, 191, 36, .06); border: 1px solid rgba(251, 191, 36, .14); font-size: 1rem; line-height: 1.9; -webkit-line-clamp: unset; }
.mg-testi-card blockquote::after { content: ''; position: absolute; bottom: -7px; inset-inline-start: 22px; width: 12px; height: 12px; background: inherit; border: inherit; border-top: 0; border-inline-start: 0; transform: rotate(45deg); background-color: #16161b; }
html[data-theme="light"] .mg-testi-card blockquote { background: #fffbeb; border-color: #fde68a; }
html[data-theme="light"] .mg-testi-card blockquote::after { background-color: #fffbeb; }

/* النسخة الإنجليزي (LTR): الأسهم ومؤشر السلايدر بالعكس */
html[dir="ltr"] .mg-dots button.on::after { transform-origin: left; }
html[dir="ltr"] .mg-slider-arrow i, html[dir="ltr"] .mg-arrow i { transform: scaleX(-1); }

/* تباين (مراجعة UI/UX 2026-10-24): شارات بنص أبيض على أحمر/أخضر فاتح ← درجات أغمق */
.mg-deal-tag, .mg-ms-img em { background: #dc2626; }
.mg-deal-saving em { background: #047857; }
.mg-hero-seal { background: linear-gradient(135deg, #dc2626, #c2410c); }
/* الوضع الفاتح: سعر سلايدر الرئيسية («يبدأ من» والعملة كانوا أبيض على أبيض) + زرار «تصفّح المزيد» */
html[data-theme="light"] .mg-hero-price small, html[data-theme="light"] .mg-hero-buy small { color: #64748b !important; }
html[data-theme="light"] .mg-hero-price .woocommerce-Price-currencySymbol, html[data-theme="light"] .mg-hero-price .woocommerce-Price-amount { color: #0f172a !important; }
html[data-theme="light"] .mg-hero-price del, html[data-theme="light"] .mg-hero-price del .woocommerce-Price-amount, html[data-theme="light"] .mg-hero-price del .woocommerce-Price-currencySymbol { color: #64748b !important; }
html[data-theme="light"] .mg-persona-more { color: #6d28d9 !important; }
