/* Products Grid Styles */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #191925; /* خلفية موف خفيفة */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 20px; /* إضافة مسافة إضافية أسفل كل بطاقة */
}


/* Products Grid Styles */
.products-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px 15px; /* 30px مسافة عمودية - 15px مسافة أفقية */
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: rgba(0, 128, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0; /* إزالة الهامش السفلي الإضافي */
}

/* باقي الكود يبقى كما هو */


.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-title {
    font-weight: bold;
    margin: 10px 0 5px;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
}

.product-desc {
    color: #8b8fc3;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    flex-grow: 1;
}

.price-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.price-current {
    font-weight: bold;
    color: #82add3;
    font-size: 18px;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.discount {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff4757;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #282855;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.star-badge {
    position: absolute;
    top: 45px;
    right: 15px;
    background-color: #ffa502;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.add-to-cart-btn {
    background-color: #282855;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background-color: #3d3d8b;
}






/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid-container {
        grid-template-columns: 1fr;
    }
}