/* ==========================================================================
   كود "تويكس ستور" الموحد (الجمالية + التوزيع الصحيح للجوال)
   ========================================================================== */

/* --- 1. التصميم الزجاجي والجماليات (يعمل على الكل) --- */
.product-block.contain, .enhanced-product-card {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 106, 0, 0.6) !important; 
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.2) !important;
    border-radius: 20px !important;
    padding: 10px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-block__thumb, .thumb-wrapper {
    border-radius: 15px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
}

.s-button-element {
    background: linear-gradient(90deg, #ff6a00, #E0001a) !important;
    border-radius: 10px !important;
    color: #fff !important;
    height: 38px !important;
    animation: glowButton 2s infinite alternate !important;
    font-weight: 700 !important;
    border: none !important;
}

/* --- 2. معالجة الجوال (يفرض عمودين بدون تخريب التصميم) --- */
@media (max-width: 768px) {
    /* إجبار الشبكة على عمودين */
    .s-product-list, .product-list, .products-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important; /* مسافة بسيطة ومريحة */
        padding: 5px !important;
    }
    
    /* تثبيت البطاقة في الجوال */
    .product-block.contain, .enhanced-product-card {
        margin: 0 !important;
        margin-bottom: 5px !important; /* مسافة بسيطة بين الصفوف بدلاً من التداخل */
        padding: 6px !important;
    }
    
    /* تصغير الخط في الجوال ليكون متناسقاً */
    .product-block__title {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
}

/* --- 3. تأثيرات الحركة --- */
@keyframes glowButton {
    from { box-shadow: 0 0 5px #ff6a00; }
    to { box-shadow: 0 0 15px #ff6a00; }
}

.product-block.contain:hover {
    border-color: rgba(255, 106, 0, 0.9) !important;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.4) !important;
}