/* ==========================================================================
   1. الإعدادات الأساسية لجسم الموقع (Body)
   ========================================================================== */
   body {
    font-family: 'Inter', sans-serif;
    background-color: #faf9f6; /* لون خلفية هادئ ومناسب للمتاجر الفاخرة */
    color: #1a1a1a;          /* لون النص الأساسي (داكن وواضح) */
    overflow-x: hidden;      /* منع التمرير الأفقي غير المبرر */
}

/* تخصيص العناوين والخطوط الفاخرة */
h1, h2, h3, .luxury-font {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   2. شريط التنقل العلوي (Navbar - Quiet Luxury)
   ========================================================================== */
.luxury-nav {
    background-color: rgba(255, 255, 255, 0.96); /* خلفية شفافة قليلاً وأنيقة */
    backdrop-filter: blur(12px);                 /* تأثير الضبابية خلف الشريط */
    border-bottom: 1px solid #eaeaea;            /* خط فاصل خفيف جداً */
    transition: all 0.3s ease;
}

/* تنسيق شعار المتجر */
.luxury-nav .navbar-brand {
    letter-spacing: 2px;
    color: #111 !important;
}

/* تنسيق الروابط داخل القائمة */
.luxury-nav .nav-link {
    color: #1a1a1a !important;
    letter-spacing: 1.1px;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    font-weight: 500 !important;
    transition: color 0.3s;
    padding: 0.5rem 0.5rem !important;
    white-space: nowrap;
}

.luxury-nav .nav-link:hover {
    color: #777 !important; /* لون رمادي خفيف عند تمرير الفأرة */
}

/* ==========================================================================
   3. زر تغيير اللغة
   ========================================================================== */
.lang-text-link {
    color: #111;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.lang-text-link:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* ==========================================================================
   4. القوائم المنسدلة (Dropdown Menus)
   ========================================================================== */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    padding: 10px 0;
}

/* دعم اتجاه النصوص حسب لغة الموقع (تلقائياً عبر اتجاه الصفحة dir) */
html[dir="rtl"] .dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

html[dir="ltr"] .dropdown-menu {
    text-align: left;
    left: 0;
    right: auto;
}

.dropdown-item {
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

html[dir="rtl"] .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
    padding-right: 25px;
}

html[dir="ltr"] .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
    padding-left: 25px;
}

/* ==========================================================================
   5. شاشات الجوال والتجاوب (Responsive Design)
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .dropdown-menu {
        background-color: #f8f9fa !important;
        box-shadow: none !important;
        margin-top: 5px !important;
        margin-bottom: 10px;
        float: none !important;
        position: static !important;
    }

    html[dir="rtl"] .dropdown-menu {
        border-right: 2px solid #111 !important;
        border-left: none !important;
        padding-right: 10px;
    }

    html[dir="ltr"] .dropdown-menu {
        border-left: 2px solid #111 !important;
        border-right: none !important;
        padding-left: 10px;
    }

    .dropdown-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
    }
}

/* ==========================================================================
   6. الأيقونات والعدادات (Badges)
   ========================================================================== */
.icon-badge-btn {
    position: relative;
    color: #111;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 4px 6px;
    transition: color 0.3s ease;
}

.icon-badge-btn:hover {
    color: #555;
}

.luxury-badge {
    position: absolute;
    top: -2px;
    background-color: #111;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: 500;
}

html[dir="rtl"] .luxury-badge {
    left: -2px;
    right: auto;
}

html[dir="ltr"] .luxury-badge {
    right: -2px;
    left: auto;
}

/* ==========================================================================
   7. أزرار تسجيل الدخول والحساب
   ========================================================================== */
.auth-btn-outline {
    border: 1px solid #111;
    color: #111;
    border-radius: 0;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.auth-btn-outline:hover {
    background-color: #111;
    color: #fff;
}

.auth-btn-solid {
    background-color: #111;
    color: #fff;
    border-radius: 0;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.auth-btn-solid:hover {
    background-color: #333;
    color: #fff;
}