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

html {
  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ===========================
   Body & Global Font - Enhanced Typography
=========================== */
html[dir="ltr"] body {
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button {
  font-family: 'Cairo', sans-serif;
}

/* Unified font sizes for both languages */
html {
  font-size: 16px;
}

.product-name {
  font-size: 24px;
}

.product-description {
  font-size: 16px;
}

.menu-title {
  font-size: 42px;
}

.section-title {
  font-size: 32px;
}

/* Improved language switcher - fixed position without RTL flip */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  gap: 10px;
  background: white;
  padding: 10px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.language-switcher.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.lang-btn {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.lang-btn:hover {
  background: var(--primary-color, #000000);
  color: white;
  transform: scale(1.05);
}

.lang-btn.active {
  background: var(--primary-color, #000000);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
  text-align: center;
}

.hero-content img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  max-width: 200px;
  display: block;
  margin: 0 auto;
}

.logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  animation: fadeIn 1s ease-in;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

/* Fixed menu buttons container to prevent overlap with logo on scroll */
.menu-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* الأزرار باللون الأسود */
.menu-btn {
  display: inline-block;
  background-color: #000000;
  color: white;
  text-decoration: none;
  padding: 16px 50px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid transparent;
  white-space: nowrap;
}

.menu-btn:hover {
  background-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Menu Buttons Wrapper */
.menu-buttons-wrapper {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.menu-buttons-wrapper .menu-btn {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid transparent;
  white-space: nowrap;
  display: inline-block;
  cursor: pointer;
}

.menu-buttons-wrapper .menu-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.social-media {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 0;
  flex-wrap: wrap;
}

/* أيقونات السوشيال ميديا باللون الأسود */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: #000000;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.snapchat:hover {
  background-color: #fffc00;
  color: black;
}

.social-icon.whatsapp:hover {
  background-color: #25d366;
}

.social-icon.tiktok:hover {
  background-color: #000000;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 20px;
}

/* Back button - fixed position top left */
.back-btn {
  position: fixed;
  top: 90px;
  left: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
  background-color: var(--primary-color, #000000);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
  background-color: var(--secondary-color, #333333);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-btn .fa-arrow-left {
  transition: transform 0.3s ease;
}

.back-btn:hover .fa-arrow-left {
  transform: translateX(-3px);
}

/* عنوان المنيو باللون الأسود */
.menu-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 30px;
  margin-top: 20px;
  color: var(--primary-color, #000000);
  font-weight: 700;
}

/* Tabs - fixed alignment, no RTL shift */
.tabs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin: 20px 0;
  padding: 0 10px;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  direction: ltr;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #000000;
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .back-btn {
    top: 80px;
    left: 15px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .back-btn {
    top: 75px;
    left: 10px;
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* تابات الفئات باللون الأسود */
.tab-btn {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--primary-color, #000000);
  font-size: 15px;
}

.tab-btn:hover {
  background: rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--primary-color, #000000);
  color: #fff;
  border-color: var(--primary-color, #000000);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-section {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.menu-section.active {
  display: block;
}

/* عنوان القسم باللون الأسود */
.section-title {
  text-align: center;
  font-size: 32px;
  margin: 40px 0 30px;
  color: #000000;
  font-weight: 700;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* بطاقة المنتج باللون الأسود */
.menu-item {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-in;
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.menu-item-content {
  padding: 0;
}

/* اسم المنتج باللون الأسود */
.product-name {
  font-size: 24px;
  color: #000000;
  margin: 20px 0 10px;
  padding: 0 20px;
  font-weight: 600;
}

/* Increased description text size for better readability */
.product-description {
  color: #6c757d;
  padding: 0 20px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
}

/* السعرات باللون الأسود */
.product-calories {
  color: #000000;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}

/* السعر باللون الأسود */
.product-price {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

/* الفوتر باللون الأسود */
footer {
  background: var(--primary-color);
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-copyright {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.footer-dev {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.footer-dev span {
  font-weight: 400;
}

.footer-dev a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-dev a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .footer-copyright {
    font-size: 14px;
  }

  .footer-dev {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 30px 15px;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-dev {
    font-size: 12px;
  }
}

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

@media (max-width: 768px) {
  .hero-content {
    gap: 30px;
  }

  .logo {
    max-width: 220px;
  }

  .menu-buttons-container {
    bottom: 100px;
  }

  .menu-btn {
    padding: 14px 40px;
    font-size: 16px;
  }

  .menu-title {
    font-size: 32px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .footer-content {
    gap: 12px;
  }

  .footer-copyright {
    font-size: 14px;
  }

  .footer-dev {
    font-size: 13px;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    gap: 25px;
  }

  .logo {
    max-width: 180px;
  }

  .menu-buttons-container {
    bottom: 90px;
  }

  .menu-btn {
    padding: 12px 35px;
    font-size: 15px;
  }

  .social-media {
    padding: 20px 0;
  }

  .product-name {
    font-size: 20px;
  }

  .product-description {
    font-size: 15px;
  }

  .product-calories {
    font-size: 13px;
  }

  .product-price {
    font-size: 20px;
  }

  footer {
    padding: 30px 15px;
  }
}

/* زر العودة للأعلى باللون الأسود */
.back-to-top {
  position: fixed;
  bottom: 2.5rem;
  inset-inline-end: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000000, #333333);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ظهور الزر مع تأثير نبض خفيف */
.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pulse 2s infinite;
}

/* تأثير عند التحويم */
.back-to-top:hover {
  background: linear-gradient(135deg, #333333, #000000);
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* أيقونة أكبر وواضحة */
.back-to-top svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke-width: 2;
}

/* تأثير نبض خفيف */
@keyframes pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.logo-container {
  max-width: 200px;
  margin: 0 auto;
  animation: fadeInDown 0.8s ease-out;
}

.header-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* لوقو المنيو */
.menu-title {
  text-align: center;
  margin-bottom: 50px;
}

.menu-logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-logo {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .menu-logo {
    width: 120px;
    height: 120px;
  }
}

/* Popup باللون الأسود */
/* Popup overlay */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 15px;
}

/* Popup content with gradient */
.popup-content {
  background: linear-gradient(135deg, #000000, #333333);
  padding: 30px 25px;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3);
  color: #fff;
  position: relative;
  animation: popupFadeIn 0.3s ease-out;
  font-family: 'Cairo', sans-serif;
}

/* Fade-in animation */
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
  background: none;
  border: none;
}

.close-btn:hover {
  color: #ccc;
}

/* Locations grid */
.locations-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

/* Delivery Apps Grid */
.delivery-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

/* Location cards */
.location-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}

.location-card:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.1);
}

/* Location title */
.location-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

/* Map links */
.location-card a {
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.location-card a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Delivery App Card */
.delivery-app-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.delivery-app-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.delivery-app-card a {
  text-decoration: none;
  width: 100%;
}

.delivery-app-icon {
  font-size: 2.5em;
  color: #fff;
}

.delivery-app-card h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 5px 0 0 0;
}

.delivery-app-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin: 0;
}

/* Responsive */
@media screen and (max-width: 500px) {
  .popup-content {
    padding: 20px 15px;
  }

  .location-card h3 {
    font-size: 16px;
  }

  .location-card a {
    font-size: 14px;
  }

  /* Mobile Action Cards */
  .menu-buttons-wrapper {
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
  }

  .menu-buttons-wrapper .menu-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}