.category_products_grid_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
    border-radius: 30px;
    position: relative;
    background: transparent;
    direction: rtl; /* لدعم اللغة العربية */
}

.category_products_grid_card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: floatAnimation 3s ease-in-out infinite;
}

.category_products_grid_card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 45px rgba(0,0,0,0.2);
    border-color: #ffd700;
    animation: glowPulse 1.5s infinite;
}

/* تنسيق عنوان الفئة (Category) */
.category_products_grid_card .category-title {
    color: #ff6b6b;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

/* تنسيق شبكة المنتجات */
.category_products_grid_card .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    width: 100%;
}

/* تنسيق اسم المنتج (حقيبة نسائية) */
.category_products_grid_card .product-name {
    color: #2c3e50;
    font-size: 1em;
    font-weight: 600;
    padding: 8px 5px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category_products_grid_card:hover .product-name {
    background: linear-gradient(145deg, #fff9e6, #fff0cc);
    border-color: #ffd700;
    color: #e67e22;
    transform: scale(1.02);
}

/* تنسيق وصف المنتج */
.category_products_grid_card .product-description {
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    width: 100%;
    text-align: center;
    border: 1px dashed #cbd5e0;
}

/* تنسيق الرقم (2) */
.category_products_grid_card .product-number {
    display: inline-block;
    background: #ffd700;
    color: #2c3e50;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    margin: 10px 0;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
    border: 2px solid #fff;
}

/* تنسيق حاوية الأسعار */
.category_products_grid_card .prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    width: 100%;
}

/* تنسيق السعر المشطوب */
.category_products_grid_card .old-price {
    color: #e74c3c;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: line-through;
    opacity: 0.7;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.5);
    padding: 5px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* تنسيق السعر الفعلي */
.category_products_grid_card .current-price {
    color: #27ae60;
    font-size: 1.3em;
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    padding: 5px 10px;
    white-space: nowrap;
}

/* إضافة رمز العملة */
.category_products_grid_card .old-price::before,
.category_products_grid_card .current-price::before {
    content: "₪";
    margin-left: 3px;
    font-size: 0.9em;
}

.category_products_grid_card .current-price::before {
    -webkit-text-fill-color: initial;
    color: #27ae60;
}

/* تنسيق الجدول إذا كان موجوداً */
.category_products_grid_card table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category_products_grid_card table td {
    padding: 10px 5px;
    text-align: center;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
    font-size: 0.9em;
}

.category_products_grid_card table tr:last-child td {
    border-bottom: none;
}

.category_products_grid_card table td:first-child {
    font-weight: bold;
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.5);
}

.category_products_grid_card table td:last-child {
    color: #27ae60;
    font-weight: 600;
}

.category_products_grid_card table tr:hover td {
    background: rgba(255, 215, 0, 0.1);
}

/* تأثيرات حركية */
@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(255,215,0,0.3), 0 15px 30px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 0 30px rgba(255,215,0,0.7), 0 20px 40px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 0 5px rgba(255,215,0,0.3), 0 15px 30px rgba(0,0,0,0.1); }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* تخصيص البطاقات بتأخير مختلف */
.category_products_grid_card:nth-child(1) { animation-delay: 0s; }
.category_products_grid_card:nth-child(2) { animation-delay: 0.2s; }
.category_products_grid_card:nth-child(3) { animation-delay: 0.4s; }
.category_products_grid_card:nth-child(4) { animation-delay: 0.6s; }
.category_products_grid_card:nth-child(5) { animation-delay: 0.8s; }
.category_products_grid_card:nth-child(6) { animation-delay: 1s; }

/* ألوان مختلفة لخلفيات الفئات */
.category_products_grid_card:nth-child(odd) .category-title {
    background: linear-gradient(145deg, #fff0f0, #ffe0e0);
}

.category_products_grid_card:nth-child(even) .category-title {
    background: linear-gradient(145deg, #f0fff0, #e0ffe0);
}

/* تنسيق خاص للشاشات الصغيرة */
@media (max-width: 768px) {
    .category_products_grid_container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .category_products_grid_card {
        padding: 20px 15px;
    }
    
    .category_products_grid_card .category-title {
        font-size: 1.2em;
        padding: 10px 20px;
    }
    
    .category_products_grid_card .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category_products_grid_card .prices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category_products_grid_card .product-name {
        font-size: 0.9em;
        white-space: normal;
    }
    
    .category_products_grid_card table td {
        padding: 8px 3px;
        font-size: 0.8em;
    }
}

/* تنسيق إضافي للتمييز */
.category_products_grid_card::after {
    content: "🛍️";
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 1.5em;
    opacity: 0.1;
    transform: rotate(-15deg);
    transition: all 0.4s ease;
    z-index: 1;
}

.category_products_grid_card:hover::after {
    opacity: 0.3;
    transform: rotate(0deg) scale(1.2);
}

/* إضافة sparkle للأسعار عند التمرير */
.category_products_grid_card .current-price:hover {
    animation: sparkle 0.5s ease infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(1.05); }
}