:root {
  /* Backgrounds */
  --bg: #faf1e3;
  /* كريمي أساسي */
  --card: #ffffff;
  /* أبيض للكروت */

  /* Text */
  --text: #013f28;
  /* أخضر غامق للنص */
  --muted: #5f7f70;
  /* أخضر فاتح للنص الثانوي */

  /* Accents */
  --accent: #013f28;
  /* أخضر أساسي */
  --accent2: #1f6b4a;
  /* أخضر ثانوي */

  /* UI */
  --border: rgba(1, 63, 40, .14);
  --shadow: 0 10px 28px rgba(1, 63, 40, .12);
  --radius: 18px;
}


* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(240, 195, 108, .22), transparent 60%),
    radial-gradient(1000px 600px at 92% 10%, rgba(126, 224, 194, .14), transparent 60%),
    radial-gradient(900px 500px at 85% 80%, rgba(240, 195, 108, .10), transparent 55%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px
}

.muted {
  color: var(--muted)
}

/* =========================
   Header + Tabs
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 241, 227, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(1, 63, 40, .12);

}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logoImg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 4px;
}

.brandText h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .3px;
}

.brandText p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  opacity: .9;
}

/* Tabs */
.navTabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  transition: .15s;
}

.tab:hover,
.productCard:hover {
  background: rgba(1, 63, 40, .05);
}


.tab.active {
  background: rgba(1, 63, 40, .10);
  border-color: rgba(1, 63, 40, .35);
}


/* =========================
   Search
========================= */

.searchBox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  min-width: min(420px, 100%);
}

.searchIcon {
  opacity: .9
}

.searchBox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.clearBtn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  display: none;
  /* يظهر بس لما في بحث */
}

.noResults {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, .18);
  color: var(--muted);
  text-align: center;
}


/* =========================
   Landing / Hero
========================= */
.hero {
  padding: 34px 0 10px;
}

.heroInner {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
}

.heroInner h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: .2px;
}

.heroInner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.hoursBar {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 13px;
}

.statusDot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}

.statusText {
  font-weight: 800;
  letter-spacing: .2px;
}

.hoursText {
  color: var(--muted);
}


/* =========================
   Menu Sections
========================= */
.menu {
  padding: 10px 0 30px;
}

.menuSection {
  margin-top: 18px;
  scroll-margin-top: 140px;
}

.menuSection h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menuSection h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: inline-block;
}

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 860px) {
  .products {
    grid-template-columns: 1fr
  }
}

/* Product card */
.productCard {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
}

.productImg {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.productTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.productName {
  font-weight: 800;
  letter-spacing: .2px;
}

.price {
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  border: 1px solid rgba(240, 195, 108, .45);
  background: linear-gradient(135deg, rgba(240, 195, 108, .22), rgba(240, 195, 108, .08));
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.productDesc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.allergen {
  background: rgba(1, 63, 40, .06);
  border: 1px solid rgba(1, 63, 40, .18);
  padding: 4px 8px;
  border-radius: 999px;
  width: fit-content;
  font-size: 11px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* =========================
   Allergens bottom section
========================= */
.allergens {
  padding: 10px 0 30px;
}

.allergens .wrap {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.allergens h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.allergenGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 860px) {
  .allergenGrid {
    grid-template-columns: 1fr
  }
}

.allergenGrid span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}

/* =========================
   Map + Address
========================= */
.location {
  padding: 0 0 40px;
}

.locationGrid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
}

@media (max-width: 860px) {
  .locationGrid {
    grid-template-columns: 1fr
  }
}

.address {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.address h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.address p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.map {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

.mapLink {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.mapLink iframe {
  pointer-events: none;
  /* مهم: يخلي الضغط يروح للرابط */
}


/* =========================
   Footer
========================= */
footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 18px 0 22px;
  font-size: 13px;
}


/* =========================
   Modal (Opening Hours) - scrollable page behind + blur + no clicks
========================= */

/* overlay: blur only, doesn't block scrolling */
.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 999;

  /* خلي الصفحة مبينة */
  background: rgba(1, 63, 40, .10);

  /* blur على اللي ورا */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;

  /* مهم: ما يمنع السكرول */
  pointer-events: none;
}

.modalOverlay.show {
  display: flex;
}

/* طبقة تلتقط الكبس فقط (لتسكر المودال) */
.modalOverlay .modalCatcher {
  position: absolute;
  inset: 0;
  /* ترجع الكبس للoverlay */
  pointer-events: auto;
}

/* الكرت نفسه قابل للتفاعل */
.modalCard {
  position: relative;
  width: min(680px, 100%);
  max-height: min(640px, 86vh);
  overflow: auto;

  background: rgba(250, 241, 227, .92);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(1, 63, 40, .18);
  padding: 18px;

  /* مهم: هو الوحيد اللي بينكبس */
  pointer-events: auto;
}

/* الباقي متل ما عندك */
.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modalHeader h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .2px;
  color: var(--text);
  font-weight: 900;
}

.modalClose {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .35);
  color: var(--text);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.modalClose:hover {
  background: rgba(1, 63, 40, .08);
  transform: scale(1.03);
}




/* =========================
   Back to Top Button
========================= */
.backToTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(240, 195, 108, .45);
  background: linear-gradient(135deg,
      rgba(240, 195, 108, .25),
      rgba(240, 195, 108, .10));
  color: #013f28;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
}

.backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.backToTop:hover {
  transform: translateY(-2px);
}

/* Hide Chrome/Safari native clear button for type="search" */
#searchInput::-webkit-search-cancel-button,
#searchInput::-webkit-search-decoration,
#searchInput::-webkit-search-results-button,
#searchInput::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}



/* Prevent iOS Safari zoom on input focus */
@media (max-width: 860px) {
  .searchBox input {
    font-size: 16px;
    /* مهم جداً لمنع الزوم */
    line-height: 1.2;
  }
}



.price--double {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 92px;
  /* اختياري لتثبيت العرض */
}

.price--double .priceRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.1;
}

.price--double .priceSize {
  font-weight: 800;
  font-size: 12px;
  opacity: .8;
}

.price--double .priceVal {
  font-weight: 700;
}


/* =========================
           Footer
========================= */
.footerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footerLinks {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footerLinks a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footerLinks a:hover {
  border-bottom-color: currentColor;
}

.footerLinks .sep {
  opacity: .5;
}