/* ==========================================================================
   Restaurant QR menu template — Stylesheet
   Look: 911 — light grey paper, orange accent, charcoal type,
   bold Arabic display type, food video hero.
   Brand colors: :root tokens below (overridden by SITE.theme in js/site-config.js)
   Mobile-First | RTL | GSAP Scroll Scene
   ========================================================================== */

:root {
  --bg: #F6F0E6;          /* flour */
  --bg-2: #EFE6D8;        /* deeper flour, for bands */
  --surface: #FFFFFF;
  --ink: #1F1611;         /* near-black, warm */
  --muted: #74665B;
  --line: rgba(31, 22, 17, 0.1);
  --accent: #D9432B;      /* tomato */
  --accent-dark: #B8331E;
  --accent-soft: #FBE3DD;
  --dark: #1F1611;        /* footer, cart bar, stepper */
  --whatsapp: #1F9E4F;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(31, 22, 17, 0.06), 0 8px 24px rgba(31, 22, 17, 0.07);
  --font-display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --nav-h: 64px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* No `scroll-behavior: smooth` here: it turns ScrollTrigger's instant
   scroll restores (on refresh: resize, font load, menu filter) into slow
   animated scrolls, which left the pinned hero stuck on a stale frame.
   Anchor links are smooth-scrolled in js/site.js instead. */
html {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  /* Direction comes from <html dir> (rtl, or ltr in English: js/i18n.js).
     Layout outside the hero uses logical sides (start/end, inline-*). */
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

/* Inline line icons (js/icons.js and inline SVG in index.html) */
.icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  flex: 0 0 auto;
}

/* Shared primary button (tomato) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Welcome screen (removed by main.js once the hero images are decoded).
   The CSS auto-hide at 3.2s is a safety net if JavaScript never runs.
   -------------------------------------------------------------------------- */
html.intro-on { overflow: hidden; }
.no-intro .intro { display: none; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
  animation: introFailsafe 0.4s 3.2s forwards;
}

.intro.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
}

@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }

.intro__inner {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  animation: introIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes introIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
}

.brand-mark.intro__mark { --mark-size: 84px; }

.intro__flame {
  width: 30px;
  height: 42px;
  transform-origin: 50% 100%;
  animation: flicker 0.9s ease-in-out infinite alternate;
}

.intro__flame-outer { fill: var(--accent); }
.intro__flame-inner { fill: #F6B24A; }

@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0deg); }
  35% { transform: scale(0.96, 1.06) skewX(-3deg); }
  70% { transform: scale(1.03, 0.97) skewX(2deg); }
  100% { transform: scale(0.98, 1.04) skewX(-1deg); }
}

.intro__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--ink);
}

/* Keyboard skip link: hidden until focused */
.skip-link {
  position: fixed;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

/* Brand mark: the logo image from site-config.js, or a monogram
   (first letter of the short name) when no logo is set. */
.brand-mark {
  --mark-size: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--mark-size);
  height: var(--mark-size);
  border-radius: 50%;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--mark-size) * 0.5);
  line-height: 1;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  /* Solid instead of backdrop-filter: blurring the animating hero
     behind the navbar had to be recomputed on every scroll frame. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

/* A logo that already spells the name (911): keep the text for screen readers only */
.navbar__logo .brand-mark:has(img) + [data-site="shortName"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-inline-start: auto;
}

.navbar__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.navbar__link:hover { color: var(--ink); }

/* Language switch (js/i18n.js) */
.navbar__lang {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 42px;
  margin-inline-start: auto;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.navbar__lang:hover { border-color: var(--ink); }

@media (min-width: 681px) {
  .navbar__lang { margin-inline-start: 0; }
}

.navbar__cta {
  min-height: 42px;
  padding: 0 1.3rem;
  font-size: 0.95rem;
}

@media (max-width: 680px) {
  .navbar__links { display: none; }
  .navbar__logo { font-size: 1.3rem; }
}

/* --------------------------------------------------------------------------
   Hero: a short muted video (js/main.js) that stops on the finished meal.
   Phones: the video fills the screen; the slogan sits over its empty top
   (charcoal band, then blurred restaurant) and the CTA over the tablecloth
   at the bottom, so neither covers the meal in the middle.
   Desktop: text on one side, the portrait video as a card on the other.
   The charcoal glow below is what shows until (or without) the video.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1.25rem) 1.25rem 2.25rem;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 75% 8%, rgba(232, 110, 36, 0.55), transparent 60%),
    radial-gradient(90% 50% at 20% 100%, rgba(196, 82, 27, 0.35), transparent 70%),
    var(--dark);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video,
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero.has-video .hero__video,
.hero.no-video .hero__still { opacity: 1; }

/* Dark grade behind the slogan at the top and the CTA at the bottom */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.55) 22%, rgba(20, 20, 20, 0) 40%,
    rgba(20, 20, 20, 0) 80%, rgba(20, 20, 20, 0.7) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero__text,
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 34rem;
}

/* Phones: the note goes above the button, clear of the WhatsApp bubble */
.hero__actions { flex-direction: column-reverse; }

.hero__eyebrow {
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero__tagline {
  margin-top: 0.7rem;
  font-size: clamp(1rem, 4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero__cta {
  min-height: 54px;
  padding: 0 2rem;
  font-size: 1.05rem;
}

.hero__note {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Desktop: split layout, video as a portrait card */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    min-height: 100vh;
    padding: calc(var(--nav-h) + 2rem) clamp(2rem, 6vw, 6rem) 2rem;
    background: var(--bg);
    color: var(--ink);
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    flex: none;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    text-align: start;
  }

  .hero__text,
  .hero__actions { align-items: flex-start; }

  .hero__actions { flex-direction: column; margin-top: 1.75rem; }
  .hero__note { margin: 0.9rem 0 0; text-shadow: none; }

  .hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    /* Sized from the height so the card keeps the video's 9:16 */
    height: min(calc(100vh - var(--nav-h) - 4rem), 820px);
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    background:
      radial-gradient(120% 60% at 75% 8%, rgba(232, 110, 36, 0.55), transparent 60%),
      var(--dark);
    box-shadow: 0 30px 60px -20px rgba(31, 22, 17, 0.45);
  }

  .hero__media::after { display: none; }

  .hero h1 {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
    text-shadow: none;
  }

  .hero__tagline { font-size: 1.2rem; color: var(--muted); }
  .hero__note { color: var(--muted); }
}

/* --------------------------------------------------------------------------
   Bucket: scroll-scrubbed frame animation (js/bucket.js). The stage is one
   screen tall and pinned while the frames play; the white matches the
   video's studio background so the canvas edges disappear.
   -------------------------------------------------------------------------- */
.bucket {
  position: relative;
  background: #f4f4f4;
  color: var(--dark);
}

.bucket__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.bucket__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bucket__text {
  position: absolute;
  inset-inline: 0;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 0 1.25rem;
  text-align: center;
}

.bucket__text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 4.5rem);
  line-height: 1.1;
  color: var(--accent);
}

.bucket__text p {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 4vw, 1.25rem);
}

.bucket__cta {
  margin-top: 1.1rem;
  min-height: 54px;
  padding: 0 2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Menu (QR dine-in menu)
   -------------------------------------------------------------------------- */
.menu {
  position: relative;
  z-index: 10;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 4rem;
  scroll-margin-top: var(--nav-h);
}

.menu__head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1rem 1.25rem;
  text-align: center;
}

.menu__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.menu__head p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Table badge: opens quick requests (waiter / bill) */
.menu__service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.menu__head .menu__table {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu__table-caret {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.menu__table[aria-expanded="true"] .menu__table-caret { transform: rotate(180deg); }
.menu__service.is-static .menu__table { cursor: default; }
.menu__service.is-static .menu__table-caret { display: none; }

.menu__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.menu__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.menu__action .icon { color: var(--accent); }
.menu__action:active { transform: scale(0.97); }

.menu__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 520px;
  height: 52px;
  margin: 1.4rem auto 0;
  padding: 0 1.1rem;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.menu__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--ink);
}

/* "Most loved" row: big photo cards scrolling sideways */
.menu__featured {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 0 0.75rem;
}

.feat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem 0.6rem;
}

.feat__head h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
}

.feat__head h3 .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 1.8;
}

.feat__nav {
  display: none;
  gap: 0.5rem;
}

.feat__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.feat__arrow .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* The chevron points right: flip the one that points "back" in reading order */
.feat__arrow[data-feat="-1"] .icon { transform: scaleX(-1); }
[dir="rtl"] .feat__arrow[data-feat="-1"] .icon { transform: none; }
[dir="rtl"] .feat__arrow[data-feat="1"] .icon { transform: scaleX(-1); }

@media (min-width: 1024px) {
  .feat__nav { display: flex; }
}

.feat__track {
  display: flex;
  gap: 0.85rem;
  padding: 0.3rem 1rem 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  list-style: none;
  scrollbar-width: none;
}

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

.feat__card {
  position: relative;
  flex: 0 0 min(62vw, 240px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.feat__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
  color: var(--muted);
}

.feat__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feat__photo.is-empty img { display: none; }

.feat__photo .menu__ph {
  width: 52px;
  height: 52px;
}

.feat__body { padding: 0.75rem 0.9rem 0.9rem; }

.feat__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.feat__cat {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.feat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.feat__row .menu__price { margin-top: 0; }

.menu__chips {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

@media (min-width: 1024px) {
  .menu__chips { justify-content: center; }
}

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

/* Sliding pill behind the selected chip (positioned by menu.js) */
.menu__chips-indicator {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 9999px;
  background: var(--ink);
  pointer-events: none;
  will-change: transform;
}

.menu__chip {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 1.1rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu__chip:hover { color: var(--ink); }
.menu__chip:active { transform: scale(0.96); }
.menu__chip.is-active { color: #fff; }

.menu__list {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.menu__cat {
  padding-top: 2rem;
  scroll-margin-top: 130px;
}

/* Sections far from the screen skip rendering. Without this, scrolling the
   pinned hero repainted the whole menu under it on every frame (Chrome paints
   ~4000px ahead). menu.js refreshes ScrollTrigger when a section first renders. */
.menu__cat {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

.menu__featured {
  content-visibility: auto;
  contain-intrinsic-size: auto 440px;
}

.menu__banner {
  position: relative;
  height: clamp(180px, 42vw, 300px);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: var(--bg-2);
}

.menu__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* Banner without a photo: large category icon on a tinted band */
.menu__banner--icon { background: var(--accent-soft); }

.menu__icon {
  position: absolute;
  inset-inline-end: 1.6rem;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  width: 96px;
  height: 96px;
  color: var(--accent);
}

.menu__banner:not(.menu__banner--icon)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 13, 9, 0.72) 0%, rgba(20, 13, 9, 0.2) 45%, transparent 70%);
}

/* Per-category particle moment (js/cat-fx.js) */
.menu__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.menu__banner h3 {
  position: absolute;
  inset-inline-start: 1.25rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
}

.menu__banner--icon h3 { color: var(--ink); }

/* Items: one white card per category */
.menu__cat ul {
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.25rem 1.1rem;
}

.menu__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 76px;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.menu__item:last-child { border-bottom: 0; }
.menu__item.has-photo { padding-bottom: 1.4rem; }

.menu__text {
  flex: 1;
  min-width: 0;
}

.menu__name {
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
}

/* The name is the row's button: its ::after covers the whole row, so a tap
   anywhere opens the item sheet ("+" sits above it). */
.menu__open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.menu__open::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
}

.menu__open:focus-visible { outline: none; }
.menu__open:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }

.menu__desc {
  display: -webkit-box;
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.menu__price {
  margin-top: 0.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menu__price small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Tags: popular / new / spicy / vegetarian / sold out */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 23px;
  padding: 0 0.55rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tag .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}

.tag--popular { background: var(--accent-soft); color: var(--accent-dark); }
.tag--new { background: var(--ink); color: #fff; }
.tag--spicy { background: #FFE9DB; color: #A83C0C; }
.tag--veg { background: #E6F2E1; color: #2E6A28; }
.tag--out { background: var(--line); color: var(--ink); }

.menu__item.is-soldout .menu__name,
.menu__item.is-soldout .menu__desc,
.menu__item.is-soldout .menu__price,
.menu__item.is-soldout .menu__thumb { opacity: 0.5; }

/* Photo slot. The category icon sits behind the image: until the photo is
   added (or if it fails to load) the slot shows a tidy placeholder. */
.menu__media {
  position: relative;
  flex: 0 0 auto;
}

.menu__thumb {
  position: relative;
  width: 108px;
  height: 108px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-2);
  color: var(--muted);
}

.menu__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu__thumb.is-empty img { display: none; }

.menu__ph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  opacity: 0.45;
}

/* Desktop: two columns of items inside each category card */
@media (min-width: 900px) {
  .menu__cat ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    padding: 0.25rem 1.75rem;
  }

  .menu__cat ul .menu__item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

.menu__note {
  margin-top: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

/* Loading placeholder (menu from a Google Sheet, first visit) */
.skel__banner,
.skel__row span {
  background: linear-gradient(90deg, var(--bg-2) 25%, #F8F3EB 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skel__banner {
  height: clamp(180px, 42vw, 300px);
  margin: 2rem 0 0.9rem;
  border-radius: var(--radius);
}

.skel__card {
  padding: 0.25rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.skel__row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.skel__row:last-child { border-bottom: 0; }

.skel__row span {
  width: 55%;
  height: 14px;
  border-radius: 7px;
}

.skel__row span + span {
  width: 80%;
  height: 11px;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.menu__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Ordering controls inside the menu
   -------------------------------------------------------------------------- */
.menu__qty {
  position: relative;
  z-index: 2;
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
}

/* On a photo: centered on its bottom edge */
.has-photo .menu__qty {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
}

.menu__add {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

/* 46px touch target around the 38px visual circle */
.menu__add::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.menu__add:hover { background: var(--accent-dark); }
.menu__add:active { transform: scale(0.9); }

.has-photo .menu__add,
.has-photo .stepper { box-shadow: 0 0 0 3px var(--surface), 0 6px 14px rgba(31, 22, 17, 0.18); }

/* How many of this item are in the order (items with sizes/options) */
.menu__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
}

/* The markup is "+ n −" so Arabic reads − n + on screen; keep that order in English */
[dir="ltr"] .stepper { flex-direction: row-reverse; }

.stepper button {
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.stepper output {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Press feedback */
.stepper button:active { transform: scale(0.9); }

/* Dot that flies from "+" to the cart count */
.fly-dot {
  position: fixed;
  z-index: 200;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 67, 43, 0.25);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Cart bar (bottom) + cart sheet (dialog)
   -------------------------------------------------------------------------- */
body.has-cart { padding-bottom: 88px; }
body.has-cart .wa-fab { display: none; }

.cartbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 130;
  max-width: 560px;
  margin: 0 auto;
  animation: barIn 0.25s ease-out;
}

.cartbar__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 60px;
  padding: 0 0.75rem 0 1.25rem;
  border: 0;
  border-radius: 9999px;
  background: var(--dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow: 0 14px 34px rgba(31, 22, 17, 0.35);
  cursor: pointer;
}

.cartbar__count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  will-change: transform;
}

.cartbar__label { flex: 1; text-align: start; }

.cartbar__total {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  font-variant-numeric: tabular-nums;
}

@keyframes barIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: none; opacity: 1; }
}

html.sheet-open { overflow: hidden; }

.cart {
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
}

.cart[open] { animation: sheetUp 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }

.cart::backdrop { background: rgba(31, 22, 17, 0.5); }

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: none; }
}

.cart__inner {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.cart__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.2;
}

.cart__head h2:focus { outline: none; }

.cart__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.cart__lines {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0.25rem 1.25rem;
}

.cart__line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.cart__info { flex: 1; min-width: 0; }
.cart__info strong { display: block; font-size: 0.98rem; }
.cart__info small { color: var(--muted); font-size: 0.82rem; }

.cart__price {
  min-width: 3.2em;
  text-align: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart__empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

.cart__form {
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.cart__table,
.cart__notes {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.cart__table input,
.cart__notes textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(31, 22, 17, 0.18);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-weight: 600;
  resize: none;
}

.cart__table input { max-width: 140px; }

.cart__error {
  margin: -0.35rem 0 0.7rem;
  color: #B3261E;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.2rem 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.cart__sum {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.cart__send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 9999px;
  background: var(--whatsapp);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.cart__clear,
.cart__again {
  display: block;
  margin: 0.6rem auto 0;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Sheet: "ready in WhatsApp" state */
.cart.is-done .cart__lines,
.cart.is-done .cart__form { display: none; }

.cart__done {
  padding: 2rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
  text-align: center;
}

.cart__check {
  width: 76px;
  height: 76px;
  color: var(--whatsapp);
  margin: 0 auto 1rem;
}

.cart__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.cart__check path { stroke-dasharray: 36; stroke-dashoffset: 36; }

.cart.is-done .cart__check circle { animation: draw 0.5s ease-out forwards; }
.cart.is-done .cart__check path { animation: draw 0.35s 0.4s ease-out forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.cart__done h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.3;
}

.cart__done p {
  margin: 0.4rem 0 1.5rem;
  color: var(--muted);
}

.cart__back {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart__line-note { display: block; font-style: italic; }

/* "Add something?" row inside the cart */
.upsell {
  padding: 0.9rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.upsell__title {
  padding: 0 1.25rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.upsell__track {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.25rem 0.6rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

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

.upsell__card {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  min-width: 190px;
  padding: 0.5rem;
  padding-inline-end: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  scroll-snap-align: start;
}

.upsell__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--muted);
}

.upsell__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upsell__thumb.is-empty img { display: none; }

.upsell__thumb .menu__ph {
  width: 24px;
  height: 24px;
}

.upsell__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 0.88rem;
}

.upsell__text strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upsell__text bdi {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.upsell__add {
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
}

.cart.is-done .upsell { display: none; }

/* Status message above the cart bar */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 140;
  max-width: calc(100% - 32px);
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 30px rgba(31, 22, 17, 0.3);
  transform: translateX(-50%);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* --------------------------------------------------------------------------
   Item sheet (js/item-sheet.js): photo, description, options, add to order
   -------------------------------------------------------------------------- */
.isheet {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
}

.isheet[open] { animation: sheetUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.isheet.is-closing { animation: sheetDown 0.26s cubic-bezier(0.4, 0, 1, 1) forwards; }
.isheet::backdrop { background: rgba(31, 22, 17, 0.5); }

@keyframes sheetDown { to { transform: translateY(100%); } }

/* One scrolling column; the add bar sticks to the bottom */
.isheet__inner {
  display: flex;
  flex-direction: column;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.isheet__photo {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 42dvh;
  overflow: hidden;
  background: var(--bg-2);
  color: var(--muted);
}

.isheet__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isheet__photo.is-empty img { display: none; }

/* The category photo standing in for an item without its own */
.isheet__photo.is-cat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 13, 9, 0.3), transparent 55%);
}

.isheet__ph {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

.isheet__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(31, 22, 17, 0.18);
  cursor: pointer;
}

.isheet__close .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.isheet__body { padding: 1.25rem 1.25rem 0.5rem; }

.isheet__body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.25;
}

.isheet__body h2:focus { outline: none; }

.isheet__desc {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.isheet__group {
  min-width: 0;
  margin-top: 1.4rem;
  padding: 0;
  border: 0;
}

.isheet__group legend {
  margin-bottom: 0.6rem;
  padding: 0;
  font-weight: 800;
}

.isheet__group legend small,
.isheet__note small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Size and extras: full-width rows with a custom radio / checkbox */
.opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  margin-bottom: 0.45rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.opt input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 2px solid rgba(31, 22, 17, 0.3);
  border-radius: 50%;
  background: var(--surface);
  appearance: none;
  cursor: pointer;
}

.opt input:checked {
  border-color: var(--accent);
  background: radial-gradient(var(--accent) 42%, var(--surface) 47%);
}

.opt--check input { border-radius: 7px; }

.opt--check input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.opt input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.opt__name {
  flex: 1;
  font-weight: 600;
}

.opt__price {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.opt:has(input:checked) .opt__price { color: var(--accent-dark); }

/* Pick-one options (sugar, flavor...) as pills */
.isheet__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-opt { position: relative; }

.pill-opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill-opt input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pill-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.isheet__note {
  display: block;
  margin-top: 1.4rem;
  font-weight: 800;
}

.isheet__note textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  font-weight: 500;
  resize: none;
}

.isheet__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.isheet__add {
  flex: 1;
  justify-content: space-between;
  height: 54px;
  padding: 0 1.3rem;
  font-size: 1.02rem;
}

.isheet__add:disabled {
  justify-content: center;
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.isheet__total { font-variant-numeric: tabular-nums; }

/* Photo morph between the row thumbnail and the sheet (View Transitions) */
.vt-isheet .isheet {
  view-transition-name: isheet-panel;
  animation: none;
}

.vt-isheet .isheet__ph { visibility: hidden; }

/* The panel only exists on one side of the transition, so by default it
   would be layered above the flying photo */
::view-transition-group(isheet-panel) { z-index: 1; }

::view-transition-group(isheet-photo) {
  z-index: 2;
  animation-duration: 0.42s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-old(isheet-photo),
::view-transition-new(isheet-photo) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
}

::view-transition-new(isheet-panel):only-child { animation: vtSheetIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
::view-transition-old(isheet-panel):only-child { animation: vtSheetOut 0.3s cubic-bezier(0.4, 0, 1, 1) both; }

@keyframes vtSheetIn { from { transform: translateY(100%); } }
@keyframes vtSheetOut { to { transform: translateY(100%); } }

/* Wide screens: the sheets become centered cards that pop in */
@media (min-width: 768px) {
  .cart,
  .isheet {
    margin: auto;
    max-height: 88dvh;
    border-radius: 26px;
  }

  .cart__inner,
  .isheet__inner { max-height: 88dvh; }

  .cart[open],
  .isheet[open] { animation-name: sheetPop; }

  .isheet.is-closing { animation-name: sheetPopOut; }

  ::view-transition-new(isheet-panel):only-child { animation-name: sheetPop; }
  ::view-transition-old(isheet-panel):only-child { animation-name: sheetPopOut; }
}

@keyframes sheetPop { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
@keyframes sheetPopOut { to { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 10;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.brand-mark.footer__logo-img {
  --mark-size: 64px;
  display: grid;
  margin: 0 auto 0.75rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.2;
  color: #fff;
}

.footer__tag {
  margin: 0.25rem 0 2rem;
  font-size: 1rem;
}

.footer__address,
.footer__hours {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer__address .icon,
.footer__hours .icon { color: var(--accent); }

.footer__phones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__phones a {
  display: inline-block;
  direction: ltr;
  color: #fff;
  transition: color 0.2s ease;
}

.footer__phones a:hover { color: var(--accent); }

.footer__social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.footer__copy {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Floating WhatsApp button */
.wa-fab {
  position: fixed;
  bottom: 1.2rem;
  inset-inline-end: 1.2rem;
  z-index: 120;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 22, 17, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wa-fab:hover { transform: scale(1.06); }

.wa-fab.is-hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

/* Visible keyboard focus on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.menu__search:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.menu__search input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro__inner, .intro__flame,
  .menu__chip {
    animation: none !important;
    transition: none !important;
  }

  .cart__check circle, .cart__check path { stroke-dashoffset: 0; animation: none !important; }

  .cart[open], .isheet[open], .isheet.is-closing, .cartbar, .toast,
  .skel__banner, .skel__row span { animation: none !important; }
}
