/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Noto Kufi Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    text-align: right;
}

body {
    background-color: #866642;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* الشريط العلوي */
.header {
    background: #412106;
    position: sticky;
    top: 1rem; /* مسافة من الأعلى لجعله عائمًا */
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* ظل أعمق لإعطاء تأثير عائم */
    margin: 1rem; /* هوامش حول الشريط العلوي */
    width: calc(100% - 2rem); /* تعديل العرض ليتناسب مع الهوامش */
    border-radius: 1.5rem; /* حواف دائرية */
}

/* توسيط الشعار والدائرة في الهيدر بدون تغطية الأيقونات */
.header-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    position: relative;
    gap: 2rem;
}

.header-title {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.header-social,
.header-order {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

/* أزرار التواصل الاجتماعي */
.header-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-icon.whatsapp:hover {
    background: #25D366;
}

.social-icon.instagram:hover {
    background: #E4405F;
}

.social-icon.facebook:hover {
    background: #1877F3;
}

.social-icon.map:hover {
    background: #DB4437; /* Google Maps Red */
}

.social-icon i {
    color: white;
    font-size: 20px;
}

/* شعار المطعم */
.logo-container, .logo-circle {
    all: unset !important;
    display: contents !important;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.logo-circle {
    position: relative;
    width: 70px;
    height: 70px;
    background: #ffffff4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.logo-img {
    width: 90px !important;
    height: auto !important;
    max-width: 100vw;
    max-height: 700px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}

.logo-circle:hover .logo-img {
    transform: rotate(5deg);
}

.logo-fallback {
    width: 70px;
    height: 70px;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

/* زر اطلب الآن */
.header-order {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-start;
}

.order-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(105, 52, 7, 0.7), rgba(105, 52, 7, 0.5));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(105, 52, 7, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.order-btn:hover::before {
    left: 100%;
}

.order-btn:hover {
    background: linear-gradient(135deg, #693407, #8a4a0a);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(105, 52, 7, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.phone-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    70% {
        transform: rotate(5deg);
    }
}

.order-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.order-main {
    font-size: 1.1rem;
    font-weight: 700;
}

.order-phone {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    direction: ltr;
}

/* فلتر الفئات */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
}

.category-btn {
    background: linear-gradient(135deg, rgba(105, 52, 7, 0.9), rgba(105, 52, 7, 0.8));
    color: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-btn:hover {
    border-color: #693407;
    color: #fff;
    box-shadow: 0 4px 12px rgba(105, 52, 7, 0.2);
}

.category-btn.active {
    background: #693407;
    color: #fff;
    border-color: #693407;
    box-shadow: 0 6px 20px rgba(105, 52, 7, 0.3);
    transform: scale(1.05);
}

/* إخفاء أيقونة الفئة إذا كانت فارغة (مثل زر الكل) */
.category-btn .cat-icon:empty {
  display: none;
}

/* معلومات الفئة النشطة */
.active-category-info {
    text-align: center;
    margin-bottom: 2rem;
}

.active-category-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #693407;
    margin-bottom: 0.5rem;
}

.active-category-info p {
    color: #666;
    font-size: 1rem;
}

/* شاشة التحميل */
.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
}

.spinner-container {
    position: relative;
}

.spinner-outer {
    width: 4rem;
    height: 4rem;
    border: 4px solid #f5e6d8;
    border-top: 4px solid #693407;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-inner {
    width: 3rem;
    height: 3rem;
    border: 4px solid transparent;
    border-top: 4px solid #8a4a0a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* شبكة الأصناف */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* بطاقة الصنف */
.menu-item-card {
    background: linear-gradient(135deg, #693407, #412106);
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
}

.menu-item-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 5%;
    right: 5%;
    height: 20px;
    background: none;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.menu-item-card:hover::after {
    opacity: 0;
}

.menu-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 1rem;
}

.menu-item-card:hover::before {
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

.menu-item-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-color: #693407;
}

.card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .card-image {
    filter: brightness(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.menu-item-card:hover .image-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.view-image-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-item-card:hover .view-image-btn {
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.view-image-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #693407;
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* فرض ظهور السعر مباشرة تحت الشرح بغض النظر عن حجم الشاشة */
.card-content {
    /* نتأكد أن المحتوى عمودي لفرض ترتيب العناصر */
    display: flex;
    flex-direction: column;
}

/* ترتيب العناصر لضمان الوصف أولاً */
.card-description {
    order: 1;
}

/* السعر ثابت الظهور تحت الشرح */
.card-price {
    order: 2;
    flex: 0 0 auto;        /* لا ينكمش ولا يتمدد */
    margin-top: 0.5rem;
    align-self: center;    /* محاذاة وسط العرض داخل البطاقة */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* التذييل يظل في الأسفل دائماً */
.card-footer {
    order: 4;
    margin-top: auto; /* يدفع التذييل لأسفل البطاقة */
}

.card-header {
    margin-bottom: 1rem;
    min-height: 60px;
}

.card-title-ar {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.3;
    text-align: center;
}

.menu-item-card:hover .card-title-ar {
    color: #f0d4b3;
}

.card-title-en {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
    font-style: italic;
}

.card-description {
    margin-bottom: 1.5rem; /* زيادة المسافة بين الشرح والسعر */
}

.card-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
    /* إزالة الخصائص التي تقص النص للسماح بظهوره كاملاً */
    display: block;
    overflow: visible;
    white-space: normal;
 }

.card-description .desc-en {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 0.5rem; /* إضافة مسافة بين الوصف العربي والإنجليزي */
    font-style: italic;
}

/* إخفاء الفقرات الفارغة لتجنب إضافة مسافات غير ضرورية */
.card-description p:empty {
    display: none;
}

.card-price {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 40px;
    justify-content: center;
    align-items: center;
}

.price-badge {
    background: #38713a;      /* أخضر داكن */
    color: #fff;              /* نص أبيض */
    padding: 0.35rem 1.2rem;  /* مساحة داخلية مناسبة */
    border-radius: 22px;      /* حواف دائرية */
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(56, 113, 58, 0.13);
    display: inline-block;
    margin: 0.2rem;
    letter-spacing: 1px;
    border: none;
    text-align: center;
}

.card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    background: none;
    min-height: 70px; /* حسب الحاجة */
}

.footer-info-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-info-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: none;
    min-width: 0;
}

.footer-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.footer-info-item:hover::before {
    left: 100%;
}

.footer-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-info-item:hover .footer-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.footer-icon svg {
    width: 1rem;
    height: 1rem;
    color: #fff;
    stroke-width: 2;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.footer-text-primary {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-text-secondary {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

/* تحسين للأجهزة المحمولة */
@media (max-width: 480px) {
    .footer-info-grid {
        gap: 0.25rem;
    }
    
    .footer-info-item {
        padding: 0.25rem;
    }
    
    .footer-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .footer-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    .footer-text-primary {
        font-size: 0.75rem;
    }
    
    .footer-text-secondary {
        font-size: 0.6rem;
    }
}

/* رسالة عدم وجود أصناف */
.no-items {
    text-align: center;
    padding: 4rem 0;
}

.no-items-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #693407;
}

.no-items h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #693407;
    margin-bottom: 0.5rem;
}

.no-items p {
    color: #666;
}

/* الشريط السفلي */
.footer {
    background: #412106;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo-circle {
    background: #fff !important;
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-img {
    width: 220px !important;
    height: 220px !important;
    object-fit: contain;
}

.footer-logo-fallback {
    width: 3rem;
    height: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.footer-name-ar {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-name-en {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-thanks-ar {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-thanks-en {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* نافذة عرض الصورة */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.modal-content {
    position: relative;
    max-width: 64rem;
    max-height: 90vh;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: white;
}

.modal-close svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #333;
}

.modal-image-container {
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-image-title {
    display: none;
}

.modal-image-title h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-flex {
        flex-direction: row;
        gap: 1rem;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .header-social,
    .header-order {
        flex: none;
    }
    
    .header-social {
        order: 3;
    }
    
    .header-title {
        order: 2;
        flex: 1 1 0;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    .header-order {
        order: 1;
    }
    
    .logo-container {
        margin: 0 auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: 60px;
    }
    
    .logo-img {
        width: 55px !important;
        height: 55px !important;
        object-fit: contain;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* تعديلات البطاقات للعرض المزدوج */
    .menu-item-card {
        border-radius: 0.75rem;
    }
    
    .card-image-container {
        height: 150px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title-ar {
        font-size: 1rem;
    }
    
    .card-title-en {
        font-size: 0.8rem;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-flex {
        gap: 0.5rem;
        padding: 0.75rem 0;
        justify-content: space-between;
    }
    
    .header-social {
        gap: 0.25rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    /* تعديلات البطاقات للعرض المزدوج */
    .card-image-container {
        height: 120px;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .card-header {
        margin-bottom: 0.5rem;
        min-height: 40px;
    }
    
    .card-title-ar {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .card-title-en {
        font-size: 0.7rem;
    }
    
    .card-description {
        margin-bottom: 0.5rem;
    }
    
    .card-price {
        margin-bottom: 0.5rem;
        min-height: 30px;
    }
    
    .price-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
        margin: 0.1rem;
    }
    
    .card-footer {
        padding-top: 0.5rem;
    }
    
    .view-image-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .view-image-btn svg {
        width: 1.2rem;
        height: 1.2rem;
    }
 
     /* تعديل تأثير الانعكاس للبطاقات */
     .menu-item-card::after {
         bottom: -10px;
         height: 10px;
     }
}
    
    .order-btn {
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
    }
    
    .order-main {
        font-size: 1rem;
    }
    
    .order-phone {
        font-size: 0.8rem;
    }
    
    .phone-icon {
        width: 20px;
        height: 20px;
    }

/* تأثيرات إضافية */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحديد النص */
::selection {
    background-color: #693407;
    color: white;
}

/* التركيز */
button:focus,
input:focus {
    outline: 2px solid #693407;
    outline-offset: 2px;
}

/* شريط التمرير المخصص */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #693407;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a4a0a;
}

.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* الشريط السفلي */
.footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-title {
  flex: 1;
  text-align: center;
  order: 2;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
  order: 1;
  justify-content: flex-start;
}
@media (max-width: 700px) {
  .header-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between !important;
    gap: 0;
    padding: 0 0.5rem;
    min-height: 60px;
  }
  .header-social,
  .header-order {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }
  .header-title {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
  }
  .logo-container {
    margin: 0 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 60px;
  }
  .logo-img {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain;
  }
}
@media (max-width: 480px) {
    .header-flex {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        padding: 0 1rem;
    }
    .logo-container {
        order: 1;
        margin: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
    .logo-circle {
        padding: 0.2rem;
    }
    .logo-img, .logo-fallback {
        width: 2.2rem;
        height: 2.2rem;
    }
    .header-title {
        order: 2;
        flex: 1 1 0;
        text-align: right;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
        padding: 0;
        direction: rtl;
    }
    .restaurant-name-ar {
        font-size: 1.3rem;
        line-height: 1.1;
        margin: 0;
    }
    .restaurant-name-en {
        font-size: 0.85rem;
        line-height: 1.1;
        margin: 0;
        color: #333;
        opacity: 0.8;
        display: block;
    }
}

@media (max-width: 480px) {
    .header-flex {
        position: relative !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        padding: 0 1rem;
        display: flex;
    }
    .logo-container {
        position: absolute !important;
        right: 1rem !important;
        left: unset !important;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 !important;
        display: flex;
        align-items: center;
        height: 100%;
        z-index: 2;
    }
    .logo-circle {
        padding: 0.2rem;
    }
    .logo-img, .logo-fallback {
        width: 3rem;
        height: 3rem;
    }
    .header-title {
        position: relative !important;
        margin: 0 auto !important;
        text-align: center !important;
        flex: unset !important;
        align-self: center !important;
        display: block !important;
        padding: 0 !important;
        direction: rtl;
        z-index: 1;
    }
    .restaurant-name-ar {
        font-size: 1.3rem;
        line-height: 1.1;
        margin: 0;
    }
    .restaurant-name-en {
        font-size: 0.85rem;
        line-height: 1.1;
        margin: 0;
        color: #333;
        opacity: 0.8;
        display: block;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 4.2rem; /* أو height: 4.2rem; حسب الحاجة */
        padding: 0.5rem 0;
        box-sizing: border-box;
    }
    .header-flex {
        position: relative !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
        padding: 0 1rem;
        display: flex;
        height: 100%;
        min-height: 4.2rem; /* نفس ارتفاع الشريط */
    }
    .logo-container {
        position: absolute !important;
        right: 1rem !important;
        left: unset !important;
        top: 50%;
        transform: translateY(-50%);
        margin: 0 !important;
        display: flex;
        align-items: center;
        height: 3rem;
        z-index: 2;
    }
    .logo-circle {
        width: 5rem;
        height: 5rem;
    }
    .logo-img, .logo-fallback {
        width: 3rem;
        height: 3rem;
    }
    .header-title {
        position: relative !important;
        margin: 0 auto !important;
        text-align: center !important;
        flex: unset !important;
        align-self: center !important;
        display: block !important;
        padding: 0 !important;
        direction: rtl;
        z-index: 1;
    }
    .restaurant-name-ar {
        font-size: 1.3rem;
        line-height: 1.1;
        margin: 0;
    }
    .restaurant-name-en {
        font-size: 0.85rem;
        line-height: 1.1;
        margin: 0;
        color: #333;
        opacity: 0.8;
        display: block;
    }
}

@media (max-width: 768px) {
  .header-flex {
    justify-content: center !important;
  }
  .header-title {
    flex: 1 !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .header-flex {
    justify-content: center !important;
  }
  .header-title {
    flex: 1 !important;
    justify-content: center !important;
  }
}

.menu-item-card .card-title-ar,
.menu-item-card .card-title-en,
.menu-item-card .card-description,
.menu-item-card .card-price {
    color: #fff;
}

.menu-item-card,
.menu-item-card * {
    color: #fff !important;
}

/* أضف أو عدل هذا الجزء في ملف CSS الخاص بك */
.menu-item-card .image-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 0.75rem 0.75rem 0 0;
}

.menu-item-card:hover .image-overlay {
  opacity: 1;
}

.menu-item-card .view-image-btn svg {
  stroke: #fff;
  transition: stroke 0.2s;
}

.menu-item-card:hover .view-image-btn svg {
  stroke: #693407;
}

.card-extra-info {
    order: 3;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* اجعل الشعار أوضح وأكبر على الشاشات الصغيرة */
@media (max-width: 800px) {
  .header-title .logo-container {
    width: 100px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-title .logo-img {
    width: 65px !important;
    height: 65px !important;
    object-fit: contain;
    display: block;
  }
  .header-flex {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .header-social, .header-order {
    margin: 0.5rem 0;
  }
}
