/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* === القيم العامة === */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: #d21d40;
  color: #222;
}

:root {
  --header-height: 80px;
  --header-color: #d21d40;
  --accent: #d21d40;
}

/* === الشريط الإعلاني (تم التعديل) === */
.top-banner {
  width: 100%;
  background-color: #fdf2d4;
  color: #d21d40;
  padding: 10px 0;
  overflow: hidden;
  /* تعديل: جعلناه relative ليأخذ مساحة ويدفع ما تحته */
  position: relative;
  z-index: 10002;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  display: none; /* يتم التحكم بالظهور عبر JS */
}

.top-banner p {
  display: inline-block;
  white-space: nowrap;
  -webkit-animation: banner-move 12s linear infinite;
          animation: banner-move 12s linear infinite;
}

@-webkit-keyframes banner-move {
  0% { -webkit-transform: translateX(100%); transform: translateX(100%); }
  100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
}

@keyframes banner-move {
  0% { -webkit-transform: translateX(100%); transform: translateX(100%); }
  100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
}

/* ======== الهيدر (تم التعديل) ======== */
.header-bg {
  /* تعديل: Sticky ليلتصق أسفل البنر */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-color);
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  z-index: 10001;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition: -webkit-transform 0.4s ease, -webkit-box-shadow 0.4s ease;
  transition: -webkit-transform 0.4s ease, -webkit-box-shadow 0.4s ease;
  -o-transition: transform 0.4s ease, box-shadow 0.4s ease;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transition: transform 0.4s ease, box-shadow 0.4s ease, -webkit-transform 0.4s ease, -webkit-box-shadow 0.4s ease;
  -webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.1);
          box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-bg.hidden {
  -webkit-transform: translateY(-120%);
      -ms-transform: translateY(-120%);
          transform: translateY(-120%);
  -webkit-box-shadow: none;
          box-shadow: none;
}

.main-header {
  /* تعديل: Sticky ليتطابق مع الخلفية */
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 10002;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  pointer-events: none;
  /* سحب المحتوى للأعلى ليغطي الخلفية لأن كلاهما sticky */
  margin-top: calc(var(--header-height) * -1);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  pointer-events: auto;
  position: relative;
}

/* ======== اسم المطعم بدلاً من اللوجو ======== */
.header-title {
  font-size: 20px;
  font-weight: bold;
  color: #fdf2d4;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 1000;
}

.logo {
  height: 100px;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.logo:hover {
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}

/* ======== زر 3 الشرطات ======== */
.menu-toggle {
  font-size: 32px;
  color: #fdf2d4;
  cursor: pointer;
  display: block;
  position: relative; /* نسبي بالنسبة للheader-container */
  z-index: 1001;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.menu-toggle:hover {
  -webkit-transform: scale(1.2);
      -ms-transform: scale(1.2);
          transform: scale(1.2);
}

/* ======== منيو السلايدر ======== */
.mobile-menu {
  position: absolute;
  top: 100%; /* مباشرة بعد الهيدر */
  right: 0;
  width: 100%;
  background: #d21d40;
  padding: 20px 0;
  text-align: center;
  -webkit-transition: max-height 0.4s ease, opacity 0.4s ease, -webkit-transform 0.4s ease;
  transition: max-height 0.4s ease, opacity 0.4s ease, -webkit-transform 0.4s ease;
  -o-transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease, -webkit-transform 0.4s ease;
  z-index: 999;
  border-bottom-left-radius: 0; /* إزالة الانحناء */
  border-bottom-right-radius: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0); /* يكون متصل بالهيدر */
  pointer-events: none;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 20px 0;
}

.mobile-menu a {
  color: #fdf2d4;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  display: inline-block;
  -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease;
  transition: color 0.3s ease, -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease, color 0.3s ease;
  transition: transform 0.3s ease, color 0.3s ease;
  transition: transform 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease;
}

.mobile-menu li a:hover {
  color: #ffdee0;
  -webkit-transform: translateX(10px);
      -ms-transform: translateX(10px);
          transform: translateX(10px);
}

/* قوائم الديسكتوب */
.navbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease;
  transition: color 0.3s ease, -webkit-transform 0.3s ease;
  -o-transition: color 0.3s ease, transform 0.3s ease;
  transition: color 0.3s ease, transform 0.3s ease;
  transition: color 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
}

.navbar a:hover {
  color: #ffdee0;
  -webkit-transform: translateY(-3px);
      -ms-transform: translateY(-3px);
          transform: translateY(-3px);
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  height: 2px;
  width: 0;
  background: #fff;
  -webkit-transition: width 0.3s ease;
  -o-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

/* ======== السلة ======== */
.cart-container {
  position: relative;
  cursor: pointer;
}

.cart-icon {
  width: 35px;
  -webkit-filter: brightness(1.2) invert(1);
          filter: brightness(1.2) invert(1);
  -webkit-transition: -webkit-transform .2s ease;
  transition: -webkit-transform .2s ease;
  -o-transition: transform .2s ease;
  transition: transform .2s ease;
  transition: transform .2s ease, -webkit-transform .2s ease;
}

.cart-icon:hover {
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  left: -8px;
  background: #fff;
  color: #ff1414;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* ===== تصميم خانة الخصم وزر التطبيق ===== */
.discount-box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

#discountCode_v2 {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

#discountCode_v2:focus {
  border-color: #d21d40;
}

#applyDiscountBtn_v2 {
  padding: 10px 15px;
  background: #d21d40;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

#applyDiscountBtn_v2:hover {
  background: #ff6a00;
}

#discountMessage_v2 {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* ======== الهيرو (تم التعديل) ======== */
.hero-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
  /* تعديل: إلغاء المارجن لأن الهيدر Sticky ويحجز مساحة */
  margin-top: 0 !important;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
      object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-logo {
  position: absolute;
  top: 150px;
  left: 50%;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 10;
}

.hero-logo img {
  width: 340px;
  -webkit-filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
          filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hero-content {
  position: relative;
  z-index: 11;
  color: #fdf2d4;
  text-align: center;
  top: 60%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

.hero-title {
  font-size: 20px;
  margin-bottom: 140px;
  text-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

.menu-btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  -webkit-transition: background .3s ease, -webkit-transform .2s ease;
  transition: background .3s ease, -webkit-transform .2s ease;
  -o-transition: background .3s ease, transform .2s ease;
  transition: background .3s ease, transform .2s ease;
  transition: background .3s ease, transform .2s ease, -webkit-transform .2s ease;
}

.menu-btn:hover {
  background: #a81534;
  -webkit-transform: translateY(-3px);
      -ms-transform: translateY(-3px);
          transform: translateY(-3px);
}

/* ======== من نحن ======== */
.about-section {
  text-align: center;
  padding: 100px 20px;
  background-color: #d21d40;
}

.about-title {
  font-size: 36px;
  color: #fdf2d4;
  margin-bottom: 50px;
}

.about-boxes {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 30px;
}

.about-box {
  background: #fdf2d4;
  border-radius: 20px;
  -webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.1);
          box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 30px;
  width: 300px;
  opacity: 0;
  -webkit-transform: translateY(50px);
      -ms-transform: translateY(50px);
          transform: translateY(50px);
  -webkit-transition: all 0.8s ease;
  -o-transition: all 0.8s ease;
  transition: all 0.8s ease;
}

.about-box.show {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.about-box h3 {
  font-size: 24px;
  color: #d21d40;
  margin-bottom: 15px;
}

.about-box p {
  font-size: 20px;
  color: #000000;
  line-height: 1.6;
}

.about-box:hover {
  -webkit-transform: translateY(-10px) scale(1.05);
      -ms-transform: translateY(-10px) scale(1.05);
          transform: translateY(-10px) scale(1.05);
  -webkit-box-shadow: 0 10px 25px rgba(0,0,0,0.2);
          box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.hidden {
  display: none;
}

/* ======== قائمة الطعام ======== */
.menu-section {
  padding: 50px 20px;
  background-color: #d21d40;
}

.menu-section .section-title {
  color: #fdf2d4 !important;
}

.menu-section .section-title * {
  color: #d21d40 !important;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #bbaaaa !important;
  position: relative;
  top: -30px;
}

.menu-items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
}

.menu-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 20px;
}

.category-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.category-btn {
  padding: 10px 20px;
  border: none;
  background-color: #fdf2d4;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
  background-color: #d21d40;
  color: #fff;
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}

.menu-item-card {
   position: relative;
  background: -o-linear-gradient(315deg, #fff, #f5f5f5);
  background: linear-gradient(135deg, #fff, #f5f5f5);
  border-radius: 20px;
  -webkit-box-shadow: 0 8px 20px rgba(0,0,0,0.1);
          box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 15px;
  width: 280px;
  text-align: center;
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
}
.wrapped-ribbon {
  position: absolute;
  top: 160px;
  left: 45px;
  background: #ff1744;
  color: #fff;
  padding: 6px 25px;
  font-size: 14px;
  font-weight: bolder;
  z-index: 10;
  transform: rotate(-deg);
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

/* الجزء اللي بيدي إحساس اللف */
.wrapped-ribbon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 6px;
  background: #c5112f; /* درجة أغمق كأن الشريط ملفوف */
  z-index: -1;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  transform: skewX(-45deg);
}

.menu-item-card:hover {
  -webkit-transform: translateY(-5px);
      -ms-transform: translateY(-5px);
          transform: translateY(-5px);
  -webkit-box-shadow: 0 12px 25px rgba(0,0,0,0.2);
          box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.menu-item-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 15px;
}

.menu-item-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
      object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.menu-item-img:hover img {
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}

.calories {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.menu-item-title {
  margin: 15px 0 10px;
  font-size: 18px;
  font-weight: bold;
  color: #d21d40;
}

.menu-item-size,
.menu-item-rice,
.menu-item-quantity {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.size-btn,
.rice-btn,
.add-to-cart,
.quantity-btn {
  background: -o-linear-gradient(315deg, #d21d40, #ff3a1a);
  background: linear-gradient(135deg, #d21d40, #ff3a1a);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.15);
          box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.size-btn:hover,
.rice-btn:hover,
.quantity-btn:hover,
.add-to-cart:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 6px 18px rgba(0,0,0,0.25);
          box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.size-btn.active,
.rice-btn.active {
  background: -o-linear-gradient(315deg, #ff3a1a, #d21d40);
  background: linear-gradient(135deg, #ff3a1a, #d21d40);
}

.menu-item-rice select {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-weight: bold;
  cursor: pointer;
}

.price {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.add-to-cart {
  background: -o-linear-gradient(315deg, #d21d40, #ff3a1a);
  background: linear-gradient(135deg, #d21d40, #ff3a1a);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 5px 15px rgba(0,0,0,0.2);
          box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.add-to-cart:hover {
  background: -o-linear-gradient(315deg, #ff3a1a, #d21d40);
  background: linear-gradient(135deg, #ff3a1a, #d21d40);
  -webkit-box-shadow: 0 8px 25px rgba(0,0,0,0.3);
          box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* ======== سلايدر السلة ======== */
.cartSlider {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #fff;
  -webkit-box-shadow: -4px 0 15px rgba(0,0,0,0.25);
          box-shadow: -4px 0 15px rgba(0,0,0,0.25);
  z-index: 9999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 20px;
  -webkit-transition: right 0.4s ease-in-out;
  -o-transition: right 0.4s ease-in-out;
  transition: right 0.4s ease-in-out;
}

.cartSlider.open {
  right: 0;
}

.cartSlider-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.cartSlider-header h3 {
  color: #d21d40;
  font-size: 22px;
}

.cartSlider-close {
  cursor: pointer;
  font-size: 26px;
  color: #d21d40;
}

.cartSlider-items {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 5px;
}

.cartSlider-items::-webkit-scrollbar {
  width: 5px;
}

.cartSlider-items::-webkit-scrollbar-thumb {
  background: #d21d40;
  border-radius: 5px;
}

.cartSlider-options {
  margin-top: 10px;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
}

.cartSlider-options label {
  font-weight: bold;
  display: block;
  color: #d21d40;
  margin-top: 5px;
}

.cartSlider-options select {
  width: 100%;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.cartSlider-total {
  text-align: right;
  font-weight: bold;
  color: #d21d40;
  margin: 15px 0;
  font-size: 18px;
}

.cartSlider-send {
  width: 100%;
  background: #d21d40;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  margin-top: auto;
}

.cartSlider-send:hover {
  background: #b01734;
}

.empty-cart {
  text-align: center;
  color: #999;
  margin-top: 30px;
}
/* تنسيق خانات السيارة */
.car-fields {
  display: none;
  background: #f7f7f7;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid #e3e3e3;
}

.car-fields label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 5px;
  color: #444;
}

.car-fields input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.3s;
  background: #fff;
}

.car-fields input:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 5px rgba(255, 122, 0, 0.4);
  outline: none;
}

/* ==== عنصر السلة ==== */
.cart-item {
  background: #fff;
  padding: 14px;
  border-radius: 15px;
  -webkit-box-shadow: 0 4px 10px rgba(0,0,0,0.08);
          box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  border: 1px solid #f1f1f1;
}

/* ==== رأس العنصر (الاسم + زر الحذف) ==== */
.cart-item-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 8px;
}

.cart-item-header strong {
  font-size: 16px;
}

/* ==== زر حذف الصنف ==== */
.remove-item {
  background: #d21d40;
  color: white;
  border: none;
  outline: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: 0.2s;
  -o-transition: 0.2s;
  transition: 0.2s;
}

.remove-item:hover {
  background: #d21d40;
  -webkit-transform: scale(1.05);
      -ms-transform: scale(1.05);
          transform: scale(1.05);
}

/* ==== تفاصيل الحجم والرز ==== */
.cart-item-details {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

/* ==== أزرار التحكم بالكمية ==== */
.cart-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

/* زر + و – */
.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: #b01734;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  -webkit-transition: 0.2s ease;
  -o-transition: 0.2s ease;
  transition: 0.2s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.qty-btn:hover {
  background: #444;
  -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}

.qty-number {
  font-size: 18px;
  font-weight: bold;
  min-width: 28px;
  text-align: center;
}

/* سعر الصنف */
.item-total {
  margin-left: auto;
  font-weight: bold;
  font-size: 15px;
}
.site-footer {
  background-color: #fdf2d4;
  color: #fff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

/* حاوية الفوتر */
.footer-container {
  background-color: #fdf2d4;
  max-width: 1200px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 40px;
  padding: 30px 20px;
}

/* شعار المطعم */
.footer-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 350px;
          flex: 1 1 350px; /* يعطي حد أدنى للعرض */
}

.logo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 120px; /* ارتفاع ثابت للوجو */
  margin-bottom: 10px;
}

.restaurant-logo {
  height: 270px; /* ارتفاع ثابت */
  width: auto;
}

/* اسم المطعم والعنوان */
.footer-brand h3 {
  font-size: 24px;
  margin: 10px 0 5px 0;
  color: #d21d40;
}

.footer-brand .restaurant-address {
  font-size: 19px;
  color: #d21d40;
  margin-bottom: 20px;
}

/* كل قسم أيقونات مع عنوان */
.footer-social-section,
.footer-delivery-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 200px;
          flex: 1 1 200px; /* يعطي حد أدنى للعرض */
}

/* العنوان فوق الأيقونات */
.section-title {
  font-size: 22px;
  margin-bottom: 15px; /* مسافة بين العنوان والأيقونات */
  color: #d21d40 !important;
}

/* أيقونات السوشيال */
.footer-social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 20px; /* مسافة أسفل الأيقونات */
}

.footer-social a img {
  width: 50px;
  height: 50px;
  -webkit-transform-origin: center bottom;
      -ms-transform-origin: center bottom;
          transform-origin: center bottom;
  -webkit-animation: wave 1.2s linear infinite;
          animation: wave 1.2s linear infinite;
}

/* تأخير مختلف لكل أيقونة لتكون موجة متتابعة */
.footer-social a img:nth-child(1) { -webkit-animation-delay: 0s; animation-delay: 0s; }
.footer-social a img:nth-child(2) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.footer-social a img:nth-child(3) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }
.footer-social a img:nth-child(4) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }
.footer-social a img:nth-child(5) { -webkit-animation-delay: 0.8s; animation-delay: 0.8s; }
.footer-social a img:nth-child(6) { -webkit-animation-delay: 1s; animation-delay: 1s; }

/* تطبيقات التوصيل */
.delivery-icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 10px;
}

.delivery-icons img {
  width: 60px;
  height: auto;
  -webkit-transform-origin: center bottom;
      -ms-transform-origin: center bottom;
          transform-origin: center bottom;
  -webkit-animation: wave 1.2s linear infinite;
          animation: wave 1.2s linear infinite;
}

/* نفس التأخير لتطبيقات التوصيل */
.delivery-icons img:nth-child(1) { -webkit-animation-delay: 0s; animation-delay: 0s; }
.delivery-icons img:nth-child(2) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.delivery-icons img:nth-child(3) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }
.delivery-icons img:nth-child(4) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; }
.delivery-icons img:nth-child(5) { -webkit-animation-delay: 0.8s; animation-delay: 0.8s; }
.delivery-icons img:nth-child(6) { -webkit-animation-delay: 1s; animation-delay: 1s; }

/* keyframes الموجة */
@-webkit-keyframes wave {
  0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(1.3); transform: scale(1.3); }
}
@keyframes wave {
  0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(1.3); transform: scale(1.3); }
}

/* hover effect أكبر */
.footer-social a img:hover,
.delivery-icons img:hover {
  -webkit-transform: scale(1.5);
      -ms-transform: scale(1.5);
          transform: scale(1.5);
}
/* حقوق الملكية */
.footer-bottom {
  margin-top: 30px;
  font-size: 14px;
  color: #d21d40;
  border-top: 1px solid #444;
  padding-top: 10px;
  text-align: center;
}

/* Responsive */
@media(max-width: 992px) {
  .footer-container {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}

@media(max-width: 768px) {
  .footer-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 20px;
  }

  .footer-social a img,
  .delivery-icons img {
    width: 30px;
    height: 30px;
  }

  
}

@media(max-width: 480px) {
  .section-title {
    font-size: 20px;
  }

  .footer-brand h3 {
    font-size: 20px;
  }

  .footer-brand .restaurant-address {
    font-size: 16px;
  }
}

/* ======== Mobile Fix ======== */
@media (max-width: 668px) {

      /* ======== أقسام قائمة الطعام ======== */
  .menu-items {
    gap: 25px;
  }

  .menu-group {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 15px;
  }

  .menu-item-card {
    width: 70%;
    margin: 0 auto;
  }

  .category-buttons {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 8px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 15px;
  }

  .category-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
}

/* ⬅ إصلاح الهيدر + الشريط الإعلاني + الهيرو للأندرويد (معدل) */
@media (max-width: 768px) {

    /* ====== الشريط الإعلاني ====== */
    .top-banner {
        font-size: 14px !important;
        padding: 8px 0 !important;
        height: auto !important;
        line-height: normal !important;
        white-space: nowrap;
        position: relative !important; /* تأكيد الوضع النسبي */
    }

    .top-banner p {
        font-size: 14px !important;
    }

    /* ====== الهيدر ====== */
    .header-bg {
        height: 70px !important;
        top: 0 !important;
        position: -webkit-sticky !important; /* sticky بدلاً من fixed */
        position: sticky !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 40px !important;
        border-bottom-right-radius: 40px !important;
    }

    .main-header {
        height: 70px !important;
        top: 0 !important;
        /* سحب المحتوى ليطابق الخلفية في وضع sticky */
        margin-top: -70px !important; 
    }

    .header-title {
        font-size: 16px !important;
        top: 50% !important;
        -webkit-transform: translateY(-50%) translateX(-50%) !important;
            -ms-transform: translateY(-50%) translateX(-50%) !important;
                transform: translateY(-50%) translateX(-50%) !important;
        white-space: nowrap;
    }

    .menu-toggle {
        font-size: 26px !important;
    }

    /* ====== الهيرو ====== */
    .hero-section {
        /* إزالة المارجن لأن الهيدر يأخذ مساحة الآن */
        margin-top: 0 !important; 
        height: 85vh !important;
    }

    .hero-logo img {
        width: 300px !important;
        margin-top: -50px !important;
    }

    .hero-title {
        font-size: 18px !important;
        margin-bottom: 60px !important;
    }

    .menu-btn {
        font-size: 16px !important;
        padding: 10px 22px !important;
    }
}

.logo-img {
  height: 150px;   /* نفس ارتفاع كلمة SAMAM تقريبًا */
  object-fit: contain;
  margin-top: 14px;
}
.menu-item-img {
  position: relative;
}

.item-label {
  position: absolute;
  top: 10px;          /* المسافة من فوق */
  left: 10px;         /* ← على شمال الصورة */
  background: #d32f2f;
  color: #fff;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 6px;
  z-index: 10;
  font-weight: bold;
  white-space: nowrap;  /* يخليها ما تتكسر على الشاشات الصغيرة */
}
.menu-item-price {
  margin-top: 10px;
}

.old-price {
  color: red;
  text-decoration: line-through;
  font-size: 14px;
  margin: 0;
}

.new-price {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  color: #333;
}
.menu-item-quantity {
  margin: 10px 0;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #c62828;
  color: #fff;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
}

.qty-btn:hover {
  opacity: 0.9;
}

.quantity-input {
  min-width: 25px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}
/* ===== شريط أسود شفاف بعرض الشاشة ===== */
.hero-services {
  width: 100vw;              /* عرض الشاشة */
  padding: 14px 0;           /* ارتفاع الشريط */
  background: rgba(71, 38, 38, 0.6);
  position: absolute;
  bottom: 50px; /* ارتفاع افتراضي على الديسكتوب */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 12;
  /* max-width: 90%;  تم إلغاؤه ليأخذ العرض الكامل */
}

/* تكبير بسيط للنص */
.hero-services p {
  color: #fdf2d4;
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.hero-services a {
  display: inline-block;
  background: #a81534;
  color: #fff;
  padding: 8px 16px; /* أقل شوي للموبايل */
  border-radius: 25px;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-services a:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

/* ===== موبايل ===== */
@media screen and (max-width: 768px) {
  .hero-services {
    padding: 10px 0;
    bottom: 30px;       /* أقل ارتفاع للشاشات الصغيرة */
  }

  .hero-services p {
    font-size: 16px;    /* نص أصغر للموبايل */
  }
  
  .hero-services a {
    padding: 6px 14px;  /* زر أصغر يناسب الموبايل */
    font-size: 13px;
  }
}

/* ================= الإعلان عند فتح الموقع ================= */

/* الخلفية السوداء الشفافة */
#ad-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* صندوق الإعلان */
.ad-box {
  position: relative;
  width: 90%;
  max-width: 500px;
}

/* حاوية الصورة */
.ad-image-wrapper {
  position: relative;
  width: 100%;
}

/* صورة الإعلان */
.ad-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* زر الإغلاق */
.close-ad {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 45px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #cb1616;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  z-index: 10;
}

/* ================= زر واتساب فوق الصورة ================= */
.ad-btn {
  position: absolute;

  /* 🔥 تثبيت الزر في الجزء الفاضي من الصورة */
  left: 50%;
  top: 70%;            /* 👈 عدل الرقم ده لو حابب */
  transform: translateX(-50%);

  padding: 14px 38px;
  background: #d21d40;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* لمسة بسيطة عند المرور */
.ad-btn:hover {
  background: #1ebe5d;
}