:root {
  --primary: #F7311E;
  --primary-dark: #D61F0E;
  --primary-soft: #FFECEA;
  --accent: #FAAF00;
  --text: #1A1A1A;
  --muted: #6B6F76;
  --bg: #F6F6F8;
  --surface: #FFFFFF;
  --border: #E4E5E9;
  --success: #0E9F6E;
  --warning: #D97706;
  --danger: #DC2626;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Hind Siliguri', system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main { min-height: 60vh; padding-top: 20px; padding-bottom: 48px; outline: none; }

/* Top bar & header */
.topbar { background: #17181A; color: #fff; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { font-weight: 600; white-space: nowrap; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 46px; width: auto; }
.search { flex: 1; display: flex; border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; outline: none; background: transparent; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 18px; display: flex; align-items: center; }
.search button:hover { background: var(--primary-dark); }
.header-actions { display: flex; gap: 8px; }
.hbtn { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.hbtn:hover { background: var(--primary-soft); color: var(--primary-dark); }
.cart-count { position: absolute; top: 0; left: 24px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.cart-count[hidden] { display: none; }
.catbar { border-top: 1px solid var(--border); }
.catbar-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-in a { padding: 9px 12px; font-size: 14px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--muted); }
.catbar-in a:hover, .catbar-in a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 28px; }
.hero-main { position: relative; overflow: hidden; border-radius: 20px; background: linear-gradient(120deg, #F7311E, #FF6A3D); color: #fff; padding: 40px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.hero-main h1 { font-size: 38px; line-height: 1.2; margin: 0 0 10px; max-width: 60%; }
.hero-main p { margin: 0 0 22px; max-width: 55%; opacity: .95; font-size: 17px; }
.hero-main img { position: absolute; right: -30px; bottom: -30px; width: 46%; border-radius: 50%; border: 8px solid rgba(255,255,255,.25); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.hero-side { display: grid; gap: 16px; }
.promo { border-radius: 20px; padding: 22px; display: flex; align-items: center; gap: 14px; background: #FFF6DF; }
.promo.alt { background: #E9F7F1; }
.promo img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.promo h3 { margin: 0 0 4px; font-size: 18px; }
.promo p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.promo a { color: var(--primary-dark); font-weight: 700; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 700; font-size: 15px; background: var(--primary); color: #fff; transition: background .15s; }
.btn:hover { background: var(--primary-dark); }
.btn.light { background: #fff; color: var(--primary-dark); }
.btn.light:hover { background: var(--primary-soft); }
.btn.outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.outline:hover { background: var(--primary-soft); }
.btn.block { width: 100%; }
.btn:disabled { background: #C9CBD1; color: #fff; border-color: transparent; cursor: not-allowed; }
.hero .btn { align-self: flex-start; }

/* Sections */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 14px; }
.sec h2 { margin: 0; font-size: 22px; }
.sec a { color: var(--primary); font-weight: 600; font-size: 14px; }
.page-title { font-size: 26px; margin: 4px 0 18px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--primary); }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; text-align: center; transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.07); border-color: var(--primary-soft); }
.cat img { width: 64px; height: 64px; margin: 0 auto 8px; object-fit: contain; }
.cat b { display: block; font-size: 15px; font-weight: 600; }
.cat small { color: var(--muted); font-size: 12px; }

/* Product grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.thumb { position: relative; aspect-ratio: 1; background: #F5F5F7; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: 54px; font-weight: 700; opacity: .75; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #17181A; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.badge.wtb { top: auto; bottom: 10px; left: auto; right: 10px; background: #fff; color: #17181A; border: 1px solid var(--border); }
.per { font-size: 13px; font-weight: 600; color: var(--muted); }
.qty.wt span { min-width: 84px; font-size: 14px; }
.wt-box { display: grid; gap: 8px; margin-bottom: 14px; }
.wt-box .chip { cursor: pointer; font-weight: 600; }
.wt-box .chip:disabled { opacity: .4; cursor: not-allowed; background: #fff; border-color: var(--border); color: var(--muted); }
.wt-total { font-size: 16px; }
.wt-total b { color: var(--primary-dark); font-size: 19px; }
.badge.ws {top: auto; bottom: 10px; background: #0E9F6E; color: #fff; }
.ws-box { border: 1.5px dashed #0E9F6E; background: #F0FAF6; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; display: grid; gap: 10px; }
.ws-head { display: flex; gap: 10px; align-items: center; }
.ws-head span { font-size: 26px; }
.ws-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ws-row label { font-weight: 600; font-size: 14px; }
.ws-row input { width: 100px; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; outline: none; }
.ws-row input:focus { border-color: #0E9F6E; }
.btn.wa { background: #25D366; color: #fff; }
.btn.wa:hover { background: #1EB257; }
.badge.out {background: #17181A; color: #fff; left: auto; right: 10px; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-name:hover { color: var(--primary); }
.unit { font-size: 12px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 6px; margin: 2px 0 8px; }
.price { font-size: 18px; font-weight: 700; color: var(--primary-dark); }
.old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card .btn { margin-top: auto; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 18px; font-weight: 600; }
.qty button:hover:not(:disabled) { background: var(--primary-soft); color: var(--primary); }
.qty button:disabled { color: #C9CBD1; cursor: not-allowed; }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.card .qty { margin-top: auto; width: 100%; justify-content: space-between; border-color: var(--primary); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.trust div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.trust span { font-size: 28px; }
.trust b { display: block; font-size: 15px; }
.trust small { color: var(--muted); }

/* Filters toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: #fff; font: inherit; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chip.active, .chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.pd-img { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: #F5F5F7; position: relative; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-img .ph { font-size: 120px; }
.pd h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; }
.pd .price { font-size: 30px; }
.pd .old { font-size: 17px; }
.save { background: var(--accent); color: #17181A; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 6px; }
.stock { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; margin: 6px 0 18px; }
.stock.in { color: var(--success); }
.stock.out { color: var(--danger); }
.pd-desc { color: #3D4047; margin: 0 0 20px; }
.pd-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.pd-info { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }

/* Cart & checkout */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 18px; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line .thumb { width: 80px; border-radius: 10px; overflow: hidden; }
.line .ph { font-size: 30px; }
.line-name { font-weight: 600; }
.line-name:hover { color: var(--primary); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0; text-decoration: underline; }
.link-btn:hover { color: var(--danger); }
.sum { display: flex; justify-content: space-between; margin: 8px 0; }
.sum.total { font-size: 19px; font-weight: 700; border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }
.sum.total span:last-child { color: var(--primary-dark); }
.note { background: #FFF6DF; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 12px 0; }
.sticky { position: sticky; top: 140px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px; background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; min-height: 0; }
.pay { display: flex; gap: 12px; align-items: center; border: 2px solid var(--primary); border-radius: 12px; padding: 12px 14px; background: var(--primary-soft); }
.pay span { font-size: 26px; }
.mini { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin: 6px 0; }
.mini span:first-child { color: var(--muted); }

/* Orders */
.order { margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.order-head b { font-size: 17px; }
.status { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.st-pending { background: #FFF6DF; color: var(--warning); }
.st-confirmed { background: #E8F0FF; color: #2456C8; }
.st-shipped { background: #F1E9FF; color: #6D3BD2; }
.st-delivered { background: #E9F7F1; color: var(--success); }
.st-cancelled { background: #F1F1F3; color: var(--muted); }
.steps { display: flex; gap: 6px; margin: 12px 0; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.steps i.on { background: var(--success); }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 10px; }

/* Empty / states */
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.empty .big { font-size: 56px; }
.empty h2 { margin: 8px 0; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #E9F7F1; color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 40px; }
.skeleton { background: linear-gradient(90deg, #ECEDF0 0%, #F6F6F8 50%, #ECEDF0 100%); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); min-height: 280px; }
@keyframes sh { to { background-position: -200% 0; } }

/* Footer */
.footer { background: #17181A; color: #C9CBD1; padding: 40px 0 0; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-logo { height: 52px; width: auto; border-radius: 6px; margin-bottom: 10px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer a { display: block; margin-bottom: 6px; }
.footer a:hover { color: #fff; }
.copyright { border-top: 1px solid #2C2E33; margin-top: 30px; padding-top: 14px; padding-bottom: 18px; font-size: 13px; }

/* Bottom nav (mobile only) */
.bottom-nav { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #17181A; color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .pd { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 680px) {
  body { padding-bottom: 64px; }
  .topbar-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-in { flex-wrap: wrap; gap: 10px; }
  .logo img { height: 38px; }
  .header-actions { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .hero-main { padding: 24px; min-height: 230px; }
  .hero-main h1 { font-size: 26px; max-width: 70%; }
  .hero-main p { font-size: 15px; max-width: 62%; }
  .hero-main img { width: 50%; right: -40px; bottom: -40px; }
  .hero-side { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cats { gap: 8px; }
  .cat { padding: 12px 6px; }
  .cat img { width: 46px; height: 46px; }
  .cat b { font-size: 13px; }
  .cat small { display: none; }
  .trust { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 18px; }
  .pd { padding: 14px; }
  .pd h1 { font-size: 22px; }
  .line { grid-template-columns: 64px 1fr; }
  .line .thumb { width: 64px; }
  .line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .toast { bottom: 80px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); z-index: 30; }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); padding: 8px 0; position: relative; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav .cart-count { left: 50%; top: 4px; margin-left: 4px; }
}

/* ---------- আসল ডেটার জন্য নতুন অংশ ---------- */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 7px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 18px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--primary-soft); min-width: 0; }
.banner img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
@media (max-width: 960px) { .banners { grid-auto-columns: 88%; } }
.trust { margin-top: 0; margin-bottom: 8px; }
.flash-head { align-items: center; }
.countdown { background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.hrow .card { scroll-snap-align: start; }
@media (max-width: 680px) { .hrow { grid-auto-columns: 46%; gap: 10px; } }
.cats .cat b { font-size: 14px; }
.per { font-size: 13px; font-weight: 600; color: var(--muted); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); padding: 0; background: #fff; }
.tb.on { border-color: var(--primary); }
.tb img { width: 100%; height: 100%; object-fit: cover; }
.wt-box .chip:disabled { opacity: .4; cursor: not-allowed; }
.desc { margin-top: 20px; }
.desc p { white-space: pre-line; color: #3D4047; margin: 0; }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon input { flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.coupon .btn { padding: 9px 14px; }
.ok { color: var(--success); font-weight: 700; }
.auth { max-width: 440px; margin: 20px auto; }
.auth .otp { font-size: 26px; letter-spacing: 14px; text-align: center; }
.auth .link-btn { display: block; margin: 14px auto 0; color: var(--primary); }
.auth .btn.block { margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }
.field select { border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px; background: #fff; font: inherit; }
.field select:disabled { background: #F3F3F5; }
.field.invalid select { border-color: var(--danger); }
.pay { cursor: pointer; margin-bottom: 10px; border: 1.5px solid var(--border); background: #fff; }
.pay.on { border: 2px solid var(--primary); background: var(--primary-soft); }
.pay input { accent-color: var(--primary); }
.online { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; margin-top: 4px; }
.online .note { margin: 0 0 12px; }
.shot { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
.page-head { display: flex; justify-content: space-between; align-items: center; }
a.btn { text-align: center; }
.armed { background: var(--danger) !important; color: #fff !important; border-color: var(--danger) !important; }
.rich { color: #3D4047; line-height: 1.7; }
.rich p { margin: 0 0 8px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; }
.rich li { margin-bottom: 4px; }
.rich li p { margin: 0; }
.rich strong, .rich b { color: var(--text); }

/* ================= নতুন হোমপেজ ডিজাইন ================= */
main { padding-top: 16px; }
.home-hero { display: grid; grid-template-columns: 250px 1fr; gap: 16px; margin-bottom: 16px; }
.side-skel { min-height: 300px; }
.side-cats { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; }
.side-cats h3 { margin: 4px 8px 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.side-cats a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.side-cats a img, .side-cats .ci-ph { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.side-cats a span:nth-child(2) { flex: 1; }
.side-cats i { font-style: normal; color: var(--muted); }
.side-cats .hl { color: var(--primary-dark); font-weight: 600; }
.slider { position: relative; border-radius: 18px; overflow: hidden; background: var(--primary-soft); min-height: 220px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.slide img { width: 100%; height: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; }
.sarrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 24px; line-height: 1; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sarrow.left { left: 12px; } .sarrow.right { right: 12px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255,255,255,.6); transition: width .2s; }
.dots button.on { width: 22px; background: #fff; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 18px; }
.perks div { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-right: 1px solid var(--border); }
.perks div:last-child { border-right: 0; }
.perks span { font-size: 22px; }
.perks p { margin: 0; }
.perks b { display: block; font-size: 14px; }
.perks small { color: var(--muted); font-size: 12px; }

.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.cat-strip a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cat-strip .ci { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s; }
.cat-strip a:hover .ci { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.08); border-color: var(--primary-soft); }
.cat-strip .ci img { width: 46px; height: 46px; object-fit: contain; }
.cat-strip b { font-size: 13px; font-weight: 600; }

.flash-band { background: linear-gradient(135deg, #F7311E, #FF7A45); border-radius: 18px; padding: 14px 14px 16px; margin-bottom: 22px; }
.flash-top { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; color: #fff; }
.flash-top h2 { margin: 0; font-size: 21px; }
.flash-top .countdown { background: rgba(0,0,0,.22); color: #fff; }
.flash-top a { margin-left: auto; color: #fff; font-weight: 600; font-size: 14px; }

.block { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 22px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.block-head h2 { margin: 0; font-size: 20px; }
.block-head a { color: var(--primary); font-weight: 600; font-size: 14px; }
.block .card { border-color: #EFEFF2; }
.more { text-align: center; margin-top: 16px; }

.rowwrap { position: relative; }
.rowwrap .hrow { scrollbar-width: none; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; padding-bottom: 2px; }
.rowwrap .hrow::-webkit-scrollbar { display: none; }
.rarrow { position: absolute; top: 38%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; font-size: 22px; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.rarrow.left { left: -10px; } .rarrow.right { right: -10px; }

.call-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #17181A; color: #fff; border-radius: 18px; padding: 22px 26px; margin-bottom: 10px; }
.call-band h3 { margin: 0 0 4px; font-size: 20px; }
.call-band p { margin: 0; color: #C9CBD1; }
.call-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* পরিষ্কার কার্ড */
.grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.card { border-radius: 14px; }
.thumb { background: #fff; border-bottom: 1px solid #F1F1F4; }
.thumb img { object-fit: contain; padding: 8px; }
.card-body { padding: 10px 12px 12px; gap: 2px; }
.card-name { font-size: 14px; min-height: 38px; }
.card .unit { font-size: 12px; min-height: 18px; }
.price-row { margin: 4px 0 8px; }
.price { font-size: 17px; }
.card-action .btn, .card-action .qty { width: 100%; }
.card .btn { padding: 7px 10px; font-size: 13px; }
.badge { font-size: 11px; padding: 1px 7px; top: 8px; left: 8px; }
.badge.ws, .badge.wtb { bottom: 8px; }
.badge.out { right: 8px; }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: 1fr; }
  .side-cats, .side-skel { display: none; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks div:nth-child(2) { border-right: 0; }
  .perks div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .rowwrap .hrow { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
}
@media (max-width: 680px) {
  .slide img { aspect-ratio: 2 / 1; }
  .sarrow { display: none; }
  .cat-strip { grid-template-columns: repeat(6, 76px); overflow-x: auto; scrollbar-width: none; }
  .cat-strip .ci { width: 64px; height: 64px; }
  .cat-strip .ci img { width: 38px; height: 38px; }
  .cat-strip b { font-size: 12px; }
  .perks div { padding: 10px; }
  .rowwrap .hrow { grid-auto-columns: 44%; gap: 10px; }
  .rarrow { display: none; }
  .block { padding: 12px; border-radius: 14px; }
  .block-head h2, .flash-top h2 { font-size: 17px; }
  .flash-top { flex-wrap: wrap; gap: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .call-band { padding: 18px; }
}

/* রিলস */
.rowwrap .hrow.reels { grid-auto-columns: 170px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: #111; text-align: left; }
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .2s; }
.reel:hover img { transform: scale(1.04); }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.8)); }
.reel .play { position: absolute; top: 10px; right: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.reel-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.reel-info b { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-info small { font-size: 11px; opacity: .85; }
.reel-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.reel-card { position: relative; display: grid; grid-template-columns: minmax(0, 360px) 280px; gap: 0; background: #fff; border-radius: 18px; overflow: hidden; max-height: 92vh; }
.reel-video { aspect-ratio: 9 / 16; background: #000; max-height: 92vh; }
.reel-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-side { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.reel-side h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.reel-prod { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.reel-prod:hover { border-color: var(--primary); }
.reel-prod img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #fafafa; }
.reel-prod span { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.reel-prod b { color: var(--primary-dark); }
.reel-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
@media (max-width: 680px) {
  .rowwrap .hrow.reels { grid-auto-columns: 38%; }
  .reel-card { grid-template-columns: 1fr; width: 100%; max-width: 380px; }
  .reel-video { max-height: 70vh; }
  .reel-side { max-height: 22vh; }
}
.rarrow[hidden] { display: none; }

/* ফ্ল্যাশ সেল — একাধিক গ্রুপ */
.flash-band.light .flash-top { color: var(--text); }
.flash-band.light .flash-top .countdown { background: var(--primary); }
.flash-band.light .flash-top a { color: var(--primary-dark); }
.flash-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.flash-banner { display: block; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.3); }
.flash-banner img { width: 100%; height: 100%; object-fit: cover; }
.flash-body .rowwrap .hrow { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
.flash-tabs { margin-bottom: 14px; }
.flash-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #F7311E, #FF7A45); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 18px; }
.flash-hero img { width: 180px; height: 180px; object-fit: cover; border-radius: 14px; }
.flash-hero h1 { margin: 0 0 6px; font-size: 26px; }
.flash-hero p { margin: 0 0 10px; opacity: .95; }
.flash-hero .countdown { background: rgba(0,0,0,.22); }
@media (max-width: 960px) {
  .flash-body { grid-template-columns: 1fr; }
  .flash-banner img { aspect-ratio: 3 / 1; height: auto; }
  .flash-body .rowwrap .hrow { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
}
@media (max-width: 680px) {
  .flash-body .rowwrap .hrow { grid-auto-columns: 44%; }
  .flash-hero { flex-direction: column; align-items: flex-start; }
  .flash-hero img { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .flash-hero h1 { font-size: 21px; }
}
.flash-note { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin: -8px 0 14px; }

/* সাব / চাইল্ড ক্যাটাগরি */
.subcat-wrap { margin: -6px 0 16px; }
.subcat-wrap > .unit { display: block; margin-bottom: 8px; font-weight: 600; }
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.subcats.row { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.subcats.row::-webkit-scrollbar { display: none; }
.subcat { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 8px 8px; font-size: 14px; white-space: nowrap; transition: border-color .15s, background .15s; }
.subcats.row .subcat { flex: 0 0 auto; }
.subcat:hover { border-color: var(--primary); }
.subcat.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.subcat b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sc-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.sc-ic img { width: 100%; height: 100%; object-fit: cover; }
.subcat.all .sc-ic { background: #F1F1F4; color: var(--text); }
.cat-block .block-head h2 { display: flex; align-items: center; gap: 10px; }
.cb-ic { width: 32px; height: 32px; object-fit: contain; }

/* মেনুর ড্রপডাউন */
.catbar-in { overflow: visible; }
.dd { position: relative; }
.dd > a { display: inline-block; }
.caret { font-size: 10px; opacity: .6; }
.dd-panel { display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 240px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: 8px; }
.dd:hover .dd-panel:not(:empty), .dd:focus-within .dd-panel:not(:empty) { display: block; }
.dd-panel a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text); border: 0; white-space: nowrap; }
.dd-panel a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.dd-title { display: block; padding: 4px 10px 6px; font-size: 13px; color: var(--muted); }
.dd-panel .dd-all { color: var(--primary); font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; border-radius: 0 0 8px 8px; }
@media (max-width: 680px) { .catbar-in { overflow-x: auto; } .dd-panel, .caret { display: none !important; } }

/* সার্চ সাজেশন */
.search { position: relative; overflow: visible; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.16); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sug { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; border-bottom: 1px solid #F3F3F5; }
.sug img, .sug-ic { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fafafa; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sug-txt { display: flex; flex-direction: column; min-width: 0; }
.sug-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug small { color: var(--primary-dark); font-weight: 600; font-size: 12px; }
.sug.cat small { color: var(--muted); font-weight: 400; }
.sug mark { background: #FFF1B8; color: inherit; border-radius: 3px; }
.sug:hover, .sug.on { background: var(--primary-soft); }
.sug.all { justify-content: center; color: var(--primary); font-weight: 700; border-bottom: 0; }
.sug-note { padding: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.search button { border-radius: 0 9px 9px 0; } .search input { border-radius: 10px 0 0 10px; }
@media (min-width: 681px) { .catbar-in { flex-wrap: wrap; } }
.ws-intro { background: #F0FAF6; border: 1px dashed #0E9F6E; border-radius: 12px; padding: 10px 14px; margin: -6px 0 14px; font-size: 14px; }
.search .mic { background: #fff !important; color: var(--muted); border-radius: 0 !important; padding: 0 12px; border-left: 1px solid var(--border) !important; }
.search .mic:hover { color: var(--primary); }
.search .mic.on { color: #fff; background: var(--primary) !important; animation: micpulse 1s infinite; }
@keyframes micpulse { 50% { opacity: .6; } }
