@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
:root {
    --primary: #5a0418;
    --bg: #f9f5ea;
    --white: #fffdf8;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg);
    margin: 0;
    direction: rtl;
    padding-bottom: 100px; 
}

header {
    background: var(--white);
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
     border-top: 3px solid var(--primary);
     object-fit:contain;
}
.header_img{
    object-fit:contain;
}

/* الأقسام - سكرول أفقي */
.categories {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
    white-space: nowrap;
    background: var(--white);
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 100;
}
.categories::-webkit-scrollbar { display: none; }

.categories button {
    background: var(--bg);
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 15.5px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text);
}

.categories button.active {
    background: var(--primary);
    color: white;
}

/* الشبكة - 3 أصناف في الصف */
/* الأساس: للجوال (3 أعمدة) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px;
    padding: 10px;
}

/* للتابلت: الشاشات أكبر من 600px (4 أعمدة) */
@media (min-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* للابتوب: الشاشات أكبر من 1024px (6 أعمدة) */
@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
}

/* لشاشات الكمبيوتر الكبيرة: أكبر من 1440px (8 أعمدة) */
@media (min-width: 1440px) {
    .menu-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.item-card {
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-card img {
 width: 100%;
  /* جعلنا النسبة 4/3 لتكون الصورة "أطول" عمودياً من الـ 16/9 */
  aspect-ratio: 4 / 3; 
  
  /* fill: تقوم بمط الصورة لتملأ الأبعاد تماماً مهما كانت أبعادها الأصلية */
  object-fit: fill; 
  
  display: block;
  border-radius: 8px; /* للحفاظ على جمالية الحواف */
}

.item-card h4 {
    /* السماح للنص بالانتقال لسطر جديد */
    white-space: normal; 
    word-wrap: break-word;
    color: var(--text);
    
    /* تحديد ارتفاع ثابت للعنوان لتوحيد شكل الكروت */
    min-height: 44px; /* مساحة تكفي لسطرين */
    
    /* تنسيق المحاذاة */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
    font-size: 12.7px;
    line-height: 1.4; /* مسافة مريحة بين السطرين */
    
    /* منع النص من تخريب عرض الكارت */
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.price { 
    display: block; 
    color: var(--primary); 
    font-weight: bold; 
    margin-bottom: 8px; 
    font-size: 11px;
}

.item-card button {
    width: 100%;
    color: white;
    border: none;
    padding: 6px 2px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
}

/* --- نظام السلة المنزلقة (Bottom Sheet) المعدل --- */

.cart-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 5%;
    right: 5%;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    display: none; 
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
}

/* التنسيق الخاص بالكمبيوتر (الشاشات الكبيرة) */
@media (min-width: 768px) {
    .cart-floating-bar {
        width: 460px;    /* عرض ثابت وأصغر من الـ cart-sheet ليعطي مظهراً أجمل */
        left: 50%;       /* التمركز في المنتصف */
        right: auto;
        transform: translateX(-50%); /* موازنة العنصر في المنتصف تماماً */
    }
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1000;
}

.cart-sheet {
    position: fixed;
    bottom: -100%; 
    left: 0;
    right: 0;
    background: var(--white);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    z-index: 1001;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cart-sheet.active {
    bottom: 0;
}

/* التعديل الخاص بالشاشات الكبيرة (الكمبيوتر) */
@media (min-width: 768px) {
    .cart-sheet {
        width: 500px; /* العرض الذي تريده للكمبيوتر */
        left: 50%;     /* تحريكه لمنتصف الشاشة */
        right: auto;
        transform: translateX(-50%); /* لضمان التوسيط الدقيق */
        border-radius: 25px 25px 0 0; /* الحواف العلوية فقط */
    }
}

/* رأس السلة - توزيع العناصر بين اليمين واليسار */
/* رأس السلة - توزيع احترافي */
.sheet-header {
    position: relative; /* ضروري لعمل الموقع المطلق داخلها */
    padding: 20px;
    text-align: center; /* توسيط العنوان أو محاذاته يميناً */
    border-bottom: 1px solid #dbdbdb;
    color: var(--text);
}

.sheet-header h3 {
    margin: 0;
    padding-right: 10px;
    text-align: right; /* محاذاة النص لليمين */
}

.close-sheet {
    position: absolute;
    left: 20px; /* تثبيتها في أقصى اليسار */
    top: 50%;
    transform: translateY(-50%); /* التوسيط العمودي الدقيق */
    font-size: 24px;
    color: #888;
    cursor: pointer;
}


.sheet-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* الفوتر: الإجمالي يمين والزر دائري يسار */
.sheet-footer {
    padding: 15px 20px;
    border-top: 1px solid #dbdbdb;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-container {
    text-align: right;
}

.total-label {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.total-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

/* زر "اطلب" الدائري الأخضر على اليسار */
.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تنسيق الأصناف داخل السلة */
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.item-details {
    text-align: right;
    flex: 1;
}

.item-details b {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.item-details span {
    font-size: 12px;
    color: var(--primary);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 15px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-minus { background: var(--bg); color:var(--primary); border: 1px solid #5a0418; }
.btn-plus { background: var(--primary); color: white; }

.item-total-price {
    font-weight: bold;
    min-width: 60px;
    text-align: left;
    color: var(--text);
}

.btn-send-whatsapp {
    background-color: var(--primary); /* خلفية فاتحة جداً مثل الصورة */
    color: #ffffff; /* لون النص */
    border: 1px solid #ccc; /* إطار خفيف وواضح */
    padding: 8px 15px;
    border-radius: 8px; /* حواف منحنية قليلاً وليست دائرية بالكامل */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* مسافة بين أيقونة الواتساب والنص */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* ظل ناعم جداً */
}

.btn-send-whatsapp:hover {
    background-color: #fff;
    border-color: var(--primary); /* يتحول الإطار للأخضر عند التمرير */
    color: var(--primary);
}

.btn-send-whatsapp:active {
    transform: scale(0.98); /* تأثير الضغط */
}

/* خلفية النافذة المظلمة ___________________________________*/
.modal-overlay-ohter {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none; /* مخفية */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px); /* تأثير تغبيش الخلفية */
}









/* تنسيق النافذة المنبثقة من الأسفل */
.variant-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 50vh; /* يغطي 45% من ارتفاع الشاشة فقط (أقل من النصف) */
    background-color: white;
    border-radius: 25px 25px 0 0; /* حواف دائرية من الأعلى فقط */
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out; /* حركة الظهور من الأسفل */
    z-index: 4000;
}

/* خلفية ضبابية معتمة */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none; /* قم بتغيير هذه القيمة من flex إلى none */
    align-items: flex-end;
    z-index: 3000;
}
/* أنيميشن الظهور من الأسفل */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* تنسيق أزرار الأحجام داخل النافذة */
.variants-list {
    margin: 5px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-btn {
    width: 100%;
    padding: 15px;
    border: 1px solid #c9c9c9;
    background: var(--bg);
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text);
}









/* زر الإضافة العادي (الأخضر كما في الصورة) */
.btn-add {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

/* زر الخيارات (التصميم المختلف) */
.btn-options {
    background-color: var(--primary); /* لون أزرق احترافي */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.btn-options:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}





/* صندوق النافذة - ملء العرض فقط */
.modal-content {
    display: flex;
    flex-direction: column;
    height: auto; 
    overflow: hidden; /* يمنع ظهور سكرول مزدوج مشوه */
    color: var(--text);
    background: var(--white);
    padding: 25px;
    height: 100%;
    width: 100%;        /* يملأ عرض الحاوية الأب */
    max-width: 100%;    /* إلغاء التقييد بـ 350px */
    box-sizing: border-box; /* لضمان عدم خروج الحواف بسبب padding */
    
    text-align: center;
    animation: slideUp 0.3s ease-out;
}


@media (min-width: 768px) {
    .modal-content {
        /* 1. تحديد عرض ثابت (التقلص للنصف) */
        width: 500px;
        max-width: 90%; 
        
        /* 2. التمركز في المنتصف تماماً */
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto; /* إلغاء الالتصاق بالأسفل */
        
        /* 3. الوزن المحوري للتوسيط */
        transform: translate(-50%, -50%);
        
        /* 4. تحسينات الشكل */
        border-radius: 20px; /* حواف دائرية من كل الجهات */
        height: auto;
        max-height: 85vh; /* السماح بالتمرير إذا كان المحتوى طويلاً */
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        
        /* إلغاء أي أنيميشن قديم يسبب إزاحة */
        animation: fadeInCenter 0.3s ease-out;
    }
}

/* التعديل الذهبي للكمبيوتر */
@media (min-width: 768px) {
    .cart-sheet, .modal-content.variant-content {
        /* هنا السر: العرض يتقلص لكنه يظل متموضعاً في المنتصف */
        width: 500px; 
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* أنيميشن جديد خاص بالتوسيط */
@keyframes fadeInCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.table-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.table-numbers button {
    padding: 5px;
    border: 1px solid #5c191978;
    border-radius: 16px;
    background: var(--bg);
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: var(--text);
}

.table-numbers button:focus {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}
#custom-table {
    grid-column: span 3;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-align: center;
}


.Price-selection{
    justify-content: space-between; /* توزيع المساحة بين العناصر */

     display: flex;
    flex-direction: column;
    height: auto; 
    overflow: hidden; /* يمنع ظهور سكرول مزدوج مشوه */
    
    background: var(--white);
    padding: 25px;
    height: 100%;
    width: 100%;        /* يملأ عرض الحاوية الأب */
    max-width: 100%;    /* إلغاء التقييد بـ 350px */
    box-sizing: border-box; /* لضمان عدم خروج الحواف بسبب padding */
    
    text-align: center;
    animation: slideUp 0.3s ease-out;
}


.modal-content {
    display: flex;
    flex-direction: column; /* ترتيب العناصر عمودياً */
    justify-content: space-between; /* توزيع المساحة بين العناصر */
}

/* تعديل كود الأزرار الذي أرسلته */
.modal-actions {
    flex-shrink: 0; /* يمنع ضغط الأزرار أو تحركها */
    display: flex;
    gap: 10px;
    margin-top: auto; /* هذا السطر سيدفع الأزرار دائماً للقاع */
    padding-top: 10px; /* مسافة بسيطة فوق الأزرار */
    width: 100%;
    margin-bottom: 7px;
}

.btn-confirm, .btn-cancel {
    flex: 1; /* لجعل الزرين متساويين في العرض */
}

.btn-confirm {
    flex: 2;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
}

.btn-cancel {
    flex: 1;
    background: #e3e3e38a;
    color: var(--text);
    border: none;
    padding: 12px;
    border-radius: 10px;
}

.btn-cancel-other {
    flex: none !important; /* إلغاء التمدد الإجباري */
    width: 90% !important; /* جعل العرض مناسباً وليس كاملاً جداً */
    margin: 10px auto !important; /* مسافة معقولة وتوسيط */
    padding: 12px !important;
    background-color: #f1f1f1fb  !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    border: none;
}


@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.modal-body {
    flex: 1; /* يأخذ المساحة المتاحة بين العنوان والأزرار */
    overflow-y: auto; /* تفعيل السكرول العمودي عند الحاجة فقط */
    padding: 15px 20px;
    
    /* تحسين شكل السكرول ليكون ناعماً في الجوال */
    -webkit-overflow-scrolling: touch; 
}

/* اختياري: تخصيص شكل شريط السكرول ليكون مخفياً أو نحيفاً */
.modal-body::-webkit-scrollbar {
    width: 4px; /* عرض شريط التمرير */
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ccc; /* لون شريط التمرير */
    border-radius: 10px;
}

/* تنسيق أزرار الطاولات */
.table-btn {
    padding: 15px;
    border: 2px solid #f4f0e5;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* اللون الأخضر عند الاختيار */
.table-btn.selected {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.table-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 5px 0;
}

/* للتابلت: الشاشات المتوسطة (8 أعمدة) */
@media (min-width: 600px) {
    .table-numbers {
        grid-template-columns: repeat(8, 1fr);
        gap: 8px; /* زيادة الفراغ قليلاً لراحة العين */
    }
}

/* للشاشات الكبيرة: لابتوب وكمبيوتر (10 أعمدة) */
@media (min-width: 1024px) {
    .table-numbers {
        grid-template-columns: repeat(10, 1fr);
        gap: 10px;
    }
}


.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    
}

.pay-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: var(--bg);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    color: var(--text);
}

/* حالة الاختيار لزر الدفع */
.pay-btn.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg);
}

/* تنسيق صندوق الحسابات الرئيسي */
/* الحاوية الرئيسية */
.accounts-box {
    background: transparent; /* إزالة الخلفية البيضاء الكبيرة */
    padding: 10px;
    margin-top: 10px;
}

/* العنوان الصغير */
.mini-title {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
}

/* تنسيق البطاقات الملونة */
.bank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #202020; /* لون النص أبيض ليظهر على الخلفيات الملونة */
}

/* لون خاص للعمقي (مثلاً الكحلي أو الأزرق) */
.al-amqi {
   border: 3px solid #13a93d8a;
    border-right: 4px solid #13a93d8a;
    color: var(--text);
}

/* لون خاص للكريمي (الأخضر المميز للكريمي) */
.al-kuraimi {
    border: 3px solid #8f0a9e8a;
    border-right: 4px solid #8f0a9e82;
     color: var(--text);
}

.bsare {
    border: 3px solid #0a0a9e8a;
    border-right: 4px solid #0a0a9e8a;
     color: var(--text);
}

.bndoal {
    border: 3px solid #ff00008a;
    border-right: 4px solid #0048ff8a;
     color: var(--text);
}

.al-Qutaibi {
    border: 3px solid #2f9e0a8a;
    border-right: 4px solid #2f9e0a8a;
     color: var(--text);
}

.b-name {
    font-size: 12px;
    font-weight: bold;
}

.b-number {
    cursor: pointer; /* تغيير شكل الماوس ليد */
    padding: 2px 8px;
    border-radius: 5px;
    transition: 0.3s;
    display: inline-block;
}

.b-number:active {
    background: #e0e0e0; /* تأثير عند الضغط */
    transform: scale(0.95);
}

.b-number::after {
    margin-right: 5px;
    font-size: 12px;
}

/* ملاحظة صغيرة */
.mini-note {
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-top: 5px;
}

.box-header {
    text-align: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

/* الترتيب: اسم البنك يمين والرقم يسار */
.account-item {
    display: flex;
    justify-content: space-between; /* دفع العناصر للأطراف */
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9;
}

.bank-name {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.account-num {
    font-family: 'monospace', sans-serif; /* لجعل الأرقام واضحة */
    font-size: 15px;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
    direction: ltr; /* لضمان ظهور الأرقام بشكل صحيح */
}

/* خط فاصل ناعم */
.divider {
    border: 0;
    height: 1px;
    background: #f4f0e5;
    margin: 15px 0;
}

/* تنسيق قسم رفع الملفات */
.upload-label {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

#receipt-image {
    width: 100%;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.upload-note {
    text-align: center;
    font-size: 11px;
    color: #e67e22;
    margin-top: 8px;
}

.btn-send-whatsapp {
    box-shadow: 0 4px 15px rgba(174, 102, 39, 0.3) !important;
    transition: transform 0.2s;
}

.btn-send-whatsapp:active {
    transform: scale(0.95);
}

/* حقل الملاحظات */
.note-input {
    width: 100%;
    height: 45px;
    padding-top:  7px;
    padding-right:9px ;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 13px;
    margin-top: 5px;
    background-color: var(--bg);
    color: var(--text);
}

.accounts-popup {
    position: fixed;
    bottom: -100%; /* تكون مخفية بالأسفل */
    left: 0;
    right: 0; /* لضمان العرض الكامل */
    width: 100%;
    height: auto;
    max-height: 70vh; /* لا تتجاوز 70% من طول الشاشة */
    background:var(--white);
    z-index: 3000; /* أعلى من الـ Modal */
    transition: bottom 0.4s ease-out;
    border-radius: 25px 25px 0 0;
    padding: 20px;
    box-sizing: border-box; /* تمنع خروج المحتوى عن اليمين */
    direction: rtl;
}


/* التنسيق الخاص بالكمبيوتر (الشاشات الكبيرة) */
@media (min-width: 768px) {
    .accounts-popup {
        /* تقليص العرض */
        width: 500px;
        
        /* التوسيط في المنتصف */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        
        /* تعديل الحواف لتصبح أجمل في الكمبيوتر */
        border-radius: 25px 25px 0 0; 
        
        /* تأكد أن bottom: 0 سيعمل بشكل صحيح عند التفعيل */
    }
}

.accounts-popup.active {
    bottom: 0; /* تظهر عند إضافة كلاس active */
}

/* خلفية مظلمة إضافية عند فتح الحسابات (اختياري لجمالية التصميم) */
.accounts-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 2999;
}

.accounts-scroll-area {
    overflow-y: auto;
    max-height: 250px;
    margin-top: 15px;
}

.sheet-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f9f5ea;
    padding-bottom: 10px;
    font-weight: bold;
    color: var(--text);
}

.close-sheet-btn {
    background: #dbdbdb;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* الحاوية الرئيسية مع تأثير التغبيش */
.branch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px); /* تغبيش الخلفية لزيادة التركيز */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

/* بطاقة اختيار الفرع */
.branch-card {
    background: linear-gradient(145deg, #1e1e1e, #121212);
    padding: 28px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 74%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* حركة دخول انسيابية */
}

/* عنوان المحل */
.branch-card h2 {
    color: #ffc107;
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
}

.branch-card p {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* حاوية الأزرار */
.branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* الأزرار الاحترافية */
.btn-branch {
    position: relative;
    padding: 16px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* تأثير عند تمرير الماوس */
.btn-branch:hover {
    background: #630a16;
    border-color: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 10, 22, 0.4);
}

.btn-branch span {
    font-size: 1.4rem;
}

/* أنيميشن الدخول */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* كلاس للإخفاء بسلاسة عند الاختيار */
.fade-out {
    opacity: 0;
    pointer-events: none;
}




.promo-slider-container {
    width: 95%;
    margin: 20px auto;
    height: 180px;
    background: var(--bg); /* لون رمادي غامق جداً مثل طلبك */
    border-radius: 25px; /* حواف دائرية ناعمة */
    position: relative;
    overflow: hidden;
    direction: rtl;
}

/* التعديل الخاص بالكمبيوتر (الشاشات الكبيرة) */
@media (min-width: 768px) {
    .promo-slider-container {
        /* تقليص العرض ليطابق باقي عناصر الواجهة */
        width: 65%; 
        
        /* الحفاظ على التوسيط في المنتصف */
        margin-left: auto;
        margin-right: auto;
        
        /* يمكنك زيادة الارتفاع قليلاً في الكمبيوتر إذا أردت وضوحاً أكبر */
        height: 200px; 
    }
}

.promo-slider {
    display: flex;
    height: 100%;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.promo-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    box-sizing: border-box;
}
/* جهة النصوص */
.promo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: right;
    /* إضافة حشوة داخلية بسيطة لضمان عدم التصاق النص بالسقف */
    padding-top: 10px; 
}

.promo-info h2 {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0 0 4px 0; /* مسافة بسيطة جداً تحت العنوان */
}

.promo-info p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin: 0; /* لغينا المارجن هنا لنتحكم بالمسافة من خلال الزر */
}

/* زر الإضافة أو الخيارات */
.promo-action-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 9px 28px; /* زيادة بسيطة في الحجم ليكون أوضح */
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    
    /* أهم تعديل: زيادة المسافة العلوية لدفعه للأسفل */
    margin-top: 38px; 
    
    transition: 1.7s ease;
    align-self: flex-start;
}

/* تأثير بسيط عند الضغط لجعل الموقع يشعر المستخدم بالاستجابة */
.promo-action-btn:active {
    transform: scale(0.92);
}

/* زر "إكسبلور" أو "إضافة" */
.promo-action-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 1.5s;
}

/* جهة الصورة */
.promo-img-box {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-img-box img {
    max-width: 120%;
    max-height: 100%;
    object-fit: contain;
    /* تحسين سرعة التحميل باستخدام خاصية العرض */
    content-visibility: auto; 
}

/* نقاط التنقل */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 25px; /* وضعناها في الزاوية مثل الصور التي أرفقتها */
    display: flex;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.dot.active {
    background: var(--primary);
    width: 15px;
    border-radius: 10px;
}


#delivery-form-container {
    transition: all 0.3s ease; /* لإضافة نعومة عند الظهور */
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box; /* لضمان عدم خروج المدخلات عن الحاوية */
    background-color: var(--white);
    color: #fff;
}

.form-input {
    width: 100%;
    padding: 10px;
    background-color: var(--bg); /* نفس لون الخلفية في صورتك */
    color: rgb(30, 30, 30);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    appearance: none; /* لإزالة السهم الافتراضي وتنسيقه يدوياً إن أردت */
}


.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #800e13; /* لون الهوية الخاص بك */
}



/*/////////////////////////////اضافاااااااااااااات/////////////////////////////////////////////////*/
.variant-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg); /* لون خلفية متناسق مع تصميمك الغامق */
    padding: 3px  13px;
    margin-bottom: 3px;
    border-radius: 12px;
    border: 1px solid #79000017;
}

/* نصوص الأحجام والأسعار */
.variant-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}


/* حاوية العداد داخل المودال */
.modal-counter-container {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 25px;
    padding: 3px;
    gap: 12px;
    border: 1px solid #63050038;
}

/* أزرار + و - */
.m-counter-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-counter-btn:active {
    background: var(--primary);
}

.v-price-text {
    font-size: 14px;
    color: var(--primary);
}

/*////////////////////////////////النهاية الاضافة العداد//////////////////////////////////////////////*/
