/* ================================================= */
/* CENTRAL TECH - الستايل المكمل (The Companion CSS) */
/* ================================================= */

/* ------------------------------------------------ */
/* 1. تهيئة العناصر للتفاعل (شركاء الجافا سكريبت) */
/* ------------------------------------------------ */
/* جعل المؤشر "يد" ليوحي بأن العنصر قابل للنقر قبل حتى أن يعمل السكربت */
.s-block--features__item, 
.store-features__item,
.swiper-slide,
.s-slider-block__title {
    cursor: pointer !important;
}

/* ------------------------------------------------ */
/* 2. تصميم المنتجات (الحل الجذري: عمود واحد فخم) */
/* ------------------------------------------------ */
@media (max-width: 767px) {
    /* إلغاء التزاحم وجعل القائمة بلوك واحد */
    .s-products-list, 
    .product-grid, 
    .salla-products-list {
        display: block !important;
        padding: 0 15px !important;
    }

    /* تكبير البطاقة لتأخذ عرض الشاشة (وضوح تام) */
    .s-product-card, 
    .product-item {
        display: block !important;
        width: 100% !important;
        margin-bottom: 25px !important; /* مسافة فاصلة مريحة */
        border: 1px solid #f5f5f5 !important;
        padding: 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
        border-radius: 8px !important;
    }

    /* تكبير الصورة */
    .s-product-card-image img, 
    .product-img img {
        height: auto !important;
        max-height: 280px !important; /* ارتفاع ممتاز للجوال */
        width: 100% !important;
        object-fit: contain !important;
        margin-bottom: 15px !important;
    }
}

/* ------------------------------------------------ */
/* 3. الهوية البصرية (التوازن الذهبي) */
/* ------------------------------------------------ */
/* عناوين المنتجات: ذهبي (حسب طلبك) */
.s-product-card-title, 
.product-title,
a.product-name {
    color: #D4AF37 !important;
    font-size: 1.1rem !important; /* خط كبير */
    font-weight: bold !important;
    text-align: center !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
}

/* الأسعار: بنفسجي غامق (ليكون السعر واضحاً جداً) */
.s-product-price {
    color: #3A2566 !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    display: block !important;
}

/* الأزرار: خلفية ذهبية ونص بنفسجي */
.s-add-to-cart-btn, 
.buynow {
    background-color: #D4AF37 !important;
    color: #3A2566 !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    padding: 12px !important;
    width: 100% !important;
    margin-top: 10px !important;
}

/* ------------------------------------------------ */
/* 4. تحسينات الواجهة (Sticky & Positioning) */
/* ------------------------------------------------ */
/* تثبيت زر الشراء أسفل شاشة الجوال (لزيادة التحويل) */
@media (max-width: 767px) {
    .product-actions, 
    .s-product-page-actions {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 9999 !important; /* فوق كل شيء */
        background: #fff !important;
        padding: 10px 20px !important;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1) !important;
        border-top: 3px solid #D4AF37 !important;
    }
}

/* رفع الواتساب للأعلى قليلاً */
.whatsapp-chat, .wa-float, .whatsapp-btn {
    bottom: 95px !important; /* فوق زر الشراء المثبت */
}