/* NishraBD — admin & shop styles */
:root{
  --bg:#f5f7fb; --surface:#ffffff; --surface-2:#f8fafc; --border:#e5e9f0; --border-strong:#d3dae5;
  --text:#0f172a; --text-2:#475569; --muted:#64748b;
  --primary:#1e40af; --primary-600:#1e3a8a; --primary-50:#eff6ff; --accent:#f26b1d; --accent-600:#dd5a0f; --accent-50:#fff4ec;
  --sidebar:#0b1a4a; --sidebar-2:#16286a; --sidebar-text:#cbd5e1;
  --green:#059669; --green-50:#ecfdf5; --red:#dc2626; --red-50:#fef2f2; --amber:#d97706; --amber-50:#fffbeb;
  --blue:#2563eb; --blue-50:#eff6ff; --purple:#7c3aed; --purple-50:#f5f3ff;
  --radius:12px; --radius-sm:8px; --shadow:0 1px 2px rgba(15,23,42,.04),0 4px 16px rgba(15,23,42,.05);
  --font:'Inter','Hind Siliguri',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:14.5px/1.55 var(--font)}
body.lang-bn{font-family:'Hind Siliguri','Inter',system-ui,sans-serif;font-size:15px}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{margin:0 0 .5em;line-height:1.25;font-weight:700}
h1{font-size:22px} h2{font-size:17px} h3{font-size:15px}
code{background:var(--surface-2);padding:1px 6px;border-radius:5px;font-size:.9em}
.ico{flex-shrink:0;vertical-align:middle}
.muted{color:var(--muted)} .small{font-size:12.5px} .right{text-align:right} .center{text-align:center} .nowrap{white-space:nowrap}
.text-green{color:var(--green)} .text-red{color:var(--red)} .text-amber{color:var(--amber)} .bold{font-weight:600}
.mt{margin-top:16px} .mb{margin-bottom:16px} .mb0{margin-bottom:0}
.hidden{display:none!important}

/* ---------- Layout ---------- */
.layout{display:flex;min-height:100vh}
.sidebar{width:248px;background:var(--sidebar);color:var(--sidebar-text);position:fixed;inset:0 auto 0 0;overflow-y:auto;z-index:40;display:flex;flex-direction:column;transition:transform .25s}
.brand{display:flex;align-items:center;gap:10px;padding:18px 20px;color:#fff;font-weight:700;font-size:17px;text-decoration:none!important;border-bottom:1px solid rgba(255,255,255,.06)}
.brand-logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#1e40af,#f26b1d);display:grid;place-items:center;font-weight:800;color:#fff}
.nav{padding:12px 10px 24px;display:flex;flex-direction:column;gap:2px}
.nav a{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:9px;color:var(--sidebar-text);text-decoration:none!important;font-weight:500;position:relative}
.nav a:hover{background:var(--sidebar-2);color:#fff}
.nav a.active{background:var(--primary);color:#fff}
.nav a.nav-cta{background:var(--accent);color:#fff;margin:4px 0 8px}
.nav a.nav-cta:hover,.nav a.nav-cta.active{background:var(--accent-600);color:#fff}
.nav-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;padding:16px 12px 6px}
.nav-badge{margin-left:auto;font-style:normal;background:var(--primary);color:#fff;border-radius:20px;padding:0 7px;font-size:11px;line-height:18px}
.nav-badge.warn{background:var(--accent)}
.main{flex:1;margin-left:248px;min-width:0;display:flex;flex-direction:column}
.topbar{height:60px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:0 24px;position:sticky;top:0;z-index:30}
.topbar-title{font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.content{padding:24px;flex:1;max-width:1400px;width:100%}
.footer{padding:16px 24px;color:var(--muted);font-size:12.5px;text-align:center}
.lang-switch{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.lang-switch a{padding:4px 10px;font-size:12.5px;color:var(--text-2);text-decoration:none}
.lang-switch a.on{background:var(--primary);color:#fff}
.icon-btn{background:none;border:0;padding:6px;border-radius:8px;cursor:pointer;color:var(--text)}
.icon-btn:hover{background:var(--surface-2)}
.only-mobile{display:none}
.user-btn{display:flex;align-items:center;gap:8px;background:none;border:0;cursor:pointer;font:inherit;color:var(--text);padding:4px 6px;border-radius:8px}
.user-btn:hover{background:var(--surface-2)}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--primary-50);color:var(--primary);display:grid;place-items:center;font-weight:700}
.dropdown{position:relative}
.dropdown-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);min-width:210px;padding:6px;z-index:50}
.dropdown.open .dropdown-menu{display:block}
.dropdown-head{padding:8px 10px;border-bottom:1px solid var(--border);margin-bottom:4px;display:flex;flex-direction:column}
.dropdown-head small{color:var(--muted)}
.dropdown-menu a,.dropdown-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border-radius:7px;color:var(--text);background:none;border:0;font:inherit;cursor:pointer;text-align:left;text-decoration:none}
.dropdown-menu a:hover,.dropdown-menu button:hover{background:var(--surface-2)}
.sidebar-backdrop{display:none}

/* ---------- Page header ---------- */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.page-head h1{margin:0}
.page-head p{margin:4px 0 0;color:var(--muted)}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ---------- Cards ---------- */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:18px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.card-head h2{margin:0;font-size:15.5px}
.card-body{padding:18px}
.card-body.flush{padding:0}
.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-bottom:18px}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);display:flex;gap:14px;align-items:center;text-decoration:none!important;color:inherit}
.stat-ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}
.stat-label{color:var(--muted);font-size:12.5px;font-weight:500}
.stat-value{font-size:21px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.stat-sub{font-size:12px;color:var(--muted)}
.c-indigo{background:var(--primary-50);color:var(--primary)} .c-green{background:var(--green-50);color:var(--green)}
.c-red{background:var(--red-50);color:var(--red)} .c-amber{background:var(--amber-50);color:var(--amber)}
.c-blue{background:var(--blue-50);color:var(--blue)} .c-purple{background:var(--purple-50);color:var(--purple)}
.grid-2{display:grid;grid-template-columns:2fr 1fr;gap:18px}
.grid-2-eq{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-2>*,.grid-2-eq>*,.grid-3>*{min-width:0}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:var(--surface);color:var(--text);font:inherit;font-weight:500;cursor:pointer;text-decoration:none!important;white-space:nowrap;line-height:1.3}
.btn:hover{background:var(--surface-2)}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-600)}
.btn-success{background:var(--green);border-color:var(--green);color:#fff}
.btn-success:hover{filter:brightness(.95);background:var(--green)}
.btn-danger{background:var(--surface);border-color:#fecaca;color:var(--red)}
.btn-danger:hover{background:var(--red-50)}
.btn-sm{padding:5px 10px;font-size:13px}
.btn-lg{padding:12px 20px;font-size:16px}
.btn-block{width:100%}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.btn-icon{padding:6px;border-radius:7px}
.inline{display:inline}

/* ---------- Forms ---------- */
.form label,.field label{display:block;font-weight:600;font-size:13px;margin:0 0 5px;color:var(--text-2)}
.field{margin-bottom:14px}
.req{color:var(--red)}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=tel],input[type=search],input:not([type]),select,textarea{
  width:100%;padding:9px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:#fff;font:inherit;color:var(--text);transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(30,64,175,.15)}
textarea{min-height:80px;resize:vertical}
.form input,.form select,.form textarea{margin-bottom:14px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:0 16px}
.form-grid .span-2{grid-column:span 2}
.form-grid .span-all{grid-column:1/-1}
.hint{font-size:12px;color:var(--muted);margin-top:-8px;margin-bottom:12px}
.check{display:flex;align-items:center;gap:8px;font-weight:500!important;cursor:pointer}
.check input{width:auto;margin:0}
.form-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:6px;flex-wrap:wrap}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end}
.filters .field{margin:0;min-width:150px;flex:1}
.filters .field.grow{flex:2;min-width:200px}
.input-icon{position:relative}
.input-icon .ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted)}
.input-icon input{padding-left:36px}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{background:var(--surface-2);text-align:left;font-weight:600;color:var(--text-2);font-size:12.5px;text-transform:uppercase;letter-spacing:.03em;padding:10px 14px;border-bottom:1px solid var(--border);white-space:nowrap}
.table td{padding:11px 14px;border-bottom:1px solid var(--border);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:#fafbff}
.table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.table tfoot td{font-weight:700;background:var(--surface-2)}
.table .thumb{width:40px;height:40px;border-radius:8px;object-fit:cover;background:var(--surface-2);display:grid;place-items:center;color:var(--muted)}
.cell-main{font-weight:600;color:var(--text)}
.cell-sub{font-size:12.5px;color:var(--muted)}
.row-actions{display:flex;gap:6px;justify-content:flex-end}

/* ---------- Badges & alerts ---------- */
.badge{display:inline-block;padding:2px 9px;border-radius:20px;font-size:12px;font-weight:600;white-space:nowrap}
.badge-green{background:var(--green-50);color:var(--green)} .badge-red{background:var(--red-50);color:var(--red)}
.badge-amber{background:var(--amber-50);color:var(--amber)} .badge-blue{background:var(--blue-50);color:var(--blue)}
.badge-purple{background:var(--purple-50);color:var(--purple)} .badge-gray{background:#f1f5f9;color:#475569}
.alert{padding:12px 14px;border-radius:10px;margin-bottom:16px;border:1px solid;display:flex;gap:10px;align-items:flex-start}
.alert-success{background:var(--green-50);border-color:#a7f3d0;color:#065f46}
.alert-error{background:var(--red-50);border-color:#fecaca;color:#991b1b}
.alert-warning{background:var(--amber-50);border-color:#fde68a;color:#92400e}
.alert-info{background:var(--blue-50);border-color:#bfdbfe;color:#1e40af}
.alert-x{margin-left:auto;background:none;border:0;font-size:20px;line-height:1;cursor:pointer;color:inherit;opacity:.6}
.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}
.empty-state .ico{color:#cbd5e1;margin-bottom:8px}
.empty-state.big{padding:80px 20px}
.empty-state h2{color:var(--text)}

/* ---------- Pager ---------- */
.pager{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:10px;flex-wrap:wrap;border-top:1px solid var(--border)}
.pager-info{color:var(--muted);font-size:13px;padding:12px 16px}
.pager .pager-info{padding:0}
.pager-links{display:flex;gap:4px;flex-wrap:wrap}
.pager-links a,.pager-links span{min-width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--border);border-radius:7px;padding:0 8px;color:var(--text);text-decoration:none;font-size:13px}
.pager-links span.active{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ---------- Tabs ---------- */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:18px;overflow-x:auto}
.tabs a{padding:10px 14px;color:var(--text-2);font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;text-decoration:none}
.tabs a.on{color:var(--primary);border-color:var(--primary)}

/* ---------- Detail list ---------- */
.dl{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;margin:0}
.dl dt{color:var(--muted);font-size:13px}
.dl dd{margin:0;font-weight:500}
.summary-rows{display:flex;flex-direction:column;gap:8px}
.summary-rows .row{display:flex;justify-content:space-between;gap:10px}
.summary-rows .row.total{border-top:1px dashed var(--border-strong);padding-top:10px;font-size:17px;font-weight:700}

/* ---------- Charts ---------- */
.chart{width:100%;height:auto;display:block}
.chart text{font-family:var(--font);fill:var(--muted);font-size:11px}
.legend{display:flex;gap:16px;font-size:12.5px;color:var(--text-2);flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.bar-list .bar-row{display:grid;grid-template-columns:1fr auto;gap:4px 10px;margin-bottom:12px;font-size:13.5px}
.bar-track{grid-column:1/-1;height:7px;border-radius:5px;background:#eef2f7;overflow:hidden}
.bar-fill{height:100%;background:var(--primary);border-radius:5px}

/* ---------- Line items (POS / purchase) ---------- */
.items-table input{padding:7px 9px}
.items-table td{padding:8px 10px}
.items-table .w-qty{width:110px} .items-table .w-price{width:140px} .items-table .w-total{width:130px} .items-table .w-x{width:44px}
.search-box{position:relative}
.search-results{position:absolute;left:0;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px rgba(15,23,42,.12);z-index:60;max-height:340px;overflow-y:auto;display:none}
.search-results.open{display:block}
.search-results .res{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;cursor:pointer;border-bottom:1px solid var(--border)}
.search-results .res:last-child{border-bottom:0}
.search-results .res:hover,.search-results .res.hl{background:var(--primary-50)}
.search-results .res small{color:var(--muted)}
.pos-grid{display:grid;grid-template-columns:1fr 360px;gap:18px;align-items:start}
.pos-grid>*{min-width:0}
.sticky{position:sticky;top:78px}

/* ---------- Auth pages ---------- */
.auth-body{background:radial-gradient(1200px 600px at 10% -10%,#dbe4ff 0,transparent 60%),radial-gradient(900px 500px at 110% 110%,#ffe4d1 0,transparent 60%),var(--bg)}
.auth-wrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px}
.auth-card{width:100%;max-width:410px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 50px rgba(15,23,42,.08);padding:32px}
.auth-card.wide{max-width:520px}
.auth-card h1{font-size:22px;margin-bottom:6px}
.auth-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;color:var(--primary);margin-bottom:20px}
.auth-lang{text-align:center;margin-top:18px;font-size:13px;color:var(--muted)}
.auth-flash{max-width:410px;width:100%}
.checklist{list-style:none;padding:0;margin:14px 0}
.checklist li{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.checklist .ico{color:var(--green)}

/* ---------- Invoice / print ---------- */
.invoice{background:#fff;max-width:820px;margin:0 auto;padding:36px;border:1px solid var(--border);border-radius:var(--radius)}
.inv-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid var(--text);padding-bottom:16px;margin-bottom:18px}
.inv-head h2{font-size:22px;margin:0}
.inv-title{font-size:26px;font-weight:800;letter-spacing:.05em;color:var(--primary);text-align:right}
.inv-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:18px;flex-wrap:wrap}
.inv-table th{background:#f1f5f9}
.inv-foot{display:flex;justify-content:space-between;gap:20px;margin-top:18px;flex-wrap:wrap}
.inv-totals{min-width:260px}
.inv-note{margin-top:28px;padding-top:12px;border-top:1px solid var(--border);color:var(--muted);font-size:13px;text-align:center}
.paid-stamp{display:inline-block;border:3px solid var(--green);color:var(--green);padding:4px 14px;font-weight:800;border-radius:8px;transform:rotate(-8deg);letter-spacing:.1em}
.due-stamp{border-color:var(--red);color:var(--red)}
.label-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.label{border:1px dashed var(--border-strong);border-radius:8px;padding:8px;text-align:center;background:#fff;break-inside:avoid}
.label .ln{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.label .lp{font-size:13px;font-weight:700}
.label svg{max-width:100%;height:auto}

@media print{
  body{background:#fff}
  .sidebar,.topbar,.footer,.no-print,.alert{display:none!important}
  .main{margin:0}
  .content{padding:0;max-width:none}
  .invoice{border:0;padding:0;max-width:none}
  .card{box-shadow:none;border:0}
  a{color:inherit;text-decoration:none}
}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  .grid-2,.grid-3{grid-template-columns:1fr}
  .pos-grid{grid-template-columns:1fr}
  .sticky{position:static}
}
@media (max-width:860px){
  .sidebar{transform:translateX(-100%)}
  body.sidebar-open .sidebar{transform:none;box-shadow:0 0 40px rgba(0,0,0,.3)}
  body.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:35}
  .main{margin-left:0}
  .only-mobile{display:inline-flex}
  .hide-mobile{display:none}
  .topbar{padding:0 12px}
  .content{padding:16px}
  .grid-2-eq{grid-template-columns:1fr}
  .form-grid .span-2{grid-column:auto}
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:12px;gap:10px;flex-direction:column;align-items:flex-start}
  .stat-ico{width:36px;height:36px}
  .stat-value{font-size:17px}
  .invoice{padding:18px}
  .inv-head{flex-direction:column}
  .inv-title{text-align:left}
  .dl{grid-template-columns:110px 1fr}
  /* Tables become cards on phones */
  table.table.responsive thead{display:none}
  table.table.responsive,table.table.responsive tbody,table.table.responsive tr,table.table.responsive td{display:block;width:100%}
  table.table.responsive tr{border-bottom:1px solid var(--border);padding:10px 14px}
  table.table.responsive td{border:0;padding:3px 0;display:flex;justify-content:space-between;gap:12px;text-align:right}
  table.table.responsive td::before{content:attr(data-label);color:var(--muted);font-size:12.5px;text-align:left;font-weight:500}
  table.table.responsive td.num{text-align:right}
  table.table.responsive td .row-actions{justify-content:flex-end}
  table.table.responsive tfoot{display:block}
  .items-table .w-qty,.items-table .w-price,.items-table .w-total{width:auto}
}
@media (max-width:420px){
  .stat-ico{display:none}
  .content{padding:12px}
}

/* ---------- Online shop ---------- */
body.shop{background:#f7f8fb}
.shop-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.shop-notice{background:var(--primary);color:#fff;text-align:center;padding:7px 12px;font-size:13.5px}
.shop-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:30}
.shop-header-in{display:flex;align-items:center;gap:16px;height:66px}
.shop-brand{color:var(--text)!important;padding:0;border:0}
.shop-search{flex:1;max-width:520px}
.shop-nav{display:flex;align-items:center;gap:14px;margin-left:auto}
.shop-nav>a{display:flex;align-items:center;gap:6px;color:var(--text);font-weight:500;text-decoration:none;position:relative}
.cart-link em{position:absolute;top:-8px;left:12px;background:var(--red);color:#fff;font-style:normal;font-size:11px;border-radius:10px;padding:0 6px;line-height:17px}
.shop-main{padding-top:20px;padding-bottom:40px;min-height:60vh}
.hero{background:linear-gradient(120deg,#0b1a4a,#1e40af 60%,#f26b1d);color:#fff;border-radius:18px;padding:34px 30px;margin-bottom:20px}
.hero h1{font-size:28px;margin-bottom:6px}.hero p{opacity:.92;margin:0 0 14px}
.hero-badges{display:flex;gap:16px;flex-wrap:wrap;font-size:14px}.hero-badges span{display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.15);padding:6px 12px;border-radius:20px}
.shop-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:16px}
.shop-cats a{padding:7px 14px;border-radius:20px;background:#fff;border:1px solid var(--border);color:var(--text-2);white-space:nowrap;text-decoration:none;font-weight:500}
.shop-cats a.on{background:var(--primary);color:#fff;border-color:var(--primary)}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.pcard{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden;color:inherit;text-decoration:none!important;transition:transform .15s,box-shadow .15s;display:flex;flex-direction:column}
.pcard:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.08)}
.pcard-img{aspect-ratio:1/1;background:#f1f5f9;display:grid;place-items:center;color:#cbd5e1;position:relative}
.pcard-img img{width:100%;height:100%;object-fit:cover}
.pcard-tag{position:absolute;top:10px;left:10px;font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:6px;background:#fff}
.pcard-tag.out{background:var(--red);color:#fff}
.pcard-body{padding:12px 14px 14px}
.pcard-cat{font-size:12px;color:var(--muted)}
.pcard-name{font-weight:600;line-height:1.35;margin:2px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-price{font-weight:700;color:var(--primary);font-size:16px}
.crumbs{margin-bottom:12px}
.pdetail-in{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.pdetail-img{background:#f1f5f9;border-radius:14px;aspect-ratio:1/1;display:grid;place-items:center;color:#cbd5e1;overflow:hidden}
.pdetail-img img{width:100%;height:100%;object-fit:contain}
.pdetail-price{font-size:28px;font-weight:800;color:var(--primary);margin:8px 0}
.track-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.track-step{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;font-size:13px;color:var(--muted);position:relative}
.track-step .dot{width:28px;height:28px;border-radius:50%;background:#e2e8f0;display:grid;place-items:center;color:#fff}
.track-step.ok{color:var(--text)}.track-step.ok .dot{background:var(--green)}
.shop-footer{background:#0f172a;color:#cbd5e1;padding:28px 0}
.shop-footer .shop-wrap:first-child{display:flex;gap:24px;justify-content:space-between;flex-wrap:wrap}
.shop-footer a{color:#e2e8f0}
@media (max-width:760px){
  .shop-header-in{flex-wrap:wrap;height:auto;padding:10px 16px;gap:10px}
  .shop-search{order:3;flex-basis:100%;max-width:none}
  .pgrid{grid-template-columns:1fr 1fr;gap:10px}
  .pdetail-in{grid-template-columns:1fr}
  .hero{padding:24px 18px}.hero h1{font-size:22px}
}

/* ---------- Brand / logo ---------- */
.btn-accent{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-600)}
.brand-img-wrap{display:flex;align-items:center}
.brand-img-wrap.dark{background:#fff;border-radius:10px;padding:6px 10px;width:100%;justify-content:center}
.brand-img{max-height:56px;max-width:200px;width:auto;object-fit:contain;display:block}
.shop-brand .brand-img{max-height:46px;max-width:210px}
.auth-brand .brand-img{max-height:64px;max-width:260px}
.auth-brand{justify-content:center}
.inv-logo{max-height:60px;max-width:220px;margin-bottom:6px;display:block}
.logo-preview{width:220px;height:110px;border:1px dashed var(--border-strong);border-radius:12px;display:grid;place-items:center;background:#fff;padding:8px}
.logo-preview img{max-width:100%;max-height:100%;object-fit:contain}
.pcard-price{color:var(--accent)}
.pdetail-price{color:var(--accent)}
.pcard-tag.ws{background:var(--primary);color:#fff}
.acc-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.acc-type{cursor:pointer;display:block;margin:0!important}
.acc-type input{position:absolute;opacity:0;width:1px;height:1px}
.acc-type span{display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:2px solid var(--border);border-radius:12px;padding:14px;height:100%;color:var(--text)}
.acc-type span small{color:var(--muted);font-weight:400}
.acc-type span .ico{color:var(--primary)}
.acc-type input:checked + span{border-color:var(--accent);background:var(--accent-50)}
.acc-type input:checked + span .ico{color:var(--accent)}
@media (max-width:480px){.acc-types{grid-template-columns:1fr}}

/* Bangla text must not use letter-spacing (it breaks joined letters, especially in PDFs) */
html[lang=bn] .table th, html[lang=bn] .inv-title, html[lang=bn] .paid-stamp, html[lang=bn] .nav-title{letter-spacing:0;text-transform:none}
html[lang=bn] body{font-family:'Hind Siliguri','Inter',system-ui,sans-serif}

/* Period tabs inside page header: no scroll arrows */
.page-head .tabs{overflow:visible;flex-wrap:wrap;border:0}
.brand-img-wrap.dark{padding:8px 10px}
.brand-img-wrap.dark .brand-img{max-height:60px;max-width:100%}

/* =================== Shop v2 design =================== */
body.shop{background:#f4f6fb}
.shop-topbar{background:#0b1a4a;color:#c9d3f5;font-size:13px}
.shop-topbar-in{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:36px}
.topbar-links{display:flex;gap:16px;align-items:center;margin-left:auto}
.topbar-links a{color:#e6ebff;text-decoration:none}
.lang-mini{display:flex;gap:6px;color:#6d7bb3}.lang-mini a{color:#c9d3f5}.lang-mini a.on{color:#fff;font-weight:700}
.shop-header{background:#fff;box-shadow:0 2px 12px rgba(11,26,74,.06);border-bottom:0}
.shop-header-in{height:78px;gap:22px}
.shop-brand .brand-img{max-height:58px;max-width:230px}
.shop-search{display:flex;gap:0;max-width:600px}
.shop-search .input-icon{flex:1}
.shop-search input{border-radius:10px 0 0 10px;border-right:0;height:46px;background:#f7f8fc}
.shop-search .btn{border-radius:0 10px 10px 0;height:46px;padding:0 20px}
.nav-ico{flex-direction:column;gap:2px!important;font-size:12px;color:var(--text-2)!important}
.nav-ico .ico{color:var(--primary)}
.cart-link em{left:auto;right:-6px;top:-6px;background:var(--accent)}
.shop-catbar{border-top:1px solid var(--border);background:#fff}
.shop-catbar-in{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.shop-catbar-in::-webkit-scrollbar{display:none}
.shop-catbar-in a{padding:11px 14px;color:var(--text-2);font-weight:600;white-space:nowrap;text-decoration:none;border-bottom:3px solid transparent;display:flex;align-items:center;gap:6px}
.shop-catbar-in a:hover{color:var(--primary)}
.shop-catbar-in a.on{color:var(--primary);border-color:var(--accent)}
.shop-main{padding-top:22px}
/* Hero */
.hero2{position:relative;overflow:hidden;border-radius:22px;padding:52px 48px;margin-bottom:18px;color:#fff;
  background:radial-gradient(600px 300px at 85% 20%,rgba(242,107,29,.55),transparent 60%),linear-gradient(115deg,#0b1a4a 0%,#1e40af 70%);background-size:cover;background-position:center;min-height:300px;display:flex;align-items:center}
.hero2-text{max-width:600px;position:relative;z-index:2}
/* Banner photo: dark shade only behind the text (left); products on the right keep their real colours */
.hero2.has-img{background-image:linear-gradient(90deg,rgba(11,26,74,.66) 0%,rgba(11,26,74,.52) 25%,rgba(11,26,74,.3) 42%,rgba(11,26,74,.12) 56%,rgba(11,26,74,0) 68%),var(--hero-img);background-size:cover;background-position:center,right center}
.hero2.has-img .hero2-text{text-shadow:0 1px 3px rgba(11,26,74,.45),0 2px 14px rgba(11,26,74,.35)}
.hero2-kicker{display:inline-block;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);padding:5px 12px;border-radius:30px;font-size:13px;margin-bottom:14px}
.hero2 h1{font-size:40px;line-height:1.15;margin:0 0 12px;font-weight:800}
.hero2 p{font-size:16.5px;opacity:.92;margin:0 0 22px}
.hero2-cta{display:flex;gap:10px;flex-wrap:wrap}
.hero2-ghost{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.4)}
.hero2-ghost:hover{background:rgba(255,255,255,.2)}
.hero2-art{position:absolute;right:6%;top:0;bottom:0;width:36%;z-index:1}
.bubble{position:absolute;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(4px)}
.bubble.b1{width:150px;height:150px;top:20%;right:20%;background:rgba(242,107,29,.85);border:0;box-shadow:0 20px 50px rgba(242,107,29,.4)}
.bubble.b2{width:96px;height:96px;top:58%;right:52%}
.bubble.b3{width:80px;height:80px;top:12%;right:62%}
/* Trust */
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:28px}
.trust>div{background:#fff;border-radius:14px;padding:14px 16px;display:grid;grid-template-columns:auto 1fr;gap:0 12px;align-items:center;border:1px solid var(--border)}
.trust span{grid-row:span 2;width:44px;height:44px;border-radius:12px;background:var(--accent-50);color:var(--accent);display:grid;place-items:center}
.trust b{font-size:14.5px}.trust small{color:var(--muted)}
/* Sections */
.sec{margin-bottom:34px}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.sec-head h2{font-size:22px;margin:0}
.sec-head select{width:auto}
.catgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.catcard{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px 12px;text-align:center;color:inherit;text-decoration:none!important;display:flex;flex-direction:column;align-items:center;gap:4px;transition:.15s}
.catcard:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 10px 24px rgba(11,26,74,.08)}
.catcard-img{width:74px;height:74px;border-radius:50%;background:var(--primary-50);color:var(--primary);display:grid;place-items:center;overflow:hidden;margin-bottom:6px}
.catcard-img img{width:100%;height:100%;object-fit:cover}
.catcard small{color:var(--muted)}
/* Product cards */
.pgrid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.pcard{border-radius:16px;position:relative}
.pcard-img{display:grid;text-decoration:none}
.pcard-img img{transition:transform .3s}
.pcard:hover .pcard-img img{transform:scale(1.05)}
.pcard-tag.ws{background:var(--accent)}
.pcard-name{color:var(--text);text-decoration:none!important;min-height:2.7em}
.pcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.pcard-price{font-size:17px}
.pcard-add{display:flex;align-items:center;gap:5px;background:var(--primary);color:#fff;border:0;border-radius:10px;padding:8px 11px;cursor:pointer;font:inherit;font-weight:600;font-size:13px}
.pcard-add:hover{background:var(--accent)}
/* Wholesale banner */
.ws-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;background:linear-gradient(110deg,#fff4ec,#ffe2cc);border:1px solid #ffd2b0;border-radius:20px;padding:26px 30px;margin-bottom:34px}
.ws-banner h2{margin:0 0 4px;color:#0b1a4a;display:flex;gap:10px;align-items:center}
.ws-banner p{margin:0;color:#7a3e12}
/* Product page */
.btn-wa{background:#25d366;border-color:#25d366;color:#fff}
.btn-wa:hover{background:#1ebe5b}
.pinfo{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;font-size:14px}
.pinfo>div{display:flex;gap:10px;align-items:center}.pinfo .ico{color:var(--accent)}
/* Footer */
.shop-footer{background:#0b1a4a;color:#b8c3ea;padding:40px 0 18px;margin-top:20px}
.shop-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:28px}
.shop-footer h4{color:#fff;margin:0 0 12px;font-size:15px}
.shop-footer-grid a{display:block;color:#d5dcf7;margin-bottom:7px;text-decoration:none}
.shop-footer-grid a:hover{color:#fff}
.footer-logo .brand-img-wrap{background:#fff;border-radius:12px;padding:8px 12px;display:inline-flex;margin-bottom:10px}
.footer-logo .brand-logo+span{color:#fff;font-weight:700}
.footer-bottom{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);margin-top:26px;padding-top:16px;font-size:13px}
.pay-badges{display:flex;gap:8px}.pay-badges b{background:#fff;color:#0b1a4a;border-radius:6px;padding:2px 9px;font-size:12px}
.pay-badges .bk{color:#e2136e}.pay-badges .ng{color:#f6921e}
/* Floating WhatsApp + bottom nav */
.wa-float{position:fixed;right:18px;bottom:22px;width:56px;height:56px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 10px 26px rgba(37,211,102,.45);z-index:40}
.bottom-nav{display:none}
@media (max-width:900px){
  .trust{grid-template-columns:1fr 1fr}
  .shop-footer-grid{grid-template-columns:1fr 1fr}
  .hero2{padding:34px 24px;min-height:0}.hero2 h1{font-size:28px}.hero2-art{display:none}
}
@media (max-width:760px){
  .shop-topbar .hide-mobile{display:none}
  .shop-header-in{height:auto;padding:10px 16px}
  .shop-brand .brand-img{max-height:44px;max-width:170px}
  .shop-search{order:3;flex-basis:100%}
  .shop-nav{display:none}
  .pgrid{grid-template-columns:1fr 1fr;gap:10px}
  .pcard-body{padding:10px}
  .pcard-foot{flex-direction:column;align-items:stretch}
  .pcard-add{justify-content:center}
  .catgrid{grid-template-columns:repeat(3,1fr);gap:8px}
  .catcard{padding:12px 6px}.catcard-img{width:56px;height:56px}
  .trust>div{padding:10px}.trust span{width:36px;height:36px}
  .sec-head h2{font-size:18px}
  .ws-banner{padding:20px}
  body.shop{padding-bottom:68px}
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--border);z-index:45;box-shadow:0 -4px 16px rgba(11,26,74,.08)}
  .bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 7px;font-size:11.5px;color:var(--muted);text-decoration:none;position:relative}
  .bottom-nav a.on{color:var(--accent)}
  .bottom-nav em{position:absolute;top:3px;left:55%;background:var(--accent);color:#fff;font-style:normal;font-size:10.5px;border-radius:9px;padding:0 5px;line-height:16px}
  .wa-float{bottom:80px;width:50px;height:50px}
  .shop-footer-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .hero2{padding:22px 18px;border-radius:16px;margin-bottom:12px}
  .hero2.has-img{background-image:linear-gradient(90deg,rgba(11,26,74,.74) 0%,rgba(11,26,74,.62) 55%,rgba(11,26,74,.34) 100%),var(--hero-img);background-position:center,72% center}
  .hero2-kicker{font-size:11px;padding:3px 10px;margin-bottom:8px}
  .hero2 h1{font-size:22px;margin-bottom:6px}
  .hero2 p{font-size:13.5px;margin-bottom:14px}
  .hero2-cta .btn{padding:9px 14px;font-size:14px}
  .shop-topbar-in{justify-content:center}.topbar-links{margin:0;gap:12px;font-size:12px}
  .shop-header-in{padding:8px 16px;gap:10px}
}
@media (max-width:760px){.trust{gap:8px;margin-bottom:20px}.trust>div{gap:0 8px}.trust b{font-size:12.5px;line-height:1.3}.trust small{font-size:11px;line-height:1.3}}
/* Banner image shown as-is (own text inside the picture) */
.hero-img{border-radius:22px;overflow:hidden;margin-bottom:12px;box-shadow:0 10px 30px rgba(11,26,74,.12);background:#fff}
.hero-img img{display:block;width:100%;height:auto}
.hero-img-cta{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:18px}
@media (max-width:760px){.hero-img{border-radius:14px}}
/* Square photo boxes that work in every browser (no aspect-ratio needed) */
.pcard-img{position:relative;display:block;height:0;padding-bottom:100%;aspect-ratio:auto;overflow:hidden}
.pcard-img img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.pcard-img>.ico{position:absolute;top:50%;left:50%;margin:-21px 0 0 -21px}
.pdetail-img{position:relative;display:block;height:0;padding-bottom:100%;aspect-ratio:auto}
.pdetail-img img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain}
.pdetail-img>.ico{position:absolute;top:50%;left:50%;margin:-40px 0 0 -40px}
/* Install-app bar & page */
.install-bar{position:fixed;left:12px;right:12px;bottom:16px;z-index:60;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 12px 36px rgba(11,26,74,.2);display:flex;align-items:center;gap:10px;padding:10px 12px;max-width:520px;margin:0 auto}
.install-bar img{width:44px;height:44px;border-radius:11px;flex-shrink:0}
.install-bar .ib-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.install-bar small{color:var(--muted);font-size:12px}
.install-bar .ib-x{background:none;border:0;font-size:22px;color:var(--muted);cursor:pointer;padding:0 4px}
@media (max-width:760px){.install-bar{bottom:76px}}
.app-page-icon{width:96px;height:96px;border-radius:24px;box-shadow:0 10px 30px rgba(11,26,74,.15);margin-bottom:12px}
.app-steps{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid var(--border)}
.app-step{background:var(--surface-2);border-radius:12px;padding:14px 16px}
.app-step ol{margin:6px 0 0;padding-left:20px}.app-step li{margin-bottom:6px}
@media (max-width:760px){.app-steps{grid-template-columns:1fr}}
.is-app .shop-topbar{display:none}
/* App install guide */
.app-block h2{font-size:19px;margin-bottom:12px}
.big-steps{display:flex;flex-direction:column;gap:12px}
.big-steps>div{display:flex;gap:12px;align-items:flex-start;font-size:15.5px;line-height:1.5}
.big-steps b:first-child{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:15px}
.big-steps .share-ico,.big-steps svg{vertical-align:-5px}
.copy-row{display:flex;gap:8px}.copy-row input{flex:1;min-width:0}
.ios-arrow{margin-top:16px;text-align:center;color:var(--accent);font-weight:700;animation:nbBounce 1.2s infinite}
@keyframes nbBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
.in-android-app .install-bar,.in-android-app .shop-footer a[href*="r=app"]{display:none!important}
/* Footer app download badges */
.app-dl{margin-top:16px}
.app-dl-title{color:#fff;font-weight:700;margin-bottom:8px}
.app-dl-btns{display:flex;gap:8px;flex-wrap:wrap}
.shop-footer-grid .store-btn{display:flex;align-items:center;gap:8px;background:#000;border:1px solid #3a4677;border-radius:10px;padding:7px 14px;color:#fff;text-decoration:none;margin:0;min-width:140px}
.store-btn:hover{border-color:var(--accent)}
.store-btn span{display:flex;flex-direction:column;line-height:1.15}
.store-btn small{font-size:10.5px;color:#c9d3f5}.store-btn b{font-size:15px;color:#fff}
.in-android-app .app-dl{display:none}
/* Inside the installed app: show "share the app" instead of "download the app" */
.app-share{display:none;margin-top:16px}
.is-app .app-dl{display:none}
.is-app .app-share{display:block}
.store-btn.wa{background:#25d366;border-color:#25d366}
button.store-btn{font:inherit;cursor:pointer}
/* Already installed: no "install app" link in the footer */
.is-app .shop-footer a[href*="r=app"]{display:none!important}
/* Product variants in shop */
.vsel-label{font-size:14px;margin-bottom:8px;color:var(--text-2)}
.vsel-btns{display:flex;flex-wrap:wrap;gap:8px}
.vbtn{border:2px solid var(--border-strong);background:#fff;border-radius:10px;padding:8px 14px;font:inherit;font-weight:600;cursor:pointer;color:var(--text)}
.vbtn:hover{border-color:var(--primary)}
.vbtn.on{border-color:var(--accent);background:var(--accent-50);color:var(--accent-600)}
.vbtn.off{opacity:.5;text-decoration:line-through}
.pcard-tag.var{background:var(--primary);color:#fff;left:auto;right:10px;display:flex;align-items:center;gap:3px}
.from-txt{font-size:12px;color:var(--muted);font-weight:500}
a.pcard-add{text-decoration:none!important}
.vtable input{margin:0;padding:7px 9px;min-width:80px}
.vtable td{padding:6px 6px}
.vtable td:first-child input{min-width:130px}
.min-warn{color:var(--red);font-weight:600;font-size:12.5px;margin-top:2px}

/* ---- Product photo gallery ---- */
.gal-edit{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.gal-item{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;cursor:pointer}
.gal-item img{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0;background:#f8fafc}
.gal-mini{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;max-width:180px}
.gal-mini img{width:54px;height:54px;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0}
.pthumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.pthumb{flex:0 0 auto;width:64px;height:64px;padding:0;border:2px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden;cursor:pointer}
.pthumb img{width:100%;height:100%;object-fit:cover;display:block}
.pthumb.on{border-color:#f97316}
hr.sep{border:0;border-top:1px solid #e2e8f0;margin:14px 0}

/* ---- Discount / offer ---- */
.pcard-tag.sale{background:var(--accent);color:#fff;font-weight:700}
.pcard-old{color:#94a3b8;font-weight:400;font-size:.85em}
.pcard-new{color:var(--accent)}
.pdetail-old{color:#94a3b8;font-size:.7em;font-weight:400}
#pprice.pnew{color:var(--accent)}
.off-badge{display:inline-block;background:var(--accent);color:#fff;font-size:13px;font-weight:700;padding:3px 9px;border-radius:999px;vertical-align:middle;margin-left:6px}
.disc-box{border:1px dashed #fdba8c;background:var(--accent-50);border-radius:12px;padding:12px}
.disc-title{font-weight:700;color:var(--accent-600);display:flex;align-items:center;gap:6px}
.disc-row{display:flex;gap:6px}.disc-row input{flex:1;min-width:0}.disc-row select{width:70px}

/* ---- Free delivery ---- */
.fd-pill{display:inline-flex;align-items:center;gap:4px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;margin-top:4px;width:max-content}
.fd-pill.fd-big{font-size:14px;padding:5px 12px}
.fd-note{display:flex;align-items:center;gap:6px;background:#ecfdf5;color:#047857;border-radius:10px;padding:8px 10px;font-weight:600;font-size:14px}
.fd-check{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fd-goal{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:8px 10px;color:#9a3412}
.fd-goal .small{display:flex;align-items:center;gap:6px;font-weight:600}
.fd-bar{height:6px;background:#fde3c8;border-radius:99px;margin-top:6px;overflow:hidden}.fd-bar span{display:block;height:100%;background:#f97316;border-radius:99px}
.pdetail-in>div{min-width:0}.pthumbs{max-width:100%}

/* ---- Shop sidebar filters ---- */
.shop-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}
.shop-main{min-width:0}
.shop-side{position:sticky;top:12px}
.fbox>summary{display:none}
.fgroup{background:#fff;border:1px solid #e8edf5;border-radius:14px;padding:14px;margin-bottom:12px}
.fgroup h4{margin:0 0 10px;font-size:15px;padding-bottom:8px;border-bottom:1px solid #eef2f7}
.flink{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;color:#334155;text-decoration:none;font-size:14px}
.flink span{display:flex;align-items:center;gap:6px;min-width:0}
.flink em{font-style:normal;font-size:12px;background:#f1f5f9;color:#64748b;border-radius:999px;padding:1px 8px;min-width:26px;text-align:center}
.flink:hover{background:#f8fafc}
.flink.on{color:var(--accent);font-weight:700;background:var(--accent-50)}.flink.on em{background:var(--accent);color:#fff}
.fprice-row{display:flex;align-items:center;gap:6px;margin-bottom:8px}.fprice-row input{width:100%;min-width:0}
.franges{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.franges a{font-size:12.5px;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;color:#334155;text-decoration:none;background:#fff}
.franges a.on,.franges a:hover{border-color:var(--accent);color:var(--accent)}
.fchips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.fchip{background:var(--accent);color:#fff;border-radius:999px;padding:3px 10px;font-size:12.5px;text-decoration:none}
.fchip b{margin-left:3px}
.shop-catbar-in a.chip-offer{color:var(--accent);font-weight:700}
.shop-catbar-in a.chip-fd{color:#047857;font-weight:700}
@media (max-width:899px){
  .shop-layout{grid-template-columns:1fr;gap:10px}
  .shop-side{position:static}
  .fbox>summary{display:flex;justify-content:center;align-items:center;gap:6px;list-style:none;cursor:pointer;margin-bottom:10px}
  .fbox>summary::-webkit-details-marker{display:none}
  .fbox[open]>summary{background:#0b1a4a;color:#fff}
}

/* ---- Social media ---- */
.socials{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 4px}
.soc{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .15s}
.soc:hover{transform:translateY(-2px) scale(1.06)}
.soc svg{width:20px;height:20px}
.soc-youtube svg{width:22px;height:22px}
.socials-top{display:inline-flex;gap:6px;vertical-align:middle;margin-right:8px}
.socials-top .soc{width:24px;height:24px;box-shadow:none}.socials-top .soc svg{width:14px;height:14px}
.shop-footer .socials a.soc,.shop-topbar a.soc{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;line-height:0}

/* ---- Blog (website) ---- */
.blog-hero{background:linear-gradient(120deg,#0b1a4a,#1e3a8a);color:#fff;border-radius:18px;padding:28px 24px;margin:6px 0 20px}
.blog-hero h1{margin:0 0 6px;display:flex;align-items:center;gap:10px;color:#fff}.blog-hero p{margin:0;opacity:.85}
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.blog-card{background:#fff;border:1px solid #e8edf5;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.blog-card:hover{box-shadow:0 10px 26px rgba(15,23,42,.08);transform:translateY(-2px)}
.blog-card-img{display:block;aspect-ratio:1200/630;background:#f1f5f9;overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.blog-card-img span{display:flex;height:100%;align-items:center;justify-content:center;color:#cbd5e1}
.blog-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.blog-card-body time{font-size:12px;color:#94a3b8}
.blog-card-body h2{font-size:17px;line-height:1.35;margin:0}.blog-card-body h2 a{color:#0f172a;text-decoration:none}
.blog-card-body p{margin:0;color:#475569;font-size:14px;line-height:1.55}
.blog-more{margin-top:auto;font-weight:600;color:#f97316;text-decoration:none;font-size:14px}
.bpost{max-width:820px;margin:0 auto}
.bpost h1{font-size:clamp(24px,4vw,34px);line-height:1.3;margin:0 0 8px}
.bpost-meta{display:flex;align-items:center;gap:6px;margin-bottom:14px}
.bpost-cover{width:100%;border-radius:14px;margin-bottom:16px;display:block}
.bpost-body{font-size:17px;line-height:1.8;color:#1e293b}
.bpost-body h2{font-size:23px;margin:26px 0 10px}.bpost-body h3{font-size:19px;margin:22px 0 8px}
.bpost-body p{margin:0 0 14px}.bpost-body ul,.bpost-body ol{margin:0 0 14px;padding-left:24px}.bpost-body li{margin-bottom:6px}
.bpost-body blockquote{margin:16px 0;padding:10px 16px;border-left:4px solid #f97316;background:#fff7ed;border-radius:0 10px 10px 0}
.bpost-body a{color:#1d4ed8}
.bp-img{margin:18px 0}.bp-img img{width:100%;border-radius:12px;display:block}
.bp-product{max-width:260px;margin:18px 0}
.bpost-share{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid #eef2f7;margin-top:20px;padding-top:14px}
.bpost-cta{max-width:820px;margin:16px auto 0}.bpost-cta .card-body{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
/* ---- Blog editor (admin) ---- */
.blog-grid-admin{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.bt-bar{display:flex;flex-wrap:wrap;gap:4px;border:1px solid #e2e8f0;border-bottom:0;border-radius:10px 10px 0 0;padding:6px;background:#f8fafc}
.bt-bar button{border:1px solid #e2e8f0;background:#fff;border-radius:6px;padding:4px 9px;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.bt-bar button:hover{border-color:#94a3b8}
.bt-text{border-radius:0 0 10px 10px!important;font-size:15px;line-height:1.6;min-height:360px}
.bt-help{background:#f8fafc;border-radius:8px;padding:8px 10px;margin-top:6px;line-height:1.9}
.bt-cover{width:100%;border-radius:10px;margin-bottom:8px}
.bt-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-bottom:10px}
.bt-imgitem{display:flex;flex-direction:column;gap:4px}.bt-imgitem img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0}
.bt-slug{display:flex;align-items:center;gap:4px}.bt-slug input{flex:1;min-width:0}
.serp{border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;font-family:arial,sans-serif;background:#fff}
.serp-url{font-size:12px;color:#4d5156}.serp-title{color:#1a0dab;font-size:18px;line-height:1.3;margin:2px 0}.serp-desc{color:#4d5156;font-size:13px;line-height:1.5}
.bpost-body .bp-product{max-width:270px;font-size:15px;line-height:1.45}
.bpost-body .bp-product a{color:inherit;text-decoration:none}
.bpost-body .bp-product .pcard-name{color:#0f172a;font-size:15px}
.bpost-body .bp-product .pcard-add{color:#fff}
/* ---- Admin categories tree ---- */
.cat-table .cat-l1 td:first-child{font-weight:700}
.cat-table .cat-l2 .cat-name{padding-left:18px}
.cat-table .cat-l3 .cat-name{padding-left:38px;color:#475569}
.cat-arrow{color:#94a3b8;margin-right:6px}

/* ---- Shop mega menu ---- */
.shop-catbar{position:relative;z-index:40}
.shop-catbar-in{position:relative;align-items:stretch}
.shop-catbar-in .mnav-top,.shop-catbar-in>a{padding:11px 14px;color:var(--text-2);font-weight:600;white-space:nowrap;text-decoration:none;border-bottom:3px solid transparent;display:flex;align-items:center;gap:6px}
.shop-catbar-in .mnav-top:hover{color:var(--primary)}
.shop-catbar-in .mnav-top.on{color:var(--primary);border-color:var(--accent)}
.shop-catbar-in .mnav-top.chip-offer{color:var(--accent);font-weight:700}
.mcaret{font-style:normal;font-size:11px;opacity:.7}
.mnav-item{display:flex}
.mnav-drop{display:none}
.mnav-btn{display:none}
@media (min-width:900px){
  .shop-catbar-in{overflow:visible;flex-wrap:wrap}
  .mnav-item{position:static}
  .mnav-item.mnav-rel{position:relative}
  .mnav-drop{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e8edf5;border-top:0;border-radius:0 0 14px 14px;box-shadow:0 18px 40px rgba(15,23,42,.14);padding:18px 22px 16px;z-index:50}
  .mnav-item:hover>.mnav-drop,.mnav-item:focus-within>.mnav-drop{display:block}
  .mnav-item:hover>.mnav-top{color:var(--primary);border-color:var(--accent)}
  .mnav-small{right:auto;min-width:250px;padding:8px}
  .mnav-small a{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;color:#334155;text-decoration:none;font-weight:500}
  .mnav-small a:hover{background:var(--accent-50);color:var(--accent)}
  .mnav-small a em{margin-left:auto;font-style:normal;font-size:12px;background:#f1f5f9;color:#64748b;border-radius:999px;padding:1px 8px}
  .mnav-note{display:flex;gap:6px;align-items:center;margin-top:6px;padding:8px 10px;border-top:1px dashed #e2e8f0;font-size:12.5px;color:#047857}
  .mega-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px 24px;max-height:60vh;overflow:auto}
  .mega-col{display:flex;flex-direction:column;min-width:0;padding-bottom:8px}
  .mega-col a{color:#475569;text-decoration:none;font-size:14px;padding:4px 0}
  .mega-col a:hover{color:var(--accent)}
  .mega-col a.mega-h{color:#0f172a;font-weight:700;text-transform:uppercase;font-size:13px;letter-spacing:.03em;margin-bottom:2px}
  html[lang=bn] .mega-col a.mega-h{letter-spacing:0;text-transform:none;font-size:14.5px}
  .mega-all{display:inline-block;margin-top:10px;padding-top:10px;border-top:1px solid #eef2f7;width:100%;font-weight:600;color:var(--accent);text-decoration:none;font-size:14px}
}
@media (max-width:899px){
  .mnav-btn{display:flex;align-items:center;gap:6px;flex:0 0 auto;margin:6px 6px 6px 0;padding:6px 12px;border:0;border-radius:999px;background:var(--primary);color:#fff;font-weight:600;font-size:14px;white-space:nowrap;cursor:pointer}
  .mcaret{display:none}
}
/* mobile drawer */
.catdrawer{position:fixed;inset:0;z-index:200}
.catdrawer[hidden]{display:none}
.catdrawer-bg{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.catdrawer-panel{position:absolute;top:0;bottom:0;left:0;width:min(86vw,360px);background:#fff;overflow-y:auto;padding:0 0 30px;box-shadow:8px 0 30px rgba(0,0,0,.2);animation:cdin .18s ease-out}
@keyframes cdin{from{transform:translateX(-100%)}to{transform:none}}
.catdrawer-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#0b1a4a;color:#fff;font-size:17px}
.catdrawer-x{background:none;border:0;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.cd-offers{display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px;border-bottom:1px solid #eef2f7}
.cd-offers a{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;background:var(--accent-50);color:var(--accent);font-weight:600;font-size:13px;text-decoration:none}
.cd-group summary,.cd-single{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid #f1f5f9;font-weight:600;color:#0f172a;cursor:pointer;list-style:none;text-decoration:none}
.cd-group summary::-webkit-details-marker{display:none}
.cd-group summary::after{content:'▸';color:#94a3b8;margin-left:8px}
.cd-group[open] summary::after{content:'▾'}
.cd-group summary em,.cd-single em{margin-left:auto;font-style:normal;font-size:12px;color:#64748b;background:#f1f5f9;border-radius:999px;padding:1px 8px}
.cd-group[open]{background:#f8fafc}
.cd-group a{display:block;text-decoration:none;color:#334155;padding:9px 16px 9px 28px;font-size:15px}
.cd-group a.cd-all{color:var(--accent);font-weight:600}
.cd-group a.cd-sub{font-weight:600;color:#0f172a}
.cd-group a.cd-subsub{padding-left:44px;color:#64748b;font-size:14px}
html.cd-lock,html.cd-lock body{overflow:hidden}
/* category page */
.subcats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.subcats a{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600;color:#334155;text-decoration:none}
.subcats a:hover{border-color:var(--accent);color:var(--accent)}
.subcats em{font-style:normal;font-weight:500;color:#94a3b8;font-size:12px}
.flink.flvl2{padding-left:20px;font-size:13.5px}.flink.flvl3{padding-left:34px;font-size:13px}
.fcaret{font-style:normal;color:#94a3b8;width:12px;display:inline-block}
.mnav-drop a,.catdrawer a{border-bottom:0;white-space:normal}

/* ---- Back to top ---- */
.to-top{position:fixed;right:24px;bottom:92px;width:46px;height:46px;border-radius:50%;border:0;background:var(--primary);color:#fff;display:grid;place-items:center;cursor:pointer;
  box-shadow:0 8px 22px rgba(11,26,74,.35);z-index:41;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .2s,transform .2s,visibility .2s,background .2s}
.to-top.no-wa{bottom:22px}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{background:var(--accent)}
.to-top:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (max-width:760px){
  .to-top{right:22px;bottom:142px;width:42px;height:42px}
  .to-top.no-wa{bottom:80px}
}

/* ---- Badges on the product photo (discount + free delivery) ---- */
.pcard-badges{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;z-index:2;max-width:calc(100% - 20px)}
.pcard-badges .pcard-tag{position:static}
.pcard-tag.fd{background:#059669;color:#fff;font-weight:700;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.pcard-tag.fd svg{flex:0 0 auto}
@media (max-width:760px){.pcard-badges{top:8px;left:8px;gap:4px}.pcard-badges .pcard-tag{font-size:10.5px;padding:2px 6px}}

/* ---- Blog post: recent posts beside the article ---- */
.bpost-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.bpost-main{min-width:0}
.bpost-layout .bpost,.bpost-layout .bpost-cta{max-width:none;margin-left:0;margin-right:0}
@media (min-width:1024px){.bpost-layout{grid-template-columns:minmax(0,1fr) 320px}.bpost-side{position:sticky;top:16px}}
.bside{margin-bottom:16px}
.bside-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:16px;padding-bottom:10px;border-bottom:2px solid var(--accent)}
.bside-list{list-style:none;margin:0;padding:0;counter-reset:bs}
.bside-list li{counter-increment:bs;border-bottom:1px solid #eef2f7}
.bside-list li:last-child{border-bottom:0}
.bside-list a{display:flex;gap:10px;align-items:center;padding:10px 0;text-decoration:none;color:inherit}
.bside-img{position:relative;flex:0 0 68px;height:52px;border-radius:8px;overflow:hidden;background:#f1f5f9;display:grid;place-items:center;color:#cbd5e1}
.bside-img img{width:100%;height:100%;object-fit:cover}
.bside-img::before{content:counter(bs);position:absolute;top:3px;left:3px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;border-radius:5px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;z-index:1}
.bside-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.bside-txt b{font-size:14px;line-height:1.4;color:#0f172a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bside-txt time{font-size:12px;color:#94a3b8}
.bside-list a:hover b{color:var(--accent)}
.bside-all{display:block;margin-top:10px;font-weight:600;color:var(--accent);text-decoration:none;font-size:14px}
.bside-shop .card-body{display:flex;flex-direction:column;gap:6px}
.bside-shop .btn{margin-top:6px}

/* ---- Blog section on the home page ---- */
.sec-head .sec-more{font-weight:600;color:var(--accent);text-decoration:none;white-space:nowrap}
.home-blog .sec-head h2{display:flex;align-items:center;gap:8px}
.blog-card-title{font-size:17px;line-height:1.35;margin:0}.blog-card-title a{color:#0f172a;text-decoration:none}
.blog-card-title a:hover,.blog-card-body h2 a:hover{color:var(--accent)}

/* ---- Home page: blog posts beside categories & products ---- */
.home-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}
.home-main{min-width:0}
@media (min-width:1024px){.home-layout.has-side{grid-template-columns:minmax(0,1fr) 320px}.home-side{position:sticky;top:16px;margin-top:22px}}

/* ---- MRP / selling price ---- */
.mrp-prev{margin-top:8px;font-size:14px;min-height:20px}
.mrp-prev s{color:#94a3b8}.mrp-prev b{color:var(--accent)}
.mrp-badge{display:inline-block;background:var(--accent);color:#fff;font-weight:700;font-size:12px;border-radius:999px;padding:1px 8px;margin-left:4px}
.mrp-bad{color:var(--red);font-weight:600}
details.disc-box>summary{cursor:pointer;list-style:none}
details.disc-box>summary::-webkit-details-marker{display:none}
details.disc-box>summary::after{content:'▸';margin-left:auto;color:var(--accent-600)}
details.disc-box[open]>summary::after{content:'▾'}
details.disc-box[open]>summary{margin-bottom:10px}
.mrp-prev{margin:10px 0 8px;line-height:1.9}.mrp-prev:empty{margin:0;min-height:0}

/* ---- Product: short + full description ---- */
.pshort{font-size:15.5px;line-height:1.7;color:#334155}
.pdesc-jump{display:inline-block;margin-top:8px;color:var(--accent);font-weight:600;text-decoration:none}
.pdesc{margin-top:18px;scroll-margin-top:80px}
.pdesc-title{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--accent);font-size:19px}
.pdesc-body{font-size:16px;line-height:1.8;max-width:900px}

.bpost-body h3.cap-h{font-size:15px;letter-spacing:.04em;color:var(--primary);margin:20px 0 8px}

/* ---- New arrivals: one row of 5 ---- */
.pgrid.prow5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.pgrid.prow5{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .pgrid.prow5>.pcard{scroll-snap-align:start}}
@media (max-width:760px){.pgrid.prow5{grid-auto-columns:46%}}

.slug-box{margin-top:6px}.slug-box>summary{cursor:pointer;list-style:none}.slug-box>summary::-webkit-details-marker{display:none}
.slug-edit{color:var(--accent);font-weight:600;margin-left:6px}

.wpt-list{display:flex;flex-wrap:wrap;gap:6px;max-height:220px;overflow:auto;padding:8px;background:#f8fafc;border-radius:8px}
.wpt-list span{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:2px 8px;font-family:monospace}
.wpt-list em{font-style:normal;color:#94a3b8;margin-left:4px}

.pcard-tag.best{background:#0b1a4a;color:#fff;font-weight:700;white-space:nowrap}
/* Phone: "Shop by category" in one row (4 fit; more scroll sideways) */
@media (max-width:760px){
  .catgrid{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - 24px) / 4);gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  .catgrid.catmore{grid-auto-columns:calc((100% - 32px) / 4.35)} /* more than 4: next card peeks out = swipe hint */
  .catgrid::-webkit-scrollbar{display:none}
  .catgrid .catcard{scroll-snap-align:start;padding:10px 4px;border-radius:14px;gap:2px;min-width:0}
  .catgrid .catcard-img{width:50px;height:50px;margin-bottom:4px}
  .catgrid .catcard b{font-size:12.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .catgrid .catcard small{font-size:11px;line-height:1.2}
}
/* Phone: trust badges (Home delivery, COD, Genuine, bKash) in one row: icon on top, short title */
@media (max-width:760px){
  .trust{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:18px}
  .trust>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:10px 4px;border-radius:12px}
  .trust span{grid-row:auto;width:34px;height:34px;border-radius:10px}
  .trust span svg{width:18px;height:18px}
  .trust b{font-size:11.5px;line-height:1.25}
  .trust small{display:none}
}
