:root {
    --primary-color: #882f42;
    --secondary-color: #882f42;
    --accent-color: #FF7043;
    --light-color: #FFF3E0;
    --dark-color: #882f42;
    --text-color: #4E342E;
    --white: #FFFFFF;
    --gold: #FFD700;
    --overlay: rgba(130, 29, 29, 0.45);

  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
  }

  body {
    background: var(--light-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
  }

  /* Header Styles */
  header {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../images/photo_5818868181803059129_y.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
  }

  header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--overlay);
    z-index: 1;
  }

  header .content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-out;
  }

  .logo {
    font-size: 5rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
  }

  .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
   
  }

  .nav-buttons button {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
    padding: 0.8rem 2.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    font-weight: 800;
    letter-spacing: 1px;
    width: 220px;
  }

  .nav-buttons button:hover {
    background: var(--gold);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  }

  /* Floating Food Animation */
  .floating-food {
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: 1;
    animation: float 8s infinite ease-in-out;
  }

  /* Menu Sections */
  .menu-section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 3rem 0 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
  }

  .menu-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--accent-color));
  }

  .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
  }

  .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .menu-item {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
  }

  .menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }

  .menu-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

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

  .menu-item .info {
    padding: 1.5rem;
    text-align: center;
  }

  .menu-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
  }

  .menu-item .description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .menu-item .price {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .price::after {

    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 1.2rem;
  }

  .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255, 112, 67, 0.3);
    z-index: 2;
  }

  /* Special Offer Banner */
  .offer-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
  }

  .offer-banner::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background: linear-gradient(45deg, 
      transparent 25%, 
      rgba(255, 215, 0, 0.1) 25%, 
      rgba(255, 215, 0, 0.1) 50%, 
      transparent 50%, 
      transparent 75%, 
      rgba(255, 215, 0, 0.1) 75%);
    background-size: 20px 20px;
    animation: move 4s linear infinite;
    z-index: 1;
  }

  .offer-content {
    position: relative;
    z-index: 2;
  }

  .offer-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
  }

  .offer-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
  }

  .offer-btn {
    background: var(--gold);
    color: var(--dark-color);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  }

  .offer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  }

  /* Footer Styles - Professional & Luxury */
  footer {
    direction: rtl;
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    color: var(--white);
    padding: 5rem 2rem 3rem;
    position: relative;
    overflow: hidden;
   
  }

  .footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23fdfaf6" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23fdfaf6" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23fdfaf6"/></svg>');
    background-size: cover;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
  }

  .footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    position: relative;
    padding-bottom: 10px;
  }

  .footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gold);
  }

  .footer-column p, .footer-column a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: block;
  }

  .footer-column a:hover {
    color: var(--gold);
    transform: translateX(-5px);
  }

  .footer-contact i {
    width: 25px;
    text-align: center;
    margin-left: 10px;
    color: var(--gold);
  }

  .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
  }

  .social-icons a:hover {
    background: var(--gold);
    color: var(--dark-color);
    transform: translateY(-5px);
  }

  .footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
  }

  .footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
  }

  .footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
  }

  /* Floating Food Items */
  .floating-food-1 {
    top: 20%;
    right: 10%;
    background-image: url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=880&q=80');
    animation-delay: 0s;
  }

  .floating-food-2 {
    top: 60%;
    right: 15%;
    background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=781&q=80');
    animation-delay: 1s;
  }

  .floating-food-3 {
    top: 30%;
    left: 10%;
    background-image: url('https://images.unsplash.com/photo-1601050690117-64b6d3f7cc15?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1474&q=80');
    animation-delay: 2s;
  }

  /* Scroll Up Button */
  .scroll-up {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--gold);
    color: var(--dark-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    border: none;
  }

  .scroll-up.active {
    opacity: 1;
    visibility: visible;
  }

  .scroll-up i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
  }

  .scroll-up:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  }

  /* Animations */
  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(5deg);
    }
  }

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

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

  @keyframes move {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 20px 20px;
    }
  }

  /* Responsive Design */
  @media (max-width: 992px) {
    .logo {
      font-size: 4rem;
    }
    
    .tagline {
      font-size: 1.2rem;
    }
    
    .menu-section-title {
      font-size: 2.5rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
  }

  @media (max-width: 768px) {
    .menu {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      padding: 2rem 1rem;
    }
    
    .logo {
      font-size: 3.5rem;
    }
    
    .nav-buttons button {
      padding: 0.7rem 2rem;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .floating-food {
      display: none;
    }
  }

  @media (max-width: 576px) {
    .menu-section {
      padding: 1rem 0.5rem;
  }
    .menu {
        grid-template-columns: repeat(2, 1fr); /* تغيير من 1fr إلى repeat(2, 1fr) */
        gap: 1rem;
        padding: 1rem;
    }
    
    .menu-item {
        margin-bottom: 0; /* إزالة الهوامش السفلية الإضافية */
    }
    
    .logo {
      font-size: 2.5rem;
  }
  
  .menu-section-title {
      font-size: 1.8rem;
  }

    
    .tagline {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .offer-banner h2 {
        font-size: 2rem;
    }
    
    .offer-banner p {
        font-size: 1rem;
    }
    
    /* تعديلات إضافية لتحسين العرض على الهواتف */
    .menu-item img {
        height: 150px; /* تقليل ارتفاع الصور */
    }
    
    .menu-item .info {
      padding: 1rem 0.5rem;
  }
  
  .menu-item h3 {
      font-size: 1.1rem;
  }
    
    .menu-item .price {
        font-size: 1.2rem; /* تصغير حجم السعر */
    }
    
    .badge {
        padding: 5px 10px; /* تصغير حجم الشارة */
        font-size: 0.8rem;
    }
}

.item-actions{
  display: flex;
  border-top: 1px solid #eee;
  padding: 0.8rem;
  margin-top: auto; /* يضمن بقاء الأزرار في الأسفل */
}

.edit-btn, .delete-btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.9rem;
  border-radius: 6px;
  margin: 0 0.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.edit-btn {
  background: #f0f0f0;
  color: #5a4a3a;
  border: 1px solid #ddd;
}

.edit-btn:hover, .delete-btn:hover  {
  background: #e0e0e0;
}

.delete-btn {
  background: #fff0f0;
  color: #d32f2f;
  border: 1px solid #ffcccc;
}



.safrah-no-items {
  text-align: center;
  grid-column: 1 / -1;
  color: #999;
  padding: 2rem;
  font-size: 1.1rem;
}




/* أنماط نموذج التعديل والتأكيد */
.edit-form-container, .delete-confirmation {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.form-actions, .delete-confirmation form {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.save-btn, .delete-btn, .cancel-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.save-btn {
  background-color: #4CAF50;
  color: white;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.cancel-btn {
  background-color: #e0e0e0;
  color: #333;
}

.save-btn:hover, .delete-btn:hover, .cancel-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


.whatsapp-btn-legendary {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn-legendary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon-legendary {
  width: 24px;
  height: 24px;
}


.add-item-btn-unique {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #b3003c; /* لون عنابي */
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.add-item-btn-unique:hover {
  background-color: #8a002e;
}

.add-item-btn-unique i {
  font-size: 18px;
}
