﻿/* خلفية الصفحة */
body {
    background: linear-gradient(to right, #f5f5f5, #e8f4fb);
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
}

/* شبكة العرض */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* تصميم البطاقات */
.modern-grid-item {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    height: auto;
    margin: auto;
}

    .modern-grid-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    }

/* صورة المنتج */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
    }

/* اسم المنتج */
.product-name {
    margin: 10px 0 5px;
    font-size: 20px;
    font-weight: bold;
    color: #222;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
}

/* وصف المنتج */
.product-description {
    margin: 0;
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* السعر */
.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 16px;
    gap: 5px;
}

    .product-price .old-price {
        text-decoration: line-through;
        color: gray;
        font-size: 14px;
    }

    .product-price .new-price {
        color: red;
        font-weight: bold;
        font-size: 16px;
    }

    .product-price .arrow {
        color: green;
        font-size: 16px;
    }

/* تنسيق الفلتر */
.filter-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(to right, #f5f5f5, #e8f4fb);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.filter-select {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 14px;
    color: #555;
    transition: box-shadow 0.3s ease;
}

    .filter-select:focus {
        outline: none;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

    .filter-select:hover {
        border-color: #007bff;
    }

/* الباجينيشن */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

    .pagination-container button {
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: bold;
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .pagination-container button:hover {
            background-color: #0056b3;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        }

        .pagination-container button:disabled {
            background-color: #e0e0e0;
            color: #aaa;
            cursor: not-allowed;
        }

    .pagination-container .btn-primary {
        background-color: #28a745;
        color: #fff;
    }

        .pagination-container .btn-primary:hover {
            background-color: #218838;
        }

/* البريدكروم */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item {
    color: #007bff;
    font-weight: bold;
    text-transform: capitalize;
}

    .breadcrumb-item a {
        text-decoration: none;
        color: #007bff;
    }

    .breadcrumb-item.active {
        color: #6c757d;
        font-weight: normal;
    }

.breadcrumb-separator {
    color: #999;
    margin: 0 5px;
    font-weight: bold;
}

/* الروابط */
a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

/* ميديا كويري – الهواتف */
@media (max-width: 768px) {
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .modern-grid-item {
        width: 100%;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

    .product-price {
        flex-direction: column;
    }

        .product-price .arrow {
            display: none;
        }

    .filter-container {
        justify-content: center;
        text-align: center;
    }

    .filter-label {
        margin-bottom: 5px;
    }

    .filter-select {
        width: 100%;
    }
}

/* ميديا كويري – الشاشات الكبيرة */
@media (min-width: 1200px) {
    .modern-grid {
        gap: 30px;
    }

    .modern-grid-item {
        height: 420px;
    }

    .product-name {
        font-size: 1.5rem;
    }
}
