/*
** ==========================================================
** 1. أكواد التعديلات السابقة
** ==========================================================
*/

/* سلايدر صور */
@media (max-width: 767px) {
    .s-block.home-slider,
    .s-block.home-slider .swiper-lazy-wrap {
        height: calc(100vw * 9 / 16) !important; /* النسبة 16:9 */
        min-height: calc(100vw * 9 / 16) !important;
    }

    .s-block.home-slider .swiper-lazy {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }
}
@media (min-width: 768px) { 
    .swiper-lazy-wrap {
        height: 100vh !important; 
        min-height: 100vh !important;
    }
}
/* تنسيق نصوص السلايدر */
.advanced-slider .swiper .swiper-slide-active h2{
    font-weight: 200 !important;
    font-size: 18px !important;
}
.advanced-slider .swiper .swiper-slide-active p{
    font-weight: 500 !important;
    font-size: 25px !important;
}
/* حجم اللوجو */
.navbar-brand img {
    max-height: 60px;
    max-width: 220px;
}
/* تغيير لون خلفية الواتساب */
.wa-selia.right{background-color:#bf9a95;}
.sicon-whatsapp2:before {color:#efe7e0}
/* اخفاء ايقونة العرض السريع و المفضلة في الديسكتوب */
.product-card__buttons{display:none;}

/* >>>>>> 📢 التعديل الجديد: تحسين تباعد الروابط المربعة على الجوال 📢 <<<<<< */
@media (max-width: 768px) {
	#square-links-slider-1 .swiper {
 		width: 95%; /* تضييق العرض قليلاً لترك مسافة حول السلايدر */
 		padding: 0; 
 		margin: 0 auto; /* توسيط السلايدر في منتصف الشاشة */
	}
	#square-links-slider-1 .swiper-slide {
 		width: 30% !important; /* تقليل العرض من 33% لترك مسافة بين العناصر */
        margin: 0 5px; /* إضافة مسافة جانبية 5px لكل عنصر */
	}
}
#square-links-slider-3 .swiper-wrapper{
	display: flex;
	justify-content: center;
}
#square-links-slider-3 .swiper-wrapper .swiper-slide h3 {
 	margin-top: 5px; /* رفع الـ Margin لترك مسافة بين الأيقونة واسم الرابط (كان -10px) */
}
/* >>>>>> 📢 نهاية التعديل الجديد 📢 <<<<<< */

/* تنسيق الأسئلة الشائعة (FAQ) */
.single-faq{border: none;}
.faq-btn p { color:white;}
.s-block--faq .bg-store-bg-secondary {
    background-color: #000000;
}
.s-block--faq .faq-content .text-store-text-secondary {
    color: #ffffff !important; 
}
.single-faq .faq-btn p,
.single-faq .faq-btn span {
    color: #1A1A1A !important;
}
.single-faq.active .faq-btn p,
.single-faq.open .faq-btn p,
.single-faq.active .faq-btn span,
.single-faq.open .faq-btn span {
    color: #1A1A1A !important;
}
.single-faq .faq-content p,
.single-faq.active .faq-content p,
.single-faq.open .faq-content p {
    color: #3D3D3D !important;
}
.single-faq,
.single-faq.active,
.single-faq.open {
    background-color: #FFF2DD !important;
}
.z-\[1\] {
    text-align: center;
}
/* تنسيق القائمة الرئيسية (Header) */
.main-menu li a {
    transition: all 0.3s ease;
}
.main-menu li a:hover {
    color: #d97706;
    transform: translateY(-3px);
}
.product-card__enhanced-mini-cart button.s-button-element{
    border: revert-layer !important;
    border-radius: 5px !important;
}
@media (min-width: 1200px) {
    .navbar-brand img {
        margin-left: 220px !important;
    }
}
.w-1\/3 {
    width: auto !important;
}
/* توسيط قسم ما يميزنا */
@media (min-width: 1200px) {
    #about-10 .md\:w-7\/12 {
        width: 200%;
        margin-right: 18%;
        text-align: center;
    }
}
/* لون واتساب نهائي */
.wa-selia.right {
    background-color: #25D366 !important;
}
/* البانر المتحرك (شريط الخصم) */
.salla-advertisement {
    overflow: hidden;
    direction: ltr;
}
.salla-advertisement h2 {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-rtl 800s linear infinite;
}
@keyframes scroll-rtl {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
/* أعتمادات دش (Marquee) */
@media (min-width: 768px) {
    .s-block--animated-brands--marquee {
        direction: rtl;
    }
}
.s-block--animated-brands--marquee:before,
.s-block--animated-brands--marquee:after {
    content:'';
    position:absolute;
    top:0;
    width:80px;
    height:100%;
    z-index:2;
}
.s-block--animated-brands--marquee:before {
    left:0;
    background: linear-gradient(to right, #FFF9F2, transparent);
}
.s-block--animated-brands--marquee:after {
    right:0;
    background: linear-gradient(to left, #FFF9F2, transparent);
}
/* تنسيق زر البانر المتحرك وموضعه */
.advanced-slider__caption__inner__content__button {
    position: relative !important;
    z-index: 20 !important;
    background-color: #A77B46 !important; 
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 18px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    margin-top: 20px !important; 
    pointer-events: auto !important; /* التأكيد على قابلية الضغط */
}
/* تحرير الحاوية الرئيسية للمحتوى لتمكين الحركة المطلقة */
.advanced-slider__caption__inner--center {
    align-items: initial !important; 
    justify-content: initial !important; 
    display: block !important;
}
/* التحكم في موضع حاوية الزر والنصوص بشكل مطلق (مهم جداً!) */
.advanced-slider__caption__inner__content {
    position: absolute !important;
    left: 50% !important; 
    transform: translateX(-50%) !important; 
    top: 50% !important; 
    margin-top: -80px !important; 
    text-align: center !important;
    width: 100% !important;
}
/* تعديل حجم الزر */
.advanced-slider__caption__inner__content__button {
    padding: 8px 20px !important; 
    font-size: 16px !important; 
    border-radius: 12px !important; 
    margin-top: 0 !important; 
}
/* تعديلات الجوال للبانر المتحرك */
@media (max-width: 768px) {
    .advanced-slider__caption__inner__content {
        margin-top: -110px !important; 
    }
}
/* إلغاء أي تأثير "focus" أو "hover" غير مرغوب فيه على الزر */
.advanced-slider__caption__inner__content__button:focus-visible,
.advanced-slider__caption__inner__content__button:hover {
    outline: 0 !important;
    box-shadow: 0 0 0 transparent !important;
    border-color: transparent !important;
    border: 0 !important;
    background-color: #A77B46 !important;
    color: #ffffff !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
}
/* إلغاء الضغط على اللينك اللي يغطي البانر كامل */
.advanced-slider__caption > a.absolute {
    pointer-events: none !important;
    z-index: 1 !important; /* التأكيد أنه أسفل الزر */
}
.product-card__content{
    height: 200px !important;
}
.product-card__title {
    height: 50px;
}
/*
** ==========================================================
** 2. أكواد التنظيم البصري والراحة
** ==========================================================
*/

/* 2.1. التباعد الرأسي للأقسام (20px) */
.s-block {
    padding-top: 20px !important; 
    padding-bottom: 20px !important; 
    margin: 0 auto !important; 
}
.s-block--animated-brands, .s-block--sqare-links {
    padding-top: 15px !important; 
    padding-bottom: 15px !important;
}

/* 2.2. تنسيق عناوين الأقسام الرئيسية وتوسيطها */
.s-title {
    font-size: 28px !important; 
    font-weight: 800 !important;
    color: #333333;
    
    /* توسيط النص */
    text-align: center !important; 
    /* توسيط الخط الفاصل */
    margin: 0 auto 30px auto !important; 
    
    /* إضافة الخط الذهبي الفاصل */
    border-bottom: 3px solid #A77B46; 
    padding-bottom: 10px;
    display: inline-block;
}
/* التأكيد على توسيط العناوين الفرعية أيضاً */
.s-subtitle {
    text-align: center !important;
    margin: 0 auto 15px auto !important;
}

/* 2.3. رفع جمالية بطاقات المنتجات */
.product-card {
    border-radius: 15px !important;
    border: 1px solid #eaeaea; /* إطار بسيط جداً */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04) !important; 
    transition: all 0.2s ease-in-out !important;
}
.product-card:hover {
    transform: translateY(-3px) !important; 
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important; 
}
.product-card__img-wrap img {
    border-radius: 15px 15px 0 0 !important;
    object-fit: cover !important;
    min-height: 220px;
}
.product-card__content {
    padding: 15px !important;
}

/* 2.4. الإصلاح النهائي لمشكلة آراء العملاء */
.s-block--customers-reviews .s-block__content-wrap,
.s-block--customers-reviews .s-block__inner,
.s-block--customers-reviews .swiper-wrapper {
    max-width: initial !important; 
    width: initial !important; 
    margin: initial !important; 
    padding: initial !important;
    text-align: initial !important;
    float: initial !important;
}
.s-block--customers-reviews .s-title {
    margin: 0 auto 30px auto !important; 
    text-align: center !important; 
    display: inline-block; 
}

/* 2.5. تنسيق قسم المميزات (Enhanced Features) */
.s-block--enhanced-features__item {
    text-align: center;
    padding: 20px 10px; 
    border-radius: 15px; 
    transition: all 0.3s ease;
    border: 1px solid #eaeaea; /* إطار بسيط جداً */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04); 
    background-color: #fcfcfc; 
}
/* تحديد العرض على الجوال لمنع الضغط (بدلاً من 1/3) */
@media (max-width: 768px) {
    .s-block--enhanced-features .lg\:w-1\/3 {
        width: 50% !important; /* كل ميزة تأخذ نصف العرض لتبدو أوسع وأكثر تنظيماً */
        flex-shrink: 0;
    }
    .s-block--enhanced-features__item {
        margin: 5px; /* إضافة مسافة بين المربعات في الجوال */
        padding: 15px 5px; /* تقليل الـ padding الأفقي قليلاً للحفاظ على مساحة الكلمات */
    }
}
.s-block--enhanced-features__item:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.s-block--enhanced-features__item .feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px; 
    height: 45px; 
    margin-bottom: 8px; 
    border-radius: 50%; 
    background-color: #fff2dd; 
    color: #A77B46; 
    font-size: 20px; 
    transition: all 0.3s ease;
}
.s-block--enhanced-features__item:hover .feature-icon {
    transform: scale(1.1);
    background-color: #A77B46;
    color: #ffffff;
}
.s-block--enhanced-features__item h2 {
    font-size: 16px; 
    font-weight: 700;
    color: #333333;
    margin-bottom: 5px; 
}
.s-block--enhanced-features__item p {
    font-size: 14px; 
    color: #666666;
    margin-bottom: 0;
}

/* التعديل الجديد: تكبير الأيقونات والعناوين على الديسكتوب */
@media (min-width: 992px) { 
    .s-block--enhanced-features__item .feature-icon {
        width: 55px; 
        height: 55px;
        font-size: 24px; 
    }
    .s-block--enhanced-features__item h2 {
        font-size: 18px; 
    }
}


/*
** ==========================================================
** 3. التعديل الخاص بالروتين الكامل للتفتيح (المجموعة الخاصة)
** ==========================================================
*/
.special-product--2 .flex.justify-center > div {
    /* جعل الحاوية الرئيسية للمنتج أوسع في وضع الديسكتوب */
    width: 65% !important;
    max-width: 800px;
}
/* تنسيق الصورة لجعلها تملأ الحاوية بشكل كامل وتظهر كـ "بانر" */
.special-product--2 .product-card__image {
    width: 100% !important; 
    max-width: 100% !important;
    border-radius: 15px; /* تطبيق الحواف الدائرية */
}

/* تنسيق المنتج نفسه ليتوسع بشكل مناسب */
.special-product--2 .product-card {
    display: flex !important;
    flex-direction: row !important; /* وضع الصورة والنص جنباً إلى جنب */
    align-items: center;
    padding: 15px;
    background-color: #ffffff; /* خلفية بيضاء لبروز الظل */
    border-radius: 15px !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
}
/* تعديل حجم الصورة داخل المنتج لتاخذ مساحة مناسبة */
.special-product--2 .product-card__image {
    flex-basis: 40%; /* الصورة تأخذ 40% من العرض */
    margin-left: 20px;
}
/* تعديل محتوى المنتج (العنوان والسعر) ليأخذ باقي المساحة */
.special-product--2 .product-card__content {
    flex-basis: 60%; /* المحتوى يأخذ 60% من العرض */
    text-align: right; /* محاذاة النص لليمين */
}

/* تعديل الجوال (لتبقى عمودية لكن بعرض أكبر) */
@media (max-width: 768px) {
    .special-product--2 .flex.justify-center > div {
        width: 95% !important; /* عرض 95% على الجوال لعدم التضييق */
        margin: 0 auto;
    }
    .special-product--2 .product-card {
        flex-direction: column !important; /* يعود عمودياً */
        text-align: center;
    }
    .special-product--2 .product-card__image {
        flex-basis: auto;
        margin: 0 0 10px 0; /* إضافة مسافة أسفل الصورة */
    }
    .special-product--2 .product-card__content {
        flex-basis: auto;
        text-align: center;
    }
}