/* ============================================================
   منيو مطعم — Restaurant Menu  |  Digital Menu
   ============================================================ */

:root {
  --green-900: #1a3a32;
  --green-800: #234d42;
  --gold: #d4a574;
  --cream: #f5f1ec;
  --cream-img-a: #f5f0eb;
  --cream-img-b: #e8e0d8;
  --card: #ffffff;
  /* Cairo = the brand font used on the original site */
  --font-head: "Cairo", "Noto Sans Arabic", sans-serif;
  --font-body: "Cairo", "Noto Sans Arabic", sans-serif;
  /* sticky heights (measured & overwritten by app.js) */
  --header-h: 72px;
  --rail-h: 56px;
}

/* per-language fonts */
html[lang="en"] {
  --font-head: "Cairo", "Inter", sans-serif;
  --font-body: "Inter", "Cairo", sans-serif;
}
html[lang="he"] {
  --font-head: "Noto Sans Hebrew", sans-serif;
  --font-body: "Noto Sans Hebrew", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream); /* solid beige page; the top menu bar is white (no gradient) */
  color: var(--green-900);
  min-height: 100vh;
}

/* Hide scrollbars on the category rail */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

.wrap { max-width: 32rem; margin: 0 auto; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(var(--green-900), var(--green-800));
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(26,58,50,0.125);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.icon-btn {
  display: inline-flex;
  padding: 0.6rem;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 1rem;
  cursor: pointer;
  transition: all .2s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 1.5rem; height: 1.5rem; opacity: .9; }

.brand { text-align: center; }
.brand .tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-weight: 500;
  color: var(--gold);
}
.brand h1 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
}

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
}
.lang-btn:hover { background: rgba(255,255,255,0.18); }
.lang-menu {
  position: absolute;
  top: 100%;
  margin-top: 0.5rem;
  left: 0;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  overflow: hidden;
  min-width: 110px;
  border: 1px solid #f3f4f6;
  transition: all .2s ease;
  transform-origin: top;
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
}
.lang-menu.open { opacity: 1; transform: scale(1); pointer-events: auto; }
.lang-menu button {
  width: 100%;
  display: flex;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
}
.lang-menu button.active { background: var(--gold); color: #fff; }

/* ---------- Category rail ---------- */
.cat-rail-outer {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: #ffffff;
  box-shadow: 0 6px 10px -8px rgba(26,58,50,0.25);
}
.cat-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
}
.cat-pill {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(26, 58, 50, 0.082);
  cursor: pointer;
  background: #ffffff;
  color: var(--green-900);
  transition: all .2s ease;
  box-shadow: 0 1px 3px rgba(26,58,50,0.06);
}
.cat-pill:hover { background: #fff; }
.cat-pill.active {
  background: var(--green-900);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(26,58,50,0.19);
}

/* ---------- Group tabs (All / Offers / Food ...) ---------- */
.group-tabs {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.6rem 1rem 0.35rem;
  border-bottom: 1px solid rgba(26,58,50,0.08);
}
.group-tab {
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.15rem 0.5rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(26,58,50,0.5);
  transition: color .2s ease;
}
.group-tab:hover { color: var(--green-900); }
.group-tab.active { color: var(--green-900); font-weight: 700; }
.group-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 3px;
  border-radius: 3px;
  background: var(--green-900);
}

/* ---------- Search ---------- */
.search-wrap {
  position: relative;
  margin: 1rem 0 0.25rem;
}
.search-icon {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: rgba(26,58,50,0.4);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 1rem;
  padding-inline-start: 2.8rem;
  padding-inline-end: 1rem;
  border: 1px solid rgba(26,58,50,0.12);
  border-radius: 1rem;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--green-900);
  outline: none;
  box-shadow: 0 2px 8px rgba(26,58,50,0.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input::placeholder { color: rgba(26,58,50,0.4); }
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.18);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(26,58,50,0.5);
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Menu sections ---------- */
main { padding: 0 1rem 4rem; }

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.9rem 0 1rem;
  scroll-margin-top: calc(var(--header-h) + var(--rail-h) + 8px);
}
main section:first-child .section-head { padding-top: 0.5rem; }
.section-bar {
  height: 1.5rem;
  width: 0.25rem;
  border-radius: 9999px;
  background: linear-gradient(var(--gold), rgba(212,165,116,0.8));
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--green-900);
}
.section-count { font-size: 0.875rem; color: rgba(26,58,50,0.38); }

.cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent;
}

/* ---------- Item card (each item is its own card) ---------- */
.item {
  display: flex;
  flex-direction: row-reverse; /* image (1st child) sits on the LEFT in RTL */
  min-height: 8rem;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,58,50,0.07);
  border: 1px solid rgba(26,58,50,0.05);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease;
}
.item:hover { box-shadow: 0 6px 18px rgba(26,58,50,0.12); }
.item:active { transform: scale(0.985); }

/* scroll reveal (enabled only when JS adds .reveal-ready to body) */
.reveal-ready .item { opacity: 0; transform: translateY(16px); }
.reveal-ready .item.in { opacity: 1; transform: none; }

.item-img {
  position: relative;
  width: 8rem;
  min-height: 8rem;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(135deg, var(--cream-img-a), var(--cream-img-b));
  overflow: hidden;
}
.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.item:hover .item-img img { transform: scale(1.05); }

.sold-badge {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(239,68,68,0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.item-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.item-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--green-900);
}
.item-body .desc {
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 0;
  color: var(--green-900);
  opacity: 0.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  display: flex;
  align-items: baseline;
  direction: ltr;          /* always render "125 ₪" */
  gap: 0.35rem;
  margin-top: 0.75rem;
  align-self: flex-end;    /* price sits on the LEFT, near the image (RTL) */
}
.price .amount {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-900);
}
.price .cur {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(26,58,50,0.1);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.foot-soc {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 9999px;
  background: var(--green-800);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
.foot-soc:hover { background: var(--green-900); transform: translateY(-2px); }
.foot-soc svg { width: 1.3rem; height: 1.3rem; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green-800);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.footer-phone svg { width: 1.05rem; height: 1.05rem; }
.footer-phone span { direction: ltr; }

/* ---------- Instagram modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26,58,50,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
  width: 100%;
  max-width: 22rem;
  text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4);
  transform: translateY(12px) scale(.96);
  transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.ig-logo {
  width: 64px; height: 64px;
  margin: 0 auto 0.5rem;
  border-radius: 18px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.ig-logo svg { width: 34px; height: 34px; color: #fff; }
.modal .ig-label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(26,58,50,0.5); margin: 0 0 0.5rem;
}
.modal h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.25rem; color: var(--green-900); }
.modal .handle { color: var(--gold); font-weight: 700; margin: 0 0 1rem; font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1.25rem; }
.chip {
  padding: 0.3rem 0.7rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600;
  background: rgba(212,165,116,0.12); color: var(--green-800);
}
.btn-follow {
  display: block; width: 100%;
  padding: 0.8rem; border: none; border-radius: 1rem;
  background: var(--green-800); color: #fff;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  text-decoration: none;
  transition: background .2s ease;
}
.btn-follow:hover { background: var(--green-900); }
.btn-skip {
  display: block; width: 100%;
  margin-top: 0.5rem; padding: 0.6rem;
  border: none; background: transparent;
  color: rgba(26,58,50,0.5); font-size: 0.85rem; cursor: pointer;
}

/* ---------- Mobile drawer (categories) ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26,58,50,0.5);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 91;
  inset-inline-start: 0;           /* menu-button side */
  width: 78%; max-width: 20rem;
  background: #fff;
  transform: translateX(-100%);    /* LTR: hidden to the left */
  transition: transform .3s ease;
  overflow-y: auto;
  box-shadow: 10px 0 40px rgba(0,0,0,0.2);
}
html[dir="rtl"] .drawer { transform: translateX(100%); } /* RTL: hidden to the right */
.drawer.open { transform: translateX(0); }
.drawer-head {
  background: linear-gradient(var(--green-900), var(--green-800));
  color: #fff; padding: 1.25rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h2 { margin: 0; font-size: 1.1rem; }
.drawer-list { padding: 0.5rem; }
.drawer-list button {
  width: 100%; text-align: start;
  padding: 0.85rem 1rem; border: none; background: transparent;
  border-radius: 0.75rem; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--green-900);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-list button:hover { background: var(--cream); }
.drawer-list button .count { color: rgba(26,58,50,0.4); font-size: 0.8rem; }

/* scroll-to-top */
.to-top {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 60;
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  border: none; cursor: pointer;
  background: var(--gold); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(212,165,116,0.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: all .25s ease;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Item detail bottom-sheet ---------- */
.item { cursor: pointer; }

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(26,58,50,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  -webkit-overflow-scrolling: touch;
}
.sheet-overlay.open .sheet { transform: translateY(0); }

.sheet-handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.8);
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.sheet-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: var(--green-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.sheet-close svg { width: 1.2rem; height: 1.2rem; }

.sheet-img {
  position: relative;
  width: 100%;
  height: 46vh;
  background: linear-gradient(135deg, var(--cream-img-a), var(--cream-img-b));
}
.sheet-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sheet-body { padding: 1.35rem 1.35rem 2rem; }
.sheet-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--green-900);
}
.sheet-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(26,58,50,0.6);
}
.sheet-desc:empty { display: none; }

.sheet-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26,58,50,0.1);
}
.sheet-price .lbl {
  display: block;
  font-size: 0.8rem;
  color: rgba(26,58,50,0.5);
  margin-bottom: 0.15rem;
}
.sheet-price .val {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-900);
}
.sheet-price .cur { font-size: 1rem; font-weight: 600; color: var(--gold); margin-inline-start: 0.3rem; }

.avail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(34,197,94,0.12);
  color: #15803d;
}
.avail::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #22c55e;
}
.avail.sold {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
}
.avail.sold::before { background: #ef4444; }

/* ---------- Restaurant info popup ---------- */
.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26,58,50,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.info-overlay.open { opacity: 1; pointer-events: auto; }
.info-card {
  width: 100%;
  max-width: 23rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.4rem 1.4rem;
  text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4);
  transform: translateY(12px) scale(.96);
  transition: transform .25s ease;
  max-height: 92vh;
  overflow-y: auto;
}
.info-overlay.open .info-card { transform: translateY(0) scale(1); }

.info-logo {
  width: 84px; height: 84px;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, var(--green-900), var(--green-800));
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(26,58,50,0.3);
}
.info-logo svg { width: 40px; height: 40px; color: var(--gold); }

.info-card h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--green-900);
}
.info-sub {
  font-family: var(--font-head);
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: rgba(26,58,50,0.5);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--cream);
  border-radius: 0.9rem;
  text-decoration: none;
  color: var(--green-900);
  transition: background .2s ease;
}
.info-row:hover { background: #ece5dc; }
.info-side { display: inline-flex; align-items: center; gap: 0.5rem; }
.info-lbl { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.info-ico { font-size: 1.05rem; line-height: 1; }
.info-val {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(26,58,50,0.7);
  direction: ltr;
}

.info-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}
.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0.4rem;
  background: var(--cream);
  border-radius: 0.9rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-900);
  transition: background .2s ease, transform .15s ease;
}
.social-btn:hover { background: #ece5dc; transform: translateY(-2px); }
.social-btn svg { width: 1.6rem; height: 1.6rem; }
#infoFb svg { color: #1877f2; }
#infoIg svg { color: #e1306c; }
#infoTt svg { color: #111; }

.info-close-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 1rem;
  background: var(--green-800);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.info-close-btn:hover { background: var(--green-900); }

/* ---------- Rate-us floating button ---------- */
.rate-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 9999px;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(212,165,116,0.55);
  transition: transform .15s ease, box-shadow .2s ease;
}
.rate-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(212,165,116,0.65); }
.rate-fab svg { width: 1.4rem; height: 1.4rem; margin-top: 0.55rem; }
.rate-fab span {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Rating modal ---------- */
.rate-overlay {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26,58,50,0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.rate-overlay.open { opacity: 1; pointer-events: auto; }
.rate-card {
  width: 100%;
  max-width: 23rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.4rem 1.4rem;
  text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4);
  transform: translateY(12px) scale(.96);
  transition: transform .25s ease;
}
.rate-overlay.open .rate-card { transform: translateY(0) scale(1); }
.rate-logo {
  width: 72px; height: 72px;
  margin: 0 auto 0.6rem;
  border-radius: 9999px;
  background: #fde68a;
  display: grid; place-items: center;
}
.rate-logo svg { width: 36px; height: 36px; color: #f59e0b; }
.rate-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--green-900);
}
.rate-sub { margin: 0 0 1rem; font-size: 0.9rem; color: rgba(26,58,50,0.55); }
.rate-stars {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  direction: ltr;
}
.rate-stars button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: #d8d2c9;
  transition: color .15s ease, transform .15s ease;
  padding: 0;
}
.rate-stars button:hover { transform: scale(1.15); }
.rate-stars button.on { color: #f5b301; }
.rate-comment {
  width: 100%;
  border: 1px solid rgba(26,58,50,0.14);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--green-900);
  resize: none;
  outline: none;
  margin-bottom: 1rem;
  background: var(--cream);
}
.rate-comment:focus { border-color: var(--gold); background: #fff; }
.rate-submit {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 1rem;
  background: var(--green-800);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.rate-submit:disabled { background: #cfd4d2; color: #fff; cursor: not-allowed; }
.rate-close {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: rgba(26,58,50,0.55);
  font-family: var(--font-head);
  font-size: 0.9rem;
  cursor: pointer;
}
