/* ChargeHub BD storefront */
:root {
  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --accent-soft: #EFF6FF;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --bg-soft: #F1F5F9;
  --white: #FFFFFF;
  --ok: #15803D;
  --danger: #B91C1C;
  --radius: 16px;
  --display: 'Space Grotesk', 'Hind Siliguri', system-ui, sans-serif;
  --body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title { font-size: clamp(28px, 4vw, 36px); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--bg-soft); color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 28px; border-radius: 12px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Demo banner + top bar */
.demo-banner { background: #FEF3C7; color: #78350F; font-size: 14px; text-align: center; padding: 8px 16px; }
.topbar { background: var(--ink); color: var(--white); font-size: 14px; padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; text-align: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo span { font-family: var(--display); font-size: 24px; font-weight: 700; }
.search { flex: 1 1 320px; display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; background: var(--white); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-link { background: var(--bg-soft); color: var(--ink); }
.cart-link:hover { color: var(--ink); background: var(--line); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.cat-nav { display: flex; gap: 6px 26px; padding-bottom: 12px; font-size: 15px; font-weight: 500; overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 4px 0; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header-row { gap: 12px; flex-wrap: wrap; }
  .logo { flex: 1 1 auto; min-width: 0; }
  .logo span { font-size: 20px; }
  .header-actions { margin-left: auto; }
  .header-actions .wa-link, .cart-label { display: none; }
  .cart-link { padding: 0 14px; }
  .search { order: 3; flex: 1 1 100%; min-width: 0; }
  .search .btn { padding: 0 16px; }
  .site-header { position: static; }
  .topbar span:not(:first-child) { display: none; }
}

/* Hero */
.hero { background: var(--bg-soft); }
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; background: var(--white); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; }
.hero p { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 380px; min-height: 360px; border-radius: 24px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .hero-inner { padding-top: 40px; padding-bottom: 40px; gap: 32px; } .hero-media { min-height: 240px; } }

/* Placeholder image */
.ph { width: 100%; height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--bg-soft); color: var(--muted); text-align: center; padding: 16px; font-size: 13px; }
.ph svg { color: #94A3B8; }
.ph.ph-dashed { background: #E2E8F0; border: 2px dashed #94A3B8; border-radius: 24px; font-size: 15px; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex: none; color: var(--accent); }
.trust-item strong { display: block; font-size: 16px; }
.trust-item span { font-size: 14px; color: var(--muted); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { color: var(--ink); border-color: var(--accent); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cat-card strong { font-size: 18px; }
.cat-card span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Product grid + card */
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.row-head a { font-weight: 600; font-size: 15px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.card-media { display: block; height: 200px; background: var(--bg-soft); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ok); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.badge-out { background: var(--ink-2); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-family: var(--body); font-size: 17px; line-height: 1.35; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-fit { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.price s { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.btn-add { min-height: 44px; padding: 0 16px; }

/* Bundles */
.bundles { background: var(--ink); color: var(--white); }
.bundles .lead { color: #CBD5E1; font-size: 17px; margin-top: 10px; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bundle { border: 1px solid #334155; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: #1E293B; }
.bundle h3 { font-size: 22px; }
.bundle h3 a { color: var(--white); text-decoration: none; }
.bundle p { color: #CBD5E1; font-size: 15px; line-height: 1.6; }
.bundle .card-foot { gap: 12px; }
.bundle .price s { color: #94A3B8; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--bg-soft); }
.step-n { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps strong { font-size: 17px; }
.steps span:last-child { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* Corporate */
.corporate { background: var(--accent-soft); }
.corp-inner { display: flex; flex-wrap: wrap; gap: 48px; }
.corp-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .06em; }
.corp-copy h2 { font-size: clamp(30px, 4vw, 40px); }
.corp-copy p, .corp-copy ul { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.corp-copy ul { margin: 0; padding-left: 20px; line-height: 1.9; }

/* Forms */
.form-card { flex: 1 1 400px; background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; border: 1px solid #BFDBFE; }
.form-card h3 { font-size: 20px; font-family: var(--body); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 15px; font-weight: 400; background: var(--white); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.field .error { font-weight: 500; color: var(--danger); font-size: 13px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.radio-list { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.radio-list legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 15px; }
.radio input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.radio small { display: block; color: var(--muted); font-size: 13px; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #CBD5E1; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; font-size: 15px; }
.footer-grid > * { display: flex; flex-direction: column; gap: 10px; }
.footer-grid .f-title { font-weight: 700; color: var(--white); }
.footer-grid .f-brand { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--white); }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; padding-bottom: 32px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Page header (inner pages) */
.page-head { background: var(--bg-soft); padding: 36px 0; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Shop toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sort select { min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--white); }
.empty { padding: 48px 24px; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.pdp-media { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-info h1 { font-size: clamp(26px, 3.5vw, 36px); }
.pdp-info .price { font-size: 30px; }
.save { display: inline-block; background: #DCFCE7; color: #14532D; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: var(--white); font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 48px; height: 46px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spec-list { margin: 0; padding-left: 20px; line-height: 1.8; color: var(--ink-2); }
.meta-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.meta-table th, .meta-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.meta-table th { width: 38%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }

/* Cart + checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.cart-thumb .ph { padding: 6px; }
.cart-line h3 { font-family: var(--body); font-size: 16px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.line-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--danger); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.line-total { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) { .cart-line { grid-template-columns: 64px minmax(0, 1fr); } .cart-thumb { width: 64px; height: 64px; } .line-total { grid-column: 2; } }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 140px; background: var(--white); }
.summary h2 { font-size: 20px; font-family: var(--body); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-total { font-size: 18px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-items { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); max-height: 260px; overflow: auto; }
.free-hint { font-size: 14px; color: var(--ok); font-weight: 600; }
.success { text-align: center; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.success .tick { width: 72px; height: 72px; border-radius: 999px; background: #DCFCE7; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.order-id { font-family: var(--display); font-size: 22px; font-weight: 700; }

/* Policy pages */
.prose { max-width: 780px; line-height: 1.75; color: var(--ink-2); font-size: 16px; }
.prose h2 { font-size: 26px; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: 140px; }
.prose h3 { font-size: 18px; font-family: var(--body); color: var(--ink); margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose [lang="bn"] { font-family: 'Hind Siliguri', var(--body); font-size: 17px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; font-size: 15px; display: flex; gap: 14px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #93C5FD; font-weight: 600; white-space: nowrap; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 999px; background: #15803D; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 40; }
.wa-float:hover { color: var(--white); background: #166534; }

/* ---------- help page ---------- */
.topbar a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.help-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.help-card:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(15,23,42,.08); }
.help-ic { width: 44px; height: 44px; border-radius: 12px; background: #EFF6FF; color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.help-t { font-weight: 700; font-size: 17px; }
.help-v { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.help-n { font-size: 14px; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p + p { margin-top: 8px; }
.faq .bn { font-family: 'Hind Siliguri', var(--body); }
.track { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: 560px; }
.track .field { flex: 1 1 240px; margin: 0; }

/* Bundle collage (images of the items inside a bundle) */
.collage { width: 100%; height: 100%; display: grid; gap: 2px; background: var(--line); }
.collage img { width: 100%; height: 100%; object-fit: contain; min-height: 0; background: #F1F5F9; }
.collage-2 { grid-template-columns: 1fr 1fr; }
.collage-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage-3 img:first-child { grid-row: span 2; }
.collage-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.card-media .collage, .pdp-media .collage { min-height: inherit; }
.bundle-media { height: 160px; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.logo img { flex: none; border-radius: 8px; }

/* Payment messages */
.pay-alert { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #FEF2F2; color: #7F1D1D; border: 1px solid #FECACA; font-size: 15px; }
.pay-alert.info { background: var(--accent-soft); color: var(--accent-dark); border-color: #BFDBFE; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
