:root{
  --bg:#f3f5f8; --card:#fff; --ink:#111827; --muted:#667085; --line:#e4e8ee;
  --brand:#0f766e; --brand-d:#0b5b55; --brand-l:#e6f5f3;
  --ok:#0f7a3d; --ok-bg:#e8f7ee; --bad:#b42318; --bad-bg:#fdecea;
  --warn:#a15c00; --warn-bg:#fff5e5; --info:#1d4ed8; --info-bg:#e8efff;
  --r:10px; --sh:0 1px 2px rgba(16,24,40,.06),0 1px 3px rgba(16,24,40,.06);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:"Nirmala UI","Noto Sans Bengali","SolaimanLipi","Kalpurush","Segoe UI",system-ui,sans-serif;
  font-size:15px;line-height:1.6;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{margin:0 0 12px;line-height:1.35}
h1{font-size:21px}h2{font-size:18px}h3{font-size:16px}
img{max-width:100%}

/* ---------- topbar / nav ---------- */
.topbar{
  position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:12px;
  background:#0e3a37;color:#fff;padding:10px 14px;
}
.topbar .brand{color:#fff;font-weight:700;font-size:16px}
.topbar .brand:hover{text-decoration:none}
.topbar .spacer{flex:1}
.topbar .who{display:flex;align-items:center;gap:10px;font-size:13px;color:#c9ded9}
.topbar .who a{color:#fff;background:rgba(255,255,255,.14);padding:4px 10px;border-radius:999px;font-size:12px}
.balpill{background:#12857b;color:#fff;padding:5px 12px;border-radius:999px;font-size:13px}
.balpill:hover{text-decoration:none;background:#149c90}
.balpill b{font-weight:700}
.burger{display:none;cursor:pointer;font-size:20px;line-height:1}
#navtoggle{display:none}

.shell{display:flex;align-items:flex-start;gap:0;min-height:calc(100vh - 46px)}
.side{
  position:sticky;top:46px;width:212px;flex:0 0 212px;background:#fff;border-right:1px solid var(--line);
  padding:12px 10px;height:calc(100vh - 46px);overflow:auto;
}
.side a{
  display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:8px;margin-bottom:2px;
  color:#374151;font-size:14.5px;
}
.side a:hover{background:#f2f5f7;text-decoration:none}
.side a.on{background:var(--brand-l);color:var(--brand-d);font-weight:600}
.side a i{font-style:normal;width:18px;text-align:center;opacity:.8}
.side a em{margin-left:auto;font-style:normal;background:var(--bad);color:#fff;border-radius:999px;padding:1px 7px;font-size:11px}
.main{flex:1;min-width:0;padding:18px 20px 40px}
.foot{margin-top:34px;color:var(--muted);font-size:12.5px;border-top:1px solid var(--line);padding-top:12px}

@media(max-width:820px){
  .burger{display:block}
  .side{
    position:fixed;top:46px;left:0;bottom:0;z-index:29;transform:translateX(-100%);
    transition:transform .18s ease;box-shadow:0 0 0 100vmax rgba(0,0,0,0);
  }
  #navtoggle:checked ~ .shell .side{transform:none;box-shadow:0 12px 40px rgba(0,0,0,.25)}
  .main{padding:14px 12px 40px}
  .topbar .who span{display:none}
}

/* ---------- cards / grid ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);padding:16px 18px;margin-bottom:16px}
.card.tight{padding:12px 14px}
.card h2,.card h3{margin-bottom:10px}
.grid{display:grid;gap:12px}
.g2{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:13px 15px;box-shadow:var(--sh)}
.stat .k{font-size:12.5px;color:var(--muted)}
.stat .v{font-size:21px;font-weight:700;margin-top:3px;letter-spacing:-.02em}
.stat .s{font-size:12px;color:var(--muted);margin-top:2px}
.stat.hi{background:linear-gradient(135deg,#0f766e,#12857b);border-color:#0f766e;color:#fff}
.stat.hi .k,.stat.hi .s{color:#c9ece8}

/* ---------- tables ---------- */
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
/* The debt notice. Amber while it is only a warning — it is not an error until it stops him. */
.dbtal{background:#fff8e6;border:1px solid #f5d78e;color:#6b4e00}
.dbtal.bad{background:#fdecec;border-color:#f3b9b9;color:#8a1c1c}
.dbtal b{display:block;margin-bottom:2px}

/* A row-per-record table on a phone.

   Seven columns of nowrap text do not fit in 375px, so .tw let the whole thing scroll
   sideways — which hides the two figures that matter (COD and প্রফিট) behind a gesture nobody
   makes. The owner: "অর্ডার ডেটা দেখতে গেলে ডানে স্লাইড করতে হয়".

   Below 640px each row becomes a card instead. Same markup, same table on a desktop — only the
   display changes, so there is no second set of rows to keep in step with the first. */
@media (max-width:640px){
  .otab, .otab tbody, .otab tr, .otab td{display:block}
  .otab thead{display:none}
  .otab tr{
    display:grid;gap:1px 10px;align-items:center;
    grid-template-columns:auto minmax(0,1fr);
    /* Six rows, of which a table uses as many as it needs — an unused area collapses to nothing.
       The reseller list wanted two sub-lines (shop, then page) and a row for its buttons; the
       others still fill four. */
    grid-template-areas:"hd tag" "sub sub" "sub2 sub2" "adr adr" "zone zone" "sub3 sub3" "m1 m2" "f1 f2" "act act";
    border:1px solid var(--line);border-radius:11px;background:#fff;
    padding:11px 13px;margin-bottom:9px
  }
  .otab td{border:0;padding:0;white-space:normal;text-align:left}
  .otab .c-hd{grid-area:hd;font-weight:600;font-size:15px}
  .otab .c-tag{grid-area:tag;justify-self:end;text-align:right}
  .otab .c-sub{grid-area:sub}
  .otab .c-sub2{grid-area:sub2}
  .otab .c-sub3{grid-area:sub3;margin-bottom:7px}
  /* The order list's address and zone rows — empty areas on the other tables cost no height. */
  .otab .c-adr{grid-area:adr}
  .otab .c-zone{grid-area:zone;margin-top:4px}
  .otab .c-act{grid-area:act;margin-top:9px;padding-top:9px;border-top:1px dashed var(--line)}
  .otab .c-act .btn{font-size:12.5px;padding:5px 10px}
  .otab .c-m1{grid-area:m1;padding-inline-end:14px}
  /* NOT justify-self:end. The floating cart handle is fixed to the right edge at mid-height, and
     the one figure it must never cover is the profit. Both figures sit left, side by side; the
     right edge is left to the date, which repeats on every card and costs nothing to lose. */
  .otab .c-m2{grid-area:m2;justify-self:start}
  .otab .c-f1{grid-area:f1}
  .otab .c-f2{grid-area:f2;justify-self:end;text-align:right}
  /* The header is gone, so the two figures have to say what they are. */
  .otab [data-l]::before{
    content:attr(data-l) " ";color:var(--muted);font-size:12px;font-weight:400
  }
  .otab .c-m1,.otab .c-m2{font-weight:600;padding-top:6px;border-top:1px dashed var(--line);margin-top:7px}
  .otab .c-f2[data-l]{font-weight:600}
  .otab .c-f1,.otab .c-f2{padding-top:5px}
  /* "কোনো অর্ডার নেই" is one cell spanning everything, and must not sit in a named area. */
  .otab .empty{grid-area:auto;grid-column:1/-1;text-align:center;padding:6px 0}
  .otab tr:has(.empty){grid-template-areas:none;grid-template-columns:1fr}
  /* A row with a product picture gets a third track for it, and only that row: the same grid is
     shared by five tables and widening it for all of them would shift columns on screens that
     have no picture to show. The picture spans the name and the line under it, so the text keeps
     the full width of the card everywhere below. */
  .otab tr:has(.c-pic){
    grid-template-columns:52px minmax(0,1fr) auto;
    /* The picture holds the first column for two rows — the name and the line under it — and
       every row below spans across it. m1 and f1 span the first TWO columns on purpose: left in
       the 52px track, "কেনা ৳600.00" wrapped onto three lines under the photograph while the
       rest of the card sat empty. */
    grid-template-areas:"pic hd tag" "pic sub sub" "sub2 sub2 sub2" "adr adr adr" "zone zone zone" "sub3 sub3 sub3"
                        "m1 m1 m2" "f1 f1 f2" "act act act"
  }
  .otab .c-pic{grid-area:pic;align-self:start}
}
/* The line's own photograph, so a parcel is checked against a picture rather than against a
   forty-character Bengali name that differs from the next one by a word in the middle. */

/* ⛔ BOTH min-widths are load-bearing, and the picture is invisible without them. A table wider
      than its box shrinks whatever it can, and this cell — the only one holding no text — is
      what it reaches for first: measured at 0px wide with the image loaded and 120px of it
      available. The global img{max-width:100%} then resolved to max-width:0 and the photograph
      rendered as nothing at all, on a page that looked otherwise correct.

      width alone does not survive that, because on a table cell width is a suggestion. min-width
      is not, and min-width beats max-width in the cascade, which is what stops the 100% rule
      from crushing the image a second time. */
/* No text in it, so none of the 10px text padding either — that padding is 20px of a
   table that was already at the edge of its box. */
td.c-pic,th.c-pic{width:50px;min-width:50px;padding-left:6px;padding-right:4px}
.itemthumb{
  width:44px;min-width:44px;height:44px;object-fit:cover;
  border-radius:7px;display:block;background:#f2f4f7
}
.itemthumb.none{
  display:grid;place-items:center;font-size:22px;line-height:1;
  border:1px dashed var(--line);background:transparent
}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:nowrap}
th{background:#fafbfc;font-weight:600;font-size:12.5px;color:#4b5563;text-transform:none}
td.wrap,th.wrap{white-space:normal;min-width:180px}
/* Beside a photograph the name needs less reserved room: the picture is what identifies the line
   now, and the 180px default is what pushed this table into sideways scrolling the moment a
   seventh column arrived. */
tr:has(.c-pic) td.wrap,tr:has(.c-pic) th.wrap{min-width:104px}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
tbody tr:hover{background:#fafcfc}
.empty{padding:26px;text-align:center;color:var(--muted)}

/* ---------- badges / alerts ---------- */
.bdg{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.bdg.ok{background:var(--ok-bg);color:var(--ok)}
.bdg.bad{background:var(--bad-bg);color:var(--bad)}
.bdg.warn{background:var(--warn-bg);color:var(--warn)}
.bdg.info{background:var(--info-bg);color:var(--info)}
.bdg.muted{background:#eef0f3;color:#5b6472}
.alert{padding:11px 14px;border-radius:9px;margin-bottom:14px;font-size:14px;border:1px solid}
.alert.ok{background:var(--ok-bg);border-color:#b7e3c7;color:#14532d}
.alert.bad{background:var(--bad-bg);border-color:#f3c1bc;color:#7f1d1d}
.note{background:#f7f9fa;border:1px dashed var(--line);border-radius:9px;padding:11px 13px;font-size:13.5px;color:#4b5563}

/* ---------- forms ---------- */
label{display:block;font-size:13px;color:#41495a;margin:0 0 4px;font-weight:600}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=search],input[type=tel],input[type=email],select,textarea{
  width:100%;padding:9px 11px;border:1px solid #d3d9e2;border-radius:8px;background:#fff;
  font:inherit;font-size:14.5px;color:var(--ink);
}
input:focus,select:focus,textarea:focus{outline:2px solid var(--brand-l);border-color:var(--brand)}
textarea{min-height:74px;resize:vertical}
.field{margin-bottom:12px}
.row{display:flex;gap:12px;flex-wrap:wrap}
.row>*{flex:1 1 180px;min-width:0}
.hint{font-size:12px;color:var(--muted);margin-top:3px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;
  background:var(--brand);color:#fff;border:1px solid var(--brand);border-radius:8px;
  padding:9px 16px;font:inherit;font-size:14.5px;font-weight:600;
}
.btn:hover{background:var(--brand-d);text-decoration:none;color:#fff}
.btn.sm{padding:5px 11px;font-size:13px;border-radius:7px}
.btn.gh{background:#fff;color:#374151;border-color:#d3d9e2}
.btn.gh:hover{background:#f4f6f8;color:#111}
.btn.dn{background:var(--bad);border-color:var(--bad)}
.btn.dn:hover{background:#8f1d13}
.btn.ok{background:var(--ok);border-color:var(--ok)}
.btn.ok:hover{background:#0b6231}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.bar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.bar form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.bar input,.bar select{width:auto;min-width:130px}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.tabs a{padding:6px 13px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13.5px;color:#41495a}
/* The count riding on a tab. Tabular figures so 8 and 41 sit at the same width and the row does
   not jitter as the numbers change under a search. */
.tabs a .tabn{margin-inline-start:6px;font-style:normal;font-weight:600;font-size:12px;
  font-variant-numeric:tabular-nums;opacity:.75}
/* Zero is greyed, not hidden — an absent number reads as "not counted", not as "none". */
.tabs a .tabn.zero{opacity:.4;font-weight:400}
.tabs a.on .tabn{opacity:1}
/* The total beside a page heading. */
/* WhatsApp, beside a number. Small and quiet — it sits on every row, so it must not compete with
   the name it is next to. */
.wabtn{display:inline-block;margin-inline-start:6px;padding:1px 7px;border-radius:999px;
  background:#e7f7ec;color:#128c3e;border:1px solid #bfe6cd;font-size:12px;text-decoration:none;
  white-space:nowrap;vertical-align:middle}
.wabtn:hover{background:#d4f0de}
.nw{white-space:nowrap}
/* On the site right now. */
.onlinedot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#16a34a;
  vertical-align:middle}
.ok-t{color:#15803d;font-weight:600}
h1 .hcnt{font-size:14px;font-weight:400;color:var(--muted);margin-inline-start:8px;
  font-variant-numeric:tabular-nums}
.tabs a.on{background:var(--brand);border-color:var(--brand);color:#fff}
.tabs a:hover{text-decoration:none}

/* ---------- catalog ---------- */
.pgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.pcard{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh);display:flex;flex-direction:column}
.pcard .ph{aspect-ratio:1/1;background:#f0f3f5;display:flex;align-items:center;justify-content:center;color:#9aa4b2;font-size:30px}
.pcard .ph img{width:100%;height:100%;object-fit:cover}
.pcard .pb{padding:10px 12px;display:flex;flex-direction:column;gap:5px;flex:1}
.pcard .nm{font-weight:600;font-size:14px;line-height:1.35}
.pcard .pr{font-size:13px;color:var(--muted)}
.pcard .pr b{color:var(--ink);font-size:15px}
.pcard .btn{margin-top:auto}
.stock{font-size:12px}
.stock.low{color:var(--bad);font-weight:600}

/* ---------- order builder ---------- */
.lines{width:100%;border-collapse:collapse}
.lines th{font-size:12px}
.lines td{padding:6px 6px;white-space:normal;vertical-align:middle}
.lines input,.lines select{padding:7px 9px;font-size:14px}
.lines .qty{width:78px}
.lines .price{width:110px}
.calc{position:sticky;bottom:0;background:#fff;border-top:2px solid var(--brand);padding:12px 14px;border-radius:0 0 var(--r) var(--r)}
.calc dl{display:grid;grid-template-columns:1fr auto;gap:4px 16px;margin:0;font-size:14px}
.calc dt{color:var(--muted)}
.calc dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.calc .big dt,.calc .big dd{font-size:17px;font-weight:700;color:var(--ink)}
.calc .profit dd{color:var(--ok);font-weight:700}

/* ---------- timeline ---------- */
.tl{list-style:none;margin:0;padding:0}
.tl li{position:relative;padding:0 0 14px 22px;border-left:2px solid var(--line)}
.tl li:last-child{border-left-color:transparent;padding-bottom:0}
.tl li::before{content:"";position:absolute;left:-6px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--brand)}
.tl .t{font-size:12px;color:var(--muted)}

/* ---------- auth ---------- */
.authwrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 14px}
.authcard{width:100%;max-width:400px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 6px 30px rgba(16,24,40,.08);padding:26px}
.authcard h1{text-align:center;font-size:20px}
.authcard .sub{text-align:center;color:var(--muted);font-size:13.5px;margin:-6px 0 18px}
.authcard .btn{width:100%;margin-top:6px}
.authcard .alt{text-align:center;margin-top:14px;font-size:13.5px;color:var(--muted)}

/* ---------- misc ---------- */
.pager{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px;align-items:center;font-size:13.5px}
.pager a,.pager span{padding:5px 11px;border:1px solid var(--line);border-radius:7px;background:#fff}
.pager .on{background:var(--brand);color:#fff;border-color:var(--brand)}
.muted{color:var(--muted)}
.small{font-size:12.5px}
.mono{font-variant-numeric:tabular-nums}
.right{text-align:right}
.pos{color:var(--ok);font-weight:600}
.neg{color:var(--bad);font-weight:600}
.split{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start}
.split>.a{flex:1 1 420px;min-width:0}
/* The sidebar grows with the window instead of staying pinned at 320px.

   320px was enough when it held two short lists. It now carries the money box, whose Bengali
   labels are long, and on a 1900px screen it was cramped while the column beside it stood empty.
   clamp keeps it honest at both ends: never narrower than 320, never wide enough to leave the main
   column short. */
.split>.b{flex:0 1 clamp(320px, 26%, 460px);min-width:0}
/* ⛔ minmax(0,…) on BOTH tracks, not `auto 1fr`.

   A grid track sized `auto` or `1fr` will not shrink below its own min-content, and one of these
   lists carries a badge reading "আমাদের রেটের চেয়ে ৳20.00 বেশি নিয়েছেন" — a whole sentence, and
   .bdg is nowrap, so its min-content is the entire string. The track could not shrink, the grid
   grew past the card, and the figures ran off the right edge of the page.

   minmax(0,…) lets a track go narrower than its contents; what happens inside it is then the
   content's own business, which is what .bdg.wrap below settles. */
dl.kv{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:6px 14px;margin:0;font-size:14px}
dl.kv dt{color:var(--muted);min-width:0;overflow-wrap:anywhere}
dl.kv dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere}
/* A row that is one thing rather than a pair — a note, a badge, an explanation. */
dl.kv .kvfull{grid-column:1/-1;text-align:left}
/* A badge holding a sentence is not a pill. nowrap is right for স্ট্যাটাস, wrong for prose. */
.bdg.wrap{white-space:normal;text-align:left;line-height:1.45}
/* Cost data must never reach paper. Anything handed to a packer, a courier or a reseller
   is printed from these pages today, so every buy-price / courier-cost / company-net node
   carries .print-secret and disappears in print. */
@media print{
  .topbar,.side,.bar,.btn,.foot{display:none!important}
  .print-secret{display:none!important}
  .main{padding:0}
  .card{box-shadow:none;border:0}
}

/* ---------- product page ---------- */
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--brand);text-decoration:underline}
.pdetail{display:flex;gap:20px;align-items:flex-start}
.pdimg{flex:0 0 240px;aspect-ratio:1/1;background:#f0f3f5;border-radius:var(--r);
  display:flex;align-items:center;justify-content:center;color:#9aa4b2;font-size:52px;overflow:hidden}
.pdimg img{width:100%;height:100%;object-fit:cover}
.pdinfo{flex:1;min-width:0}
.pddesc{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);
  font-size:14px;line-height:1.75;color:#374151}
/* The image is the first thing to go on a phone — a 240px square above a name pushes everything
   that decides the sale below the fold. */
@media (max-width:640px){
  .pdetail{flex-direction:column;gap:14px}
  .pdimg{flex:none;width:100%;max-width:280px;align-self:center}
}
/* The catalogue card's image and name became links; they must not look like body links. */
.pcard .nm a{color:inherit;text-decoration:none}
.pcard .nm a:hover{color:var(--brand)}
.pcard a.ph{cursor:pointer}
.pact{display:flex;gap:6px;margin-top:auto;flex-wrap:wrap}
.pact form{flex:1 1 auto}
.pact .btn{width:100%;margin-top:0}

/* ---------- public site ---------- */
body.pub{background:#fff}
.pubwrap{max-width:1080px;margin:0 auto;padding:0 18px}
.pubtop{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.pubtop .pubwrap{display:flex;align-items:center;gap:16px;height:62px}
.publogo{font-weight:700;font-size:17px;color:var(--ink);text-decoration:none}
.pubnav{margin-inline-start:auto;display:flex;align-items:center;gap:16px}
.pubnav a{color:var(--muted);text-decoration:none;font-size:14.5px}
.pubnav a:hover{color:var(--ink)}
.pubnav a.btn{color:#fff}
.pubmain{min-height:60vh}
.pubpage{padding:26px 18px 40px}
.pubfoot{border-top:1px solid var(--line);background:#fafbfc;padding:22px 0;margin-top:40px}
.pubfoot .pubwrap{display:flex;flex-direction:column;gap:6px;color:var(--muted)}
.pubfoot a{color:var(--muted)}

.hero{background:linear-gradient(180deg,#f4f8f6 0%,#fff 100%);padding:52px 0 44px}
.herowrap{display:flex;gap:36px;align-items:center}
.herotext{flex:1;min-width:0}
.herotext h1{font-size:34px;line-height:1.35;margin:0 0 14px}
.herotext p{font-size:16px;line-height:1.8;color:var(--muted);margin:0;max-width:56ch}
.herobtns{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.heroimg{flex:0 0 300px}
.heroimg img{width:100%;border-radius:var(--r);box-shadow:var(--sh)}

.pubsec{padding:42px 0}
.pubsec.alt{background:#fafbfc;border-block:1px solid var(--line)}
.pubsec.cta{background:#f4f8f6;border-top:1px solid var(--line)}
.secttl{text-align:center;font-size:23px;margin:0 0 26px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.step{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:22px 20px}
.step b{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border-radius:50%;background:var(--brand);color:#fff;font-size:15px}
.step h3{margin:12px 0 6px;font-size:16px}
.step p{margin:0;font-size:14px;line-height:1.75;color:var(--muted)}

.cattiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cattile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 12px;
  background:#fff;border:1px solid var(--line);border-radius:var(--r);text-decoration:none;color:var(--ink)}
.cattile:hover{border-color:var(--brand)}
.cattile .ci{width:64px;height:64px;border-radius:50%;overflow:hidden;background:#f0f3f5;
  display:flex;align-items:center;justify-content:center;font-size:26px}
.cattile .ci img{width:100%;height:100%;object-fit:cover}

/* Where a price sits on a shop. Stated, not left blank — a gap reads as a broken page. */
.gate{margin-top:16px;padding:14px 16px;border:1px dashed var(--line);border-radius:var(--r);background:#fafbfc}
.gate p{margin:6px 0 10px;color:var(--muted)}

@media (max-width:860px){
  .steps{grid-template-columns:1fr}
  .cattiles{grid-template-columns:repeat(2,1fr)}
  .herowrap{flex-direction:column-reverse;align-items:flex-start}
  .heroimg{flex:none;width:100%;max-width:320px}
  .herotext h1{font-size:27px}
}

/* ---------- cart drawer ---------- */
.drawer{position:fixed;inset:0;z-index:60;display:flex;justify-content:flex-end}
.drawer[hidden]{display:none}
.drawerbg{position:absolute;inset:0;background:rgba(16,24,40,.45)}
.drawerpane{position:relative;width:min(380px,100%);background:#fff;display:flex;flex-direction:column;
  box-shadow:-8px 0 28px rgba(16,24,40,.18);animation:slidein .16s ease-out}
@keyframes slidein{from{transform:translateX(14px);opacity:.7}to{transform:none;opacity:1}}
.drawerpane header{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;border-bottom:1px solid var(--line);font-size:16px}
.drawerbody{flex:1;overflow:auto;padding:12px 16px}
.drawerpane footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);display:flex;gap:8px}
.drawerpane footer .btn{flex:1;text-align:center}
.dempty{padding:26px 0 14px;text-align:center;color:var(--muted)}
.drow{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}
.drow:last-child{border-bottom:0}
.dthumb{flex:none;width:46px;height:46px;border-radius:8px;background:#f0f3f5;overflow:hidden;
  display:flex;align-items:center;justify-content:center;font-size:22px}
.dthumb img{width:100%;height:100%;object-fit:cover}
.dmid{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.dname{font-weight:600;font-size:14px;line-height:1.35}
.stepper.sm button{width:34px;font-size:17px}
.stepper.sm .dq{min-width:40px;text-align:center;padding:7px 0;font-size:15px;
  border-inline:1px solid var(--line)}
/* The nav item is a real link, so it still works with JavaScript off; the pointer only promises
   what the drawer delivers. */
#cartlink{cursor:pointer}

/* ---------- floating cart handle ---------- */
/* Reaching the cart used to mean opening the left nav and then finding an item in it. This is the
   thing he touches most, so it sits on the edge of the screen and follows him down the page. */
.cartfab{position:fixed;inset-inline-end:0;top:50%;transform:translateY(-50%);z-index:40;
  display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:11px 9px;border:1px solid var(--line);border-inline-end:0;
  border-start-start-radius:12px;border-end-start-radius:12px;
  background:#fff;box-shadow:-3px 0 14px rgba(16,24,40,.13);cursor:pointer;font:inherit}
.cartfab[hidden]{display:none}
.cartfab:active{background:#f4f6f8}
.cfico{position:relative;font-size:21px;line-height:1}
.cfico em{position:absolute;top:-6px;inset-inline-end:-9px;min-width:17px;height:17px;padding:0 4px;
  border-radius:9px;background:var(--brand);color:#fff;font:600 11px/17px system-ui;
  font-style:normal;text-align:center}
.cfamt{font-size:11.5px;font-weight:600;color:var(--ink);white-space:nowrap}

/* The handle is the only thing on screen that changes when something is added — the panel no
   longer opens — so the change has to be big enough to catch the eye at the edge of vision.
   The keyframes repeat translateY(-50%) because that is what centres the handle; dropping it
   for the duration of the animation would fling it to the middle of the screen and back. */
@keyframes cartpop{
  0%  {transform:translateY(-50%) scale(1)}
  35% {transform:translateY(-50%) scale(1.16)}
  100%{transform:translateY(-50%) scale(1)}
}
.cartfab.pop{animation:cartpop .42s ease-out}
.cartfab.pop .cfico em{background:var(--ok,#15803d)}

/* Above the handle, not over it, and never over the bottom of a form. */
.cartoast{position:fixed;z-index:60;inset-inline:12px auto;bottom:16px;max-width:calc(100vw - 24px);
  display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:11px;
  background:#111827;color:#fff;font-size:13.5px;line-height:1.35;
  box-shadow:0 8px 26px rgba(16,24,40,.3);animation:casl .22s ease-out}
.cartoast[hidden]{display:none}
@keyframes casl{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.ctick{flex:none;width:19px;height:19px;border-radius:50%;background:#15803d;color:#fff;
  font:700 12px/19px system-ui;text-align:center}
.ctgo{flex:none;margin-inline-start:4px;border:0;background:rgba(255,255,255,.15);color:#fff;
  font:600 12.5px/1 inherit;padding:7px 10px;border-radius:8px;cursor:pointer}
.ctgo:active{background:rgba(255,255,255,.28)}
@media (min-width:700px){.cartoast{inset-inline:auto 74px;bottom:auto;top:calc(50% + 58px)}}
@media (prefers-reduced-motion:reduce){
  .cartfab.pop{animation:none}
  .cartoast{animation:none}
}

.drawerpane footer{flex-direction:column;gap:8px;align-items:stretch}
.dsum{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:2px}
.dsum span{font-size:13px;color:var(--muted)}
.dsum b{font-size:19px}
.drm{border:0;background:none;color:var(--muted);font-size:15px;cursor:pointer;padding:2px 4px;line-height:1}
.drm:hover{color:var(--bad)}

/* ---------- homepage sections ---------- */
.homewrap{padding-bottom:30px}
/* The homepage search. Wide and early, because on a catalogue of two thousand items typing a
   name is faster than any amount of browsing — and it is the one control a first-time visitor
   looks for. */
.hsearch{margin:22px 0 26px}
.hsbox{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:6px 6px 6px 16px;box-shadow:var(--sh);max-width:640px;margin:0 auto}
.hsbox:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}
.hsico{flex:none;font-size:16px;line-height:1;opacity:.55}
/* The input carries no border of its own — the pill around it is the control. */
.hsbox input[type=search]{flex:1;min-width:0;border:0;outline:0;background:none;padding:9px 0;
  font:inherit;font-size:15px;color:var(--ink)}
.hsbox .btn{flex:none;border-radius:999px;padding:9px 20px}
@media (max-width:520px){
  .hsbox{padding-inline-start:12px}
  .hsbox .btn{padding:9px 14px}
}
.hsec{margin:32px 0}
.hsec > h2{display:flex;align-items:center;gap:9px;font-size:19px;margin:0 0 16px}
.hsec > h2 .cnt{font:600 11.5px/1 system-ui;color:var(--muted);background:#f0f3f5;
  padding:5px 9px;border-radius:999px}
.hsec.cta{background:#f4f8f6;border:1px solid var(--line);border-radius:var(--r);padding:26px 20px}
.hsec.cta h2{justify-content:center}
.morewrap{text-align:center;margin-top:16px}

/* Three tiles a row — the owner's layout for "what we stock" and "who we stock". */
.tiles3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tile{display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px 10px;text-align:center;
  background:#fff;border:1px solid var(--line);border-radius:var(--r);text-decoration:none;color:var(--ink)}
.tile:hover{border-color:var(--brand)}
.tile b{font-size:13.5px;line-height:1.35}
.tile .ti{width:56px;height:56px;border-radius:50%;overflow:hidden;background:#f0f3f5;
  display:flex;align-items:center;justify-content:center;font-size:23px}
.tile .ti img{width:100%;height:100%;object-fit:cover}

/* Two products a row, at every width — the owner asked for exactly this. */
.pgrid2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.pgrid2 .pcard .ph{position:relative}
.pcard .bnd{font-size:11px;font-weight:600;color:var(--brand);text-transform:uppercase;letter-spacing:.3px}
.pcard .bnd a{color:inherit;text-decoration:none}
.pcard .tag{position:absolute;top:7px;inset-inline-start:7px;font:600 10.5px/1 system-ui;font-style:normal;
  padding:4px 7px;border-radius:999px;color:#fff}
.pcard .tag.pm{background:#7c3aed}
.pcard .tag.vr{background:#e0562d}
.pcard .addf{margin-top:auto}
.pcard .addf .btn{width:100%}

@media (min-width:900px){
  /* Desktop has room for more without the cards turning into stamps. */
  .tiles3{grid-template-columns:repeat(6,1fr)}
  .pgrid2{grid-template-columns:repeat(4,1fr)}
}

/* Where a parcel is, in the courier's words. A block on the order page, a pill in the lists. The
   tones are the courier's news, not ours: a return is bad news for the reseller whatever it does
   to the books. */
.cstat{border-radius:10px;padding:8px 11px;margin:0 0 10px;background:#eef4ff;color:#1e3a8a;line-height:1.45}
.cstat.ok{background:#e8f7ee;color:#0f5132}
.cstat.warn{background:#fff6e0;color:#7a4f00}
.cstat.bad{background:#fdecec;color:#8a1c1c}
.cstat .small{color:inherit;opacity:.82}
.cpill{display:inline-block;margin-top:4px;padding:1px 8px;border-radius:99px;font-size:11.5px;
  line-height:1.6;white-space:nowrap;background:#eef4ff;color:#1e3a8a}
.cpill.ok{background:#e8f7ee;color:#0f5132}
.cpill.warn{background:#fff6e0;color:#7a4f00}
.cpill.bad{background:#fdecec;color:#8a1c1c}

/* The order list's print bar. Sticky, so a long day's list can be ticked from the bottom and
   printed without scrolling back up to find the buttons. */
.bulkbar{position:sticky;top:8px;z-index:6;display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px 11px;margin:0 0 10px;
  box-shadow:0 4px 14px rgba(15,23,42,.08)}
.bulkbar b{margin-right:4px}
td.c-hd input.opick,th input#opall{width:17px;height:17px;vertical-align:-3px;margin-right:4px}

/* The sticker designer: controls on the left, the real print in a frame on the right. */
.stkgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:14px;align-items:start}
.tplpick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tplopt{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--line);border-radius:11px;
  padding:10px 11px;cursor:pointer;background:#fff}
.tplopt:has(input:checked){border-color:var(--brand);background:#f1f8f4;box-shadow:0 0 0 1px var(--brand)}
.tplopt input{margin-top:3px}
.tplopt em{display:block;font-style:normal;font-size:12px;color:var(--muted);line-height:1.45;margin-top:2px}
.fldpick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.fldpick label{display:flex;gap:7px;align-items:center;font-size:13.5px}
.stkprev iframe{display:block;width:100%;height:600px;border:1px solid var(--line);border-radius:11px;background:#eef0f3}
@media (max-width:900px){
  .stkgrid{grid-template-columns:minmax(0,1fr)}
  .stkprev iframe{height:520px}
}
@media (max-width:520px){
  .tplpick,.fldpick{grid-template-columns:minmax(0,1fr)}
}

/* The order page's edit boxes: closed until asked for, so the page still reads as a record first. */
.edbox{margin-top:12px;border:1px dashed var(--line);border-radius:10px;padding:0 12px}
.edbox[open]{padding-bottom:12px;background:#fbfcfd}
.edbox summary{cursor:pointer;padding:10px 0;font-weight:600;color:var(--brand)}
.edbox .field{margin-bottom:10px}
.edbox textarea,.edbox input[type=text],.edbox input:not([type]),.edbox select{width:100%}
table.edt input.eiq{width:64px}
table.edt input.eip{width:96px;text-align:right}
.eiadd{position:relative;margin-top:10px}
.eiadd input{width:100%}
.eires{position:absolute;left:0;right:0;top:100%;z-index:8;max-height:320px;overflow:auto;background:#fff;
  border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 26px rgba(15,23,42,.12)}
.eires button{display:flex;gap:9px;align-items:center;width:100%;text-align:left;padding:7px 10px;border:0;
  border-bottom:1px solid var(--line);background:#fff;cursor:pointer;font:inherit}
.eires button:hover:not([disabled]){background:#f1f8f4}
.eires button[disabled]{opacity:.55;cursor:not-allowed}
.eires img,.eires .noimg{width:36px;height:36px;border-radius:6px;object-fit:cover;flex:none;display:grid;place-items:center;background:#f2f4f7}
.eires em{display:block;font-style:normal;font-size:12px;color:var(--muted)}

/* Staff switches: each one says what it opens, because "প্রিন্ট" alone does not say it freezes COD. */
.permpick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:6px 0 12px}
.permpick label{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff}
.permpick label:has(input:checked){border-color:var(--brand);background:#f1f8f4}
.permpick em{display:block;font-style:normal;font-size:12px;color:var(--muted);line-height:1.45;margin-top:2px}
@media (max-width:520px){ .permpick{grid-template-columns:minmax(0,1fr)} }
/* Whose name an office-placed order goes in — said before anything is typed, not after. */
.stbanner{border:1px solid #c7ddf7;background:#eef6ff;color:#1e3a8a;border-radius:11px;padding:10px 13px;margin:0 0 12px;line-height:1.55}

/* ---------- stepper: checkout lines, cart, product page, drawer ---------- */
/* 42px targets: a reseller changing a quantity one-handed on a bus should not have to aim. Lived
   inline on the checkout until 25 Oct 2026; the cart and the product page use it now too. */
.stepper{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:8px;overflow:hidden;width:max-content;background:#fff}
.stepper button{width:42px;border:0;background:#f4f6f8;font-size:19px;line-height:1;cursor:pointer;color:var(--ink)}
.stepper button:active{background:#e6eaee}
.stepper input{width:56px;border:0;border-inline:1px solid var(--line);text-align:center;
  font-size:16px;padding:10px 0;border-radius:0;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.stepper input:focus{outline:none}

/* The field a refused submit was about. */
.fielderr{border-color:var(--bad)!important;box-shadow:0 0 0 3px var(--bad-bg)}

/* ---------- cart: one product = one card ---------- */
.clines{display:flex;flex-direction:column;gap:10px}
.cline{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;
  background:#fff;border:1px solid var(--line);border-radius:11px;padding:11px 13px;box-shadow:var(--sh)}
.cimg{width:56px;height:56px;border-radius:8px;overflow:hidden;background:#f0f3f5;
  display:flex;align-items:center;justify-content:center;font-size:24px;color:#9aa4b2}
.cimg img{width:100%;height:100%;object-fit:cover;display:block}
.cname{font-weight:600;font-size:14.5px;line-height:1.4}
.cprice{margin-top:3px}
.cprice b{font-size:15px}
.cctl{display:flex;align-items:center;gap:8px}
.cctl .rm{border:0;background:none;color:var(--muted);font-size:16px;cursor:pointer;padding:4px 7px;border-radius:6px}
.cctl .rm:hover{color:var(--bad);background:var(--bad-bg)}
.cartact{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:12px}
.cartsum{flex:1;min-width:0;font-size:13.5px;color:var(--muted)}
.cartsum b{color:var(--ink)}
@media(max-width:640px){
  .cline{grid-template-columns:48px minmax(0,1fr);grid-template-areas:"img body" "ctl ctl";gap:8px 12px}
  .cimg{grid-area:img;width:48px;height:48px}
  .cbody{grid-area:body}
  .cctl{grid-area:ctl;justify-content:space-between;padding-top:9px;border-top:1px dashed var(--line)}
  /* The way out is pinned to the bottom: on a phone the checkout button must never sit below the fold. */
  .cartact{position:fixed;inset-inline:0;bottom:0;z-index:30;margin:0;
    padding:9px 14px calc(9px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);
    box-shadow:0 -6px 18px rgba(16,24,40,.10)}
  .cartact .cartsum{flex-basis:100%}
  .cartact .btn{flex:1}
  #cartwrap{padding-bottom:120px}
  .cartfab{display:none}
}

/* ---------- product page: the sale beside the picture, and right under it on a phone ---------- */
.pdgrid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr) clamp(300px,30%,380px);grid-template-areas:"main buy" "post buy";align-items:start}
.pd-main{grid-area:main;margin:0}
.pd-buy{grid-area:buy;margin:0;position:sticky;top:60px}
.pd-post{grid-area:post;margin:0}
.pdprice{display:flex;flex-direction:column;gap:6px}
.pdprice .pp{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;color:var(--muted)}
.pdprice .pp b{font-size:16px;color:var(--ink)}
.pdprice .pp.hi{padding-top:8px;border-top:1px solid var(--line);color:var(--ink);font-weight:600}
.pdprice .pp.hi b{font-size:22px}
@media(max-width:820px){
  .pdgrid{grid-template-columns:1fr;grid-template-areas:"main" "buy" "post";gap:12px}
  .pd-buy{position:static}
}

/* ---------- checkout: the two figures first, the breakdown folded under them ---------- */
.bigtwo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.bigtwo div{background:#f7f9fa;border:1px solid var(--line);border-radius:9px;padding:9px 11px;min-width:0}
.bigtwo span{display:block;font-size:12px;color:var(--muted)}
.bigtwo b{font-size:19px;line-height:1.25;letter-spacing:-.01em;overflow-wrap:anywhere}
.sumdet summary{cursor:pointer;font-size:13.5px;color:var(--brand);font-weight:600;padding:4px 0 8px;list-style:none}
.sumdet summary::-webkit-details-marker{display:none}
.sumdet summary::before{content:"▸ "}
.sumdet[open] summary::before{content:"▾ "}
.costep h2 .pastebtn{margin-inline-start:auto;font-weight:600}
.costep h2 .pastedone{font-size:12.5px;font-weight:400;color:var(--ok)}
.pastebox{margin:-4px 0 14px;padding:10px;border:1px dashed #cfd6df;border-radius:9px;background:#f7f9fa}
.known .dup{margin-top:6px;color:var(--warn);font-weight:600}

/* The tick after "জমা দিন". */
.alert.placed{display:flex;gap:12px;align-items:center;padding:14px 16px}
.alert.placed .pl-ic{flex:none;width:38px;height:38px;border-radius:50%;background:var(--ok);color:#fff;
  font-size:20px;font-weight:700;display:flex;align-items:center;justify-content:center}

/* ---------- reseller list money strip, dashboard chips ---------- */
a.stat{display:block;color:inherit}
a.stat:hover{text-decoration:none;border-color:var(--brand);box-shadow:0 2px 8px rgba(16,24,40,.08)}
a.stat .lnk{color:var(--brand)}
.stat .v.neg{color:var(--bad)}
.warn-t{color:var(--warn);font-weight:600}
.moneytabs{margin-top:-4px}
.stat.hi .btn.hb{display:inline-flex;margin-top:10px;background:#fff;color:var(--brand-d);border-color:#fff;font-size:13px;padding:7px 12px}
.stat.hi .btn.hb:hover{background:#e6f5f3;color:var(--brand-d)}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.chips a,.chips .chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1px solid var(--line);
  background:#fff;font-size:13px;color:#41495a}
.chips a:hover{text-decoration:none;border-color:var(--brand);color:var(--brand-d)}
.chips a b{color:var(--ink)}
.chips .chip.ok{background:var(--ok-bg);color:var(--ok);border-color:#b7e3c7}
.chips .chip.bad{background:var(--bad-bg);color:var(--bad);border-color:#f3c1bc;font-weight:600}

/* ---------- order export ---------- */
.expbox{position:relative}
.expbox summary{list-style:none}
.expbox summary::-webkit-details-marker{display:none}
.exppanel{position:absolute;z-index:20;top:calc(100% + 6px);inset-inline-end:0;width:min(360px,92vw);display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;box-shadow:0 8px 22px rgba(16,24,40,.14)}
.exppanel label{font-weight:400;display:flex;flex-direction:column;gap:3px;flex:1 1 140px;margin:0}
.exppanel input[type=date]{width:100%}
.expst{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.expst .small{flex-basis:100%}
.exppanel label.expchk{flex:0 0 auto;flex-direction:row;align-items:center;gap:5px;font-size:13.5px;cursor:pointer}
