/* ===== BODY STYLES FOR NAVBAR ===== */
body {
  padding-top: 85px; /* Space for fixed navbar */
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== IMMEDIATE NAVBAR FIX FOR MENU PAGE ===== */
/* This rule ensures logo is on left immediately on page load */
/* ===== IMMEDIATE NAVBAR FIX FOR MENU PAGE ===== */
/* This rule ensures logo is on left immediately on page load */
.navbar-expand-lg .container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  
  .navbar-expand-lg .navbar-brand {
    order: 1 !important; /* تغيير من 2 إلى 1 */
    margin-left: 0 !important; /* إزالة margin-left السابق */
    margin-right: auto !important; /* إضافة margin-right */
  }
  
  .navbar-expand-lg .navbar-nav {
    order: 2 !important; /* تغيير من 1 إلى 2 */
    margin-right: 0 !important; /* إزالة margin-right السابق */
    margin-left: auto !important; /* إضافة margin-left */
  }
  
  .navbar-expand-lg .navbar-toggler {
    order: 3 !important;
    margin-left: 15px !important; /* تعديل الهامش */
  }
  
  /* التأكد من أن القواعد تعمل في جميع الاتجاهات */
  [dir="ltr"] .navbar .navbar-brand,
  [dir="rtl"] .navbar .navbar-brand {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  
  [dir="ltr"] .navbar .navbar-nav,
  [dir="rtl"] .navbar .navbar-nav {
    order: 2 !important;
    margin-right: 0 !important;
    margin-left: auto !important;
  }
/* ===== MENU SPECIFIC STYLES ===== */

/* Menu Hero Section */
.menu-hero-section {
  background: linear-gradient(135deg, #2c5530 0%, #1a3a1e 100%);
  padding: 40px 0 80px; /* Reduced top padding since body has padding now */
  position: relative;
  overflow: hidden;
}

.menu-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  pointer-events: none;
}

.menu-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.menu-hero-line {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #d4a574, #c8956d);
  margin: 0 auto 25px;
  border-radius: 2px;
}

.menu-hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #ffffff;
  opacity: 0.9;
  font-style: italic;
}

/* Menu Tabs Section */
.menu-tabs-section {
  padding: 60px 0 40px;
  background: #f8f9fa;
}

.menu-tabs-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.menu-tab {
  background: #ffffff;
  color: #2c5530;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.1);
  position: relative;
  overflow: hidden;
}

.menu-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
  transition: left 0.6s ease;
}

.menu-tab:hover::before {
  left: 100%;
}

.menu-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 85, 48, 0.2);
  border-color: #d4a574;
}

.menu-tab.active {
  background: linear-gradient(135deg, #2c5530, #1a3a1e);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
}

/* Menu Content Section */
.menu-content-section {
  padding: 40px 0 80px;
  background: #f8f9fa;
}

.menu-category {
  display: none;
  animation: fadeInUp 0.6s ease-out;
}

.menu-category.active {
  display: block;
}

/* Menu Item Cards */
.menu-item-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  height: 100%;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #d4a574, #c8956d);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.menu-item-card:hover::before {
  transform: scaleX(1);
}

.menu-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
  border-color: #d4a574;
}

.menu-item-image {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.menu-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.menu-item-card:hover .menu-item-image img {
  transform: scale(1.1);
}

.menu-item-content {
  flex-grow: 1;
  text-align: center;
}

.menu-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c5530;
  margin-bottom: 15px;
  line-height: 1.3;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-item-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 80px;
}

.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #d4a574;
  text-align: center;
  margin-top: auto;
}

.menu-item-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Design */
@media (max-width: 768px) {
  .menu-hero-title {
    font-size: 2.5rem;
  }
  
  .menu-tabs-container {
    gap: 10px;
  }
  
  .menu-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .menu-item-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .menu-item-image {
    height: 180px;
  }
  
  .menu-item-title {
    font-size: 1.1rem;
    min-height: 40px;
  }
  
  .menu-item-desc {
    font-size: 0.9rem;
    min-height: 60px;
  }
}

/* Mobile Design */
@media (max-width: 576px) {
  .menu-hero-section {
    padding: 80px 0 60px;
  }
  
  .menu-hero-title {
    font-size: 2rem;
  }
  
  .menu-tabs-section {
    padding: 40px 0 30px;
  }
  
  .menu-content-section {
    padding: 30px 0 60px;
  }
  
  .menu-item-image {
    height: 160px;
  }
  
  .menu-item-title {
    font-size: 1rem;
    min-height: 35px;
  }
  
  .menu-item-desc {
    font-size: 0.85rem;
    min-height: 50px;
  }
  
  .menu-item-price {
    font-size: 1.2rem;
  }
}

/* Extra Large Screens */
@media (min-width: 1200px) {
  .menu-item-image {
    width: 140px;
    height: 140px;
  }
  
  .menu-item-title {
    font-size: 1.4rem;
  }
  
  .menu-item-desc {
    font-size: 1rem;
  }
  
  .menu-item-price {
    font-size: 1.6rem;
  }
}

/* Smooth Transitions for All Elements */
* {
  transition: all 0.3s ease;
}

/* Enhanced Loading Animation */
.menu-category {
  transition: all 0.5s ease-in-out;
}

.menu-category:not(.active) {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.menu-category.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Custom Scrollbar for Menu Page */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f8f9fa, #e9ecef);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #a94d4d, #c96b6b);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #c96b6b, #a94d4d);
  box-shadow: 0 3px 8px rgba(169, 77, 77, 0.3);
}

/* Menu Item Order Button */
.menu-item-order-btn {
  background: linear-gradient(135deg, #2c5530, #1a3a1e);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 15px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
  position: relative;
  overflow: hidden;
}

.menu-item-order-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.menu-item-order-btn:hover::before {
  left: 100%;
}

.menu-item-order-btn:hover {
  background: linear-gradient(135deg, #1a3a1e, #2c5530);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 85, 48, 0.3);
}

.menu-item-order-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
}

/* Cart Icon Animation */
.cart-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
  z-index: 9999;
  animation: slideInRight 0.5s ease-out;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive adjustments for order buttons */
@media (max-width: 768px) {
  .menu-item-order-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .menu-item-order-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Navbar Override for Menu Page */
.navbar .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.navbar .navbar-brand {
  order: 2 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-inline-end: 0 !important;
  margin-inline-start: auto !important;
}

.navbar .navbar-brand img {
  height: 50px !important;
  width: auto !important;
  transition: all 0.3s ease !important;
}

.navbar .navbar-nav {
  order: 1 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.navbar .navbar-toggler {
  order: 3 !important;
  margin-right: auto !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
  padding: 15px 0 !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  transition: all 0.3s ease !important;
}

/* Responsive navbar for Menu */
@media (max-width: 991.98px) {
  .navbar .navbar-brand {
    order: 2 !important;
  }
  
  .navbar .navbar-toggler {
    order: 3 !important;
    margin-right: auto !important;
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
  }
  
  .navbar .navbar-collapse {
    order: 4 !important;
    width: 100% !important;
    margin-top: 15px !important;
  }
  
  .navbar .navbar-nav {
    margin-right: 0 !important;
    margin-inline-start: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .navbar .navbar-brand img {
    height: 40px !important;
  }
  
  .navbar {
    padding: 10px 0 !important;
  }
}

/* Strong Override for Bootstrap Navbar in Menu Page */
body .navbar.navbar-expand-lg .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-direction: row !important;
}

body .navbar.navbar-expand-lg .navbar-brand {
  order: 2 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  margin-inline-end: 0 !important;
  margin-inline-start: auto !important;
  flex: none !important;
}

body .navbar.navbar-expand-lg .navbar-nav {
  order: 1 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
}

body .navbar.navbar-expand-lg .navbar-toggler {
  order: 3 !important;
  margin-right: auto !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

/* Additional specific rules for RTL/LTR support */
[dir="ltr"] .navbar .navbar-brand {
  margin-left: auto !important;
  margin-right: 0 !important;
}

[dir="ltr"] .navbar .navbar-nav {
  margin-right: auto !important;
  margin-left: 0 !important;
}

[dir="rtl"] .navbar .navbar-brand {
  margin-right: auto !important;
  margin-left: 0 !important;
}

[dir="rtl"] .navbar .navbar-nav {
  margin-left: auto !important;
  margin-right: 0 !important;
} 