* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #1a252f;
    --whatsapp: #25D366;
    --card-bg: rgba(255, 255, 255, 0.08);
    --dark-blue: #1a2a3a;
    --darker-blue: #15202b;
    --row-odd: rgba(25, 35, 45, 0.7);
    --row-even: rgba(30, 40, 50, 0.7);
}
html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    font-size: 16px;
}
body {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
}
p, span, label, a, button, input, textarea {
    font-weight: 700;
}
button, input, select, textarea {
    font-size: inherit;
}
html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

body {
    background: linear-gradient(135deg, #0f1c27, #1a2a3a);
    color: var(--light);
    min-height: 100vh;
    direction: rtl;
}

/* شريط التمرير العلوي */
.marquee-container {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 10px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    margin: 6px 8px;
}

.marquee {
    display: inline-block;
    padding-right: 100%;
    animation: marquee 20s linear infinite;
    -webkit-animation: marquee 20s linear infinite;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.95rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
@-webkit-keyframes marquee {
    0% { -webkit-transform: translateX(0); }
    100% { -webkit-transform: translateX(100%); }
}

/* القسم البطولي */
.hero-section {
    position: relative;
    width: 100%;
    height: 36vh;
    min-height: 220px;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.7));
}

.hero-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: blur(18px) brightness(0.85);
    transform: none;
    -webkit-transform: none;
}

.hero-section:hover .hero-logo {
    transform: none;
    -webkit-transform: none;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-fg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

.hero-glass {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-top: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
    z-index: 3;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    min-height: 56px;
    height: 56px;
    box-sizing: border-box;
}
.hero-glass.hero-compact {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 10px;
}
.hero-location {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    justify-self: start;
    min-width: 0;
}
.hero-location-link {
    color: white;
    display: inline-flex;
    align-items: center;
    height: 36px;
    gap: 6px;
    flex-direction: row;
    text-decoration: none;
}
.hero-location-link i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: var(--secondary);
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-location-link span {
    display: none;
}
.hero-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
}
.hero-phone-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: var(--secondary);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
}
.hero-hub-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    grid-column: 2;
    justify-self: center;
    z-index: 5;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.hero-hub-btn i {
    font-size: 1rem;
}
.hero-hub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(52,152,219,0.35);
    background: rgba(52,152,219,0.18);
    border-color: rgba(52,152,219,0.5);
}
.hero-socials {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px);
    display: none;
    gap: 10px;
    align-items: center;
    justify-content: center;
    z-index: 8;
    grid-column: unset;
    pointer-events: auto;
}
.hero-socials.show {
    display: inline-flex;
    animation: popIn 0.25s ease;
    -webkit-animation: popIn 0.25s ease;
}
.hero-socials.show .hero-social-link {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    animation: iconIn 0.25s ease forwards;
    -webkit-animation: iconIn 0.25s ease forwards;
}
.hero-socials.show .hero-social-link:nth-child(1) { animation-delay: 0s; }
.hero-socials.show .hero-social-link:nth-child(2) { animation-delay: 0.05s; }
.hero-socials.show .hero-social-link:nth-child(3) { animation-delay: 0.1s; }
.hero-socials.show .hero-social-link:nth-child(4) { animation-delay: 0.15s; }
@keyframes popIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@-webkit-keyframes popIn {
    from { opacity: 0; -webkit-transform: translateY(8px) scale(0.98); }
    to { opacity: 1; -webkit-transform: translateY(0) scale(1); }
}
@keyframes iconIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@-webkit-keyframes iconIn {
    from { opacity: 0; -webkit-transform: translateY(6px) scale(0.98); }
    to { opacity: 1; -webkit-transform: translateY(0) scale(1); }
}

.hero-social-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    pointer-events: auto; /* إعادة تفعيل النقر للأزرار نفسها */
}
.hero-social-link i {
    font-size: 0.9rem;
}
/* تلوين العلامات */
.hero-social-link.whatsapp {
    background: #25D366;
    color: white;
}
.hero-social-link.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}
.hero-social-link.facebook {
    background: #1877F2;
    color: white;
}

.brand-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    text-align: center;
}

.brand-card {
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-justify-content: center;
    -webkit-align-items: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 12px 18px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

#socialHub {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px auto 0 auto;
}
.social-hub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.social-hub-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.social-hub-btn i {
    font-size: 1.1rem;
}
.social-hub-panel {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.hub-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
}
.hub-link i {
    font-size: 0.9rem;
}
.hub-link.whatsapp { background: #25D366; color: white; }
.hub-link.facebook { background: #1877F2; color: white; }
.hub-link.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: white; }
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

.restaurant-name {
    color: white;
    font-size: 3.2rem;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--secondary), #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.brand-card .restaurant-name {
    font-size: 2.1rem;
    line-height: 1.2;
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center !important;
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
    background: none;
    -webkit-background-clip: initial;
    text-shadow: none;
    padding-bottom: 2px;
}

@media (max-width: 480px) {
    .hero-location-link span {
        max-width: 50vw;
    }
}
@media (max-width: 360px) {
    .hero-location-link span {
        max-width: 45vw;
    }
    .hero-social-link {
        width: 26px;
        height: 26px;
    }
    .hero-phone-link {
        width: 30px;
        height: 30px;
    }
}

.restaurant-slogan {
    color: var(--secondary);
    font-size: 1.6rem;
    margin-top: 15px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* عناصر التحكم في القائمة */
.menu-controls {
    background: var(--footer-bg, rgba(0,0,0,0.85));
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.layout-switch {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: 0;
    flex: 0 0 auto;
}

.layout-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.layout-toggle-btn i {
    font-size: 1.2rem;
}
.layout-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(52,152,219,0.35);
    background: rgba(52,152,219,0.18);
    border-color: rgba(52,152,219,0.5);
}

.layout-options {
    display: none;
    background: var(--footer-bg, rgba(0,0,0,0.85));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}
.layout-options.show {
    display: inline-flex;
}
.layout-option {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.layout-option i {
    font-size: 1rem;
}
.layout-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(52,152,219,0.3);
    border-color: rgba(52,152,219,0.5);
    background: rgba(52,152,219,0.18);
}
.layout-option.active {
    background: var(--secondary);
    color: #0e1724;
    border-color: transparent;
}

.categories-tabs {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 5px; /* تقليل البادينغ */
    position: sticky;
    top: 68px; /* تحت شريط البحث المثبت */
    z-index: 1500; /* أقل من شريط البحث */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 0; /* إزالة الحواف الدائرية للشريط المثبت */
    margin: 0;
    width: 100%;
    scroll-behavior: smooth; /* تنقل سلس */
    -webkit-overflow-scrolling: touch;
}

/* فرض التدرج على شريط التبويبات مهما كانت القواعد الأخرى */
#categoriesTabs {
    background: transparent !important;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse; /* صورة على اليمين للنص العربي */
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 8px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    -webkit-transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-size: 0.95rem;
    font-weight: 600; /* تثبيت وزن الخط لمنع تمدد/انكماش أثناء التفعيل */
    height: 36px; /* تثبيت الارتفاع لمنع القفزات */
    line-height: 1; /* اتساق داخلي */
    box-sizing: border-box; /* تضمين الحدود في الأبعاد */
    flex: 0 0 auto; /* منع التمدد */
}

.category-tab:hover {
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: none;
}

.category-tab.active {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    color: #fff;
    border-color: transparent;
    position: relative;
    /* Remove transform or margin changes to prevent layout shifts */
    transform: none;
    margin: 0;
}

.category-tab.active::after {
    /* Simplify active state to avoid layout calculation issues */
    content: none;
}

.category-tab .tab-label {
    line-height: 1;
}

.category-tab .cat-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.category-tab .cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tab.active .cat-thumb {
    border-color: rgba(255,255,255,0.5);
}

.branch-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Transparent dark background */
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    z-index: 3000;
    display: none;
}

.branch-selector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.branch-selector-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for content */
    border: none;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branch-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.branch-selector-header h2 {
    color: var(--secondary);
    font-size: 1.4rem;
}

.close-branch-selector {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

.branch-selector-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.use-my-location {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.branches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.branch-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px;
}

.branch-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.branch-meta {
    color: #c9d1d9;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.choose-branch-btn {
    background: var(--secondary);
    border: none;
    color: var(--dark);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.search-container {
    position: relative;
    width: 70%;
    max-width: 520px;
    margin: 0;
    flex: 1 1 520px;
}

.change-branch-btn {
    display: none; /* Hidden as requested */
    margin-right: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.change-branch-btn:hover {
    border-color: rgba(52, 152, 219, 0.5);
}

/* منع التكبير على الجوال */
.search-input {
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--secondary);
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    color: white;
    font-size: 16px !important; /* 16px لمنع التكبير التلقائي على iOS */
    width: 100%;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    touch-action: manipulation !important;
}

/* تحسين للشاشات الكبيرة */
@media (min-width: 769px) {
    .search-input {
        font-size: 1.1rem !important; /* العودة للحجم الأصلي على الشاشات الكبيرة */
    }
}

/* لمنع التكبير على iOS Safari */
@supports (-webkit-touch-callout: none) {
    .search-input {
        font-size: 16px !important;
        line-height: 1.4;
    }
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.3rem;
}

.search-status {
    text-align: center;
    padding: 20px;
    color: #aaaaaa;
    font-size: 1.2rem;
    display: none;
    background: rgba(0,0,0,0.8);
    border-radius: 10px;
    margin: 10px auto;
    max-width: 600px;
}

.search-status.active {
    display: block;
    animation: fadeIn 0.3s ease;
    -webkit-animation: fadeIn 0.3s ease;
}

.search-highlight {
    background-color: rgba(52, 152, 219, 0.3);
    border-radius: 3px;
    padding: 0 3px;
    color: var(--secondary);
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* قسم الأصناف */
.categories-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: 40px;
    position: relative;
    animation: fadeInUp 0.8s ease;
    -webkit-animation: fadeInUp 0.8s ease;
}

.categories-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    cursor: pointer;
    position: relative;
    height: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.category-card:hover {
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.category-img-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    -webkit-transition: transform 0.5s;
}

.category-card:hover .category-img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.category-name {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.category-count {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* القائمة */
.menu-container {
    display: none;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
    -webkit-animation: fadeIn 0.5s ease;
}

.back-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.back-btn {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.45);
    text-decoration: none;
}

.back-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

.back-btn i {
    font-size: 1.2rem;
}

.menu-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.menu-items-container.view-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.menu-items-container.view-list .food-item {
    flex-direction: row-reverse;
    min-height: 128px;
    align-items: stretch;
}

.menu-items-container.view-list .food-img-container {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.menu-items-container.view-grid .food-img-container {
    height: 180px;
}
.menu-items-container.view-grid .add-to-cart-btn {
    margin-top: auto;
}
.menu-items-container.view-grid .food-item.no-image {
    align-self: end;
}
.menu-items-container.view-grid .food-item.no-image .food-content {
    justify-content: flex-end;
}
.menu-items-container.view-grid.cols-2 .food-item.no-image .food-content {
    justify-content: flex-end;
}
.menu-items-container.view-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
}
/* عند عرض شبكي بعمودين: نفس الشكل لكن أصغر */
.menu-items-container.view-grid.cols-2 .food-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}
.menu-items-container.view-grid.cols-2 .food-content {
    padding: 12px;
}
.menu-items-container.view-grid.cols-2 .food-name {
    font-size: 1.25rem;
}
.menu-items-container.view-grid.cols-2 .food-desc {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-items-container.view-grid.cols-2 .food-price {
    font-size: 1rem;
}
.menu-items-container.view-grid.cols-2 .add-to-cart-btn {
    font-size: 0.9rem;
    padding: 7px 10px;
}
@media (max-width: 992px) {
    .menu-items-container.view-grid.cols-2 { gap: 16px; }
    .menu-items-container.view-grid.cols-2 .food-name { font-size: 1.2rem; }
    .menu-items-container.view-grid.cols-2 .food-desc { font-size: 0.8rem; }
    .menu-items-container.view-grid.cols-2 .food-price { font-size: 0.95rem; }
    .menu-items-container.view-grid.cols-2 .add-to-cart-btn { font-size: 0.85rem; padding: 6px 10px; }
}
@media (max-width: 480px) {
    .menu-items-container.view-grid.cols-2 { gap: 12px; }
    .menu-items-container.view-grid.cols-2 .food-name { font-size: 1.1rem; }
    .menu-items-container.view-grid.cols-2 .food-desc { font-size: 0.8rem; }
    .menu-items-container.view-grid.cols-2 .food-price { font-size: 0.95rem; }
    .menu-items-container.view-grid.cols-2 .add-to-cart-btn { font-size: 0.8rem; padding: 6px 8px; }
}

.menu-items-container.view-list .food-img {
    border-radius: 12px;
}

.menu-items-container.view-list .food-content {
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
}

.menu-items-container.view-list .food-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.menu-items-container.view-list .food-name {
    margin-bottom: 0;
    display: block;
    font-size: 1.1rem;
}

.menu-items-container.view-list .food-desc {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.menu-items-container.view-list .food-price {
    font-size: 1rem;
}

.menu-items-container.view-list .add-to-cart-btn {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 1rem;
    align-self: flex-start;
}

.menu-items-container.view-list .food-category {
    display: none;
}

/* إظهار وسم الصنف عند تفعيل علامة show-category في عرض التبويبات */
.menu-items-container.view-list.show-category .food-category {
    display: inline-block !important;
}

@media (max-width: 768px) {
    .menu-items-container.view-list .food-item {
        flex-direction: row-reverse;
    }
    
    .menu-items-container.view-list .food-img-container {
        width: 80px;
        height: 80px;
    }
}
/* ضبط حقل الاختيار (select) في وضع التبويبات وإضافة مسافة واضحة قبل زر السلة */
.menu-items-container.view-list .variant-select-row {
    margin-top: 8px;
    margin-bottom: 10px;
    width: 100%;
}
.menu-items-container.view-list .variant-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    border-radius: 10px;
}
.menu-items-container.view-list .add-to-cart-btn {
    height: 34px;
    padding: 8px 16px;
    font-size: 1.05rem;
    margin-top: 10px;
    align-self: flex-start; /* مطابقة الشبكة */
}

/* عند عدم وجود صورة ووجود حقل الأحجام/الأسعار: توسيط زر السلة */
.menu-items-container.view-grid .food-item.no-image .variant-select-row + .add-to-cart-btn {
    align-self: center;
}
.menu-items-container.view-list .food-item.no-image .variant-select-row + .add-to-cart-btn {
    align-self: center;
}

.food-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease;
    -webkit-animation: fadeIn 0.5s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.food-item:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.3);
}

.food-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    -webkit-transition: transform 0.5s;
}

.food-item:hover .food-img {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

.food-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.food-item.no-image .food-content {
    padding: 10px;
}

.food-name {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}
.food-item.no-image .food-name {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.food-price {
    color: var(--secondary);
    font-weight: 700;
}

/* اختيار المتغيرات (أحجام/أنواع) */
.variant-select-row {
    margin-top: 8px;
}
.variant-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 2px solid var(--secondary);
    background: rgba(52, 152, 219, 0.15);
    color: #fff;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(180deg, rgba(52, 152, 219, 0.22), rgba(52, 152, 219, 0.12));
}
.variant-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.35);
}

/* تعميم ألوان الموقع لحقل الاختيارات (select) */
select {
    border: 2px solid var(--secondary);
    background: rgba(52, 152, 219, 0.15);
    color: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(180deg, rgba(52, 152, 219, 0.22), rgba(52, 152, 219, 0.12));
}
select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.35);
}
select option, select optgroup {
    background: #1b2a38; /* قريب من primary الداكن */
    color: #fff;
}

.food-desc {
    color: #aaaaaa;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}
.food-item.no-image .food-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.food-category {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* زر إضافة إلى السلة */
.add-to-cart-btn {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
.food-item.no-image .add-to-cart-btn {
    align-self: flex-start;
    padding: 8px 14px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9, var(--secondary));
}

/* تغيير لون زر الإضافة مؤقتاً عند النقر في عرض الشبكة */
.menu-items-container.view-grid .add-to-cart-btn.added {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 8px 22px rgba(39, 174, 96, 0.45);
}

.add-to-cart-btn i {
    font-size: 1.1rem;
}

/* ===== تحكم الحجم عبر إعدادات عرض المنيو ===== */
.menu-items-container.font-small .food-name { font-size: 1.25rem; }
.menu-items-container.font-small .food-desc { font-size: 0.9rem; }
.menu-items-container.font-small .food-price { font-size: 1rem; }
.menu-items-container.font-small .add-to-cart-btn { font-size: 0.9rem; padding: 8px 12px; }
.menu-items-container.font-small.view-list .food-name { font-size: 1rem; }
.menu-items-container.font-small.view-list .food-desc { font-size: 0.85rem; }
.menu-items-container.font-small.view-list .food-price { font-size: 0.95rem; }
.menu-items-container.font-small.view-list .add-to-cart-btn { font-size: 0.9rem; padding: 7px 10px; }

.menu-items-container.font-medium .food-name { font-size: 1.5rem; }
.menu-items-container.font-medium .food-desc { font-size: 1rem; }
.menu-items-container.font-medium .food-price { font-size: 1.1rem; }
.menu-items-container.font-medium .add-to-cart-btn { font-size: 1rem; padding: 10px 14px; }
.menu-items-container.font-medium.view-list .food-name { font-size: 1.1rem; }
.menu-items-container.font-medium.view-list .food-desc { font-size: 0.95rem; }
.menu-items-container.font-medium.view-list .food-price { font-size: 1rem; }
.menu-items-container.font-medium.view-list .add-to-cart-btn { font-size: 1rem; padding: 10px 14px; }

.menu-items-container.font-large .food-name { font-size: 1.7rem; }
.menu-items-container.font-large .food-desc { font-size: 1.1rem; }
.menu-items-container.font-large .food-price { font-size: 1.2rem; }
.menu-items-container.font-large .add-to-cart-btn { font-size: 1.05rem; padding: 12px 16px; }
.menu-items-container.font-large.view-list .food-name { font-size: 1.25rem; }
.menu-items-container.font-large.view-list .food-desc { font-size: 1rem; }
.menu-items-container.font-large.view-list .food-price { font-size: 1.1rem; }
.menu-items-container.font-large.view-list .add-to-cart-btn { font-size: 1.05rem; padding: 10px 14px; }
.add-to-cart-btn.added {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    animation: pulse-green 0.5s;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* لايت بوكس للصور */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 3000;
    text-align: center;
    overflow: auto;
    padding: 20px;
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    margin: 5vh auto;
    border: 3px solid var(--secondary);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary);
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.lightbox-caption {
    color: white;
    font-size: 1.5rem;
    margin-top: 15px;
    text-align: center;
    max-width: 80%;
    margin: 15px auto;
}

/* ===== سلة الطلبات ===== */
.cart-icon-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
}

.cart-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid white;
    animation: pulse-blue 2s infinite; /* النبض الأزرق */
}

.cart-icon:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.5);
}

.cart-icon i {
    font-size: 1.8rem;
    color: white;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid white;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: var(--dark);
    z-index: 2500;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    transition: left 0.4s ease;
    display: flex;
    flex-direction: column;
    border-right: 3px solid var(--secondary);
    direction: rtl;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.cart-sidebar.open {
    left: 0;
}

.cart-header {
    background: var(--footer-bg, rgba(0, 0, 0, 0.9));
    padding: 25px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    padding-bottom: 160px;
}

/* ===== عناصر السلة الجديدة مع الصور ===== */
.cart-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 6px;
    animation: none;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.cart-item-name {
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    flex: 1;
    margin-left: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding: 3px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-price {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* الأزرار على اليمين */
    gap: 4px;
    flex: 0 0 auto;
}

/* أزرار الكمية - تكبير حجم الأزرار (+) و (-) */
.quantity-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--secondary); /* زيادة سماكة الحدود */
    color: var(--secondary);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    font-weight: bold;
}

.quantity-btn:hover {
    background: var(--secondary);
    color: white;
}
.quantity-btn.active-press {
    animation: press 180ms ease;
}

.quantity-display {
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    background: rgba(52, 152, 219, 0.2); /* خلفية خفيفة */
    border-radius: 8px;
    padding: 1px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    flex: 1 1 auto; /* يجعل العدد في وسط البطاقة */
}
.quantity-display.bump {
    animation: bump 250ms ease;
}

/* زر الحذف */
.remove-item {
    background: rgba(52, 152, 219, 0.2); /* لون أزرق متناسق مع الموقع */
    border: 2px solid var(--secondary); /* حدود زرقاء */
    color: var(--secondary); /* لون أزرق */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.9rem;
    flex: 0 0 auto;
}
@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
@keyframes press {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ألوان مخصصة للأزرار */
.quantity-btn.decrease {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(231, 76, 60, 0.12);
}
.quantity-btn.increase {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(52, 152, 219, 0.12);
}
.quantity-btn.decrease:hover {
    background: var(--accent);
    color: white;
}
.quantity-btn.increase:hover {
    background: var(--secondary);
    color: white;
}
.remove-item {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(231, 76, 60, 0.15);
}
.remove-item:hover {
    background: var(--accent);
    color: white;
}

.remove-item:hover {
    background: var(--secondary); /* أزرق عند التمرير */
    color: white;
    transform: scale(1.1);
}

/* ===== تحسين ملاحظات الطلب ===== */
.cart-notes-container {
    padding: 15px 20px; /* تصغير الحواف */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.cart-notes-container h3 {
    color: var(--secondary);
    font-size: 1rem; /* تصغير حجم العنوان */
    margin-bottom: 10px; /* تصغير المسافة */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* حقل الملاحظات - تصغير حجمه وجعله يتوسع تلقائياً */
.cart-notes-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    padding: 10px; /* تصغير الحواف الداخلية */
    color: white;
    font-size: 0.85rem; /* تصغير حجم الخط */
    resize: none; /* منع تغيير الحجم يدوياً */
    min-height: 50px; /* تصغير الارتفاع الأدنى */
    max-height: 150px; /* تحديد ارتفاع أقصى */
    transition: all 0.3s;
    direction: rtl;
    line-height: 1.4;
    overflow-y: auto;
    font-family: inherit;
}

.cart-notes-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.cart-notes-textarea::placeholder {
    color: #888888;
    font-size: 0.85rem;
}

.cart-footer {
    position: sticky;
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 2600;
    background: var(--footer-bg-strong, rgba(0, 0, 0, 0.95));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 16px;
    border-top: 2px solid var(--secondary);
    box-shadow: 0 -6px 16px rgba(0,0,0,0.35);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* تصغير المسافة */
}

.cart-total span:first-child {
    color: white;
    font-size: 1.2rem; /* تصغير حجم الخط قليلاً */
}

.cart-total span:last-child {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.6rem; /* تصغير حجم الخط قليلاً */
}

/* ===== تحسين أزرار السلة ===== */
.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.clear-cart {
    padding: 12px 18px;
    font-size: 1.05rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    margin: 0 5px;
}

.clear-cart:hover {
    background: var(--accent);
    color: white;
}

.checkout-btn {
    padding: 14px 22px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 2;
    margin: 0 5px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.checkout-btn i {
    font-size: 1.3rem;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #aaaaaa;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.1);
}

.empty-cart p {
    font-size: 1.2rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    animation: fadeIn 0.3s ease;
}

.cart-overlay.active {
    display: block;
}

/* الفوتر */
.footer {
    background: var(--footer-bg, rgba(0, 0, 0, 0.9));
    padding: 50px 20px 30px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: right;
}

.footer-section h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50%;
    height: 2px;
    background: var(--secondary);
}

.footer-section p, .footer-section a {
    color: #aaaaaa;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
    -webkit-transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-link i {
    width: 25px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
}

.social-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
}

.social-link i {
    font-size: 1.5rem;
    color: white;
}

.copyright {
    margin-top: 40px;
    color: #aaaaaa;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.credits {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.credits::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    z-index: -1;
}

.credits-text {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.credits-name {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

.credits-whatsapp {
    background-color: var(--whatsapp); /* إرجاع اللون الأخضر */
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    animation: pulse 2s infinite; /* النبض الأخضر */
    text-decoration: none;
}

.credits-whatsapp:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
}

/* أنيميشن النبض الأزرق - لسلة الطلبات فقط */
@keyframes pulse-blue {
    0% { 
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); /* اللون الأزرق */
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); /* أزرق شفاف */
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); /* أزرق شفاف */
    }
}
@-webkit-keyframes pulse-blue {
    0% { 
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); /* اللون الأزرق */
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); /* أزرق شفاف */
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); /* أزرق شفاف */
    }
}

/* أنيميشن النبض الأخضر - للواتساب فقط */
@keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); /* اللون الأخضر */
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); /* أخضر شفاف */
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); /* أخضر شفاف */
    }
}
@-webkit-keyframes pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); /* اللون الأخضر */
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); /* أخضر شفاف */
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); /* أخضر شفاف */
    }
}

/* مؤشر التحميل */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--secondary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
    margin: 50px auto;
}

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

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* رسالة عدم وجود نتائج */
.no-results {
    text-align: center;
    padding: 50px;
    color: #bdc3c7;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    margin: 20px 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.no-results i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #e74c3c;
}

/* ===== تحسينات للعرض على الجوال ===== */
@media (max-width: 1200px) {
    .restaurant-name {
        font-size: 2.8rem;
    }
    .restaurant-slogan {
        font-size: 1.3rem;
    }
    .categories-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .menu-controls {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .search-container {
        width: 72%;
        max-width: 520px;
        margin: 0;
        flex: 1 1 520px;
    }
    
    .hero-section {
        height: 34vh;
    }
    .categories-tabs {
        top: 64px;
    }
    
    
    .brand-card .restaurant-name {
        font-size: 1.9rem;
        display: block;
        width: 100%;
        margin: 0 auto;
        text-align: center !important;
        color: var(--secondary);
        -webkit-text-fill-color: var(--secondary);
    }
    
    .categories-container {
        gap: 20px;
    }
    
    .menu-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 32vh;
        min-height: 210px;
    }
    .hero-logo-fg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .categories-tabs {
        top: 60px;
    }
    
    .hero-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .restaurant-name {
        font-size: 2.3rem;
    }
    
    .brand-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        -webkit-justify-content: center;
        -webkit-align-items: center;
    }
    
    .restaurant-slogan {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    .menu-items-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        padding: 20px;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 25%;
        width: 50%;
    }
    
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .category-card {
        height: 220px;
    }
    
    .category-name {
        font-size: 1.6rem;
    }
    
    .search-input {
        padding: 10px 20px 10px 45px;
        font-size: 16px !important; /* التأكد من 16px على الجوال */
    }
    
    .search-icon {
        left: 15px;
    }
    
    .food-name {
        font-size: 1.2rem;
    }
    
    /* تعديلات سلة الطلبات للجوال */
    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
    
    .cart-icon-container {
        bottom: 20px;
        left: 20px;
    }
    
    .cart-icon {
        width: 60px;
        height: 60px;
    }
    
    .cart-icon i {
        font-size: 1.5rem;
    }
    
    .cart-badge {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    /* تحسينات لعناصر السلة على الجوال */
    .cart-item-content {
        padding: 8px;
        gap: 10px;
    }
    
    .cart-item-img {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-name {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .quantity-btn {
        width: 32px; /* تصغير قليلاً على الجوال */
        height: 32px;
        font-size: 1.3rem;
    }
    
    .quantity-display {
        min-width: 26px;
        font-size: 1.1rem;
    }
    
    .remove-item {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    
    .cart-notes-textarea {
        min-height: 45px;
        max-height: 120px;
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .clear-cart, .checkout-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .checkout-btn {
        padding: 10px 14px;
    }
    
    .cart-actions {
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 28vh;
        min-height: 170px;
    }
    .hero-logo-fg {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .categories-tabs {
        top: 56px;
    }
    
    
    .hero-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .restaurant-name {
        font-size: 2rem;
    }
    
    .brand-card {
        padding: 10px 14px;
        gap: 10px;
        border-radius: 14px;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    
    .brand-card .restaurant-name {
        font-size: 1.7rem;
        line-height: 1.2;
        padding-bottom: 2px;
    }
    
    .restaurant-slogan {
        font-size: 1rem;
        margin-top: 10px;
    }
    
    .menu-items-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        height: 200px;
    }
    
    .categories-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .back-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .credits {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-status {
        font-size: 1rem;
        padding: 15px;
    }
    
    /* تعديلات سلة الطلبات للشاشات الصغيرة */
    .cart-header {
        padding: 20px;
    }
    
    .cart-header h2 {
        font-size: 1.5rem;
    }
    
    .cart-total span:first-child {
        font-size: 1.1rem;
    }
    
    .cart-total span:last-child {
        font-size: 1.5rem;
    }
    
    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .cart-item-content {
        padding: 6px;
        gap: 8px;
    }
    
    .cart-item-img {
        width: 45px;
        height: 45px;
    }
    
    .cart-item-name {
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .quantity-display {
        min-width: 24px;
        font-size: 1rem;
    }
    
    .remove-item {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .clear-cart, .checkout-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .checkout-btn {
        padding: 8px 12px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .clear-cart, .checkout-btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .categories-container {
        grid-template-columns: 1fr !important;
    }
    
    .category-card {
        height: 180px !important;
    }
    
    .hero-section {
        height: 30vh !important;
    }
    
    .restaurant-slogan {
        font-size: 0.9rem !important;
    }
    
    .menu-items-container {
        grid-template-columns: 1fr !important;
        padding: 5px !important;
    }
    
    .food-item {
        margin: 0 10px 20px;
    }
    
    .search-input {
        font-size: 16px !important; /* الحفاظ على 16px */
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    
    .quantity-display {
        min-width: 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .cart-item-content {
        padding: 5px;
        gap: 6px;
    }
    
    .cart-item-img {
        width: 40px;
        height: 40px;
    }
    
    .cart-item-name {
        font-size: 0.75rem;
    }
    
    .cart-item-price {
        font-size: 0.75rem;
    }
    
    .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 1.05rem;
    }
    
    .quantity-display {
        min-width: 20px;
        font-size: 0.9rem;
    }
    
    .remove-item {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}

/* أنماط إضافية للإشعارات */
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* أنماط إضافية لسلة الطلبات */
.cart-notification {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.25s ease, fadeOut 0.25s ease 1.55s forwards;
    max-width: 300px;
}
.cart-notification .cn-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
    flex-shrink: 0;
}
.cart-notification .cn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-notification .cn-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--secondary);
}
.cart-notification .cn-detail {
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-notification .cn-meta {
    font-size: 0.8rem;
    color: #c9d1d9;
}
.cart-notification .cn-progress {
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), #2ecc71);
    border-radius: 9999px;
    margin-top: 6px;
    animation: toastProgress 1.8s linear forwards;
}
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.cart-session-notice {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 20px;
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-session-notice i {
    font-size: 1.2rem;
}

/* ===== إصلاحات جديدة للسلة ===== */
.add-to-cart-btn {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item {
    animation: slideIn 0.3s ease;
}

/* تحسين عرض الصور */
.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* أنماط إضافية لرسالة الوضع الأوفلاين */
.cart-session-notice {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 20px;
    text-align: center;
    color: #e74c3c;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.cart-session-notice i {
    font-size: 1rem;
    color: #e74c3c;
}

/* تحسينات لأزرار السلة في الوضع الأوفلاين */
.cart-actions.offline-mode {
    justify-content: center;
}

.cart-actions.offline-mode .clear-cart {
    width: 100%;
    max-width: 300px;
}

/* أنماط نموذج معلومات الزبون */
.customer-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3500;
}

.customer-info-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.customer-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.customer-info-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--secondary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: slideInUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.customer-info-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-info-header h2 {
    color: var(--secondary);
    font-size: 1.6rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-customer-info {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-customer-info:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.customer-info-form {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group label i {
    font-size: 1.1rem;
}

.customer-input, .customer-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.customer-input:focus, .customer-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.customer-textarea {
    resize: vertical;
    min-height: 80px;
    direction: rtl;
}

.location-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.get-location-btn {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    align-self: flex-start;
}

.get-location-btn:hover {
    background: var(--secondary);
    color: white;
}

.get-location-btn i {
    font-size: 1rem;
}

.location-status {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 20px;
}

.location-status.success {
    color: #2ecc71;
}

.location-status.error {
    color: #e74c3c;
}

.location-status.loading {
    color: var(--secondary);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.customer-info-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-customer-info, .confirm-order-btn {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cancel-customer-info {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.cancel-customer-info:hover {
    background: var(--accent);
    color: white;
}

.confirm-order-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
}

.confirm-order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.confirm-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.confirm-order-btn i {
    font-size: 1.2rem;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .customer-info-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .customer-info-header {
        padding: 15px;
    }
    
    .customer-info-header h2 {
        font-size: 1.4rem;
    }
    
    .customer-info-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .customer-input, .customer-textarea {
        padding: 10px 12px;
        font-size: 16px !important; /* لمنع التكبير على الجوال */
    }
    
    .customer-info-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .cancel-customer-info, .confirm-order-btn {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .customer-info-content {
        width: 98%;
        border-radius: 10px;
    }
    
    .customer-info-header h2 {
        font-size: 1.2rem;
    }
    
    .customer-info-form {
        padding: 15px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
}
