/* =====================================================================
   وصلة — customer pages (home/search/store/cart/checkout/pay/login)
   Page-level layout only. Tokens + shared classes; no hex colors.
   ===================================================================== */

/* inline icons inside running text (svg is display:block by default) */
p > .ic, .hint > .ic, .price-row__label > .ic + .ic { display: inline-block; vertical-align: -3px; margin-inline-end: 2px; }

/* item options sheet */
.item-sheet .sheet__media > .ph > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opt-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt-group > legend { width: 100%; padding: 0; float: none; }
.radio-card--compact { min-height: 52px; padding-block: var(--s-2); }
.radio-card--compact .radio-card__end { white-space: nowrap; }

/* fixed bottom CTA bar (cart / checkout / pay) */
.cta-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-cartbar);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + var(--safe-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.cta-bar__inner { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s-2); }
.cta-bar__note { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
body.has-cta .page { padding-bottom: 140px; }

/* two-column layout on desktop (cart / checkout) */
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) {
  .split-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .split-layout__side { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}

/* small section heading inside cards */
.block-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--s-3); }
.block-title .ic { width: 20px; height: 20px; color: var(--brand); }

/* home: quick feature cards (assistant / group) */
.feature-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 72px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); border: var(--card-border); color: var(--ink); text-decoration: none !important; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2); }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.feature-card__icon { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); }
.feature-card__title { font-weight: var(--fw-bold); font-size: var(--fs-sm); line-height: 1.35; }
.feature-card__sub { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.greet { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-tight); }

/* reorder card */
.reorder-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); border: var(--card-border); }
.reorder-card__top { display: flex; gap: var(--s-3); align-items: center; min-width: 0; }
.reorder-card__img { width: 56px; height: 56px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; }
.reorder-card__img > img { width: 100%; height: 100%; object-fit: cover; }

.hscroll--coupons > * { width: min(86%, 340px); }
.cuisine__img.cuisine__img--all { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.filters { position: sticky; top: calc(var(--header-h) + var(--safe-top)); z-index: var(--z-sticky); background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding: var(--s-2) var(--gutter) 0; }
.filters .chips.hscroll { margin-inline: calc(var(--gutter) * -1); padding-block: 4px 10px; }

/* store page */
.store-head__name { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.3; }
.store-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.store-fact { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s-2) 4px; border-radius: var(--r-md); background: var(--surface-2); text-align: center; min-width: 0; }
.store-fact__v { font-weight: var(--fw-bold); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.store-fact__l { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.store-fact .price-old { font-size: var(--fs-xs); }
.promo-line { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.promo-line .ic { width: 18px; height: 18px; flex-shrink: 0; }
.closed-line { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
.menu-section { scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 64px); }
.menu-section__title { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin: var(--s-5) 0 var(--s-1); }
.review { padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); border: var(--card-border); width: min(80%, 300px); }

/* cart lines */
.cart-line { display: flex; gap: var(--s-3); padding: var(--s-3) 0; align-items: flex-start; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line__img { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; }
.cart-line__img > img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line__name { font-weight: var(--fw-semi); line-height: 1.4; }
.cart-line__opts { font-size: var(--fs-xs); color: var(--muted); }
.cart-line__note { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 32px; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--brand); }
.cart-line__note .ic { width: 14px; height: 14px; }
.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.store-head { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.store-head__logo { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.store-head__logo > img { width: 100%; height: 100%; object-fit: cover; }
.callout { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--brand-soft); color: var(--ink); font-size: var(--fs-sm); line-height: 1.6; }
.callout > .ic { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.callout--warn { background: var(--warn-soft); }
.callout--warn > .ic { color: var(--warn); }
.callout--danger { background: var(--danger-soft); }
.callout--danger > .ic { color: var(--danger); }
.coupon-form { display: flex; gap: var(--s-2); }
.coupon-form .input { flex: 1; min-width: 0; text-transform: uppercase; direction: ltr; text-align: right; letter-spacing: .06em; }

/* pay page — fake gateway */
.gateway { max-width: 480px; margin-inline: auto; }
.gateway__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.gateway__lock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--brand); }
.gateway__amount { font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.paycard {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.586; border-radius: var(--r-xl); padding: var(--s-5);
  background: var(--hero-bg); color: var(--header-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--sh-2);
}
.paycard::after { content: ""; position: absolute; inset-inline-end: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: var(--header-fill); z-index: -1; }
.paycard__chip { width: 44px; height: 32px; border-radius: 8px; background: var(--header-fill-hover); }
.paycard__num { direction: ltr; text-align: left; font-size: var(--fs-xl); font-weight: var(--fw-semi); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.paycard__row { display: flex; justify-content: space-between; gap: var(--s-3); direction: ltr; font-size: var(--fs-sm); }
.paycard__row small { display: block; font-size: 10px; color: var(--header-muted); letter-spacing: .08em; }
.input.ltr-input { direction: ltr; text-align: left; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.secure-row { display: flex; align-items: center; justify-content: center; gap: var(--s-4); flex-wrap: wrap; color: var(--muted); font-size: var(--fs-xs); }
.secure-row > span { display: inline-flex; align-items: center; gap: 4px; }

/* login */
.auth { max-width: 440px; margin-inline: auto; }
.auth__mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); margin-inline: auto; }
.auth__mark svg { width: 36px; height: 36px; }
.demo-hint { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand); font-size: var(--fs-sm); font-weight: var(--fw-semi); }
