/* ==========================================================================
   La Madeleine Pâtisserie — styles
   Brand: teal #36818F · white #FFFFFF · soft gray #F9F9F9 · charcoal #1A1A1A
   Supports English (left-to-right) and Arabic (right-to-left).
   ========================================================================== */

:root {
  --teal: #36818F;
  --teal-deep: #2A6B77;
  --teal-wash: #EAF3F4;
  --white: #FFFFFF;
  --mist: #F9F9F9;
  --ink: #1A1A1A;
  --muted: #5A6B6E;
  --line: #DCE6E7;
  --leader: #A9BEC2;
  --on-teal-soft: rgba(255, 255, 255, 0.84);
  --on-teal-line: rgba(255, 255, 255, 0.28);

  --font-display: "Montserrat", "Avenir Next", "Tajawal", "Segoe UI", sans-serif;
  --font-script: "Sacramento", "Great Vibes", "Segoe Script", cursive;
  --font-body: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --rail-h: 65px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

/* Arabic text: its own typeface, and never letter-spaced or uppercased (that breaks the joined letters) */
[lang="ar"] { font-family: var(--font-ar); }
html[lang="ar"] body { font-family: var(--font-ar); }
:lang(ar) { letter-spacing: 0 !important; text-transform: none !important; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.site-header :focus-visible,
.hero__copy :focus-visible,
.signatures :focus-visible,
.rail :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

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

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--teal-deep);
  padding: 12px 18px; font: 600 12px/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type primitives ---------- */
.kicker {
  margin: 0 0 4px;
  font: 400 clamp(34px, 3vw, 44px)/1 var(--font-script);
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .kicker { text-align: right; }

.h2 {
  margin: 0;
  font: 600 clamp(22px, 2.3vw, 32px)/1.2 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 30px;
  border: 1px solid var(--white);
  font: 600 11.5px/1 var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--light { background: var(--white); color: var(--teal-deep); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--line { background: transparent; color: var(--white); border-color: var(--on-teal-soft); }
.btn--line:hover { background: var(--white); color: var(--teal-deep); border-color: var(--white); }
.btn--solid { background: var(--teal); color: var(--white); outline: 1px solid var(--teal); }
.btn--solid:hover { background: var(--teal-deep); outline-color: var(--teal-deep); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--teal);
  color: var(--white);
  border-bottom: 1px solid var(--on-teal-line);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.nav--start { grid-column: 1; }
.brand { grid-column: 2; justify-self: center; }
.brand img { height: clamp(92px, 9vw, 124px); width: auto; }

.header__end {
  grid-column: 3;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(22px, 2.8vw, 40px);
}

.nav { display: flex; gap: clamp(22px, 2.8vw, 44px); }
.nav--end { justify-content: flex-end; }

.nav a {
  position: relative;
  padding: 10px 0;
  font: 500 11.5px/1 var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.25s;
}
.nav a::after {
  content: "";
  position: absolute; inset-inline-start: 0; inset-inline-end: 0.28em; bottom: 2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Order now: shiny call to action with a two-option menu ---------- */
.order { position: relative; }
/* In the top banner, under the two buttons: about 1.5× their size */
.order--hero { width: 100%; max-width: 380px; margin-top: 16px; }

.order-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%;
  height: 66px;
  padding: 0 28px;
  border: 0;
  background: linear-gradient(110deg, #FFFFFF 0%, #FFFFFF 38%, #C9E9EE 50%, #FFFFFF 62%, #FFFFFF 100%);
  background-size: 260% 100%;
  color: var(--teal-deep);
  font: 700 13.5px/1 var(--font-display);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.55);
  animation: order-shine 3.2s ease-in-out infinite, order-glow 3.2s ease-out infinite;
  transition: transform 0.25s var(--ease);
}
.order-btn:hover { transform: translateY(-2px); }
.order-btn__icon { width: 21px; height: 21px; flex: none; }
.order-btn__chev { width: 12px; height: 12px; flex: none; transition: transform 0.3s var(--ease); }
.order.is-open .order-btn { animation-play-state: paused; }
.order.is-open .order-btn__chev { transform: rotate(180deg); }

@keyframes order-shine {
  0% { background-position: 100% 0; }
  55%, 100% { background-position: 0% 0; }
}
@keyframes order-glow {
  0% { box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(255, 255, 255, 0.65); }
  65%, 100% { box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.55), 0 0 0 16px rgba(255, 255, 255, 0); }
}

.order-menu {
  position: absolute; top: calc(100% + 14px); inset-inline-start: 0; z-index: 50;
  width: 100%;
  min-width: min(330px, calc(100vw - 32px));
  display: grid; gap: 4px;
  padding: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(26, 26, 26, 0.05);
  animation: order-menu-in 0.28s var(--ease) both;
}
.order-menu::before {
  content: "";
  position: absolute; top: -6px; inset-inline-start: calc(50% - 6px);
  width: 12px; height: 12px;
  background: var(--white);
  transform: rotate(45deg);
}
@keyframes order-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.order-menu :focus-visible { outline-color: var(--teal); outline-offset: -2px; }

.order-option {
  position: relative;
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px;
  transition: background-color 0.2s;
}
.order-option:hover { background: var(--teal-wash); }
.order-option__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--white);
}
.order-option__icon svg { width: 23px; height: 23px; }
.order-option__icon--wa { background: #25D366; }
.order-option__icon--call { background: var(--teal); }
.order-option__title {
  display: block;
  font: 600 12px/1.2 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.order-option__sub { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.order-option__sub [dir="ltr"] { white-space: nowrap; }
.order-option__go { width: 16px; height: 16px; color: var(--teal); transition: transform 0.3s var(--ease); }
.order-option:hover .order-option__go { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--teal);
  color: var(--white);
}

.hero__copy {
  width: 100%;
  max-width: calc(var(--container) / 2);
  margin-inline-start: auto;
  padding: clamp(56px, 7vw, 108px) var(--gutter) clamp(52px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__copy .kicker { font-size: clamp(38px, 3.4vw, 50px); margin-bottom: 10px; }

.hero__title {
  margin: 0;
  font: 600 clamp(30px, 3.4vw, 48px)/1.18 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 42ch;
  margin: 26px 0 0;
  color: var(--on-teal-soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__quick {
  list-style: none;
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--on-teal-line);
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px;
}
.hero__quick li { display: flex; align-items: center; }
.hero__quick li + li::before {
  content: "";
  width: 1px; height: 10px; margin: 0 16px;
  background: var(--on-teal-line);
}
.hero__quick a {
  font: 500 10.5px/1 var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.25s;
}
.hero__quick a:hover { opacity: 1; }

.hero__media {
  position: relative;
  margin: 0;
  min-height: clamp(460px, 44vw, 660px);
  overflow: hidden;
  background: var(--teal-deep);
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: settle 1.8s var(--ease) both;
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ==========================================================================
   Section head (shared)
   ========================================================================== */
.section { padding: clamp(72px, 9vw, 124px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.section-head .kicker { color: var(--teal); }
.section-head--on-teal .kicker { color: var(--white); }

.section-head__rule {
  flex: 1;
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 8px;
  color: var(--teal);
}
.section-head--on-teal .section-head__rule { color: var(--white); }
.section-head__rule::before {
  content: "";
  flex: 1; height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.section-head__rule img { width: 52px; height: auto; flex: none; }

/* ==========================================================================
   Collections
   ========================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px);
}

.tiles[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles[data-cols="3"] .tile__img { aspect-ratio: 5 / 4; }

.tile { display: flex; flex-direction: column; gap: 18px; }

.tile__frame {
  display: block;
  padding: 8px;
  border: 1px solid var(--teal);
  transition: border-color 0.3s, padding 0.4s var(--ease);
}
.tile__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--teal-wash); }
.tile__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.tile:hover .tile__img img { transform: scale(1.05); }
.tile:hover .tile__frame { border-color: var(--teal-deep); padding: 5px; }

.tile__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 12px;
}
.tile__name {
  font: 600 12.5px/1.35 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.tile__ar { font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.3; }

.tile__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin-top: -8px;
  font-size: 13.5px;
  color: var(--muted);
}
.tile__meta b { font-weight: 600; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.tile__sep { width: 18px; height: 1px; background: var(--leader); }

/* ==========================================================================
   Signatures
   ========================================================================== */
.signatures { background: var(--teal); color: var(--white); }

.sig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.sig {
  display: flex; flex-direction: column;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s, background-color 0.3s;
}
.sig:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.05); }

.sig__img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--teal-deep); }
.sig__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.sig:hover .sig__img img { transform: scale(1.05); }

.sig__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px 10px 8px; }

.sig__label {
  font: 500 10px/1.3 var(--font-display);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-teal-soft);
}
.sig__name {
  margin-top: 4px;
  font: 600 14.5px/1.35 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sig__ar { font-size: 16px; color: var(--on-teal-soft); line-height: 1.4; }

.sig__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--on-teal-line);
  transform: translateY(12px);
}
.sig__body::after { content: ""; height: 12px; }
.sig__price { font: 600 16px/1 var(--font-display); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.sig__go { width: 28px; transition: transform 0.4s var(--ease); }
.sig__go svg { display: block; width: 28px; height: 10px; }
.sig:hover .sig__go { transform: translateX(6px); }

/* ==========================================================================
   Rail: sticky bar with logo, categories, search and language
   ========================================================================== */
.rail {
  position: sticky; top: 0; z-index: 40;
  background: var(--teal);
  color: var(--white);
  border-top: 1px solid var(--on-teal-line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px -18px rgba(26, 26, 26, 0.45);
}

.rail__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 18px;
  min-height: 64px;
}

.rail__mono {
  flex: none;
  align-self: stretch;
  display: flex; align-items: center;
  padding-inline-end: 20px;
  border-inline-end: 1px solid var(--on-teal-line);
  opacity: 0.95;
  transition: opacity 0.25s;
}
.rail__mono:hover { opacity: 1; }
.rail__mono img { width: 46px; height: auto; }

.rail__links {
  position: relative;
  flex: 1; min-width: 0;
  align-self: stretch;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail__links::-webkit-scrollbar { display: none; }
.rail__links.fade-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
}
html[dir="rtl"] .rail__links.fade-end {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 44px), transparent);
}

.rail__link {
  position: relative;
  flex: none;
  display: flex; align-items: center;
  padding: 0 12px;
  font: 500 10.5px/1 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.25s;
}
.rail__link::after {
  content: "";
  position: absolute; inset-inline-start: 12px; inset-inline-end: calc(12px + 0.22em); bottom: 18px;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.rail__link:hover, .rail__link.is-active { opacity: 1; }
.rail__link.is-active::after { transform: scaleX(1); }

.rail__tools { flex: none; display: flex; align-items: center; gap: 10px; }

.rail__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.rail__icon svg { width: 17px; height: 17px; }
.rail__icon:hover { background: var(--white); color: var(--teal-deep); border-color: var(--white); }

/* Language switch: EN | عربي */
.lang-switch {
  display: inline-flex; align-items: stretch; gap: 2px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.lang-switch button {
  min-width: 44px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: 600 10.5px/1 var(--font-display);
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.lang-switch button[lang="ar"] { font: 500 14.5px/1 var(--font-ar); padding-bottom: 2px; }
.lang-switch button:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--teal-deep); cursor: default; }

/* Search: opens in place of the category links */
.search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  height: 40px;
  padding-inline: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  animation: search-in 0.35s var(--ease) both;
  transition: border-color 0.25s;
}
@keyframes search-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.search:focus-within { border-color: var(--white); }
.search > svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.search input {
  flex: 1; min-width: 0;
  height: 100%;
  padding: 0; border: 0; outline: none;
  background: transparent;
  color: var(--white);
  font: 400 15px/1.4 var(--font-body);
}
.search input::placeholder { color: rgba(255, 255, 255, 0.72); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__count {
  flex: none;
  font: 500 10px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-teal-soft);
  white-space: nowrap;
}
.search__close {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  padding: 0; border: 0;
  background: transparent;
  color: var(--white);
  opacity: 0.85;
  cursor: pointer;
}
.search__close:hover { opacity: 1; }
.search__close svg { width: 14px; height: 14px; }

/* ==========================================================================
   Menu categories
   ========================================================================== */
.menu,
.section { scroll-margin-top: var(--rail-h); }

.cat {
  --section-bg: var(--white);
  background: var(--section-bg);
  padding: clamp(72px, 8vw, 120px) 0;
  scroll-margin-top: var(--rail-h);
}
.cat--mist { --section-bg: var(--mist); }

.group { scroll-margin-top: calc(var(--rail-h) + 24px); }

.cat__inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(48px, 6.5vw, 104px);
}

.cat__sticky { position: sticky; top: calc(var(--rail-h) + 36px); }

.cat__kicker { color: var(--teal); }

.cat__title {
  margin: 2px 0 0;
  font: 600 clamp(24px, 2.4vw, 34px)/1.15 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-wrap: balance;
}

.cat__ar { margin: 8px 0 0; font-size: 21px; font-weight: 500; color: var(--muted); line-height: 1.4; }

.cat__meta {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.cat__meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.frame {
  position: relative;
  margin: 32px 0 0;
  padding: 10px;
  border: 1px solid var(--teal);
}
.frame--inset { margin-bottom: 30px; }
.frame__main { display: block; aspect-ratio: 1; overflow: hidden; background: var(--teal-wash); }
.frame__main img { width: 100%; height: 100%; object-fit: cover; }
.frame__inset {
  position: absolute;
  inset-inline-end: -30px; bottom: -30px;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--section-bg);
  outline: 1px solid var(--teal);
}

@media (min-height: 900px) {
  .frame__main { aspect-ratio: 4 / 5; }
}

.cat__body { display: grid; align-content: start; gap: clamp(52px, 5vw, 76px); }

/* Group title: line — name — line, echoing the logo lockup */
.group__title {
  display: flex; align-items: center; gap: 20px;
  margin: 0 0 20px;
  color: var(--teal-deep);
}
.group__title::before,
.group__title::after {
  content: "";
  flex: 1; height: 1px;
  background: var(--teal);
  opacity: 0.5;
}
.group__label {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 2px 14px;
  text-align: center;
  font: 600 12px/1.4 var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.group__alt { font-size: 15px; font-weight: 500; color: var(--muted); }
.group__alt[lang="en"] { font-size: 10.5px; letter-spacing: 0.24em; }

/* Items */
.items {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 4.5vw, 68px);
}

.item {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 0;
}

.item__text { flex: 0 1 auto; min-width: 0; }

.item__name {
  margin: 0;
  font: 500 15.5px/1.4 var(--font-body);
  color: var(--ink);
}

.item__alt {
  margin: 3px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.item__alt [lang="ar"] { font-size: 15px; }

.item__leader {
  flex: 1 1 24px;
  min-width: 24px;
  position: relative; top: -0.3em;
  border-bottom: 1px dotted var(--leader);
}

.item__price {
  flex: none;
  font: 600 15px/1 var(--font-display);
  letter-spacing: 0.03em;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}

.chip {
  display: inline-block;
  padding: 4px 7px;
  background: var(--teal-wash);
  color: var(--teal-deep);
  font: 600 9.5px/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* Cakes table */
.table-scroll { overflow-x: auto; }

.cake-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.cake-table thead th {
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--teal);
  text-align: start;
  vertical-align: bottom;
  font: 600 10.5px/1.3 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.cake-table thead th span { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--muted); }
.cake-table .num { text-align: end; }

.cake-table tbody tr { border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.cake-table tbody tr:hover { background: var(--teal-wash); }
.cake-table tbody th,
.cake-table td { padding: 19px 16px; text-align: start; font-weight: 400; }
.cake-table td.num {
  text-align: end;
  white-space: nowrap;
  font: 600 15px/1 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--teal-deep);
}

.cake-size {
  font: 600 13.5px/1 var(--font-display);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.cake-unit { margin-inline-start: 6px; font-size: 12px; color: var(--muted); }

.cake-serves__wrap { display: flex; align-items: center; gap: 12px; }
.cake-serves__n { min-width: 2ch; font: 600 14px/1 var(--font-display); color: var(--ink); }
.cake-serves__bar { position: relative; width: 84px; height: 3px; background: var(--line); }
.cake-serves__bar i { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; background: var(--teal); }

.na { color: var(--leader); font-weight: 400; }

/* Empty search state */
.empty {
  display: grid; justify-items: center; gap: 10px;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  text-align: center;
  background: var(--white);
}
.empty img { width: 64px; margin-bottom: 14px; }
.empty__title {
  margin: 0;
  font: 600 16px/1.4 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.empty__text { margin: 0 0 18px; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--teal);
  color: var(--white);
  padding: clamp(56px, 7vw, 92px) 0 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.footer__logo img { height: clamp(100px, 10vw, 130px); width: auto; }

.footer__links {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 16px clamp(24px, 3vw, 40px);
}
.footer__links a {
  font: 500 10.5px/1.4 var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.25s;
}
.footer__links a:hover { opacity: 1; }

.footer__side { display: grid; justify-items: end; gap: 26px; }

.social {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.25s;
}
.social:hover { opacity: 1; }
.social__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.social__icon svg { width: 18px; height: 18px; }
.social:hover .social__icon { background: var(--white); color: var(--teal-deep); border-color: var(--white); }
.social__handle { font: 500 13.5px/1 var(--font-body); letter-spacing: 0.02em; }

.footer__credit {
  margin: 22px 0 0;
  text-align: center;
  font: 400 12.5px/1.5 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--on-teal-soft);
}

.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--on-teal-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: 13px;
  color: var(--on-teal-soft);
}
.footer__top-link { transition: color 0.25s; }
.footer__top-link:hover { color: var(--white); }

.footer__end { display: flex; align-items: center; gap: 18px; }

/* Discreet admin entry */
.admin-link {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  color: var(--white);
  opacity: 0.3;
  transition: opacity 0.25s;
}
.admin-link svg { width: 11px; height: 11px; }
.admin-link:hover, .admin-link:focus-visible { opacity: 0.9; }

/* Shown only in the browser where the admin saved changes */
.preview-bar {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100% - 32px);
  padding: 10px 14px 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5);
}
.preview-bar a {
  font: 600 10.5px/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ED3DC;
  white-space: nowrap;
}

/* ==========================================================================
   Arabic: larger sizes (Arabic reads small at Latin small-caps sizes)
   ========================================================================== */
html[lang="ar"] .nav a,
html[lang="ar"] .hero__quick a,
html[lang="ar"] .rail__link,
html[lang="ar"] .footer__links a { font-size: 14.5px; font-weight: 500; }
html[lang="ar"] .btn { font-size: 15px; font-weight: 600; padding-block: 16px; }
html[lang="ar"] .skip-link { font-size: 14px; }
html[lang="ar"] .order-btn { font-size: 18px; font-weight: 700; }
html[lang="ar"] .order-option__title { font-size: 17px; font-weight: 700; }
html[lang="ar"] .order-option__sub { font-size: 14px; }

html[lang="ar"] .hero__title { font-size: clamp(34px, 3.8vw, 54px); font-weight: 700; line-height: 1.4; }
html[lang="ar"] .hero__lead { font-size: 19px; line-height: 1.85; }
html[lang="ar"] .h2 { font-size: clamp(27px, 2.7vw, 38px); font-weight: 700; }

html[lang="ar"] .tile__name { font-size: 18px; font-weight: 700; }
html[lang="ar"] .tile__meta { font-size: 15px; }
html[lang="ar"] .sig__label { font-size: 14px; }
html[lang="ar"] .sig__name { font-size: 20px; font-weight: 700; }

html[lang="ar"] .cat__title { font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1.3; }
html[lang="ar"] .cat__meta { font-size: 15.5px; }
html[lang="ar"] .group__label { font-size: 19px; font-weight: 700; }
html[lang="ar"] .item__name { font-size: 18px; line-height: 1.5; }
html[lang="ar"] .chip { font-size: 12.5px; font-weight: 500; padding: 3px 8px; }
html[lang="ar"] .item__price { font-size: 16px; }

html[lang="ar"] .cake-table thead th { font-size: 15px; }
html[lang="ar"] .cake-size { font-size: 15.5px; }
html[lang="ar"] .cake-unit { font-size: 13.5px; }

html[lang="ar"] .search input { font-size: 16px; }
html[lang="ar"] .search__count { font-size: 13.5px; }
html[lang="ar"] .empty__title { font-size: 20px; font-weight: 700; }
html[lang="ar"] .footer__bottom,
html[lang="ar"] .preview-bar { font-size: 14px; }
html[lang="ar"] .preview-bar a { font-size: 13.5px; }

/* Right-to-left details */
html[dir="rtl"] .nav a::after,
html[dir="rtl"] .rail__link::after { transform-origin: right; }
html[dir="rtl"] .rail__link::after { inset-inline-end: 12px; }
html[dir="rtl"] .nav a::after { inset-inline-end: 0; }
html[dir="rtl"] .sig__go svg { transform: scaleX(-1); }
html[dir="rtl"] .sig:hover .sig__go { transform: translateX(-6px); }
html[dir="rtl"] .order-option__go { transform: scaleX(-1); }
html[dir="rtl"] .order-option:hover .order-option__go { transform: scaleX(-1) translateX(3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .items { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .site-header__inner { grid-template-columns: 1fr; justify-items: center; padding-block: 14px; }
  .brand { grid-column: 1; justify-self: center; }
  .nav, .header__end { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero__copy { max-width: none; margin: 0; }

  .tiles, .tiles[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .rail__inner { gap: 10px; min-height: 58px; }
  .rail__mono { padding-inline-end: 12px; }
  .rail__mono img { width: 38px; }
  .rail__link { padding: 0 11px; }
  .rail__link::after { inset-inline-start: 11px; inset-inline-end: calc(11px + 0.22em); bottom: 16px; }
  html[dir="rtl"] .rail__link::after { inset-inline-end: 11px; }
  .rail__icon { width: 36px; height: 36px; }
  .lang-switch { height: 36px; }
  .lang-switch button { min-width: 38px; padding: 0 9px; }

  .cat__inner { grid-template-columns: 1fr; }
  .cat__sticky {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
    align-items: end;
    gap: 40px;
  }
  .frame { margin: 0; }
  .frame--inset { margin: 0 0 30px; margin-inline-end: 30px; }
  .frame__main { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .rail__mono, .rail__links { min-height: 52px; }
  .rail__link::after { bottom: 14px; }
  .lang-switch { height: 34px; }
  .lang-switch button { min-width: 34px; padding: 0 8px; }
  .rail__inner .rail__icon { display: none; }

  /* With search on: categories on the first row, search field and language switch on the second */
  .rail--search .rail__inner { flex-wrap: wrap; row-gap: 0; }
  .rail--search .rail__links { flex: 1 1 calc(100% - 70px); }
  .rail--search .rail__inner .search[hidden] { display: flex !important; }
  .rail--search .rail__inner .rail__links[hidden] { display: flex !important; }
  .rail--search .search { order: 3; flex: 1 1 0; height: 38px; margin-bottom: 10px; animation: none; }
  .rail--search .search__close { display: none; }
  .rail--search .rail__tools { order: 4; margin-bottom: 10px; }
}

@media (max-width: 640px) {
  .brand img { height: 78px; }
  .order--hero { max-width: none; }
  .order-btn { height: 62px; font-size: 12.5px; letter-spacing: 0.22em; }
  html[lang="ar"] .order-btn { font-size: 17px; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__quick { gap: 14px 22px; }
  .hero__quick li + li::before { display: none; }

  .section-head { flex-direction: column; align-items: stretch; gap: 16px; }

  .tiles { gap: 32px 14px; }
  .tile__name { font-size: 11px; letter-spacing: 0.16em; }
  .tile__meta { font-size: 12.5px; }
  .tile__sep { display: none; }

  .sig__name { font-size: 12.5px; letter-spacing: 0.1em; }
  .sig__price { font-size: 14px; }
  .sig__go { display: none; }

  html[lang="ar"] .tile__name { font-size: 16px; }
  html[lang="ar"] .sig__name { font-size: 17px; }

  .cat__sticky { grid-template-columns: 1fr; gap: 28px; }
  .frame--inset { margin: 0 0 26px; margin-inline-end: 18px; }
  .frame__inset { inset-inline-end: -18px; bottom: -26px; width: 36%; }

  .item__name { font-size: 15px; }
  .item__price { font-size: 14px; }
  html[lang="ar"] .item__name { font-size: 17px; }

  /* Cakes table becomes stacked rows */
  .cake-table, .cake-table tbody { display: block; min-width: 0; }
  .cake-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cake-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 20px 4px;
  }
  .cake-table tbody th, .cake-table td { padding: 0; }
  .cake-table tbody th { grid-column: 1 / 3; align-self: center; }
  .cake-serves { grid-column: 3; justify-self: end; align-self: center; display: flex; align-items: center; }
  .cake-serves__bar { width: 40px; }
  .cake-serves::before,
  .cake-table td.num::before {
    content: attr(data-label);
    font: 500 10px/1 var(--font-display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .cake-serves::before { margin-inline-end: 8px; }
  .cake-table td.num { text-align: start; font-size: 14px; }
  .cake-table td.num::before { display: block; margin-bottom: 8px; }
  html[lang="ar"] .cake-serves::before,
  html[lang="ar"] .cake-table td.num::before { font-size: 13px; letter-spacing: 0; text-transform: none; }

  .footer__top { grid-template-columns: 1fr; justify-items: center; }
  .footer__links { justify-content: center; }
  .footer__side { justify-items: center; }
  .footer__bottom { justify-content: center; }
}

@media (max-width: 420px) {
  .sig-grid { grid-template-columns: 1fr; }
  .sig__name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
