/* AL-OMDA palette: #FFBA08 yellow (main), #D00000 red (accent), #000000 black. */
:root {
  /* page */
  --bg: #ffba08;
  /* panels (cart, dialogs) and cards */
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff1cc;
  --line: rgba(0, 0, 0, 0.14);
  --beige: #000000;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.62);
  /* accent on light backgrounds (buttons, prices, active states) */
  --gold: #d00000;
  --gold-dark: #a00000;
  --on-gold: #ffffff;
  /* brand yellow, for accents on dark backgrounds (hero, bands) */
  --yellow: #ffba08;
  --red: #d00000;
  --red-dark: #a00000;
  --whatsapp: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.35);
  --header-h: 68px;
  --font-display: "Barlow Condensed", "Cairo", system-ui, sans-serif;
  --font-body: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Subtle oriental pattern, like the printed menu. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='.05' stroke-width='1.5'%3E%3Cpath d='M48 8c8 14 8 26 0 40-8-14-8-26 0-40zM48 88c8-14 8-26 0-40-8 14-8 26 0 40zM8 48c14-8 26-8 40 0-14 8-26 8-40 0zM88 48c-14-8-26-8-40 0 14 8 26 8 40 0z'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3Cpath d='M0 0l14 14M96 0L82 14M0 96l14-14M96 96L82 82'/%3E%3C/g%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg) var(--pattern);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  padding: 8px 16px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 10px 24px -10px rgba(255, 186, 8, 0.6);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--beige);
}
.btn--ghost:hover {
  border-color: var(--beige);
}
.btn--whatsapp {
  background: var(--whatsapp);
  color: #06301a;
}
.btn--block {
  width: 100%;
}
.btn--sm {
  min-height: 42px;
  padding: 0 20px;
}
.btn--lg {
  min-height: 58px;
  padding: 0 30px;
  font-family: "Space Grotesk", var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
[dir="rtl"] .btn--lg {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0;
}
.btn--outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
}
.drawer .btn--outline {
  border-color: rgba(0, 0, 0, 0.7);
  background: transparent;
  color: #000000;
  backdrop-filter: none;
}
.btn svg {
  flex: none;
  transition: transform 0.2s ease;
}
.btn--primary:hover .flip-rtl {
  transform: translateX(4px);
}
[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}
[dir="rtl"] .btn--primary:hover .flip-rtl {
  transform: scaleX(-1) translateX(4px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
}

.link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.link--btn {
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-align: start;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.45);
}
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  justify-self: start;
}
.brand img {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease, opacity 0.25s ease;
}
.brand:hover img {
  transform: rotate(-4deg) scale(1.05);
}
.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  font-family: "Space Grotesk", var(--font-body);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.78);
  font-weight: 700;
  transition: color 0.2s;
}
[dir="rtl"] .nav a {
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 1rem;
}
.nav a:hover {
  color: var(--gold);
}
.header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}
.lang-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.75);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--on-gold);
  cursor: pointer;
}
.cart-btn.bump {
  animation: bump 0.4s ease;
}
.cart-btn__count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #000000;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  border: 2px solid var(--bg);
}
@keyframes bump {
  40% {
    transform: scale(1.18);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 96px;
  overflow: hidden;
  isolation: isolate;
  background: #000000;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(255, 186, 8, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 90% at 75% 45%, rgba(208, 0, 0, 0.35), transparent 75%),
    var(--pattern),
    #000000;
}
[dir="rtl"] .hero__bg {
  background:
    radial-gradient(ellipse 55% 70% at 22% 50%, rgba(255, 186, 8, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 90% at 25% 45%, rgba(208, 0, 0, 0.35), transparent 75%),
    var(--pattern),
    #000000;
}
/* Readability veil over the photo, darkest behind the text. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 30%);
}
[dir="rtl"] .hero__bg::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 30%);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s ease-out both;
}
.hero.has-photo .hero__video {
  display: none;
}
/* The shawarma video fills the whole hero, behind the veil and the text. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: #000000;
}
@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
}

.hero__inner {
  position: relative;
}
.hero__title {
  margin: 18px 0 20px;
  font-family: "Anton", var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, min(7.4vw, 10.5vh), 6.6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.hero__title em {
  font-style: normal;
  color: var(--yellow);
}
[dir="rtl"] .hero__title {
  font-family: var(--font-body);
  font-weight: 900;
  line-height: 1.25;
  font-size: clamp(2.5rem, min(5.6vw, 8.5vh), 5rem);
}
.hero__lead {
  max-width: 30em;
  margin: 0 0 34px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.88rem;
}
.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.status.is-open .status__dot {
  background: var(--whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}
.status__label {
  font-weight: 800;
}
.status__hours {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Tilted scrolling bands ---------- */
.bands {
  position: relative;
  z-index: 2;
  height: 190px;
  margin-top: -70px;
  overflow: hidden;
  pointer-events: none;
}
.band {
  position: absolute;
  left: -5%;
  width: 110%;
  overflow: hidden;
  white-space: nowrap;
}
.band--gold {
  top: 34px;
  z-index: 2;
  background: var(--red);
  color: #ffffff;
  transform: rotate(-2.5deg);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.band--dark {
  top: 98px;
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.55);
  transform: rotate(1.5deg);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.band__track {
  display: flex;
  width: max-content;
  animation: band-scroll 38s linear infinite;
}
.band--dark .band__track {
  animation-duration: 46s;
  animation-direction: reverse;
}
[dir="rtl"] .band__track {
  animation-name: band-scroll-rtl;
}
.band__group {
  display: flex;
}
.band__item {
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  font-family: "Anton", var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
[dir="rtl"] .band__item {
  font-family: var(--font-body);
  font-weight: 800;
}
.band__item::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-inline: 30px;
  border-radius: 50%;
  background: currentColor;
}
.band--dark .band__item::after {
  background: var(--yellow);
}
@keyframes band-scroll {
  to {
    transform: translateX(-50%);
  }
}
@keyframes band-scroll-rtl {
  to {
    transform: translateX(50%);
  }
}

/* ---------- Floating Instagram button ---------- */
.ig-fab {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom));
  inset-inline-end: 22px;
  z-index: 46;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 12px 26px -8px rgba(214, 36, 159, 0.65);
  transition: transform 0.2s ease, bottom 0.3s ease;
}
.ig-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #d6249f;
  animation: ig-ping 2.6s ease-out infinite;
}
.ig-fab:hover {
  transform: scale(1.08) rotate(-6deg);
}
@keyframes ig-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}
.section--band {
  background: #000000;
  color: #ffffff;
}
.section--band .eyebrow {
  color: var(--yellow);
}
.section--band .section__title,
.section--band .sauce {
  color: #ffffff;
}
.section--band .section__note {
  color: rgba(255, 255, 255, 0.7);
}
.section__head {
  text-align: center;
  margin-bottom: 28px;
}
.section__head--start {
  text-align: start;
  margin-bottom: 8px;
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--beige);
}
[dir="rtl"] .section__title {
  font-family: var(--font-body);
  line-height: 1.3;
}
.section__note {
  max-width: 40em;
  margin: 12px auto 0;
  color: var(--muted);
}

/* ---------- Category chips ---------- */
.chips-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(255, 186, 8, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.chips {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.7);
  color: #000000;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover {
  color: var(--text);
  border-color: var(--beige);
}
.chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}

/* ---------- Menu ---------- */
.menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cat {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cat--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  border: 2px solid var(--red);
}
.cat--featured .cat__media {
  flex: 0 0 42%;
  aspect-ratio: auto;
  min-height: 100%;
}
.cat--featured .cat__body {
  flex: 1;
}
.cat__media {
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
}
/* The photo fills a fixed-size frame, so cards don't grow while photos load
   (that would move the target of a category-bar jump mid-scroll). */
.cat__media {
  position: relative;
  overflow: hidden;
}
.cat__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the dishes sit a little below the middle of the photos */
  object-position: center 62%;
}
.cat__placeholder {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--pattern), linear-gradient(135deg, #ffd45c, #ffba08);
}
.cat__emoji {
  font-size: 3.6rem;
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}
.cat__icon {
  width: 34%;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25));
}
.cat--featured .cat__icon {
  width: 46%;
  max-width: 220px;
}
.cat--featured .cat__emoji {
  font-size: 6rem;
}
.cat__soon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat__body {
  padding: 20px 22px 14px;
}
.cat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.cat__title {
  margin: 0;
  margin-inline-end: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--beige);
}
[dir="rtl"] .cat__title {
  font-family: var(--font-body);
  font-size: 1.7rem;
}
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}
.badge--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge--ghost:hover {
  color: var(--text);
}
.cat--compact {
  grid-column: span 1;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.item:first-child {
  border-top: 0;
}
.item__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.item__name {
  font-weight: 700;
}
.item__emoji {
  margin-inline-end: 8px;
  font-size: 1.15rem;
}
.item__desc {
  font-size: 0.86rem;
  color: var(--muted);
}
.price {
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price small {
  color: var(--muted);
  font-weight: 600;
}
.price--sizes {
  display: flex;
  gap: 10px;
}
.price--sizes small {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.7rem;
}
.add-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
}
.add-btn:hover {
  transform: scale(1.08);
}
.add-btn:active {
  transform: scale(0.92);
}

/* ---------- Sauces ---------- */
.sauces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sauce {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--beige);
}
.sauce__bowl {
  width: 72px;
  height: 44px;
  border-radius: 6px 6px 40px 40px;
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.45), transparent 45%), var(--sauce);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.6);
}

/* ---------- Info ---------- */
.info {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: stretch;
}
.info__cards {
  display: grid;
  gap: 14px;
  align-content: start;
}
.info-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.info-card h3 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.info__map {
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.info__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--red);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer p {
  margin: 0;
}

/* ---------- Floating cart bar ---------- */
.cart-bar {
  position: fixed;
  inset-inline: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: none;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 10px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 800;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.cart-bar__count {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  color: var(--gold);
}
.cart-bar__total {
  margin-inline-start: auto;
  padding-inline-end: 10px;
}

/* ---------- Dialog ---------- */
.modal {
  width: min(460px, 100% - 24px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow-x: hidden;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}
.modal[open] {
  animation: pop 0.2s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.modal__form {
  display: grid;
  gap: 16px;
  padding: 20px;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal__head h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}
.modal__desc {
  margin: -8px 0 0;
  color: var(--muted);
}

/* ---------- Form fields ---------- */
.field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field__label {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field__error {
  display: none;
  font-size: 0.82rem;
  color: #c00000;
  font-weight: 700;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #c00000;
}
.field.has-error .field__error {
  display: block;
}
.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill,
.toggle__opt {
  position: relative;
}
.pill input,
.toggle__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.pill input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}
.pill input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
.pill input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.pill__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sauce);
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.qty output {
  min-width: 32px;
  text-align: center;
  font-weight: 800;
}
.qty__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-2);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty__btn:not(:disabled):active {
  transform: scale(0.88);
}
.qty__btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--on-gold);
}
.qty--small .qty__btn {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.toggle__opt span {
  display: grid;
  gap: 2px;
  justify-items: start;
  height: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
}
.toggle__icon {
  margin-bottom: 4px;
  color: var(--gold);
}
.toggle__opt small {
  color: var(--muted);
  font-size: 0.8rem;
}
.toggle__opt input:checked + span {
  border-color: var(--gold);
  background: rgba(208, 0, 0, 0.06);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.toggle__opt input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
}
.drawer.is-open {
  visibility: visible;
}
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer.is-open .drawer__backdrop {
  opacity: 1;
}
.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-inline-start: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
[dir="rtl"] .drawer__panel {
  transform: translateX(-100%);
}
.drawer.is-open .drawer__panel {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 {
  margin: 0;
  font-size: 1.3rem;
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.drawer__foot {
  display: grid;
  gap: 12px;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.cart-empty {
  margin: 40px 0;
  text-align: center;
  color: var(--muted);
}
.cart-lines {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-line__text {
  flex: 1;
  display: grid;
  min-width: 0;
}
.cart-line__text small {
  color: var(--muted);
}
.cart-line__price {
  font-weight: 800;
  color: var(--gold);
}
.checkout {
  display: grid;
  gap: 14px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted);
}
.sum-row + .sum-row {
  margin-top: -8px;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1rem;
}
.total strong {
  font-size: 1.5rem;
  color: var(--gold);
}
.closed-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(208, 0, 0, 0.2);
  border: 1px solid rgba(208, 0, 0, 0.5);
  font-size: 0.88rem;
}

/* ---------- Delivery map ---------- */
.delivery-map {
  height: 240px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  z-index: 0;
}
.delivery-map .leaflet-control-attribution {
  font-size: 9px;
}
.map-pin {
  position: absolute;
  inset: 0;
  background: var(--whatsapp);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  width: 26px;
  height: 26px;
  transform: rotate(-45deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}
.map-pin.is-out {
  background: #e5484d;
}
.geo-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.6);
  color: #0a7a3a;
}
.geo-status.is-error {
  background: rgba(229, 72, 77, 0.14);
  border-color: rgba(208, 0, 0, 0.5);
  color: #b00000;
}
.field.has-error .delivery-map {
  border-color: #c00000;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Emoji spree ---------- */
.spree--img {
  width: 2.6rem;
  height: auto;
}
.spree {
  position: fixed;
  z-index: 90;
  font-size: 1.9rem;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

/* ---------- Rolling numbers ---------- */
.roll {
  display: inline-flex;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.roll__cell {
  position: relative;
  display: inline-block;
  overflow: hidden;
  /* room for the blur without clipping the glyph */
  padding-block: 0.08em;
  margin-block: -0.08em;
}
.roll__ch {
  display: inline-block;
}
.roll__ch--out {
  position: absolute;
  inset-inline-start: 0;
  top: 0.08em;
}
.money {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

/* ---------- Floating label inputs ---------- */
.float {
  position: relative;
  display: block;
}
.field .float__input {
  width: 100%;
  padding: 18px 16px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field .float__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(208, 0, 0, 0.12);
}
.float__input::placeholder {
  color: transparent;
  transition: color 0.2s ease;
}
.float__input:focus::placeholder {
  color: rgba(168, 168, 168, 0.6);
}
.float__label {
  position: absolute;
  top: 15px;
  inset-inline-start: 12px;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), top 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
    color 0.2s ease, background-color 0.2s ease;
}
[dir="rtl"] .float__label {
  transform-origin: right center;
}
/* Focused or filled: the label lifts onto the border. */
.float__input:focus + .float__label,
.float__input:not(:placeholder-shown) + .float__label {
  top: -10px;
  transform: scale(0.82);
  background: #ffffff;
}
.float__input:focus + .float__label {
  color: var(--gold);
}
.field.has-error .float__input {
  border-color: #c00000;
}
.field.has-error .float__label {
  color: #c00000;
}
input.float__input[type="tel"] {
  direction: ltr;
}
[dir="rtl"] input.float__input[type="tel"] {
  text-align: right;
}

/* ---------- Intro animation ---------- */
/* Layer boxes are in a 1000×1000 stage (values are tenths of a percent),
   matching the finished logo; app.js animates them in from the start pose. */
body.is-loading {
  overflow: hidden;
}
body.is-loading .brand img {
  opacity: 0;
}
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.splash__bg {
  position: absolute;
  inset: 0;
  background: #ffba08;
}
.intro {
  position: relative;
  width: min(80vw, 58vh, 440px);
  aspect-ratio: 1;
  transform-origin: 0 0;
}
.intro__part {
  position: absolute;
  height: auto;
  max-width: none;
  opacity: 0;
  will-change: transform;
}
.intro__hatgroup {
  left: 21.125%;
  top: 1.7%;
  width: 59.35%;
  aspect-ratio: 429 / 355;
}
/* The untouched hat is shown, except while the tassel swings: then the hat
   without its tassel, the swinging tassel and the fixed knob take over. */
.intro__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
}
.intro__hat,
.intro__tassel,
.intro__knob {
  visibility: hidden;
}
.intro.is-wiggling .intro__hat,
.intro.is-wiggling .intro__tassel,
.intro.is-wiggling .intro__knob {
  visibility: visible;
}
.intro.is-wiggling .intro__hat-full {
  visibility: hidden;
}
.intro__tassel {
  /* just under the knob, where the tassel hangs from */
  transform-origin: 36% 10.8%;
}
.intro__plate {
  left: 2.25%;
  top: 45.6%;
  width: 95.5%;
}
.intro__moustache {
  left: 17.825%;
  top: 79.3%;
  width: 64.35%;
}
.intro__spark {
  position: absolute;
  width: 3%;
  height: 0.9%;
  border-radius: 99px;
  background: #000000;
  pointer-events: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Heading fade (js/vendor/headings.js) ----------
   The engine lays words out in a wrapping flex row; a <br> in a heading
   becomes a .te-break word, which takes a full row of zero height. */
/* inline hosts (links, labels, spans in a sentence) keep flowing inline */
.te-inline > .te-root {
  display: inline-flex !important;
}
.te-root .line-word:has(.te-break) {
  flex-basis: 100%;
  height: 0;
  overflow: hidden;
}

/* ---------- Moving gradient buttons ----------
   A thin band around each button carries a light trail that circles it
   (angle --mg-a, advanced by app.js); on hover/focus the fill darkens, the
   label takes the accent colour and the whole band lights up. Colours come
   from the --mg-* tokens below, so each button type and theme sets its own. */
:root {
  --mg-fill: var(--red);
  --mg-hover: #8f0000;
  --mg-text: #ffffff;
  --mg-hover-text: var(--yellow);
  --mg-trail: #ff6a00;
  --mg-head: var(--yellow);
  --mg-band: rgba(0, 0, 0, 0.18);
  --mg-w: 2.5px;
  --mg-ease: cubic-bezier(0.44, 0, 0.56, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --mg-hover: #000000;
    --mg-band: rgba(255, 255, 255, 0.16);
  }
}
:root[data-theme="dark"] {
  --mg-hover: #000000;
  --mg-band: rgba(255, 255, 255, 0.16);
}
:root[data-theme="light"] {
  --mg-hover: #8f0000;
  --mg-band: rgba(0, 0, 0, 0.18);
}

.btn,
.add-btn,
.lang-btn {
  position: relative;
}
.btn,
.add-btn,
.cart-btn,
.lang-btn,
.cart-bar {
  isolation: isolate;
  border-color: transparent;
  background: var(--mg-fill);
  color: var(--mg-text);
  transition: background-color 0.4s var(--mg-ease), color 0.4s var(--mg-ease), transform 0.15s ease;
}
:is(.btn, .add-btn, .cart-btn, .lang-btn, .cart-bar):is(:hover, :focus-visible):not(:disabled) {
  background: var(--mg-hover);
  color: var(--mg-hover-text);
}
:is(.btn, .add-btn, .cart-btn, .lang-btn, .cart-bar)::before,
:is(.btn, .add-btn, .cart-btn, .lang-btn, .cart-bar)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-sizing: border-box;
  padding: var(--mg-w);
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* two comets, each fading from the trail colour into a bright head */
:is(.btn, .add-btn, .cart-btn, .lang-btn, .cart-bar)::before {
  background: repeating-conic-gradient(
      from var(--mg-a, 0deg),
      transparent 0deg,
      var(--mg-trail) 99deg,
      var(--mg-head) 180deg
    ),
    var(--mg-band);
}
:is(.btn, .add-btn, .cart-btn, .lang-btn, .cart-bar)::after {
  background: conic-gradient(var(--mg-trail), var(--mg-head), var(--mg-trail), var(--mg-head), var(--mg-trail));
  opacity: 0;
  transition: opacity 0.4s var(--mg-ease);
}
:is(.btn, .add-btn, .cart-btn, .lang-btn, .cart-bar):is(:hover, :focus-visible):not(:disabled)::after {
  opacity: 1;
}
.add-btn {
  --mg-w: 2px;
}

/* per button type */
.btn--whatsapp {
  --mg-fill: var(--whatsapp);
  --mg-hover: #128c4a;
  --mg-text: #06301a;
  --mg-hover-text: #ffffff;
  --mg-trail: #0b6b39;
  --mg-head: #eaffe9;
}
/* on the dark hero */
.btn--outline {
  --mg-fill: rgba(0, 0, 0, 0.35);
  --mg-hover: rgba(0, 0, 0, 0.78);
  --mg-text: #ffffff;
  --mg-band: rgba(255, 255, 255, 0.28);
}
/* on light panels (cart) */
.drawer .btn--outline {
  --mg-fill: #ffffff;
  --mg-hover: #000000;
  --mg-text: #000000;
  --mg-band: rgba(0, 0, 0, 0.22);
  --mg-trail: #ff6a00;
  --mg-head: var(--red);
}
/* on the yellow header: transparent, so the trail must not be yellow */
.lang-btn {
  --mg-fill: transparent;
  --mg-hover: #000000;
  --mg-text: #000000;
  --mg-band: rgba(0, 0, 0, 0.55);
  --mg-trail: #ff6a00;
  --mg-head: var(--red);
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .header__inner {
    grid-template-columns: auto 1fr;
  }
  .nav,
  .header__order {
    display: none;
  }
}

@media (max-width: 900px) {
  .menu {
    grid-template-columns: 1fr;
  }
  .cat--featured {
    flex-direction: column;
  }
  .cat--featured .cat__media {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
  .info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
  }
  .brand img {
    width: 54px;
    height: auto;
  }
  .hero {
    min-height: 0;
    align-items: flex-start;
    padding: calc(var(--header-h) + 8px) 0 88px;
  }
  /* On phones the video fills the hero behind the text. */
  .hero:not(.has-photo) .hero__inner {
    padding-top: 30vh;
  }
  .hero__bg::after,
  [dir="rtl"] .hero__bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 25%, rgba(0, 0, 0, 0.8) 55%, rgba(0, 0, 0, 0.96) 100%);
  }
  .status {
    gap: 4px 8px;
    padding: 6px 12px;
    font-size: 0.76rem;
  }
  .hero__title {
    margin-top: 14px;
  }
  .hero__lead {
    font-size: 1rem;
  }
  .hero__cta .btn {
    width: 100%;
  }
  .bands {
    height: 150px;
    margin-top: -56px;
  }
  .band--gold {
    top: 26px;
  }
  .band--dark {
    top: 80px;
  }
  .band__item {
    padding: 9px 0;
  }
  .band__item::after {
    margin-inline: 20px;
  }
  .section {
    padding: 52px 0;
  }
  .cat__body {
    padding: 16px 16px 10px;
  }
  .cat__media {
    aspect-ratio: 16 / 6;
  }
  .cat__emoji {
    font-size: 2.8rem;
  }
  .item {
    gap: 10px;
  }
  .price--sizes {
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
  }
  .cart-bar:not([hidden]) {
    display: flex;
  }
  .ig-fab {
    width: 52px;
    height: 52px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    inset-inline-end: 16px;
  }
  body.has-cart .ig-fab {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Big stepper in the options dialog */
.qty--stepper {
  gap: 10px;
  padding: 6px;
  background: var(--surface-2);
}
.qty--stepper .qty__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transition: transform 0.12s ease, background-color 0.2s ease;
}
.qty--stepper output {
  min-width: 56px;
  font-size: 1.6rem;
  font-weight: 800;
  justify-content: center;
}
.qty output.roll {
  justify-content: center;
}
