.fmm-menu,
.fmm-categories-carousel,
.fmm-categories-grid {
  --fmm-olive: #0f3b33;
  --fmm-gold: #d9b45f;
  --fmm-ink: #10201d;
  --fmm-muted: #647067;
  --fmm-soft: #f7f3e9;
  --fmm-border: rgba(15, 59, 51, .12);
  --fmm-whatsapp: #25D366;
  --fmm-whatsapp-dark: #128C7E;
  font-family: "Tajawal", "Rubik", Arial, sans-serif;
  color: var(--fmm-ink);
}
.fmm-menu *, .fmm-categories-carousel *, .fmm-categories-grid * { box-sizing: border-box; }
.fmm-menu, .fmm-categories-carousel { width: 100%; max-width: 100%; }
.fmm-main-heading, .fmm-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); color: var(--fmm-olive); font-weight: 900; line-height: 1.2; }
.fmm-section { margin: clamp(28px, 4vw, 44px) 0 clamp(38px, 5vw, 60px); scroll-margin-top: 130px; }
.fmm-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--fmm-border); padding-bottom: 14px; }
.fmm-section-head span { color: var(--fmm-muted); font-weight: 700; }
.fmm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); width: 100%; }
.fmm-card { background: #fff; border: 1px solid var(--fmm-border); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 34px rgba(15, 59, 51, .08); display: flex; flex-direction: column; min-height: 100%; width: 100%; min-width: 0; position: relative; }
.fmm-img { position: relative; aspect-ratio: 1.22 / 1; background: var(--fmm-soft); overflow: hidden; }
.fmm-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fmm-card:hover .fmm-img img { transform: scale(1.04); }
.fmm-badge, .fmm-unavailable-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--fmm-gold); color: #241904; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 2; }
.fmm-unavailable-badge { inset-inline-start: auto; inset-inline-end: 12px; background: #3d3d3d; color: #fff; }
.fmm-badges-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.fmm-badges-inline span { background: rgba(217,180,95,.16); color: var(--fmm-olive); border: 1px solid rgba(217,180,95,.32); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.fmm-card-body { padding: clamp(13px, 1.8vw, 16px); display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.fmm-card h3 { margin: 0; color: var(--fmm-olive); font-size: clamp(18px, 2vw, 20px); font-weight: 900; line-height: 1.25; }
.fmm-en { margin: -4px 0 0; color: var(--fmm-muted); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.fmm-ingredients { margin: 0; padding: 0 18px 0 0; color: var(--fmm-muted); font-size: 13px; line-height: 1.6; max-height: 92px; overflow: auto; }
.fmm-controls { margin-top: auto; display: grid; gap: 10px; }
.fmm-row { display: flex; gap: 10px; align-items: center; }
.fmm-row label { color: var(--fmm-muted); font-weight: 900; font-size: 13px; white-space: nowrap; }
.fmm-size-select, .fmm-qty, .fmm-search, .fmm-category-filter { border: 1px solid var(--fmm-border); border-radius: 12px; padding: 9px 12px; background: #fff; color: var(--fmm-ink); outline: none; width: 100%; min-width: 0; }
.fmm-size-select { flex: 1; }
.fmm-qty { max-width: 92px; text-align: center; }
.fmm-size-select:focus, .fmm-qty:focus, .fmm-search:focus, .fmm-category-filter:focus { border-color: var(--fmm-gold); box-shadow: 0 0 0 3px rgba(217, 180, 95, .18); }
.fmm-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--fmm-soft); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.fmm-meta strong { color: var(--fmm-olive); font-size: 18px; white-space: nowrap; }
.fmm-calories { color: var(--fmm-muted); font-size: 13px; font-weight: 800; text-align: end; }
.fmm-card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fmm-whatsapp, .fmm-add-cart, .fmm-share, .fmm-unavailable-button, .fmm-cart-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; min-height: 44px; width: 100%; border-radius: 14px; font-weight: 900; line-height: 1; border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.fmm-whatsapp, .fmm-cart-whatsapp { background: var(--fmm-whatsapp); color: #fff !important; box-shadow: 0 10px 20px rgba(37, 211, 102, .22); }
.fmm-whatsapp:hover, .fmm-whatsapp:focus, .fmm-cart-whatsapp:hover, .fmm-cart-whatsapp:focus { transform: translateY(-1px); background: var(--fmm-whatsapp-dark); color: #fff !important; box-shadow: 0 14px 26px rgba(18, 140, 126, .25); }
.fmm-add-cart { background: var(--fmm-olive); color: #fff; }
.fmm-add-cart:hover { transform: translateY(-1px); background: #092823; }
.fmm-share { background: #fff; color: var(--fmm-olive); border: 1px solid var(--fmm-border); }
.fmm-unavailable-button { background: #e7e7e7; color: #555; cursor: not-allowed; }
.fmm-whatsapp-icon { width: 22px; height: 22px; flex: 0 0 22px; display: block; }
.fmm-empty { padding: 18px; background: #fff8e1; border-radius: 12px; color: #604500; }
.fmm-card.is-unavailable { opacity: .74; }
.fmm-card.is-unavailable .fmm-img img { filter: grayscale(.45); }

/* toolbar */
.fmm-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px); gap: 10px; align-items: center; background: rgba(255,255,255,.92); border: 1px solid var(--fmm-border); border-radius: 20px; padding: 12px; margin: 18px 0 26px; box-shadow: 0 12px 34px rgba(15,59,51,.07); backdrop-filter: blur(12px); z-index: 10; }
.fmm-toolbar-sticky { position: sticky; top: 12px; }
.fmm-category-chips { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 3px 0; scrollbar-width: none; }
.fmm-category-chips::-webkit-scrollbar { display: none; }
.fmm-chip { flex: 0 0 auto; border: 1px solid var(--fmm-border); background: #fff; color: var(--fmm-olive); border-radius: 999px; padding: 8px 13px; font-weight: 900; cursor: pointer; }
.fmm-chip.is-active, .fmm-chip:hover { background: var(--fmm-olive); color: #fff; }

/* related */
.fmm-related { border-top: 1px dashed var(--fmm-border); padding-top: 8px; display: grid; gap: 6px; }
.fmm-related strong { font-size: 12px; color: var(--fmm-muted); }
.fmm-related div { display: flex; flex-wrap: wrap; gap: 6px; }
.fmm-related a { text-decoration: none !important; color: var(--fmm-olive) !important; background: var(--fmm-soft); border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 800; }

/* Categories carousel */
.fmm-categories-carousel { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; direction: rtl; margin: 10px 0 28px; }
.fmm-categories-viewport { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 2px 14px; scrollbar-width: none; }
.fmm-categories-viewport::-webkit-scrollbar { display: none; }
.fmm-categories-grid { display: flex; flex-wrap: nowrap; gap: 14px; direction: rtl; min-width: 100%; }
.fmm-category-card { flex: 0 0 calc((100% - 56px) / 5); min-width: 178px; scroll-snap-align: start; border-radius: 20px; border: 1px solid var(--fmm-border); overflow: hidden; background: #fff; text-decoration: none !important; color: var(--fmm-olive) !important; box-shadow: 0 10px 28px rgba(15,59,51,.07); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.fmm-category-card:hover, .fmm-category-card:focus { transform: translateY(-2px); border-color: rgba(217, 180, 95, .55); box-shadow: 0 14px 34px rgba(15,59,51,.11); }
.fmm-category-card img { width: 100%; height: clamp(92px, 9vw, 112px); object-fit: cover; background: var(--fmm-soft); display: block; }
.fmm-category-card span { padding: 10px 12px 0; font-weight: 900; font-size: 15px; line-height: 1.35; }
.fmm-category-card small { padding: 2px 12px 12px; color: var(--fmm-muted); font-weight: 700; font-size: 12px; overflow-wrap: anywhere; }
.fmm-cat-nav { width: 44px; height: 44px; border: 1px solid var(--fmm-border); border-radius: 999px; background: #fff; color: var(--fmm-olive); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; box-shadow: 0 10px 24px rgba(15,59,51,.08); transition: transform .2s ease, background .2s ease, color .2s ease; z-index: 2; }
.fmm-cat-nav:hover, .fmm-cat-nav:focus { background: var(--fmm-olive); color: #fff; transform: translateY(-1px); }

/* Cart */
.fmm-cart-shell[hidden] { display: none !important; }
.fmm-cart-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 9998; border: 0; background: var(--fmm-olive); color: #fff; border-radius: 999px; padding: 13px 18px; font-weight: 900; box-shadow: 0 18px 34px rgba(0,0,0,.2); cursor: pointer; }
.fmm-cart-count { background: var(--fmm-gold); color: #1b1302; border-radius: 999px; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-inline-start: 7px; }
.fmm-cart-drawer { position: fixed; inset-inline-end: 18px; bottom: 74px; width: min(390px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); z-index: 9999; background: #fff; border: 1px solid var(--fmm-border); border-radius: 24px; box-shadow: 0 22px 70px rgba(0,0,0,.28); padding: 14px; display: none; overflow: auto; }
.fmm-cart-shell.is-open .fmm-cart-drawer { display: block; }
.fmm-cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--fmm-olive); font-size: 18px; }
.fmm-cart-close { border: 0; background: var(--fmm-soft); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; }
.fmm-cart-items { display: grid; gap: 8px; }
.fmm-cart-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; border: 1px solid var(--fmm-border); border-radius: 14px; padding: 9px; }
.fmm-cart-item strong { display: block; color: var(--fmm-olive); }
.fmm-cart-item small { display: block; color: var(--fmm-muted); }
.fmm-cart-item button { border: 0; background: #fff1f1; color: #9b1c1c; border-radius: 999px; padding: 6px 8px; cursor: pointer; font-weight: 800; }
.fmm-cart-total { background: var(--fmm-soft); border-radius: 14px; padding: 12px; margin: 10px 0; color: var(--fmm-olive); font-weight: 900; }
.fmm-cart-empty { margin: 0; color: var(--fmm-muted); }

/* Popup */
.fmm-offer-popup[hidden] { display: none !important; }
.fmm-offer-popup { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; padding: 18px; }
.fmm-popup-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 22px 70px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.35); text-align: center; }
.fmm-popup-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fmm-soft); cursor: pointer; font-size: 24px; }
.fmm-popup-kicker { display: inline-block; background: rgba(217,180,95,.18); color: var(--fmm-olive); padding: 6px 12px; border-radius: 999px; font-weight: 900; }
.fmm-popup-card h3 { color: var(--fmm-olive); font-size: 28px; margin: 12px 0 8px; }
.fmm-popup-card p { color: var(--fmm-muted); margin: 0 0 18px; }
.fmm-popup-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; background: var(--fmm-olive); color: #fff !important; text-decoration: none !important; border-radius: 14px; padding: 0 18px; font-weight: 900; }

/* Layout variants */
.fmm-layout-square .fmm-img { aspect-ratio: 1 / 1; }
.fmm-layout-horizontal .fmm-card { display: grid; grid-template-columns: 170px minmax(0,1fr); }
.fmm-layout-horizontal .fmm-img { aspect-ratio: auto; height: 100%; min-height: 220px; }
.fmm-layout-simple .fmm-img { display: none; }
.fmm-layout-simple .fmm-card { border-radius: 16px; box-shadow: none; }
.fmm-layout-simple .fmm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

@media (max-width: 1200px) { .fmm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fmm-category-card { flex-basis: calc((100% - 42px) / 4); } }
@media (max-width: 900px) { .fmm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fmm-category-card { flex-basis: calc((100% - 28px) / 3); min-width: 165px; } .fmm-section-head { align-items: start; flex-direction: column; } .fmm-toolbar { grid-template-columns: 1fr; } .fmm-layout-horizontal .fmm-card { grid-template-columns: 1fr; } .fmm-layout-horizontal .fmm-img { aspect-ratio: 1.22 / 1; min-height: auto; } }
@media (max-width: 640px) { .fmm-categories-carousel { grid-template-columns: minmax(0, 1fr); gap: 0; } .fmm-cat-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; background: rgba(255,255,255,.94); } .fmm-cat-nav:hover, .fmm-cat-nav:focus { transform: translateY(-50%); } .fmm-cat-next { inset-inline-start: 4px; } .fmm-cat-prev { inset-inline-end: 4px; } .fmm-categories-viewport { padding-inline: 44px; } .fmm-category-card { flex-basis: 78%; min-width: 220px; } .fmm-grid { gap: 14px; } .fmm-meta { align-items: start; flex-direction: column; } .fmm-calories { text-align: start; } .fmm-card-actions { grid-template-columns: 1fr; } .fmm-toolbar-sticky { top: 0; border-radius: 0 0 18px 18px; margin-inline: -6px; } }
@media (max-width: 520px) { .fmm-grid, .fmm-layout-simple .fmm-grid { grid-template-columns: 1fr; } .fmm-row { align-items: stretch; flex-direction: column; } .fmm-qty { max-width: none; } .fmm-category-card { flex-basis: 86%; min-width: 210px; } .fmm-cart-float { inset-inline: 14px; width: calc(100% - 28px); } .fmm-cart-drawer { inset-inline: 14px; width: calc(100% - 28px); } }
