/* ==========================================================================
   Donut X — styles
   Palette from the Donut X badge, pink boxes and highlight covers:
   magenta badge, bubblegum and blush pinks, chocolate text, the yellow box logo.
   ========================================================================== */

:root {
  --bg: #fff1f6;            /* blush paper */
  --bg-deep: #fbdbe9;
  --paper: #ffffff;
  --cream: #ffffff;         /* text on brand colours */
  --pink: #fdb3d4;          /* bubblegum, from the profile picture */
  --pink-soft: #ffd3e6;
  --hot: #ee4f98;           /* the posts' hot pink */
  --brand: #c4078c;         /* badge magenta */
  --brand-deep: #9b066f;
  --yellow: #ffd84a;        /* logo on the box */
  --orange: #f7941d;        /* the X */
  --pistachio: #8fb54e;
  --ink: #3b2121;           /* chocolate */
  --ink-soft: #6d4c51;
  --ink-faint: #a0838a;
  --line: rgba(59, 33, 33, 0.12);
  --line-strong: rgba(59, 33, 33, 0.85);
  --ok: #2f8a4a;
  --error: #c0262d;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Nunito", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(120, 20, 70, 0.06), 0 8px 24px rgba(120, 20, 70, 0.08);
  --shadow-lift: 0 2px 4px rgba(120, 20, 70, 0.1), 0 18px 40px rgba(120, 20, 70, 0.16);

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

  color-scheme: light;
}

html[lang="ar"] {
  --font-display: "Baloo Bhaijaan 2", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Nunito", 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(--bg);
  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: 600; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand);
  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(--bg) 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: 36px; width: auto; }
.topbar__nav { display: none; gap: 26px; margin-inline-end: auto; margin-inline-start: 34px; }
.topbar__nav a {
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: var(--brand); border-color: var(--brand); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 760px) { .topbar__nav { display: flex; } }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding-inline: 15px;
  border-radius: 999px; border: 0;
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 1px 2px rgba(120, 20, 70, 0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.pill:hover { background: var(--brand); color: var(--cream); }
.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: "Nunito", sans-serif; font-weight: 700; }
@media (max-width: 400px) { .pill__label { display: none; } .pill { padding-inline: 11px; } .topbar__logo img { height: 32px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; 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(--brand); color: var(--cream); box-shadow: 0 6px 16px rgba(196, 7, 140, 0.25); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #241313; }
.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: var(--pink-soft); }
.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: #34b35a; box-shadow: 0 0 0 4px rgba(52, 179, 90, 0.18); }
.status.is-closed .status__dot { background: var(--hot); }

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

/* icing drip with white sprinkles, like the highlight covers on Instagram */
.drip { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 90px; pointer-events: none; z-index: -1; }
html[dir="rtl"] .drip { transform: scaleX(-1); }

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 85% 120%, rgba(80, 0, 50, 0.32), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 120, 200, 0.25), transparent 60%),
    var(--brand);
  color: var(--cream);
  width: 100%;
  min-height: 320px;
  aspect-ratio: 16 / 7;
  display: grid; place-items: center;
  isolation: isolate;
}
@media (max-width: 640px) { .hero { aspect-ratio: 4 / 5; min-height: 0; } }
.hero__sprinkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9; }
.hero__inner { text-align: center; padding: 64px 20px 40px; display: grid; justify-items: center; }
.hero__logo { width: clamp(150px, 24vw, 250px); height: auto; filter: drop-shadow(0 14px 22px rgba(70, 0, 40, 0.35)); animation: float 6s ease-in-out infinite; }
.hero__wordmark { width: clamp(150px, 20vw, 220px); height: auto; margin-top: 18px; }
.hero__tagline {
  margin-top: 12px;
  font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); font-weight: 500;
}
html[lang="ar"] .hero__tagline { font-size: clamp(20px, 2.8vw, 27px); }
.hero__status {
  position: absolute; inset-block-end: 16px; inset-inline-start: 16px;
  background: rgba(255, 255, 255, 0.95); padding: 7px 14px; border-radius: 999px;
}
.hero__place {
  position: absolute; inset-block-end: 22px; inset-inline-end: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.9;
}
.hero__donut {
  position: absolute; width: clamp(96px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.95); box-shadow: 0 14px 30px rgba(70, 0, 40, 0.35);
}
.hero__donut--a { inset-inline-start: 7%; top: 30%; transform: rotate(-10deg); }
.hero__donut--b { inset-inline-end: 7%; top: 22%; transform: rotate(12deg); }
@media (max-width: 640px) {
  .hero__place { inset-block-start: 18px; inset-block-end: auto; inset-inline: 0; text-align: center; color: var(--brand-deep); }
  .hero__donut { width: 62px; border-width: 3px; }
  .hero__donut--a { inset-inline-start: 4%; top: 30%; }
  .hero__donut--b { inset-inline-end: 4%; top: 48%; }
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }

/* 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: 13px;
}
.links a {
  position: relative;
  font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  text-decoration-color: rgba(196, 7, 140, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}
html[lang="ar"] .links a { font-size: 18px; }
.links a:hover { color: var(--brand); 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 9px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.6;
}
html[lang="ar"] .tag { letter-spacing: 0; font-size: 12px; }

/* image card + branches */
.duo {
  display: grid; gap: 18px; align-items: stretch;
  grid-template-columns: 1fr;
  max-width: 880px; margin-inline: auto;
}
@media (min-width: 760px) { .duo { grid-template-columns: 0.9fr 1.1fr; gap: 24px; } }
.photo-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--pink);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card__label {
  position: absolute; inset-block-end: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.95); color: var(--brand); font-weight: 800; font-size: 14px; text-decoration: none;
}
.photo-card__label svg { width: 16px; height: 16px; }
.info-card {
  border-radius: var(--radius); background: var(--paper); padding: 26px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow);
}
.info-card h2 { font-family: var(--font-display); font-size: 30px; color: var(--brand); }
html[lang="ar"] .info-card h2 { font-size: 30px; }
.branches { display: grid; gap: 14px; }
.branch { border-radius: var(--radius-sm); background: var(--bg); padding: 16px 16px 14px; display: grid; gap: 10px; }
.branch__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.branch__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.branch__tag { font-family: var(--font-body); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--pink-soft); color: var(--brand); }
.branch__place { margin-top: -4px; font-size: 13.5px; color: var(--ink-soft); }
.branch__map { justify-self: start; font-size: 13.5px; font-weight: 700; color: var(--brand); text-underline-offset: 4px; }
.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { font-weight: 700; font-size: 14px; }
.hours dd { margin: 0; grid-column: 2; color: var(--ink-soft); font-family: var(--font-num); font-size: 14px; text-align: end; }
.hours-note { font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.hours-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--brand); }

/* gift promo */
.promo {
  margin-top: 64px;
  position: relative; overflow: hidden; isolation: isolate;
  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: 64px 28px 8px; display: grid; gap: 14px; justify-items: start; }
@media (min-width: 760px) { .promo__text { padding: 72px 0 56px 56px; } html[dir="rtl"] .promo__text { padding: 72px 56px 56px 0; } }
.promo__kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--brand-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, 50px); color: var(--ink); max-width: 14ch; }
.promo p { color: #5a3640; max-width: 42ch; }
.promo .btn { margin-top: 8px; }
.promo .drip { height: 56px; }
.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__photo {
  position: absolute; width: 168px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; inset-block-end: 40px; inset-inline-end: 16%;
  border: 6px solid #fff; transform: rotate(8deg); box-shadow: 0 18px 30px rgba(120, 20, 70, 0.22);
}
.promo__giftbox { position: absolute; width: 140px; inset-block-end: 22px; inset-inline-end: calc(16% + 130px); }
@media (max-width: 759px) {
  .promo__photo { inset-inline-end: 22%; width: 140px; }
  .promo__giftbox { inset-inline-end: calc(22% + 112px); width: 116px; }
}

/* events: towers, the donut cart, boxes */
.events { margin-top: 72px; }
.events__head { display: grid; gap: 10px; max-width: 640px; }
.kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--brand); }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; }
.events__head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 48px); }
.events__head p { color: var(--ink-soft); font-size: 16.5px; }
.event-grid { margin-top: 26px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }
.event { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.event img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.event__body { padding: 16px 18px 20px; display: grid; gap: 4px; align-content: start; }
.event__body h3 { font-family: var(--font-display); font-size: 21px; color: var(--brand); }
.event__body p { font-size: 14.5px; color: var(--ink-soft); }
.events__cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.events__cta small { color: var(--ink-faint); font-size: 13px; max-width: 46ch; }

/* talabat delivery strip */
.delivery {
  margin-top: 64px; border-radius: var(--radius-lg); padding: 24px 26px;
  background: var(--ink); color: #fff; display: grid; gap: 16px; align-items: center;
}
@media (min-width: 760px) { .delivery { grid-template-columns: auto 1fr auto; padding: 26px 34px; gap: 24px; } }
.delivery__ic { width: 54px; height: 54px; border-radius: 50%; background: #ff5a00; display: grid; place-items: center; }
.delivery__ic svg { width: 28px; height: 28px; }
.delivery h2 { font-family: var(--font-display); font-size: 24px; }
.delivery p { color: rgba(255, 255, 255, 0.75); }
.btn--talabat { background: #ff5a00; color: #fff; }
.btn--talabat:hover { background: #e24f00; }

/* 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(--brand); }
.prose { display: grid; gap: 14px; font-size: 16.5px; color: #4d3236; max-width: 58ch; }
html[lang="ar"] .prose { font-size: 18px; line-height: 1.85; }
.prose .lead { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink); line-height: 1.4; }

.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 { 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(--pink-soft); color: var(--brand);
}
.contact-list .ic svg { width: 21px; height: 21px; }
.contact-list strong { display: block; font-weight: 700; }
.contact-list small { color: var(--ink-soft); font-size: 13px; }

/* footer — centred logo like aram */
.footer {
  position: relative; margin-top: 96px; padding: 48px var(--gutter) 40px;
  display: grid; justify-items: center; gap: 16px; text-align: center;
  border-top: 1px solid var(--line);
}
.footer__logo img { height: 64px; width: auto; }
.footer__tag { font-family: var(--font-display); font-size: 17px; color: var(--brand); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14px; font-weight: 600; }
.footer__links a { color: var(--ink-soft); text-decoration: none; }
.footer__links a:hover { color: var(--brand); 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-flex; flex-direction: column; align-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--brand);
  line-height: 0.9; letter-spacing: 0.01em; user-select: none;
}
.lockup__top { display: inline-flex; align-items: center; font-size: clamp(64px, 15vw, 150px); }
.lockup__o { display: inline-block; width: 0.78em; height: 0.78em; margin-inline: 0.03em; animation: spin 18s linear infinite; }
.lockup__x { color: var(--orange); margin-inline-start: 0.18em; }
.lockup__menu {
  margin-top: 0.12em; font-size: clamp(30px, 6.4vw, 62px); letter-spacing: 0.32em; padding-inline-start: 0.32em;
  color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }
.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; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.menu-tools {
  position: sticky; top: var(--topbar-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 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: 38px; padding-inline: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft);
  font-size: 14px; font-weight: 700; 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(--brand); color: var(--brand); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.chip--feature.is-active { background: var(--hot); border-color: var(--hot); }

.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: 42px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); padding-inline: 40px 38px; font-size: 14.5px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search input:focus { border-color: var(--brand); }
.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(--bg-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; }
/* two columns side by side: Ring Donuts | Donut Bombs, then Specials | Ice Cream */
.menu-grid { display: grid; gap: 0 56px; align-items: start; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-grid .msec { margin-bottom: 44px; }
#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-bottom: 3px dotted rgba(196, 7, 140, 0.35);
  padding-block: 10px 12px;
}
.msec__title { font-family: var(--font-display); font-size: 32px; color: var(--brand); }
.msec__alt { font-size: 15px; color: var(--ink-faint); }
html[lang="en"] .msec__alt { font-family: "Baloo Bhaijaan 2", "Tajawal", sans-serif; font-weight: 600; font-size: 18px; }
html[lang="ar"] .msec__alt { font-family: "Fredoka", sans-serif; font-weight: 500; }
.msec__note { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
html[lang="ar"] .msec__note { font-size: 15.5px; }

.mlist { list-style: none; margin: 8px 0 0; padding: 0; }
.mitem {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.mitem:last-child { border-bottom: 0; }
.mitem__img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--pink); box-shadow: 0 1px 2px rgba(120, 20, 70, 0.1); }
.mitem__img--art { display: grid; place-items: center; }
.mitem__img--art svg { width: 88%; height: 88%; }
.mitem__names { display: grid; min-width: 0; }
.mitem__name { font-size: 16.5px; font-weight: 700; }
html[lang="ar"] .mitem__name { font-size: 18px; }
.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__desc { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
html[lang="ar"] .mitem__desc { font-size: 14px; }
.mitem__lead { align-self: end; margin-bottom: 11px; border-bottom: 2px dotted rgba(59, 33, 33, 0.22); min-width: 10px; }
.mitem__price { font-size: 15.5px; font-weight: 800; color: var(--brand); }
@media (max-width: 420px) { .mitem__lead { display: none; } .mitem { grid-template-columns: auto minmax(0, 1fr) auto auto; } .mitem__img { width: 54px; height: 54px; border-radius: 15px; } }

/* dishes that come in sizes: photo + names on top, size pills underneath */
.mitem--sizes { grid-template-columns: auto minmax(0, 1fr); }
.mitem--sizes .sizes { grid-column: 2; }
.sizes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
}
html[dir="rtl"] .size { padding: 4px 12px 4px 4px; }
.size__label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.size__price { font-size: 14.5px; font-weight: 800; color: var(--brand); }
.size .gift-btn { width: 30px; height: 30px; }

.gift-btn {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--paper); 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(--brand); border-color: var(--brand); 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(--brand); color: var(--cream); font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
}

/* boxes feature */
.msec--feature {
  background: var(--pink); border-radius: var(--radius-lg);
  padding: 72px 22px 26px; position: relative; overflow: hidden; isolation: isolate;
}
@media (min-width: 760px) { .msec--feature { padding: 80px 44px 40px; } .msec--feature .msec__head, .msec--feature .msec__note { max-width: 74%; } }
.msec--feature .msec__head { border-color: rgba(156, 6, 111, 0.35); }
.msec--feature .msec__title { color: var(--brand-deep); font-size: 38px; }
.msec--feature .msec__alt { color: rgba(59, 33, 33, 0.55); }
.msec--feature .msec__note { color: #5a3640; }
.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: repeat(3, 1fr); } }
@media (min-width: 760px) { .feature-grid { max-width: 74%; grid-template-columns: repeat(3, 1fr); } }
.fcard {
  background: rgba(255, 255, 255, 0.82); border-radius: var(--radius); padding: 16px;
  display: grid; gap: 10px; align-content: start;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fcard .mitem__name { font-size: 17px; }
.fcard .sizes { margin-top: 0; }
@media (min-width: 560px) {
  .fcard .sizes { flex-direction: column; align-items: stretch; }
  .fcard .size { justify-content: space-between; }
  .fcard .size__price { margin-inline-start: auto; }
}
.fcard__price { font-size: 15px; font-weight: 800; color: var(--brand); }
.feature-photo {
  position: absolute; width: 210px; inset-inline-end: 4%; inset-block-end: 26px; transform: rotate(6deg);
  border-radius: 18px; border: 6px solid #fff; box-shadow: var(--shadow-lift); pointer-events: none;
}
@media (max-width: 759px) { .feature-photo { display: none; } }
html[dir="rtl"] .feature-photo { transform: rotate(-6deg); }

/* booking link under the donut tower's sizes */
.size-book {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none;
}
.size-book svg { width: 15px; height: 15px; }
.mitem--sizes .size-book { grid-column: 2; justify-self: start; }

/* drawn thumbnails for ice creams and drinks */
.mitem__img--cup, .prow__img--cup, .fav__img--cup { background: #fde7f0; }
.mitem__img--hot, .prow__img--hot, .fav__img--hot { background: #f6e6dc; }
.mitem__img--cold, .prow__img--cold, .fav__img--cold { background: #e3f3f6; }

.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(--hot); 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(255, 255, 255, 0.78); margin-top: 6px; }
.gift-banner .btn--soft { background: #fff; color: var(--ink); }

.menu-delivery { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--ink-soft); }
.menu-delivery a { color: #e24f00; font-weight: 800; }

/* 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(--brand); 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(--brand); 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(--brand); 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(--brand); }
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(--brand); border-color: var(--brand); 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); box-shadow: 0 1px 2px rgba(120, 20, 70, 0.06); }
@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(196, 7, 140, 0.45); transition: background 0.2s;
}
.received:hover { background: var(--pink-soft); }
.received__ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand); 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; }
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), printed in Donut X colours */
.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: var(--pink-soft); --n-fg: var(--ink); --n-dot: rgba(196, 7, 140, 0.18);
  position: relative; overflow: hidden; scroll-snap-align: start;
  aspect-ratio: 1.6; padding: 12px 14px; border-radius: 16px; border: 0; text-align: start;
  background:
    radial-gradient(circle at 86% 30%, transparent 0 13px, var(--n-dot) 13px 24px, transparent 24px),
    radial-gradient(var(--n-dot) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
    var(--n-bg);
  color: var(--n-fg);
  display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: inset 0 0 0 1px rgba(59, 33, 33, 0.06), 0 1px 2px rgba(120, 20, 70, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cnote::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed currentColor; border-radius: 11px; opacity: 0.22; pointer-events: none; }
.cnote:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(59, 33, 33, 0.06), var(--shadow); }
.cnote[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand); }
.cnote--blush { --n-bg: var(--pink); }
.cnote--yellow { --n-bg: var(--yellow); --n-dot: rgba(196, 7, 140, 0.16); }
.cnote--magenta { --n-bg: var(--brand); --n-fg: #fff; --n-dot: rgba(255, 255, 255, 0.16); }
.cnote--cocoa { --n-bg: var(--ink); --n-fg: #ffe7f1; --n-dot: rgba(255, 159, 205, 0.18); }
.cnote__top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.85; }
html[lang="ar"] .cnote__top { letter-spacing: 0.04em; font-size: 12px; }
.cnote__brand { font-family: "Fredoka", sans-serif; letter-spacing: 0.08em; }
.cnote__amt { align-self: center; font-family: "Fredoka", sans-serif; font-size: 36px; font-weight: 700; line-height: 1; }
.cnote__add {
  justify-self: start; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); 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: #fff; }
@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: 42px; } }

/* Donut X 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(120, 20, 70, 0.08);
}
.fav__art { height: 116px; border-radius: 14px; overflow: hidden; background: var(--pink); }
.fav__img { width: 100%; height: 100%; object-fit: cover; }
.fav__img--art { display: grid; place-items: center; }
.fav__img--art svg { width: 70%; height: 70%; }
.fav__body { display: grid; gap: 2px; padding-inline: 4px; align-content: start; }
.fav__name { font-weight: 700; 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(59, 33, 33, 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(--brand); box-shadow: 0 0 0 4px rgba(196, 7, 140, 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: 16px; display: grid; place-items: center; flex: none; background: var(--pink-soft); color: var(--brand); }
.type-opt__ic svg { width: 26px; height: 26px; }
.type-opt[aria-checked="true"] .type-opt__ic { background: var(--brand); color: var(--cream); }
.type-opt__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.type-opt__txt strong { font-weight: 700; font-size: 16px; }
.type-opt__txt span { font-size: 13px; color: var(--ink-soft); }
.type-opt__txt span.is-open { color: var(--ok); font-weight: 700; }
.type-opt__txt span.is-closed { color: var(--hot); font-weight: 700; }
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(--brand); }
.type-opt[aria-checked="true"] .type-opt__radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.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(59, 33, 33, 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(238, 79, 152, 0.12); color: #8a1650; 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(--brand); 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(--brand); border-color: var(--brand); color: var(--cream); box-shadow: 0 0 0 6px rgba(196, 7, 140, 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: #e3f4e6; }
.track-card.is-cancelled { background: #fbe1ea; }
.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: auto 1fr auto; gap: 12px; align-items: center;
  padding-block: 12px; border-bottom: 1px solid var(--line);
}
.prow:last-child { border-bottom: 0; }
.prow__img { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; background: var(--pink); }
.prow__img--art { display: grid; place-items: center; }
.prow__img--art svg { width: 88%; height: 88%; }
.prow__name { font-size: 15.5px; font-weight: 700; }
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(--pink-soft); }
.qty-ctl button.add { background: var(--brand); color: var(--cream); }
.qty-ctl button.add:hover { background: var(--brand-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: 700; 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(--brand); 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(--brand); box-shadow: 0 0 0 4px rgba(196, 7, 140, 0.1); }
.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(--brand); box-shadow: 0 0 0 4px rgba(196, 7, 140, 0.1); }
.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(--bg-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(--brand); }
.switch input:checked + .switch__track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--brand); 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(--brand); }
.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: 7px; inset-inline-start: 7px; height: 11px; 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(196, 7, 140, 0.08); color: #5a3a24; font-size: 14px;
}
.note svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); 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(--bg) 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(--brand); --gc-fg: #fff; --gc-muted: rgba(255, 255, 255, 0.78);
  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: 22px; 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: 64%; } /* the art lives in the right third */
.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; }
html[lang="ar"] .gcard__msg { font-style: normal; font-size: 14.5px; }
.gcard p.gcard__msg { color: var(--gc-muted); max-width: none; } /* beats .done p on the confirmation screen */
.gcard__bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; font-size: 12.5px; }
.gcard__what { font-weight: 700; }
.gcard__what .num { font-weight: 600; }
.gcard__from { white-space: nowrap; }
.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(--brand); direction: ltr; }
.done__card { width: min(100%, 380px); margin-block: 6px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.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 { display: inline-flex; align-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(96px, 22vw, 200px); color: var(--brand); line-height: 0.9; }
.notfound .big svg { width: 0.8em; height: 0.8em; margin-inline: 0.04em; }
.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; }
  .hero__logo, .lockup__o { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
