/* ==========================================================================
   ROW Coffee — styles
   Palette taken from the ROW logo and menu boards.
   ========================================================================== */

:root {
  --sand: #e8e1d6;
  --sand-deep: #ddd4c6;
  --paper: #f4efe7;
  --cream: #f3ede4;
  --terracotta: #a9521f;
  --terracotta-deep: #8e4419;
  --ink: #1f1a16;
  --ink-soft: #5d544b;
  --ink-faint: #8b8178;
  --line: rgba(31, 26, 22, 0.14);
  --line-strong: rgba(31, 26, 22, 0.85);
  --pink: #ffc1c2;
  --pink-soft: #ffd9d9;
  --matcha: #3f7a37;
  --matcha-deep: #2b5626;
  --ok: #3b7a3a;
  --error: #b3261e;

  --font-display: "Gloock", "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Poppins", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 26, 22, 0.06), 0 8px 24px rgba(31, 26, 22, 0.06);
  --shadow-lift: 0 2px 4px rgba(31, 26, 22, 0.08), 0 18px 40px rgba(31, 26, 22, 0.12);

  --gutter: 16px;
  --wrap: 1080px;
  --topbar-h: 60px;

  color-scheme: light;
}

html[lang="ar"] {
  --font-display: "Tajawal", "Gloock", serif;
  --font-body: "Tajawal", "Poppins", system-ui, sans-serif;
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 72px); }
html.i18n-wait body { opacity: 0; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: opacity 0.2s ease;
}
html[lang="ar"] body { font-size: 16px; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

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

.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 {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px;
  text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* ---------- top bar (aram-style: small logo left, pills right) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--sand) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar__logo { display: inline-flex; align-items: center; padding: 6px 0; }
.topbar__logo img { height: 22px; width: auto; }
.topbar__nav { display: none; gap: 26px; margin-inline-end: auto; margin-inline-start: 34px; }
.topbar__nav a {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 720px) { .topbar__nav { display: flex; } }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding-inline: 14px;
  border-radius: 999px; border: 0;
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(0.97); }
.pill svg { width: 17px; height: 17px; }
.pill--lang { font-family: "Tajawal", var(--font-body); font-weight: 700; }
html[lang="ar"] .pill--lang { font-family: "Poppins", sans-serif; font-weight: 500; }
@media (max-width: 380px) { .pill__label { display: none; } .pill { padding-inline: 11px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--terracotta); color: var(--cream); }
.btn--primary:hover { background: var(--terracotta-deep); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--soft { background: var(--paper); color: var(--ink); }
.btn--soft:hover { background: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn--block { width: 100%; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- open / closed status ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
}
.status strong { font-weight: 600; color: var(--ink); }
.status__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); flex: none;
}
.status.is-open .status__dot { background: #4caf50; box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.18); }
.status.is-closed .status__dot { background: #c0573a; }

/* ==========================================================================
   HOME — mirrors aram.om: wide rounded hero, centred link stack, image card
   ========================================================================== */
.home { padding-block: 8px 0; }

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 85% 120%, rgba(0, 0, 0, 0.22), transparent 55%),
    radial-gradient(90% 120% at 0% 0%, rgba(255, 220, 190, 0.18), transparent 60%),
    var(--terracotta);
  color: var(--cream);
  width: 100%;
  min-height: 300px;
  aspect-ratio: 16 / 7;
  display: grid; place-items: center;
  isolation: isolate;
}
@media (max-width: 640px) { .hero { aspect-ratio: 4 / 5; min-height: 0; } }
.hero__arches {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 50% 118%, transparent 0 46px, rgba(243, 237, 228, 0.07) 46px 47px);
}
.hero__inner { text-align: center; padding: 32px 20px; }
.hero__logo { width: clamp(180px, 34vw, 380px); height: auto; margin-inline: auto; }
.hero__tagline {
  margin-top: 22px;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  opacity: 0.9;
}
html[lang="ar"] .hero__tagline { letter-spacing: 0; font-size: 17px; font-weight: 500; }
.hero__status {
  position: absolute; inset-block-end: 16px; inset-inline-start: 16px;
  background: rgba(243, 237, 228, 0.94); padding: 7px 14px; border-radius: 999px;
}
.hero__place {
  position: absolute; inset-block-end: 22px; inset-inline-end: 20px;
  font-size: 12px; letter-spacing: 0.08em; opacity: 0.85;
}
@media (max-width: 640px) {
  .hero__place { inset-block-start: 18px; inset-block-end: auto; inset-inline-end: 0; inset-inline-start: 0; text-align: center; }
}

/* centred link stack — the heart of the aram layout */
.links {
  list-style: none; margin: 44px auto 56px; padding: 0;
  display: grid; justify-items: center; gap: 12px;
}
.links a {
  position: relative;
  font-size: 15.5px; color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(31, 26, 22, 0.45);
  transition: color 0.2s, text-decoration-color 0.2s;
}
html[lang="ar"] .links a { font-size: 17px; }
.links a:hover { color: var(--terracotta); text-decoration-color: currentColor; }
.links .tag {
  position: absolute; inset-inline-start: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  text-decoration: none;
}
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--terracotta); color: var(--cream);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6;
}
html[lang="ar"] .tag { letter-spacing: 0; font-size: 12px; }

/* image card + hours */
.duo {
  display: grid; gap: 18px; align-items: stretch;
  grid-template-columns: 1fr;
  max-width: 820px; margin-inline: auto;
}
@media (min-width: 720px) { .duo { grid-template-columns: 1fr 1fr; gap: 24px; } }
.photo-card {
  border-radius: var(--radius); overflow: hidden; background: #e3e2dd;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.info-card {
  border-radius: var(--radius); background: var(--paper); padding: 28px;
  display: flex; flex-direction: column; gap: 22px;
}
.info-card h2 { font-family: var(--font-display); font-size: 30px; color: var(--terracotta); }
html[lang="ar"] .info-card h2 { font-weight: 700; font-size: 28px; }
.hours { margin: 0; display: grid; gap: 14px; }
.hours div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hours div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--ink-soft); font-family: var(--font-num); font-size: 14px; }
.info-card__foot { margin-top: auto; display: grid; gap: 14px; }
.info-card__place { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.info-card__place svg { width: 18px; height: 18px; color: var(--terracotta); flex: none; }

/* gift promo */
.promo {
  margin-top: 64px;
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--pink);
  display: grid; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 760px) { .promo { grid-template-columns: 1.25fr 1fr; } }
.promo__text { padding: 36px 28px 8px; display: grid; gap: 14px; justify-items: start; }
@media (min-width: 760px) { .promo__text { padding: 56px 0 56px 56px; } html[dir="rtl"] .promo__text { padding: 56px 56px 56px 0; } }
.promo__kicker { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--terracotta-deep); }
html[lang="ar"] .promo__kicker { letter-spacing: 0; font-size: 14px; }
.promo h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 48px); color: var(--ink); max-width: 14ch; }
html[lang="ar"] .promo h2 { font-weight: 700; }
.promo p { color: #4a3b38; max-width: 42ch; }
.promo .btn { margin-top: 8px; }
.promo__art { position: relative; height: 280px; }
@media (min-width: 760px) { .promo__art { height: 100%; min-height: 340px; } }
.promo__art::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--pink-soft); inset-block-end: -120px; inset-inline-end: -60px;
}
.promo__cup {
  position: absolute; width: 150px; inset-block-end: 26px; inset-inline-end: 22%;
  transform: rotate(-8deg); filter: drop-shadow(0 18px 18px rgba(80, 30, 30, 0.18));
}
.promo__giftbox { position: absolute; width: 132px; inset-block-end: 22px; inset-inline-end: calc(22% + 120px); }
@media (max-width: 759px) {
  .promo__cup { inset-inline-end: 30%; width: 128px; }
  .promo__giftbox { inset-inline-end: calc(30% + 104px); width: 112px; }
}

/* about + contact */
.section { padding-block: 72px 0; }
.split { display: grid; gap: 22px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1.6fr; gap: 48px; } }
.section__title { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); color: var(--terracotta); }
html[lang="ar"] .section__title { font-weight: 700; }
.prose { display: grid; gap: 14px; font-size: 16.5px; color: #3c342d; max-width: 58ch; }
html[lang="ar"] .prose { font-size: 18px; line-height: 1.8; }
.prose .lead { font-family: var(--font-display); font-size: 22px; color: var(--ink); line-height: 1.35; }
html[lang="ar"] .prose .lead { font-weight: 500; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: var(--paper); border-radius: var(--radius); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-list a:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-list .ic {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sand); color: var(--terracotta);
}
.contact-list .ic svg { width: 21px; height: 21px; }
.contact-list strong { display: block; font-weight: 500; }
.contact-list small { color: var(--ink-soft); font-size: 13px; }

/* footer — centred logo like aram */
.footer {
  margin-top: 96px; padding: 44px var(--gutter) 40px;
  display: grid; justify-items: center; gap: 16px; text-align: center;
  border-top: 1px solid var(--line);
}
.footer__logo img { height: 28px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 13.5px; }
.footer__links a { color: var(--ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__rights { font-size: 12.5px; color: var(--ink-faint); }

/* ==========================================================================
   MENU
   ========================================================================== */
.menu-hero { padding-block: 20px 36px; text-align: center; }
.lockup {
  display: inline-grid; grid-template-columns: auto auto; column-gap: clamp(26px, 9vw, 110px);
  font-family: "Gloock", "Times New Roman", serif; color: var(--terracotta);
  font-size: clamp(72px, 17vw, 176px); line-height: 0.86; letter-spacing: 0.01em;
  user-select: none;
}
.lockup span { display: block; }
.lockup .w { justify-self: center; }
.lockup .nu { justify-self: start; }
.menu-hero__sub { margin-top: 26px; color: var(--ink-soft); }
.menu-hero__meta { margin-top: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.menu-hero__cta { margin-top: 20px; }

.menu-tools {
  position: sticky; top: var(--topbar-h); z-index: 30;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.menu-tools__inner { display: flex; flex-direction: column; gap: 10px; padding-block: 10px; }
@media (min-width: 860px) { .menu-tools__inner { flex-direction: row; align-items: center; } }
.chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
@media (min-width: 860px) { .chips { margin-inline: 0; padding-inline: 0; } }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding-inline: 15px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font-size: 13.5px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
html[lang="ar"] .chip { font-size: 15px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip--matcha.is-active { background: var(--matcha); border-color: var(--matcha); }

.search {
  position: relative; flex: none; width: 100%;
}
@media (min-width: 860px) { .search { width: 260px; order: 2; } }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-faint); pointer-events: none; }
.search input {
  width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); padding-inline: 40px 38px; font-size: 14px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search input:focus { border-color: var(--ink); background: #fff; }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--sand-deep);
  display: grid; place-items: center; color: var(--ink-soft);
}
.search__clear svg { position: static; transform: none; width: 14px; height: 14px; color: currentColor; }

.menu-body { padding-block: 40px 0; }
/* flows like the printed board: two columns, sections never split */
.menu-grid { column-gap: 64px; }
@media (min-width: 860px) { .menu-grid { columns: 2; } }
.menu-grid .msec { break-inside: avoid; margin-bottom: 44px; display: inline-block; width: 100%; }
#menu-feature .msec { margin-bottom: 52px; }

.msec { scroll-margin-top: calc(var(--topbar-h) + var(--tools-h, 110px) + 14px); }
.msec__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding-block: 14px 12px;
}
.msec__title { font-family: var(--font-display); font-size: 30px; color: var(--terracotta); }
html[lang="ar"] .msec__title { font-weight: 700; font-size: 28px; }
.msec__alt { font-size: 15px; color: var(--ink-faint); }
html[lang="en"] .msec__alt { font-family: "Tajawal", sans-serif; font-weight: 500; font-size: 17px; }
html[lang="ar"] .msec__alt { font-family: "Gloock", serif; }
.msec__note { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
html[lang="ar"] .msec__note { font-size: 15px; }

.mlist { list-style: none; margin: 8px 0 0; padding: 0; }
.mitem {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  padding-block: 11px; border-bottom: 1px solid var(--line);
}
.mitem:last-child { border-bottom: 0; }
.mitem__names { display: grid; min-width: 0; }
.mitem__name { font-size: 16px; font-weight: 400; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html[lang="ar"] .mitem__name { font-size: 17.5px; font-weight: 500; }
.mitem__alt { font-size: 13px; color: var(--ink-faint); line-height: 1.4; }
html[lang="en"] .mitem__alt { font-family: "Tajawal", sans-serif; font-size: 14px; }
.mitem__lead { align-self: end; margin-bottom: 9px; border-bottom: 1px dotted rgba(31, 26, 22, 0.32); min-width: 12px; }
.mitem__price { font-size: 15px; font-weight: 500; }
.mitem__prices { display: flex; gap: 18px; }
.mitem__prices .num { min-width: 46px; text-align: end; }
.badge-iced {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding-inline: 7px;
  border-radius: 999px; background: #dfe9ef; color: #2f5a72; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[lang="ar"] .badge-iced { font-size: 12px; letter-spacing: 0; }
.badge-iced svg { width: 11px; height: 11px; }

.gift-btn {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.gift-btn svg { width: 16px; height: 16px; }
.gift-btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.gift-btn.is-added { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: scale(1.08); }
.gift-btn .qty {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--terracotta); color: var(--cream); font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}

.refill-head {
  display: flex; justify-content: flex-end; gap: 18px; padding-inline-end: 44px; margin-top: 10px;
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint);
}
html[lang="ar"] .refill-head { letter-spacing: 0; font-size: 13px; }
.refill-head span { min-width: 46px; text-align: end; }

/* matcha feature */
.msec--feature {
  background: var(--pink); border-radius: var(--radius-lg);
  padding: 28px 22px 26px; position: relative; overflow: hidden;
}
@media (min-width: 760px) { .msec--feature { padding: 40px 44px; } }
.msec--feature .msec__head { border-color: rgba(31, 26, 22, 0.85); }
.msec--feature .msec__title { color: var(--matcha-deep); font-size: 36px; }
.msec--feature .msec__alt { color: rgba(31, 26, 22, 0.55); }
.msec--feature .msec__note { color: #5b4643; }
.feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; position: relative; z-index: 1;
}
@media (min-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .feature-grid { max-width: 72%; } }
.fcard {
  background: rgba(255, 255, 255, 0.55); border-radius: var(--radius); padding: 16px 16px 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fcard .mitem__names { grid-column: 1 / 2; }
.fcard .mitem__name { font-size: 17px; font-weight: 500; }
.fcard__price { font-size: 15px; font-weight: 600; color: var(--matcha-deep); }
.fcard .gift-btn { grid-row: 1 / 3; grid-column: 2; border-color: rgba(31, 26, 22, 0.2); background: rgba(255, 255, 255, 0.6); }
.fcard .gift-btn:hover { background: var(--matcha-deep); border-color: var(--matcha-deep); }
.feature-cup {
  position: absolute; width: 150px; inset-inline-end: 6%; inset-block-end: -6px; transform: rotate(10deg);
  filter: drop-shadow(0 14px 16px rgba(80, 30, 30, 0.16)); pointer-events: none;
}
@media (max-width: 759px) { .feature-cup { width: 92px; inset-block-start: 18px; inset-block-end: auto; inset-inline-end: 14px; } .msec--feature .msec__head { padding-inline-end: 84px; } }
html[dir="rtl"] .feature-cup { transform: rotate(-10deg) scaleX(-1); }

.menu-empty { text-align: center; padding: 40px 0; color: var(--ink-soft); }

/* gift banner on menu */
.gift-banner {
  margin-top: 64px; border-radius: var(--radius-lg); background: var(--ink); color: var(--cream);
  padding: 28px; display: grid; gap: 18px; align-items: center;
}
@media (min-width: 760px) { .gift-banner { grid-template-columns: auto 1fr auto; padding: 30px 36px; gap: 26px; } }
.gift-banner__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--terracotta); display: grid; place-items: center; }
.gift-banner__icon svg { width: 26px; height: 26px; }
.gift-banner h2 { font-family: var(--font-display); font-size: 26px; }
html[lang="ar"] .gift-banner h2 { font-weight: 700; }
.gift-banner p { color: rgba(243, 237, 228, 0.75); margin-top: 6px; }
.gift-banner .btn--soft { background: var(--cream); }

/* printed menus */
.printed { margin-top: 64px; }
.printed h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 18px; }
html[lang="ar"] .printed h2 { font-weight: 700; }
.printed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; }
.printed__grid a { display: grid; gap: 8px; text-decoration: none; font-size: 13px; color: var(--ink-soft); }
.printed__grid img { border-radius: 12px; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.printed__grid a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* floating gift basket */
.basket {
  position: fixed; z-index: 45; inset-inline: 0; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none;
  transform: translateY(140%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.basket.is-visible { transform: none; }
.basket a {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 10px 8px 20px; border-radius: 999px;
  background: var(--terracotta); color: var(--cream); text-decoration: none;
  box-shadow: var(--shadow-lift); max-width: calc(100vw - 32px);
}
html[dir="rtl"] .basket a { padding: 8px 20px 8px 10px; }
.basket__icon { position: relative; display: grid; }
.basket__icon svg { width: 22px; height: 22px; }
.basket__count {
  position: absolute; top: -8px; inset-inline-end: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--cream); color: var(--terracotta); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.basket__label { font-weight: 500; white-space: nowrap; }
.basket__total { opacity: 0.85; white-space: nowrap; }
.basket__go {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 16px; border-radius: 999px;
  background: var(--cream); color: var(--terracotta); font-weight: 600; white-space: nowrap;
}
.basket__go svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .basket__label { display: none; } }

/* toast */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--topbar-h) + 12px);
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow-lift); transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   GIFT
   ========================================================================== */
.gift-head { padding-block: 22px 26px; display: grid; gap: 12px; }
.gift-head h1 { font-family: var(--font-display); font-size: clamp(40px, 7vw, 68px); color: var(--terracotta); }
html[lang="ar"] .gift-head h1 { font-weight: 700; }
.gift-head p { color: var(--ink-soft); max-width: 52ch; font-size: 16px; }

.stepper { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-faint); }
html[lang="ar"] .stepper li { font-size: 15px; }
.stepper li + li::before { content: ""; width: 26px; height: 1px; background: var(--line); margin-inline-end: 0; }
.stepper .n {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-family: var(--font-num);
}
.stepper li.is-current { color: var(--ink); font-weight: 500; }
.stepper li.is-current .n { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.stepper li.is-done { color: var(--ink-soft); }
.stepper li.is-done .n { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.gift-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 120px; }
.gift-main { min-width: 0; }
.order-layout { max-width: 760px; margin-inline: auto; padding-bottom: 120px; }
@media (min-width: 940px) { .gift-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; } }
.gift-aside { display: none; }
@media (min-width: 940px) {
  .gift-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar-h) + 20px); }
}
.gift-aside__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
html[lang="ar"] .gift-aside__label { letter-spacing: 0; font-size: 14px; }

.panel { --pad: 22px; background: var(--paper); border-radius: var(--radius-lg); padding: var(--pad); }
@media (min-width: 640px) { .panel { --pad: 30px; } }
.panel + .panel { margin-top: 16px; }
.panel__title { font-family: var(--font-display); font-size: 26px; }
html[lang="ar"] .panel__title { font-weight: 700; font-size: 24px; }
.panel__sub { color: var(--ink-soft); margin-top: 6px; font-size: 14px; }
html[lang="ar"] .panel__sub { font-size: 15.5px; }
.panel__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 20px; }

/* "Received a gift?" row (BEANZ's "Your gifts") */
.received {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--paper); text-decoration: none;
  border: 1px dashed rgba(169, 82, 31, 0.45); transition: background 0.2s;
}
.received:hover { background: #fff; }
.received__ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--terracotta); color: var(--cream); }
.received__ic svg { width: 20px; height: 20px; }
.received__txt { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.received__txt strong { font-weight: 500; }
.received__txt span { font-size: 13px; color: var(--ink-soft); }
html[lang="ar"] .received__txt span { font-size: 14.5px; }
.received__go { width: 20px; height: 20px; color: var(--ink-faint); flex: none; }

.gift-search { margin-bottom: 6px; }
.gift-search input { background: #fff; height: 46px; }
.gift-block { margin-top: 26px; }
.gift-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gift-block__head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 400; }
html[lang="ar"] .gift-block__head h3 { font-weight: 700; font-size: 20px; }
.gift-block__head span { font-size: 13px; color: var(--ink-soft); }
html[lang="ar"] .gift-block__head span { font-size: 14.5px; }

/* gift credit as banknotes (BEANZ-style) */
.notes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 10px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 8px;
}
.notes::-webkit-scrollbar { display: none; }
.cnote {
  --n-bg: #ece3d4; --n-fg: var(--ink); --n-line: rgba(169, 82, 31, 0.16);
  position: relative; overflow: hidden; scroll-snap-align: start;
  aspect-ratio: 1.6; padding: 12px 14px; border-radius: 12px; border: 0; text-align: start;
  background:
    repeating-radial-gradient(circle at 18% 120%, transparent 0 9px, var(--n-line) 9px 10px),
    var(--n-bg);
  color: var(--n-fg);
  display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 22, 0.08), 0 1px 2px rgba(31, 26, 22, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cnote::after { content: ""; position: absolute; inset: 6px; border: 1px solid currentColor; border-radius: 8px; opacity: 0.18; pointer-events: none; }
.cnote:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(31, 26, 22, 0.08), var(--shadow); }
.cnote[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.cnote--pink { --n-bg: var(--pink); --n-line: rgba(255, 255, 255, 0.4); }
.cnote--terracotta { --n-bg: var(--terracotta); --n-fg: var(--cream); --n-line: rgba(255, 255, 255, 0.09); }
.cnote--matcha { --n-bg: var(--matcha); --n-fg: var(--cream); --n-line: rgba(255, 255, 255, 0.09); }
.cnote__top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.14em; opacity: 0.8; }
html[lang="ar"] .cnote__top { letter-spacing: 0; font-size: 12px; }
.cnote__brand { font-family: "Gloock", serif; letter-spacing: 0.08em; }
.cnote__amt { align-self: center; font-size: 34px; font-weight: 600; line-height: 1; }
.cnote__add {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.55); color: var(--ink);
}
html[dir="rtl"] .cnote__add { padding: 4px 8px 4px 10px; }
.cnote__add svg { width: 13px; height: 13px; }
.cnote[aria-pressed="true"] .cnote__add { background: var(--ink); color: var(--cream); }
@media (min-width: 640px) { .notes { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); margin-inline: 0; padding-inline: 0; overflow: visible; } .cnote { aspect-ratio: 2.1; } .cnote__amt { font-size: 40px; } }

/* ROW favourites row */
.favs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 8px;
}
.favs::-webkit-scrollbar { display: none; }
.fav {
  scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; gap: 10px;
  background: #fff; border-radius: var(--radius); padding: 8px 8px 12px;
  box-shadow: 0 1px 2px rgba(31, 26, 22, 0.06);
}
.fav__art {
  height: 104px; border-radius: 11px; display: grid; place-items: center; overflow: hidden;
  background: var(--terracotta); color: var(--cream);
}
.fav__art svg { width: 54px; height: 54px; }
.fav__art img { height: 92%; width: auto; transform: rotate(-8deg); }
.fav--pink .fav__art { background: var(--pink); }
.fav--sand .fav__art { background: var(--sand-deep); color: var(--terracotta); }
.fav--ink .fav__art { background: var(--ink); }
.fav__body { display: grid; gap: 2px; padding-inline: 4px; align-content: start; }
.fav__name { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
html[lang="ar"] .fav__name { font-size: 16px; }
.fav__price { font-size: 13px; color: var(--ink-soft); }
.fav .qty-ctl { justify-self: start; margin-inline-start: 4px; }

/* option cards — dine-in / take-away and pick-up time */
.type-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .type-list { grid-template-columns: 1fr 1fr; } }
.type-opt {
  display: flex; align-items: center; gap: 16px; text-align: start;
  width: 100%; padding: 18px; border-radius: var(--radius);
  background: #fff; border: 1.5px solid transparent; box-shadow: 0 1px 2px rgba(31, 26, 22, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.type-opt:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.type-opt[aria-checked="true"] { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(169, 82, 31, 0.12); }
.type-opt:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.type-opt__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--sand); color: var(--terracotta); }
.type-opt__ic svg { width: 26px; height: 26px; }
.type-opt[aria-checked="true"] .type-opt__ic { background: var(--terracotta); color: var(--cream); }
.type-opt__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.type-opt__txt strong { font-weight: 500; font-size: 16px; }
.type-opt__txt span { font-size: 13px; color: var(--ink-soft); }
html[lang="ar"] .type-opt__txt span { font-size: 14.5px; }
.type-opt__radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.type-opt[aria-checked="true"] .type-opt__radio { border-color: var(--terracotta); }
.type-opt[aria-checked="true"] .type-opt__radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--terracotta); }
.type-opt--sm { padding: 14px 16px; }
.type-opt--sm .type-opt__ic { width: 40px; height: 40px; border-radius: 12px; }
.type-opt--sm .type-opt__ic svg { width: 20px; height: 20px; }

.mode-extra { margin-top: 22px; display: grid; gap: 16px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding-inline: 14px 40px; font-size: 15px; outline: none; }
.select select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 26, 22, 0.06); }
.select svg { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--ink-soft); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(192, 87, 58, 0.1); color: #7a3320; font-size: 14px; margin-bottom: 16px;
}
html[lang="ar"] .notice { font-size: 15px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice strong { display: block; font-weight: 600; }
.active-order {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 18px;
  border-radius: var(--radius); background: var(--ink); color: var(--cream); text-decoration: none;
}
.active-order strong { font-weight: 500; flex: 1; }
.active-order span { font-size: 13.5px; opacity: 0.85; white-space: nowrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #5ccf6a; flex: none; box-shadow: 0 0 0 0 rgba(92, 207, 106, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(92, 207, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 207, 106, 0); } }
.table-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.table-lock strong { font-weight: 600; }

/* order tracking */
.track { max-width: 640px; margin-inline: auto; padding-block: 18px 60px; display: grid; gap: 18px; }
.track-card { background: var(--paper); border-radius: var(--radius-lg); padding: 26px 22px; display: grid; gap: 20px; }
@media (min-width: 640px) { .track-card { padding: 34px; } }
.track-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.track-head h1 { font-family: var(--font-display); font-size: clamp(40px, 9vw, 60px); color: var(--terracotta); line-height: 1; }
html[lang="ar"] .track-head h1 { font-weight: 700; }
.track-head .badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding-inline: 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; }
.track-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--ink-soft); }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.track-steps::before { content: ""; position: absolute; top: 15px; inset-inline: 12.5%; height: 2px; background: var(--line); }
.track-steps li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--ink-faint); }
html[lang="ar"] .track-steps li { font-size: 14px; }
.track-steps .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: grid; place-items: center; z-index: 1; transition: background 0.3s, border-color 0.3s; }
.track-steps .dot svg { width: 15px; height: 15px; opacity: 0; }
.track-steps li.is-done { color: var(--ink-soft); }
.track-steps li.is-done .dot { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.track-steps li.is-done .dot svg { opacity: 1; }
.track-steps li.is-current { color: var(--ink); font-weight: 600; }
.track-steps li.is-current .dot { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); box-shadow: 0 0 0 6px rgba(169, 82, 31, 0.15); }
.track-steps li.is-current .dot svg { opacity: 1; }
.track-msg { font-family: var(--font-display); font-size: clamp(22px, 4.6vw, 28px); line-height: 1.3; }
html[lang="ar"] .track-msg { font-weight: 700; }
.track-card.is-ready { background: #e7f2e3; }
.track-card.is-cancelled { background: #f6e4df; }
.track-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }

/* item picker */
.chips.picker-chips { margin: 0 calc(var(--pad) * -1) 8px; padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.picker-cat { margin-top: 18px; }
.picker-cat h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 4px; }
html[lang="ar"] .picker-cat h3 { letter-spacing: 0; font-size: 14px; }
.prow {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.prow:last-child { border-bottom: 0; }
.prow__name { font-size: 15.5px; }
html[lang="ar"] .prow__name { font-size: 17px; font-weight: 500; }
.prow__price { font-size: 13.5px; color: var(--ink-soft); }
.qty-ctl { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 999px; padding: 3px; box-shadow: 0 0 0 1px var(--line); }
.qty-ctl button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.qty-ctl button:hover { background: var(--sand); }
.qty-ctl button.add { background: var(--terracotta); color: var(--cream); }
.qty-ctl button.add:hover { background: var(--terracotta-deep); }
.qty-ctl button svg { width: 15px; height: 15px; }
.qty-ctl .q { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.qty-ctl.is-zero { box-shadow: none; background: transparent; }
.qty-ctl.is-zero .minus, .qty-ctl.is-zero .q { display: none; }

.amount-other { margin-top: 14px; display: grid; gap: 6px; max-width: 280px; }

/* form */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field .label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
html[lang="ar"] .field label, html[lang="ar"] .field .label { font-size: 15px; }
.field label .opt { color: var(--ink-faint); font-weight: 400; }
.req { color: var(--terracotta); margin-inline-start: 2px; }
.input, .textarea {
  width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  padding-inline: 14px; outline: none; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; min-height: 104px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 26, 22, 0.06); }
.field.has-error .input, .field.has-error .textarea, .field.has-error .phone { border-color: var(--error); }
.field__error { font-size: 12.5px; color: var(--error); min-height: 0; }
.field__hint { font-size: 12.5px; color: var(--ink-faint); display: flex; justify-content: space-between; gap: 8px; }
/* phone numbers read left-to-right in Arabic too */
.phone { direction: ltr; display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.phone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 26, 22, 0.06); }
.phone__cc { display: flex; align-items: center; gap: 8px; padding-inline: 12px; border-inline-end: 1px solid var(--line); font-family: var(--font-num); font-size: 14.5px; background: var(--paper); }
.phone__flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; flex: none; }
.phone .input { border: 0; border-radius: 0; box-shadow: none !important; text-align: left; }

.occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.subhead { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); margin: 6px 0 2px; }
html[lang="ar"] .subhead { letter-spacing: 0; font-size: 14.5px; }
.divider { height: 1px; background: var(--line); margin-block: 8px; border: 0; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 46px; height: 28px; border-radius: 999px; background: var(--sand-deep); position: relative; flex: none; transition: background 0.2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start 0.2s; }
.switch input:checked + .switch__track { background: var(--terracotta); }
.switch input:checked + .switch__track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.switch__txt { display: grid; }
.switch__txt strong { font-weight: 500; }
.switch__txt span { font-size: 13px; color: var(--ink-soft); }

/* card design picker */
.design-groups { display: grid; gap: 18px; }
.design-group__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }
html[lang="ar"] .design-group__label { letter-spacing: 0; font-size: 13.5px; }
.design-group--suggested .design-group__label { color: var(--terracotta); }
.design-group__label svg { width: 15px; height: 15px; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.design { display: grid; gap: 7px; background: none; border: 0; padding: 0; text-align: center; font-size: 12px; line-height: 1.3; color: var(--ink-soft); }
html[lang="ar"] .design { font-size: 13.5px; }
.design__thumb {
  position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.58; border-radius: 10px;
  background: var(--gc-bg); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.2s, transform 0.2s;
}
.design__thumb img { position: absolute; top: 8px; inset-inline-start: 8px; height: 8px; width: auto; }
.design:hover .design__thumb { transform: translateY(-2px); }
.design[aria-checked="true"] { color: var(--ink); font-weight: 500; }
.design[aria-checked="true"] .design__thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

/* review */
.summary { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.summary li:last-child { border-bottom: 0; }
.summary .qty { color: var(--ink-faint); font-family: var(--font-num); margin-inline-end: 6px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--ink); }
.summary-total strong { font-size: 22px; font-weight: 600; }
.kv { display: grid; gap: 12px; margin: 0; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.kv dt { color: var(--ink-faint); font-size: 13.5px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.review-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .review-grid { grid-template-columns: 1fr 1fr; } }
.note {
  display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: rgba(169, 82, 31, 0.08); color: #5a3a24; font-size: 14px;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--terracotta); margin-top: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--terracotta); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.review-preview { display: block; }
@media (min-width: 940px) { .review-preview { display: none; } }

/* action bar */
.actionbar {
  position: fixed; z-index: 35; inset-inline: 0; bottom: 0;
  background: color-mix(in srgb, var(--sand) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
}
.actionbar__inner { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 12px; }
.actionbar__sum { display: grid; margin-inline-end: auto; line-height: 1.3; }
.actionbar__sum small { color: var(--ink-soft); font-size: 12.5px; }
.actionbar__sum strong { font-size: 18px; font-weight: 600; }
.actionbar .btn { min-height: 48px; }
.has-actionbar .footer { padding-bottom: 120px; }
.actionbar .btn--back { padding-inline: 16px; }
@media (max-width: 420px) { .actionbar .btn--back span { display: none; } }

/* gift card preview */
.gcard {
  --gc-bg: var(--terracotta); --gc-fg: var(--cream); --gc-muted: rgba(243, 237, 228, 0.72);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.58; width: 100%; border-radius: 20px; padding: 22px;
  background: var(--gc-bg); color: var(--gc-fg);
  display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow-lift);
  text-align: start;
}
.review-preview .gcard { max-width: 420px; margin-inline: auto; }
.gcard__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html[dir="rtl"] .gcard__art { transform: scaleX(-1); }
.gcard__top { display: flex; justify-content: space-between; align-items: center; }
.gcard__logo { height: 18px; width: auto; }
.gcard__code { font-family: var(--font-num); font-size: 11.5px; letter-spacing: 0.14em; direction: ltr; padding: 3px 9px; border-radius: 999px; background: var(--gc-chip, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gcard__mid { align-self: center; display: grid; gap: 2px; min-width: 0; max-width: 70%; }
.gcard__label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gc-muted); }
html[lang="ar"] .gcard__label { letter-spacing: 0; font-size: 13px; }
.gcard__to { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="ar"] .gcard__to { font-weight: 700; }
.gcard__to.is-placeholder { opacity: 0.45; }
.gcard__msg { font-size: 13.5px; color: var(--gc-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: italic; }
html[lang="ar"] .gcard__msg { font-style: normal; font-size: 14.5px; }
.gcard__bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; font-size: 12.5px; }
.gcard__what { font-weight: 500; }
.gcard__what .num { font-weight: 600; }
.gcard__from { color: var(--gc-fg); text-align: end; padding: 2px 8px; border-radius: 999px; background: var(--gc-chip, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gcard-meta { font-size: 13px; color: var(--ink-soft); text-align: center; }

/* done */
.done { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: 20px 10px; }
.done__check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.done__check svg { width: 34px; height: 34px; }
.done h2 { font-family: var(--font-display); font-size: 34px; }
html[lang="ar"] .done h2 { font-weight: 700; }
.done p { color: var(--ink-soft); max-width: 46ch; }
.done__code { font-family: var(--font-num); font-size: 24px; font-weight: 600; letter-spacing: 0.12em; background: #fff; padding: 10px 20px; border-radius: 12px; border: 1px dashed var(--terracotta); direction: ltr; }
.done__card { width: min(100%, 380px); margin-block: 6px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.done-link {
  width: min(100%, 470px); display: grid; justify-items: center; gap: 10px; margin-top: 6px; padding: 22px 18px;
  border-radius: var(--radius-lg); background: linear-gradient(160deg, #fff8ee, #fbe7da);
  box-shadow: inset 0 0 0 1px rgba(169, 82, 31, 0.14);
}
.done-link__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--terracotta); color: var(--cream); }
.done-link__icon svg { width: 24px; height: 24px; }
.done-link__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
html[lang="ar"] .done-link__title { font-weight: 700; }
.done .done-link__text { margin: 0; max-width: 40ch; }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #17834a; }
.order-text { width: 100%; max-width: 460px; text-align: start; white-space: pre-wrap; font-size: 13px; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--line); max-height: 220px; overflow: auto; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* 404 */
.notfound { min-height: calc(100vh - var(--topbar-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 40px; }
.notfound__inner { display: grid; gap: 16px; justify-items: center; }
.notfound .big { font-family: "Gloock", serif; font-size: clamp(96px, 22vw, 200px); color: var(--terracotta); line-height: 0.9; }
.notfound h1 { font-family: var(--font-display); font-size: 32px; }
html[lang="ar"] .notfound h1 { font-weight: 700; }
.notfound p { color: var(--ink-soft); max-width: 40ch; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ==========================================================================
   BOTTOM TAB BAR (every screen size) — the app's floating glass bar. A glass "lens" sits under the current tab;
   press and it swells, drag along the bar and it follows your finger, let go and it opens that tab.
   Between pages the bar stays put and the lens glides (cross-page view transitions).
   ========================================================================== */
:root { --tabbar-h: 64px; --tabbar-space: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); }
body:has(> .tabbar) { padding-bottom: var(--tabbar-space); }

.tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  position: fixed; z-index: 50; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 460px; margin-inline: auto;
  height: var(--tabbar-h); padding: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 239, 231, 0.5));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px rgba(255, 255, 255, 0.45),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.6),
    0 0 0 0.5px rgba(70, 40, 20, 0.1),
    0 14px 34px -8px rgba(70, 40, 20, 0.28),
    0 3px 8px rgba(70, 40, 20, 0.08);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  view-transition-name: row-tabbar;
}
/* the glass sheen across the top half */
.tabbar::before {
  content: ""; position: absolute; inset: 0 0 50%; border-radius: 999px 999px 40% 40% / 999px 999px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.tabbar__lens {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; inset-inline-start: 5px;
  width: calc((100% - 10px) / 5);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 237, 228, 0.8));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 2px rgba(169, 82, 31, 0.1),
    0 0 0 0.5px rgba(169, 82, 31, 0.12),
    0 6px 16px -4px rgba(169, 82, 31, 0.3);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.55s cubic-bezier(0.28, 1.32, 0.45, 1), scale 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s ease, background 0.25s ease;
  view-transition-name: row-tabbar-lens;
}
html[dir="rtl"] .tabbar__lens { transform: translateX(calc(var(--i, 0) * -100%)); }
.tabbar:not(.has-lens) .tabbar__lens { opacity: 0; scale: 0.6; }
/* pressed: the lens swells into clear glass under the finger and follows it quickly */
.tabbar.is-pressed .tabbar__lens {
  scale: 1.08 1.14;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 240, 232, 0.45));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 3px 8px rgba(255, 255, 255, 0.85),
    inset 0 -3px 8px rgba(169, 82, 31, 0.12),
    0 10px 26px -6px rgba(169, 82, 31, 0.38);
  transition-duration: 0.32s, 0.3s, 0.25s, 0.25s;
}

.tabbar__item {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none;
  color: rgba(31, 26, 22, 0.58); text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif; font-size: 10.5px; font-weight: 500; line-height: 1.15; letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}
html[lang="ar"] .tabbar__item { font-family: "Tajawal", sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: 0; }
.tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar__item svg { width: 24px; height: 24px; fill: currentColor; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tabbar__item.is-lit { color: var(--terracotta); }
.tabbar.is-pressed .tabbar__item.is-lit svg { transform: scale(1.16) translateY(-1px); }
.tabbar__item:focus-visible { outline-offset: -3px; border-radius: 999px; }
@media (hover: hover) {
  .tabbar__item:not(.is-lit):hover { color: var(--ink); }
  .tabbar__item:not(.is-lit):hover svg { transform: translateY(-1px) scale(1.06); }
}

/* "More": a glass menu that springs up from the bar */
.tabsheet { display: block; position: fixed; inset: 0; z-index: 49; }
.tabsheet__scrim { position: absolute; inset: 0; background: rgba(31, 22, 14, 0.16); opacity: 0; transition: opacity 0.3s ease; }
.tabsheet.is-open .tabsheet__scrim { opacity: 1; }
.tabsheet__panel {
  /* lined up with the end of the bar, which is centred and at most 460 px wide */
  position: absolute; inset-inline-end: calc(max(12px, 50% - 230px) + 2px); bottom: calc(var(--tabbar-space) + 6px);
  width: min(300px, calc(100vw - 28px));
  display: grid; padding: 7px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 239, 231, 0.7));
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.6),
    0 0 0 0.5px rgba(70, 40, 20, 0.1),
    0 22px 48px -12px rgba(70, 40, 20, 0.34);
  transform-origin: 88% 100%;
  opacity: 0; scale: 0.55; translate: 0 22px;
  transition: opacity 0.2s ease, scale 0.5s cubic-bezier(0.28, 1.32, 0.45, 1), translate 0.5s cubic-bezier(0.28, 1.32, 0.45, 1);
}
html[dir="rtl"] .tabsheet__panel { transform-origin: 12% 100%; }
.tabsheet.is-open .tabsheet__panel { opacity: 1; scale: 1; translate: 0 0; }
.tabsheet__row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 0; border-radius: 20px; background: none; color: var(--ink); text-decoration: none; text-align: start;
  font-size: 15px; font-weight: 500; -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}
html[lang="ar"] .tabsheet__row { font-size: 16.5px; }
.tabsheet__row:active { background: rgba(169, 82, 31, 0.1); transform: scale(0.98); }
@media (hover: hover) { .tabsheet__row:hover { background: rgba(169, 82, 31, 0.07); } }
.tabsheet__row svg { width: 22px; height: 22px; flex: none; fill: var(--terracotta); }
.tabsheet__value { margin-inline-start: auto; color: var(--terracotta); font-weight: 600; }

/* the page's own bottom bars float above the tab bar */
.basket { bottom: calc(var(--tabbar-space) + 10px); }
.actionbar {
  inset-inline: 12px; bottom: calc(var(--tabbar-space) + 8px);
  max-width: 760px; margin-inline: auto;
  padding: 9px; padding-inline-start: 18px; border: 0; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 239, 231, 0.66));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 0.5px rgba(70, 40, 20, 0.1), 0 12px 30px -10px rgba(70, 40, 20, 0.3);
}
.has-actionbar .footer { padding-bottom: 104px; }

/* moving between pages: the page cross-fades, the top bar and tab bar stay put, the lens glides */
@view-transition { navigation: auto; }
.topbar { view-transition-name: row-topbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.24s; }
::view-transition-group(row-tabbar-lens) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.28, 1.32, 0.45, 1); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
