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


html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #0a0f1a;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #eb0029;
}

.logo a{text-decoration: none;
  outline: none;
  }

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: orange;
}

.cart-icon {
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Navbar Responsive ===== */
@media (max-width: 1024px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 20px;
    background-color: #0a0f1a;
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 180px;
    text-align: left;
    animation: fadeIn 0.25s ease-in-out;
  }

  .nav a {
    margin: 12px 0;
    font-size: 18px;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cart-icon {
    margin-left: 10px;
  }
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.background-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #0a0f1a; /* خلفية متناسقة لو الصورة أصغر */
}

.menu-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* تبين الصورة كلها بدون قص */
}

/* للتابلت */
@media (max-width: 1024px) {
  .menu-image {
    max-height: 500px;
  }
}

/* للموبايل */
@media (max-width: 600px) {
  .menu-image {
    max-height: 350px;
  }
}

.container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
}

.sidebar {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.search-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-list button {
  background: #ddd;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.category-list button:hover {
  background: #eb0029;
  color: white;
}

.filter input {
  width: 100%;
  margin-bottom: 10px;
  cursor: pointer;
}

.filter button {
  width: 100%;
  margin-bottom: 20px;
  margin-top: 10px;
  background: #eb0029;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.menu {
  width: 75%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.menu-item {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

.menu-item img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px dashed #eb0029;
  padding: 5px;
  background: #fff;
  transition: transform 0.3s;
}

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

.menu-item h4 {
  margin: 10px 0;
  font-size: 18px;
  font-weight: bold;
}

.menu-item .price {
  color: #eb0029;
  font-weight: bold;
  font-size: 20px;
  margin: 5px 0;
}

.menu-item button {
  background: #eb0029;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.menu-item a {
  text-decoration: none;
  outline: none;
}


.menu-item button:hover {
  background: #e95d26;
}

.menu-item button i {
  font-size: 16px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
}

.pagination .active {
  background: #eb0029;
  color: white;
}



footer {
  width: 100vw;
  max-width: 100%;
  background-color: #0a0f1a;
  padding-top: 60px;
  color: white;
  margin: 0;
}


.footer-top-info {
  background: #f36b26;
  padding: 10px 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  max-width: 1200px;
  margin: auto;
  border-radius: 10px;
}

.footer-top-info div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.footer-top-info div i {
  font-size: 22px;
  background: white;
  color: #f36b26;
  padding: 10px;
  border-radius: 50%;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.footer-info,
.footer-links,
.footer-contact {
  width: 30%;
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
  font-size: 20px;
  color: #f36b26;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.footer-links ul li a:hover {
  color: orange;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  background: #eb0029;
  color: white;
  width: 100%;
  margin: 0;
}

.footer-bottom a {
  text-align: center;
  padding: 20px 0;
  background: #eb0029;
  color: white;
  width: 100%;
  margin: 0;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}



/* ===== Footer Responsive Vertical ===== */

/* للتابلت */
@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
    /* كل الأقسام عمودي */
    text-align: center;
    padding: 40px 20px;
    align-items: center;
    /* المركزية لكل المحتوى */
    gap: 30px;
    /* مسافة بين الأقسام */
  }

  .footer-info,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
    /* مسافة موجودة في gap */
  }

  .footer-top-info {
    flex-direction: column;
    /* أيقونات عمودية */
    align-items: center;
    padding: 20px 30px;
    gap: 25px;
    /* المسافة بين كل div أيقونات */
  }

  .footer-top-info div {
    display: flex;
    flex-direction: column;
    /* أيقونات داخل كل div عمودي */
    align-items: center;
    gap: 20px;
    /* المسافة بين الأيقونات */
  }
}

/* للموبايل */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    align-items: center;
    gap: 25px;
  }

  .footer-info,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-links ul li a {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-top-info {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
  }

  .footer-top-info div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* المسافة بين الأيقونات */
  }

  .footer-bottom {
    font-size: 14px;
    padding: 15px 10px;
  }

  .footer-bottom a {
    display: block;
    padding: 10px 0;
  }
}



/* ===== Responsive Adjustments ===== */

/* ===== Tablet (1024px) ===== */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    gap: 20px;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
  }

  .menu {
    width: 100%;
    padding: 20px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr); /* خلي كل صف فيه 2 items */
    gap: 20px; /* مسافة بين العناصر */
  }

  .menu-item img {
    width: 100px;
    height: 100px;
  }

  .menu-item h4 {
    font-size: 15px;
  }

  .menu-item .price {
    font-size: 16px;
  }

  .menu-item button {
    font-size: 13px;
    padding: 8px 12px;
  }

}

@media (max-width: 768px) {
  .pagination {
    display: flex;
    justify-content: center !important; /* يوسّط الأزرار أفقيًا */
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px auto !important; /* يوسّط الحاوية نفسها */
    width: fit-content; /* يقيّد عرض الحاوية على الأزرار فقط */
  }

  .pagination button {
    width: 50px !important;     
    height: 30px !important;    
    padding: 0 !important;      
    font-size: 12px !important; 
    text-align: center;
    line-height: 30px;          
  }
}