* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f1ed;
  --surface: #ffffff;
  --text: #334b5e;
  --muted: #758b9e;
  --line: #d1cac2;
  --primary: #51779a;
  --primary-soft: #758b9e;
  --sand: #d1cac2;
  --taupe: #b7aca4;
  --radius: 22px;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Tajawal", "Inter", sans-serif;
}

body.en {
  direction: ltr;
  font-family: "Inter", "Tajawal", sans-serif;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 30px 20px 32px;
  color: #fff;
  background:
    radial-gradient(circle at 3% 4%, rgba(209, 202, 194, .22) 0 155px, transparent 156px),
    radial-gradient(circle at 98% 100%, rgba(183, 172, 164, .20) 0 145px, transparent 146px),
    linear-gradient(135deg, var(--primary-soft), var(--primary));
}

.topbar,
.hero-copy,
.search-wrap,
main,
footer > * {
  width: min(var(--container), 100%);
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.brand-logo-image {
  display: block;
  width: clamp(140px, 18vw, 215px);
  height: auto;
  object-fit: contain;
}

.brand-tagline {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .2px;
}

.secondary-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s ease, color .2s ease;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: #fff;
  color: var(--primary);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 54px;
  padding-bottom: 26px;
}

.eyebrow {
  color: rgba(255, 255, 255, .82);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: .6px;
}

.hero-copy h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  line-height: 1.8;
}

.search-wrap {
  position: relative;
  z-index: 2;
}

.search-wrap input {
  width: 100%;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  color: var(--text);
  outline: none;
  box-shadow: 0 12px 34px rgba(31, 54, 73, .14);
}

.search-wrap input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 12px 34px rgba(31, 54, 73, .14);
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px max(18px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(81, 119, 154, .18);
  background: rgba(244, 241, 237, .95);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(81, 119, 154, .20);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.category-btn:hover,
.category-btn:focus-visible,
.category-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

main {
  padding: 38px 18px 56px;
}

.menu-section {
  scroll-margin-top: 88px;
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h3 {
  margin: 0;
  color: var(--primary);
  font-size: 28px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(81, 119, 154, .16);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(81, 119, 154, .08);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--sand);
}

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--muted);
  font-size: 14px;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 170px;
  padding: 21px;
}

.product-details h4 {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 21px;
  line-height: 1.35;
}

.en-name {
  margin-bottom: 10px;
  color: var(--primary-soft);
  font-size: 14px;
}

.product-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(81, 119, 154, .16);
}

.price {
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.calories {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.empty-state {
  padding: 50px 0;
  color: var(--muted);
  text-align: center;
}

footer {
  padding: 30px 18px 42px;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

footer p {
  margin: 0 0 4px;
  font-weight: 700;
}

footer small {
  color: rgba(255, 255, 255, .80);
}

@media (max-width: 720px) {
  .hero {
    min-height: 390px;
    padding-top: 24px;
  }

  .topbar {
    align-items: center;
  }

  .brand-logo-image {
    width: 145px;
  }

  .brand-tagline {
    font-size: 12px;
  }

  .hero-copy {
    padding-top: 44px;
  }

  .items-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-image-wrap {
    height: 235px;
  }

  .product-content {
    min-height: 155px;
    padding: 18px;
  }

  .section-head h3 {
    font-size: 24px;
  }
}
/* ==================================
   DCOF MENU V2 — Motion & Interaction
================================== */

/* انتقالات البطاقات */
.menu-card {
  opacity: 0;
  transform: translateY(18px);
  animation: dcofCardReveal 0.55s ease forwards;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* ظهور متدرج للبطاقات */
.menu-card:nth-child(1) { animation-delay: 0.04s; }
.menu-card:nth-child(2) { animation-delay: 0.08s; }
.menu-card:nth-child(3) { animation-delay: 0.12s; }
.menu-card:nth-child(4) { animation-delay: 0.16s; }
.menu-card:nth-child(5) { animation-delay: 0.20s; }
.menu-card:nth-child(6) { animation-delay: 0.24s; }
.menu-card:nth-child(7) { animation-delay: 0.28s; }
.menu-card:nth-child(8) { animation-delay: 0.32s; }
.menu-card:nth-child(9) { animation-delay: 0.36s; }
.menu-card:nth-child(10) { animation-delay: 0.40s; }

@keyframes dcofCardReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* حركة البطاقة على الكمبيوتر */
@media (hover: hover) and (pointer: fine) {
  .menu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(81, 119, 154, 0.36);
    box-shadow: 0 16px 36px rgba(51, 75, 94, 0.14);
  }

  .menu-card:hover .product-image {
    transform: scale(1.035);
  }
}

/* حركة الصورة */
.product-image {
  transition:
    transform 0.5s ease,
    filter 0.3s ease;
}

/* أزرار الأقسام */
.category-btn {
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.category-btn:active {
  transform: scale(0.97);
}

.category-btn.active {
  box-shadow: 0 7px 18px rgba(81, 119, 154, 0.18);
}

/* زر اللغة */
.secondary-btn {
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease;
}

.secondary-btn:active {
  transform: scale(0.96);
}

/* حقل البحث */
.search-wrap input {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.search-wrap input:focus {
  border-color: rgba(81, 119, 154, 0.65);
  box-shadow:
    0 0 0 4px rgba(81, 119, 154, 0.12),
    0 12px 34px rgba(51, 75, 94, 0.12);
}

/* تحسين الضغط على الجوال */
@media (hover: none) {
  .menu-card:active {
    transform: scale(0.99);
  }
}

/* احترام إعداد تقليل الحركة في الجهاز */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ==================================
   Product details modal
================================== */
body.modal-open {
  overflow: hidden;
}

.menu-card[role="button"] {
  cursor: pointer;
  outline: none;
}

.menu-card[role="button"]:focus-visible {
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px rgba(81, 119, 154, .18),
    0 16px 36px rgba(51, 75, 94, .14);
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.product-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 45, 57, .64);
  backdrop-filter: blur(7px);
}

.product-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  width: min(940px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(20, 35, 48, .30);
  transform: translateY(18px) scale(.98);
  transition: transform .24s ease;
}

.product-modal.is-open .product-modal-dialog {
  transform: translateY(0) scale(1);
}

.product-modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(81, 119, 154, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--primary);
  font-family: Arial, sans-serif;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(31, 54, 73, .14);
  transition: transform .18s ease, background .2s ease, color .2s ease;
}

.product-modal-close:hover,
.product-modal-close:focus-visible {
  background: var(--primary);
  color: #fff;
  outline: none;
  transform: rotate(4deg) scale(1.05);
}

.product-modal-image-wrap {
  min-height: 500px;
  overflow: hidden;
  background: var(--sand);
}

.product-modal-image,
.product-modal-placeholder {
  width: 100%;
  height: 100%;
}

.product-modal-image {
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-modal-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.product-modal-content {
  display: flex;
  min-width: 0;
  overflow-y: auto;
  flex-direction: column;
  justify-content: center;
  padding: 70px 42px 42px;
}

.product-modal-content h3 {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

.modal-secondary-name {
  margin-bottom: 24px;
  color: var(--primary-soft);
  font-family: "Inter", "Tajawal", sans-serif;
  font-size: 17px;
}

.product-modal-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.product-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(81, 119, 154, .18);
}

.product-modal-meta span {
  color: var(--muted);
  font-size: 15px;
}

.product-modal-meta strong {
  color: var(--primary);
  font-size: 25px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .product-modal {
    align-items: end;
    padding: 12px;
  }

  .product-modal-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
    overflow-y: auto;
  }

  .product-modal-image-wrap {
    min-height: 0;
    height: min(42vh, 330px);
  }

  .product-modal-content {
    overflow: visible;
    padding: 28px 24px 30px;
  }

  .product-modal-close {
    position: fixed;
    top: 24px;
    inset-inline-end: 24px;
  }

  .product-modal-content h3 {
    font-size: 29px;
  }

  .modal-secondary-name {
    margin-bottom: 17px;
  }

  .product-modal-meta {
    margin-top: 24px;
  }
}

@media (max-width: 420px) {
  .product-modal {
    padding: 0;
  }

  .product-modal-dialog {
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .product-modal-image-wrap {
    height: 39vh;
  }

  .product-modal-close {
    top: 14px;
    inset-inline-end: 14px;
  }
}


/* ==================================
   DCOF Final: PWA, sharing & lazy media
================================== */
.top-actions { display: flex; align-items: center; gap: 10px; }
.lazy-image { opacity: 0; transition: opacity .32s ease, transform .5s ease; }
.lazy-image.is-loaded, .lazy-image[src]:not([data-src]) { opacity: 1; }
.product-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  padding: 7px 11px; border-radius: 999px; background: #51779a; color: #fff;
  font-size: 12px; font-weight: 700; box-shadow: 0 8px 18px rgba(51,75,94,.18);
}
.share-product-btn {
  width: 100%; margin-top: 18px; padding: 13px 18px; border: 0; border-radius: 14px;
  background: #51779a; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, background .2s ease;
}
.share-product-btn:hover { background: #436987; }
.share-product-btn:active { transform: scale(.985); }
.app-toast {
  position: fixed; inset-inline: 50%; bottom: 22px; z-index: 2000;
  transform: translateX(50%) translateY(20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; background: #334b5e; color: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.2); transition: .22s ease;
}
body.en .app-toast { transform: translateX(-50%) translateY(20px); }
.app-toast.is-visible { opacity: 1; transform: translateX(50%) translateY(0); }
body.en .app-toast.is-visible { transform: translateX(-50%) translateY(0); }
@media (max-width: 620px) {
  .top-actions { gap: 7px; }
  #installBtn { display: none !important; }
}

/* ==================================
   DCOF Social Footer
================================== */
.site-footer {
  padding: 46px 18px 38px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255,255,255,.10) 0 120px, transparent 121px),
    linear-gradient(145deg, #51779a, #334b5e);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.footer-logo { width: 138px; height: auto; margin-bottom: 6px; }
.footer-thanks { margin: 0; color:#fff; font-size:22px; font-weight:700; }
.footer-follow { margin:0 0 13px; color:rgba(255,255,255,.78); }
.footer-actions {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  margin:5px 0 10px;
}
.footer-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:10px 15px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.10);
  color:#fff;
  text-decoration:none;
  backdrop-filter:blur(8px);
  transition:transform .2s ease, background .2s ease, border-color .2s ease;
}
.footer-action:hover,
.footer-action:focus-visible {
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.75);
  background:rgba(255,255,255,.20);
  outline:none;
}
.location-action { background:rgba(255,255,255,.18); font-weight:700; }
.footer-icon,.footer-social-icon { font-size:19px; line-height:1; }
.footer-social-icon { display:grid; place-items:center; width:20px; height:20px; border:2px solid currentColor; border-radius:6px; font-weight:700; }
.tiktok-mark { border:0; font-size:24px; }
.footer-handle { color:#fff; text-decoration:none; font-weight:700; letter-spacing:.4px; }
.site-footer small { color:rgba(255,255,255,.72); }
@media (max-width: 560px) {
  .site-footer { padding-inline:14px; }
  .footer-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-action { width:100%; padding-inline:10px; }
  .location-action { grid-column:1 / -1; }
}


/* MENIXA platform attribution — intentionally independent from each brand theme. */
.menixa-credit {
  margin-top: 18px;
  padding-top: 16px;
  width: min(100%, 420px);
  border-top: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}
.menixa-credit-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 11px;
  background: rgba(255,255,255,.12);
  font-weight: 800;
  letter-spacing: .04em;
}
.menixa-credit-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 6px;
  text-align: start;
}
.menixa-powered-by { color: rgba(255,255,255,.70); font-size: 12px; }
.menixa-credit-name { color: #fff; font-size: 15px; letter-spacing: .12em; }
.menixa-credit-tagline {
  flex-basis: 100%;
  color: rgba(255,255,255,.62) !important;
  font-size: 11px;
}
html[dir="rtl"] .menixa-credit-copy { text-align: right; }
html[dir="ltr"] .menixa-credit-copy { text-align: left; }
@media (max-width: 560px) {
  .menixa-credit { margin-top: 14px; padding-top: 14px; }
  .menixa-credit-mark { width: 34px; height: 34px; flex-basis: 34px; }
}
