/* app.css */

/* الاستيراد من المكتبات الخارجية مثل Bootstrap و Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css');

/* إعدادات عامة للموقع */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* الهيدر */
header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

header .cart-icon {
    float: right;
    font-size: 24px;
    color: white;
}

header .cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 12px;
}

header nav {
    margin-top: 10px;
    text-align: center;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    display: inline-block;
    margin-right: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #28a745;
}

/* الفوتر */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* عرض المنتجات */
.product-card {
    width: 100%;
    max-width: 300px;
    margin: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.product-card .product-info {
    padding: 15px;
}

.product-card .product-info h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card .product-info p {
    font-size: 16px;
    color: #555;
}

.product-card .btn-add-cart {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card .btn-add-cart:hover {
    background-color: #218838;
}

/* صفحة سلة المشتريات */
.cart-page {
    padding: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: white;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.cart-item .product-info {
    flex: 1;
    margin-left: 15px;
}

.cart-item .product-info h6 {
    margin: 0;
    font-size: 18px;
}

.cart-item .product-info p {
    margin: 5px 0;
    font-size: 14px;
}

.cart-item .btn-remove {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.cart-item .btn-remove:hover {
    background-color: #c82333;
}

/* صفحة الدفع */
.checkout-page {
    padding: 20px;
}

.checkout-form input, .checkout-form select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.checkout-form button {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

.checkout-form button:hover {
    background-color: #218838;
}

/* استجابة للجهاز المحمول */
@media (max-width: 768px) {
    header nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .product-card {
        max-width: 100%;
    }

    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



/* تخصيصات إضافية للموقع */

/* الخلفية العامة للموقع */
body {
    background-color: #f1f1f1;
}

/* تخصيص للعناوين */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: bold;
}

/* تخصيص القوائم */
ul, ol {
    padding-left: 20px;
}

ul li {
    font-size: 16px;
    line-height: 1.5;
}

/* تخصيص زر الإضافة إلى العربة */
.btn-add-cart {
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add-cart:hover {
    background-color: #0056b3;
}

/* تخصيص عربة المشتريات */
.cart-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item .product-info {
    flex: 1;
    padding: 10px;
}

.cart-item .product-info h6 {
    font-size: 18px;
    font-weight: bold;
}

.cart-item .product-info p {
    font-size: 14px;
    color: #777;
}

.cart-item .btn-remove {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.cart-item .btn-remove:hover {
    background-color: #c82333;
}

/* تخصيص الأزرار */
button {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
}

button:hover {
    opacity: 0.9;
}

/* تخصيص صفحة المنتجات */
.product-card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-card .product-info {
    padding: 15px;
}

.product-card .product-info h5 {
    font-size: 18px;
}

.product-card .product-info p {
    font-size: 16px;
    color: #555;
}

.product-card .btn-add-cart {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

.product-card .btn-add-cart:hover {
    background-color: #218838;
}

/* تخصيص الفوتر */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
