/* ═══════════════════════════════════════════════════════════════════════
   ঘরের বাজার — ডিজাইন সিস্টেম
   হাতে লেখা, কোনো বিল্ড স্টেপ বা CDN নির্ভরতা নেই → সবচেয়ে দ্রুত লোড।
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --brand:        #1a7a4c;
  --brand-dark:   #14603c;
  --brand-light:  #e8f5ee;
  --brand-glow:   rgba(26,122,76,.25);

  --accent:       #f59e0b;
  --accent-dark:  #d97706;

  --danger:       #dc2626;
  --danger-light: #fee2e2;
  --info:         #2563eb;
  --success:      #10b981;
  --warning:      #f59e0b;

  --ink:          #14201a;
  --ink-2:        #47554e;
  --ink-3:        #78857e;
  --line:         #e3e8e5;
  --line-2:       #f0f3f1;
  --bg:           #f6f8f7;
  --card:         #ffffff;

  --r-sm: 8px;  --r: 12px;  --r-lg: 18px;  --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(20,32,26,.05), 0 1px 3px rgba(20,32,26,.06);
  --sh-2: 0 4px 12px rgba(20,32,26,.08);
  --sh-3: 0 12px 32px rgba(20,32,26,.12);
  --wrap: 1240px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── বাটন ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 14.5px; cursor: pointer; background: var(--line-2);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; text-align: center;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: translateY(0); }
.btn:disabled{ opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 6px 18px var(--brand-glow); }
.btn-accent  { background: var(--accent); color: #3d2400; box-shadow: 0 2px 8px rgba(245,158,11,.3); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost   { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-sm      { padding: 7px 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg      { padding: 15px 28px; font-size: 16.5px; border-radius: var(--r-lg); }
.btn-block   { width: 100%; }

/* ── ফর্ম ─────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.textarea { min-height: 96px; resize: vertical; }
.input.err, .textarea.err { border-color: var(--danger); }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.err-msg { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── ব্যাজ / পিল ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6;
}
.badge-green { background: var(--brand-light); color: var(--brand-dark); }
.badge-red   { background: var(--danger-light); color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-blue  { background: #dbeafe; color: #1e40af; }
.badge-gray  { background: var(--line-2); color: var(--ink-2); }

/* ═══ টপ অ্যানাউন্সমেন্ট বার ═══════════════════════════════════════ */
.topbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff; font-size: 13px; font-weight: 500; text-align: center;
  padding: 7px 16px; letter-spacing: .01em;
}

/* ═══ হেডার ═══════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 60; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--sh-1);
}
.header-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  height: var(--header-h); display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 42px; width: auto; }
.logo-txt { font-size: 21px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.logo-sub { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }

/* লাইভ সার্চ */
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; padding: 11px 44px 11px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--bg); transition: all .15s;
}
.search input:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--brand);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  max-height: 420px; overflow-y: auto; z-index: 70; padding: 6px;
}
.suggest[hidden] { display: none; }
.sug-item {
  display: flex; gap: 12px; align-items: center; padding: 9px 10px;
  border-radius: var(--r); cursor: pointer;
}
.sug-item:hover, .sug-item.on { background: var(--brand-light); }
.sug-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-sm); background: var(--line-2); }
.sug-name { font-weight: 600; font-size: 14px; }
.sug-meta { font-size: 12.5px; color: var(--ink-3); }
.sug-price { margin-left: auto; font-weight: 700; color: var(--brand); white-space: nowrap; }
.sug-empty { padding: 18px; text-align: center; color: var(--ink-3); font-size: 14px; }
.sug-all { display: block; text-align: center; padding: 10px; font-weight: 600;
           color: var(--brand); border-top: 1px solid var(--line-2); margin-top: 4px; }

.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-2);
  transition: background .15s;
}
.icon-btn:hover { background: var(--line-2); color: var(--brand); }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px;
  font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
.hdr-user { display: flex; align-items: center; gap: 7px; padding: 8px 14px;
            border-radius: 999px; font-weight: 600; font-size: 14px; }
.hdr-user:hover { background: var(--line-2); }

/* নেভিগেশন */
.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
          display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav-in a { padding: 12px 15px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
            white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-in a:hover, .nav-in a.on { color: var(--brand); border-bottom-color: var(--brand); }

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .header-in { gap: 10px; flex-wrap: wrap; height: auto; padding: 10px 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo-txt { font-size: 18px; }
  .logo img { height: 36px; }
}

/* ═══ হিরো স্লাইডার ═══════════════════════════════════════════════ */
.hero { margin: 18px 0; }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--line-2);
          box-shadow: var(--sh-2); }
.slides { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; aspect-ratio: 1200/420; object-fit: cover; }
.slide-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 34px 28px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent); color: #fff;
}
.slide-cap h2 { font-size: clamp(19px, 3.2vw, 34px); margin-bottom: 6px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.slide-cap p  { font-size: clamp(13px, 1.7vw, 16px); opacity: .92; margin-bottom: 14px; }
.sl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--sh-2); color: var(--ink);
}
.sl-nav:hover { background: #fff; }
.sl-prev { left: 14px; } .sl-next { right: 14px; }
.sl-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
           display: flex; gap: 7px; }
.sl-dot { width: 9px; height: 9px; border-radius: 999px; border: 0; cursor: pointer;
          background: rgba(255,255,255,.55); transition: all .2s; padding: 0; }
.sl-dot.on { background: #fff; width: 26px; }
@media (max-width: 620px) {
  .slide img { aspect-ratio: 16/10; }
  .sl-nav { width: 34px; height: 34px; }
  .slide-cap { padding: 24px 18px 22px; }
}

/* ═══ সেকশন হেড ═══════════════════════════════════════════════════ */
.sec { margin: 38px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(19px, 2.6vw, 26px); margin: 0; }
.sec-head h2 span { color: var(--brand); }
.sec-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sec-more { font-weight: 600; color: var(--brand); font-size: 14px; white-space: nowrap; }

/* ═══ ক্যাটাগরি গ্রিড ══════════════════════════════════════════════ */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 10px; text-align: center; transition: all .18s ease;
}
.cat:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat-img {
  width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--brand-light); display: grid; place-items: center; overflow: hidden;
  font-size: 32px;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.cat-count { font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 980px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) {
  .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat { padding: 12px 6px; }
  .cat-img { width: 60px; height: 60px; font-size: 26px; }
  .cat-name { font-size: 12.5px; }
}

/* ═══ প্রোডাক্ট কার্ড ══════════════════════════════════════════════ */
/* ⭐ Update 2 — ডায়নামিক গ্রিড: ডেস্কটপ ৫ · মাঝারি ৪ · ট্যাবলেট ৩ · মোবাইল ২ */
.prods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1280px) { .prods { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .prods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .prods { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.prod {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease;
}
.prod:hover { box-shadow: var(--sh-3); transform: translateY(-4px); border-color: #d6ded9; }
.prod-img { position: relative; display: block; background: var(--line-2); overflow: hidden; }
.prod-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .35s ease; }
.prod:hover .prod-img img { transform: scale(1.06); }
.prod-off {
  position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
}
.prod-oos {
  position: absolute; inset: 0; background: rgba(255,255,255,.75); display: grid;
  place-items: center; font-weight: 700; color: var(--danger); font-size: 14px;
  backdrop-filter: blur(1px);
}
.prod-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: 11.5px; color: var(--brand); font-weight: 600; margin-bottom: 3px; }
.prod-name {
  font-size: 14.5px; font-weight: 600; line-height: 1.45; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.prod-name:hover { color: var(--brand); }
.prod-wt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.prod-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.price-now { font-size: 18px; font-weight: 800; color: var(--brand-dark); }
.price-old { font-size: 13.5px; color: var(--ink-3); text-decoration: line-through; }
.prod-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
@media (max-width: 420px) { .prod-acts { grid-template-columns: 1fr; } }

/* ═══ ট্রাস্ট ব্যাজ ═════════════════════════════════════════════════ */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0; }
.trust-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 16px; display: flex; align-items: center; gap: 14px;
}
.trust-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-light);
            display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.trust-t { font-weight: 700; font-size: 14.5px; }
.trust-d { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } .trust-item { padding: 14px; } }

/* ═══ কার্ট ড্রয়ার ═════════════════════════════════════════════════ */
.drawer-bg {
  position: fixed; inset: 0; background: rgba(15,25,20,.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px);
}
.drawer-bg.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; z-index: 91; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.16);
}
.drawer.on { transform: translateX(0); }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--line);
               display: flex; align-items: center; gap: 12px; }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-close { margin-left: auto; width: 36px; height: 36px; border: 0; background: var(--line-2);
                border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 14px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px; background: var(--bg); }

.citem { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.citem:last-child { border-bottom: 0; }
.citem img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--r);
             background: var(--line-2); flex-shrink: 0; }
.citem-b { flex: 1; min-width: 0; }
.citem-n { font-size: 14px; font-weight: 600; line-height: 1.4;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citem-w { font-size: 12px; color: var(--ink-3); }
.citem-p { font-weight: 700; color: var(--brand-dark); font-size: 14.5px; margin-top: 3px; }
.citem-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 17px;
           padding: 2px 6px; align-self: flex-start; border-radius: 6px; }
.citem-x:hover { color: var(--danger); background: var(--danger-light); }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line);
       border-radius: 999px; overflow: hidden; margin-top: 7px; }
.qty button { width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer;
              font-size: 16px; line-height: 1; color: var(--brand); font-weight: 700; }
.qty button:hover { background: var(--brand-light); }
.qty button:disabled { color: var(--ink-3); cursor: not-allowed; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }

.row-sum { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14.5px; }
.row-sum.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 11px;
                 font-size: 17px; font-weight: 800; color: var(--brand-dark); }
.row-sum .muted { color: var(--ink-3); }
.row-sum .off { color: var(--danger); font-weight: 600; }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty-ic { font-size: 46px; margin-bottom: 10px; }

/* ═══ প্রোডাক্ট পেজ ════════════════════════════════════════════════ */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin: 24px 0; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 22px; } }
.gal-main { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.gal-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gal-thumbs { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.gal-thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--r);
                  border: 2px solid var(--line); cursor: pointer; }
.gal-thumbs img.on { border-color: var(--brand); }
.pdp-title { font-size: clamp(20px, 3vw, 29px); margin-bottom: 8px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.pdp-price .price-now { font-size: 30px; }
.pdp-price .price-old { font-size: 17px; }
.pdp-acts { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.pdp-acts .btn { flex: 1; min-width: 150px; }
.pdp-meta { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px;
            font-size: 14px; color: var(--ink-2); }
.pdp-meta div { padding: 4px 0; }
.pdp-desc { line-height: 1.85; }
.pdp-desc h3 { margin-top: 1.4em; }

/* ═══ চেকআউট ══════════════════════════════════════════════════════ */
.checkout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; margin: 22px 0 40px; align-items: start; }
@media (max-width: 940px) { .checkout { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--sh-1);
}
.card + .card { margin-top: 18px; }
.card-t { font-size: 17px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.card-t .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff;
             display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 14px); }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); transition: all .15s; background: #fff;
}
.radio-card:hover { border-color: var(--brand); background: #fbfdfc; }
.radio-card input { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.radio-card.on { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px var(--brand-glow); }
.rc-ic { font-size: 22px; }
.rc-t { font-weight: 600; font-size: 14.5px; }
.rc-d { font-size: 12.5px; color: var(--ink-3); }
.rc-p { margin-left: auto; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }

.sum-item { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.sum-item img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); background: var(--line-2); }
.sum-item .n { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.sum-item .q { font-size: 12px; color: var(--ink-3); }
.sum-item .p { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }

.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row .input { flex: 1; }

/* ═══ অ্যালার্ট ════════════════════════════════════════════════════ */
.alert { padding: 13px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 14px;
         border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ═══ টোস্ট ════════════════════════════════════════════════════════ */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
          z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
          pointer-events: none; width: calc(100% - 32px); max-width: 400px; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--sh-3);
  animation: toastIn .28s cubic-bezier(.4,0,.2,1);
}
.toast.ok  { background: var(--brand); }
.toast.bad { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ═══ ফুটার ════════════════════════════════════════════════════════ */
.footer { background: #12271e; color: #cfe0d7; margin-top: 50px; padding: 42px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { color: #cfe0d7; font-size: 14px; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.foot-about { font-size: 13.5px; line-height: 1.8; opacity: .85; }
.foot-bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding: 16px 0;
            text-align: center; font-size: 13px; opacity: .75; }

/* ═══ মোবাইল বটম বার ══════════════════════════════════════════════ */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 55;
  border-top: 1px solid var(--line); display: none; padding: 6px 4px env(safe-area-inset-bottom);
  box-shadow: 0 -2px 14px rgba(0,0,0,.06);
}
.mobile-bar a { flex: 1; text-align: center; padding: 6px 2px; font-size: 10.5px;
                color: var(--ink-3); font-weight: 600; position: relative; }
.mobile-bar a.on { color: var(--brand); }
.mobile-bar .mb-ic { font-size: 19px; display: block; line-height: 1.3; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 62px; }
}

/* ═══ পেজিনেশন ════════════════════════════════════════════════════ */
.pager { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: var(--r-sm); display: grid; place-items: center; font-size: 14px;
  font-weight: 600; background: #fff;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ═══ টেবিল ════════════════════════════════════════════════════════ */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.tbl th {
  text-align: left; padding: 12px 14px; background: var(--bg); font-weight: 700;
  font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fbfdfc; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--brand); font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }

/* ═══ প্রিন্ট ══════════════════════════════════════════════════════ */
@media print {
  .header, .nav, .topbar, .footer, .mobile-bar, .no-print, .drawer, .drawer-bg { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12px; }
  .card { border: 1px solid #ccc; box-shadow: none; page-break-inside: avoid; }
  .wrap { max-width: none; padding: 0; }
}

/* ═══ ⭐ Update 1 + 2 — মোবাইল হেডার/রেসপন্সিভ সংশোধন ═══════════════ */
/* Update 1: মোবাইলে (≤768px) হেডারের "লগইন" বাটন হাইড — নিচের বটম বার-এ
   ইতোমধ্যে লগইন আছে বলে দুটি লগইন বাটন দেখানো এড়ানো হয়। ডেস্কটপে অপরিবর্তিত। */
@media (max-width: 768px) {
  .hdr-user.guest { display: none !important; }
}

/* Update 2: কোনো স্ক্রিনেই যেন মিডিয়া ওভারফ্লো করে লেআউট না ভাঙে।
   (⚠️ html/body-তে overflow-x:hidden দেওয়া হয়নি — তাতে হেডারের
    position:sticky ভেঙে যেতে পারে।) */
img, video, svg { max-width: 100%; }
