/* ───────────────────────────────────────────────────────────────
   Ecatalogue v2 — Design tokens from handoff (ec2-shared.jsx)
   ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #F7F9FF;
  --accent: #4F76D8;
  --accent-light: #EBF0FC;
  --accent-dark: #3458B8;
  --surface: #FFFFFF;
  --text: #141D35;
  --text-muted: #6070A0;
  --border: #E2E8F8;
  --sand: #B8C6E4;
  --green: #28855C;
  --green-bg: #E5F5ED;
  --whatsapp: #25D366;
  --nav-bg: #1B2348;
  --nav-active: rgba(255,255,255,0.11);
  --nav-text: rgba(255,255,255,0.92);
  --nav-muted: rgba(255,255,255,0.42);
  --danger: #C0392B;
  --danger-bg: #FEEBE5;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
input, textarea, button, select { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #DDE3F5; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: #DDE3F5 transparent; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
  border: none; border-radius: 13px; font-weight: 700; font-size: 15px; cursor: pointer; transition: filter .12s, transform .04s; width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: default; }
.btn-sm { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.btn-auto { width: auto; }
.btn-primary  { background: var(--accent);       color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--accent-dark); }
.btn-secondary{ background: var(--accent-light); color: var(--accent); }
.btn-ghost    { background: transparent;         color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-green    { background: var(--whatsapp);     color: #fff; }
.btn-green:hover:not([disabled]) { filter: brightness(1.05); }
.btn-danger   { background: var(--danger-bg);    color: var(--danger); }
.btn-dark     { background: var(--text);         color: #fff; }

/* ─── Fields ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .7px;
}
.input, .field input, .field textarea, .field select {
  width: 100%; background: #fff; border: 1.5px solid var(--border); border-radius: 11px;
  padding: 12px 15px; font-size: 15px; color: var(--text); outline: none; line-height: 1.5; resize: none;
}
.input:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); }

/* ─── Chips / pill toggles ────────────────────────────────────── */
.chip { padding: 8px 14px; border-radius: 22px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-muted);
  font-size: 13px; font-weight: 500; }
.chip.is-active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* ─── Cards ───────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.card-pad { padding: 18px 16px; }
.card-pad-lg { padding: 22px 20px; }

/* ─── Badges ──────────────────────────────────────────────────── */
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; display: inline-block; }
.badge-in  { color: var(--green);  background: var(--green-bg); }
.badge-out { color: var(--danger); background: var(--danger-bg); }
.badge-discount { color: #fff; background: var(--accent); border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 800; }

/* ─── Layout: dashboard shell ─────────────────────────────────── */
.dash { display: flex; min-height: 100vh; background: var(--bg); }
.dash-side { width: 230px; background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column; flex-shrink: 0; }
.dash-side .brand { padding: 28px 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 11px; }
.dash-side .brand-logo { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-side .brand-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.dash-side .brand-sub  { font-size: 11px; color: var(--nav-muted); margin-top: 1px; }
.dash-nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  margin-bottom: 3px; color: var(--nav-muted); font-weight: 600; font-size: 14px; border-left: 3px solid transparent; }
.dash-nav a.is-active { background: var(--nav-active); color: #fff; border-left-color: var(--accent); }
.dash-nav a:hover { color: #fff; }
.dash-foot { padding: 14px 14px 24px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; flex-direction: column; gap: 8px; }
.dash-foot a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 11px; font-weight: 600; font-size: 13px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); color: var(--nav-text); }
.dash-foot a.share { background: rgba(79,118,216,0.22); border: none; color: var(--accent); }

.dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dash-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.dash-body { flex: 1; padding: 28px 32px; overflow-y: auto; }

/* Mobile hero header for dashboard home */
.mob-hero { background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%); padding: 28px 20px 28px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; color: #fff; }
.mob-hero .lbl { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.mob-hero .name { font-size: 26px; font-weight: 800; letter-spacing: -0.4px; }
.mob-hero .tag { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.mob-hero .preview { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 22px; padding: 9px 18px; color: #fff; margin-top: 16px; font-size: 13px; font-weight: 600; }

/* Mobile bottom nav */
.mob-tabs { position: sticky; bottom: 0; display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 8px 0 20px; }
.mob-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--sand); font-size: 10px; font-weight: 600; }
.mob-tabs a.is-active { color: var(--accent); }
.mob-tabs a svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* ─── Stats grid ──────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; }
.stats .stat .val { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.stats .stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ─── Quick actions ───────────────────────────────────────────── */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; cursor: pointer; color: var(--text); }
.quick-btn:hover { box-shadow: 0 4px 16px rgba(20,29,53,0.06); }
.quick-btn .icn { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; }
.quick-btn .lbl { font-size: 14px; font-weight: 700; }
.quick-btn .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.section-title { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.section-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-row a { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ─── Product grid (dashboard) ────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.prod-card .thumb { height: 140px; display: flex; align-items: center; justify-content: center; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.prod-card .name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.prod-card .price { font-size: 16px; font-weight: 800; color: var(--accent); }
.prod-card .price .mrp { font-size: 12px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.prod-card .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.prod-card .actions { display: flex; gap: 8px; margin-top: 8px; }
.prod-card .actions .btn { flex: 1; height: 36px; border-radius: 9px; font-size: 12px; }
.prod-card .actions .btn.icon-only { width: 36px; flex: 0 0 36px; padding: 0; }

.add-tile { min-height: 220px; border: 2px dashed var(--border); background: transparent; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 14px; }
.add-tile .ring { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; }

/* ─── Storefront ──────────────────────────────────────────────── */
.store-head { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 40px; display: flex; align-items: center; gap: 24px; height: 64px; box-shadow: 0 1px 12px rgba(20,29,53,0.06); }
.store-head .brand { display: flex; align-items: center; gap: 12px; }
.store-head .brand-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: flex; align-items: center; justify-content: center; }
.store-head .name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.store-head .tag  { font-size: 11px; color: var(--text-muted); }
.store-head .open-pill { display: flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; margin-left: auto; }
.store-head .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--green); }
.store-head .cart { display: flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border-radius: 11px; padding: 9px 16px; font-size: 13px; font-weight: 700; position: relative; }
.store-head .cart .count { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 10px; background: #FF4D4D; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.store-hero-mobile { display: none; background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%); padding: 28px 20px 24px; color: #fff; }
.store-cats-scroll { display: none; }
.store-hero-mobile .pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.14); border-radius: 6px; padding: 4px 8px; margin-bottom: 10px; font-size: 11px; font-weight: 600; }
.store-hero-mobile .pill .dot { width: 6px; height: 6px; border-radius: 3px; background: #7EE8A2; }
.store-hero-mobile h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 3px; }
.store-hero-mobile .tag { font-size: 13px; color: rgba(255,255,255,0.7); }
.store-hero-mobile .phone { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; }

.store-body { display: grid; grid-template-columns: 200px 1fr; }
.store-side { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; }
.store-side .lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; padding: 0 20px 12px; }
.store-side a { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; border-left: 3px solid transparent; color: var(--text); font-size: 14px; font-weight: 600; }
.store-side a.is-active { background: var(--accent-light); border-left-color: var(--accent); color: var(--accent); }
.store-side a .count { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.store-main { padding: 24px 32px; }
.store-main h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.store-main h2 .n { font-size: 14px; color: var(--text-muted); font-weight: 400; }

.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.scard { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow .12s; }
.scard:hover { box-shadow: 0 4px 16px rgba(20,29,53,0.06); }
.scard .thumb { height: 190px; position: relative; display: flex; align-items: center; justify-content: center; }
.scard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.scard .body { padding: 12px 14px 14px; }
.scard .name { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard .row  { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.scard .price{ font-size: 16px; font-weight: 800; color: var(--accent); }
.scard .mrp  { font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-left: 5px; }
.scard .add  { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; color: var(--accent); }
.scard .discount-tag { position: absolute; top: 8px; left: 8px; }
.scard .oos-overlay  { position: absolute; inset: 0; background: rgba(247,249,255,0.75); display: flex; align-items: center; justify-content: center; }
.scard .oos-overlay span { background: rgba(255,255,255,0.9); padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* ─── Product detail ──────────────────────────────────────────── */
.pdp { max-width: 1100px; margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp-gallery .hero { height: 420px; border-radius: 18px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pdp-gallery .hero img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .thumbs { display: flex; gap: 8px; margin-top: 12px; }
.pdp-gallery .thumbs .t { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--border); overflow: hidden; flex-shrink: 0; cursor: pointer; }
.pdp-gallery .thumbs .t.is-active { border-color: var(--accent); border-width: 2.5px; }
.pdp-gallery .thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .cat { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-light); color: var(--accent); border-radius: 7px; padding: 4px 10px; font-size: 11px; font-weight: 700; }
.pdp-info h1 { font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -0.3px; margin: 16px 0; }
.pdp-info .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pdp-info .price { font-size: 30px; font-weight: 800; color: var(--accent); }
.pdp-info .mrp   { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.pdp-info .desc  { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin: 18px 0; white-space: pre-wrap; }
.pdp-info .stock-pill { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }

/* size picker */
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.size-btn { min-width: 48px; height: 46px; padding: 0 14px; border-radius: 11px; border: 2px solid var(--border); background: #fff; color: var(--text-muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.size-btn.is-active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* qty */
.qty { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--border); border-radius: 13px; overflow: hidden; }
.qty button { width: 48px; height: 50px; background: none; border: none; cursor: pointer; color: var(--accent); font-size: 18px; font-weight: 800; }
.qty span { min-width: 32px; text-align: center; font-size: 18px; font-weight: 800; }

/* ─── Cart ────────────────────────────────────────────────────── */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 32px 32px; display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.cart-item .img { width: 100px; flex-shrink: 0; }
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .body { flex: 1; padding: 14px 14px 12px; min-width: 0; }
.cart-item .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-item .size { font-size: 12px; color: var(--text-muted); margin: 2px 0 6px; }
.cart-item .each { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.cart-item .each .sm { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.cart-item .row  { display: flex; align-items: center; justify-content: space-between; }
.cart-item .qty-sm { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cart-item .qty-sm button { width: 34px; height: 32px; background: none; border: none; cursor: pointer; color: var(--accent); font-weight: 700; }
.cart-item .qty-sm span { min-width: 28px; text-align: center; font-weight: 800; font-size: 15px; }
.cart-item .line { font-size: 16px; font-weight: 800; }

.cart-sum { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.cart-sum .lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.cart-sum .ln  { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.cart-sum .ln strong { color: var(--text); font-weight: 600; }
.cart-sum hr { border: 0; height: 1px; background: var(--border); margin: 12px 0; }
.cart-sum .total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--accent); }

.wa-preview { background: var(--green-bg); border: 1px solid #C0E8D0; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.wa-preview .lbl { font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.wa-preview pre { font-family: ui-monospace, monospace; font-size: 12px; color: #1A3A28; line-height: 1.7; white-space: pre-wrap; margin: 0; }

.empty-state { padding: 60px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--text-muted); }
.empty-state h3 { color: var(--text); font-size: 18px; font-weight: 700; }

/* ─── Landing / Auth pages ────────────────────────────────────── */
.land-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.land-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.land-hero { padding: 80px 40px 60px; text-align: center; background: linear-gradient(180deg, var(--bg), #fff); }
.land-hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; max-width: 760px; margin: 0 auto 20px; }
.land-hero h1 .accent { color: var(--accent); }
.land-hero p { font-size: 18px; color: var(--text-muted); max-width: 580px; margin: 0 auto 32px; line-height: 1.6; }
.land-hero .ctas { display: inline-flex; gap: 12px; }
.land-feats { max-width: 1080px; margin: 0 auto; padding: 40px 40px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.land-feat { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; }
.land-feat .ring { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.land-feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.land-feat p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(150deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.2; max-width: 420px; }
.auth-side p  { font-size: 15px; color: rgba(255,255,255,0.78); max-width: 440px; margin-top: 16px; line-height: 1.7; }
.auth-side ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.auth-side ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.auth-side ul li svg { flex-shrink: 0; }
.auth-main { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; margin: 0 auto; width: 100%; }
.auth-main h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 6px; }
.auth-main p  { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }
.auth-main form { display: flex; flex-direction: column; gap: 18px; }
.auth-main .switch { margin-top: 24px; font-size: 13px; color: var(--text-muted); text-align: center; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 18px; }
.alert-err { background: var(--danger-bg); color: var(--danger); }
.alert-ok  { background: var(--green-bg); color: var(--green); }

/* ─── Share / QR screen ───────────────────────────────────────── */
.share-card { max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; text-align: center; }
.qr-box { width: 180px; height: 180px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--border); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; }
.share-link { font-size: 14px; color: var(--accent); margin-bottom: 20px; font-weight: 600; word-break: break-all; }

/* ─── Mobile hamburger (sidebar drawer) ──────────────────────── */
.mob-menu-btn { display: none; background: none; border: none; padding: 8px; }

/* ─── Responsive breakpoints ──────────────────────────────────── */
@media (max-width: 899px) {
  .dash { flex-direction: column; }
  .dash-side { display: none; width: 100%; }
  .dash-side.is-open { display: flex; position: fixed; inset: 0; z-index: 200; width: 280px; height: 100vh; }
  .dash-side.is-open + .side-scrim { display: block; position: fixed; inset: 0; z-index: 199; background: rgba(27,35,72,0.6); }
  .dash-head { padding: 14px 16px; }
  .dash-head h1 { font-size: 18px; }
  .mob-menu-btn { display: inline-flex; }
  .dash-body { padding: 20px 16px 100px; }
  .mob-tabs { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr; }

  .store-head { display: none; }
  .store-hero-mobile { display: block; }
  .store-body { grid-template-columns: 1fr; }
  .store-side { display: none; }
  .store-cats-scroll { display: flex; gap: 8px; padding: 14px 16px 10px; overflow-x: auto; scrollbar-width: none; background: var(--bg); }
  .store-cats-scroll::-webkit-scrollbar { display: none; }
  .store-cats-scroll .chip { flex-shrink: 0; white-space: nowrap; }
  .store-cats-scroll .chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .store-main { padding: 0 16px 100px; }
  .sgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .scard .thumb { height: 150px; }

  .pdp { grid-template-columns: 1fr; padding: 0 0 120px; gap: 0; }
  .pdp-gallery .hero { height: 280px; border-radius: 0; }
  .pdp-info { padding: 20px 16px 0; }
  .cart-page { grid-template-columns: 1fr; padding: 16px; }

  .land-hero { padding: 48px 20px 32px; }
  .land-hero h1 { font-size: 32px; }
  .land-hero p { font-size: 15px; }
  .land-nav { padding: 14px 20px; }
  .land-feats { grid-template-columns: 1fr; padding: 32px 20px 60px; }

  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; }
  .auth-side h2 { font-size: 24px; }
  .auth-main { padding: 32px 24px; }
}

.flash-sticky { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 500; background: var(--text); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* Placeholder stripe block */
.stripe-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace; font-size: 10px; color: rgba(0,0,0,.22); }

/* Floating WhatsApp cart CTA */
.wa-float { position: fixed; bottom: 24px; right: 32px; z-index: 50; display: inline-flex; align-items: center; gap: 12px; background: var(--whatsapp); color: #fff; border-radius: 16px; padding: 14px 22px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 28px rgba(37,211,102,0.4); border: none; cursor: pointer; }
.wa-float .pill { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
@media (max-width: 899px) { .wa-float { left: 16px; right: 16px; bottom: 22px; width: auto; justify-content: space-between; } }

/* Flex utilities */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; } .text-muted { color: var(--text-muted); } .text-accent { color: var(--accent); }
