 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 html {
     scroll-padding-top: 6em;
 }

 :root {
     --primary: #1a1a1a;
     --secondary: #6e1616;
     --accent: #c9a962;
     --accent-hover: #b8984d;
     --bg: #fafafa;
     --card-bg: #ffffff;
     --text: #333333;
     --text-light: #666666;
     --border: #e5e5e5;
     --vegetarian: #4ade80;
 }

 body {
     font-family: 'Inter', sans-serif;
     background-color: var(--bg);
     color: var(--text);
     line-height: 1.6;

 }

 /* Header */
 header {
     background: linear-gradient(135deg, #b9b9b9 0%, #717171 100%);
     color: white;
     padding: 0.5rem 1rem;
     text-align: center;
     position: sticky;
     top: 0;
     z-index: 100;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
 }

 .logo {
     font-family: 'Playfair Display', serif;
     font-size: 0rem;
     font-weight: 700;
     letter-spacing: 0.3em;
     margin-bottom: 0rem;
     color: var(--accent);
 }

 .tagline {
     font-weight: 300;
     opacity: 0.9;
     font-size: 1.1rem;
     letter-spacing: 0.1em;
 }

 .location {
     margin-top: 1rem;
     font-size: 0.9rem;
     opacity: 0.7;
 }

 /* Navigation */
 .nav-container {
     background: white;
     border-bottom: 1px solid var(--border);
     position: sticky;
     top: 17px;
     z-index: 99;
     overflow-x: auto;
     -webkit-overflow-scrolling: touch;
     scrollbar-width: none;
 }

 .nav-container::-webkit-scrollbar {
     display: none;
 }

 nav {
     display: flex;
     justify-content: center;
     gap: 0.5rem;
     padding: 1rem;
     min-width: max-content;
 }

 nav button {
     background: none;
     border: 2px solid transparent;
     padding: 0.6rem 1.2rem;
     border-radius: 25px;
     cursor: pointer;
     font-family: 'Inter', sans-serif;
     font-weight: 500;
     font-size: 0.9rem;
     color: var(--text-light);
     transition: all 0.3s ease;
     white-space: nowrap;
 }

 nav button:hover {
     color: var(--accent);
     background: rgba(201, 169, 98, 0.1);
 }

 nav button.active {
     background: #6e1616;
     color: white;
     border-color: #701b1b;
 }

 /* Main Container */
 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 2rem 1rem;
 }

 /* Info header */
 .info-header {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin: 1rem;

 }

 /* Section Styles */
 .menu-section {
     margin-bottom: 4rem;
     scroll-margin-top: 120px;
 }

 .section-header {
     text-align: center;
     margin-bottom: 2.5rem;
     position: relative;
 }

 .section-header h2 {
     font-family: 'Playfair Display', serif;
     font-size: 2.5rem;
     font-weight: 600;
     color: var(--primary);
     display: inline-block;
     padding: 0 1.5rem;
     background: var(--bg);
     position: relative;
     z-index: 1;
 }

 .section-header::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 0;
     right: 0;
     height: 1px;
     background: linear-gradient(90deg, transparent, var(--accent), transparent);
     z-index: 0;
 }

 /* Grid Layout - Updated for images */
 .menu-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 2rem;
 }

 @media (max-width: 768px) {
     .menu-grid {
         grid-template-columns: 1fr;
     }
 }

 /* Menu Item Card with Image */
 .menu-item {
     background: var(--card-bg);
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
     transition: all 0.3s ease;
     border: 1px solid var(--border);
     display: flex;
     flex-direction: column;
 }

 .menu-item:hover {
     transform: translateY(-4px);
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
     border-color: var(--accent);
 }

 .item-image {
     width: 100%;
     height: auto;
     object-fit: cover;
     aspect-ratio: 1 / 1;
     background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     color: #999;
     font-size: 0.9rem;
     position: relative;
     overflow: hidden;
 }

 .item-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     aspect-ratio: 1 / 1;
     transition: transform 0.3s ease;
     transform: scale(1.02);
     object-position: center;
 }

 .menu-item:hover .item-image img {
     transform: scale(1.05);
 }

 .item-image-placeholder {
     position: absolute;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 0.5rem;
 }

 .item-content {
     padding: 1.5rem;
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 .item-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 0.5rem;
     gap: 1rem;
 }

 .item-name {
     font-family: 'Inter', sans-serif;
     font-size: 1.25rem;
     font-weight: 600;
     color: var(--primary);
     flex: 1;
 }

 .item-price {
     font-weight: 600;
     color: var(--accent);
     font-size: 1.1rem;
     white-space: nowrap;
 }

 .item-description {
     color: var(--text-light);
     font-size: 0.95rem;
     text-transform: lowercase;
     line-height: 1.5;
     flex: 1;
 }

 .vegetarian-badge {
     display: inline-flex;
     align-items: center;
     gap: 0.3rem;
     background: rgba(74, 222, 128, 0.15);
     color: #16a34a;
     padding: 0.2rem 0.6rem;
     border-radius: 12px;
     font-size: 0.75rem;
     font-weight: 600;
     margin-left: 0.5rem;
     text-transform: uppercase;
     letter-spacing: 0.05em;
 }

 .vegetarian-badge::before {
     content: '●';
     color: var(--vegetarian);
     font-size: 0.6rem;
 }

 .item-content.sub {
     padding: 0 1.5rem 0 1.5rem;
 }

 .item-content.sub:last-child {
     padding-bottom: 1.5rem;
 }

 .item-content.sub .item-name {
     font-size: 1.1rem;
 }

 .item-content.sub .item-price {
     font-size: 1rem;
 }

 .item-content.sub .item-description {
     font-size: 0.80rem;
     line-height: 1;
 }

 /* Dietary Filters */
 .filters {
     display: flex;
     justify-content: center;
     gap: 1rem;
     margin-bottom: 2rem;
     flex-wrap: wrap;
 }

 .filter-btn {
     background: white;
     border: 2px solid var(--border);
     padding: 0.5rem 1rem;
     border-radius: 20px;
     cursor: pointer;
     font-size: 0.9rem;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .filter-btn:hover,
 .filter-btn.active {
     border-color: var(--accent);
     color: var(--accent);
 }

 /* Search Bar */
 .search-container {
     max-width: 600px;
     margin: 0 auto 3rem;
     position: sticky;
     top: 115px;
     background: #fff;
     z-index: 222;
     padding: 10px 20px;
     border-radius: 12px;
 }

 .search-container .menu-select {
     width: 100%;
     height: 55px;
     border-radius: 50px;
     background: #fff;
     border-color: #742727;
     padding: 10px 24px 10px 20px;
     font-size: 18px;
     border-width: 2px;
 }

 .search-input {
     width: 100%;
     padding: 1rem 1.5rem;
     border: 2px solid var(--border);
     border-radius: 50px;
     font-size: 1rem;
     font-family: 'Inter', sans-serif;
     transition: all 0.3s ease;
     background: white;
 }

 .search-input:focus {
     outline: none;
     border-color: var(--accent);
     box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.1);
 }

 .search-icon {
     position: absolute;
     right: 1.5rem;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-light);
 }

 /* Footer */
 footer {
     background: var(--primary);
     color: white;
     text-align: center;
     padding: 3rem 1rem;
     margin-top: 4rem;
 }

 .footer-content {
     max-width: 600px;
     margin: 0 auto;
 }

 .footer-logo {
     font-family: 'Playfair Display', serif;
     font-size: 2rem;
     color: var(--accent);
     margin-bottom: 1rem;
 }


 /* Responsive */
 @media (max-width: 768px) {
     .logo {
         font-size: 2rem;
         margin-bottom: 0px;
     }

     .logo img {
         height: 51px;
     }

     .section-header h2 {
         font-size: 1.8rem;
     }

     nav {
         padding: 0.8rem;
     }

     nav button {
         padding: 0.5rem 1rem;
         font-size: 0.85rem;
     }



     .search-container {
         top: 80px;
     }
 }

 /* Scroll to top */
 .scroll-top {
     position: fixed;
     bottom: 2rem;
     right: 2rem;
     background: var(--accent);
     color: white;
     width: 50px;
     height: 50px;
     border-radius: 50%;
     border: none;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
     z-index: 98;
 }

 .scroll-top.visible {
     opacity: 1;
     visibility: visible;
 }

 .scroll-top:hover {
     background: var(--accent-hover);
     transform: translateY(-2px);
 }

 /* No results message */
 .no-results {
     text-align: center;
     padding: 3rem;
     color: var(--text-light);
     display: none;
 }

 .no-results.show {
     display: block;
 }

 /* Image upload hint */
 .image-hint {
     background: #fff3cd;
     border: 1px solid #ffeaa7;
     color: #856404;
     padding: 1rem;
     border-radius: 8px;
     margin-bottom: 2rem;
     text-align: center;
     font-size: 0.9rem;
 }

 /* Subsection Styles */
 .subsection {
     margin-bottom: 2rem;
 }

 .subsection-header {
     position: relative;
     margin-bottom: 1.5rem;
     padding-top: 0;
     padding-bottom: 1rem;
     border-bottom: 1px solid var(--accent);
     text-align: center;
 }

 .subsection-header h3 {
     font-family: 'Playfair Display', serif;
     font-size: 1.8rem;
     font-weight: 600;
     color: var(--primary);
     margin: 0;
     padding: 0;
 }

 @media (max-width: 768px) {
     .section-header {
         margin-bottom: 1rem;
     }



     .menu-section {
         margin-bottom: 2rem;
     }
 }

 .info-popup-btn {
     background: #6e1616;
     color: #fff;
     border: none;
     padding: 0.6rem 1.6rem;
     border-radius: 25px;
     font-family: 'Inter', sans-serif;
     font-size: 0.95rem;
     font-weight: 500;
     cursor: pointer;
     letter-spacing: 0.04em;
     transition: background 0.3s ease, transform 0.2s ease;
     box-shadow: 0 2px 8px rgba(110, 22, 22, 0.18);
 }

 .info-popup-btn:hover {
     background: #8b1e1e;
     transform: translateY(-2px);
 }
.mfp-close-btn-in .mfp-close{
    background: #fff;
    opacity: 1;
    border-radius: 50px;
}
 /* Arabic Toggle Button */
 .arabic-toggle-btn {
     background: #6e1616;
     color: #fff;
     border: 2px solid #6e1616;
     padding: 0.6rem 1.4rem;
     border-radius: 25px;
     font-family: 'Inter', sans-serif;
     font-size: 0.95rem;
     font-weight: 600;
     cursor: pointer;
     letter-spacing: 0.04em;
     transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
     box-shadow: 0 2px 8px rgba(201, 169, 98, 0.15);
 }

 .arabic-toggle-btn:hover {
     background: #8b1e1e;
     color: white;
     transform: translateY(-2px);
 }

 .arabic-toggle-btn.active {
     background: #8b1e1e;
     color: white;
 }

 .info-popup-content {
     background: transparent;
     padding: 0;
     border-radius: 12px;
     max-width: 600px;
     width: 90%;
     margin: 0 auto;
     overflow: hidden;
 }

 .info-popup-content p {
     margin-bottom: 0.4rem;
 }

 /* ── Card Popup ── */
 .card-popup-overlay {
     display: none;
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, 0.72);
     z-index: 9999;
     align-items: center;
     justify-content: center;
     padding: 1rem;
     backdrop-filter: blur(4px);
     -webkit-backdrop-filter: blur(4px);
 }

 .card-popup-overlay.active {
     display: flex;
     animation: cpFadeIn 0.25s ease;
 }

 @keyframes cpFadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 /* Modal shell — mirrors .menu-item card */
 .card-popup-modal {
     background: var(--card-bg, #ffffff);
     border-radius: 16px;
     width: 100%;
     max-width: 800px;
     max-height: 92vh;
     overflow-y: auto;
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
     border: 1px solid var(--border, #e5e5e5);
     position: relative;
     display: flex;
     /* image-top + content-below */
     flex-direction: column;
     animation: cpSlideUp 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
 }

 @keyframes cpSlideUp {
     from {
         transform: translateY(32px) scale(0.98);
         opacity: 0;
     }

     to {
         transform: translateY(0) scale(1);
         opacity: 1;
     }
 }

 /* Close button */
 .card-popup-close {
     position: absolute;
     top: 0.75rem;
     right: 0.75rem;
     width: 32px;
     height: 32px;
     border-radius: 50%;
     border: none;
     background: rgba(0, 0, 0, 0.50);
     color: #fff;
     font-size: 1.3rem;
     line-height: 1;
     cursor: pointer;
     z-index: 10;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.2s ease, transform 0.2s ease;
 }

 .card-popup-close:hover {
     background: #6e1616;
     transform: rotate(90deg);
 }

 /* Top: image pane */
 .card-popup-image-wrap {
     width: 100%;
     height: 100%;
     flex-shrink: 0;
     overflow: hidden;
     border-radius: 16px 16px 0 0;
     background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
 }

 .card-popup-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center;
     display: block;
 }

 /* Right: content pane — mirrors .item-content */
 .card-popup-body {
     flex: 1;
     padding: 1.5rem;
     display: flex;
     flex-direction: column;
 }

 /* Item header row: name left, price right */
 .card-popup-item-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 0.5rem;
     gap: 1rem;
 }

 .card-popup-main-name {
     font-family: 'Inter', sans-serif;
     font-size: 1.25rem;
     font-weight: 600;
     color: var(--primary, #1a1a1a);
     flex: 1;
 }

 .card-popup-main-price {
     font-weight: 600;
     color: var(--accent, #c9a962);
     font-size: 1.1rem;
     white-space: nowrap;
 }

 .card-popup-description {
     color: var(--text-light, #666666);
     font-size: 0.95rem;
     line-height: 1.5;
     flex: 1;
     margin-top: 0.25rem;
 }

 /* Sub rows — mirrors .item-content.sub */
 .card-popup-sub {
     padding: 0.35rem 0;
     border-top: 1px solid var(--border, #e5e5e5);
 }

 .card-popup-sub-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 1rem;
 }

 .card-popup-sub-name {
     font-family: 'Playfair Display', serif;
     font-size: 1.05rem;
     color: var(--primary, #1a1a1a);
     flex: 1;
 }

 .card-popup-sub-price {
     font-size: 1rem;
     font-weight: 600;
     color: var(--accent, #c9a962);
     white-space: nowrap;
 }

 /* Mobile: stack image on top, content below */
 @media (max-width: 768px) {
     .card-popup-overlay {
         padding: 0;
         align-items: flex-end;
     }

     .card-popup-modal {
         max-width: 100%;
         width: 100%;
         border-radius: 20px 20px 0 0;
         flex-direction: column;
         max-height: 92vh;
     }

     .card-popup-image-wrap {
         flex: 0 0 100%;
         min-height: 100%;
         border-radius: 20px 20px 0 0;
     }
     .mfp-close-btn-in .mfp-close{
        width: 35px;
        height: 35px;
        line-height: 35px;
        background: #ffffff9c;
     }
 }