:root {
    --card-bg:#fff;
    --page-bg:#32327f;
  }
  
  
  @font-face {
    font-family: 'futuramdbt_bold';
    src: url('futuramdbt_bold.eot'); /* IE9 Compat Modes */
    src: url('futuramdbt_bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('webfont.woff') format('woff'), /* Modern Browsers */
         url('futuramdbt_bold.otf')  format('truetype'); /* Safari, Android, iOS */
       
  }
  @font-face {
    font-family: 'zahra.arabic.bold';
    src: url('zahra.arabic.bold.eot'); /* IE9 Compat Modes */
    src: url('zahra.arabic.bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('webfont.woff') format('woff'), /* Modern Browsers */
         url('zahra.arabic.bold.otf')  format('truetype'); /* Safari, Android, iOS */
       
  }
  
  

  html[lang="ar"] {
    direction: rtl;
    font-family: "zahra.arabic.bold", sans-serif;
  }
  
  html[lang="en"] {
    direction: ltr;
    font-family: "futuramdbt_bold", sans-serif;
  }
  
  body {
    margin:0;
    padding:20px;
    background:#32327f;

    color:#d8ac46;
    direction: rtl; 
  }
  
      
  .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: #32327f;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 1000;
        color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        flex-wrap: wrap; 
      }
  

      .menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
      }

      .menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
      }
      .menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }
      .menu-btn.open span:nth-child(2) {
        opacity: 0;
      }
      .menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
      }
      .full-screen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100%; 
        background-color: #32327f;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column; 
        align-items: center;    
      
        opacity: 0;
        pointer-events: none;
        z-index: 999;
    
        padding-bottom: 300px; 
    
      
        visibility: hidden;
        transition: opacity 0.4s ease;
      }
    
      .full-screen-menu .mt-5 {
        padding-top: 100px;
        margin-bottom: 40px; 
      
      }
    
    .menu-logo {
          
            max-width: clamp(220px, 25vw, 280px);
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            transition-delay: 0.05s;
            }
    .full-screen-menu.active .menu-logo {
              opacity: 1;
              transform: translateY(0);
            }
    
      .full-screen-menu.active {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    
    
      }
      
      
    
      .nav-rows {
        display: flex;
        flex-direction: column;
        width: 85%;
        gap: 10px; 
        padding-bottom: 80px;
      }
      
      .nav-rows  a:not(.lang-btn) {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 25px 0;
        width: 100%;
        border: 1px solid #d8ac46;
        border-radius: 10px;
        background: linear-gradient(145deg, #3a3aad, #32327f, #2a2a6a);
      /* ✨ تدرج اللمعة على النص */
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      background-image: linear-gradient(90deg, #fff4b2, #d8ac46, #fff4b2);
      background-size: 200%;
        font-weight: bold;
        text-decoration: none;
        text-align: center;
        font-size: clamp(32px, 2vw, 50px);
        text-transform: uppercase;
    
    
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
      }
      /* كل عنصر يتأخر شوي */
    .nav-rows a:nth-child(1) { transition-delay: 0.1s; }
    .nav-rows a:nth-child(2) { transition-delay: 0.2s; }
    .nav-rows a:nth-child(3) { transition-delay: 0.3s; }
    .nav-rows a:nth-child(4) { transition-delay: 0.4s; }
    .nav-rows a:nth-child(5) { transition-delay: 0.5s; }
    
    
    .full-screen-menu.active .nav-rows  a:not(.lang-btn) {
      opacity: 1;
      transform: translateY(0);
    }
    


    html[lang="en"] .nav-rows  a:not(.lang-btn) {
    font-size: clamp(26px, 2vw, 40px);
  }

  .nav-rows .lang-btn {
    display: block;
    width: auto;
    padding: 5px 10px;
    background: none;   
    color: #d8ac46;       
    font-size: clamp(20px, 4vw, 30px);       
    font-weight: normal;
    text-decoration: underline; 
    cursor: pointer;
    text-align: center;
    margin-top: 10px;     
  }
  
  
  
  

      .close-menu {
        position: absolute;
        top: 20px;
        right: 20px; 
        font-size: 40px;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1000;
      }
      html[dir="ltr"] .close-menu {
        left: 20px;
        right: auto;
      }
  
  
      html[dir="rtl"] .full-screen-menu {
        text-align: right;
      }
      html[dir="ltr"] .full-screen-menu {
        text-align: left;
      }
  
  
  .topbar {
    display:flex;
    justify-content:flex-end;
    margin-bottom:1rem;
  }
  
  

  
  


  html[dir="rtl"] .meta { flex-direction: row; }

  html[dir="ltr"] .meta { flex-direction: row-reverse; }
  
  .img-wrap {
    flex: 0 0 clamp(100px, 20vw, 120px); 
    width: 120px;
    height: clamp(100px, 25vw, 130px);
    overflow:hidden;
  }
  .img-wrap img {
    width:100%;
    height:100%;
    object-fit:cover;
  }
  

  .title2 {
    text-align: center;

    color:#fff;
    font-weight: 100;


      margin-top: 50px;
  }
  .title3{
    text-transform: uppercase;
      text-align: center;
  color:#fff;
  font-weight: 600; 
  

  
  }
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr)); 
    gap:1px;
   
  }
  

  .cat-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d8ac46;
    background: linear-gradient(145deg, #3a3aad, #32327f, #2a2a6a);
  /* ✨ تدرج اللمعة على النص */
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #fff4b2, #d8ac46, #fff4b2);
  background-size: 200%;
    text-decoration: none;
    padding: clamp(10px, 2vw, 16px) clamp(14px, 3vw, 24px);
    font-size: clamp(17px, 2vw, 21px);
    transition: background 0.2s ease;
  }
  

  html[dir="rtl"] .cat-box .cat-name { order: 0; text-align: right; }
  html[dir="rtl"] .cat-box .cat-count { order: 1; }
  

  html[dir="ltr"] .cat-box .cat-name { order: 1; text-align: left; }
  html[dir="ltr"] .cat-box .cat-count { order: 0; }
  
  

  
  .cat-name {
    font-weight: bold;
    text-transform: uppercase;
  }
  
  .cat-count {
    font-size: 18px;
    opacity: 0.9;
  }
  
  
  
  
  
  .view-toggle {
        display: flex;
        gap: 1px;
        padding: 10px;
      }
      .view-toggle button {
        background: none;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.6); 
        font-size: 26px;
    
        transition: all 0.3s ease;
      }
      .view-toggle button.active {
       
        color: #fff;
      }
  
  

  /* --- البوب أب --- */

  .meta {
    display:flex;
    justify-content:space-between;
    gap:8px;
  

  }
  
  .meta p {
  margin: 0;
}
  .popup {
    display:flex;
 
    top: 0; left: 0; right: 0; bottom: 0;
   
    justify-content: center;
    align-items: center;
  }

  .popup-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    overflow: hidden;

    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }





  .popup-img {
    position: relative;
  }
  
  .popup-img img {
    width: 100%;
    height: 380px;
    max-height: 50vh;
    object-fit: cover;
    display: block; 
  }
  
  .popup-label {
    background-color: #d8ac46;
    color: #fff;
    padding: 5px 14px;      
 
    font-size:  clamp(13px, 1.5vw, 20px);
  
  }
  
  .popup-label-bot {
    background-color: #32327f;
    color: #fff;
    padding: 12px 14px;      

    font-size: 14px;
  text-align: center;
  
  }
  
  .popup-body {
    padding: 20px;
    text-align: center;
  }
  .popup-title {
    text-align: right;
    font-size: clamp(16px, 1.5vw, 20px);
    margin-top: -10px;
    font-weight: bold;
    color: #0e1020;
  }

  html[dir="rtl"] .popup-label,
  html[dir="rtl"] .popup-title,
  html[dir="rtl"] .popup-desc {
    text-align: right;
  }
  

  html[dir="ltr"] .popup-label,
  html[dir="ltr"] .popup-title,
  html[dir="ltr"] .popup-desc {
    text-align: left;
  }
  
  .popup-share {
    display: flex;
    align-items: center;
    gap: 10px;
      margin-top: 0 !important;

  }
  

  html[dir="ltr"] .popup-share {
    flex-direction: row-reverse;
    text-align: right;
  }
  

  html[dir="rtl"] .popup-share {
    flex-direction: row;
    text-align: left;
    
  }
  
  
  
  
  .popup-desc{
    text-align: right;
    font-size: clamp(13px, 1.5vw, 20px);
    color: #0e1020;
    margin-bottom: 12px; 
    line-height: 1.6;    
  }
  
  
  .popup-cal {
  
    color: rgba(50, 50, 127, 0.4);

    font-size: clamp(14px, 1.5vw, 20px);
    
  }
  .popup-price {
  
    font-weight: bold;
    color: #0e1020;
    font-size: clamp(15px, 1.5vw, 20px);

  }

  

  @media (max-width: 576px) {
    .menu-grid {
      grid-template-columns: 1fr !important; 
    }
    .category-grid {
      grid-template-columns: repeat(1, 1fr) !important;
    }
    .menu-grid.grid .menu-card {
      aspect-ratio: auto; 
    }
    .menu-card .card-content {
      display: flex; 
    }
    .popup-content {
      width: 100%;
      max-width: none;
    }
    .popup-img img {
      height: auto;
    }
  }
  

  @media (min-width: 577px) and (max-width: 992px) {
    .menu-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    .category-grid {
      grid-template-columns: repeat(2, 1fr) !important; 
    }
    .menu-grid.grid .menu-card {
      aspect-ratio: 1/1;
    }
  }
  

  @media (min-width: 993px) {
    .menu-grid {
      grid-template-columns: repeat(2, 1fr) !important; 
    }
    .category-grid {
      grid-template-columns: repeat(2, 1fr) !important; 
    }
  }
  

  .full-screen-menu {
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
  }
  
  .popup-title, .popup-desc {
    word-wrap: break-word;
  }
  
   
  h1 {
    font-size: clamp(32px, 5vw, 52px);
  }
  h2 {
    font-size: clamp(28px, 4vw, 44px);
  }
  h3 {
    font-size: clamp(20px, 3vw, 36px);
  }
  h4 {
    font-size: clamp(18px, 2.5vw, 30px);
  }
  h5 {
    font-size: clamp(16px, 2vw, 24px);
  }
  h6 {
    font-size: clamp(14px, 1.5vw, 20px);
  }
  
  



  
  hr {
    border: none;
    height: 0.6px;
    margin-top: 40px;
    background-color: #232352;
  }
  .footer {
    display: flex;              /* يجعل محتوى الفوتر قابل للتوسيط */
    justify-content: center;    /* يوسّط المحتوى أفقياً */
    align-items: center;        /* يوسّط المحتوى عمودياً */
    padding: 20px;
    color: #fff;
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .footer a {
    text-decoration: none;      /* يشيل أي خط من الرابط */
    color: inherit;
    
  }
  
  .footer .underline-word {
    text-decoration: underline; /* خط تحت الكلمة فقط */
  }
  
  