 /* تحسينات عامة للمسافات والتنسيق */
 body {
    background-color: #121212;
    color: #fff;
    padding-top: 100px;
    font-family: Tahoma, Arial, sans-serif;
}

.container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* تحسينات لعرض المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.card {
    background-color: #1f1f2c;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #2d2d3a;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #000;
    border-bottom: 1px solid #2d2d3a;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
    text-align: right;
}

.card-text {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 15px;
    text-align: right;
    line-height: 1.5;
}

.product-price {
    color: #ff4d4f;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: auto;
    text-align: right;
}

.product-seller {
    color: #aaa;
    font-size: 0.9rem;
    text-align: right;
    margin-bottom: 10px;
}

.btn-view {
    background-color: #49156b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    margin-top: 15px;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-view:hover {
    background-color: #7830a7;
    color: white;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .card-img-top {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}