/* ==========================================================================
   TWINS CAFE — توينز كافيه · Digital menu stylesheet
   Sections: 1 Tokens · 2 Base · 3 Loader · 4 Header/Drawer · 5 Ticker · 6 Hero
             7 Section heads · 8 Offers · 9 Signatures · 10 Menu toolbar
             11 Cards · 12 Sheet · 13 Dock · 14 Footer · 15 Gallery · 16 Motion/Print
   All spacing uses logical properties so Arabic (RTL) and English (LTR) both work.
   ========================================================================== */

/* 1 · TOKENS */
:root {
  --burgundy: #6A1E2D;
  --burgundy-deep: #4F1521;
  --burgundy-soft: #8A3A49;
  --beige: #E9D7C3;
  --beige-soft: #F3E9DC;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --champagne: #C9A96E;
  --ink: #2A1A1D;
  --muted: #7A6A66;
  --line: rgba(106, 30, 45, .14);
  --safe: #2E6B3F;
  --safe-bg: #EEF6EF;
  --warn: #8A3B12;
  --warn-bg: #FFF3E8;
  --shadow-sm: 0 1px 2px rgba(79, 21, 33, .06), 0 4px 14px rgba(79, 21, 33, .06);
  --shadow-md: 0 8px 30px rgba(79, 21, 33, .12);
  --radius: 18px;
  --hh: 60px;
  /* header height */
  --font-body: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-display-en: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-display-ar: 'Amiri', 'Tajawal', 'Traditional Arabic', serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* 2 · BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 76px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

.display {
  font-family: var(--font-display-en);
  font-weight: 600;
  letter-spacing: .01em;
}

html[lang="ar"] .display {
  font-family: var(--font-display-ar);
  font-weight: 700;
  letter-spacing: 0;
}

noscript .nojs {
  padding: 40px 20px;
  text-align: center;
  color: var(--burgundy);
  font-size: 1.1rem;
}

/* 3 · LOADER */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--cream);
  transition: opacity .5s ease, visibility .5s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-twins {
  position: relative;
  width: 96px;
  height: 56px;
}

.loader-twins i {
  position: absolute;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--burgundy);
  animation: twinPulse 1.4s ease-in-out infinite;
}

.loader-twins i:first-child {
  inset-inline-start: 0;
}

.loader-twins i:last-child {
  inset-inline-end: 0;
  background: var(--beige);
  animation-delay: .25s;
}

.loader-word {
  margin-top: 18px;
  text-align: center;
  color: var(--burgundy);
  font-family: var(--font-display-en);
  font-size: 1.1rem;
  letter-spacing: .5em;
  padding-inline-start: .5em;
}

.loader-box {
  display: grid;
  justify-items: center;
}

@keyframes twinPulse {

  0%,
  100% {
    transform: scale(.92);
    opacity: .75
  }

  50% {
    transform: scale(1.04);
    opacity: 1
  }
}

/* 4 · HEADER / DRAWER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hh);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text b {
  font-family: var(--font-display-en);
  font-size: 1.35rem;
  letter-spacing: .22em;
  color: var(--burgundy);
  font-weight: 700;
}

.brand-text small {
  font-family: var(--font-display-ar);
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: 0;
}

.nav-inline {
  display: none;
  gap: 4px;
  align-items: center;
}

.nav-inline a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  transition: background .2s, color .2s;
}

.nav-inline a:hover,
.nav-inline a[aria-current] {
  background: var(--beige-soft);
  color: var(--burgundy);
}

.icon-btn,
.lang-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  color: var(--burgundy);
  transition: background .2s, transform .15s;
}

.icon-btn:hover,
.lang-btn:hover {
  background: var(--beige-soft);
}

.icon-btn:active,
.lang-btn:active {
  transform: scale(.95);
}

.lang-btn {
  padding: 0 14px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.drawer-bg {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(42, 26, 29, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.drawer {
  position: fixed;
  z-index: 1600;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(340px, 86vw);
  background: var(--cream);
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow-md);
}

html[dir="rtl"] .drawer {
  transform: translateX(-105%);
}

body.drawer-open .drawer {
  transform: none;
}

body.drawer-open .drawer-bg {
  opacity: 1;
  visibility: visible;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.drawer a.dlink {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.drawer a.dlink:hover,
.drawer a.dlink[aria-current] {
  background: var(--beige-soft);
  color: var(--burgundy);
}

.drawer-foot {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

/* 5 · TICKER */
.ticker {
  background: var(--burgundy);
  color: var(--cream);
  overflow: hidden;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  padding: 8px 0;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.ticker-track span {
  padding-inline: 2.5rem;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

html[dir="rtl"] .ticker-track {
  animation-name: marqueeRtl;
}

@keyframes marqueeRtl {
  to {
    transform: translateX(50%)
  }
}

/* 6 · HERO */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--beige-soft), transparent 70%),
    var(--cream);
  padding: 34px 0 46px;
}

.hero .wrap {
  display: grid;
  gap: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--burgundy);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow {
  letter-spacing: .04em;
  font-size: .9rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--burgundy);
}

.hero-title {
  margin-top: 14px;
  line-height: .95;
  color: var(--burgundy);
}

.hero-title .en {
  display: block;
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: clamp(4rem, 17vw, 8rem);
  letter-spacing: .06em;
}

.hero-title .ar {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display-ar);
  font-weight: 700;
  font-size: clamp(2.1rem, 8.5vw, 3.6rem);
  line-height: 1.25;
  color: var(--burgundy-soft);
}

.hero-lead {
  margin-top: 18px;
  font-size: clamp(1.1rem, 3.4vw, 1.4rem);
  max-width: 30ch;
  line-height: 1.5;
}

.hero-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: .98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid var(--burgundy);
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(106, 30, 45, .28);
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
}

.btn-ghost:hover {
  background: var(--burgundy);
  color: var(--white);
}

.btn svg {
  width: 18px;
  height: 18px;
}

html[dir="rtl"] .btn .arrow {
  transform: scaleX(-1);
}

/* twin arches */
.hero-art {
  position: relative;
  height: 340px;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}

.hero-art .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  opacity: .22;
}

.hero-art .r1 {
  width: 210px;
  height: 210px;
  top: -14px;
  inset-inline-start: -10px;
}

.hero-art .r2 {
  width: 210px;
  height: 210px;
  bottom: -10px;
  inset-inline-end: -8px;
  background: var(--beige);
  opacity: .5;
  border: 0;
}

.arch {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 999px 999px 22px 22px;
  background: var(--beige);
  box-shadow: var(--shadow-md);
  border: 5px solid var(--white);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch.a1 {
  width: 54%;
  height: 300px;
  inset-inline-start: 4%;
  top: 0;
}

.arch.a2 {
  width: 46%;
  height: 240px;
  inset-inline-end: 4%;
  bottom: 0;
}

.seal {
  position: absolute;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  top: 8px;
  inset-inline-end: 2%;
}

.seal img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 50%;
}

@media (min-width:860px) {
  .hero {
    padding: 64px 0 80px;
  }

  .hero .wrap {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
  }

  .hero-art {
    height: 520px;
    max-width: 560px;
  }

  .hero-art .ring {
    width: 300px;
    height: 300px;
  }

  .arch.a1 {
    height: 460px;
  }

  .arch.a2 {
    height: 360px;
  }

  .seal {
    width: 108px;
    height: 108px;
  }

  .seal img {
    width: 86px;
    height: 86px;
  }
}

/* entrance */
body:not(.ready) .rise {
  opacity: 0;
}

body.ready .rise {
  animation: rise .8s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* 7 · SECTION HEADS */
.section {
  padding: 54px 0 10px;
}

.sec-head {
  text-align: center;
  margin-bottom: 26px;
}

.sec-kicker {
  display: block;
  color: var(--burgundy-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

html[lang="ar"] .sec-kicker {
  letter-spacing: .04em;
  font-size: .9rem;
}

.sec-title {
  margin-top: 6px;
  font-size: clamp(2rem, 6vw, 2.9rem);
  color: var(--burgundy);
  line-height: 1.15;
}

.twin-rule {
  display: block;
  margin: 12px auto 0;
  width: 54px;
  height: 22px;
  color: var(--champagne);
}

/* 8 · OFFERS */
.offers-rail {
  position: relative;
}

.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 16px 22px;
  margin-inline: -16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  display: none;
}

.offer {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.offer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.offer-img {
  aspect-ratio: 4/5;
  background: var(--beige-soft);
  overflow: hidden;
}

.offer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.offer-tag {
  justify-self: start;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: var(--beige-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

html[lang="ar"] .offer-tag {
  letter-spacing: 0;
  font-size: .82rem;
}

.offer h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--burgundy);
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--burgundy);
  font-family: var(--font-display-en);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
}

.offer-price small {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.offer p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.offer-time {
  margin-top: auto;
  font-size: .85rem;
  font-weight: 700;
  color: var(--burgundy-soft);
  display: flex;
  gap: 6px;
  align-items: center;
}

.rail-btn {
  display: none;
  position: absolute;
  top: 40%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--burgundy);
  place-items: center;
}

.rail-btn svg {
  width: 20px;
  height: 20px;
}

.rail-btn.prev {
  inset-inline-start: -14px;
}

.rail-btn.next {
  inset-inline-end: -14px;
}

html[dir="rtl"] .rail-btn svg {
  transform: scaleX(-1);
}

@media (min-width:900px) {
  .rail-btn {
    display: grid;
  }

  .rail {
    margin-inline: 0;
    padding-inline: 4px;
  }

  .offer {
    flex-basis: 300px;
  }
}

/* 9 · SIGNATURES */
.sig-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sig {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
  background: var(--beige-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: start;
  border: 1px solid var(--line);
  padding: 0;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.sig:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.sig-body {
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.sig-body h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--burgundy);
}

.sig-body p {
  color: var(--muted);
  font-size: .95rem;
}

.sig-prices {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (min-width:700px) {
  .sig-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 10 · MENU TOOLBAR */
.toolbar {
  position: sticky;
  top: var(--hh);
  z-index: 60;
  background: rgba(250, 248, 245, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg.mag {
  position: absolute;
  inset-inline-start: 16px;
  width: 20px;
  height: 20px;
  color: var(--burgundy-soft);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  padding-inline: 46px 52px;
  font: inherit;
  font-size: 1rem;
  /* >=16px avoids iOS zoom */
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.search input::placeholder {
  color: #9a8b87;
}

.search input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 4px rgba(106, 30, 45, .12);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.clear-btn {
  position: absolute;
  inset-inline-end: 6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--beige-soft);
  color: var(--burgundy);
  display: grid;
  place-items: center;
}

.clear-btn svg {
  width: 18px;
  height: 18px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

html[dir="rtl"] .chip {
  padding: 0 8px 0 16px;
}

.chip .ci {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--beige-soft);
  font-size: 1.05rem;
  line-height: 1;
}

.chip:active {
  transform: scale(.96);
}

.chip[aria-pressed="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

.chip[aria-pressed="true"] .ci {
  background: rgba(255, 255, 255, .18);
}

.status {
  margin-top: 4px;
  min-height: 22px;
  font-size: .85rem;
  color: var(--muted);
  padding-inline: 4px;
}

@media (min-width:1000px) {
  .chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 6px;
  }
}

/* menu body */
.menu-body {
  padding: 26px 0 30px;
  min-height: 50vh;
}

.cat-block {
  margin-bottom: 40px;
  animation: fadeUp .45s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cat-head h3 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  color: var(--burgundy);
  line-height: 1.15;
}

.cat-head .sub {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 2px;
}

.cat-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

html[dir="rtl"] .cat-head .rule {
  background: linear-gradient(270deg, var(--line), transparent);
}

.cat-note {
  background: var(--beige-soft);
  border-inline-start: 3px solid var(--burgundy);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .92rem;
  display: grid;
  gap: 4px;
}

.cat-note b {
  color: var(--burgundy);
}

.offer-banner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  text-align: start;
  width: 100%;
  padding: 10px 14px 10px 10px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--burgundy);
  color: var(--cream);
  border: 0;
  box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .offer-banner {
  padding: 10px 10px 10px 14px;
}

.offer-banner img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.offer-banner b {
  display: block;
  font-size: 1.15rem;
}

.offer-banner span {
  font-size: .9rem;
  opacity: .92;
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width:700px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width:1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
  }
}

/* 11 · CARDS */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: start;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(106, 30, 45, .3);
}

.card:active {
  transform: scale(.985);
}

.card-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--beige-soft);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s;
  opacity: 0;
}

.card-media img.loaded {
  opacity: 1;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-media.emoji {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 40%, var(--beige) 0 38%, transparent 39%),
    radial-gradient(circle at 70% 60%, var(--beige-soft) 0 38%, transparent 39%),
    var(--cream);
}

.card-media.emoji span {
  font-size: 2.6rem;
  filter: drop-shadow(0 4px 6px rgba(79, 21, 33, .15));
  transition: transform .4s var(--ease);
}

.card:hover .card-media.emoji span {
  transform: scale(1.12) rotate(-4deg);
}

.badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--burgundy);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

html[lang="ar"] .badge {
  letter-spacing: 0;
  font-size: .78rem;
}

.card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-name {
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
}

.card-sub {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.3;
}

.card-allergen {
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-allergen.safe {
  color: var(--safe);
}

.card-allergen.warn {
  color: var(--warn);
  font-weight: 700;
}

.prices {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: var(--beige-soft);
  border-radius: 10px;
  padding: 4px 9px;
  color: var(--burgundy);
  line-height: 1.2;
}

.price .l {
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
}

.price b {
  font-size: 1.05rem;
  font-weight: 700;
}

.price b small {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-inline-end: 2px;
}

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

.empty .big {
  font-size: 2.4rem;
}

.empty h3 {
  margin: 8px 0 4px;
  color: var(--burgundy);
  font-size: 1.4rem;
}

.empty .btn {
  margin-top: 18px;
}

/* 12 · SHEET (item detail) */
dialog.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: min(560px, 100%);
  max-height: 92dvh;
  border-radius: 26px 26px 0 0;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 -12px 50px rgba(42, 26, 29, .3);
}

dialog.sheet::backdrop {
  background: rgba(42, 26, 29, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

dialog.sheet[open] {
  animation: sheetUp .4s var(--ease);
  display: flex;
  flex-direction: column;
}

@keyframes sheetUp {
  from {
    transform: translateY(40px);
    opacity: 0
  }

  to {
    transform: none;
    opacity: 1
  }
}

.sheet-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-media {
  position: relative;
  background: var(--beige-soft);
  aspect-ratio: 4/3;
}

.sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-media.emoji {
  aspect-ratio: 16/8;
  display: grid;
  place-items: center;
  font-size: 4.6rem;
}

.sheet-x {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .94);
  color: var(--burgundy);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.sheet-x svg {
  width: 20px;
  height: 20px;
}

.sheet-body {
  padding: 20px 20px calc(26px + env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
}

.sheet-cat {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}

html[lang="ar"] .sheet-cat {
  letter-spacing: 0;
  font-size: .9rem;
}

.sheet-body h2 {
  font-size: 2rem;
  line-height: 1.15;
  color: var(--burgundy);
}

.sheet-body .sub {
  color: var(--muted);
  margin-top: -8px;
}

.sheet-prices {
  display: grid;
  gap: 8px;
}

.sheet-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.sheet-price span {
  font-weight: 500;
}

.sheet-price b {
  font-size: 1.5rem;
  color: var(--burgundy);
  font-family: var(--font-display-en);
  font-weight: 700;
}

.sheet-price b small {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .06em;
  margin-inline-end: 4px;
}

.pill {
  display: block;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .92rem;
  line-height: 1.5;
  background: var(--white);
  border: 1px solid var(--line);
}

.pill.safe {
  background: var(--safe-bg);
  color: var(--safe);
  border-color: rgba(46, 107, 63, .25);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: rgba(138, 59, 18, .3);
  font-weight: 700;
}

.sheet-h {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -6px;
}

html[lang="ar"] .sheet-h {
  letter-spacing: 0;
  font-size: .9rem;
}

@media (min-width:700px) {
  dialog.sheet {
    margin: auto;
    border-radius: 26px;
    max-height: 90dvh;
  }

  dialog.sheet[open] {
    animation-name: sheetPop;
  }

  @keyframes sheetPop {
    from {
      transform: scale(.96);
      opacity: 0
    }

    to {
      transform: none;
      opacity: 1
    }
  }
}

/* 13 · DOCK (mobile bottom navigation) */
.dock {
  position: fixed;
  z-index: 90;
  inset-inline: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.dock a,
.dock button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: none;
  border: 0;
  text-decoration: none;
  color: var(--burgundy);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 18px;
}

.dock svg {
  width: 22px;
  height: 22px;
}

.dock a:active,
.dock button:active {
  background: var(--beige-soft);
}

.dock .lg {
  font-size: .95rem;
  line-height: 22px;
}

body {
  padding-bottom: 86px;
}

@media (min-width:900px) {
  .dock {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (min-width:1280px) {
  .nav-inline {
    display: flex;
  }

  .burger {
    display: none;
  }
}

/* 14 · FOOTER */
.site-footer {
  margin-top: 40px;
  background: var(--beige);
  color: var(--burgundy-deep);
  padding: 50px 0 24px;
  position: relative;
}

.foot-grid {
  display: grid;
  gap: 32px;
}

.foot-brand img {
  mix-blend-mode: multiply;
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--cream);
  padding: 6px;
}

.foot-brand .tag {
  margin-top: 12px;
  font-weight: 500;
}

.foot-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.foot-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.foot-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--burgundy);
}

.foot-list small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.2;
}

.foot-list span {
  font-weight: 700;
}

.foot-grid h4 {
  font-family: var(--font-display-en);
  font-size: 1.4rem;
  color: var(--burgundy);
}

html[lang="ar"] .foot-grid h4 {
  font-family: var(--font-display-ar);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--burgundy);
  border: 1px solid var(--line);
  transition: background .2s, color .2s, transform .2s;
}

.social a:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-3px);
}

.social svg {
  width: 22px;
  height: 22px;
}

.foot-soon {
  margin-top: 14px;
  color: var(--muted);
  font-size: .88rem;
}

.foot-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.foot-pages a {
  text-decoration: none;
  font-size: .92rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.foot-pages a:hover {
  text-decoration: underline;
}

.foot-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}

.foot-copy {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
}

@media (min-width:800px) {
  .foot-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* 15 · GALLERY */
.page-hero {
  padding: 40px 0 6px;
  text-align: center;
}

.gal {
  columns: 2;
  column-gap: 12px;
  padding: 10px 0 20px;
}

.gal button {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: var(--beige-soft);
  border-radius: 16px;
  overflow: hidden;
  break-inside: avoid;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}

.gal button:hover {
  transform: scale(1.02);
}

.gal img {
  width: 100%;
  height: auto;
}

@media (min-width:700px) {
  .gal {
    columns: 3;
    column-gap: 16px;
  }
}

@media (min-width:1000px) {
  .gal {
    columns: 4;
  }
}

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92dvh;
  overflow: visible;
}

dialog.lightbox::backdrop {
  background: rgba(42, 26, 29, .8);
}

dialog.lightbox img {
  max-width: 96vw;
  max-height: 88dvh;
  border-radius: 14px;
  margin: auto;
}

dialog.lightbox .sheet-x {
  top: -8px;
  inset-inline-end: -4px;
}

/* 16 · MOTION / PRINT */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body:not(.ready) .rise {
    opacity: 1;
  }
}

@media print {

  .site-header,
  .dock,
  .ticker,
  .toolbar,
  .loader,
  .drawer,
  .drawer-bg {
    display: none !important;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
