/* ========== تحسين تنسيق المنتجات (رائد / كليك) ========== */
/* تنسيق شبكة المنتجات لجعلها أكثر أناقة */
.products-grid, 
.product-list, 
[class*="product"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    direction: rtl; /* محاذاة عربية */
}

/* تنسيق البطاقة الخاصة بالمنتج */
.product-item, 
.card-product, 
[class*="product-card"] {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* صورة المنتج */
.product-image img, 
.card-product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-item:hover .product-image img {
    transform: scale(1.03);
}

/* عنوان المنتج */
.product-title, 
.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 12px 15px 5px;
    text-decoration: none;
    display: block;
}

/* السعر */
.product-price, 
.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c7da0;
    margin: 5px 15px;
}

/* زر الإضافة إلى السلة */
.add-to-cart, 
button[type="submit"], 
.btn-buy {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    margin: 10px 15px 20px;
    width: calc(100% - 30px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #1f5e7a;
}

/* تنسيق خاص لـ "تنسيق رائد" - يمكنك تخصيص الكلاس لو تعرفه */
[class*="raed"], 
[class*="رائد"] {
    /* مثال: إضافة خلفية مميزة */
    border-right: 4px solid #f4a261;
}

/* تنسيق خاص لـ "تنسيق كليك" */
[class*="click"], 
[class*="كليك"] {
    border-left: 4px solid #e76f51;
}

/* تحسين العرض على الجوال */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .product-title {
        font-size: 0.9rem;
    }
    .product-price {
        font-size: 1rem;
    }
}