

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.card {
    background-color: #0000000f;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

body {


    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient( 45deg, rgba(215, 181, 109, 0.75) 0%, rgba(215, 181, 109, 1) 100% 100%);
    /*    background: linear-gradient(135deg, #ffff00 0%, #555500 100%);*/
    padding: 0px;
}

h1 {
    font-size: 1.3em;
}
h2 {
    font-size: 1.2em;
}
h3 {
    font-size: 1.1em;
}
h4 {
    font-size: 1em;
}
h5 {
    font-size: 0.9em;
}
.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: right;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

    .page-header h1 {
        font-size: 1.3em;
        color: #333;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
    }

        .page-header h1:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }


.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    justify-content: center;
    margin: 0 auto; 
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.product-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.product-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-info {
    font-size: 0.85em;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .meta-info i {
        color: #764ba2;
        font-size: 1.1em;
    }

.admin-name {
    color: #667eea;
    font-weight: 500;
}

.date {
    color: #999;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .product-card {
        max-width: 100%;
    }
}

/* أنيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* مؤشر التحميل */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 50px;
}

    .loading-spinner.active {
        display: block;
    }

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* زر إضافة منتج جديد */
.add-product-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

    .add-product-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }

/* رسالة عدم وجود منتجات */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    color: #666;
}

    .no-products i {
        font-size: 4em;
        color: #667eea;
        margin-bottom: 20px;
        opacity: 0.5;
    }

