/* ==========================================================================
   Shawarma X Saj RESTAURANT - Modern Gourmet UI/UX Design System
   Built according to UI/UX Pro Max Intelligence Skill Rules
   ========================================================================== */

:root {
    /* Gourmet Dark Palette */
    --bg-body: #09120f;
    --bg-header: rgba(9, 18, 15, 0.92);
    --bg-card: #121e1a;
    --bg-card-hover: #172722;
    --bg-element: #192c26;
    --bg-element-hover: #223c34;

    /* Color Tokens */
    --color-primary: #dc2626;
    --color-primary-hover: #b91c1c;
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;
    --color-accent-glow: rgba(245, 158, 11, 0.25);
    
    --color-text: #ffffff;
    --color-text-muted: #9ca3af;
    --color-text-dim: #6b7280;
    
    --color-border: #1e332b;
    --color-border-glow: rgba(245, 158, 11, 0.4);
    
    --color-whatsapp: #25d366;
    --color-facebook: #1877f3;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 6px 20px rgba(245, 158, 11, 0.25);

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   General Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Cairo', 'Noto Kufi Arabic', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    background-color: var(--bg-body);
}

body {
    background-color: var(--bg-body);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Header & Glassmorphism Navigation Bar
   -------------------------------------------------------------------------- */
.header {
    background: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0.6rem 0;
    transition: background-color var(--transition-normal);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    gap: 1rem;
}

/* Header Sections */
.header-social {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--bg-element);
    border-radius: var(--radius-full);
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    font-size: 1.1rem;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-sm);
}

.social-icon.whatsapp:hover {
    background: var(--color-whatsapp);
    border-color: var(--color-whatsapp);
    color: #ffffff;
}

.social-icon.facebook:hover {
    background: var(--color-facebook);
    border-color: var(--color-facebook);
    color: #ffffff;
}

/* Language Switcher */
.lang-dropdown-container {
    position: relative;
}

.lang-btn {
    background: var(--bg-element);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--color-text);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}

.lang-btn:hover {
    background: var(--bg-element-hover);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lang-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-card);
    min-width: 130px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.lang-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-option {
    color: var(--color-text);
    padding: 10px 14px;
    width: 100%;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.lang-option:hover {
    background-color: var(--bg-element);
    color: var(--color-accent);
}

/* Header Logo */
.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-bounce);
}

.logo-container:hover {
    transform: scale(1.06);
}

.logo-img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    border-radius: var(--radius-sm);
}

/* Header Call Action Button */
.header-order {
    display: flex;
    align-items: center;
}

.order-btn {
    display: flex;
    align-items: center;
    gap: 0.675rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: #ffffff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.order-btn:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #09120f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.phone-icon {
    width: 20px;
    height: 20px;
    animation: ringPulse 2.5s infinite ease-in-out;
}

@keyframes ringPulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-12deg) scale(1.1); }
    20% { transform: rotate(12deg) scale(1.1); }
    30% { transform: rotate(-8deg) scale(1.05); }
    40% { transform: rotate(8deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
}

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

.order-main {
    font-size: 0.95rem;
}

.order-phone {
    font-size: 0.8rem;
    opacity: 0.95;
    direction: ltr;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero Section Header
   -------------------------------------------------------------------------- */
.menu-hero-header {
    text-align: center;
    padding: 2.2rem 0 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.menu-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
}

.title-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.title-main {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.menu-subtitle {
    margin-top: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Live Search Bar
   -------------------------------------------------------------------------- */
.search-container {
    max-width: 650px;
    margin: 1.2rem auto 1.8rem;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.4rem 1.2rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.search-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: var(--color-accent-glow);
    background: var(--bg-element);
}

.search-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.6rem 0.8rem;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.search-input::placeholder {
    color: var(--color-text-dim);
    font-weight: 500;
    font-size: 0.9rem;
}

.search-clear-btn {
    background: var(--bg-element);
    border: none;
    color: var(--color-text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-clear-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

.search-results-count {
    text-align: center;
    margin-top: 0.5rem;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Category Navigation Pills Bar (Horizontal Scrolling & Sticky)
   -------------------------------------------------------------------------- */
.category-nav-wrapper {
    position: sticky;
    top: 68px;
    z-index: 150;
    background: var(--bg-body);
    padding: 0.5rem 0 1rem;
}

.category-filter {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.4rem 0.2rem 0.8rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch;
}

.category-filter::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-btn {
    flex: 0 0 auto;
    background: var(--bg-element);
    color: var(--color-text);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: 1.5px solid var(--color-border);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--bg-element-hover);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #09120f;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent);
    transform: scale(1.04);
}

.cat-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-count {
    background: rgba(255, 255, 255, 0.15);
    color: currentColor;
    border-radius: var(--radius-full);
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.category-btn.active .cat-count {
    background: rgba(9, 18, 15, 0.25);
    color: #09120f;
}

/* Active Category Counter Info */
.active-category-info {
    text-align: center;
    margin-bottom: 1.8rem;
}

.active-category-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.active-category-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */
.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.spinner-container {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
}

.spinner-outer {
    width: 100%;
    height: 100%;
    border: 4px solid var(--bg-element);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.spinner-inner {
    width: 3rem;
    height: 3rem;
    border: 4px solid transparent;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite reverse;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Menu Items Grid Layout
   -------------------------------------------------------------------------- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

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

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

/* --------------------------------------------------------------------------
   Food Dish Item Card
   -------------------------------------------------------------------------- */
.menu-item-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: cardFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.menu-item-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-accent);
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 16px var(--color-accent-glow);
}

/* Popular Badge Tag */
.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.3px;
}

/* Card Image Section */
.card-image-container {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--bg-element);
    cursor: pointer;
}

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

.card-image.lazy-image {
    opacity: 0;
    background: linear-gradient(90deg, var(--bg-element) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-element) 75%);
    background-size: 200% 100%;
    animation: lazyShimmer 1.5s ease-in-out infinite;
}

.card-image.lazy-loaded {
    opacity: 1;
    animation: none;
}

@keyframes lazyShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.menu-item-card:hover .card-image {
    transform: scale(1.07);
    filter: brightness(1.08);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--color-text-muted);
    font-weight: 700;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 15, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.view-image-btn {
    background: var(--color-accent);
    color: #09120f;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.card-image-container:hover .view-image-btn {
    transform: translateY(0);
}

.view-image-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Card Content & Text */
.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: 0.85rem;
    text-align: right;
}

.card-title-ar {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.card-title-en {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 600;
    display: block;
    direction: ltr;
    text-align: right;
}

/* Price Section */
.card-price-section {
    margin-bottom: 1rem;
}

.single-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    background: var(--bg-element);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
}

.price-amount {
    font-size: 1.3rem;
}

.price-currency {
    font-size: 0.85rem;
}

/* Multi-size Price Chips */
.price-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.price-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-element);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 120px;
    transition: border-color var(--transition-fast);
}

.price-chip:hover {
    border-color: var(--color-accent);
}

.chip-size {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.chip-price {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 800;
}

/* Extra Info / Notes */
.card-extra-info {
    background: rgba(245, 158, 11, 0.08);
    border-right: 3px solid var(--color-accent);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.45;
}

/* Card Actions (WhatsApp Order) */
.card-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(37, 211, 102, 0.12);
    color: var(--color-whatsapp);
    border: 1.5px solid var(--color-whatsapp);
    padding: 0.65rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.card-order-btn:hover {
    background: var(--color-whatsapp);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

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

/* --------------------------------------------------------------------------
   Empty Results Message
   -------------------------------------------------------------------------- */
.no-items {
    text-align: center;
    padding: 5rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--color-border);
    margin: 2rem 0;
}

.no-items-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.no-items h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.no-items p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Image Lightbox & Details Modal
   -------------------------------------------------------------------------- */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 15, 0.92);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    animation: modalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    background: var(--bg-element);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-image-container {
    overflow-y: auto;
}

.modal-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.modal-details {
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.modal-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.8rem;
    background: var(--bg-element);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.modal-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--color-whatsapp);
    color: #ffffff;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
}

.modal-whatsapp-btn:hover {
    background: #1eb957;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
    position: fixed;
    left: 1.5rem;
    bottom: 2rem;
    z-index: 190;
    background: var(--color-whatsapp);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.3rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: all var(--transition-bounce);
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.75), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}

.floating-whatsapp-btn:hover {
    transform: scale(1.08) translateY(-3px);
    background: #1eb957;
}

.floating-whatsapp-btn i {
    font-size: 1.4rem;
}

/* --------------------------------------------------------------------------
   Scroll to Top Button
   -------------------------------------------------------------------------- */
#scrollToTopBtn {
    position: fixed;
    right: 1.5rem;
    bottom: 2rem;
    z-index: 190;
    display: none;
    background: var(--bg-element);
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

#scrollToTopBtn:hover {
    background: var(--color-accent);
    color: #09120f;
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

/* --------------------------------------------------------------------------
   Footer Section
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-card);
    color: var(--color-text);
    padding: 3rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.footer-name-ar {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.footer-thanks-ar {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.footer-contact-info {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact-info i {
    color: var(--color-accent);
    margin-left: 6px;
}

.footer-contact-info a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Responsive Design — Mobile First (320px → 1440px+)
   -------------------------------------------------------------------------- */

/* ── Base chip layout fix: LTR for price display ── */
.chip-price {
    direction: ltr;
    unicode-bidi: isolate;
}

.single-price-badge {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ── Card order button: prevent text wrap ── */
.card-order-btn {
    white-space: nowrap;
    overflow: hidden;
}

/* ═══════════════════════════════════════════
   XS — Extra Small (max 360px / old phones)
   ═══════════════════════════════════════════ */
@media (max-width: 360px) {
    html { font-size: 13px; }

    .container { padding: 0 0.75rem; }

    .header { padding: 0.3rem 0; }
    .header-flex { min-height: 52px; gap: 0.3rem; }

    /* إخفاء FB على الشاشات الصغيرة جداً */
    .header-social .social-icon.facebook { display: none; }

    .social-icon { width: 34px; height: 34px; font-size: 0.95rem; }

    .lang-btn { padding: 0.35rem 0.55rem; font-size: 0.75rem; }
    .lang-text { display: none; }
    .lang-btn { border-radius: 50%; width: 34px; height: 34px; justify-content: center; }

    .logo-img { max-height: 38px; }

    .order-btn { padding: 0.35rem 0.6rem; gap: 0.35rem; font-size: 0.8rem; }
    .order-main { display: none; }
    .order-phone { font-size: 0.78rem; }
    .phone-icon { width: 16px; height: 16px; }

    .menu-hero-header { padding: 1.2rem 0 0.8rem; }
    .menu-badge-tag { font-size: 0.75rem; padding: 0.25rem 0.7rem; }
    .title-sub { font-size: 0.85rem; }
    .title-main { font-size: 1.3rem; }
    .menu-subtitle { font-size: 0.8rem; }

    .search-input { font-size: 0.85rem; padding: 0.45rem 0.5rem; }
    .search-wrapper { padding: 0.3rem 0.8rem; }

    .category-btn { padding: 0.45rem 0.75rem; font-size: 0.78rem; gap: 0.3rem; }
    .cat-count { display: none; }

    .active-category-info h2 { font-size: 1.3rem; }

    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

    .card-image-container { height: 110px; }
    .card-content { padding: 0.6rem; }
    .card-title-ar { font-size: 0.82rem; }
    .card-title-en { font-size: 0.68rem; }
    .card-header { margin-bottom: 0.5rem; }

    .price-chip { flex: 1 1 100%; padding: 0.2rem 0.45rem; border-radius: 6px; }
    .chip-size { font-size: 0.7rem; }
    .chip-price { font-size: 0.78rem; }
    .price-chips-container { gap: 0.3rem; }

    .single-price-badge { padding: 0.3rem 0.7rem; }
    .price-amount { font-size: 1.1rem; }

    .card-extra-info { font-size: 0.68rem; padding: 0.35rem 0.5rem; margin-bottom: 0.6rem; }

    .card-order-btn { padding: 0.45rem 0.5rem; font-size: 0.78rem; gap: 0.3rem; border-radius: var(--radius-sm); }
    .card-order-btn i { font-size: 1rem; }

    .popular-badge { font-size: 0.65rem; padding: 0.2rem 0.55rem; top: 8px; right: 8px; }

    .modal-content { border-radius: var(--radius-md); }
    .modal-image { max-height: 220px; }
    .modal-details { padding: 1rem; }
    .modal-title { font-size: 1.15rem; }

    .floating-whatsapp-btn { left: 0.8rem; bottom: 1rem; padding: 0.7rem; border-radius: 50%; }
    .floating-whatsapp-btn .floating-btn-text { display: none; }
    .floating-whatsapp-btn i { font-size: 1.25rem; }
    #scrollToTopBtn { right: 0.8rem; bottom: 1rem; width: 40px; height: 40px; font-size: 1rem; }

    .footer { padding: 2rem 0 1.5rem; }
    .footer-name-ar { font-size: 1.2rem; }
    .footer-contact-info { font-size: 0.8rem; }
}

/* ══════════════════════════════════════════
   SM — Small Mobile (361px → 480px)
   ══════════════════════════════════════════ */
@media (min-width: 361px) and (max-width: 480px) {
    html { font-size: 14px; }

    .container { padding: 0 1rem; }

    .header { padding: 0.4rem 0; }
    .header-flex { min-height: 56px; gap: 0.5rem; }

    .social-icon { width: 36px; height: 36px; font-size: 1rem; }

    .lang-text { display: none; }
    .lang-btn { border-radius: 50%; width: 36px; height: 36px; padding: 0; justify-content: center; }

    .logo-img { max-height: 42px; }

    .order-btn { padding: 0.4rem 0.75rem; gap: 0.4rem; }
    .order-main { display: none; }
    .order-phone { font-size: 0.8rem; }
    .phone-icon { width: 17px; height: 17px; }

    .menu-hero-header { padding: 1.4rem 0 0.9rem; }
    .menu-badge-tag { font-size: 0.78rem; }
    .title-sub { font-size: 0.9rem; }
    .title-main { font-size: 1.4rem; }
    .menu-subtitle { font-size: 0.82rem; }

    .search-input { font-size: 0.87rem; }
    .search-container { margin-bottom: 1.2rem; }

    .category-btn { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
    .cat-count { font-size: 0.68rem; padding: 0.08rem 0.4rem; }

    .active-category-info h2 { font-size: 1.45rem; }

    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .card-image-container { height: 125px; }
    .card-content { padding: 0.75rem; }
    .card-title-ar { font-size: 0.9rem; }
    .card-title-en { font-size: 0.72rem; }

    .price-chip { flex: 1 1 100%; padding: 0.25rem 0.5rem; }
    .chip-size { font-size: 0.72rem; }
    .chip-price { font-size: 0.82rem; }

    .card-extra-info { font-size: 0.7rem; padding: 0.4rem 0.6rem; }

    .card-order-btn { padding: 0.5rem; font-size: 0.8rem; gap: 0.35rem; }
    .card-order-btn i { font-size: 1.05rem; }

    .popular-badge { font-size: 0.68rem; padding: 0.22rem 0.6rem; }

    .floating-whatsapp-btn { left: 1rem; bottom: 1.2rem; }
    .floating-whatsapp-btn .floating-btn-text { display: none; }
    .floating-whatsapp-btn { padding: 0.75rem; border-radius: 50%; }
    #scrollToTopBtn { right: 1rem; bottom: 1.2rem; }

    .footer-name-ar { font-size: 1.3rem; }
}

/* ══════════════════════════════════════════
   MD — Tablet Portrait (481px → 768px)
   ══════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 768px) {
    .header-flex { min-height: 60px; }

    .logo-img { max-height: 48px; }

    .order-main { display: none; }
    .order-phone { font-size: 0.85rem; }
    .order-btn { padding: 0.45rem 0.9rem; }

    .title-main { font-size: 1.7rem; }
    .title-sub { font-size: 1rem; }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card-image-container { height: 165px; }
    .card-content { padding: 1rem; }
    .card-title-ar { font-size: 1rem; }

    .price-chip { flex: 1 1 calc(50% - 0.45rem); }
    .chip-size { font-size: 0.78rem; }
    .chip-price { font-size: 0.9rem; }

    .card-order-btn { font-size: 0.88rem; padding: 0.55rem 0.8rem; }

    .floating-whatsapp-btn .floating-btn-text { display: none; }
    .floating-whatsapp-btn { padding: 0.8rem; border-radius: 50%; }

    .category-btn { font-size: 0.88rem; padding: 0.55rem 1rem; }
}

/* ══════════════════════════════════════════
   LG — Tablet Landscape / Small Desktop (769px → 1024px)
   ══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card-image-container { height: 185px; }

    .floating-whatsapp-btn .floating-btn-text { display: inline; }
    .floating-whatsapp-btn { padding: 0.75rem 1.3rem; border-radius: var(--radius-full); }

    .title-main { font-size: 2rem; }
}

/* ══════════════════════════════════════════
   XL — Desktop (1025px → 1440px)
   ══════════════════════════════════════════ */
@media (min-width: 1025px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.2rem;
    }

    .card-image-container { height: 220px; }

    .floating-whatsapp-btn .floating-btn-text { display: inline; }
    .floating-whatsapp-btn { padding: 0.75rem 1.3rem; border-radius: var(--radius-full); }
}

/* ══════════════════════════════════════════
   2XL — Wide Desktop (1441px+)
   ══════════════════════════════════════════ */
@media (min-width: 1441px) {
    .container { max-width: 1440px; }

    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .title-main { font-size: 2.4rem; }
    .card-image-container { height: 230px; }
}

/* ══════════════════════════════════════════
   Sticky Category Nav — top offset fix per breakpoint
   ══════════════════════════════════════════ */
@media (max-width: 360px) {
    .category-nav-wrapper { top: 58px; }
}
@media (min-width: 361px) and (max-width: 480px) {
    .category-nav-wrapper { top: 62px; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .category-nav-wrapper { top: 66px; }
}
@media (min-width: 769px) {
    .category-nav-wrapper { top: 72px; }
}

/* ══════════════════════════════════════════
   Accessibility — Reduced Motion
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .phone-icon { animation: none !important; }
    .floating-whatsapp-btn { animation: none !important; }
    html { scroll-behavior: auto; }
}