:root{
  --pink:#D7427E; --purple:#934994;
  --grad:linear-gradient(135deg,#D7427E,#934994);
  --lav:#F6ECF7; --lav2:#EFE3F2;
  --ink:#2B2230; --muted:#7A6E80; --line:#EADCEF;
  --green:#1E8E4A; --grey:#9A90A0;
  --card:#FFFFFF; --bg:#FBF7FC;
  --radius:14px; --radius-sm:10px;
  --shadow:0 2px 10px rgba(147,73,148,.12);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans Myanmar","Myanmar Text",sans-serif;
  background:var(--bg); color:var(--ink); font-size:16px; line-height:1.55;
  padding-bottom:76px; /* bottom nav */
}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:16px}
a{color:var(--purple)}
h1,h2,h3{margin:0}
.center{text-align:center}
.hidden{display:none!important}
[hidden]{display:none!important}

/* ---------- Header ---------- */
.app-header{
  position:sticky; top:0; z-index:30;
  background:var(--card); border-bottom:1px solid var(--line);
  padding:10px 12px 12px;
}
/* Header z-index must stay BELOW the cart overlay (35) / drawer (36):
   at 40 it painted over the open cart and hid the cart title, the close
   button and the first item's photo + name on mobile. Still above page
   content, and still below the bottom nav (40) and all modals (50+). */
.header-row{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:1024px;margin:0 auto}
.logo-btn{background:none;border:none;padding:0;display:flex;align-items:center;gap:8px}
.logo-img{height:44px;width:auto;border-radius:10px}
.logo-fallback{font-size:22px;font-weight:800;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.header-actions{display:flex;gap:8px;align-items:center}
.search-row{display:flex;gap:8px;max-width:1024px;margin:10px auto 0}
.search-row input{
  flex:1; padding:11px 14px; border:1.5px solid var(--line); border-radius:999px;
  background:#fff; outline:none; min-width:0;
}
.search-row input:focus{border-color:var(--pink)}
.btn{
  border:none; border-radius:999px; padding:10px 16px; font-size:15px; font-weight:600;
  background:var(--grad); color:#fff; white-space:nowrap;
}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-ghost{background:var(--lav);color:var(--purple)}
.btn-outline{background:#fff;color:var(--purple);border:1.5px solid var(--purple)}
.btn-block{width:100%;padding:13px}
.btn-danger{background:#C0392B}
.link-btn{background:none;border:none;color:var(--purple);font-weight:600;font-size:14px;padding:4px 0}
.cart-btn{position:relative}
.cart-count{
  position:absolute; top:-7px; right:-7px; min-width:20px; height:20px; padding:0 5px;
  background:#fff; color:var(--pink); border:1.5px solid var(--pink); border-radius:999px;
  font-size:12px; font-weight:800; line-height:18px; text-align:center;
}

/* ---------- Layout ---------- */
main{max-width:1024px;margin:0 auto;padding:0 12px 24px}
.view{padding-top:14px}
.hero{
  background:var(--grad); color:#fff; border-radius:var(--radius);
  padding:26px 20px; text-align:center; margin-bottom:16px;
}
.hero h1{font-size:30px;letter-spacing:.3px}
.hero p{margin:8px 0 0;opacity:.95;font-size:15px}
.hero img{display:block;width:100%;height:auto;border-radius:var(--radius)}
.hero.has-img{padding:0;cursor:pointer}
/* Messenger fallback banner (fix-batch-45b): fixed above the bottom nav. */
.msg-fallback{
  position:fixed; left:12px; right:12px; bottom:76px; z-index:45;
  display:flex; align-items:center; gap:10px;
  background:#fff; color:var(--ink); border:1.5px solid var(--line); border-radius:14px;
  padding:12px 14px; box-shadow:0 6px 20px rgba(0,0,0,.18);
}
.msg-fallback-text{flex:1;min-width:0;font-size:14px}
.msg-fallback-btn{
  background:var(--grad); color:#fff; border:none; border-radius:999px;
  padding:9px 16px; font-size:14px; font-weight:800; white-space:nowrap; cursor:pointer;
}
.msg-fallback-close{background:none;border:none;font-size:16px;color:var(--muted);cursor:pointer;padding:4px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:22px 0 10px}
.section-head h2{font-size:17px}
.meta-line{color:var(--muted);font-size:14px;margin:6px 0}

/* ---------- Chips ---------- */
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto; border:1.5px solid var(--line); background:#fff; color:var(--ink);
  border-radius:999px; padding:7px 14px; font-size:14px; font-weight:600;
}
.chip.active{background:var(--grad);color:#fff;border-color:transparent}
.chip:disabled,.opt-btn:disabled{opacity:.45;text-decoration:line-through;cursor:not-allowed}

/* ---------- Product grid / rows ---------- */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:600px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:900px){.grid{grid-template-columns:repeat(4,1fr)}}
.hrow{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.hrow::-webkit-scrollbar{display:none}
.hrow .card{flex:0 0 168px}
/* Tablet/wide: row cards grow so prices + the Add button fit instead of
   clipping; card text shrinks a touch and images grow with the wider cards. */
@media(min-width:600px){.hrow .card{flex-basis:210px}}
@media(min-width:900px){.hrow .card{flex-basis:240px}}
/* Tablet band (480px and up): tablets show the phone layout on a physically
   bigger screen, so the same px looks larger — shrink text here only.
   Phones stay under 480px and keep their current sizes.
   fb38 2026-11-27: one more step smaller — tablet text still looked big.
   fb39 2026-11-27: Pyae tested v17 — still big, asked for ~3 sizes down.
   (Smallest labels floor at 8px so they stay readable.) */
@media(min-width:480px){
  .card-name{font-size:8px}.card-price{font-size:9px}.card-brand{font-size:8px}
  .card-add{font-size:8px}.section-head h2{font-size:12px}.badge{font-size:8px}.was{font-size:8px}
  .detail-body h2{font-size:13px}.detail-brand{font-size:8px}.detail-note{font-size:9px}
  .opt-btn{font-size:9px}.modal-head h2{font-size:12px}
  .sticky-bar .sb-price .amt{font-size:12px}.sticky-bar .sb-price .st{font-size:8px}
  .sticky-bar .btn{font-size:10px}
  .qty-stepper button{width:24px;height:24px;font-size:12px}.qty-stepper span{font-size:10px}
  .nav-item{font-size:8px}.search-row input{font-size:10px}.search-row .btn{font-size:10px;padding:8px 10px}
}
@media(min-width:600px){.card-name{font-size:8px}.card-price{font-size:9px}.card-add{font-size:8px;padding:8px}}
.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column;
  text-align:left; padding:0;
}
.card.soldout{opacity:.75}
.card-img{aspect-ratio:4/5;background:var(--lav2);display:flex;align-items:center;justify-content:center;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover}
.img-placeholder{
  color:var(--muted); font-size:14px; text-align:center; padding:12px;
}
.card-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.card-brand{font-size:11px;font-weight:700;letter-spacing:.4px;color:var(--purple);text-transform:uppercase}
/* Name clamp: max 2 lines + ellipsis. The name is a <button>, and iOS Safari
   ignores -webkit-line-clamp on buttons — so the clamp lives on the inner
   <span> (see renderCard in app.js), not on the button itself. */
.card-name{font-size:13px;font-weight:600;line-height:1.35;min-height:40px;display:block}
.card-name span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-price{font-weight:800;font-size:14px;color:var(--pink);display:flex;flex-wrap:wrap;align-items:baseline}
.was{font-size:12px;color:var(--muted);font-weight:500;text-decoration:line-through;margin-right:6px;white-space:nowrap}
.price-now{white-space:nowrap}
/* Pin the stock pill + Add to Cart button to the bottom of every card, so the
   buttons line up in a row even when product names wrap to different lengths. */
.card-body .badge{margin-top:auto}
.badge{display:inline-block;align-self:flex-start;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px}
.badge.in{background:#E2F5E9;color:var(--green)}
.badge.out{background:#EFEDEE;color:var(--grey)}
.card-add{margin-top:8px;width:100%;padding:9px;font-size:13px}
.card-add:disabled{opacity:.45;cursor:not-allowed}
.card-opts{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.card-opts .chip{padding:5px 10px;font-size:13px}

/* ---------- States ---------- */
.loading,.empty,.error-box{padding:28px 12px;text-align:center;color:var(--muted)}
.error-box{color:#B3261E;background:#FDECEA;border:1px solid #F5C6C2;border-radius:var(--radius)}
.error-text{color:#B3261E;font-size:14px;margin:10px 0}
.skel{height:180px;border-radius:var(--radius);background:linear-gradient(90deg,var(--lav) 25%,#fff 50%,var(--lav) 75%);background-size:200% 100%;animation:sh 1.2s infinite}
@keyframes sh{to{background-position:-200% 0}}

/* ---------- Bottom nav ---------- */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  display:flex; background:#fff; border-top:1px solid var(--line);
  padding:6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav-item{
  flex:1; background:none; border:none; display:flex; flex-direction:column; align-items:center; gap:2px;
  color:var(--muted); font-size:12px; font-weight:600; padding:4px 0; position:relative;
}
.nav-item.active{color:var(--pink)}
/* Floating Messenger button — fixed above the bottom nav (z 30: below the
   cart drawer 35/36 and modals 50+, so it never covers them). */
.msg-fab{position:fixed;right:14px;bottom:calc(76px + env(safe-area-inset-bottom));width:52px;height:52px;border-radius:50%;background:#0084FF;color:#fff;border:none;box-shadow:0 4px 14px rgba(0,0,0,.28);display:flex;align-items:center;justify-content:center;z-index:30;text-decoration:none}
.msg-fab svg{width:28px;height:28px;fill:#fff}
.msg-fab:active{transform:scale(.96)}
.nav-ico{font-size:20px;line-height:1;position:relative}
.nav-badge{
  position:absolute; top:-7px; right:-13px; min-width:17px; height:17px; padding:0 4px;
  background:var(--pink); color:#fff; border-radius:999px;
  font-size:11px; font-weight:800; line-height:17px; text-align:center;
}

/* ---------- Wishlist heart on cards ---------- */
.card{position:relative}
.card-img-wrap{position:relative}
.card-img-wrap .card-img{display:block;width:100%}
.wish-btn{
  position:absolute; top:8px; right:8px; width:34px; height:34px; border-radius:50%;
  background:rgba(255,255,255,.92); border:1px solid var(--line);
  color:var(--pink); font-size:18px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.wish-btn.active{background:var(--pink); border-color:var(--pink); color:#fff}
.sale-badge{
  position:absolute; top:8px; left:8px; z-index:2;
  background:var(--pink); color:#fff; font-size:12px; font-weight:800;
  padding:4px 8px; border-radius:999px;
}
.kv-row{display:flex;justify-content:space-between;gap:16px;padding:6px 0;font-size:15px}
.kv-row span{color:var(--muted)}

/* ---------- Footer ---------- */
.app-footer{
  max-width:1024px;margin:0 auto;padding:20px 12px 12px;color:var(--muted);font-size:14px;
  border-top:1px solid var(--line);
}
.app-footer p{margin:6px 0}
.footer-apps{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.footer-copy{text-align:center;font-size:12px;margin-top:18px}

/* ---------- Drawer / modal ---------- */
.overlay{
  position:fixed; inset:0; background:rgba(43,34,48,.45); z-index:50;
}
/* Cart drawer sits BELOW the bottom nav (z 40) so the nav stays visible
   and tappable while the cart is open; other modals still cover the nav. */
#cartOverlay{z-index:35}
#cartDrawer{z-index:36; bottom:calc(62px + env(safe-area-inset-bottom))}
.drawer{
  position:fixed; top:0; right:0; bottom:0; width:min(420px,92vw); z-index:51;
  background:#fff; display:flex; flex-direction:column; box-shadow:-4px 0 24px rgba(0,0,0,.2);
}
/* Tablet / desktop: the drawer was phone-width (420px), so on a wide screen
   it looked like a narrow side panel that "doesn't show fully". Widen it. */
@media (min-width:641px){.drawer{width:min(560px,88vw)}}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:18px}
.cart-items{flex:1;overflow-y:auto;padding:12px 16px}
.cart-line{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-line .thumb{width:56px;height:56px;border-radius:10px;background:var(--lav2);flex:0 0 56px;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--muted);text-align:center}
.cart-line .thumb img{width:100%;height:100%;object-fit:cover}
.cart-line .info{flex:1;min-width:0}
.cart-line .name{font-weight:600;font-size:14px}
.cart-line .opt{font-size:13px;color:var(--muted)}
.cart-line .row{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.cart-line .price{font-weight:800;color:var(--pink)}
.cart-foot{padding:14px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.coupon-row{display:flex;gap:8px}
.coupon-row input{flex:1;padding:10px 12px;border:1.5px solid var(--line);border-radius:var(--radius-sm);min-width:0;text-transform:uppercase}
.totals{margin:14px 0}
.total-row{display:flex;justify-content:space-between;padding:3px 0;font-size:15px}
.total-row.grand{font-weight:800;font-size:17px;border-top:1px solid var(--line);margin-top:6px;padding-top:10px}
.modal{
  position:fixed; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(560px,94vw); max-height:92vh; z-index:51; background:#fff;
  border-radius:18px; display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
}
.modal-sm{width:min(440px,94vw)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
.modal-head h2{font-size:18px}
.detail-body{overflow-y:auto;padding:16px}
.detail-body .card-img{border-radius:var(--radius);margin-bottom:12px}
.detail-body h2{font-size:20px}
.detail-brand{color:var(--purple);font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.4px}
.detail-note{background:var(--lav);border-radius:var(--radius-sm);padding:10px 12px;font-size:14px;margin:12px 0}
.opt-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.opt-btn{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600}
.opt-btn.active{background:var(--grad);color:#fff;border-color:transparent}
.sticky-bar{
  border-top:1px solid var(--line); background:#fff; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  display:flex; align-items:center; gap:12px;
}
.sticky-bar .sb-price{flex:1;min-width:0}
.sticky-bar .sb-price .amt{font-size:19px;font-weight:800;color:var(--pink)}
.sticky-bar .sb-price .st{font-size:13px}
.qty-stepper{display:flex;align-items:center;gap:2px;border:1.5px solid var(--line);border-radius:999px;overflow:hidden}
.qty-stepper button{width:34px;height:34px;border:none;background:var(--lav);font-size:18px;font-weight:700;color:var(--purple)}
.qty-stepper span{min-width:30px;text-align:center;font-weight:700}
.auth-body{padding:16px}
.field{margin-bottom:12px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:5px}
.field input,.field select,.field textarea{
  width:100%; padding:11px 12px; border:1.5px solid var(--line); border-radius:var(--radius-sm); background:#fff;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--pink)}
.tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;white-space:nowrap}
.tab.active{background:var(--grad);color:#fff;border-color:transparent}

/* ---------- Checkout ---------- */
.checkout-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.checkout-card h3{font-size:16px;margin-bottom:10px}
.radio-line{display:flex;gap:10px;align-items:flex-start;padding:10px 4px;border-bottom:1px solid var(--line)}
.radio-line:last-child{border-bottom:none}
.radio-line input{margin-top:4px;accent-color:var(--pink);width:18px;height:18px;flex:0 0 auto}
.radio-line .rl-title{font-weight:700;font-size:15px}
.radio-line .rl-note{font-size:13px;color:var(--muted)}
.pay-account{
  display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);border-radius:var(--radius-sm);
  padding:10px 12px;margin-bottom:8px;background:#fff;
}
.pay-account.sel{border-color:var(--pink);background:var(--lav)}
.pay-account .pa-info{flex:1;min-width:0}
.pay-account .pa-method{font-weight:700;font-size:14px}
.pay-account .pa-num{font-size:14px;word-break:break-all}
.pay-account .pa-name{font-size:13px;color:var(--muted)}
.copy-btn{border:1.5px solid var(--purple);background:#fff;color:var(--purple);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700;white-space:nowrap}
.shot-preview{margin-top:10px}
.shot-preview img{max-width:160px;border-radius:10px;border:1px solid var(--line)}
.hint{font-size:13px;color:var(--muted);margin-top:8px}
.hint.warn{color:#B3261E;font-weight:600}
.order-summary-line{display:flex;justify-content:space-between;padding:4px 0;font-size:15px}
.order-summary-line.grand{font-weight:800;font-size:17px;border-top:1px solid var(--line);margin-top:8px;padding-top:10px}
.delivery-line{font-size:14px;color:var(--muted);padding:4px 0}
.success-box{text-align:center;padding:20px 8px}
.success-box .big{font-size:44px;line-height:1}
.success-box h3{font-size:20px;margin:12px 0 6px}
.success-box p{color:var(--muted);margin:6px 0}

/* ---------- Orders ---------- */
.order-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:12px;width:100%;text-align:left}
.order-card .oc-top{display:flex;justify-content:space-between;gap:8px;font-weight:700}
.order-card .oc-meta{font-size:13px;color:var(--muted);margin-top:4px}
.status-pill{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--lav);color:var(--purple)}
.order-body{padding:16px;overflow-y:auto}
.order-body .line{display:flex;justify-content:space-between;padding:5px 0;font-size:15px}

/* ---------- Manage ---------- */
.mg-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.mg-card h3{font-size:16px;margin-bottom:10px}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.stat{background:var(--lav);border-radius:var(--radius);padding:16px}
.stat .num{font-size:24px;font-weight:800;color:var(--purple)}
.stat .lbl{font-size:13px;color:var(--muted)}
.mg-table{width:100%;border-collapse:collapse;font-size:14px}
.mg-table th,.mg-table td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.mg-table th{font-size:12px;text-transform:uppercase;color:var(--muted)}
.mg-table input[type=number],.mg-table input[type=text]{width:92px;padding:6px 8px;border:1.5px solid var(--line);border-radius:8px}
.mg-table .mini{padding:5px 10px;font-size:13px}
/* Mobile: the 6-column catalog table is too cramped at phone width, so each
   product becomes a stacked card — name/photo on top, then one full-width
   row per field with its column heading as a small label. Desktop is
   unchanged. */
@media (max-width:640px){
  .mg-table,.mg-table tbody,.mg-table tr,.mg-table td{display:block;width:100%;box-sizing:border-box}
  .mg-table thead{display:none}
  .mg-table tr{border-bottom:2px solid var(--line);padding:10px 0}
  .mg-table td{border-bottom:0;padding:6px 0;vertical-align:top}
  .mg-table td::before{content:attr(data-label);display:block;font-size:12px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
  .mg-table td:first-child::before{display:none}
  .mg-table input[type=number],.mg-table input[type=text]{width:140px}
}
.table-wrap{overflow-x:auto}
.toggle{width:44px;height:24px;border-radius:999px;border:none;background:#D8CFDD;position:relative;transition:background .2s;flex:0 0 auto}
.toggle::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .2s}
.toggle.on{background:var(--pink)}
.toggle.on::after{left:23px}
.key-field{display:flex;gap:8px;align-items:center}
.key-field input{flex:1;min-width:0}
.eye-btn{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:8px 10px;font-size:14px}
.warn-box{background:#FFF6E5;border:1px solid #F0D9A0;border-radius:var(--radius-sm);padding:10px 12px;font-size:14px;margin:10px 0}
.masked{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px}
.row-flex{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
/* Coupon validity date row (fix-batch-47b): the two datetime fields stack
   on phones — side-by-side at 16px the iOS date text ("Nov 30, 2026 at
   12:00 AM") overflows its box. min-width 280px forces a full-width stack
   in the ~380px phone card; on wider screens they sit side by side. */
.cp-date-row{display:flex;gap:10px;flex-wrap:wrap}
.cp-date-row label{flex:1;min-width:280px}
.cp-date-row input[type=datetime-local]{font-size:13px}

/* ---------- Notifications inbox (fix-batch-30) ---------- */
.notif-bell{position:relative;padding:10px 12px}
.notif-bell svg{display:block}
.notif-bell .nav-badge{top:-6px;right:-6px}
.notif-row{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px;margin-bottom:10px}
.notif-row.unread{background:var(--lav);border-color:var(--pink)}
.notif-row .nt-title{font-weight:700}
.notif-row .nt-body{font-size:14px;color:var(--muted);margin-top:2px}
.notif-row .nt-time{font-size:12px;color:var(--muted);margin-top:4px}

/* ---------- Foreground push banner (fix-batch-31) ----------
   Android shows no system notification while the app is open, so an
   incoming push drops this banner instead. Sticky at the top (above the
   sticky header, z 31), below the bottom nav (40) and all overlays /
   modals (50+). Full-width pink gradient, tap → order/inbox. */
.push-banner{
  position:sticky; top:0; z-index:31;
  display:flex; align-items:center; gap:8px;
  background:var(--grad); color:#fff;
  padding:10px 12px; box-shadow:0 4px 14px rgba(147,73,148,.35);
}
.push-banner-body{
  flex:1; min-width:0; background:none; border:none; color:#fff; text-align:left;
  padding:0; display:flex; flex-direction:column; gap:1px;
}
.push-banner-title{font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.push-banner-text{font-size:13px;opacity:.95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.push-banner-close{
  flex:0 0 auto; background:rgba(255,255,255,.2); color:#fff; border:none;
  width:30px; height:30px; border-radius:50%; font-size:15px; line-height:1;
}

/* ---------- Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:84px; transform:translateX(-50%); z-index:60;
  background:var(--ink); color:#fff; padding:11px 18px; border-radius:999px; font-size:14px;
  max-width:90vw; text-align:center; box-shadow:0 4px 16px rgba(0,0,0,.3);
}
/* VIP card (fix-batch-52): pink-purple member card on My Account. */
.vip-card{background:linear-gradient(135deg,#D7427E,#934994);color:#fff;border-radius:14px;padding:16px;margin-bottom:12px;box-shadow:0 4px 14px rgba(147,73,148,.35)}
/* VIP badge + Home welcome strip (fix-batch-58): gold member touches —
   the badge sits next to the name in the header on every page, the strip
   sits above the Home hero for VIPs only and opens My Account on tap. */
.vip-badge{display:inline-flex;align-items:center;gap:2px;background:linear-gradient(90deg,#f7c948,#e9a319);color:#fff;font-size:11px;font-weight:800;border-radius:999px;padding:3px 8px;vertical-align:1px;white-space:nowrap}
.vip-strip{display:flex;align-items:center;gap:8px;width:100%;background:linear-gradient(90deg,#f9d976,#f39c12);color:#5a3d00;border:none;border-radius:12px;padding:11px 14px;font-family:inherit;font-size:13px;line-height:1.45;text-align:left;cursor:pointer;margin:0 0 12px}
.vip-strip[hidden]{display:none}
/* Barcode scanner modal (fix-batch-51): full-screen overlay; the library
   injects its own video element into #scanReader. */
.scan-modal{display:none;position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.7);align-items:center;justify-content:center;padding:16px}
.scan-box{background:#fff;border-radius:14px;padding:16px;width:100%;max-width:420px}
.scan-box h3{margin:0 0 10px;font-size:16px}
#scanReader{width:100%;border-radius:10px;overflow:hidden;background:#000}
#scanReader video{width:100%;display:block}
/* Coupon picked-product rows (fix-batch-49): vertical rows with a qty box,
   and the live search results shown as a dropdown panel under the input. */
#cpProdResults:not(:empty){border:1.5px solid var(--line);border-radius:10px;padding:6px;margin-top:6px;max-height:260px;overflow-y:auto}
.cp-picked-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1.5px solid var(--line);border-radius:10px;margin-top:6px;background:#fff}
.cp-picked-info{flex:1;min-width:0}
.cp-picked-name{font-weight:600;font-size:14px;line-height:1.3}
.cp-picked-meta{font-size:12px;color:var(--muted);margin-top:2px}
.cp-picked-qty{width:74px;flex-shrink:0;padding:8px;border:1.5px solid var(--line);border-radius:8px;font-size:14px;text-align:center}
.cp-picked-x{flex-shrink:0;border:0;background:none;color:var(--pink);font-size:16px;padding:4px 6px}
