/* ── Fresh-Market Arcade palette & base ─────────────────────────── */
:root {
  /* greens — primary action / links / tints */
  --green:      #12A150;  /* ADD, CTA fills, steppers, success (white bold ≥14px) */
  --green-dark: #0A7C39;  /* pressed, links, ALL small green text (5.3:1 on white) */
  --green-soft: #E4F6EA;  /* ADD idle bg, delivery icon, active chips */

  /* cheerful fruit-candy accents */
  --mango:  #FF7A2F;      /* active-tab dot, category glow, orb stop-2 */
  --berry:  #FF3D7F;      /* discount + festive price pills, orb stop-1 */
  --lemon:  #FFC93C;      /* cart count badge (INK digits), coupon glints */
  --yellow: #FFC93C;      /* alias for legacy star/rating */
  --saffron:      #FFC93C;
  --saffron-deep: #E6A900;
  --azure:  #2E7DF6;      /* savings / FREE-delivery info banners */
  --blue:   #2E7DF6;      /* alias — blue-tick banner + auto-coupon */
  --grape:  #6C4BE6;      /* unlocked-deal / alternating rail accent */

  /* header gradient (spring-green → teal) + lemon sun-glow */
  --head-1: #16B24D;  --head-2: #0B6E5A;  --head-glow: rgba(255,201,60,.28);
  --teal-1: #0d5964;  --teal-2: #0a3f47;  /* kept for login gradient + coupon stubs */

  /* signature cart orb */
  --orb-1: #FF4D8D;  --orb-2: #FF7A2F;

  /* surfaces & ink */
  --bg:    #F4FAF3;       /* whisper-mint page (never grey, never cream) */
  --card:  #FFFFFF;
  --cream: #FFF3DC;       /* butter: festive / coupon / gift surfaces */
  --ink:   #14231A;       /* primary text ~15:1 on white */
  --muted: #5E7268;       /* secondary text 5.1:1 AA */
  --line:  #E7EFE7;
  --danger:#E23B3B;

  /* rotating pastel group-tile backgrounds */
  --tile-1:#FFEFD6; --tile-2:#E4F6EA; --tile-3:#FFE1EC; --tile-4:#ECE6FF;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-pill:999px;
  --shadow:     0 2px 10px rgba(18, 60, 32, .06);
  --shadow-lift:0 10px 24px rgba(18, 60, 32, .16);
  --shadow-orb: 0 8px 20px rgba(255, 77, 141, .42);
  --nav-h:      56px;

  --sans:    "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fredoka", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px; line-height: 1.4; overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  width: 100%; max-width: 100%; overflow-x: hidden;   /* never scroll sideways */
}
/* Center as a phone-width column on wide screens (desktop Telegram / browser) */
#app { width: 100%; max-width: 520px; margin: 0 auto; position: relative; }
img, video { max-width: 100%; }
button { font: inherit; border: 0; background: transparent; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; }

/* ── screens (single-page router) ───────────────────────────────── */
.screen { min-height: var(--app-h, 100vh); display: flex; flex-direction: column; }
[hidden] { display: none !important; }

/* ── HOME topbar ────────────────────────────────────────────────── */
.topbar {
  position: relative; z-index: 20;   /* keep the open account dropdown above the feed */
  background: linear-gradient(150deg, var(--head-1), var(--head-2));
  color: #fff;
  padding: env(safe-area-inset-top) 12px 8px;
}
.topbar::after {   /* warm lemon sun-glow, top-right — sits BEHIND the content */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 80% at 92% 0%, var(--head-glow), transparent 60%);
}
/* Header content sits above the glow. The account row (which holds the
   Switch-account dropdown) must stack ABOVE the search bar + category chips so
   the open dropdown overlays them instead of bleeding through. */
.topbar-inner { position: relative; z-index: 5; }
.topbar .searchbar { position: relative; z-index: 2; }
.topbar .cats { position: relative; z-index: 1; }
.topbar-inner { display: flex; align-items: flex-start; gap: 8px; padding-top: 6px; }
.brand { flex: 1 1 auto; min-width: 0; }   /* min-width:0 lets the text column shrink instead of overflowing */
.topbar-actions { flex: 0 0 auto; }
.brand-line { font-size: 11px; opacity: .85; }
.brand-eta  { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 6px; }
.brand-eta .pill {
  background: rgba(255,255,255,.15); border-radius: 999px;
  font-size: 11px; padding: 2px 8px; font-weight: 600;
}
.brand-loc { font-size: 12px; opacity: .9; margin-top: 2px; }
.loc-home { font-weight: 700; margin-right: 4px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.chip {
  background: rgba(255,255,255,.14); color: #fff;
  padding: 6px 10px; border-radius: 999px; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px; max-width: 150px;
}
.chip #active-phone { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .caret { opacity: .7; flex: 0 0 auto; }
.chip .dot-online { flex: 0 0 auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 16px;
}

.searchbar {
  margin-top: 10px; background: #fff; border-radius: 12px;
  display: flex; align-items: center; padding: 9px 12px; gap: 8px;
  box-shadow: 0 4px 14px rgba(6, 43, 48, .18);
}
.searchbar input { flex: 1; border: 0; outline: 0; font-size: 13px; background: transparent; }
.searchbar input::placeholder { color: #98a2ad; }
.search-icon { color: #444; }
.mic { color: var(--green); font-size: 16px; }
.search-clear {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 999px; border: 0;
  background: #eef1f4; color: #6b7280; font-size: 11px; display: grid; place-items: center;
}
.search-clear:active { background: #e2e6ea; }

.cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 6px;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
/* puffy "sticker" chips — active fills mango, no more low-contrast underline */
.cat {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px; position: relative;
  color: #fff; font-size: 12px; font-weight: 700; font-family: var(--display);
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.14); white-space: nowrap;
  transition: transform .12s ease, background .12s ease;
}
.cat:active { transform: scale(.96); }
.cat .cat-emoji { font-size: 16px; display: inline-grid; place-items: center; }
.cat .cat-emoji img { width: 20px; height: 20px; border-radius: 999px; object-fit: cover; display: block; background: rgba(255,255,255,.35); }
.cat.active { background: var(--mango); color: #fff; box-shadow: 0 3px 10px rgba(255,122,47,.5); }
.cat .badge {
  position: absolute; top: -6px; right: -2px; background: var(--berry);
  color: #fff; font-size: 8.5px; font-weight: 800; padding: 1px 5px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255,61,127,.4);
}

/* ── HOME feed ──────────────────────────────────────────────────── */
.feed { flex: 1; padding: 12px 12px calc(var(--nav-h) + 88px); }
/* category-tab loading shimmer */
.feed-loading { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 60px 0; }
.feed-loading .fl-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--green); animation: flPulse 1s ease-in-out infinite; }
.feed-loading .fl-dot:nth-child(2) { background: var(--mango); animation-delay: .15s; }
.feed-loading .fl-dot:nth-child(3) { background: var(--berry); animation-delay: .3s; }
@keyframes flPulse { 0%,100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1); opacity: 1; } }
.buy-again { margin-bottom: 4px; }
.banner {
  background: linear-gradient(180deg, #14676f, #0d3e46);
  color: #f8e6b3; text-align: center; padding: 18px 12px; border-radius: 12px;
  box-shadow: var(--shadow);
}
.banner-title  { letter-spacing: .3em; font-weight: 800; font-size: 11px; }
.banner-heading{ font-family: Georgia, serif; font-size: 23px; margin: 5px 0; }
.banner-sub    { letter-spacing: .2em; font-size: 10.5px; opacity: .85; }

.tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0;
}
.tile {
  background: linear-gradient(180deg, #fdf1d6, #f6e5c4);
  border-radius: 11px; padding: 8px 6px 7px; text-align: center;
  font-size: 10.5px; font-weight: 600; box-shadow: var(--shadow); line-height: 1.25;
}
.tile .tile-emoji { display: block; font-size: 21px; margin-bottom: 3px; }

.section-title { font-family: var(--display); margin: 16px 4px 8px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }

/* ── server-driven home feed sections ──────────────────────────── */
#feed-sections { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.feed-img { flex-grow: 0; flex-shrink: 0; display: block; border-radius: 13px; overflow: hidden;
  box-shadow: var(--shadow); background: #eef2f6; min-height: 92px; }
.feed-img img { width: 100%; height: auto; display: block; }

/* promo flipper card: bg image + overlaid logo / product / price */
.feed-promo {
  flex-grow: 0; flex-shrink: 0; position: relative; display: block;
  border-radius: 13px; overflow: hidden; box-shadow: var(--shadow); background: #eef2f6;
  min-height: 128px;
}
.feed-promo .promo-bg { width: 100%; height: auto; min-height: 128px; display: block; }
.feed-promo .promo-logo { position: absolute; top: 10px; left: 12px; height: 28%; max-height: 46px; width: auto; }
.feed-promo .promo-prod { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 78%; width: auto; }
.feed-promo .promo-price {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: #e91e63; color: #fff; border-radius: 999px; padding: 4px 11px;
  font-family: var(--display); font-weight: 800; font-size: 13px;
}
.feed-promo .promo-price s { opacity: .8; font-weight: 600; font-size: 11px; }

.feed-rail { flex: 0 0 100%; margin: 4px 0 2px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 8px; }
.rail-title { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.rail-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-scroll .prod { flex: 0 0 130px; width: 130px; }

.feed-group {
  flex: 0 0 calc(33.333% - 6px); background: #fff; border: 1px solid #eef0f3; border-radius: 12px;
  padding: 9px 7px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow); text-align: center;
}
.feed-group img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #f7f8fa; }
.feed-group .fg-ph { width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 30px; background: #f7f8fa; border-radius: 8px; }
.feed-group .fg-title { font-size: 10.5px; font-weight: 600; line-height: 1.25; color: #24292f; }
.feed-header { flex: 0 0 100%; }

.products {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.prod {
  background: var(--card); border: 1px solid #eef0f3; border-radius: 13px; padding: 9px;
  box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
  transition: transform .08s ease, box-shadow .12s ease;
}
.prod:active { transform: scale(.985); }
.prod .prod-img {
  aspect-ratio: 1; background: linear-gradient(160deg, #f9fbfc, #eef2f6); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.prod .prod-tag {
  position: absolute; top: 7px; left: 7px; background: var(--green-soft);
  color: var(--green-dark); font-size: 9px; padding: 2px 6px; border-radius: 5px;
  font-weight: 700; letter-spacing: .01em;
}
.prod .prod-unit { font-size: 10.5px; color: var(--muted); margin: 7px 0 2px; }
.prod .prod-name { font-size: 12px; font-weight: 600; line-height: 1.3; min-height: 31px; color: #24292f;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 6px; }
.prod .prod-price { font-family: var(--display); font-weight: 800; font-size: 13.5px; letter-spacing: -.01em; }
.prod .prod-mrp   { color: var(--muted); text-decoration: line-through; font-size: 10.5px; margin-left: 3px; }

.add-btn {
  border: 1.5px solid var(--green); color: var(--green); background: #f7fdf9;
  padding: 6px 15px; border-radius: 9px; font-weight: 800; font-size: 11.5px; letter-spacing: .03em;
  box-shadow: 0 1px 2px rgba(12,131,31,.08); transition: transform .06s ease;
}
.add-btn:active { transform: scale(.94); }
.qty {
  display: inline-flex; align-items: center; background: var(--green); color: #fff;
  border-radius: 9px; overflow: hidden; box-shadow: 0 2px 6px rgba(12,131,31,.28);
}
.qty button { color: #fff; padding: 6px 9px; font-weight: 700; font-size: 14px; }
.qty button:active { background: rgba(0,0,0,.12); }
.qty span   { padding: 0 4px; font-weight: 800; min-width: 18px; text-align: center; font-size: 12.5px; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

/* compact 3-per-row grid used for search results */
.products.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.products.grid-3 .prod { padding: 6px; border-radius: 11px; }
.products.grid-3 .prod-img { font-size: 26px; border-radius: 8px; }
.products.grid-3 .prod-tag { font-size: 8px; padding: 1px 4px; top: 5px; left: 5px; }
.products.grid-3 .prod-unit { font-size: 9.5px; margin: 5px 0 1px; }
.products.grid-3 .prod-name { font-size: 10.5px; min-height: 26px; line-height: 1.2; }
.products.grid-3 .prod-foot { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 6px; }
.products.grid-3 .prod-price { font-size: 12px; }
.products.grid-3 .prod-mrp { font-size: 9px; }
.products.grid-3 .prod-action { display: flex; }
.products.grid-3 .add-btn { width: 100%; padding: 5px 4px; font-size: 10.5px; }
.products.grid-3 .qty { width: 100%; justify-content: space-between; }
.products.grid-3 .qty button { padding: 5px 6px; font-size: 12px; }

/* ── generic page ───────────────────────────────────────────────── */
.page-head {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.page-head h1 { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0; flex: 1; }
.page-head .back { font-size: 20px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); }
.page-head .icon { font-size: 16px; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line); }
.page-head .right { margin-left: auto; font-weight: 700; }
.page  { padding: 12px; flex: 1; padding-bottom: calc(var(--nav-h) + 96px); }
.page.center { text-align: center; padding-top: 40px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.card h3 { margin: 0 0 10px; font-size: 15px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-title   { font-weight: 700; font-size: 14px; }
.row-sub     { font-size: 12px; color: var(--muted); margin-top: 2px; }
.clickable   { cursor: pointer; }
.chev        { color: var(--muted); font-size: 20px; }
.link        { color: var(--green); font-weight: 700; }
.muted       { color: var(--muted); }
.small       { font-size: 12px; }
.blue        { color: var(--blue); }

/* ── cart ───────────────────────────────────────────────────────── */
.delivery-card {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 10px;
}
.delivery-icon {
  width: 34px; height: 34px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-dark); display: grid; place-items: center; font-size: 18px;
}
.delivery-title { font-weight: 700; }
.delivery-sub   { font-size: 12px; color: var(--muted); }

.lines {
  background: #fff; border-radius: var(--radius); padding: 4px 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.lines .line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.lines .line:last-child { border-bottom: 0; }
.lines .thumb {
  width: 56px; height: 56px; background: #f7f8fa; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; font-size: 28px;
}
.lines .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-info { min-width: 0; }

/* add-more-items row (single-page checkout) */
.add-more-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: #fff; border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow); margin-bottom: 10px; font-weight: 700; font-size: 13.5px;
  color: var(--green-dark);
}
.add-more-row .am-plus {
  width: 24px; height: 24px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-dark); display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
.add-more-row .chev { margin-left: auto; }
.add-more-row:active { transform: scale(.995); }

/* auto-applied savings banner (mirrors the app's blue-tick "FREE Delivery") */
.save-banner {
  display: flex; align-items: center; gap: 11px;
  background: #eaf3ff; border: 1px solid #cfe4ff; border-radius: var(--radius);
  padding: 11px 13px; margin-bottom: 10px;
}
.save-banner .sb-ic {
  width: 26px; height: 26px; border-radius: 999px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 14px; flex: 0 0 auto;
}
.save-banner .sb-title { font-family: var(--display); font-weight: 800; font-size: 13.5px; color: var(--blue); }
.save-banner .sb-sub   { font-size: 11.5px; color: #4a6b90; margin-top: 1px; }
.line-name { font-size: 13px; font-weight: 600; }
.line-unit { font-size: 11px; color: var(--muted); margin-top: 2px; }
.line-tag  {
  display: inline-block; background: #eaf1ff; color: var(--blue);
  font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-bottom: 4px;
}
.line-right { text-align: right; }
.line-price { font-weight: 700; }
.line-mrp   { color: var(--muted); text-decoration: line-through; font-size: 11px; }

.lines .line + .qty { margin-top: 6px; }

/* bill */
.bill-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; gap: 12px; }
.bill-row.muted { color: var(--muted); font-size: 13px; }
.bill-row.grand { border-top: 1px dashed var(--line); font-family: var(--display); font-weight: 800;
  font-size: 16px; margin-top: 6px; padding-top: 11px; }
.bill-row .green { color: var(--green-dark); font-weight: 700; }
.bill-save-pill {
  display: inline-block; background: #eaf1ff; color: var(--blue);
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-left: 4px;
  vertical-align: middle;
}
.bill-savings {
  display: flex; justify-content: space-between; align-items: center;
  background: #eaf3ff; margin: 10px -14px -14px; padding: 11px 14px;
  border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius);
  font-family: var(--display); font-weight: 800; font-size: 13.5px;
}

/* footer / cta */
.footer {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 520px; background: #fff;
  border-top: 1px solid var(--line); padding: 10px 12px calc(env(safe-area-inset-bottom) + 12px);
  z-index: 10; display: flex; flex-direction: column; gap: 8px;
}
.btn {
  border-radius: 12px; padding: 12px 16px; font-family: var(--display); font-weight: 800; font-size: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: transform .06s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--green); color: #fff; border-color: var(--green);
  box-shadow: 0 6px 16px rgba(12,131,31,.28); }
.btn.primary[disabled] { background: #b9d3bd; border-color: #b9d3bd; box-shadow: none; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.lg { width: 100%; padding: 15px 16px; font-size: 15.5px; }

.deliver-strip {
  display: flex; justify-content: space-between; align-items: center;
  background: #f4f6ff; border-radius: 10px; padding: 8px 10px; font-size: 13px;
}

/* ── payment ────────────────────────────────────────────────────── */
#payment-methods .pm {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
#payment-methods .pm:last-child { border-bottom: 0; }
#payment-methods .pm .pm-icon { font-size: 22px; width: 36px; text-align: center; }
#payment-methods .pm .pm-title { font-weight: 700; }
#payment-methods .pm .pm-sub   { color: var(--muted); font-size: 12px; }
#payment-methods .pm input     { margin-left: auto; transform: scale(1.2); accent-color: var(--green); }
#payment-methods .pm.active    { background: #f0faf3; border-radius: 10px; padding: 12px; }

/* ── success ────────────────────────────────────────────────────── */
.page.center h2 { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 10px 0 4px; }
.success-emoji { font-size: 64px; }
.order-card {
  margin: 20px auto; background: #fff; border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); text-align: left; max-width: 380px;
}

/* ── cartbar ────────────────────────────────────────────────────── */
.cartbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 12px);
  width: calc(100% - 24px); max-width: 496px;
  background: var(--green); color: #fff; border-radius: 12px;
  display: flex; align-items: center; padding: 8px 10px; box-shadow: 0 4px 14px rgba(12,131,31,.4);
  z-index: 8;
}
.cartbar-icons { display: flex; flex: 0 0 auto; margin-right: 8px; }
.cartbar-icons span {
  width: 30px; height: 30px; border-radius: 999px; background: #fff;
  display: grid; place-items: center; font-size: 16px; margin-left: -8px;
  border: 2px solid #0a721a;
}
.cartbar-btn {
  color: #fff; flex: 1; display: flex; align-items: center;
  gap: 8px; font-family: var(--display); font-weight: 800; font-size: 15px;
}
.cartbar-btn span:first-child { flex: 1; text-align: left; }
.cartbar-btn small { opacity: .9; font-size: 11px; margin-right: 4px; font-weight: 600; font-family: var(--sans); }

/* ── sheets ─────────────────────────────────────────────────────── */
.sheet {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40;
  display: flex; align-items: flex-end;
}
.sheet-body {
  background: #fff; width: 100%; border-top-left-radius: 18px; border-top-right-radius: 18px;
  padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px);
  max-height: 85vh; overflow-y: auto;
}
.sheet-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; text-align: center; }
.sheet input {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px;
}
.num-list { list-style: none; padding: 0; margin: 0 0 16px; }
.num-list li {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.num-list li:last-child { border-bottom: 0; }
.num-list .del { color: var(--danger); font-size: 13px; }
.num-list .star { color: var(--yellow); }

/* cart "Apply Coupon" strip */
.coupon-row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px;
}
.coupon-row:active { transform: scale(.995); }
.coupon-ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; background: #fff4d6;
}
.coupon-row-main { flex: 1; display: flex; flex-direction: column; }
.coupon-row-title { font-family: var(--display); font-weight: 800; font-size: 14px; }
.coupon-row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.coupon-row .chev { color: var(--muted); font-size: 20px; }

/* coupons sheet */
.sheet-handle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-handle-row .sheet-title { margin: 0; text-align: left; font-family: var(--display); }
.sheet-x { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; background: #fff; }
.coupon-code-box { display: flex; gap: 8px; margin-bottom: 18px; }
.coupon-code-box input {
  flex: 1; padding: 13px 14px; border: 1.5px dashed #cdd4db; border-radius: 12px;
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0;
}
.coupon-code-box input:focus { outline: none; border-color: var(--green); border-style: solid; }
.coupon-code-box .btn { padding: 13px 20px; }
.coupon-list-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 800; color: var(--muted); margin: 0 2px 10px; }

.coupon-list { margin: 0 0 4px; display: flex; flex-direction: column; gap: 10px; }
.coupon-ticket {
  display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  position: relative;
}
.coupon-ticket.is-applied { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.ct-left {
  flex: 0 0 82px; background: linear-gradient(160deg, #0f7581, var(--teal-2)); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; text-align: center; position: relative;
}
/* perforation notch between stub and body */
.ct-left::after {
  content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 999px; background: #fff;
  box-shadow: 0 -18px 0 #fff, 0 18px 0 #fff;
}
.ct-code { font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .02em; word-break: break-word; }
.ct-bank, .ct-off { font-size: 9px; margin-top: 4px; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }
.ct-body { flex: 1; padding: 12px 12px 12px 16px; min-width: 0; }
.ct-title { font-weight: 700; font-size: 13.5px; }
.ct-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.ct-min { font-size: 11px; color: var(--green-dark); font-weight: 600; margin-top: 5px; }
.ct-need { font-size: 11px; color: #c2410c; font-weight: 700; margin-top: 5px; }
.coupon-ticket.is-locked { opacity: .72; }
.coupon-ticket.is-locked .ct-left { filter: grayscale(.5); }
.ct-apply[disabled] { color: #aab0b8; cursor: default; }
.ct-apply {
  flex: 0 0 auto; align-self: center; margin: 0 12px; padding: 8px 14px;
  border: 0; background: none; color: var(--green); font-family: var(--display);
  font-weight: 800; font-size: 12px; letter-spacing: .04em; cursor: pointer; white-space: nowrap;
}
.coupon-ticket.is-applied .ct-apply { color: var(--green-dark); }
/* auto-applied offers (no code needed) — read-only, already on the bill */
.coupon-ticket.is-auto { border-color: var(--blue); }
.coupon-ticket.is-auto .ct-left { background: linear-gradient(160deg, #2b8ae0, #1876d2); }
.coupon-ticket.is-auto .ct-apply { color: var(--blue); }

/* ── chips (checkout) ──────────────────────────────────────────── */
.chip-check {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  font-size: 12px; display: flex; align-items: center; gap: 6px;
  min-width: 100px;
}
.chip-check input { accent-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; padding: 8px 14px;
}
.chips .chip.active { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }

.grand-card { padding: 16px; }
.grand-card .savings { background: #e8f2fd; margin: 12px -16px -16px; padding: 12px 16px;
  border-radius: 0 0 var(--radius) var(--radius); }

/* ── toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 100px; background: rgba(20,20,20,.9); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 100;
  max-width: 80%;
}

/* ── load error / retry ────────────────────────────────────────── */
.load-error {
  position: fixed; inset: 0; z-index: 160; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 2px;
}

/* ── loader ────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); z-index: 200; gap: 8px;
}
[data-loading="0"] .loader { display: none; }
.loader .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--green);
  animation: bounce 1s infinite ease-in-out;
}
.loader .dot:nth-child(2) { animation-delay: .15s; }
.loader .dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ── empty state ───────────────────────────────────────────────── */
.empty { text-align: center; padding: 40px 20px; }
.empty-emoji { font-size: 48px; }
.empty-title { font-weight: 700; margin: 10px 0 20px; }

#co-grand, #pay-total, #order-card b { font-family: var(--display); font-weight: 800; }

/* ── LOGIN GATE (interactive OTP) ──────────────────────────────── */
.screen.login {
  min-height: var(--app-h, 100vh); display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(130% 90% at 50% -10%, #0f7581 0%, var(--teal-1) 46%, var(--teal-2) 100%);
}
.login-hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 24px 20px;
}
.login-logo {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
  background: var(--saffron); color: #3d2c00; display: grid; place-items: center; font-size: 30px;
  box-shadow: 0 10px 26px rgba(248,203,70,.4), inset 0 -3px 0 rgba(0,0,0,.1);
  animation: logoPop .5s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes logoPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.login-brand { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.login-tag { opacity: .9; margin-top: 5px; font-size: 12.5px; }
.login-tag b { color: var(--saffron); font-weight: 700; }

.login-sheet {
  background: #fff; color: var(--ink); border-radius: 30px 30px 0 0;
  padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -12px 44px rgba(0,0,0,.22); position: relative;
  animation: sheetUp .4s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { display: block; width: 42px; height: 4px; border-radius: 99px; background: #e3e7ea; margin: 0 auto 18px; }

/* no-number gate message */
.login-sheet { text-align: center; }
.gate-icon {
  width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 16px;
  background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; font-size: 28px;
}
.login-sheet h2 { text-align: center; }
.login-sheet .login-sub { max-width: 300px; margin: 0 auto 20px; }

.login-step { animation: stepIn .28s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.login-step h2 { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 5px; }
.login-sheet h2 { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 5px; }
.login-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.login-sub b { color: var(--ink); }
.login-fineprint { color: #9aa2ab; font-size: 11.5px; text-align: center; margin: 16px 4px 0; line-height: 1.5; }
.login-fineprint u { text-decoration-color: #c7ccd2; }

/* phone entry */
.phone-input {
  display: flex; align-items: center; border: 1.6px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.phone-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.phone-input.valid { border-color: var(--green); }
.phone-input .cc {
  padding: 15px 13px; background: #f6f8f9; font-weight: 800; color: #222;
  border-right: 1px solid var(--line); font-size: 15px; white-space: nowrap;
}
.phone-input input {
  flex: 1; border: 0; outline: 0; padding: 15px 14px; font-size: 18px; font-weight: 700;
  letter-spacing: 2px; min-width: 0; background: transparent;
}
.phone-input input::placeholder { color: #c4cbd2; font-weight: 500; }
.phone-tick { width: 0; overflow: hidden; color: var(--green); font-weight: 800; font-size: 17px;
  transition: width .18s ease, padding .18s ease; }
.phone-input.valid .phone-tick { width: 18px; padding-right: 14px; }

/* OTP digit boxes */
.otp-back { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 13px;
  padding: 0; margin: 0 0 12px; cursor: pointer; }
.otp-boxes { display: flex; gap: 12px; justify-content: center; margin: 4px 0 20px; }
.otp-box {
  flex: 1; max-width: 62px; min-width: 0; height: 64px; text-align: center;
  font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--ink);
  border: 1.7px solid var(--line); border-radius: 15px; background: #fbfcfd;
  transition: border-color .12s, box-shadow .12s, background .12s, transform .06s;
}
.otp-box:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); background: #fff; }
.otp-box.filled { border-color: var(--green); background: #fff; }
.otp-box.shake { animation: otpShake .4s; border-color: var(--danger); }
@keyframes otpShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

.otp-foot { text-align: center; margin-top: 16px; font-size: 13px; min-height: 20px; }
.otp-timer { color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--green-dark); font-weight: 800;
  font-size: 13px; cursor: pointer; padding: 0 2px; }

/* ── ACCOUNT DROPDOWN ──────────────────────────────────────────── */
.account-dd { position: relative; }
.chip .dot-online {
  width: 7px; height: 7px; border-radius: 999px; background: #3fdd78;
  display: inline-block; box-shadow: 0 0 0 2px rgba(63,221,120,.25);
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 250px; max-width: calc(100vw - 20px);
  background: #fff; color: var(--ink); border-radius: 14px; padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25); z-index: 60;
}
.dropdown::before {
  content: ""; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}
.dd-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 6px 8px 8px; font-weight: 700; }
.dd-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.dd-num { display: flex; align-items: center; border-radius: 10px; }
.dd-num.active { background: var(--green-soft); }
.dd-pick {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 8px;
  text-align: left; color: var(--ink); font-size: 14px;
}
.dd-check { width: 16px; color: var(--green); font-weight: 800; }
.dd-phone { font-weight: 600; }
.dd-badge {
  margin-left: auto; font-size: 10px; color: var(--green-dark);
  background: #dcf1e2; padding: 1px 6px; border-radius: 5px;
}
.dd-remove { color: var(--muted); padding: 8px 10px; font-size: 13px; }
.dd-remove:hover { color: var(--danger); }
.dd-empty { color: var(--muted); font-size: 13px; padding: 8px; }
.dd-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.dd-hint { font-size: 11px; color: var(--muted); padding: 4px 8px 6px; text-align: center; }
.dd-item.action {
  display: block; width: 100%; text-align: left; padding: 11px 10px;
  border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.dd-item.action:hover { background: #f4f6f9; }
#dd-logout { color: var(--danger); }

/* ── LOCATION BAR (tappable) ────────────────────────────────────── */
.brand-loc {
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
  background: none; color: #fff; font-size: 12px; padding: 2px 0;
  max-width: 100%; min-width: 0;
}
.brand-loc .loc-label { font-weight: 800; text-transform: uppercase; flex: 0 0 auto; }
.brand-loc #loc-text { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-loc .caret { opacity: .8; flex: 0 0 auto; }

/* ── ADDRESS BOOK ──────────────────────────────────────────────── */
.add-address-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; box-shadow: var(--shadow); margin-bottom: 16px;
  color: var(--green-dark); font-weight: 700;
}
.add-address-row .aa-plus {
  width: 26px; height: 26px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-dark); display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.add-address-row .chev { margin-left: auto; color: var(--muted); font-size: 20px; }

.addr-section-title { font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; margin: 4px 4px 10px; }

.address-list { display: flex; flex-direction: column; gap: 10px; }
.addr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); position: relative;
}
.addr-card.selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.addr-main { cursor: pointer; }
.addr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.addr-ic { font-size: 16px; }
.addr-label { font-weight: 700; }
.addr-current {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: var(--green-dark); background: var(--green-soft); padding: 3px 8px; border-radius: 999px;
}
.addr-summary { font-size: 13px; color: #333; line-height: 1.4; }
.addr-recv { font-size: 12px; color: var(--muted); margin-top: 4px; }
.addr-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.addr-deliver {
  color: var(--green-dark); font-weight: 700; font-size: 13px;
  border: 1px solid var(--green); border-radius: 8px; padding: 6px 14px; background: #fff;
}
.addr-icon-btn {
  margin-left: auto; font-size: 15px; padding: 6px 8px; border-radius: 8px; background: #f4f6f9;
}
.addr-icon-btn + .addr-icon-btn { margin-left: 0; }

/* ── ADDRESS FORM ──────────────────────────────────────────────── */
.label-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.label-chip {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 6px;
  font-size: 13px; font-weight: 600; background: #fff; color: var(--ink);
}
.label-chip.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
#address-form .fld {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 10px; font-size: 15px;
}
#address-form .fld:focus { outline: none; border-color: var(--green); }
#address-form .fld-row { display: flex; gap: 10px; }
#address-form .fld-row .fld { flex: 1; }
#address-form .fld-divider {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  font-weight: 700; margin: 6px 2px 10px; padding-top: 8px; border-top: 1px dashed var(--line);
}
#address-form .btn.lg { margin-top: 4px; }

/* Telegram theme fixups (rarely needed but harmless) */
.tg-theme-dark, .tg-theme-dark body { background: var(--bg); color: var(--ink); }

/* ══ Fresh-Market Arcade: bottom nav, orb, cheerful components ══════ */

/* ── persistent bottom tab bar ──────────────────────────────────── */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 520px; overflow: visible;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(18,60,32,.07);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 30;
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 0 4px; color: var(--muted);
  font: 700 10px/1 var(--sans); letter-spacing: .01em;
}
.tab .tab-ic { font-size: 20px; line-height: 1; transition: transform .16s cubic-bezier(.2,.8,.3,1.4); }
.tab.active { color: var(--green-dark); }
.tab.active .tab-ic { transform: translateY(-1px) scale(1.16); }
.tab.active::after {
  content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 3px;
  background: var(--mango); box-shadow: 0 1px 6px rgba(255,122,47,.6);
}
/* signature: raised center Cart orb (protrudes upward → zero extra height) */
.tab-cart { position: relative; overflow: visible; }
.tab-cart .orb-label { margin-top: 30px; }
.tab-cart.active::after { display: none; }
.orb {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, var(--orb-2), var(--orb-1));
  display: grid; place-items: center; font-size: 23px; color: #fff;
  border: 3px solid var(--card); box-shadow: var(--shadow-orb);
  transition: transform .18s cubic-bezier(.2,.8,.3,1.4);
}
.tab-cart:active .orb { transform: translateX(-50%) scale(.92); }
.orb-badge {
  position: absolute; top: -24px; right: calc(50% - 28px);
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--lemon); color: var(--ink);
  font: 800 11px/20px var(--display); text-align: center;
  border: 2px solid var(--card); box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.orb-badge[data-count="0"] { display: none; }
.orb.bump { animation: orbWobble .38s cubic-bezier(.2,.8,.3,1.4); }
.orb-badge.pop { animation: badgePop .32s cubic-bezier(.2,.8,.3,1.6); }
@keyframes orbWobble {
  0% { transform: translateX(-50%) scale(1); }
  30% { transform: translateX(-50%) scale(1.18,.86); }
  55% { transform: translateX(-50%) scale(.92,1.1); }
  100% { transform: translateX(-50%) scale(1); }
}
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ── cart-peek pill (browse screens, floats above the bar) ───────── */
.cart-peek {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  width: calc(100% - 24px); max-width: 496px; height: 44px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px;
  background: linear-gradient(180deg, var(--green), var(--green-dark)); color: #fff;
  border-radius: 999px; box-shadow: 0 8px 22px rgba(12,131,31,.36); z-index: 28;
}
.cart-peek[hidden] { display: none; }
.cp-icons { display: flex; flex: 0 0 auto; }
.cp-icons span {
  width: 24px; height: 24px; margin-left: -6px; border-radius: 999px; background: rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 13px; border: 1.5px solid rgba(255,255,255,.5);
}
.cp-main { flex: 1; display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.cp-main b { font-family: var(--display); font-size: 14px; }
.cp-main small { font-size: 10.5px; opacity: .95; }
.cp-cta { font-family: var(--display); font-weight: 800; font-size: 13px; padding-right: 4px; }

/* ── product-card polish: %OFF pill + rating ────────────────────── */
.prod .prod-img { background: linear-gradient(160deg, #f3fbf5, #eaf6ee); }
.prod-off {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--berry); color: #fff; font: 800 9px/1 var(--display);
  padding: 3px 6px; border-radius: 7px; box-shadow: 0 2px 6px rgba(255,61,127,.35);
}
.prod-rating {
  display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; color: #a06a00;
  background: #fff6dd; border-radius: 6px; padding: 1px 6px;
}

/* ── gift packaging toggle ──────────────────────────────────────── */
.gift-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.gift-ic {
  width: 40px; height: 40px; border-radius: 12px; background: var(--tile-3);
  display: grid; place-items: center; font-size: 20px; flex: 0 0 auto;
}
.gift-main { flex: 1; min-width: 0; }
.gift-title { font-family: var(--display); font-weight: 700; font-size: 14px; }
.gift-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.gift-switch {
  flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; background: #d7ded8;
  position: relative; transition: background .18s ease;
}
.gift-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s cubic-bezier(.2,.8,.3,1.4);
}
.gift-card.on { box-shadow: 0 0 0 1.5px var(--berry) inset, var(--shadow); }
.gift-card.on .gift-switch { background: var(--berry); }
.gift-card.on .gift-switch::after { transform: translateX(18px); }

/* ── "Special deals for you" rail ───────────────────────────────── */
.deals {
  background: var(--cream); border-radius: var(--radius); padding: 12px;
  box-shadow: var(--shadow); margin-bottom: 10px;
}
.deals-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.deals-title { font-family: var(--display); font-weight: 800; font-size: 14.5px; margin: 0; }
.deals-sub { font-size: 10.5px; color: #9a7b3a; font-weight: 700; }
.deals-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.deals-scroll::-webkit-scrollbar { display: none; }
.deals-scroll .prod { flex: 0 0 120px; width: 120px; background: #fff; }

/* ── cancellation policy note ───────────────────────────────────── */
.policy-note {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; margin-bottom: 10px;
  background: transparent; border: 1px dashed var(--line); border-radius: var(--radius);
  font-size: 11px; color: var(--muted);
}
.policy-note b { font-size: 12px; color: var(--ink); font-family: var(--display); }

/* ── rotating pastel group tiles ────────────────────────────────── */
#feed-sections .feed-group:nth-of-type(4n+1) { background: var(--tile-1); }
#feed-sections .feed-group:nth-of-type(4n+2) { background: var(--tile-2); }
#feed-sections .feed-group:nth-of-type(4n+3) { background: var(--tile-3); }
#feed-sections .feed-group:nth-of-type(4n)   { background: var(--tile-4); }

/* ── My Account screen ──────────────────────────────────────────── */
.acct-hero {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: linear-gradient(150deg, var(--head-1), var(--head-2)); color: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px;
}
.acct-avatar {
  width: 54px; height: 54px; border-radius: 999px; flex: 0 0 auto;
  background: var(--lemon); color: var(--ink); display: grid; place-items: center;
  font: 800 24px var(--display); box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.acct-name { font-family: var(--display); font-weight: 800; font-size: 18px; }
.acct-phone { font-size: 12.5px; opacity: .92; margin-top: 2px; }
.acct-quick { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.acct-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 700; font-size: 12px; color: var(--ink);
}
.acct-quick-btn .aq-ic { font-size: 22px; }
.acct-quick-btn:active { transform: scale(.97); }
.acct-quick-btn.dim { opacity: .45; }
.acct-links { display: flex; flex-direction: column; gap: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.acct-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.acct-link:last-child { border-bottom: 0; }
.acct-link .al-ic { font-size: 18px; }
.acct-link .al-tx { flex: 1; }
.acct-link .chev { color: var(--muted); }

/* ── cheerful empty + loader ────────────────────────────────────── */
.empty { padding: 34px 18px; }
.empty .empty-emoji {
  width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 999px;
  display: grid; place-items: center; font-size: 36px; background: var(--green-soft);
}
.empty .empty-title { font-family: var(--display); }
.loader .dot:nth-child(1) { background: var(--green); }
.loader .dot:nth-child(2) { background: var(--mango); }
.loader .dot:nth-child(3) { background: var(--berry); }

/* ── success confetti burst ─────────────────────────────────────── */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 210; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  animation: confFall 2.2s cubic-bezier(.3,.7,.5,1) forwards;
}
@keyframes confFall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: .9; }
}

/* ── success screen delight ─────────────────────────────────────── */
.success-emoji {
  width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 999px;
  display: grid; place-items: center; font-size: 46px; background: var(--green-soft);
  animation: pop .5s cubic-bezier(.2,.8,.3,1.5);
}
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .tab .tab-ic, .orb { transition: none; }
  .orb.bump, .orb-badge.pop, .success-emoji, .feed-loading .fl-dot { animation: none; }
}
