/* إعدادات المتغيرات وتصفير الهوامش */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* 1. تنسيق الهيدر */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: var(--primary-color);
    color: white;
}
.search-bar input {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    width: 300px;
}

/* 2. تنسيق البانر الرئيسي */
.hero-section {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
}
.cta-btn {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: white;
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* 3. شبكة المنتجات (CSS Grid) */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 50px;
}
.product-card {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-image {
    height: 200px;
    background-color: #eee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 10px 0;
}
.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
}
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 4. تنسيق الفوتر */
.main-footer {
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    margin-top: 40px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}