/* Restaurant ordering site — starter styles.
   BRAND TOKENS: the colors below are fallbacks; js/config.js (brand.colors / brand.pattern) overrides them
   before first paint. Fonts are set here and in the Google Fonts <link data-fonts> of every page.
   Signature devices: an accent "ribbon" painted with the brand pattern, and soft rings behind products.
   Redraw the pattern from the client's own materials (packaging, menu borders, logo geometry). */

:root {
  --ink: #141414;
  --ink-2: #2a2826;
  --paper: #ffffff;
  --mist: #efeeec;
  --soft: #f3e0dc;
  --accent: #b4705f;
  --accent-ink: #8a4b3d;
  --muted: #6d6966;
  --line: rgba(20, 20, 20, 0.1);
  --ok: #2f7d4f;
  --bad: #b3261e;

  /* Moré brand (brand/BRAND.md): body is Candara and headlines are Emblema, neither free for the web yet.
     Rosario and Josefin Sans are the closest free stand-ins; swap the names here once licensed files arrive. */
  --f-latin: 'Rosario', Candara, system-ui, sans-serif;
  --f-head: 'Josefin Sans', 'Rosario', system-ui, sans-serif;
  --f-ar: 'Alexandria', 'Rosario', system-ui, sans-serif;
  --olive: #71663e;
  --coffee: #a99171;
  --latte: #dec48f;
  --cream: #f9e6c8;
  --f: var(--f-latin);

  --r: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --bar: 68px;
  --shadow: 0 18px 40px -22px rgba(20, 20, 20, 0.35);

  /* default pattern: offset rings. Replace via CONFIG.brand.pattern with a motif from the brand. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23fff' stroke-width='3'%3E%3Ccircle cx='10' cy='10' r='5'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

html[lang='ar'] { --f: var(--f-ar); }
[lang='en'] { font-family: var(--f-latin); }
[lang='ar'] { font-family: var(--f-ar); }
/* secondary-language names keep their own word order without changing alignment */
/* (match-parent is unreliable with plaintext, so alignment is set per direction) */
.card__alt, .row__alt, .cat__alt, .sheet__alt, .pdp__alt, .line__name, .card__name, .row__name { unicode-bidi: plaintext; text-align: left; }
html[dir='rtl'] :is(.card__alt, .row__alt, .cat__alt, .sheet__alt, .pdp__alt, .line__name, .card__name, .row__name) { text-align: right; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* the header's wrapper must not be its sticky containing block, or the bar scrolls away */
#site-header { display: contents; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
}
html[lang='ar'] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow--light { color: var(--accent-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 500; font-size: 15.5px; text-decoration: none; letter-spacing: 0.01em;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--accent-ink); }
.btn--line { border-color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--wa { background: var(--ink); color: #fff; }
.btn--wa:hover { background: #000; }
.btn--wa svg { width: 20px; height: 20px; }
.btn--wide { width: 100%; }
.iconbtn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: background-color 0.2s, border-color 0.2s;
}
.iconbtn:hover { border-color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; }
.linkbtn { background: none; border: 0; padding: 6px 0; font-weight: 500; color: var(--accent-ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.2s;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar__inner {
  max-width: var(--max); margin: 0 auto; height: var(--bar);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: block; color: var(--ink); line-height: 0; text-decoration: none; }
/* SVG logos size by height; width follows the viewBox ratio */
.brand__mark { height: 52px; width: auto; }
.wordmark { display: inline-block; height: auto; width: auto; line-height: 1.1; font-weight: 700; letter-spacing: 0.01em; font-size: 21px; white-space: nowrap; }
.brand__mark.wordmark { font-size: 21px; }
.nav { display: flex; gap: 26px; margin-inline-start: 12px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s; }
.nav a:hover::after { transform: scaleX(1); }
.topbar__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; font-weight: 500;
}
.lang:hover { border-color: var(--ink); }
.bagbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px 0 14px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
}
.bagbtn svg { width: 19px; height: 19px; }
.bagbtn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12.5px; display: inline-grid; place-items: center;
}
.is-bump { animation: bump 0.4s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }

/* ---------- loop ribbon + rings (the signature) ---------- */
.ribbon {
  position: absolute;
  background-color: var(--accent);
  background-image: var(--pattern);
  background-size: 46px auto;
  border-radius: 999px;
  pointer-events: none;
}
.rings { position: absolute; inset: 0; pointer-events: none; }
.rings span { position: absolute; border-radius: 50%; border: clamp(26px, 4vw, 54px) solid var(--mist); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  overflow-x: clip;
}
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(44px, 6.6vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.hero__title span { display: block; }
.hero__title-strong { font-weight: 600; }
html[lang='ar'] .hero__title { letter-spacing: 0; line-height: 1.2; font-size: clamp(40px, 5.8vw, 82px); }
.hero__lede { margin: 0 0 30px; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stage { position: relative; aspect-ratio: 1 / 0.92; }
.hero__stage .rings span:nth-child(1) { width: 62%; aspect-ratio: 1; top: -4%; inset-inline-end: 8%; }
.hero__stage .rings span:nth-child(2) { width: 78%; aspect-ratio: 1; bottom: -18%; inset-inline-end: 0; }
.ribbon--hero { width: 130%; height: 24%; bottom: 20%; inset-inline-start: -20%; transform: rotate(-24deg); }
html[dir='rtl'] .ribbon--hero { transform: rotate(24deg); }
.hero__img {
  position: absolute; max-width: none;
  filter: drop-shadow(0 26px 24px rgba(60, 30, 10, 0.28));
  animation: settle 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero__img--a { width: 34%; top: 2%; inset-inline-end: 14%; animation-delay: 0.05s; }
.hero__img--b { width: 50%; bottom: 10%; inset-inline-start: 2%; animation-delay: 0.18s; }
.hero__img--c { width: 50%; bottom: 2%; inset-inline-end: 0; animation-delay: 0.3s; }
/* no photos yet: the monogram, outlined, sits in the rings */
.hero__mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-latin); font-weight: 300; font-size: clamp(110px, 16vw, 230px); line-height: 1;
  color: transparent; -webkit-text-stroke: 2.5px var(--ink);
}
@keyframes settle { from { opacity: 0; transform: translateY(26px) rotate(-3deg); } }

/* ---------- story ---------- */
.story {
  background: var(--ink); color: #fff;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.story__head, .digits { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.story__title { margin: 0 0 16px; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -0.015em; max-width: 16em; }
html[lang='ar'] .story__title { line-height: 1.35; letter-spacing: 0; }
.story__lede { color: rgba(255, 255, 255, 0.72); max-width: 42em; margin: 0 0 clamp(40px, 6vw, 72px); font-size: 17px; }
.digits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.digit { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 22px; }
.digit__num {
  display: block; font-family: var(--f-latin);
  font-size: clamp(96px, 13vw, 180px); line-height: 0.82; font-weight: 300;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
  margin-bottom: 18px;
}
.digit h3 { margin: 0 0 8px; font-size: 21px; font-weight: 500; }
.digit p { margin: 0; color: rgba(255, 255, 255, 0.7); }

/* ---------- menu ---------- */
.menu { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 40px; }
.menu__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.menu__title { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; text-transform: uppercase; }
html[lang='ar'] .menu__title { text-transform: none; letter-spacing: 0; line-height: 1.2; }
.search {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px; min-width: min(340px, 100%);
  border-radius: 999px; background: var(--mist);
}
.search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; outline: none; width: 100%; height: 100%; font-size: 15.5px; }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }

.menubar {
  position: sticky; top: var(--bar); z-index: 30;
  margin: 0 calc(-1 * var(--gutter)) 8px; padding: 8px var(--gutter) 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.groups { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.groups::-webkit-scrollbar { display: none; }
.group {
  flex: none; border: 0; background: none; padding: 4px 12px 8px; font-weight: 500; font-size: 15px; color: var(--muted);
  border-bottom: 2.5px solid transparent;
}
.group:hover { color: var(--ink); }
.group.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 0 10px; border-top: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; white-space: nowrap; text-decoration: none;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--line);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cat { padding: clamp(36px, 5vw, 64px) 0 8px; border-bottom: 1px solid var(--line); }
.cat:last-child { border-bottom: 0; }
.cat__head { display: grid; grid-template-columns: 1fr; align-items: end; gap: 20px; margin-bottom: 24px; }
.cat--hascover .cat__head { grid-template-columns: 1fr minmax(220px, 380px); }
.cat__title { margin: 0; font-size: clamp(30px, 3.8vw, 50px); line-height: 1; font-weight: 600; letter-spacing: -0.015em; text-transform: uppercase; }
html[lang='ar'] .cat__title { text-transform: none; letter-spacing: 0; line-height: 1.25; }
.cat__alt { display: block; margin: 6px 0 0; color: var(--accent); font-size: 17px; }
.cat__note {
  display: inline-block; margin: 14px 0 0; padding: 8px 14px;
  border-radius: 10px; background: var(--soft); color: var(--accent-ink); font-size: 14.5px;
}
.cat__cover { position: relative; height: clamp(170px, 20vw, 250px); }
/* covers keep the menu's printed ribbon; fade its cropped ends */
.cat__cover img {
  height: 100%; width: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%);
}

.cat--featured {
  position: relative;
  margin: 24px calc(-1 * var(--gutter)) 0;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 40px;
  background: var(--soft);
  border-radius: 28px;
  border-bottom: 0;
}

/* cards (items with photos) */
.cards {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px;
}
.card { position: relative; }
.card__hit {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 0 0 18px; border: 0; border-radius: var(--r);
  background: transparent; text-align: start;
  transition: background-color 0.25s;
}
.card__hit:hover { background: rgba(20, 20, 20, 0.035); }
.cat--featured .card__hit:hover { background: rgba(255, 255, 255, 0.5); }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.86; margin-bottom: 10px; }
.card__media::before {
  content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 16px solid var(--mist); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat--featured .card__media::before { border-color: rgba(255, 255, 255, 0.75); }
.card__media img { position: relative; max-height: 86%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(40, 20, 10, 0.16)); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card__hit:hover .card__media img { transform: translateY(-4px) scale(1.03); }
.card__hit:hover .card__media::before { transform: scale(1.06); }
.card__name { padding-inline: 12px 52px; font-weight: 500; font-size: 16.5px; line-height: 1.3; }
.card__alt { padding-inline: 12px 52px; margin-top: 2px; color: var(--accent); font-size: 14px; line-height: 1.4; }
.card__price { padding-inline: 12px; margin-top: 8px; font-weight: 600; font-size: 15.5px; font-variant-numeric: lining-nums tabular-nums; }
.card .card__hit { padding-bottom: 60px; }
.card .ctl { position: absolute; inset-inline-end: 10px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card .incart { display: none; }
.card__ph, .pdp__ph, .line__ph { font-family: var(--f-latin); font-weight: 300; color: var(--accent); }
.card__ph { position: relative; font-size: 34px; }
.card--mini { flex: none; width: 200px; scroll-snap-align: start; }
.ctl { display: flex; align-items: center; gap: 10px; }
.incart { font-size: 12.5px; font-weight: 500; color: var(--accent-ink); white-space: nowrap; }

/* quantity stepper shown once an item is in the order */
.stepper {
  display: inline-flex; align-items: center; height: 38px; border-radius: 999px;
  background: var(--ink); color: #fff; padding: 0 2px;
  animation: grow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stepper button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; }
.stepper button:hover { background: rgba(255, 255, 255, 0.14); }
.stepper svg { width: 16px; height: 16px; }
.stepper output { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; font-family: var(--f-latin); }
.stepper--line { background: var(--mist); color: var(--ink); height: 36px; }
.stepper--line button:hover { background: rgba(20, 20, 20, 0.08); }
@keyframes grow { from { transform: scale(0.85); opacity: 0.4; } }

.card__media .tag { position: absolute; top: 10px; inset-inline-start: 10px; margin: 0; z-index: 1; }
.tag {
  display: inline-block; vertical-align: 2px; margin-inline-start: 8px;
  padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
}

/* rows (items without photos) */
.rows {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px);
}
.row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.row__hit { display: flex; flex-direction: column; border: 0; background: none; padding: 0; text-align: start; min-width: 0; }
.row__hit:hover .row__name { color: var(--accent-ink); }
.row__name { font-weight: 500; font-size: 16.5px; line-height: 1.3; transition: color 0.2s; }
.row__alt { color: var(--accent); font-size: 14px; }
.row__desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.row__price { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; font-size: 15.5px; }

.add {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff;
  transition: background-color 0.2s, transform 0.15s;
}
.add svg { width: 18px; height: 18px; }
.add:hover { background: var(--accent); }
.add:active { transform: scale(0.92); }

.menu__empty { padding: 40px 0; color: var(--muted); font-size: 17px; }
.menu__empty .btn { margin-top: 8px; }
.cat__note--warn { background: #fdf1d8; color: #7a5410; }

/* ---------- visit ---------- */
.visit {
  max-width: var(--max); margin: 40px auto clamp(56px, 8vw, 100px);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; align-items: stretch;
}
.visit__card { background: var(--soft); border-radius: 28px 0 0 28px; padding: clamp(32px, 5vw, 64px); }
html[dir='rtl'] .visit__card { border-radius: 0 28px 28px 0; }
.visit__title { margin: 0 0 28px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; font-weight: 500; letter-spacing: -0.015em; }
html[lang='ar'] .visit__title { line-height: 1.35; letter-spacing: 0; }
.visit__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0 0 30px; }
.visit__facts dt { font-size: 14px; letter-spacing: 0; color: var(--accent-ink); margin-bottom: 4px; }
html[lang='ar'] .visit__facts dt { letter-spacing: 0; font-size: 14px; }
.visit__facts dd { margin: 0; font-size: 17px; font-weight: 500; }
.visit__facts dd a { text-decoration: none; }
.visit__social { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 500; font-size: 15px; }
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--ink); color: #fff; }
.visit__art { position: relative; overflow: hidden; background: var(--mist); border-radius: 0 28px 28px 0; min-height: 360px; display: grid; place-items: center; }
html[dir='rtl'] .visit__art { border-radius: 28px 0 0 28px; }
.visit__art img {
  width: 66%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 76%, transparent 100%);
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #fff; text-align: center; padding: 56px var(--gutter) calc(56px + env(safe-area-inset-bottom)); }
.foot__mark { display: inline-block; height: 82px; width: auto; margin-bottom: 14px; color: #fff; }
.foot__mark.wordmark { height: auto; font-size: 32px; }
.foot p { margin: 0 0 6px; }
.foot__small { color: rgba(255, 255, 255, 0.5); font-size: 14px; }

/* ---------- order bar (mobile) ---------- */
.orderbar {
  position: fixed; z-index: 35; inset-inline: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 10px; border: 0; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 16px;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.55);
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.orderbar__count { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 50%; background: var(--accent); }
.orderbar__total { margin-inline-start: auto; font-variant-numeric: lining-nums tabular-nums; }
@keyframes rise { from { transform: translateY(120%); } }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 0; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 20, 20, 0.45); backdrop-filter: blur(2px); }

.sheet {
  width: min(480px, calc(100% - 32px)); border-radius: 24px; margin: auto;
  background: var(--paper); box-shadow: var(--shadow);
}
.sheet[open] { animation: pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.sheet__inner { position: relative; padding: 24px; max-height: 88vh; overflow-y: auto; }
.sheet__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.sheet__media { position: relative; display: grid; place-items: center; height: 220px; margin: -8px -8px 12px; border-radius: 18px; background: var(--mist); overflow: hidden; }
.sheet__media[hidden] { display: none; }
.sheet__media::before { content: ''; position: absolute; width: 60%; height: 34%; bottom: 14%; background: var(--accent) var(--pattern); background-size: 40px auto; border-radius: 999px; transform: rotate(-16deg); }
.sheet__media img { position: absolute; inset: 6% 7%; width: 86%; height: 88%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(40, 20, 10, 0.25)); }
.sheet__media[hidden] + .sheet__title { margin-top: 8px; }
.sheet__title { margin: 4px 0 0; font-size: 24px; line-height: 1.2; font-weight: 600; padding-inline-end: 44px; }
.sheet__alt { margin: 2px 0 0; color: var(--accent); }
.sheet__desc { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.sheet__foot { display: flex; gap: 12px; align-items: center; margin-top: 20px; position: sticky; bottom: -24px; background: var(--paper); padding: 12px 0 0; }

.seg { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
html[lang='ar'] .seg legend { letter-spacing: 0; font-size: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 500; font-size: 15px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.seg span em { font-style: normal; font-weight: 400; opacity: 0.75; font-size: 13.5px; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 16px;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .err { display: none; color: var(--bad); font-size: 13.5px; margin-top: 6px; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--bad); }
.field.is-bad .err { display: block; }

.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist); }
.qty .iconbtn { width: 38px; height: 38px; border: 0; background: var(--paper); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.qty--sm .iconbtn { width: 30px; height: 30px; }
.qty--sm .iconbtn svg { width: 15px; height: 15px; }
.qty--sm output { min-width: 22px; font-size: 14.5px; }

.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 56px 1fr auto; grid-template-rows: auto auto;
  column-gap: 14px; row-gap: 6px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.line__thumb { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--mist); display: grid; place-items: center; overflow: hidden; text-decoration: none; }
.line__thumb img { max-width: 88%; max-height: 88%; object-fit: contain; }
.line__ph { font-weight: 300; color: var(--accent); font-size: 17px; font-family: var(--f-latin); }
.line__name { font-weight: 500; line-height: 1.3; }
.line__name small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; margin-top: 2px; }
.line__price { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.line .qty { grid-column: 2; justify-self: start; }
.line--compact { grid-template-columns: auto 1fr auto; padding: 10px 0; }
.line__q { font-weight: 600; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }

.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-variant-numeric: lining-nums tabular-nums; }
.sum--grand { font-size: 19px; padding: 12px 0 16px; }
.sum--grand strong { font-weight: 700; }
.totals { margin: 22px 0 10px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.fine { color: var(--muted); font-size: 13.5px; margin: 12px 0 0; text-align: center; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 40px 10px; color: var(--muted); }
.empty[hidden] { display: none; }
.empty__mark { height: 72px; width: auto; color: var(--mist); }
.empty__mark.wordmark { height: auto; font-size: 30px; color: #d9d6d2; }

.done { text-align: center; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.done__stamp { width: 112px; height: 112px; margin: 6px auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--accent) var(--pattern); background-size: 40px auto; color: #fff; animation: stamp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.done__stamp svg { height: 48px; width: auto; max-width: 80px; filter: drop-shadow(0 0 6px var(--accent)); }
.done__mono { font-family: var(--f-latin); font-size: 34px; font-weight: 600; letter-spacing: 0.02em; text-shadow: 0 0 8px var(--accent); }
@keyframes stamp { from { transform: scale(0.4) rotate(-20deg); opacity: 0; } }
.done__num { margin: 0; font-size: 34px; font-weight: 600; font-family: var(--f-latin); letter-spacing: 0.02em; }
.done p { margin: 0 0 6px; }
.done .lines, .done .sum { text-align: start; }
.track { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 10px 0 14px; counter-reset: s; }
.track li { position: relative; flex: 1; font-size: 13.5px; color: var(--muted); padding-top: 28px; }
.track li::before { content: ''; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); z-index: 1; }
.track li + li::after { content: ''; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line); }
html[dir='rtl'] .track li + li::after { right: auto; left: 50%; }
.track li::before { transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.track li.is-done, .track li.is-now { color: var(--ink); }
.track li.is-done::before { background: var(--ok); border-color: var(--ok); }
.track li.is-now { font-weight: 600; }
.track li.is-now::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 6px rgba(47, 125, 79, 0.18); animation: pulse 1.6s ease-in-out infinite; }
.track li.is-done + li::after, .track li.is-now::after { background: var(--ok); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(47, 125, 79, 0.06); } }
.done .btn { margin-top: 6px; }

/* toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 28px; translate: -50% 20px;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, translate 0.25s; max-width: calc(100% - 32px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}
html[dir='rtl'] .toast { padding: 10px 20px 10px 10px; }
.toast > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.toast a, .toast button { flex: none; border: 0; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.toast.is-on { opacity: 1; translate: -50% 0; pointer-events: auto; }

/* ---------- shared page scaffolding ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 96px); min-height: 60vh; }
.page--narrow { max-width: 640px; }
.page__title { margin: 0 0 24px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
html[lang='ar'] .page__title { letter-spacing: 0; line-height: 1.3; }
.center { text-align: center; margin-top: 32px; }
.textlink { color: var(--accent-ink); font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; white-space: nowrap; }
.textlink:hover { color: var(--ink); }
.textlink--add { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; border: 0; }
.textlink--add svg { width: 18px; height: 18px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 500; }
.backlink:hover { color: var(--ink); }
.backlink svg { width: 18px; height: 18px; }
html[dir='rtl'] .backlink svg { transform: scaleX(-1); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--big { min-height: 56px; font-size: 16.5px; margin-top: 24px; }

.band { padding: clamp(44px, 6vw, 80px) 0; }
.band--soft { background: var(--soft); }
.band--mist { background: var(--mist); }
.band--tight { padding: 40px 0 0; }
.band__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.band__title { margin: 0 0 22px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.band__head .band__title { margin: 0; }
html[lang='ar'] .band__title { letter-spacing: 0; line-height: 1.35; }

/* home: featured shelf + category tiles + promo */
.shelf {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shelf .card__hit:hover { background: rgba(255, 255, 255, 0.5); }
/* home cards (specials shelf + most ordered): one picture shape, a rounded tile filled edge to edge (photo or
   Teddy alike), so names line up; price and + on one row */
:is(.shelf, .cards--home) .card__media {
  aspect-ratio: 1; margin-bottom: 12px; border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}
.cards--home .card__media { background: var(--mist); }
:is(.shelf, .cards--home) .card__media:has(img) { background: none; }
:is(.shelf, .cards--home) .card__media::before { content: none; }
:is(.shelf, .cards--home) .card__media img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
:is(.shelf, .cards--home) .card__hit:hover .card__media img { transform: scale(1.04); }
:is(.shelf, .cards--home) .card__ph { font-size: 52px; }
:is(.shelf, .cards--home) :is(.card__name, .card__alt) { padding-inline: 12px; }
:is(.shelf, .cards--home) .card .card__hit { padding-bottom: 10px; }
:is(.shelf, .cards--home) .card__price { display: flex; align-items: center; min-height: 38px; margin-top: auto; padding-top: 6px; padding-inline: 12px 56px; }
:is(.shelf, .cards--home) .card .ctl { bottom: 10px; }
.cards--home { margin-bottom: 0; row-gap: 22px; }
@media (max-width: 720px) { .cards--home { column-gap: 12px; } }
@media (min-width: 900px) {
  /* a few specials fill the row; many scroll */
  .shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 20px; }
  .shelf .card--mini { width: auto; }
  .cards--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  :is(.shelf, .cards--home) .card__media { aspect-ratio: 5 / 4; }
  :is(.shelf, .cards--home) .card__ph { font-size: 64px; }
  :is(.shelf, .cards--home) .card__name { font-size: 18px; }
  :is(.shelf, .cards--home) .card__alt { font-size: 15px; }
  :is(.shelf, .cards--home) .card__price { font-size: 16.5px; }
}
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--paper); border-radius: 18px; text-decoration: none; color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: rgba(113, 102, 62, 0.12); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__ph { color: var(--accent); font-size: 44px; }
.tile__name { padding: 11px 14px 13px; font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.tile--all { background: var(--accent); color: var(--cream); }
.tile--all .tile__media { background: none; }
.tile--all .tile__ph { color: var(--cream); }
/* the closing card: a cream card so the page ends on an invitation, with the address and quick contact */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(26px, 4vw, 52px); border-radius: 24px; background: var(--cream);
}
.promo .band__title { margin: 0; max-width: 18em; text-wrap: balance; }
.promo__info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; color: var(--accent-ink); font-size: 15px; }
.promo__info a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.promo__info svg { width: 17px; height: 17px; }
.promo__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.promo__cta .btn { white-space: nowrap; justify-content: center; }
#homeAddr { flex-basis: 100%; }
@media (min-width: 900px) {
  .promo { flex-wrap: nowrap; }
  .promo__text { flex: 1 1 auto; min-width: 0; }
  .promo__cta { flex: none; }
}

.story__cta { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
/* home teaser: text beside a photo of Teddy at the counter; the three pillars as rows (number, title, line) */
.story__split {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.story__photo { order: 2; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story--teaser .story__head, .story--teaser .digits, .story--teaser .story__cta { max-width: none; }
.story--teaser .eyebrow { color: var(--latte); }
.story--teaser .story__title { margin-bottom: 20px; }
.story--teaser .digits--mini { grid-template-columns: 1fr; gap: 0; margin: 0 0 32px; }
.story--teaser .digit { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; padding: 16px 0; }
.story--teaser .digit__num { grid-row: span 2; font-size: 72px; margin: 0; text-align: center; }
.story--teaser .digit h3 { margin: 4px 0 4px; }
.story--teaser .digit p { font-size: 15.5px; line-height: 1.5; }
.story--page { padding-top: clamp(40px, 6vw, 80px); }

/* header status pill + current page */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.status.is-open i { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 125, 79, 0.15); }
.nav a[aria-current='page']::after { transform: scaleX(1); }
.foot__nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.foot__nav a:hover { color: #fff; }
.orderbar { text-decoration: none; }

/* product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pdp__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 28px; background: var(--mist); overflow: hidden; }
.pdp__media .rings span { width: 70%; aspect-ratio: 1; top: 15%; left: 15%; border-color: rgba(255, 255, 255, 0.7); }
.pdp__media .ribbon { width: 120%; height: 22%; bottom: 18%; left: -10%; transform: rotate(-20deg); }
.pdp__media img { position: relative; max-width: 78%; max-height: 78%; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(40, 20, 10, 0.28)); animation: settle 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pdp__ph { position: relative; font-size: 96px; }
.pdp__media--cat img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); }
.pdp__title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
html[lang='ar'] .pdp__title { letter-spacing: 0; line-height: 1.35; }
.pdp__alt { display: block; margin: 6px 0 0; color: var(--accent); font-size: 18px; }
.pdp__desc { margin: 16px 0 0; color: var(--ink-2); font-size: 16.5px; }
.pdp__price { margin: 18px 0 0; font-size: 26px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.pdp__buy { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.sheet__more { display: inline-block; margin-top: 14px; color: var(--accent-ink); font-weight: 500; }

/* cart + checkout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.split[hidden] { display: none; }
.summary { position: sticky; top: calc(var(--bar) + 20px); padding: 24px; border-radius: 22px; background: var(--mist); }
.summary__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.summary__head h2 { margin: 0; font-size: 19px; font-weight: 600; }
.summary__count { margin: 0 0 6px; color: var(--muted); }
.summary .sum--grand { border-top: 1.5px solid var(--ink); margin-top: 8px; }
.line__name a { text-decoration: none; }
.line__name a:hover { color: var(--accent-ink); }
.line .stepper { grid-column: 2; justify-self: start; }
.pair { margin-top: 36px; }
.pair__title { margin: 0 0 14px; font-size: 19px; font-weight: 600; }
.cards--pair { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cards--pair .card--mini { width: auto; }
.paybar { display: none; }
.form__h { margin: 28px 0 0; font-size: 19px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.eta { margin: 12px 0 0; color: var(--ok); font-weight: 500; }
.eta:empty { display: none; }
.formerr { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--bad); font-size: 14.5px; }
.formerr[hidden] { display: none; }
.notice { padding: 60px 0; text-align: center; color: var(--muted); }

/* order confirmation */
.done__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.recent { margin-top: 48px; }
.recent__list { list-style: none; margin: 0; padding: 0; }
.recent__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.recent__list a span:nth-child(2) { color: var(--muted); font-size: 14.5px; }

/* visit + faq + craft */
.page .visit { padding: 0; margin: 0 0 56px; }
.visit__map { position: absolute; bottom: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); font-size: 13px; color: var(--muted); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
.craft { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.craft a { display: block; text-decoration: none; }
.craft__media { position: relative; display: block; height: 240px; border-radius: 22px; background: var(--mist); margin-bottom: 14px; transition: transform 0.25s; }
.craft a:hover .craft__media { transform: translateY(-3px); }
.craft__media img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 68%, transparent 100%); }
.craft h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.craft p { margin: 0; color: var(--muted); }
.craft__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-latin); font-weight: 300; font-size: 72px; color: var(--accent); }

/* starter-only helpers: payment options rendered from config, text tiles, visit art without a photo */
.seg__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.visit__art .rings span { width: 58%; aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .status { display: none; }
}
@media (max-width: 960px) {
  .pdp, .split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .craft { grid-template-columns: 1fr; }
  .craft__media { height: 200px; }
  .hero { grid-template-columns: 1fr; padding-top: 18px; }
  .hero__stage { order: -1; max-width: 520px; width: 100%; margin: 0 auto; aspect-ratio: 1 / 0.84; }
  .hero__stage .rings span:nth-child(2) { bottom: -2%; width: 70%; }
  .hero__copy { position: relative; z-index: 1; }
  .digits { grid-template-columns: 1fr; }
  .digit { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start; }
  .digit__num { grid-row: span 2; font-size: 112px; margin: 0; }
  .story__split { grid-template-columns: 1fr; gap: 26px; }
  .story__photo { order: 0; aspect-ratio: 16 / 10; }
  .story__photo img { object-position: 50% 62%; }
  .story--teaser .digit { grid-template-columns: 52px 1fr; column-gap: 14px; padding: 14px 0; }
  .story--teaser .digit__num { font-size: 60px; }
  .visit { grid-template-columns: 1fr; }
  .visit__card { border-radius: 28px 28px 0 0 !important; }
  .visit__art { border-radius: 0 0 28px 28px !important; min-height: 280px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .bagbtn__label { display: none; }
  .bagbtn { padding: 0 12px; }
  .orderbar:not([hidden]) { display: flex; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .rows { grid-template-columns: 1fr; }
  .split > .summary .btn { display: none; }
  .paybar {
    display: block; position: fixed; z-index: 35; inset-inline: 0; bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); box-shadow: 0 -1px 0 var(--line);
  }
  body[data-page='cart'] .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .band__head { flex-wrap: wrap; }
  .promo__cta { width: 100%; }
  .promo__cta .btn { flex: 1 1 auto; }
  .cat--hascover .cat__head { grid-template-columns: 1fr; }
  .cat__cover { height: 190px; order: -1; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body:is([data-page='home'], [data-page='checkout'], [data-page='order']) .foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .sheet { width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-width: 100%; }
  .sheet[open] { animation-name: up; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 520px) {
  :root { --bar: 60px; }
  .brand__mark { height: 44px; }
  .brand__mark.wordmark { height: auto; font-size: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .card__name { font-size: 15px; padding-inline: 8px 8px; }
  .card__alt { font-size: 13px; padding-inline: 8px 8px; }
  .card__price { padding-inline: 8px; padding-inline-end: 48px; }
  .card .add { width: 36px; height: 36px; inset-inline-end: 6px; bottom: 12px; }
  .card__media::before { border-width: 12px; }
  .visit__facts { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile__name { font-size: 15.5px; padding: 9px 12px 11px; }
  .tile__media { aspect-ratio: 2 / 1; }
  .tile__ph { font-size: 34px; }
  .card--mini { width: 168px; }
  .cards--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .done__actions { grid-template-columns: 1fr; }
  .pdp__buy { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-bottom: -12px; }
  .card .stepper { height: 34px; }
  .card .stepper button { width: 30px; height: 30px; }
  .hero__cta .btn { flex: 1; padding: 0 14px; font-size: 15px; }
}

@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; }
}

/* Single photo in the hero instead of cutouts on the ribbon */
.hero__stage--photo { aspect-ratio: auto; display: flex; justify-content: center; }
.hero__stage--photo .rings, .hero__stage--photo .ribbon { display: none; }
.hero__photo { display: block; width: 100%; max-width: 480px; height: auto; border-radius: 999px 999px 28px 28px; }

/* Logo is a wide wordmark */
.brand__mark { height: 28px; }
.foot__mark { height: 56px; }
@media (max-width: 720px) { .brand__mark { height: 23px; } }

/* Demo marker: remove once the real menu is in */
body::before { content: 'Demo ·  sample menu and prices'; display: block; padding: 5px 12px; text-align: center; background: var(--accent); color: #fff; font-size: 12px; }
html[lang='ar'] body::before { content: 'نسخة تجريبية ·  المنيو والأسعار للعرض فقط'; }

/* These pictures are photos, not cutouts: fill the card instead of the soft oval fade */
.tile__media img, .craft__media img, .pdp__media--cat img { -webkit-mask-image: none; mask-image: none; }
.craft__media img { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.cat__cover img, .visit__art img { -webkit-mask-image: none; mask-image: none; }
.cat__cover img { border-radius: 22px; }
.visit__art img { border-radius: 24px; }
/* the wide logo is unreadable on top of the pattern */
.done__stamp { background: var(--accent); }

/* Home hero extras that only exist on phones */
.hero__slogan, .hero__scroll, .hero__bear { display: none; }

/* Phones: the picture is the whole first screen */
@media (max-width: 720px) {
  .hero {
    display: flex; flex-direction: column; position: relative;
    height: calc(100vh - 28px); height: calc(100svh - 28px); min-height: 540px;
    max-width: none; margin: calc(-1 * var(--bar)) 0 0; padding: 0;
    background: var(--olive); overflow: hidden; isolation: isolate;
  }
  /* the picture sits on its own layer so the bear can rise, sway and tilt (its green backdrop is flat, so no edges show) */
  /* Moré's barista bear stands on his own layer, so he can rise in, sway and lean as you scroll */
  .hero { background: radial-gradient(120% 70% at 50% 92%, #807449 0%, var(--olive) 60%); }
  /* a real clip of him waving (bear-wave.mp4); he's framed from the chest up, so his cut edge sits below the screen */
  .hero { --bw: min(92vw, 460px); }    /* the bear's width: inside the screen, waving paw and all */
  .hero__bear {
    display: block; position: absolute; z-index: 0; left: calc(50% - var(--bw) / 2); bottom: -2%;   /* just enough below the edge that his scroll lean never lifts the cut */
    width: var(--bw); aspect-ratio: 1088 / 752;
    transform-origin: 50% 100%;
    transform: rotate(var(--tilt, 0deg)) scale(var(--zoom, 1));
    pointer-events: none;
    opacity: 0; animation: bear-fallback 0.4s ease 2.5s forwards;   /* home.js takes over and lifts him in; this only shows him if it can't */
  }
  @keyframes bear-fallback { to { opacity: 1; } }
  .hero__bear::before { content: ''; position: absolute; inset: 14% 12% -6%; background: radial-gradient(closest-side, rgba(20, 20, 8, 0.45), transparent); }
  .hero__bear img, .hero__bear canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .hero__bear canvas { opacity: 0; }
  .hero__bear.is-live canvas { opacity: 1; }
  .hero__bear.is-live img { opacity: 0; }
  .hero__bear video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }   /* only feeds the canvas; kept in the page at full size so phones keep playing it */
  .hero__copy { z-index: 1; }
  .hero__stage { display: none; }
  /* slogan and button sit in the middle of the space above him, not stuck under the header */
  .hero__copy { flex: 1; position: relative; text-align: center; display: flex; flex-direction: column; justify-content: center; padding-bottom: calc(var(--bw) * 0.66); }
  .hero__copy .eyebrow, .hero__lede, #heroCta2 { display: none; }
  .hero__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero__slogan {
    display: block; margin: 0; padding: calc(var(--bar) + 22px) 14px 0; white-space: pre;   /* two lines, never three */
    /* as big as fits: "MORE THAN COFFEE," is 11.27 x the font size wide (Josefin 600, +0.02em) */
    font-size: min(42px, calc((100vw - 40px) / 11.45)); font-weight: 700; line-height: 1.12; letter-spacing: 0.02em; text-transform: uppercase; color: var(--cream);
  }
  html[lang='ar'] .hero__slogan { font-size: clamp(30px, 10vw, 48px); letter-spacing: 0; line-height: 1.3; }
  .hero__cta { justify-content: center; margin-top: clamp(16px, 3.4svh, 32px); }
  .hero__cta .btn--ink { flex: 0 0 auto; min-width: 0; min-height: 42px; padding: 0 22px; font-size: 14.5px; justify-content: center; background: var(--cream); border-color: var(--cream); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
  .hero__scroll {
    display: inline-flex; align-items: center; gap: 6px; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    padding: 6px 14px; border-radius: 999px; background: rgba(43, 46, 27, 0.78); color: var(--cream); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  }

  /* header floats on the picture until the page is scrolled */
  body[data-page='home'] .topbar:not(.is-scrolled) { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body[data-page='home'] .topbar:not(.is-scrolled) .brand { color: var(--cream); }
  body[data-page='home'] .topbar:not(.is-scrolled) .lang { background: transparent; border-color: transparent; color: var(--cream); }
  body[data-page='home'] .topbar:not(.is-scrolled) .bagbtn { background: var(--cream); border-color: var(--cream); color: var(--ink); }
}

/* Dropdown menu (phones and tablets) */
.burger, .menupanel { display: none; }
@media (max-width: 960px) and (min-width: 821px) { .nav { gap: 16px; } }
@media (max-width: 820px) {
  .topbar__actions .lang { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
  .burger span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
  body[data-page='home'] .topbar:not(.is-scrolled) .burger { color: var(--cream); }
  .menupanel:not([hidden]) { display: block; position: absolute; top: calc(100% - 4px); inset-inline-end: 12px; width: min(240px, calc(100vw - 24px)); padding: 8px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28); }
  .menupanel nav { display: flex; flex-direction: column; }
  .menupanel a { padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 17px; }
  .menupanel a:hover, .menupanel a[aria-current='page'] { background: var(--soft); }
  .menupanel__lang { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: start; font: inherit; font-weight: 500; color: var(--accent-ink); cursor: pointer; }
}

/* Experience and Gallery pages */
.page__lede { margin: 0 0 28px; }
.moments { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 28px; }
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.moment:nth-child(even) img { order: 2; }
.moment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; display: block; }
.moment h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; }
.moment p { margin: 0; color: var(--muted); font-size: 17px; }
.gallery { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--mist); cursor: zoom-in; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 22, 12, 0.88); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; border-radius: 16px; }
.lightbox__close { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 720px) {
  .moment { grid-template-columns: 1fr; gap: 12px; }
  .moment:nth-child(even) img { order: 0; }
  .moment h2 { font-size: 23px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Bear peeks up under the bag when something is added */
.flyimg { position: fixed; z-index: 90; object-fit: cover; border-radius: 50%; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.bearpop {
  position: fixed; z-index: 80; width: 112px; height: 92px; translate: -50% 0;
  border-radius: 18px; background: var(--cream); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  pointer-events: none; opacity: 0; scale: 0.6; transform-origin: var(--tip, 50%) 0;
  transition: opacity 0.18s ease, scale 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.bearpop__win { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.bearpop::before { content: ''; position: absolute; top: -7px; left: var(--tip, 50%); width: 14px; height: 14px; translate: -50% 0; rotate: 45deg; background: var(--cream); }
.bearpop img { position: absolute; left: 50%; bottom: 0; width: 96px; translate: -50% 105%; transition: translate 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.08s; }
.bearpop b {
  position: absolute; top: 6px; inset-inline-end: 7px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 13px; line-height: 22px; text-align: center; opacity: 0; scale: 0.4;
  transition: opacity 0.2s ease 0.4s, scale 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.bearpop.is-on { opacity: 1; scale: 1; }
.bearpop.is-on img { translate: -50% 4%; }
.bearpop.is-on b { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .bearpop, .bearpop img, .bearpop b { transition: opacity 0.2s ease; scale: 1; }
  .bearpop img { translate: -50% 4%; }
}

/* Home button turns into a link to the bag once it has something in it */
.hero__cta .btn--ink .bag-arrow { display: inline-block; margin-inline-start: 6px; }
html[dir='rtl'] .hero__cta .btn--ink .bag-arrow { transform: scaleX(-1); }

.hero.has-bag .hero__scroll { display: none; }

/* ---------- Moré brand layer (brand/BRAND.md) ---------- */
/* Rosario, like Candara, draws old-style figures by default; prices and times read better lining */
body { font-variant-numeric: lining-nums; }

/* headlines in the display face (English only; Arabic keeps Alexandria, the guide has no Arabic type) */
html[lang='en'] :is(.hero__title, .hero__slogan, .story__title, .menu__title, .cat__title, .page__title, .band__title,
  .pdp__title, .visit__title, .sheet__title, .moment h2, .pair__title, .digit h3) {
  font-family: var(--f-head); font-weight: 400; letter-spacing: 0.02em;
}
html[lang='en'] :is(.menu__title, .cat__title) { letter-spacing: 0.06em; }
html[lang='en'] .hero__title { font-weight: 300; }
html[lang='en'] .hero__title-strong { font-weight: 600; }
html[lang='en'] .hero .hero__slogan { font-weight: 600; }   /* phone hero slogan: bold (owner's ask); beats the :is() list above */
html[lang='en'] .eyebrow { font-family: var(--f-head); font-weight: 600; }

/* the logo in olive; the footer carries the full lock-up in cream, as on the guide's olive pages */
.brand { color: var(--accent); }
.brand__mark { height: 32px; }
@media (max-width: 720px) { .brand__mark { height: 26px; } }
.foot { background: var(--olive); color: var(--cream); }
.foot__mark { color: var(--cream); }
.foot__mark--lockup { height: 104px; }
.foot__nav a { color: rgba(249, 230, 200, 0.85); }
.foot__nav a:hover { color: var(--cream); }
.foot__small { color: rgba(249, 230, 200, 0.6); }

/* main buttons and the bag: olive with cream text */
.btn--ink, .bagbtn { background: var(--accent); color: var(--cream); }
.btn--ink:hover { background: var(--accent-ink); }
.bagbtn__count { background: var(--latte); color: var(--ink); }

/* the home story band on olive, its big numbers outlined in latte */
.story { background: var(--olive); color: var(--cream); }
.story .story__lede, .digit p { color: rgba(249, 230, 200, 0.82); }
.page__lede { color: var(--muted); }   /* the Experience intro borrows .story__lede, which is light for the olive band */
.digit { border-top-color: rgba(249, 230, 200, 0.25); }
.story .btn--light { background: var(--cream); color: var(--olive); }
.story .btn--light:hover { background: var(--latte); color: var(--ink); }
.digit__num { -webkit-text-stroke-color: var(--latte); }

/* no photo yet: the line Teddy stands in */
.hero__mono--icon { color: var(--accent); -webkit-text-stroke: 0; }
.card__ph--icon svg, .pdp__ph--icon svg, .line__ph--icon svg, .craft__ph--icon svg, .hero__mono--icon svg { width: auto; height: 1.25em; opacity: 0.75; }

/* the big pale Teddy behind page headings, like the guide's pages (content pages only, not bag/checkout/order) */
body:is([data-page='menu'], [data-page='visit'], [data-page='experience'], [data-page='gallery']) main { position: relative; isolation: isolate; }
body:is([data-page='menu'], [data-page='experience'], [data-page='gallery']) main::before {
  content: ''; position: absolute; z-index: -1; top: 8px; inset-inline-end: 0; pointer-events: none;
  width: clamp(170px, 26vw, 360px); aspect-ratio: 143.7 / 206.1; background: var(--olive); opacity: 0.07;
  -webkit-mask: url('../assets/img/teddy.svg') no-repeat center / contain; mask: url('../assets/img/teddy.svg') no-repeat center / contain;
}
html[dir='rtl'] main::before { transform: scaleX(-1); }

/* ---------- Our story: Teddy's bean-to-cup journey (the designer's "Frames" set) ---------- */
.journey__head { max-width: 40em; margin-bottom: clamp(32px, 6vw, 72px); }
.journey__head .band__title { margin-bottom: 12px; }
.journey__lede { margin: 0; color: var(--muted); font-size: 17px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 9vw, 120px); }
.chapter { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.chapter:nth-child(even) { grid-template-columns: 7fr 5fr; }
.chapter:nth-child(even) .chapter__text { order: 2; }
.chapter__num {
  display: block; margin-bottom: 16px;
  font-family: var(--f-head); font-weight: 300; font-size: clamp(64px, 8vw, 112px); line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px var(--coffee);
}
.chapter__title { margin: 0 0 12px; font-size: clamp(25px, 2.8vw, 36px); line-height: 1.15; font-weight: 600; }
html[lang='en'] .chapter__title { font-family: var(--f-head); font-weight: 400; letter-spacing: 0.02em; }
html[lang='ar'] .chapter__title { line-height: 1.4; }
.chapter__text p { margin: 0; max-width: 27em; color: var(--muted); font-size: 17px; }
/* one tall frame and two beside it; the box is square, so the tall one keeps close to its 9:16 */
.chapter__media {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 16px); aspect-ratio: 1;
}
.chapter__img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; border-radius: 22px; background: var(--soft); }
.chapter__img--main { grid-row: span 2; }
.chapters.js-reveal .chapter__text, .chapters.js-reveal .chapter__img {
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 120ms + 80ms);
}
.chapters.js-reveal .chapter__text { --d: 0; transition-delay: 0ms; }
.chapters.js-reveal .chapter:not(.is-in) :is(.chapter__text, .chapter__img) { opacity: 0; transform: translateY(28px); }
.chapters.js-reveal .chapter:not(.is-in) .chapter__img--main { transform: translateY(28px) scale(1.03); }
@media (max-width: 760px) {
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .chapter:nth-child(even) .chapter__text { order: 0; }
  .chapter__num { margin-bottom: 10px; }
  .chapter__img { border-radius: 16px; }
}

/* footer: brand | pages | visit & contact; one centred stack on phones */
.foot__grid { display: grid; gap: 30px; justify-items: center; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto 30px; }
.foot__brand p { margin: 0; }
.foot__h { font-size: 13px; font-weight: 600; letter-spacing: .04em; margin: 0 0 12px; color: rgba(249, 230, 200, 0.6); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; }
.foot__nav .foot__h { flex-basis: 100%; margin-bottom: 4px; }
.foot__visit p { margin: 0 0 6px; }
.foot__contact, .foot__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 12px !important; }
.foot__contact a { display: inline-flex; align-items: center; gap: 7px; color: var(--cream); text-underline-offset: 3px; }
.foot__contact svg { width: 17px; height: 17px; }
.foot__social { gap: 10px; }
.foot__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(249, 230, 200, 0.35); color: var(--cream); }
.foot__social a:hover { background: rgba(249, 230, 200, 0.12); }
.foot__social svg { width: 19px; height: 19px; }
@media (max-width: 720px) { .foot__mark--lockup { height: 80px; } }
@media (min-width: 900px) {
  .foot { text-align: start; }
  .foot__grid { grid-template-columns: 1.3fr 1fr 1.2fr; justify-items: start; align-items: start; gap: 40px; }
  .foot__nav { flex-direction: column; flex-wrap: nowrap; gap: 9px; }
  .foot__contact, .foot__social { justify-content: flex-start; }
  .foot .foot__small { border-top: 1px solid rgba(249, 230, 200, 0.18); padding-top: 18px; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
}

/* menu page: photo items use the home cards; sections sit closer to the list */
.cat .cards--home { margin-bottom: 22px; }
.cat .cards--home + .rows { margin-top: 4px; }
.chip:focus-visible, .group:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* eyebrows: sentence case at a readable size (was tiny tracked capitals) */
.eyebrow { font-size: 14px; }
/* contact card: a real photo of the counter instead of an empty "map soon" box */
.visit__art--photo { display: block; min-height: 360px; }
.visit__art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 72%; border-radius: 0; }
/* cart: the "goes well with" cards fill the order column three across */
@media (min-width: 900px) { .cards--home.cards--pair { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards--home.cards--pair .card--mini { width: auto; }
/* focus rings that show on olive and ink surfaces too */
:is(.foot, .story--teaser, .story--page, .orderbar) :focus-visible { outline-color: var(--cream); }

/* Experience: a page-sized title, one lead moment and three beside each other (no zigzag), then the closing card */
.exp__title { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; margin-bottom: 16px; }
html[lang='ar'] .exp__title { line-height: 1.3; }
.moments { gap: 32px 20px; margin-bottom: 0; }
.moment { grid-template-columns: 1fr; gap: 14px; align-items: start; align-content: start; }
.moment:nth-child(even) img { order: 0; }
.moment img { aspect-ratio: 16 / 10; border-radius: 18px; }
.moment h2 { font-size: 23px; margin-bottom: 6px; }
.moment:first-child img { aspect-ratio: 4 / 3; }
.exp__close { padding-top: 0; }
@media (min-width: 900px) {
  .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .moment:first-child { grid-column: 1 / -1; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
  .moment:first-child img { aspect-ratio: 16 / 10; border-radius: 22px; }
  .moment:first-child h2 { font-size: 34px; }
  .moment:first-child p { font-size: 18px; }
  .moment img { aspect-ratio: 4 / 3; }
}

/* Gallery: one lead photo and one wide one give the grid a rhythm; the rest fill around them */
.gallery { grid-auto-rows: clamp(170px, 19vw, 280px); grid-auto-flow: dense; }
.gallery li { min-height: 0; }
.gallery button { height: 100%; }
.gallery img { height: 100%; aspect-ratio: auto; object-position: 50% 0; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery button:hover img { transform: scale(1.03); }
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(6) { grid-column: span 2; }
@media (max-width: 720px) { .gallery { grid-auto-rows: 200px; } }
.gallery__more { margin: 28px 0 0; text-align: center; }
.gallery__more a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-underline-offset: 4px; font-weight: 500; }
.gallery__more svg { width: 18px; height: 18px; }
/* lightbox: icon buttons, previous/next, a quiet counter */
.lightbox img { max-height: 82vh; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20, 22, 12, 0.6); color: #fff; cursor: pointer; transition: background-color 0.2s; }
.lightbox__btn:hover { background: rgba(20, 22, 12, 0.85); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 10px; inset-inline-end: 10px; font-size: 0; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { inset-inline-start: 10px; }
.lightbox__next { inset-inline-end: 10px; }
.lightbox__next svg, html[dir='rtl'] .lightbox__prev svg { transform: scaleX(-1); }
html[dir='rtl'] .lightbox__next svg { transform: none; }
.lightbox__count { margin: 10px 0 0; text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery li:nth-child(6) img { object-position: 50% 62%; }

/* Contact: live dot on the status; tappable number; WhatsApp first, directions second, Instagram as an icon */
.vstat { display: inline-flex; align-items: center; gap: 8px; }
.vstat i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.vstat i.is-open { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 125, 79, 0.15); }
.visit__facts dd a { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.25); text-underline-offset: 4px; }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.visit__actions .btn { gap: 8px; }
.visit__actions .btn svg { width: 18px; height: 18px; }
.visit__ig { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink); transition: background-color 0.2s, border-color 0.2s; }
.visit__ig:hover { border-color: var(--ink); }
.visit__ig svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .visit__actions { flex-wrap: nowrap; }
  .visit__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  .visit__ig { flex: none; }
  .visit__art--photo { min-height: 0; aspect-ratio: 16 / 10; }
}
/* the FAQ: title beside the questions on wide screens */
@media (min-width: 900px) {
  .faq--split { max-width: none; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
  .faq--split .band__title { margin-top: 12px; }
}
@media (max-width: 720px) { .visit { grid-template-columns: minmax(0, 1fr); } .visit__card { min-width: 0; } }
.visit__actions .btn svg { flex: none; }

/* item: the photo fills its box, no frame-in-a-frame */
.pdp__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
/* Our story: a page-sized title */
.story--page .story__title { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; }
html[lang='ar'] .story--page .story__title { line-height: 1.3; }
.pdp__media--photo { background: none; } .pdp__media--photo img { border-radius: inherit; animation: none; }
