/* =====================================================================
   Orderyfy App UI — the storefront's design system.
   Loaded last (layouts/app.blade.php) so it wins over the old template.
   Mobile-first; desktop (>= 900px) adds width, never a second design.
   Every class here starts with .oa- so it never collides with the older
   .oy-* page styles that still exist while pages move over.
   ===================================================================== */

:root {
  /* Brand */
  --oa-lime: #A6CE39;          /* surfaces + primary buttons (text on it is ink) */
  --oa-lime-600: #8EB82E;      /* pressed */
  --oa-lime-50: #F2F8E1;       /* tints: active pills, offer cards */
  --oa-lime-100: #E4F0C4;
  --oa-lime-ink: #4F7A12;      /* green TEXT on white: prices, links, "Free" (5.1:1) */
  --oa-ink: #1A1A1A;
  --oa-ink-2: #3A3D36;
  --oa-mute: #6B7280;          /* meta text (4.8:1) */
  --oa-faint: #9CA39A;
  --oa-bg: #F6F7F3;
  --oa-card: #FFFFFF;
  --oa-sunk: #F3F5EF;          /* image wells, neutral tiles */
  --oa-border: #E9ECE4;
  --oa-border-2: #DADDD3;
  --oa-sale: #D7263D;
  --oa-sale-50: #FDECEE;
  --oa-star: #F5A524;
  --oa-ok: #2E9E5B;

  /* Type */
  --oa-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --oa-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Shape */
  --oa-r-sm: 8px;
  --oa-r: 12px;
  --oa-r-md: 16px;
  --oa-r-lg: 24px;
  --oa-r-pill: 999px;
  --oa-sh-card: 0 1px 2px rgba(26, 26, 26, .04), 0 4px 14px rgba(26, 26, 26, .06);
  --oa-sh-float: 0 10px 34px rgba(26, 26, 26, .16);

  /* Layout */
  --oa-gutter: 16px;
  --oa-max: 1200px;
  --oa-tabbar-h: 64px;
  --oa-safe-b: env(safe-area-inset-bottom, 0px);
  --oa-safe-t: env(safe-area-inset-top, 0px);
}

/* Urdu: Nastaliq needs room to breathe. */
/* Latin glyphs (shop names, prices) stay in Inter / Jakarta; Urdu falls through to Nastaliq. */
[dir="rtl"] {
  --oa-font: 'Inter', 'Noto Nastaliq Urdu', system-ui, sans-serif;
  --oa-display: 'Plus Jakarta Sans', 'Noto Nastaliq Urdu', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- base */
/* App-style screens load no template CSS, so they get the few base rules Bootstrap used to give.
   :where() keeps them at zero specificity: every component rule still wins. */
body.oa-lean { margin: 0; font-size: 15px; line-height: 1.5; }
:where(body.oa-lean) *, :where(body.oa-lean) *::before, :where(body.oa-lean) *::after { box-sizing: border-box; }
:where(body.oa-lean) a { color: inherit; text-decoration: none; }
:where(body.oa-lean) img { max-width: 100%; height: auto; vertical-align: middle; }
:where(body.oa-lean) :is(h1, h2, h3, h4, h5, h6) { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; }
:where(body.oa-lean) p { margin: 0 0 1em; }
:where(body.oa-lean) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(body.oa-lean) button { cursor: pointer; }
:where(body.oa-lean) [hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--oa-font);
  color: var(--oa-ink);
  background: var(--oa-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
[dir="rtl"] body { line-height: 1.9; }
h1, h2, h3, h4, h5, h6 { font-family: var(--oa-display); color: var(--oa-ink); }
button, input, select, textarea { font-family: inherit; }

.oa-ic { flex: 0 0 auto; display: block; }
[dir="rtl"] .oa-ic-dir { transform: scaleX(-1); }

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

:where(.oa-page, .oa-sheet, .oa-tabbar, .oa-appbar, .oa-hh) :focus-visible {
  outline: 3px solid var(--oa-lime-600);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Page frame: one column on phones, centred 1200px on desktop. */
.oa-page { max-width: var(--oa-max); margin: 0 auto; padding: 8px var(--oa-gutter) 24px; }
.oa-page *, .oa-page *::before, .oa-page *::after { box-sizing: border-box; }
.oa-page--flush { padding-top: 0; }

.oa-only-desk { display: none !important; }
@media (min-width: 900px) {
  .oa-only-desk { display: revert !important; }
  .oa-only-mob { display: none !important; }
}

/* ---------------------------------------------------------------- type */
.oa-display { font-family: var(--oa-display); font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.oa-title { font-family: var(--oa-display); font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.015em; margin: 0; }
.oa-h2 { font-family: var(--oa-display); font-size: 18px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.oa-h3 { font-size: 15px; line-height: 20px; font-weight: 700; margin: 0; }
.oa-body { font-size: 14px; line-height: 20px; }
.oa-meta { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--oa-mute); }
.oa-cap { font-size: 12px; line-height: 16px; font-weight: 600; }
.oa-link { color: var(--oa-lime-ink); font-weight: 700; text-decoration: none; }
.oa-link:hover { text-decoration: underline; }
.oa-mute { color: var(--oa-mute); }
.oa-free { color: var(--oa-lime-ink); font-weight: 700; }
@media (min-width: 900px) {
  .oa-display { font-size: 34px; line-height: 40px; }
  .oa-title { font-size: 28px; line-height: 34px; }
  .oa-h2 { font-size: 21px; line-height: 28px; }
}
[dir="rtl"] :is(.oa-display, .oa-title, .oa-h2, .oa-h3) { line-height: 1.8; letter-spacing: 0; }

/* -------------------------------------------------------------- buttons */
.oa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  font-family: var(--oa-display); font-size: 15px; font-weight: 800; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, transform .1s, box-shadow .15s;
  background: var(--oa-lime); color: var(--oa-ink);
}
.oa-btn:hover { background: var(--oa-lime-600); color: var(--oa-ink); }
.oa-btn:active { transform: scale(.98); }
.oa-btn[disabled], .oa-btn.is-disabled { background: #E5E7E1; color: #A3A79E; cursor: not-allowed; transform: none; }
.oa-btn--dark { background: var(--oa-ink); color: #fff; }
.oa-btn--dark:hover { background: #000; color: #fff; }
.oa-btn--outline { background: #fff; color: var(--oa-ink); box-shadow: inset 0 0 0 1.5px var(--oa-ink); }
.oa-btn--outline:hover { background: var(--oa-sunk); color: var(--oa-ink); }
.oa-btn--soft { background: var(--oa-lime-50); color: var(--oa-lime-ink); }
.oa-btn--soft:hover { background: var(--oa-lime-100); color: var(--oa-lime-ink); }
.oa-btn--ghost { background: transparent; color: var(--oa-ink); }
.oa-btn--ghost:hover { background: var(--oa-sunk); }
.oa-btn--danger { background: #fff; color: var(--oa-sale); box-shadow: inset 0 0 0 1.5px #F3C3CA; }
.oa-btn--danger:hover { background: var(--oa-sale-50); color: var(--oa-sale); }
.oa-btn--block { display: flex; width: 100%; }
.oa-btn--lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.oa-btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: var(--oa-r-pill); }
.oa-btn .oa-btn-end { margin-inline-start: auto; }

/* Round icon button (back, share, heart on covers) */
.oa-iconbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--oa-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
  position: relative; flex: 0 0 auto; transition: background-color .15s;
}
.oa-iconbtn:hover { background: rgba(26, 26, 26, .06); color: var(--oa-ink); }
.oa-iconbtn--float { width: 40px; height: 40px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.oa-iconbtn--float:hover { background: #fff; }
.oa-iconbtn--ring { width: 36px; height: 36px; box-shadow: inset 0 0 0 1.5px var(--oa-border-2); }
.oa-iconbtn .oa-badge { position: absolute; top: 4px; inset-inline-end: 2px; }

/* --------------------------------------------------------- badges/chips */
.oa-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--oa-ink); color: #fff; font: 800 10.5px/18px var(--oa-font); text-align: center;
}
.oa-off { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--oa-sale-50); color: var(--oa-sale); font-size: 12px; font-weight: 700; white-space: nowrap; }
.oa-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--oa-lime-50); color: var(--oa-lime-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.oa-tag--grey { background: var(--oa-sunk); color: var(--oa-ink-2); }
.oa-tag--dark { background: rgba(26, 26, 26, .82); color: #fff; }
.oa-pill-closed { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #4B4F47; color: #fff; font-size: 11.5px; font-weight: 700; }

.oa-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--oa-gutter) * -1); padding: 2px var(--oa-gutter) 4px; }
.oa-chips::-webkit-scrollbar { display: none; }
.oa-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: var(--oa-r-pill); border: 1.5px solid var(--oa-border-2); background: #fff; color: var(--oa-ink);
  font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.oa-chip:hover { background: var(--oa-sunk); color: var(--oa-ink); }
.oa-chip.is-on { background: var(--oa-ink); border-color: var(--oa-ink); color: #fff; }
.oa-chip.is-on:hover { background: #000; color: #fff; }
.oa-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-inline-start: -8px; background: var(--oa-sunk); }
.oa-chip--icon { min-width: 46px; padding: 0 12px; justify-content: center; }
.oa-chip .oa-chip-n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--oa-lime); color: var(--oa-ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ------------------------------------------------------ section headers */
.oa-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.oa-sec:first-child { margin-top: 12px; }
.oa-sec-sub { margin: 2px 0 0; font-size: 13px; color: var(--oa-mute); font-weight: 500; }
.oa-sec-more { flex: 0 0 auto; }

/* Horizontal rails bleed to the screen edge on phones (Foodpanda style). */
.oa-rail {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  scrollbar-width: none; margin-inline: calc(var(--oa-gutter) * -1); padding: 2px var(--oa-gutter) 8px;
  scroll-padding-inline: var(--oa-gutter);
}
.oa-rail::-webkit-scrollbar { display: none; }
.oa-rail > * { scroll-snap-align: start; flex: 0 0 auto; }
@media (min-width: 900px) {
  .oa-rail { margin-inline: 0; padding-inline: 0; scrollbar-width: thin; }
}

/* ------------------------------------------------------------- app bar */
.oa-appbar {
  position: sticky; top: 0; z-index: 70; background: #fff;
  display: flex; align-items: center; gap: 4px; min-height: 56px;
  padding: var(--oa-safe-t) 8px 0; border-bottom: 1px solid var(--oa-border);
}
.oa-appbar-text { min-width: 0; flex: 1; padding-inline: 6px; }
.oa-appbar-title { font-family: var(--oa-display); font-size: 18px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-appbar-sub { font-size: 12.5px; line-height: 16px; color: var(--oa-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-appbar-sub strong { color: var(--oa-ink); font-weight: 700; }
.oa-appbar-actions { display: flex; align-items: center; gap: 2px; }
.oa-appbar--large { border-bottom: 0; padding-inline: var(--oa-gutter); min-height: 60px; }
.oa-appbar--large .oa-appbar-text { padding-inline: 0; }
.oa-appbar--large .oa-appbar-title { font-size: 24px; line-height: 30px; }
.oa-appbar--clear { position: absolute; inset-inline: 0; background: transparent; border: 0; }
@media (min-width: 900px) {
  .oa-appbar, .oa-appbar--large {
    position: static; max-width: var(--oa-max); margin: 0 auto; background: transparent; border: 0;
    padding: 22px 8px 4px; min-height: 0;
  }
  .oa-appbar-title, .oa-appbar--large .oa-appbar-title { font-size: 28px; line-height: 34px; }
  .oa-appbar-sub { font-size: 14px; }
}

/* On phones a page with its own app bar replaces the old site header. */
@media (max-width: 899.98px) {
  body.oa-has-appbar .oy-header,
  body.oa-has-appbar .oy-locbar-wrap { display: none !important; }
}

/* -------------------------------------------------------------- tab bar */
.oa-tabbar { display: none; }
@media (max-width: 899.98px) {
  body.oa-has-tabbar { padding-bottom: calc(var(--oa-tabbar-h) + 26px + var(--oa-safe-b)) !important; }
  .oa-tabbar {
    display: flex; position: fixed; z-index: 80;
    inset-inline: 10px; bottom: calc(10px + var(--oa-safe-b));
    height: var(--oa-tabbar-h); padding: 6px; background: #fff; border-radius: 26px;
    box-shadow: var(--oa-sh-float), 0 0 0 1px rgba(26, 26, 26, .04);
  }
  .oa-tabbar a {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-radius: 20px; color: #6E736A; text-decoration: none; font-size: 11.5px; font-weight: 600; line-height: 14px;
    transition: background-color .15s, color .15s;
  }
  .oa-tabbar a:hover { color: var(--oa-ink); }
  .oa-tabbar a.is-on { background: var(--oa-lime-50); color: var(--oa-lime-ink); font-weight: 800; }
  .oa-tabbar .oa-tab-ic { position: relative; }
  .oa-tabbar .oa-badge { position: absolute; top: -5px; inset-inline-end: -10px; box-shadow: 0 0 0 2px #fff; }
  /* The old bar is replaced, and the old body padding with it. */
  .oy-tabbar { display: none !important; }
  body.oa-has-tabbar .oy-footer { display: none; }
}

/* Lifts floating UI (toasts, cart bars) above the tab bar on phones. */
:root { --oa-above-tabbar: 16px; }
@media (max-width: 899.98px) { body.oa-has-tabbar { --oa-above-tabbar: calc(var(--oa-tabbar-h) + 22px + var(--oa-safe-b)); } }
.oy-toast { bottom: var(--oa-above-tabbar) !important; }

/* ------------------------------------------------------------- surfaces */
.oa-card { background: var(--oa-card); border-radius: var(--oa-r-md); box-shadow: var(--oa-sh-card); }
.oa-card--line { box-shadow: none; border: 1px solid var(--oa-border); }
.oa-card-pad { padding: 16px; }
.oa-divider { height: 1px; background: var(--oa-border); border: 0; margin: 0; }
.oa-band { height: 8px; background: var(--oa-bg); margin-inline: calc(var(--oa-gutter) * -1); }

/* Image well + initials fallback (a broken or missing photo never shows alt text). */
.oa-img { position: relative; overflow: hidden; background: var(--oa-sunk); }
.oa-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oa-img.is-broken > img { display: none; }
.oa-ini {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--oa-lime-50); color: var(--oa-lime-ink);
  font-family: var(--oa-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase;
}
.oa-img:not(.is-broken) > img + .oa-ini { display: none; }

/* --------------------------------------------------------- store cards */
.oa-sc { position: relative; color: var(--oa-ink); text-decoration: none; display: block; }
/* Stretched link: the shop name covers the card, buttons sit above it. */
.oa-stretch { color: inherit; text-decoration: none; }
.oa-stretch:hover { color: inherit; }
.oa-stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--oa-r-md); }
.oa-stretch:focus-visible { outline: none; }
.oa-stretch:focus-visible::after { outline: 3px solid var(--oa-lime-600); outline-offset: 3px; }
.oa-sc .oa-fav, .oa-pc .oa-pc-add { z-index: 2; }
.oa-sc--row .oa-fav { position: relative; }
.oa-sc:hover { color: var(--oa-ink); }
.oa-sc-name { font-size: 15.5px; line-height: 20px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-sc-line { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--oa-mute); font-weight: 500; min-width: 0; }
.oa-sc-line > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-sc-line .oa-ic { color: var(--oa-ink-2); }
.oa-sc-line s { color: var(--oa-faint); }
.oa-dot { width: 3px; height: 3px; border-radius: 50%; background: #B9BEB2; flex: 0 0 auto; }
.oa-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--oa-ink); white-space: nowrap; }
.oa-rating .oa-ic { color: var(--oa-star); fill: var(--oa-star); }
.oa-rating small { font-size: 12.5px; color: var(--oa-mute); font-weight: 500; }

/* Wide: cover photo card for "Popular shops". */
.oa-sc--wide { width: 286px; }
.oa-sc--wide.oa-sc--full { width: 100%; }
.oa-sc-cover { position: relative; height: 150px; border-radius: var(--oa-r-md); overflow: hidden; background: var(--oa-lime-50); }
.oa-sc-cover .oa-sc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.oa-sc-cover .oa-sc-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(120% 90% at 85% 10%, #fff 0, var(--oa-lime-50) 45%, var(--oa-lime-100) 100%); }
.oa-sc-cover .oa-sc-art img { width: 92px; height: 92px; object-fit: contain; }
.oa-sc-cover .oa-sc-art .oa-sc-artname { font-family: var(--oa-display); font-weight: 800; font-size: 20px; line-height: 24px; color: var(--oa-lime-ink); max-width: 55%; letter-spacing: -.02em; }
.oa-sc-logo-badge { position: absolute; inset-inline-start: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); overflow: hidden; }
.oa-sc-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.oa-sc-cover .oa-fav { position: absolute; top: 8px; inset-inline-end: 8px; }
.oa-sc-closed { position: absolute; inset: 0; background: rgba(20, 22, 18, .55); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-weight: 700; font-size: 14px; padding: 12px; }
.oa-sc-closed small { display: block; font-weight: 500; font-size: 12.5px; opacity: .9; }
.oa-sc--wide .oa-sc-body { padding: 10px 2px 0; display: grid; gap: 3px; }
.oa-sc--wide .oa-sc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Row: the Foodpanda "All shops" list item. */
.oa-sc--row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.oa-sc--row .oa-sc-logo { width: 84px; height: 84px; border-radius: var(--oa-r-md); flex: 0 0 auto; border: 1px solid var(--oa-border); }
.oa-sc--row .oa-sc-body { flex: 1; min-width: 0; display: grid; gap: 4px; padding-top: 2px; }
.oa-sc--row .oa-sc-top { display: flex; align-items: flex-start; gap: 8px; }
.oa-sc--row .oa-sc-top .oa-sc-name { flex: 1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.oa-sc--row .oa-fav { margin-top: -10px; margin-inline-end: -10px; }
.oa-sc--row .oa-sc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.oa-sc--row.is-closed .oa-sc-logo img { filter: grayscale(1); opacity: .7; }

/* Tile: square logo + name (search page, popular shops on grocery). */
.oa-sc--tile { width: 108px; text-align: center; }
.oa-sc--tile .oa-sc-logo { width: 108px; height: 108px; border-radius: 20px; border: 1px solid var(--oa-border); }
.oa-sc--tile .oa-sc-name { font-size: 13.5px; line-height: 17px; font-weight: 700; margin-top: 8px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.oa-sc--tile .oa-meta { font-size: 12.5px; }

/* Favourite heart */
.oa-fav {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--oa-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; padding: 0;
}
.oa-fav--float { width: 36px; height: 36px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.oa-fav.is-on { color: var(--oa-sale); }
.oa-fav.is-on .oa-ic { fill: currentColor; }
.oa-fav.is-pop .oa-ic { animation: oa-pop .3s ease; }
@keyframes oa-pop { 50% { transform: scale(1.25); } }

/* ------------------------------------------------------ product cards */
.oa-pc { width: 152px; color: var(--oa-ink); text-decoration: none; display: block; position: relative; }
.oa-pc:hover { color: var(--oa-ink); }
.oa-pc-img { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--oa-r-md); overflow: hidden; background: var(--oa-sunk); border: 1px solid var(--oa-border); }
.oa-pc-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oa-pc-add {
  position: absolute; inset-inline-end: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #fff; color: var(--oa-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.oa-pc-body { padding: 8px 2px 0; display: grid; gap: 3px; }
.oa-pc-name { font-size: 13.5px; line-height: 18px; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oa-pc-store { font-size: 12px; color: var(--oa-mute); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-pc-badge { position: absolute; top: 8px; inset-inline-start: 8px; }

.oa-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; font-size: 15px; font-weight: 800; color: var(--oa-lime-ink); white-space: nowrap; }
.oa-price s { font-size: 12.5px; font-weight: 500; color: var(--oa-faint); }
.oa-price .oa-off { align-self: center; }
.oa-price--ink { color: var(--oa-ink); }

/* --------------------------------------------------------- empty state */
.oa-empty { text-align: center; padding: 48px 24px 32px; max-width: 420px; margin: 0 auto; }
.oa-empty-art { width: 168px; height: 168px; margin: 0 auto 18px; display: block; }
.oa-empty h2 { font-family: var(--oa-display); font-size: 22px; line-height: 28px; font-weight: 800; margin: 0 0 6px; }
.oa-empty p { font-size: 14px; line-height: 21px; color: var(--oa-mute); margin: 0 0 20px; }

/* ----------------------------------------------------------- list rows */
.oa-list { list-style: none; margin: 0; padding: 0; }
.oa-list-row {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0;
  color: var(--oa-ink); text-decoration: none; font-size: 15px; font-weight: 500; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: start;
}
.oa-list-row:hover { color: var(--oa-ink); }
.oa-list-row > .oa-ic:first-child { color: var(--oa-ink-2); }
.oa-list-row .oa-list-label { flex: 1; min-width: 0; }
.oa-list-row .oa-list-label small { display: block; font-size: 12.5px; color: var(--oa-mute); font-weight: 500; }
.oa-list-row .oa-list-end { color: var(--oa-mute); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.oa-list > li + li .oa-list-row { border-top: 1px solid var(--oa-border); }

/* -------------------------------------------------------------- fields */
.oa-field { display: grid; gap: 6px; margin-bottom: 14px; }
.oa-field > label, .oa-label { font-size: 13px; font-weight: 700; color: var(--oa-ink-2); }
.oa-input, .oa-field select, .oa-field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--oa-border-2);
  background: #fff; color: var(--oa-ink); font-size: 16px; line-height: 22px; outline: none; box-shadow: none;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.oa-field textarea { min-height: 96px; resize: vertical; }
.oa-input:focus, .oa-field select:focus, .oa-field textarea:focus { border-color: var(--oa-lime-600); box-shadow: 0 0 0 4px var(--oa-lime-50); }
.oa-input::placeholder { color: var(--oa-faint); }
.oa-field .oa-err, .oa-err { font-size: 12.5px; color: var(--oa-sale); font-weight: 600; }
.oa-field.has-err .oa-input { border-color: var(--oa-sale); }
.oa-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] .oa-field select { background-position: left 14px center; }

/* Radio / checkbox rows inside sheets */
.oa-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 0; cursor: pointer; font-size: 15px; font-weight: 500; }
.oa-opt + .oa-opt { border-top: 1px solid var(--oa-border); }
.oa-opt input { position: absolute; opacity: 0; pointer-events: none; }
.oa-opt .oa-opt-mark { width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid #9CA39A; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background-color .15s; }
.oa-opt input[type="checkbox"] + .oa-opt-mark { border-radius: 7px; }
.oa-opt input:checked + .oa-opt-mark { border-color: var(--oa-ink); background: var(--oa-ink); }
.oa-opt input[type="radio"]:checked + .oa-opt-mark { background: #fff; box-shadow: inset 0 0 0 5px var(--oa-ink); }
.oa-opt input[type="checkbox"]:checked + .oa-opt-mark::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.oa-opt input:focus-visible + .oa-opt-mark { outline: 3px solid var(--oa-lime-600); outline-offset: 2px; }
.oa-opt:has(input:checked) { font-weight: 700; }

/* ---------------------------------------------------------------- sheet */
.oa-sheet { position: fixed; inset: 0; z-index: 400; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; pointer-events: none; }
.oa-sheet.is-open { visibility: visible; pointer-events: auto; }
.oa-sheet-scrim { position: absolute; inset: 0; background: rgba(17, 18, 15, .5); opacity: 0; transition: opacity .25s ease; }
.oa-sheet.is-open .oa-sheet-scrim { opacity: 1; }
.oa-sheet-panel {
  position: relative; width: 100%; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  background: #fff; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
}
.oa-sheet.is-open .oa-sheet-panel { transform: none; }
.oa-sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #D4D7CE; margin: 10px auto 2px; flex: 0 0 auto; }
.oa-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--oa-gutter) 6px; }
.oa-sheet-head h2 { font-family: var(--oa-display); font-size: 20px; line-height: 26px; font-weight: 800; margin: 0; }
.oa-sheet-body { padding: 4px var(--oa-gutter) 16px; overflow-y: auto; overscroll-behavior: contain; }
.oa-sheet-foot { padding: 12px var(--oa-gutter) calc(12px + var(--oa-safe-b)); border-top: 1px solid var(--oa-border); background: #fff; display: flex; gap: 10px; }
.oa-sheet-foot .oa-btn { flex: 1; }
.oa-sheet-sec { font-family: var(--oa-display); font-size: 17px; font-weight: 800; margin: 18px 0 2px; }
.oa-sheet-sec:first-child { margin-top: 4px; }
/* Lock the viewport (not <body>: orderyfy.css pins html/body overflow with !important, and a body
   scroll container would un-stick sticky bars behind the sheet). */
html.oa-lock { overflow: hidden !important; }
@media (min-width: 900px) {
  .oa-sheet { align-items: center; }
  .oa-sheet-panel { width: 460px; max-height: 84vh; border-radius: 22px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s ease, opacity .2s ease; }
  .oa-sheet.is-open .oa-sheet-panel { transform: none; opacity: 1; }
  .oa-sheet-grab { display: none; }
  .oa-sheet-head { padding-top: 18px; }
}

/* ------------------------------------------------------- sticky bottom */
.oa-dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 75; background: #fff;
  padding: 12px var(--oa-gutter) calc(12px + var(--oa-safe-b)); box-shadow: 0 -6px 24px rgba(26, 26, 26, .08);
}
.oa-dock-inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
body.oa-has-dock { padding-bottom: calc(84px + var(--oa-safe-b)) !important; }

/* ---------------------------------------------------------------- toast */
.oa-toast {
  position: fixed; z-index: 500; inset-inline: 16px; bottom: var(--oa-above-tabbar); max-width: 420px; margin: 0 auto;
  background: var(--oa-ink); color: #fff; border-radius: 14px; padding: 13px 16px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--oa-sh-float);
  transform: translateY(20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none;
}
.oa-toast.is-on { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .oa-sheet-panel, .oa-sheet-scrim, .oa-toast, .oa-btn { transition: none !important; }
  .oa-fav.is-pop .oa-ic { animation: none; }
}

/* Forms inside sheets: the body scrolls, the action bar stays. */
.oa-sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.oa-sheet-form .oa-sheet-body { flex: 1 1 auto; }

/* Pages that read best on white (home, account, cart) */
body.oa-white { background: #fff; }

/* =================================================================== HOME */
.oa-hh { background: var(--oa-lime); color: var(--oa-ink); padding: calc(var(--oa-safe-t) + 8px) 0 36px; position: relative; }
.oa-hh-in { max-width: var(--oa-max); margin: 0 auto; padding: 0 var(--oa-gutter); }
.oa-hh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.oa-hh-loc { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; color: var(--oa-ink); cursor: pointer; text-align: start; min-width: 0; }
.oa-hh-loc-text { display: grid; min-width: 0; }
.oa-hh-loc small { font-size: 12.5px; font-weight: 600; opacity: .72; line-height: 16px; }
.oa-hh-loc strong { display: flex; align-items: center; gap: 2px; font-family: var(--oa-display); font-size: 17px; font-weight: 800; line-height: 22px; min-width: 0; }
.oa-hh-loc strong span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-hh-ic:hover { background: rgba(26, 26, 26, .08); }
.oa-hh-search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: var(--oa-r-pill);
  background: #fff; color: var(--oa-mute); font-size: 15px; font-weight: 500; text-decoration: none;
  box-shadow: 0 2px 10px rgba(60, 80, 10, .14);
}
.oa-hh-search:hover { color: var(--oa-ink); }
.oa-hh-search .oa-ic { color: var(--oa-ink); }

.oa-promo { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 18px calc(var(--oa-gutter) * -1) 0; }
.oa-promo::-webkit-scrollbar { display: none; }
.oa-promo-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; gap: 8px; padding: 0 var(--oa-gutter); color: var(--oa-ink); text-decoration: none; min-height: 128px; }
.oa-promo-slide:hover { color: var(--oa-ink); }
.oa-promo-text { flex: 1; min-width: 0; display: grid; gap: 10px; }
.oa-promo-title { font-family: var(--oa-display); font-size: 25px; line-height: 30px; font-weight: 800; letter-spacing: -.02em; }
.oa-promo-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; }
.oa-promo-art { width: 124px; height: 124px; flex: 0 0 auto; filter: drop-shadow(0 10px 14px rgba(60, 80, 10, .22)); }
.oa-promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.oa-promo-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(26, 26, 26, .25); transition: width .2s, background-color .2s; cursor: pointer; }
.oa-promo-dots button.is-on { width: 22px; background: var(--oa-ink); }
[dir="rtl"] .oa-promo-title { line-height: 1.7; font-size: 21px; }

.oa-hh-mini {
  position: fixed; top: 0; inset-inline: 0; z-index: 75; background: var(--oa-lime);
  padding: calc(var(--oa-safe-t) + 8px) var(--oa-gutter) 10px;
  transform: translateY(-110%); transition: transform .25s ease; box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}
.oa-hh-mini.is-on { transform: none; }
.oa-hh-mini .oa-hh-search { height: 44px; box-shadow: none; }

/* The white sheet that slides over the lime header */
.oa-page.oa-home { position: relative; background: #fff; border-radius: 24px 24px 0 0; margin-top: -22px; padding-top: 14px; }

.oa-types { gap: 4px; padding-top: 6px; }
.oa-type { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--oa-ink); }
.oa-type:hover { color: var(--oa-ink); }
.oa-type-art { width: 68px; height: 68px; border-radius: 20px; background: var(--oa-sunk); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.oa-type:hover .oa-type-art { transform: translateY(-2px); }
.oa-type-art img { width: 56px; height: 56px; object-fit: contain; }
.oa-type-name { font-size: 12.5px; line-height: 16px; font-weight: 600; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 900px) {
  .oa-hh { background: none; padding: 20px var(--oa-gutter) 0; }
  .oa-hh-in { background: var(--oa-lime); border-radius: 28px; padding: 26px 32px 18px; }
  .oa-hh-row { display: none; }
  .oa-hh-search { max-width: 560px; }
  .oa-promo { margin-inline: -32px; }
  .oa-promo-slide { padding: 0 32px; min-height: 168px; }
  .oa-promo-title { font-size: 34px; line-height: 40px; max-width: 600px; }
  .oa-promo-art { width: 168px; height: 168px; }
  .oa-hh-mini { display: none; }
  .oa-page.oa-home { margin-top: 0; border-radius: 0; background: transparent; }
  .oa-type { width: 108px; }
  .oa-type-art { width: 92px; height: 92px; border-radius: 26px; }
  .oa-type-art img { width: 72px; height: 72px; }
  .oa-type-name { font-size: 14px; line-height: 18px; }
}

/* ============================================================ SHOP LISTS */
.oa-typebar { padding-top: 8px; margin-bottom: 8px; }
.oa-filterbar { margin-top: 2px; }
.oa-count { margin: 10px 0 0; }
.oa-qchip { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.oa-sc-list { display: grid; }
.oa-sc-list > .oa-sc--row { border-bottom: 1px solid var(--oa-border); }
.oa-sc-list > .oa-sc--row:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .oa-sc-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .oa-sc-list > .oa-sc--row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

.oa-cuisines { gap: 6px; padding-top: 10px; margin-bottom: 4px; }
.oa-cuisine { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--oa-ink); }
.oa-cuisine:hover { color: var(--oa-ink); }
.oa-cuisine-img { width: 64px; height: 64px; border-radius: 50%; }
.oa-cuisine-img .oa-ini { border-radius: 50%; font-size: 20px; }
.oa-cuisine-name { font-size: 12.5px; line-height: 16px; font-weight: 600; text-align: center; }

/* ========================================================= DELIVER-TO SHEET */
.oa-loc-note { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 18px; color: var(--oa-mute); background: var(--oa-sunk); border-radius: 12px; padding: 10px 12px; margin: 2px 0 6px; }
.oa-loc-here, .oa-loc-here > .oa-ic:first-child { color: var(--oa-lime-ink); font-weight: 700; }
.oa-loc-here small { color: var(--oa-mute); font-weight: 500; }
.oa-loc-on { color: var(--oa-lime-ink); }
.oa-loc-add { font-weight: 700; }
.oa-addr-opt { justify-content: flex-start; gap: 12px; }
.oa-addr-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.oa-addr-text strong { font-size: 15px; font-weight: 700; }
.oa-addr-text small { font-size: 13px; color: var(--oa-mute); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-addr-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--oa-sunk); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--oa-ink-2); }

/* ================================================================= NOTES */
.oa-note { border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin: 8px 0; }
.oa-note--ok { background: var(--oa-lime-50); color: var(--oa-lime-ink); }
.oa-note--err { background: var(--oa-sale-50); color: var(--oa-sale); }
.oa-note--warn { background: #FFF6E8; color: #7A4A00; }

/* ================================================================== CART */
.oa-cart { max-width: 720px; }
.oa-cart-shop { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--oa-border); }
.oa-cart-shop-logo { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--oa-border); flex: 0 0 auto; }
.oa-cart-shop-logo .oa-ini { font-size: 16px; }
.oa-cart-shop-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.oa-cart-shop-text strong { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-cart-shop-text .oa-meta { display: flex; align-items: center; gap: 4px; }

.oa-progress-note { margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--oa-sunk); }
.oa-progress-note p { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--oa-ink-2); }
.oa-progress { height: 6px; border-radius: 3px; background: #E3E6DD; overflow: hidden; }
.oa-progress > span { display: block; height: 100%; border-radius: 3px; background: var(--oa-lime-600); transition: width .3s; }

.oa-lines { list-style: none; margin: 0; padding: 0; }
.oa-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--oa-border); }
.oa-line-img { width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto; border: 1px solid var(--oa-border); }
.oa-line-img .oa-ini { font-size: 18px; }
.oa-line-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.oa-line-name { font-size: 15px; font-weight: 600; color: var(--oa-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oa-line-name:hover { color: var(--oa-ink); text-decoration: underline; }
.oa-line-price { font-size: 15px; font-weight: 800; color: var(--oa-lime-ink); }

.oa-stepper { display: inline-flex; align-items: center; height: 40px; border-radius: var(--oa-r-pill); background: var(--oa-sunk); flex: 0 0 auto; }
.oa-stepper button { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--oa-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.oa-stepper button:hover { background: rgba(26, 26, 26, .06); }
.oa-stepper button:disabled { color: #B5B9AF; cursor: not-allowed; background: none; }
.oa-stepper input { width: 26px; border: 0; background: none; text-align: center; font-size: 15px; font-weight: 800; color: var(--oa-ink); padding: 0; outline: none; }

.oa-add-more { color: var(--oa-lime-ink); font-weight: 700; }
.oa-add-more > .oa-ic:first-child { color: var(--oa-lime-ink); }

.oa-coupon { margin: 18px 0 0; }
.oa-coupon-form, .oa-coupon-on { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1.5px dashed var(--oa-border-2); border-radius: 16px; }
[dir="rtl"] .oa-coupon-form, [dir="rtl"] .oa-coupon-on { padding: 6px 14px 6px 6px; }
.oa-coupon-form input { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: none; font-size: 15px; color: var(--oa-ink); text-transform: uppercase; }
.oa-coupon-form input::placeholder { text-transform: none; color: var(--oa-faint); }
.oa-coupon-on { border-style: solid; border-color: var(--oa-lime-100); background: var(--oa-lime-50); color: var(--oa-lime-ink); font-weight: 600; font-size: 14px; padding-block: 12px; }
.oa-coupon-on span { flex: 1; }
.oa-coupon-on .oa-link { background: none; border: 0; cursor: pointer; padding: 4px 8px; }

.oa-bill { margin: 22px 0 8px; }
.oa-bill .oa-h2 { margin-bottom: 10px; }
.oa-bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; color: var(--oa-ink-2); }
.oa-bill-save { color: var(--oa-lime-ink); font-weight: 600; }
.oa-bill-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--oa-border); color: var(--oa-ink); font-size: 17px; font-weight: 800; font-family: var(--oa-display); }
.oa-bill-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--oa-mute); }

.oa-dock-total { display: grid; line-height: 1.15; flex: 0 0 auto; }
.oa-dock-total span { font-size: 12px; font-weight: 600; color: var(--oa-mute); }
.oa-dock-total strong { font-family: var(--oa-display); font-size: 19px; font-weight: 800; }
.oa-dock .oa-btn { flex: 1; }
@media (min-width: 900px) {
  .oa-dock { position: sticky; bottom: 0; box-shadow: none; border-top: 1px solid var(--oa-border); padding-inline: 0; margin-top: 16px; }
  body.oa-has-dock { padding-bottom: 0 !important; }
}

/* ============================================================== CHECKOUT */
.oa-ck { max-width: 720px; }
.oa-ck-card { padding: 16px 0 18px; border-bottom: 8px solid var(--oa-bg); margin-inline: calc(var(--oa-gutter) * -1); padding-inline: var(--oa-gutter); }
.oa-ck-card:last-of-type { border-bottom: 0; }
.oa-ck-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--oa-display); font-size: 17px; font-weight: 800; }
.oa-ck-h .oa-meta { margin-inline-start: auto; font-family: var(--oa-font); }
.oa-ck-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.oa-ck-saved { margin-bottom: 12px; }
.oa-ck-pin {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin: 2px 0 6px;
  border: 1.5px dashed var(--oa-border-2); border-radius: 14px; background: #fff; color: var(--oa-ink); text-align: start; cursor: pointer;
}
.oa-ck-pin span { display: grid; gap: 1px; }
.oa-ck-pin strong { font-size: 14.5px; font-weight: 700; }
.oa-ck-pin small { font-size: 12.5px; color: var(--oa-mute); }
.oa-ck-pin > .oa-ic { color: var(--oa-lime-ink); }
.oa-ck-pin.is-set { border-style: solid; border-color: var(--oa-lime-100); background: var(--oa-lime-50); }
.oa-ck-pin.is-set strong { color: var(--oa-lime-ink); }
.oa-ck-save { border-top: 0; min-height: 48px; font-size: 14.5px; }
.oa-ck-eta { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--oa-sunk); margin-bottom: 14px; font-size: 14.5px; }
.oa-ck-eta span { color: var(--oa-mute); font-weight: 600; }
.oa-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--oa-border-2); cursor: pointer; }
.oa-pay.is-on { border-color: var(--oa-ink); }
.oa-pay input { position: absolute; opacity: 0; pointer-events: none; }
.oa-pay-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--oa-lime-50); color: var(--oa-lime-ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.oa-pay-text { flex: 1; display: grid; gap: 1px; }
.oa-pay-text strong { font-size: 15px; }
.oa-pay-text small { font-size: 12.5px; color: var(--oa-mute); line-height: 17px; }
.oa-pay-tick { color: var(--oa-ink); }
.oa-ck-items summary { list-style: none; cursor: pointer; }
.oa-ck-items summary::-webkit-details-marker { display: none; }
.oa-ck-lines { list-style: none; margin: 0 0 6px; padding: 0; }
.oa-ck-lines li { display: flex; gap: 10px; padding: 7px 0; font-size: 14.5px; }
.oa-ck-qty { color: var(--oa-lime-ink); font-weight: 800; min-width: 26px; }
.oa-ck-name { flex: 1; min-width: 0; }
.oa-ck-name small { display: block; color: var(--oa-mute); font-size: 12.5px; }
.oa-ck-amt { font-weight: 700; white-space: nowrap; }
.oa-ck .oa-bill { margin-top: 6px; }
.oy-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 900px) {
  .oa-ck-card { margin-inline: 0; padding-inline: 0; }
}

/* ======================================================= SUCCESS + TRACK */
.oa-ok, .oa-track { max-width: 640px; }
.oa-ok-hero { text-align: center; padding: 20px 8px 8px; }
.oa-ok-check {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%; background: var(--oa-lime); color: var(--oa-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px var(--oa-lime-50);
  animation: oa-ok-pop .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes oa-ok-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.oa-ok-hero p { margin: 8px auto 14px; max-width: 420px; font-size: 14.5px; line-height: 21px; color: var(--oa-mute); }
.oa-ok-num { display: inline-flex; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--oa-sunk); font-size: 13.5px; font-weight: 600; color: var(--oa-mute); }
.oa-ok-num strong { color: var(--oa-ink); }
.oa-ok-cod { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; padding: 14px; border-radius: 16px; background: var(--oa-lime-50); color: var(--oa-lime-ink); font-weight: 600; font-size: 14.5px; }
.oa-ok-next { margin: 22px 0 6px; }
.oa-ok-next ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.oa-ok-next li { display: flex; align-items: flex-start; gap: 12px; }
.oa-ok-next li div { display: grid; gap: 2px; }
.oa-ok-next strong { font-size: 15px; }
.oa-ok-next small { font-size: 13px; color: var(--oa-mute); line-height: 18px; }
.oa-ok-step { width: 40px; height: 40px; border-radius: 12px; background: var(--oa-sunk); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.oa-ok-more { display: grid; gap: 8px; margin-top: 18px; }

.oa-track-shop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--oa-border); border-radius: 18px; margin-bottom: 12px; }
.oa-track-order { border: 1px solid var(--oa-border); border-radius: 18px; padding: 14px 16px; margin: 12px 0; }
.oa-track-order summary { list-style: none; cursor: pointer; margin: 0; }
.oa-track-order summary::-webkit-details-marker { display: none; }
.oa-track-order[open] summary { margin-bottom: 10px; }
.oa-track-addr { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 13.5px; color: var(--oa-ink-2); line-height: 20px; }

/* =============================================================== ACCOUNT */
.oa-acc { max-width: 720px; }
.oa-acc-me { padding: 4px 0 16px; }
.oa-acc-me .oa-display { font-size: 28px; line-height: 34px; overflow-wrap: anywhere; }
.oa-acc-view { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--oa-ink); text-decoration: none; }
.oa-acc-view:hover { color: var(--oa-ink); text-decoration: underline; }
.oa-acc-live { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 14px; border-radius: 18px; background: var(--oa-ink); color: #fff; text-decoration: none; }
.oa-acc-live:hover { color: #fff; }
.oa-acc-live-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--oa-lime); color: var(--oa-ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.oa-acc-live-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.oa-acc-live-text strong { font-size: 15px; }
.oa-acc-live-text small { font-size: 12.5px; opacity: .75; }
.oa-acc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.oa-acc-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px 6px;
  border: 1.5px solid var(--oa-border); border-radius: 18px; background: #fff; color: var(--oa-ink); text-decoration: none; font-size: 14px; font-weight: 600; text-align: center;
}
.oa-acc-tile:hover { color: var(--oa-ink); background: var(--oa-sunk); }
.oa-acc-tile small { position: absolute; top: 8px; inset-inline-end: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--oa-lime-50); color: var(--oa-lime-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.oa-acc-promo { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; border-radius: 20px; background: var(--oa-lime); color: var(--oa-ink); text-decoration: none; margin-bottom: 8px; overflow: hidden; }
.oa-acc-promo:hover { color: var(--oa-ink); }
.oa-acc-promo-text { flex: 1; display: grid; gap: 4px; }
.oa-acc-promo-text strong { font-family: var(--oa-display); font-size: 19px; line-height: 24px; font-weight: 800; }
.oa-acc-promo-text span { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.oa-acc-promo img { width: 84px; height: 84px; flex: 0 0 auto; margin: -8px 0; }
.oa-acc-sec { margin: 26px 0 4px; }
.oa-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--oa-sunk); }
.oa-seg a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--oa-mute); text-decoration: none; }
.oa-seg a.is-on { background: #fff; color: var(--oa-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.oa-acc-out { margin: 22px 0 0; }
.oa-acc-foot { display: grid; justify-items: center; gap: 6px; padding: 26px 0 8px; }
.oa-acc-foot img { height: 40px; width: auto; opacity: .9; }
.oa-acc-foot small { color: var(--oa-mute); font-size: 12.5px; }

/* Order cards */
.oa-oc-list { display: grid; gap: 12px; }
.oa-oc { position: relative; border: 1px solid var(--oa-border); border-radius: 18px; padding: 14px; background: #fff; }
.oa-oc-top { display: flex; align-items: flex-start; gap: 12px; }
.oa-oc-logo { width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto; border: 1px solid var(--oa-border); }
.oa-oc-logo .oa-ini { font-size: 15px; }
.oa-oc-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.oa-oc-shop { margin: 0; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--oa-font); }
.oa-oc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--oa-border-2); }
.oa-oc-foot > strong { font-size: 16px; font-weight: 800; }
.oa-oc-acts { position: relative; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.oa-oc-acts form { margin: 0; }
.oa-status { flex: 0 0 auto; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.oa-status--wait { background: #FFF3DC; color: #8A5A00; }
.oa-status--cook { background: var(--oa-lime-50); color: var(--oa-lime-ink); }
.oa-status--ride { background: #E0F2FE; color: #075985; }
.oa-status--done { background: var(--oa-sunk); color: var(--oa-ink-2); }
.oa-status--off { background: var(--oa-sale-50); color: var(--oa-sale); }
.oa-pager { display: flex; justify-content: space-between; margin: 18px 0 0; }

/* Forms on their own screen (profile, address) */
.oa-form-page { max-width: 640px; }
.oa-form-page form { margin: 0; }

/* Saved addresses */
.oa-addr-list { list-style: none; margin: 4px 0 16px; padding: 0; }
.oa-addr { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--oa-border); }
.oa-addr .oa-addr-text small { white-space: normal; display: flex; align-items: center; gap: 4px; }
.oa-addr .oa-addr-text strong { display: flex; align-items: center; gap: 8px; }
.oa-addr-map { height: 200px; border-radius: 18px; border: 1px solid var(--oa-border); overflow: hidden; margin: 8px 0 10px; z-index: 0; background: var(--oa-sunk); }
.oa-labels { border: 0; padding: 0; margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.oa-labels legend { margin-bottom: 8px; padding: 0; }
.oa-addr-del { margin-top: 18px; }

/* Tabs (Favourites: Shops | Items) */
.oa-tabs { display: flex; border-bottom: 1px solid var(--oa-border); margin: 0 calc(var(--oa-gutter) * -1) 8px; padding: 0 var(--oa-gutter); }
.oa-tabs a { flex: 1; text-align: center; padding: 12px 8px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--oa-mute); font-weight: 700; font-size: 15px; text-decoration: none; }
.oa-tabs a.is-on { color: var(--oa-ink); border-bottom-color: var(--oa-ink); }
@media (min-width: 900px) { .oa-tabs { margin-inline: 0; padding: 0; max-width: 480px; } }

/* Product grid (favourite items, search results) */
.oa-pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding-top: 8px; }
.oa-pgrid .oa-pc { width: auto; }
@media (min-width: 600px) { .oa-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .oa-pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.oa-pc-wish { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; }

/* ================================================================ SEARCH */
.oa-sbar { gap: 4px; padding-inline: 8px 12px; border-bottom: 0; }
.oa-sbar-form {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; margin-inline-start: 4px; padding: 0 6px 0 14px;
  border-radius: var(--oa-r-pill); background: var(--oa-sunk); color: var(--oa-ink-2); border: 1.5px solid transparent;
}
[dir="rtl"] .oa-sbar-form { padding: 0 14px 0 6px; }
.oa-sbar-form:focus-within { background: #fff; border-color: var(--oa-lime-600); box-shadow: 0 0 0 4px var(--oa-lime-50); }
.oa-sbar-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 16px; color: var(--oa-ink); }
.oa-sbar-form input::-webkit-search-cancel-button { display: none; }
.oa-sbar-clear { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--oa-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.oa-suggest {
  position: fixed; z-index: 69; inset-inline: 0; top: calc(var(--oa-safe-t) + 56px); max-height: calc(100vh - 140px); overflow-y: auto;
  background: #fff; border-top: 1px solid var(--oa-border); box-shadow: 0 16px 30px rgba(0, 0, 0, .12); padding: 4px 0 10px;
}
.oa-sg-group { padding: 12px var(--oa-gutter) 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--oa-mute); }
.oa-sg-row { display: flex; align-items: center; gap: 12px; padding: 8px var(--oa-gutter); color: var(--oa-ink); text-decoration: none; }
.oa-sg-row:hover { background: var(--oa-sunk); color: var(--oa-ink); }
.oa-sg-img { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; }
.oa-sg-img .oa-ini { font-size: 15px; }
.oa-sg-text { min-width: 0; display: grid; }
.oa-sg-text strong { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-sg-text small { font-size: 12.5px; color: var(--oa-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-sg-all { display: block; margin: 8px var(--oa-gutter) 0; padding: 12px; border-radius: 12px; background: var(--oa-lime-50); color: var(--oa-lime-ink); font-weight: 700; text-align: center; text-decoration: none; }
.oa-sg-none { padding: 20px var(--oa-gutter); margin: 0; color: var(--oa-mute); text-align: center; }
.oa-recent .oa-list-row { min-height: 48px; padding: 2px 0; }
.oa-recent-term { color: var(--oa-ink); text-decoration: none; }
.oa-recent-clear { background: none; border: 0; cursor: pointer; font-size: 14px; }
.oa-wrapchips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
  .oa-sbar { max-width: 760px; }
  .oa-suggest { position: absolute; top: auto; inset-inline: auto; width: min(720px, 100%); margin-top: 6px; border-radius: 18px; border: 1px solid var(--oa-border); left: 50%; transform: translateX(-50%); }
}

/* ============================================================== AUTH */
/* Login / register / password screens keep their markup; this re-skins them. */
.oa-auth-page .oy-auth { min-height: 0; padding: 12px var(--oa-gutter) 32px; background: #fff; }
.oa-auth-page .oy-auth-card { max-width: 440px; border: 0; box-shadow: none; padding: 0; background: transparent; }
.oa-auth-page .oy-auth-brand { margin: 8px 0 18px; }
.oa-auth-page .oy-auth-brand img { height: 56px; }
.oa-auth-page .oy-auth-tag { font-size: 13.5px; color: var(--oa-mute); }
.oa-auth-page .oy-auth-title { font-family: var(--oa-display); font-size: 26px; line-height: 32px; letter-spacing: -.02em; }
.oa-auth-page .oy-auth-sub { color: var(--oa-mute); margin-bottom: 22px; }
.oa-auth-page .oy-field label { font-size: 13px; color: var(--oa-ink-2); }
.oa-auth-page .oy-field input {
  min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--oa-border-2); background: #fff;
  font-size: 16px; color: var(--oa-ink); transition: border-color .15s, box-shadow .15s;
}
.oa-auth-page .oy-field input:focus { border-color: var(--oa-lime-600); box-shadow: 0 0 0 4px var(--oa-lime-50); background: #fff; }
/* Shop category picker (vendor signup): matches the text fields, with our own caret. */
.oa-auth-page .oy-field .oy-select {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 40px 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--oa-border-2); background: #fff; font: inherit; font-size: 16px; color: var(--oa-ink);
  appearance: none; -webkit-appearance: none; outline: none; transition: border-color .15s, box-shadow .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.oa-auth-page .oy-field .oy-select:focus { border-color: var(--oa-lime-600); box-shadow: 0 0 0 4px var(--oa-lime-50); }
.oa-auth-page .oy-hint { margin: 6px 2px 0; font-size: 12.5px; color: var(--oa-mute); }
html[dir="rtl"] .oa-auth-page .oy-field .oy-select { padding: 12px 14px 12px 40px; background-position: left 14px center; text-align: right; }
.oa-auth-page .oy-auth-btn {
  min-height: 54px; border-radius: 16px; background: var(--oa-lime); color: var(--oa-ink);
  font-family: var(--oa-display); font-size: 16px; font-weight: 800;
}
.oa-auth-page .oy-auth-btn:hover { background: var(--oa-lime-600); color: var(--oa-ink); }
.oa-auth-page .oy-auth-row .oy-remember input { accent-color: var(--oa-ink); }
.oa-auth-page .oy-link, .oa-auth-page .oy-auth-foot a { color: var(--oa-lime-ink); font-weight: 700; }
.oa-auth-page .oy-auth-foot { margin-top: 22px; }
.oa-auth-page .oy-seg { background: var(--oa-sunk); border: 0; border-radius: 999px; padding: 4px; }
.oa-auth-page .oy-seg-btn { border-radius: 999px; font-size: 13.5px; padding: 10px 6px; color: var(--oa-mute); }
.oa-auth-page .oy-seg-btn.on { background: #fff; color: var(--oa-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.oa-auth-page .oy-upload-box { border-radius: 16px; border-color: var(--oa-border-2); background-color: var(--oa-sunk); }
.oa-auth-page .oy-flash { border-radius: 14px; }
.oa-auth-page .np-google-btn { min-height: 52px; border-radius: 16px; }
@media (min-width: 900px) { .oa-auth-page .oy-auth { padding-top: 24px; } }

/* Welcome sheet (first visit: language + log in) */
.oa-welcome .oa-sheet-body { text-align: center; padding-top: 10px; padding-bottom: calc(18px + var(--oa-safe-b)); }
.oa-welcome-logo { height: 48px; width: auto; margin: 4px auto 10px; display: block; }
.oa-welcome-title { font-family: var(--oa-display); font-size: 22px; line-height: 28px; font-weight: 800; margin: 0 0 4px; }
.oa-welcome-sub { margin: 0 0 16px; color: var(--oa-mute); font-size: 14px; }
.oa-welcome-langs, .oa-welcome-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.oa-welcome-ur { font-family: 'Noto Nastaliq Urdu', sans-serif; font-weight: 700; }

/* The plain app bar given to pages without one is a phone thing: desktop keeps the site header. */
@media (min-width: 900px) { .oa-auto-appbar { display: none !important; } }
/* "Deliver to" lives in the home header and its sheet now; the old strip under the header goes. */
.oy-locbar-wrap { display: none !important; }
.oa-auth-lang { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; color: var(--oa-mute); }
/* Toasts clear the bottom action bar on cart / checkout / forms. */
body.oa-has-dock { --oa-above-tabbar: calc(96px + var(--oa-safe-b)); }
/* Narrow screens (account, cart, checkout…): the desktop title lines up with the content column. */
@media (min-width: 900px) {
  body.oa-narrow { --oa-max: 720px; }
  .oa-appbar, .oa-appbar--large { padding-inline: var(--oa-gutter); }
}

/* Password show/hide (resources/js/app.js) in brand colours. */
.np-pass-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: var(--oa-mute); border-radius: 50%; }
.np-pass-toggle:hover { color: var(--oa-ink); background: var(--oa-sunk); }

/* Photo viewer (review photos on app screens) */
.oa-viewer { position: fixed; inset: 0; z-index: 600; background: rgba(10, 10, 10, .92); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.oa-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.oa-viewer-x, .oa-viewer-nav {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.oa-viewer-x { top: calc(12px + var(--oa-safe-t)); inset-inline-end: 12px; }
.oa-viewer-nav { top: 50%; transform: translateY(-50%); }
.oa-viewer-nav[data-step="-1"] { inset-inline-start: 10px; }
.oa-viewer-nav[data-step="1"] { inset-inline-end: 10px; }
[dir="rtl"] .oa-viewer-nav { transform: translateY(-50%) scaleX(-1); }
