/* Mobile Enhanced Version - تجريبي */
/* هذا الملف يحتوي على تحسينات إضافية للهاتف */

@media (max-width: 768px) {

    /* 1. تصغير الشعار والعلامة التجارية */
    .logo {
        width: 50px !important;
        height: 50px !important;
    }

    .brand-name {
        font-size: 1.2rem !important;
    }

    .brand-tagline {
        font-size: 0.75rem !important;
    }

    /* 2. إخفاء السلايدر لتوفير مساحة */
    .hero-slider {
        display: none !important;
    }

    /* 3. إخفاء البطاقات العائمة */
    .floating-card {
        display: none !important;
    }

    .hero-card {
        display: none !important;
    }

    /* 4. تقليل padding في Hero */
    .hero {
        padding: 20px 0 10px !important;
    }

    .site-header {
        padding-bottom: 20px !important;
    }

    .hero-text {
        margin-bottom: 20px;
    }

    /* 5. تصغير الشارات */
    .badge {
        flex: 1 1 30% !important;
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }

    .badge strong {
        font-size: 1rem !important;
        display: block;
        margin-bottom: 2px;
    }

    .badge span {
        font-size: 0.7rem !important;
    }

    /* 6. تحسين أحجام اللمس للأزرار */
    .btn {
        min-height: 44px !important;
        padding: 10px 16px !important;
    }

    .nav-actions .btn {
        min-height: 44px !important;
        padding: 10px 12px !important;
    }

    /* 7. تقليل المسافات العامة */
    .trust-badges {
        gap: 8px !important;
        margin-top: 15px !important;
    }

    .hero-buttons {
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    .hero-text h1 {
        margin-bottom: 12px !important;
        font-size: 1.8rem !important;
    }

    .hero-text p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    /* 8. تحسين قسم المنتجات - تمرير أفقي (التصميم الأصلي) */
    .section {
        padding: 30px 0 !important;
    }

    /* شبكة المنتجات - تمرير أفقي محسّن للأداء (التصميم الأصلي) */
    .product-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        padding: 10px 20px 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -20px;
        will-change: scroll-position;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .product-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* بطاقة المنتج - تصميم مدمج وجميل للموبايل (التصميم الأصلي) */
    .product-card {
        flex: 0 0 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        scroll-snap-align: center;
        padding: 0;
        border-radius: 16px;
        background: #000000;
        border: 2px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        gap: 0;
        transition: none;
        position: relative;
        z-index: 1;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform;
    }
    
    .product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent);
        pointer-events: none;
        z-index: 0;
    }
    
    /* إلغاء hover effects على الموبايل للأداء */
    .product-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* صورة المنتج - مصغرة للموبايل */
    .product-image {
        height: 130px !important;
        min-height: 130px !important;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* إزالة pseudo-element للأداء */
    .product-image::after {
        display: none;
    }

    /* محتوى البطاقة - مصغر */
    .product-card h3 {
        font-size: 1rem !important;
        margin: 0;
        padding: 12px 12px 0;
        line-height: 1.3;
        font-weight: 700;
        color: #fff;
        white-space: normal;
        text-align: center;
        letter-spacing: 0.3px;
    }

    .product-card .description {
        font-size: 0.78rem !important;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.65);
        padding: 6px 12px 0;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }
    
    /* تقييم المنتج - مصغر */
    .product-card [id*="-rating-container"] {
        padding: 0 12px;
        margin: 6px 0 !important;
    }

    /* السعر - مصغر وأنيق */
    .price-tag {
        padding: 8px 12px !important;
        font-size: 0.95rem !important;
        font-weight: 800;
        border-radius: 8px;
        margin: 8px 12px;
        background: rgba(255, 213, 111, 0.15);
        border: 1px solid rgba(255, 213, 111, 0.35);
        text-align: center;
        display: block;
        color: var(--accent);
    }

    /* المميزات - مدمجة */
    .product-features {
        display: block;
        padding: 0 12px;
        margin: 8px 0;
    }
    
    .product-features li {
        font-size: 0.72rem;
        padding: 3px 0;
        line-height: 1.3;
    }

    /* 9. جعل الأيقونات الاجتماعية العائمة أصغر */
    .floating-social {
        gap: 6px !important;
        bottom: 80px !important;
        /* Move up slightly to avoid footer */
        right: 15px !important;
    }

    .social-float {
        width: 45px !important;
        height: 45px !important;
    }

    /* 10. تحسين النافبار */
    .nav-bar {
        padding: 15px 0 !important;
        gap: 10px !important;
    }

    .mobile-reviews-btn {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }

    /* 11. جعل container أوسع قليلاً */
    .container {
        width: 96% !important;
        padding: 0 6px !important;
    }

    /* 12. Fix Scroll To Top button position */
    #scrollToTopBtn {
        bottom: 80px !important;
        left: 15px !important;
    }
}