:root {
  --orange: #ee3324;
  --orange-dark: #e76900;
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #222;
  --muted: #666;
}
/* Reset عام */
* {
  box-sizing: border-box;
}
html {
  height: 100%;
}
html,
body {
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
}
body {
  margin: 0;
  font-family:
    "Cairo",
    "Open Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Tahoma,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-top: 84px;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.nav {
  position: fixed; /* كانت sticky */
  top: 0;
  left: 0; /* جديد */
  right: 0; /* جديد */
  z-index: 1000;
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  body {
    padding-top: 100px;
  }
}
.brand {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 10px;
  font-weight: 800;
}
.brand .logo img {
  /* display: grid;
  place-items: center; */
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-top: 5px;
  /* background: white;
  color: var(--orange);
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); */
}
.brand-title {
  font-size: 18px;
}

.nav-links {
  display: none;
  width: 100%;
  list-style: none;
  text-align: right;
  padding-left: 0;
  justify-content: space-between;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.nav-links.open {
  display: block;
}
/* Mobile menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 8px;
  background: white;
  color: var(--orange);
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: left;
    gap: 8px;
    background: white;
    color: var(--orange);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    width: 100%;
  }
  .nav-links.open {
    display: block;
  }
}
.landing-Page {
  min-height: 100vh;
  /* background-image: url(/Image/hero.3.jpg); */
  /* background-size: cover; */
  position: relative;
  width: 100%;
  height: 100%;
  bottom: 1px;
}
.landing-Page img {
  height: 100%;
  width: 100%;
  margin-top: -2px;
}

.landing-Page .overlay {
  /* background-color: rgba(0, 0, 0, 0.6); */
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 100;
}
.mobile-img {
  display: none;
}
@media (max-width: 575px) {
  .landing-Page {
    min-height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100vw;
  }
  .mobile-img {
    display: block;
  }
  .desktop-img {
    display: none;
  }
}
/* Hero */
.hero {
  background: linear-gradient(
    180deg,
    rgba(255, 122, 26, 0.12),
    transparent 60%
  );
  padding: 28px 16px 10px;
  margin-top: -3px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
  color: #1b1b1b;
}
.sub {
  color: #444;
  font-size: 16px;
  margin-top: 6px;
}

/* Search */
.search-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--card);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #f2e6dc;
  box-shadow: 0 6px 18px rgba(255, 122, 26, 0.07);
}
.search-wrap input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: #faf6f2;
  font-size: 15px;
}
.search-wrap button {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    background 0.2s ease;
}
.search-wrap button:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* Chips */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 2px;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #f0e0d6;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}
.chip:hover {
  background: #fff3eb;
  border-color: #ffd6b8;
  transform: translateY(-1px);
}

/* Sections */
.container {
  max-width: 1200px;
  margin: 12px auto 48px;
  padding: 0 16px;
}
.section {
  margin-top: 28px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.section h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #1f1f1f;
}
.section .hint {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid #f2e6dc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
  cursor: zoom-in; /* توضيح أن البطاقة قابلة للتكبير */
  perspective: 1000px; /* عمق ثلاثي الأبعاد */
  position: relative;
  min-height: 260px; /* ارتفاع آمن لوجهين */
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(255, 122, 26, 0.18);
}
/* @media (max-width: 480px) {
  .card{
    display: grid;
    grid-template-rows: 2rem;
  }
} */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

/* الواجهة الأمامية */
.card-front {
  position: relative;
  backface-visibility: hidden;
}

/* الواجهة الخلفية (المكوّنات) */
.card-back {
  position: absolute;
  inset: 0;
  background: var(--card);
  border: 1px solid #f2e6dc;
  border-radius: 14px;
  padding: 12px 12px 46px; /* مساحة لزر الرجوع */
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.card-back h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: #1f1f1f;
}

.card-back .ing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-back .ing-list li {
  font-size: 12px;
  font-weight: 700;
  color: #7a431c;
  background: #fff3eb;
  border: 1px dashed #ffc9a1;
  border-radius: 999px;
  padding: 6px 10px;
}

/* زر فتح "المكوّنات" */
.ingredients-btn {
  margin-top: 10px;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    background 0.2s ease;
}
.ingredients-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* زر الرجوع من الظهر */
.flip-close {
  position: absolute;
  left: 12px; /* RTL */
  bottom: 12px;
  background: #fff;
  border: 1px solid #f2e6dc;
  color: #111;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.flip-close:hover {
  background: #fffdf9;
}

@media (max-width: 575px) {
  .card {
    min-height: 230px;
  }
}
.thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #ffe6d5;
  display: block;
}
.content {
  padding: 12px;
}
.title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  color: #1f1f1f;
  margin-bottom: 6px;
}
.price {
  color: var(--orange-dark);
  font-weight: 900;
}
/* .desc {
  color: #555;
  font-size: 13px;
}
.desc:empty {
  display: none;
} */
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  color: #7a431c;
  background: #fff3eb;
  border: 1px dashed #ffc9a1;
  border-radius: 999px;
  padding: 6px 10px;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #f2e6dc;
  padding: 16px;
  text-align: center;
  color: #444;
}

/* Back to top */
.to-top {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999;
  background: var(--orange);
  color: white;
  border: none;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.35);
  cursor: pointer;
  display: none;
  font-weight: 800;
}
.to-top.show {
  display: inline-flex;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}
.lightbox.show {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
}
.lightbox-caption {
  color: #fff;
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
  display: none;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  left: 14px; /* RTL */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  /* background: #fff;   */
}
.hero-section {
  width: 100%;
  margin-bottom: 1rem;
  border: 2px solid;
  height: 60vh;
}
/* Social media: غلاف مرتب بخلفية خفيفة ونقشة ناعمة */
#social .socials-wrap {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f0 0%, #fff 50%, #fff7f0 100%);
  border: 1px solid #f2e6dc;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
#social .socials-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
        12px 12px at 10% 20%,
        rgba(255, 122, 26, 0.06) 20%,
        transparent 21%
      )
      0 0/60px 60px,
    radial-gradient(
        12px 12px at 70% 60%,
        rgba(255, 122, 26, 0.06) 20%,
        transparent 21%
      )
      0 0/60px 60px;
  pointer-events: none;
}

/* الشبكة */
#social .socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* الكرت العام */
#social .social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #f2e6dc;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  min-height: 76px;
  position: relative;
  overflow: hidden;
}
#social .social:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  filter: saturate(1.05);
}

/* لوقو داخل دائرة */
#social .social-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 48px;
}
#social .social-logo i {
  font-size: 22px;
}

/* النص */
#social .social-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
#social .social-text strong {
  font-size: 14px;
  color: #1f1f1f;
}
#social .social-text span {
  font-size: 13px;
  color: #333;
  opacity: 0.85;
}

/* ثيمات كل منصة (خلفية الكرت + حدود لونية + لون الأيقونة) */
#social .social.tiktok {
  background: linear-gradient(135deg, #111111 0%, #000000 100%);
  border-color: #191919;
  color: #fff;
}
#social .social.tiktok .social-logo {
  background: #fff;
  color: #000;
  border-color: #ff004f20; /* لمسة وردية للتيك توك */
  box-shadow: 0 6px 16px rgba(255, 0, 79, 0.18);
}
#social .social.tiktok .social-text strong,
#social .social.tiktok .social-text span {
  color: #fff;
}

/* Instagram */
#social .social.instagram {
  background: linear-gradient(
    135deg,
    #f58529 0%,
    #dd2a7b 40%,
    #8134af 70%,
    #515bd4 100%
  );
  border-color: #e86b7b;
  color: #fff;
}
#social .social.instagram .social-logo {
  background: #fff;
  color: #dd2a7b;
  border-color: #ffffff55;
  box-shadow: 0 6px 16px rgba(221, 42, 123, 0.25);
}
#social .social.instagram .social-text strong,
#social .social.instagram .social-text span {
  color: #fff;
}

/* Snapchat */
#social .social.snapchat {
  background: linear-gradient(135deg, #fffc00 0%, #ffe600 100%);
  border-color: #f0d900;
  color: #111;
}
#social .social.snapchat .social-logo {
  background: #fff;
  color: #000;
  border-color: #00000015;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
#social .social.snapchat .social-text strong,
#social .social.snapchat .social-text span {
  color: #111;
}

/* WhatsApp */
#social .social.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-color: #0f7a6d;
  color: #fff;
}
#social .social.whatsapp .social-logo {
  background: #fff;
  color: #25d366;
  border-color: #ffffff55;
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.25);
}
#social .social.whatsapp .social-text strong,
#social .social.whatsapp .social-text span {
  color: #fff;
}

@media (max-width: 480px) {
  #social .socials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; /* اختياري: نخفّض المسافة شوي */
  }
  .thumb {
    height: 120px; /* اختياري: نقلّل ارتفاع الصورة عشان كل شي يركب */
  }
}
@media (max-width: 400px) {
  .thumb {
    height: 105px;
  }
}

/* ===== Prices by size داخل الكرت ===== */
.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 800;
  color: #1f1f1f;
  margin-bottom: 8px;
  line-height: 1.25;
}

.title > span:first-child {
  font-size: 18px;
  font-weight: 900;
}

.prices {
  display: flex !important;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  direction: rtl !important;
}

.price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  padding: 5px 6px;
  border-radius: 12px;
  background: #fff3eb;
  border: 1px solid #ffd2b8;
  color: var(--orange-dark);
  font-weight: 900;
  text-align: center;
  width: 70px;
}

.price-item b {
  font-size: 11px;
  line-height: 1;
  color: #333;
}

.price-item em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .prices {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
  .price-item {
    min-height: 38px;
    padding: 4px;
  }
  .price-item em {
    font-size: 11px;
  }
}

/* ===== Final prices layout: منفصلة عن العنوان ونازلة أكثر ===== */
.card .content > .title {
  display: block;
  margin-bottom: 0;
  line-height: 1.25;
}

.card .content > .title > span:first-child {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.card .content > .prices {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 6px;
  direction: ltr;
  margin-top: 14px;
  margin-bottom: 42px;
}

.card .content > .prices .price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 42px;
  padding: 5px 6px;
  border-radius: 12px;
  background: #fff3eb;
  border: 1px solid #ffd2b8;
  color: var(--orange-dark);
  font-weight: 900;
  text-align: center;
}

.card .content > .prices .price-item b {
  font-size: 11px;
  line-height: 1;
  color: #333;
}

.card .content > .prices .price-item em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .card .content > .prices {
    grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
    gap: 5px;
    margin-top: 12px;
    margin-bottom: 36px;
  }
  .card .content > .prices .price-item {
    min-height: 38px;
    padding: 4px;
  }
  .card .content > .prices .price-item em {
    font-size: 11px;
  }
}
/* ===== تثبيت زر المكونات بنفس المستوى داخل كل الكروت ===== */

.grid {
  align-items: stretch;
}

.card {
  height: 100%;
  display: flex;
}

.card-inner {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.card-front {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* خفف المسافة الكبيرة القديمة تحت الأسعار */
.card .content > .prices {
  margin-bottom: 18px;
}

/* يخلي زر المكونات ينزل لأسفل الكرت */
.ingredients-btn {
  margin-top: auto;
}

/* نخلي التاقات هي اللي تنزل لتحت بدل زر المكونات */
.tags {
  margin-top: auto;
  margin-bottom: 12px;
  min-height: 42px;
  display: flex;
  align-items: center;

}

/* نلغي الدفع التلقائي من زر المكونات */
.ingredients-btn {
  margin-top: 0;
}
