/* =========================================================================
   تنسيقات الصفحة الرئيسية - أرقم كوم
   يُحمّل فقط على الصفحة التي تستخدم قالب "الصفحة الرئيسية".
   الألوان من متغيّرات البراند: --arqam-primary / --arqam-secondary
   ========================================================================= */

.arqam-home {
	display: block;
	direction: rtl;
}
.arqam-home section {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}

/* ---------- أزرار عامة ---------- */
.arqam-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
	cursor: pointer;
	border: 2px solid transparent;
}
.arqam-btn:hover { transform: translateY(-2px); }
.arqam-btn--primary {
	background: var(--arqam-secondary);
	color: #3a2230;
	box-shadow: 0 6px 18px rgba(252, 210, 38, .4);
}
.arqam-btn--secondary {
	background: var(--arqam-primary);
	color: #fff;
}
.arqam-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .6);
}
.arqam-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* =========================================================================
   (1) البانر الترحيبي Hero
   ========================================================================= */
.arqam-hero {
	max-width: none !important;        /* عرض كامل */
	padding: 0 !important;
	background: linear-gradient(135deg, var(--arqam-primary) 0%, #3a1639 100%);
	color: #fff;
	overflow: hidden;
}
.arqam-hero__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 56px 16px;
	display: flex;
	align-items: center;
	gap: 30px;
}
.arqam-hero__text { flex: 1 1 60%; }
.arqam-hero__badge {
	display: inline-block;
	background: rgba(252, 210, 38, .18);
	color: var(--arqam-secondary);
	font-weight: 700;
	font-size: 13.5px;
	padding: 7px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.arqam-hero__title {
	font-size: 42px;
	line-height: 1.2;
	font-weight: 800;
	margin: 0 0 14px;
	color: #fff;
}
.arqam-hero__subtitle {
	font-size: 17px;
	line-height: 1.7;
	opacity: .9;
	margin: 0 0 26px;
	max-width: 520px;
}
.arqam-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* العنصر الزخرفي على اليسار */
.arqam-hero__art {
	flex: 1 1 40%;
	display: flex;
	justify-content: center;
}
.arqam-hero__circle {
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, var(--arqam-secondary), #e0b800);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 92px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

/* =========================================================================
   (1-ب) سلايدر البانر الرئيسي (الصور المتبدّلة)
   ========================================================================= */
.arqam-hero-slider {
	position: relative;
	width: 100vw;                          /* عرض كامل للشاشة (full-width) */
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
	margin-bottom: 18px !important;
	padding: 0 !important;
	overflow: hidden;
}
.arqam-slider__track {
	position: relative;
	width: 100%;
	height: 420px;              /* ارتفاع ثابت معقول للبانر (عدّله لو بدك) */
	border-radius: 0;           /* بدون زوايا مدوّرة في وضع العرض الكامل */
	overflow: hidden;
	background: #f4eef5;
}
@media (max-width: 991px) {
	.arqam-slider__track { height: 300px; }
}
@media (max-width: 600px) {
	.arqam-slider__track { height: 190px; }
}
/* كل شريحة تملأ المساحة وتتلاشى عند التبديل */
.arqam-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .6s ease;
	display: block;
}
.arqam-slide.is-active {
	opacity: 1;
	z-index: 1;
}
.arqam-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;   /* تملأ الإطار دون تشويه */
	display: block;
}

/* أسهم التنقّل */
.arqam-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: rgba(83, 34, 83, .55);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease;
}
.arqam-slider__nav:hover { background: var(--arqam-primary); }
/* في RTL: «السابق» يمين و«التالي» يسار */
.arqam-slider__prev { inset-inline-end: 24px; }
.arqam-slider__next { inset-inline-start: 24px; }

/* النقاط السفلية */
.arqam-slider__dots {
	position: absolute;
	bottom: 14px;
	inset-inline: 0;
	z-index: 3;
	display: flex;
	gap: 8px;
	justify-content: center;
}
.arqam-slider__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .65);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.arqam-slider__dot.is-active {
	background: var(--arqam-secondary);
	transform: scale(1.25);
}

@media (max-width: 600px) {
	.arqam-slider__nav { width: 38px; height: 38px; font-size: 22px; }
}

/* =========================================================================
   (2) شريط المزايا السريعة
   ========================================================================= */
.arqam-usp { padding-block: 26px !important; }
.arqam-usp__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

/* البانرات الدعائية بين الأقسام (مثل بانرات Royal Phone) */
.arqam-promo-banner {
	max-width: 1320px !important;
	margin: 8px auto 20px !important;
	padding: 0 16px !important;
}
.arqam-promo-banner__link {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	line-height: 0;
}
.arqam-promo-banner__link img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .4s ease;
}
a.arqam-promo-banner__link:hover img { transform: scale(1.02); }
.arqam-usp__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
}
.arqam-usp__item span { font-size: 28px; line-height: 1; }
.arqam-usp__item strong { display: block; color: var(--arqam-primary); font-size: 15px; }
.arqam-usp__item small { color: #777; font-size: 12.5px; }

/* =========================================================================
   عنوان الأقسام
   ========================================================================= */
.arqam-section { padding-block: 34px !important; }
.arqam-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	border-inline-start: 5px solid var(--arqam-secondary);
	padding-inline-start: 12px;
}
.arqam-section__title {
	font-size: 25px;
	font-weight: 800;
	color: var(--arqam-primary);
	margin: 0;
}
.arqam-section__more {
	color: var(--arqam-primary);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.arqam-section__more:hover { color: #000; }
.arqam-section--offers {
	background: #faf7fb;
	max-width: none !important;
	padding-inline: 0 !important;
}
.arqam-section--offers .arqam-section__head,
.arqam-section--offers .woocommerce,
.arqam-section--offers > * {
	max-width: 1200px;
	margin-inline: auto;
}

/* =========================================================================
   (3) شبكة الفئات
   ========================================================================= */
.arqam-cats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);   /* ٦ فئات بالصف مثل Royal Phone */
	gap: 18px;
}
/* الرابط: مجرّد حاوية بدون إطار — الاسم يظهر تحت المربّع */
.arqam-cat {
	display: block;
	text-align: center;
	text-decoration: none;
	background: transparent;
	border: none;
	padding: 0;
}
/* المربّع الأبيض اللي فيه الصورة فقط */
.arqam-cat__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;          /* مربّع */
	margin: 0 0 10px;
	padding: 16px;                /* مسافة داخلية حول الصورة */
	border-radius: 14px;
	border: 1px solid #ececec;
	background-color: #fff;        /* خلفية بيضاء للمربّع */
	background-size: contain;      /* الصورة كاملة بدون قص */
	background-repeat: no-repeat;
	background-position: center;
	background-origin: content-box; /* تترك الصورة منزاحة بمقدار الـ padding */
	transition: box-shadow .2s ease, transform .2s ease;
}
/* عند المرور: يرتفع المربّع وحده */
.arqam-cat:hover .arqam-cat__img {
	box-shadow: 0 10px 26px rgba(83, 34, 83, .14);
	transform: translateY(-4px);
}
/* اسم الفئة تحت المربّع */
.arqam-cat__name {
	display: block;
	font-weight: 700;
	color: var(--arqam-primary);
	font-size: 14.5px;
}

/* رسالة الأقسام الفارغة (قبل إضافة المنتجات) */
.arqam-empty {
	text-align: center;
	padding: 38px 20px;
	background: #faf7fb;
	border: 1px dashed #d9c9dc;
	border-radius: 14px;
	color: #7a6d7d;
	font-size: 15px;
}

/* =========================================================================
   (6) بانر الكوبون
   ========================================================================= */
.arqam-promo {
	max-width: none !important;
	padding: 0 !important;
	margin-block: 20px;
}
.arqam-promo__inner {
	max-width: 1200px;
	margin-inline: auto;
	background: linear-gradient(135deg, var(--arqam-secondary), #ffe066);
	border-radius: 18px;
	padding: 34px 24px;
	text-align: center;
	color: #3a2230;
}
.arqam-promo__title { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.arqam-promo__text { font-size: 16px; margin: 0 0 20px; }

/* =========================================================================
   تجاوب الموبايل
   ========================================================================= */
@media (max-width: 991px) {
	.arqam-usp__inner { grid-template-columns: repeat(2, 1fr); }
	.arqam-cats { grid-template-columns: repeat(4, 1fr); }
	.arqam-hero__title { font-size: 34px; }
}
@media (max-width: 600px) {
	.arqam-hero__inner { flex-direction: column; text-align: center; padding: 40px 16px; }
	.arqam-hero__subtitle { margin-inline: auto; }
	.arqam-hero__actions { justify-content: center; }
	.arqam-hero__circle { width: 160px; height: 160px; font-size: 64px; }
	.arqam-hero__title { font-size: 28px; }
	.arqam-usp__inner { grid-template-columns: 1fr; }
	.arqam-cats { grid-template-columns: repeat(3, 1fr); }
	.arqam-section__title { font-size: 21px; }
}
