/* Zawya Mart — customer website */
:root {
  --ink: #14171F; --ink2: #262A35; --bg: #F4F5F7; --card: #FFFFFF; --line: #E4E6EB; --line2: #D5D8DE;
  --muted: #5E6371; --accent: #DD6A10; --accent-bg: #FFF1E6; --price: #C2410C; --ok: #15803D; --ok-bg: #E7F6EC;
  --wa: #15803D; --call: #1E3A8A; --bad: #B91C1C; --img: #ECEDF1;
  --r: 14px; --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="bn"] { --font: "Hind Siliguri", Inter, system-ui, sans-serif; }
html[lang="ar"] { --font: "Noto Kufi Arabic", Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .4 } to { opacity: 1 } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.price { color: var(--price); font-weight: 800; }
.old { color: var(--muted); text-decoration: line-through; font-size: .85em; }
.i { flex: none; }

/* Header */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.hdr .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.logo-badge { background: #fff; border-radius: 12px; padding: 4px 10px; display: flex; align-items: center; }
.logo-badge img { height: 44px; width: auto; }
.hdr .acts { display: flex; align-items: center; gap: 8px; }
.langs { display: flex; border: 1px solid #3A3F4B; border-radius: 999px; overflow: hidden; }
.langs button { background: transparent; color: #fff; border: 0; padding: 7px 11px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.langs button.on { background: #fff; color: var(--ink); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink2); color: #fff; display: grid; place-items: center; cursor: pointer; }
[hidden] { display: none !important; }
.badge { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 0 12px; height: 46px; color: var(--muted); margin-bottom: 12px; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); background: transparent; }

/* Sections */
main { min-height: 60vh; padding-bottom: 24px; }
.sec { margin-top: 22px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sec-h h2, h1.t { margin: 0; font-size: 18px; font-weight: 700; }
h1.t { font-size: 22px; }
.sec-h a { color: var(--price); font-weight: 600; font-size: 14px; }
.card { background: var(--card); border-radius: var(--r); }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; font-weight: 600; color: var(--muted); min-height: 44px; }

/* Hero / banners */
.hero { margin-top: 16px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; border-radius: 18px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; display: flex; align-items: center; gap: 14px; min-height: 190px; position: relative; overflow: hidden; }
.slide.has-img { padding: 0; min-height: 0; aspect-ratio: 16/7; }
.slide.has-img img { width: 100%; height: 100%; object-fit: cover; }
.slide.has-img .cap { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.slide .txt { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tag { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 4px 8px; letter-spacing: .4px; }
.slide h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.slide p { margin: 0; color: #C9CCD3; font-size: 14px; }
.slide .btn-w { background: #fff; color: var(--ink); font-weight: 700; border-radius: 10px; padding: 12px 18px; margin-top: 4px; }
.slide .art { width: 96px; height: 130px; border-radius: 14px; background: var(--ink2); display: grid; place-items: center; color: var(--accent); flex: none; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: #C9CCD3; transition: width .2s; }
.dots span.on { width: 18px; background: var(--accent); }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.trust div { background: #fff; border-radius: 12px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.3; }
.trust svg { color: var(--price); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; position: relative; }
.cat .ic { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.cat.on .ic { background: var(--ink); color: #fff; border-color: var(--ink); }
.soon { position: absolute; top: -6px; right: 4px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px; padding: 2px 6px; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.pc .im { position: relative; aspect-ratio: 1; background: var(--img); display: grid; place-items: center; color: #9A9EAA; }
.pc .im img { width: 100%; height: 100%; object-fit: cover; }
.save { position: absolute; bottom: 8px; left: 8px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 6px; }
.oos { position: absolute; inset: auto 8px 8px 8px; background: rgba(20,23,31,.8); color: #fff; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 8px; text-align: center; }
.pc .bd { padding: 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pc .nm { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc .mt { font-size: 12px; color: var(--muted); }
.pc .pr { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pc .pr .price { font-size: 16px; }
.pc .btn { margin-top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; text-align: center; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.dark { background: var(--ink); }
.btn.wa { background: var(--wa); }
.btn.call { background: var(--call); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); }
.btn.lg { min-height: 52px; font-size: 15px; }
.btn.block { width: 100%; }
.btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Combos */
.combos { display: grid; gap: 10px; }
.cb { background: #fff; border-radius: var(--r); padding: 12px; display: flex; gap: 12px; align-items: center; }
.cb .n { width: 76px; height: 76px; border-radius: 12px; background: var(--accent-bg); display: grid; place-items: center; color: var(--price); font-weight: 800; font-size: 20px; flex: none; overflow: hidden; }
.cb .n img { width: 100%; height: 100%; object-fit: cover; }
.cb .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cb .tx b { font-size: 15px; }
.cb .tx small { color: var(--muted); font-size: 12px; }

/* Track card */
.track-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tc-h { display: flex; align-items: center; gap: 12px; }
.tc-h .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--price); display: grid; place-items: center; flex: none; }
.tc-h h2 { margin: 0; font-size: 17px; }
.tc-h p { margin: 0; font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; font-size: 11px; font-weight: 600; position: relative; }
.steps.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps > div { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--muted); }
.steps > div::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps > div:first-child::before { display: none; }
.steps > div.done::before { background: var(--ok); }
html[dir="rtl"] .steps > div::before { left: auto; right: -50%; }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; position: relative; z-index: 1; }
.steps .done { color: var(--ink); }
.steps .done .dot { background: var(--ok); color: #fff; }
.steps .now .dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-bg); }
.safe { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); font-weight: 600; }
.row { display: flex; gap: 8px; }

/* Forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.f input, .f select, .f textarea, .in { height: 48px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; font-size: 15px; background: #fff; width: 100%; min-width: 0; }
.f textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .in:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.f .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.f .err { color: var(--bad); font-weight: 500; font-size: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.chk { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; min-height: 44px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.alert { border-radius: 12px; padding: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.bad { background: #FDECEC; color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--accent-bg); color: #7C2D12; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Product page */
.pp { display: grid; gap: 0; margin: 0 -16px; }
.gal { position: relative; background: var(--img); }
.gal .slides { border-radius: 0; gap: 0; }
.gal .slide { padding: 0; background: var(--img); min-height: 0; aspect-ratio: 1; justify-content: center; color: #9A9EAA; border-radius: 0; }
.gal .slide img { width: 100%; height: 100%; object-fit: cover; }
.gal .dots { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; }
.info { background: #fff; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.info h1 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.prow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prow .price { font-size: 28px; }
.prow .old { font-size: 16px; }
.pill-save { background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 8px; }
.opt-h { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; min-width: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: #fff; font-weight: 600; cursor: pointer; }
.chip.on { border: 2px solid var(--accent); background: #FFF6EE; }
.chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier { border: 1px solid var(--line2); background: #fff; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-height: 64px; }
.tier.on { border: 2px solid var(--accent); background: #FFF6EE; }
.tier .q { font-size: 13px; font-weight: 600; }
.tier .p { font-size: 15px; font-weight: 800; }
.tier .s { font-size: 11px; color: var(--ok); font-weight: 600; }
.dbox { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.dbox span { display: flex; align-items: center; gap: 8px; }
.dbox svg { color: var(--price); width: 18px; height: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; padding: 4px; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg); font-size: 20px; cursor: pointer; }
.qty span { min-width: 42px; text-align: center; font-size: 17px; font-weight: 700; }
.desc { background: #fff; margin-top: 10px; padding: 18px 16px; }
.desc h2 { margin: 0 0 8px; font-size: 16px; }
.desc p { margin: 0; white-space: pre-line; color: #3D4250; }
.attrs { display: flex; flex-wrap: wrap; gap: 6px; }
.attrs span { background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.rel { background: #fff; margin-top: 10px; padding: 18px 16px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .pc { border: 1px solid var(--line); }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -4px 16px rgba(20,23,31,.08); }
.sticky .tot { display: flex; flex-direction: column; line-height: 1.2; }
.sticky .tot small { color: var(--muted); font-size: 11px; }
.sticky .tot b { font-size: 18px; }
.sticky .btn { flex: 1; }
body.has-sticky main { padding-bottom: 90px; }

/* Cart & checkout */
.lines { display: flex; flex-direction: column; gap: 10px; }
.ln { background: #fff; border-radius: var(--r); padding: 12px; display: flex; gap: 12px; }
.ln .im { width: 72px; height: 72px; border-radius: 10px; background: var(--img); flex: none; overflow: hidden; display: grid; place-items: center; color: #9A9EAA; }
.ln .im img { width: 100%; height: 100%; object-fit: cover; }
.ln .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ln .tx b { font-size: 14px; }
.ln .bt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ln .rm { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.sum { background: #fff; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sum > div { display: flex; justify-content: space-between; gap: 10px; }
.sum .neg { color: var(--ok); }
.sum .grand { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.freebar { background: #fff; border-radius: var(--r); padding: 12px 14px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.freebar .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.freebar .bar i { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 48px; height: 48px; color: #9A9EAA; }
.two { display: grid; gap: 16px; }
.done-box { background: #fff; border-radius: 18px; padding: 28px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.done-box .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.done-box .ok-ic svg { width: 34px; height: 34px; }
.ordno { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 800; letter-spacing: 1px; background: var(--bg); border-radius: 10px; padding: 8px 14px; }
.tr-res { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.tr-o { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tr-o .hd { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Landing page */
.lp-hero { background: #fff; margin: 0 -16px; }
.lp-hero .im { aspect-ratio: 1; background: var(--img); display: grid; place-items: center; color: #9A9EAA; }
.lp-hero .im img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero .tx { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.lp-hero h1 { margin: 0; font-size: 24px; line-height: 1.25; }
.lp-hero p { margin: 0; white-space: pre-line; color: #3D4250; }
.lp-form { background: #fff; margin: 10px -16px 0; padding: 18px 16px; }
.lp-form h2 { margin: 0 0 12px; font-size: 18px; }

/* Footer */
footer { background: var(--ink); color: #C9CCD3; margin-top: 32px; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .links a { color: #fff; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
footer .logo-badge { align-self: flex-start; }
footer .logo-badge img { height: 50px; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.toast a { color: #FDBA74; text-decoration: underline; white-space: nowrap; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg) } }
.skel { background: linear-gradient(90deg, #e9eaee, #f4f5f7, #e9eaee); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0 } }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .combos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp { grid-template-columns: 1fr 1fr; gap: 24px; margin: 16px 0 0; align-items: start; }
  .gal, .gal .slide { border-radius: 18px; overflow: hidden; }
  .info { border-radius: 18px; }
  .desc, .rel, .lp-form { border-radius: 18px; margin-left: 0; margin-right: 0; }
  .hscroll { grid-auto-columns: 22%; }
  .two { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .lp-hero { margin: 16px 0 0; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
  .sticky { display: none; }
  body.has-sticky main { padding-bottom: 24px; }
  .slide h2 { font-size: 30px; }
}

/* ── Ghorer Bazar style additions ── */
.sec-h.center { justify-content: center; }
.sec-h.center h2 { font-size: 20px; }
.hdr .acts .icon-btn#menuBtn { background: transparent; }
.logo-badge { flex: none; }

/* Category cards: horizontal row */
.catrow { display: grid; grid-auto-flow: column; grid-auto-columns: 30%; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.catrow::-webkit-scrollbar { display: none; }
.catc { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-align: center; position: relative; }
.catc .ci { width: 100%; aspect-ratio: 1; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--ink); box-shadow: 0 1px 3px rgba(20,23,31,.06); }
.catc .ci img { width: 100%; height: 100%; object-fit: cover; }
.catc .soon { top: 6px; right: 6px; }

/* Product card extras */
.ptag { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 3px 6px; color: #fff; }
.ptag.hot { background: #DC2626; }
.ptag.new { background: #2563EB; }
html[dir="rtl"] .ptag { right: auto; left: 8px; }
html[dir="rtl"] .save { left: auto; right: 8px; }
.pc .im .oos ~ .save, .pc .im .save + .oos { bottom: 40px; }
.pc .btn { min-height: 40px; font-size: 13px; padding: 0 8px; }
.pc .btn + .btn { margin-top: 6px; }

/* Bottom navigation (phone) */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; background: var(--accent); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
.bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: #fff; font-size: 11px; font-weight: 600; background: none; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .3px; }
.bnav a.on { background: rgba(0,0,0,.12); }
.bnav .bi { position: relative; display: grid; }
.bnav .badge { top: -6px; right: -10px; background: var(--ink); }
body.has-bnav main { padding-bottom: 80px; }
body.has-bnav footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Floating cart + WhatsApp */
.fcart { position: fixed; right: 0; top: 46%; z-index: 24; background: #fff; border-radius: 12px 0 0 12px; box-shadow: 0 4px 18px rgba(20,23,31,.18); display: flex; flex-direction: column; align-items: center; overflow: hidden; min-width: 78px; }
.fcart > span:first-child { background: var(--accent); color: #fff; width: 100%; display: flex; justify-content: center; padding: 6px 0 2px; }
.fcart b { background: var(--accent); color: #fff; width: 100%; text-align: center; font-size: 12px; padding: 0 6px 6px; }
.fcart .ft { color: var(--price); font-weight: 800; font-size: 13px; padding: 6px 8px; }
html[dir="rtl"] .fcart { right: auto; left: 0; border-radius: 0 12px 12px 0; }
.fwa { position: fixed; right: 16px; bottom: 24px; z-index: 24; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
body.has-bnav .fwa { bottom: 76px; }
body.has-sticky .fwa { bottom: 92px; }
html[dir="rtl"] .fwa { right: auto; left: 16px; }

/* Menu drawer */
.mdrawer { position: fixed; inset: 0; z-index: 60; }
.mdrawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mdrawer aside { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; overflow-y: auto; padding: 14px 14px 30px; display: flex; flex-direction: column; gap: 2px; animation: din .2s ease-out; }
html[dir="rtl"] .mdrawer aside { left: auto; right: 0; }
@keyframes din { from { transform: translateX(-30px); opacity: .5 } }
.mdrawer .mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mdrawer .mh .logo-badge { padding: 0; }
.mdrawer .mh .icon-btn { background: var(--bg); color: var(--ink); }
.mdrawer a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 10px; font-weight: 600; }
.mdrawer a:hover { background: var(--bg); }
.mdrawer a span { flex: 1; }
.mdrawer a small { color: var(--muted); font-size: 12px; }
.mdrawer .soon-s { color: var(--price); font-weight: 700; }
.mt-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 14px 10px 4px; }
.mlangs { display: flex; gap: 8px; padding: 4px 10px; flex-wrap: wrap; }

/* Checkout (Ghorer Bazar style) */
.co-wrap { max-width: 640px; margin: 0 auto; }
.co { display: flex; flex-direction: column; gap: 12px; }
.cs { background: #fff; border-radius: 16px; padding: 16px; }
.ch { margin: 0 0 14px; font-size: 17px; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 10px; line-height: 1.2; }
html[dir="rtl"] .ch { border-left: 0; border-right: 4px solid var(--accent); padding-left: 0; padding-right: 10px; }
.req { color: var(--bad); }
.phone { display: flex; align-items: stretch; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #fff; }
.phone .cc { background: var(--bg); font-weight: 700; padding: 0 12px; display: grid; place-items: center; border-right: 1px solid var(--line2); direction: ltr; }
.phone input { border: 0 !important; border-radius: 0 !important; outline: 0; }
.phone:focus-within { outline: 2px solid var(--accent); border-color: var(--accent); }
.loc { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line2); background: var(--bg); border-radius: 12px; padding: 10px 12px; min-height: 52px; text-align: start; cursor: pointer; color: var(--ink); }
.loc span { display: flex; flex-direction: column; }
.loc small { color: var(--muted); font-size: 12px; }
.loc svg { color: var(--price); }
.loc.ok { border-color: var(--ok); background: var(--ok-bg); }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.paycard { display: flex; align-items: center; gap: 8px; border: 2px solid var(--accent); background: #FFF6EE; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; position: relative; min-height: 52px; }
.paycard input { position: absolute; opacity: 0; }
.paycard svg { color: var(--ok); }
.paycard .tick { margin-inline-start: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.paycard .tick svg { color: #fff; }
.cpn summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.cpn summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 700; }
.cpn[open] summary::after { content: "−"; }
.cpn summary::-webkit-details-marker { display: none; }
.cs .sum { padding: 0; }
.cs .freebar { padding: 0 0 12px; }
.ta { height: auto !important; min-height: 64px; padding: 10px 12px !important; resize: vertical; }
.ri { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ri:last-child { border-bottom: 0; padding-bottom: 0; }
.ri:first-child { padding-top: 0; }
.ri .im { width: 60px; height: 60px; border-radius: 10px; border: 1px solid var(--line); background: var(--img); overflow: hidden; display: grid; place-items: center; color: #9A9EAA; flex: none; }
.ri .im img { width: 100%; height: 100%; object-fit: cover; }
.ri .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ri .tx b { font-size: 14px; font-weight: 600; }
.ri .bt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qty.sm button { width: 34px; height: 34px; font-size: 18px; }
.qty.sm span { min-width: 30px; font-size: 15px; }
.del { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #FEE2E2; color: var(--bad); display: grid; place-items: center; cursor: pointer; flex: none; }
.cobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -4px 16px rgba(20,23,31,.08); }
.cobar .tot { display: flex; flex-direction: column; line-height: 1.2; }
.cobar .tot small { color: var(--muted); font-size: 11px; }
.cobar .tot b { font-size: 18px; }
.cobar .btn { flex: 1; text-transform: uppercase; letter-spacing: .4px; }

@media (min-width: 720px) {
  .bnav { display: none; }
  body.has-bnav main { padding-bottom: 24px; }
  body.has-bnav footer { padding-bottom: 24px; }
  body.has-bnav .fwa { bottom: 24px; }
  .catrow { grid-auto-columns: 15%; }
  .cobar { position: sticky; bottom: 12px; border-radius: 16px; border: 1px solid var(--line); }
  body.has-sticky .fwa { bottom: 24px; }
}

/* ══ Ghorer Bazar look ══ */
:root { --ink: #222831; --ink2: #3A3F4B; --bg: #FBF9F5; --muted: #666666; --accent: #F48721; --accent-bg: #FEF1E4; --price: #F48721; --line: #ECE8E1; --line2: #DCD7CF; --img: #FFFFFF; --buy: #0F1E1C; --font: "Open Sans", Inter, system-ui, sans-serif; }
html[lang="bn"] { --font: "Hind Siliguri", "Open Sans", system-ui, sans-serif; }
body { color: #444; }
h1, h2, h3, .t { color: var(--ink); }

/* Header: white, menu left, logo centre, cart right */
.hdr { background: #fff; color: var(--ink); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.hdr .top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 16px; gap: 8px; }
.hdr .side { display: flex; align-items: center; gap: 6px; }
.hdr .side.end { justify-content: flex-end; }
.hdr .logo img { height: 46px; width: auto; }
.hb { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; margin-inline-start: -8px; }
.hcart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.hcart .badge { top: 2px; right: 0; }
.lng { border: 1px solid var(--line2); background: #fff; color: var(--ink); border-radius: 999px; padding: 0 10px; min-height: 34px; font-weight: 600; font-size: 13px; cursor: pointer; }
.hsearch { padding-bottom: 10px; }
.search { background: #F5F5F5; border: 1px solid #EEE; margin: 0; padding: 0 4px 0 12px; }
.sbtn { background: var(--accent); color: #fff; border: 0; border-radius: 9px; height: 38px; padding: 0 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 719px) { .hsearch:not(.force) { display: none; } }

/* Banner */
.slide { background: var(--accent); border-radius: 14px; }
.slides { border-radius: 14px; }
.slide p { color: #FFF3E6; }
.slide .tag { background: #fff; color: var(--accent); }
.slide .btn-w { color: var(--accent); }
.slide .art { background: rgba(255,255,255,.2); color: #fff; }
.dots span.on { background: var(--accent); }
.trust div { box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.trust svg { color: var(--accent); }

/* Section titles: left title, orange underline, VIEW ALL → */
.sech { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; position: relative; }
.sech::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 3px; border-radius: 2px; background: var(--accent); }
html[dir="rtl"] .sech::after { left: auto; right: 0; }
.sech h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.sech a { color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; white-space: nowrap; }
.sech.center { justify-content: center; border: 0; padding-bottom: 0; }
.sech.center::after { display: none; }
.sech.center h2 { font-size: 21px; }
.catc .ci { border-radius: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }

/* Product cards */
.pc { border-radius: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.pc .im { background: #fff; aspect-ratio: 1; }
.pc .im img { object-fit: contain; padding: 6px; }
.save { top: 8px; bottom: auto; left: 8px; background: #22A447; font-size: 10.5px; }
.ptag { font-size: 10px; }
.ptag.hot { background: #EF3B3B; }
.pc .nm { color: var(--ink); font-size: 14.5px; font-weight: 600; }
.pc .pr { margin-top: 2px; padding-top: 0; }
.pc .pr .price { font-size: 15.5px; }
.savepill { align-self: flex-start; background: #B8E04A; color: #1E3A06; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.pc .bd { gap: 4px; }
.pc .acts { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.pc .btn + .btn { margin-top: 0; }
.btn.line { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn.line:hover { background: var(--accent-bg); }
.btn.buy { background: var(--buy); }
.pc.combo .ptag { right: 8px; }
.hscroll .pc { border: 0; }

/* Product page */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); padding: 12px 0; }
.crumb a { color: var(--ink); }
.crumb b { font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; }
.gal { background: #fff; }
.gal .slide, .gal .slides { background: #fff; border-radius: 0; }
.gal .slide img { object-fit: contain; }
.gal.has-th { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
.gal .gmain { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.th { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th.on { border: 2px solid var(--accent); }
.info h1 { font-size: 21px; font-weight: 600; color: var(--ink); }
.chip.on, .tier.on { background: var(--accent-bg); }

/* Floating buttons & bottom bar in orange */
.fwa { background: var(--accent); }
.fcart .ft { color: var(--accent); }
.bnav { background: var(--accent); }
.bnav .badge { background: var(--ink); }

/* Footer: white with columns */
footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 28px 0 0; font-size: 13.5px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.fabout { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.fabout .logo img { height: 54px; width: auto; }
.fabout p { margin: 0; display: flex; align-items: center; gap: 6px; }
.fabout p a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
footer h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
footer .fgrid > div:not(.fabout) { display: flex; flex-direction: column; gap: 8px; }
footer .fgrid a { color: var(--muted); }
footer .fgrid a:hover { color: var(--accent); }
footer .copy { text-align: center; border-top: 1px solid var(--line); margin-top: 22px; padding: 14px 16px; font-size: 12.5px; }
body.has-bnav footer .copy { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body.has-sticky footer .copy { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
body.has-bnav footer, body.has-sticky footer { padding-bottom: 0; }
body.has-bnav main, body.has-sticky main { padding-bottom: 24px; }

@media (min-width: 720px) {
  .fgrid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .fabout { grid-column: auto; }
  .hdr .top { padding: 10px 0; }
  .gal.has-th { grid-template-columns: 76px minmax(0, 1fr); }
  .th { width: 76px; height: 76px; }
  body.has-bnav footer .copy, body.has-sticky footer .copy { padding-bottom: 14px; }
}
footer .wrap.fgrid { display: grid; flex-direction: initial; gap: 22px 16px; }
.track-card .btn.dark { background: var(--accent); }
