/* 1. تنسيق الخلفية العامة باللون البنفسجي مع العلامة المائية */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    
    /* لون الخلفية البنفسجي الغامق (مثل الصورة التي أرفقتها) */
    background-color: #1a002e; 
    
    /* إعدادات العلامة المائية (شعارك) */
    background-image: url('https://i.ibb.co/JwmxZ99p/image.png'); /* استبدل logo.png برابط شعارك */
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* لجعل الشعار ثابتاً عند التمرير */
    background-size: 40%; /* يتحكم في حجم العلامة المائية */
    
    /* جعل الشعار شفافاً قليلاً (علامة مائية) */
    position: relative;
}

/* إضافة طبقة تظليل فوق الخلفية لزيادة الشفافية (اختياري) */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 0, 46, 0.85); /* يتحكم في درجة غمقان اللون البنفسجي */
    z-index: -1;
}

/* 2. تعديل حاوية المنتجات لتناسب الخلفية الجديدة */
.container h2 {
    color: white; /* تغيير لون العنوان للأبيض ليظهر فوق البنفسجي */
    margin-bottom: 30px;
}

/* 3. تعديل بطاقة المنتج لتكون بارزة */
.product-card {
    background: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شفافة شوي للمنتج */
    backdrop-filter: blur(5px); /* حركة زجاجية فخمة */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. القائمة العلوية (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5e17eb; /* لون بنفسجي مثل المتاجر الاحترافية */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #5e17eb;
}

/* 3. حاوية المنتجات (Grid System) */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* 4. تصميم بطاقة المنتج (مثل الصورة تماماً) */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #2c003e 0%, #6a0572 100%); /* خلفية متدرجة للصور */
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #222;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #5e17eb;
    margin-bottom: 20px;
}

/* 5. تصميم الزر */
.add-to-cart {
    width: 100%;
    background: transparent;
    border: 2px solid #5e17eb;
    color: #5e17eb;
    padding: 10px 0;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.add-to-cart:hover {
    background: #5e17eb;
    color: #fff;
}
/* تنسيق قسم الأيقونات في النافبار */
.nav-icons-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff33; /* حدود شفافة بسيطة */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1a002e;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.icon-btn:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

/* الدائرة الحمراء (التنبيه) */
.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3e3e;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a002e; /* عشان تبرز فوق الخلفية */
}

.wallet-stat {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
}

/* تنسيق السلة الجانبية */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -350px; /* مخفية يسار */
    width: 320px;
    height: 100%;
    background: #1a002e;
    border-right: 1px solid #7d2ae8;
    z-index: 9999;
    transition: 0.4s;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    left: 0; /* تظهر عند التفعيل */
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

/* تنسيق النافذة لتكون فوق كل شيء ومخفية في البداية */
.auth-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* خلفية سوداء شفافة */
    display: none; /* مخفية */
    justify-content: center;
    align-items: center;
    z-index: 99999; /* أعلى طبقة */
}

/* محتوى نافذة التسجيل */
.auth-content {
    background: #1a002e;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #7d2ae8;
    width: 350px;
    text-align: center;
    color: white;
    position: relative;
}

/* لجعل كلمة "سجل الآن" تبدو كزر قابل للضغط */
.switch-text {
    cursor: pointer;
    color: #7d2ae8;
    text-decoration: underline;
    margin-top: 15px;
}