/* Project: King Farouk Restaurant - The Royal Masterpiece
    Developer: Al-Bashmuhandis Taha
    Date: 2026
    Style: High-End UI/UX (Glassmorphism & Royal Theme)
    Primary Colors: Navy (#000814), Royal Red (#E63946), White (#FFFFFF)
*/

/* --- [1. CSS VARIABLES - لوحة الألوان والأساسيات] --- */
:root {
    /* Colors */
    --navy-deep: #000814;
    --navy-bg: #001219;
    --primary-red: #e63946;
    --red-glow: #ff4d6d;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-text: #94a3b8;
    
    /* Transparent & Glass */
    --glass-navy: rgba(0, 8, 20, 0.85);
    --glass-white: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Effects */
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);
    --red-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Layout */
    --nav-height: 85px;
}

/* --- [2. RESET & GLOBAL STYLES] --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for REM */
}

body {
    background-color: var(--navy-bg);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--navy-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-glow);
}

/* --- [3. BACKGROUND ENGINE - محرك الخلفية] --- */
.bg-fixed-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -3;
    background-size: cover;
    background-position: center;
    filter: brightness(0.28) contrast(1.1);
    transition: background-image 2s ease-in-out;
    transform: scale(1.02); /* منع حواف بيضاء */
}
/* 1. تحسين إضاءة الخلفية */
.bg-fixed-layer {
    /* قمت برفع الـ brightness من 0.28 إلى 0.5 ليكون فاتحاً وأوضح */
    filter: brightness(0.5) contrast(1.1) saturate(1.2); 
    transition: opacity 1s ease-in-out; /* لتأثير الـ Crossfade */
}

.vignette-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--navy-deep) 95%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* توليد تأثير الشوشرة برمجياً بدون صور خارجية */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05; /* تقدر تزودها أو تقللها حسب ذوقك */
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay; /* بيخلي الشكل مندمج أكتر مع الخلفية الكحلي */
}

/* --- [4. NAVIGATION - الهيدر الزجاجي] --- */
.nav-premium {
    position: fixed;
    top: 0; width: 100%;
    height: var(--nav-height);
    z-index: 2000;
    background: var(--glass-navy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-red);
    filter: drop-shadow(var(--red-shadow));
}

.logo {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
    color: var(--white);
    font-size: 1.4rem;
    transition: 0.3s;
}

.cart-wrapper:hover {
    color: var(--primary-red);
}

.cart-badge {
    position: absolute;
    top: -8px; right: -12px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    border: 2px solid var(--navy-bg);
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-royal-sm {
    background: var(--primary-red);
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    box-shadow: var(--red-shadow);
    transition: var(--transition);
}

.btn-royal-sm:hover {
    transform: translateY(-3px);
    background: var(--white);
    color: var(--primary-red);
}

.mobile-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-hamburger span {
    width: 30px; height: 3px; background: var(--white);
    border-radius: 10px; transition: var(--transition);
}

/* --- [5. SOCIAL SIDEBAR - الشريط الجانبي] --- */
.social-sidebar {
    position: fixed;
    right: 25px; /* Moved to right for RTL harmony */
    top: 55%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 20px;
    z-index: 100;
}

.social-sidebar a {
    width: 45px; height: 45px;
    background: var(--glass-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--white);
    transition: var(--transition);
    text-decoration: none; font-size: 1.2rem;
}

.social-sidebar a:hover {
    background: var(--primary-red);
    transform: translateX(-8px) rotate(360deg);
    border-color: var(--primary-red);
}

.sidebar-line {
    width: 2px; height: 80px; background: var(--border-glass);
    margin: 0 auto;
}

/* --- [6. HERO SECTION - الواجهة] --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-container {
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    color: var(--primary-red);
    letter-spacing: 5px;
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 25px;
    border: 1px solid var(--primary-red);
    padding: 6px 20px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.text-gradient {
    background: linear-gradient(to right, var(--white), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.hero-description {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 45px;
    max-width: 750px;
    margin-inline: auto;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-royal-lg {
    background: var(--primary-red);
    color: white;
    padding: 18px 45px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--red-shadow);
}

.btn-royal-lg:hover {
    transform: translateY(-5px);
    background: var(--red-glow);
}

.btn-glass-lg {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 18px 45px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-glass-lg:hover {
    background: rgba(255,255,255,0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%; transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 25px; height: 40px; border: 2px solid white;
    border-radius: 20px; margin: 0 auto 10px; position: relative;
}

.mouse::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    width: 4px; height: 8px; background: var(--primary-red);
    transform: translateX(-50%); border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* --- [7. SIDE DRAWER - قائمة الموبايل] --- */
.side-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 320px; height: 100vh;
    background: var(--navy-deep);
    z-index: 3000;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
    display: flex; flex-direction: column;
}

.side-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 50px;
}

.close-drawer {
    font-size: 2rem; color: var(--primary-red); cursor: pointer;
}

.drawer-label {
    color: var(--primary-red); text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 2px; font-weight: 900; margin-bottom: 30px;
}

.drawer-nav {
    display: flex; flex-direction: column; gap: 20px;
}

.drawer-link {
    color: white; text-decoration: none; font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; gap: 15px; transition: 0.3s;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}

.drawer-link i { color: var(--primary-red); font-size: 1.1rem; }
.drawer-link:hover { padding-right: 15px; color: var(--primary-red); }

.drawer-footer { margin-top: auto; padding-top: 30px; }
.social-icons-row { display: flex; gap: 20px; justify-content: center; }
.social-icons-row a { color: white; font-size: 1.5rem; transition: 0.3s; }
.social-icons-row a:hover { color: var(--primary-red); }

/* --- [8. ABOUT SECTION - قصتنا] --- */
.about-modern {
    padding: 120px 5%;
    background: var(--navy-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-visual {
    position: relative;
}

.main-frame {
    position: relative; z-index: 2;
}

.main-frame img {
    width: 100%; border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-glass);
}

.floating-badge {
    position: absolute;
    bottom: -30px; right: -30px;
    background: var(--primary-red);
    color: white; padding: 25px;
    border-radius: 15px; text-align: center;
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.about-text-content h2 {
    font-size: 3rem; margin: 15px 0 30px; font-family: 'Reem Kufi';
    color: var(--white);
}

.sub-title { color: var(--primary-red); font-size: 1.4rem; font-weight: 900; }

.features-list {
    list-style: none; margin-top: 35px;
}

.features-list li {
    display: flex; align-items: center; gap: 15px; margin-bottom: 18px;
    font-size: 1.1rem; font-weight: 600;
}

.features-list li i { color: var(--primary-red); font-size: 1.3rem; }

/* --- [9. SPECIALTIES - التخصصات] --- */
.specialties-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--navy-bg), var(--navy-deep));
}

.section-header.center { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 3.5rem; margin-bottom: 20px; }

.fancy-divider {
    display: flex; align-items: center; justify-content: center; gap: 20px;
}

.fancy-divider span { width: 80px; height: 2px; background: var(--primary-red); }
.fancy-divider i { color: var(--primary-red); font-size: 1.5rem; }

.spec-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.spec-card-modern {
    height: 500px;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-glass);
}

.card-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.spec-card-modern:hover .card-bg { transform: scale(1.15); }

.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--navy-deep) 15%, transparent 70%);
}

.card-content {
    position: absolute; bottom: 0; left: 0; padding: 40px;
    z-index: 5; transition: 0.5s;
}

.icon-box {
    width: 65px; height: 65px; background: var(--primary-red);
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px; margin-bottom: 25px; font-size: 1.8rem;
    box-shadow: var(--red-shadow);
}

.spec-card-modern h3 { font-size: 1.8rem; margin-bottom: 15px; }
.spec-card-modern p { color: var(--gray-text); margin-bottom: 25px; font-size: 1rem; }

.card-link {
    color: var(--primary-red); text-decoration: none; font-weight: 800;
    font-size: 1.1rem; border-bottom: 2px solid var(--primary-red);
    padding-bottom: 5px; transition: 0.3s;
}

.card-link:hover { color: white; border-color: white; }

/* --- [10. LOCATION SECTION - الموقع] --- */
.location-section {
    padding: 120px 5%;
}

.location-glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.loc-info { flex: 1; padding: 60px; }
.loc-info h2 { font-size: 2.8rem; color: var(--primary-red); margin-bottom: 40px; }

.info-item {
    display: flex; gap: 20px; align-items: flex-start; margin-bottom: 35px;
}

.info-item i { color: var(--primary-red); font-size: 1.8rem; margin-top: 5px; }
.info-item h4 { font-size: 1.3rem; margin-bottom: 5px; }
.info-item p { color: var(--gray-text); }

.loc-visual-map {
    flex: 1.2;
    background: #0b1a20;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-left: 1px solid var(--border-glass);
}
/* 2. تحسين الخريطة لتظهر كزر تفاعلي */
.loc-visual-map {
    background: url('https://www.google.com/maps/d/u/0/thumbnail?mid=1z_N4S-ZpL9t9-9v9') center/cover;
    transition: var(--transition);
}
.loc-visual-map:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
}

.map-placeholder {
    background: rgba(230, 57, 70, 0.8);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.map-placeholder {
    text-align: center; color: white; cursor: pointer;
}

.map-dot {
    width: 25px; height: 25px; background: var(--primary-red);
    border-radius: 50%; margin: 0 auto 15px;
    box-shadow: 0 0 0 10px rgba(230, 57, 70, 0.2), 0 0 0 20px rgba(230, 57, 70, 0.1);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0px rgba(230, 57, 70, 0.4); }
    100% { box-shadow: 0 0 0 25px rgba(230, 57, 70, 0); }
}

/* --- [11. FOOTER - الفوتر الفاخر] --- */
.footer-premium {
    background: #000a12;
    padding: 100px 5% 30px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto 60px;
}

.footer-col h4 {
    color: var(--primary-red); font-size: 1.4rem; margin-bottom: 30px;
    position: relative; padding-bottom: 10px;
}

.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; right: 0;
    width: 40px; height: 2px; background: var(--primary-red);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a {
    color: var(--gray-text); text-decoration: none; transition: 0.3s;
}

.footer-col ul li a:hover { color: var(--primary-red); padding-right: 10px; }

.social-row { display: flex; gap: 20px; margin-top: 25px; }
.social-row a {
    width: 45px; height: 45px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; color: white; font-size: 1.2rem; transition: 0.3s;
}

.social-row a:hover { background: var(--primary-red); transform: translateY(-5px); }

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px; text-align: center; color: var(--gray-text);
}

.footer-bottom span { color: var(--white); font-weight: 700; }

/* --- [12. RESPONSIVENESS - التجاوب التام] --- */
@media (max-width: 1100px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .features-list { display: inline-block; text-align: right; }
    .location-glass-card { flex-direction: column; }
    .loc-visual-map { height: 350px; }
}

@media (max-width: 968px) {
    .nav-links-desktop { display: none; }
    .mobile-hamburger { display: flex; }
    
    .hero-title { font-size: 3.5rem; }
    .hero-cta-group { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .social-row { justify-content: center; }
}

/* 3. ضمان التجاوب الكامل للأجهزة الصغيرة جداً */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem !important; /* تصغير العنوان في الموبايلات الصغيرة */
        line-height: 1.3;
    }
    .hero-cta-group {
        width: 100%;
    }
    .btn-royal-lg, .btn-glass-lg {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    .about-visual img {
        box-shadow: none; /* تخفيف الحمل على الموبايل */
    }
    .nav-premium {
        padding: 10px 0;
    }
}
/* 4. تعديل القائمة الجانبية لتظهر من اليمين أو اليسار حسب اللغة */
[lang="en"] .side-drawer {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 3px solid var(--primary-red);
}
[lang="en"] .side-drawer.open {
    left: 0;
}
/* 1. إخفاء نسخة الموبايل في شاشات الكمبيوتر */
.mobile-only-login {
    display: none !important;
}

/* 2. التحكم في الظهور والاختفاء عند الموبايل */
@media (max-width: 968px) {
    /* إخفاء زر تسجيل الدخول من الهيدر العلوي */
    .nav-actions .btn-royal-sm {
        display: none !important;
    }

    /* إظهار زر تسجيل الدخول داخل القائمة الجانبية */
    .mobile-only-login {
        display: flex !important;
        background: rgba(230, 57, 70, 0.1); /* خلفية حمراء خفيفة لتمييزه */
        padding: 15px;
        border-radius: 10px;
        color: var(--primary-red) !important;
        margin-bottom: 20px;
    }
    
    .mobile-only-login i {
        color: var(--primary-red);
    }
}

/* تعديل بسيط لضمان المسافات في الهيدر بالموبايل */
@media (max-width: 968px) {
    .nav-actions {
        gap: 15px; /* تقليل المسافات بعد اختفاء الزرار */
    }
    
    /* جعل اللوجو والـ Hamburger Menu في أطراف الشاشة بالضبط */
    .nav-container {
        padding: 0 5%;
    }
}

/* Project: King Farouk Menu - Premium UI 
    Developer: Al-Bashmuhandis Taha
    Theme: Modern Luxury (Navy, Royal Red, Gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700;900&family=Playfair+Display:ital,wght@0,700;1,900&display=swap');

:root {
    --primary-red: #e63946;    /* الأحمر الملكي */
    --amber: #f59e0b;          /* اللون الذهبي من الكود الخاص بك */
    --dark: #020617;           /* الكحلي الغامق جداً */
    --glass-navy: rgba(2, 6, 23, 0.7);
    --white: #f8fafc;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- [1. Page Setup] --- */
.menu-page {
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
}

.menu-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 5% 60px;
    position: relative;
    z-index: 5;
}

/* --- [2. Menu Header] --- */
.menu-header {
    text-align: center;
    margin-bottom: 60px;
}

.font-luxury {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(to right, #fff, var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 20px 0;
}

.menu-note {
    color: var(--amber);
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(245, 158, 11, 0.1);
    display: inline-block;
    padding: 8px 25px;
    border-radius: 50px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* --- [3. Navigation Tabs (Glass Effect)] --- */
.menu-nav {
    position: sticky;
    top: 100px;
    z-index: 100;
    margin-bottom: 50px;
}

.nav-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px;
    background: var(--glass-navy);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: none; /* Firefox */
}

.nav-scroll-container::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.menu-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.menu-tab:hover {
    border-color: var(--primary-red);
    background: rgba(230, 57, 70, 0.1);
}

.menu-tab.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px -5px rgba(230, 57, 70, 0.4);
    transform: translateY(-3px);
}

/* --- [4. Menu Grid & Cards] --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Category Titles */
.menu-category-title {
    grid-column: 1 / -1;
    margin: 40px 0 20px;
    padding-right: 15px;
    border-right: 4px solid var(--primary-red);
}

.menu-category-title h3 {
    font-size: 1.8rem;
    color: var(--primary-red);
    font-family: 'Reem Kufi', sans-serif;
}

/* The Card (Based on your Product Card CSS) */
.menu-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeIn 0.8s ease;
}

.menu-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-card:hover .card-img img {
    transform: scale(1.1);
}

.card-body {
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
}

.price {
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary-red);
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- [5. UI Elements & Animations] --- */
.back-to-home {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--primary-red);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.back-to-home:hover {
    background: white;
    color: var(--primary-red);
    transform: translateX(-5px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- [6. Mobile Responsiveness] --- */
@media (max-width: 768px) {
    .menu-wrapper { padding-top: 80px; }
    .hero-title { font-size: 2.2rem; }
    .menu-nav { top: 70px; }
    .menu-grid { grid-template-columns: 1fr; }
    .back-to-home { top: 20px; right: 20px; padding: 10px 20px; font-size: 0.9rem; }
}

/* [Ltr Support for English] */
[dir="ltr"] .menu-category-title {
    border-right: none;
    border-left: 4px solid var(--primary-red);
    padding-right: 0;
    padding-left: 15px;
}

[dir="ltr"] .back-to-home:hover {
    transform: translateX(5px);
}
/* تنسيق زرار الإضافة داخل الكارت */
.add-to-cart-btn {
    width: 100%; /* ياخد عرض الكارت بالكامل */
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* الستايل الذهبي المتوهج اللي بعته */
    background: linear-gradient(135deg, #1f770d 0%, #3ba407 100%);
    color: #000002;
    box-shadow: 0 10px 20px -5px rgba(2, 91, 15, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-to-cart-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(4, 194, 29, 0.6);
    filter: brightness(1.1);
}

.add-to-cart-btn i {
    font-size: 1.2rem;
}

/* تأثير نبض خفيف عند الضغط (Active State) */
.add-to-cart-btn:active {
    transform: scale(0.95);
}
.cart-wrapper {
    position: fixed;
    top: 25px;
    left: 25px; /* تظهر في الجانب المقابل لزر الرئيسية */
    z-index: 1100;
}

.cart-icon-btn {
    position: relative;
    background: var(--glass-navy);
    border: 1px solid var(--amber);
    color: var(--amber);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.4rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-icon-btn:hover {
    background: var(--amber);
    color: var(--dark-navy);
    transform: scale(1.1) rotate(10deg);
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--dark-navy);
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 15px var(--primary-red); }
    100% { transform: scale(1); }
}


/* --- [ حاوية التنبيهات المنبثقة ] --- */
.notification-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none; /* عشان ما يغطيش على الزراير اللي وراه */
}

/* --- [ ستايل التنبيه الأحمر المتوهج ] --- */
.toast-notification {
    background: linear-gradient(135deg, #e63946 0%, #b91c1c 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* أنيميشن الظهور والاختفاء */
    animation: slideUpFade 0.5s ease forwards, fadeOut 0.5s ease 2.5s forwards;
}

/* أيقونة الصح داخل التنبيه */
.toast-notification i {
    background: rgba(255, 255, 255, 0.2);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* --- [ حركات الأنيميشن ] --- */
@keyframes slideUpFade {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { 
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(-10px);
    }
}

/* تحسين المظهر في الموبايل */
@media (max-width: 480px) {
    .toast-notification {
        width: 90vw;
        padding: 10px 20px;
        font-size: 0.85rem;
        justify-content: center;
    }
}
/*الجزء الخاص بالعربة*/
/* --- [ ستايل صفحة السلة - التحديث الملكي ] --- */

.cart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 5%;
}

.cart-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 30px;
}

.nav-btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.nav-btn-glass:hover {
    background: var(--amber);
    color: var(--dark-navy);
}

/* المربع الرئيسي للبيانات */
.cart-glass-box {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 15px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-thumb {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid var(--amber);
}

.item-info h4 { font-size: 1.1rem; color: white; }
.item-unit-price { color: var(--amber); font-weight: 700; }

/* التحكم في الكمية */
.item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: rgb(244, 236, 236);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.qty-btn.plus { background: #2ecc71; } /* أخضر */
.qty-btn.minus { background: #e63946; } /* أحمر */
.qty-btn:hover { transform: scale(1.1); filter: brightness(1.2); }

.qty-num { font-weight: 900; font-size: 1.2rem; min-width: 25px; text-align: center; }

.delete-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 10px;
}
.delete-btn:hover { color: #ff4d4d; }

/* الملخص النهائي */
.cart-summary {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 255, 255, 0.1);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 25px;
}

/* زر المتابعة للدفع الأحمر الملكي */
.btn-checkout-red {
    width: 100%;
    padding: 18px;
    margin-top: 25px;
    border: none;
    border-radius: 15px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    /* اللون الأحمر الملكي المتوهج */
    background: linear-gradient(135deg, #e63946 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(230, 57, 70, 0.4);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* تأثير التفاعل عند تمرير الماوس */
.btn-checkout-red:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px -10px rgba(230, 57, 70, 0.6);
    filter: brightness(1.1);
}

/* تأثير النبض التلقائي عشان يجذب الانتباه */
.btn-checkout-red {
    animation: checkoutPulse 2s infinite;
}

@keyframes checkoutPulse {
    0% { box-shadow: 0 0 0 0 rgba(179, 43, 54, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* تأثير الضغط */
.btn-checkout-red:active {
    transform: scale(0.98);
}

/* إضافة لمعة خفيفة بتتحرك على الزرار */
.btn-checkout-red::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
}

.btn-checkout-red:hover::after {
    left: 120%;
    transition: all 0.7s italic;
}

/* التوافق مع الشاشات الصغيرة */
@media (max-width: 600px) {
    .cart-item { flex-direction: column; text-align: center; }
    .item-info { flex-direction: column; }
    .item-controls { justify-content: center; width: 100%; }
}



/* ستايلات صفحة الدفع */
.checkout-container { max-width: 700px; margin: 0 auto; padding: 20px; }
.checkout-nav { display: flex; justify-content: center; gap: 10px; padding: 20px 0; }

.form-group { margin-bottom: 20px; text-align: right; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--amber); }

.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: white; font-family: 'Cairo';
}

.hidden-section { display: none; }

.payment-info-box {
    background: rgba(245, 158, 11, 0.1); border: 1px dashed var(--amber);
    padding: 15px; border-radius: 12px; margin-bottom: 20px;
}

.payment-msg { font-weight: 700; margin-bottom: 10px; }

.order-summary-mini {
    display: flex; justify-content: space-between; padding: 20px;
    background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 20px;
    font-size: 1.2rem; font-weight: 900; border-right: 5px solid var(--primary-red);
}



.lang-switcher {
    position: fixed;
    top: 25px;
    right: 100px; /* بجانب أزرار التنقل */
    z-index: 1200;
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--amber);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
}

.lang-btn:hover {
    background: var(--amber);
    color: var(--dark-navy);
}

/* قلب المحاذاة تلقائياً عند تغيير الاتجاه */
[dir="ltr"] {
    text-align: left;
}
[dir="ltr"] .menu-category-title {
    border-right: none;
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
}