/* menu_table — real paper restaurant menu on a table (no cart) */
.menu-page.style-table {
  --mt-ink: #1f1610;
  --mt-muted: rgba(31, 22, 16, .68);
  --mt-red: #b42318;
  --mt-red-deep: #8a1a12;
  --mt-wa: #0f8a6b;
  --mt-paper: #f6ebda;
  --mt-kraft: #e7d3b2;
  margin: 0;
  min-height: 100dvh;
  color: var(--mt-ink);
  background-color: #24160e;
  background-image:
    linear-gradient(180deg, rgba(12, 7, 4, .35), rgba(12, 7, 4, .5)),
    url('/assets/img/themes/menu/wood.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  overflow-x: clip;
}

.menu-page.style-table .preview-banner { position: relative; z-index: 50; }

.menu-stage {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(.75rem, 2vw, 1.25rem) 7rem;
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) minmax(170px, 200px);
  gap: 1rem 1.15rem;
  align-items: start;
}

.menu-prop {
  position: absolute;
  width: clamp(110px, 14vw, 170px);
  height: clamp(110px, 14vw, 170px);
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 248, 235, .9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .45);
  z-index: 2;
  pointer-events: none;
}

.menu-prop--a {
  inset-inline-start: -1.5%;
  top: 42%;
  transform: rotate(-8deg);
}

.menu-prop--b {
  inset-inline-end: -1%;
  bottom: 18%;
  width: clamp(90px, 11vw, 130px);
  height: clamp(90px, 11vw, 130px);
  transform: rotate(10deg);
}

/* Category parchment strip */
.menu-cat-strip {
  position: sticky;
  top: 1rem;
  z-index: 5;
  background:
    linear-gradient(180deg, #f8efdf, var(--mt-kraft));
  padding: 1rem .75rem 1.1rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
  border-radius: 2px;
  transform: rotate(-1.2deg);
  animation: mtIn .65s ease both;
}

.menu-cat-strip__title {
  margin: 0 0 .75rem;
  font-family: 'Marhey', 'Tajawal', sans-serif;
  font-size: 1.05rem;
  color: var(--mt-red-deep);
  text-align: center;
}

.menu-side-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.menu-side-nav a {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--mt-ink);
  padding: .55rem .5rem;
  border-radius: .35rem;
  font-weight: 700;
  font-size: .9rem;
  transition: background .18s ease, color .18s ease;
}

.menu-side-nav__icon {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  color: var(--mt-red-deep);
  flex-shrink: 0;
}

.menu-side-nav__icon svg { width: 1.2rem; height: 1.2rem; }

.menu-side-nav a:hover,
.menu-side-nav a.is-active,
.menu-side-nav a:focus-visible {
  background: var(--mt-red);
  color: #fff8f0;
  outline: none;
}

.menu-side-nav a.is-active .menu-side-nav__icon,
.menu-side-nav a:hover .menu-side-nav__icon { color: #fff8f0; }

.menu-cat-strip__note {
  margin: .9rem 0 0;
  font-size: .72rem;
  line-height: 1.45;
  color: var(--mt-muted);
  text-align: center;
  border-top: 1px dashed rgba(31, 22, 16, .2);
  padding-top: .7rem;
}

/* Main board */
.menu-board {
  position: relative;
  z-index: 3;
  display: grid;
  gap: .85rem;
  min-width: 0;
}

.menu-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #2b1c14, #1a110c);
  color: #f6ebda;
  padding: .7rem 1rem;
  border-radius: .35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 220, 170, .12);
}

.menu-plate__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.menu-plate__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 230, 190, .35);
}

.menu-plate__brand strong {
  display: block;
  font-family: 'Marhey', 'Tajawal', sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.menu-plate__brand span {
  display: block;
  font-size: .78rem;
  opacity: .75;
}

.menu-plate__links {
  display: flex;
  gap: .85rem;
  font-size: .88rem;
}

.menu-plate__links a {
  color: rgba(246, 235, 218, .82);
  text-decoration: none;
}

.menu-plate__links a:hover { color: #fff; }

.menu-plate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mt-red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  padding: .55rem .9rem;
  border-radius: .4rem;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(180, 35, 24, .35);
}

.menu-plate__cta:active { transform: scale(.98); }
.menu-plate__cta:focus-visible {
  outline: 3px solid rgba(255, 220, 180, .55);
  outline-offset: 2px;
}

.menu-paper {
  position: relative;
  background-color: var(--mt-paper);
  background-image:
    linear-gradient(180deg, rgba(246, 235, 218, .92), rgba(246, 235, 218, .88)),
    url('/assets/img/themes/menu/paper.jpg');
  background-size: auto, cover;
  color: var(--mt-ink);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 26px 55px rgba(0, 0, 0, .48);
  animation: mtIn .7s .08s ease both;
}

.menu-paper > * { position: relative; z-index: 1; }

@keyframes mtIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* WhatsApp slip — receipt look, NOT a cart */
.menu-wa-slip {
  position: sticky;
  top: 1.4rem;
  z-index: 5;
  background:
    linear-gradient(180deg, #fffdf7, #f3e7d0);
  padding: 1.35rem 1rem 1.15rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .38);
  transform: rotate(1.6deg);
  animation: mtIn .7s .16s ease both;
}

.menu-wa-slip__clip {
  position: absolute;
  top: -10px;
  inset-inline-start: 50%;
  width: 34px;
  height: 18px;
  margin-inline-start: -17px;
  background: linear-gradient(180deg, #d0d5db, #8e969f);
  border-radius: 3px 3px 6px 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .28);
}

.menu-wa-slip__kicker {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mt-muted);
  text-align: center;
}

.menu-wa-slip__title {
  margin: .35rem 0 .4rem;
  font-family: 'Marhey', 'Tajawal', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  color: var(--mt-red-deep);
}

.menu-wa-slip__hint {
  margin: 0 0 .7rem;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--mt-muted);
  text-align: center;
}

.menu-wa-slip__phone {
  margin: 0 0 .85rem;
  text-align: center;
  font-weight: 800;
  font-size: .95rem;
}

.menu-wa-slip__btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--mt-wa);
  color: #fff;
  font-weight: 800;
  padding: .75rem .8rem;
  border-radius: .45rem;
  box-shadow: 0 8px 16px rgba(15, 138, 107, .32);
}

.menu-wa-slip__btn:hover { filter: brightness(1.05); }
.menu-wa-slip__btn:active { transform: scale(.98); }
.menu-wa-slip__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Sections inside opaque paper */
.menu-page.style-table .sec-block {
  background: transparent !important;
  padding: 1.1rem 0;
  margin: 0;
  box-shadow: none !important;
  border: 0 !important;
}

.menu-page.style-table .sec-wrap,
.menu-page.style-table .menu-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.menu-page.style-table .sec-section-head {
  text-align: start;
  margin-bottom: .85rem;
}

.menu-page.style-table .sec-section-head h2,
.menu-page.style-table .menu-table-group h3,
.menu-page.style-table .mt-featured__head h3 {
  font-family: 'Marhey', 'Tajawal', sans-serif;
  color: var(--mt-red-deep);
  margin: 0 0 .35rem;
  border: 0;
  font-size: 1.3rem;
}

.menu-page.style-table .sec-section-head p { color: var(--mt-muted); }

/* Hero */
.menu-page.style-table .sec-hero--menu { padding: 0 0 1.1rem; }

.mt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1rem 1.25rem;
  align-items: center;
  padding: .25rem 0 .35rem;
}

.mt-hero__copy { position: relative; padding-inline-end: .5rem; }

.mt-hero__copy .sec-kicker {
  font-family: 'Marhey', 'Tajawal', sans-serif;
  font-size: 1.05rem;
  color: var(--mt-red);
  margin: 0 0 .2rem;
  text-transform: none;
  letter-spacing: 0;
}

.mt-hero__copy h1 {
  font-family: 'Marhey', 'Tajawal', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 .45rem;
  max-width: 12ch;
}

.mt-hero__copy .sec-lead {
  margin: 0;
  color: var(--mt-muted);
  max-width: 28ch;
  font-size: .98rem;
}

.mt-hero__copy .sec-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .95rem;
}

.mt-hero__stamp {
  position: absolute;
  inset-inline-end: 0;
  bottom: -0.4rem;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: 'Marhey', 'Tajawal', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--mt-red);
  border: 2.5px solid var(--mt-red);
  border-radius: 50%;
  transform: rotate(-14deg);
  opacity: .78;
  line-height: 1.15;
  padding: .4rem;
  pointer-events: none;
}

.mt-hero__plate {
  position: relative;
  justify-self: center;
}

.mt-hero__plate img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow:
    0 0 0 1px rgba(31, 22, 16, .08),
    0 22px 40px rgba(0, 0, 0, .28);
  background: #d9c4a4;
  display: block;
}

.menu-page.style-table .btn-primary {
  background: var(--mt-red);
  border-color: var(--mt-red);
  color: #fff;
  font-weight: 800;
  border-radius: .5rem;
}

.menu-page.style-table .btn-outline {
  border: 1.5px solid var(--mt-red-deep);
  color: var(--mt-red-deep);
  background: transparent;
  font-weight: 700;
  border-radius: .5rem;
}

/* Featured cards */
.mt-featured { margin-bottom: 1.4rem; }

.mt-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.mt-card {
  position: relative;
  background: #fffaf1;
  border: 1px solid rgba(31, 22, 16, .08);
  border-radius: .45rem;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(31, 22, 16, .06);
}

.mt-card img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  display: block;
  background: #e4d3b6;
}

.mt-card__body {
  padding: .7rem .65rem .8rem;
  display: grid;
  gap: .25rem;
}

.mt-card__body strong { font-size: .95rem; }
.mt-card__body span {
  font-size: .78rem;
  color: var(--mt-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mt-card__body .price {
  font-style: normal;
  font-weight: 900;
  color: var(--mt-red);
  margin-top: .2rem;
}

.mt-card__badge {
  position: absolute;
  top: .45rem;
  inset-inline-start: .45rem;
  background: var(--mt-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .22rem .45rem;
  border-radius: .25rem;
  z-index: 1;
}

/* Printed lists */
.menu-page.style-table .menu-table-group + .menu-table-group { margin-top: 1.25rem; }

.menu-page.style-table .menu-table-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-page.style-table .menu-table-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px dashed rgba(31, 22, 16, .18);
}

.menu-page.style-table .menu-table-list img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .14);
  background: #e4d3b6;
}

.menu-page.style-table .menu-table-list strong {
  display: block;
  font-size: 1rem;
}

.menu-page.style-table .menu-table-list span {
  display: block;
  font-size: .8rem;
  color: var(--mt-muted);
  margin-top: .15rem;
}

.menu-page.style-table .menu-table-list .price {
  font-style: normal;
  font-weight: 900;
  color: var(--mt-red);
  white-space: nowrap;
}

.menu-page.style-table .sec-gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.menu-page.style-table .sec-gallery-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.menu-page.style-table .sec-gallery-card img {
  border-radius: .4rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid rgba(31, 22, 16, .1);
}

.menu-page.style-table .sec-gallery-card div { padding: .45rem 0 0; }

.menu-page.style-table .menu-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 22, 16, .12);
  text-align: center;
  color: var(--mt-muted);
}

.menu-page.style-table .sec-cta {
  background: transparent !important;
  color: var(--mt-ink);
  text-align: center;
}

.menu-page.style-table .sec-cta h2 { color: var(--mt-red-deep); }

/* Mobile = folded paper menu */
@media (max-width: 1024px) {
  .menu-prop { display: none; }

  .menu-stage {
    grid-template-columns: 1fr;
    padding: .75rem .65rem 6.5rem;
    gap: .75rem;
  }

  .menu-cat-strip {
    position: sticky;
    top: 0;
    z-index: 20;
    transform: none;
    padding: .65rem .55rem;
    border-radius: .65rem;
  }

  .menu-cat-strip__title,
  .menu-cat-strip__note { display: none; }

  .menu-side-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: .4rem;
    -webkit-overflow-scrolling: touch;
  }

  .menu-side-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, .45);
    border: 1px solid rgba(31, 22, 16, .08);
  }

  .menu-side-nav__icon { display: none; }

  .menu-plate__links { display: none; }

  .menu-paper {
    padding: 1rem .9rem 1.35rem;
  }

  .mt-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: .9rem;
  }

  .mt-hero__copy { padding: 0; }

  .mt-hero__copy h1,
  .mt-hero__copy .sec-lead { margin-inline: auto; }

  .mt-hero__copy .sec-cta-row { justify-content: center; }

  .mt-hero__stamp {
    position: static;
    margin: .85rem auto 0;
    transform: rotate(-8deg);
  }

  .mt-hero__plate img {
    width: min(78vw, 260px);
    margin-inline: auto;
  }

  .mt-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-wa-slip {
    position: fixed;
    inset-inline: .65rem;
    bottom: .65rem;
    top: auto;
    z-index: 40;
    transform: none;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .15rem .7rem;
    align-items: center;
    padding: .7rem .85rem;
    border-radius: .85rem;
    animation: none;
  }

  .menu-wa-slip__clip,
  .menu-wa-slip__kicker,
  .menu-wa-slip__phone { display: none; }

  .menu-wa-slip__title {
    grid-column: 1;
    margin: 0;
    text-align: start;
    font-size: 1rem;
  }

  .menu-wa-slip__hint {
    grid-column: 1;
    margin: 0;
    text-align: start;
    font-size: .72rem;
  }

  .menu-wa-slip__btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: .7rem .9rem;
    align-self: center;
  }
}

@media (max-width: 520px) {
  .mt-featured__grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .menu-page.style-table .menu-table-list li {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: .55rem;
  }
  .menu-page.style-table .menu-table-list img {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-cat-strip,
  .menu-paper,
  .menu-wa-slip { animation: none; }
}

@media (max-width: 1024px) {
  .menu-page.style-table { background-attachment: scroll; }
}
