:root {
  --bg: #f7f9ff;
  --white: #ffffff;
  --blue: #1f67ff;
  --blue-dark: #0a49ca;
  --green: #16a34a;
  --text: #0f172a;
  --text-dark: #0f172a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --footer-bg: #050b1f;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  /* বাংলা ফন্ট ফ্যামিলি */
  --font-bn: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
  /* ইংরেজি ও কোড ফন্ট ফ্যামিলি (Monospace) */
  --font-en: 'Google Sans', 'JetBrains Mono', 'Cascadia Code', Arial, monospace;
}

* { box-sizing: border-box; }

body,
button,
input,
textarea,
select,
label,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a {
  font-family: var(--font-bn);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1240px, 96%);
  margin: 0 auto;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid #dde7ff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.logo-wrap {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-wrap img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 600;
  color: #4f02b3;
  line-height: 1;
}

.notice-marquee {
  flex: 1;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fbfdff;
  color: #f80000;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.notice-marquee span {
  display: inline-block;
  min-width: 100%;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.social-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.social-btn {
  border-radius: 900px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border: 1px solid;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.social-btn.whatsapp { color: #16a34a; border-color: #16a34a; }
.social-btn.facebook { color: #2563eb; border-color: #2563eb; }
.social-btn.youtube { color: #ef4444; border-color: #ef4444; }
.social-btn.telegram { color: #0ea5e9; border-color: #0ea5e9; }
.social-btn.tiktok { color: #111827; border-color: #111827; }

.hero {
  background: linear-gradient(180deg, #1f67ff 0%, #1354d5 100%);
  padding: 10px 0 14px;
}

.hero .title {
  color: #fff;
  text-align: center;
  font-size: clamp(20px, 3.4vw, 23px);
  margin: 0 0 6px;
  font-weight: 500;
  line-height: 1.22;
}

.hero-banner {
  width: min(1260px, 100%);
  aspect-ratio: 1260/ 500;
  max-height: 250px;
  object-fit: contain;
  object-position: center top;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.thumb-slider {
  margin: 14px auto 12px;
  width: min(1240px, 96%);
  overflow: hidden;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(100deg, #ffffff 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.thumb-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: slide-left 15s linear infinite;
}

.thumb-slider:hover .thumb-track { animation-play-state: paused; }

@keyframes slide-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.thumb-item {
  width: 250px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  cursor: pointer;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  padding: 16px;
  margin-top: 14px;
}

/* ===== CATEGORY FILTER BAR (white bg, outline pills) ===== */
.filter-bar,
.cat-bar {
  background: #185bee;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-chip,
.cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #d7dce3;
  background: #fff;
  color: var(--text-dark);
  font-size:.82rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.active {
  background: #0b2d73;
  color: #fff;
  border-color: #0b2d73;
}

.cat-title {
  text-align: center;
  color: #ef4444;
  margin: 16px 0;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.p-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  font-family: var(--font-en);
  font-weight: 700;
}

.p-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.p-name {
  font-size: 20px;
  line-height: 1.26;
  min-height: 72px;
  margin: 0 0 8px;
}

.p-price {
  font-family: var(--font-en);
  font-size: 19px;
  color: #185bee;
  font-weight: 600;
  line-height: 1.8;
}

.p-price .old {
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 14px;
}

.order-btn {
  margin-top: auto;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 700;
}

.more-wrap { text-align: center; margin: 18px 0 6px; }

.more-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #cc00ff, #6752ff);
  cursor: pointer;
}

.advantages {
  background: linear-gradient(180deg, #040a1d, #060f2d);
  margin-top: 28px;
  padding: 26px 0 30px;
  color: #fff;
}

.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.adv-card {
  border: 1px solid #1b325b;
  border-radius: 14px;
  background: rgba(11, 22, 45, 0.8);
  padding: 14px;
}

.footer {
  background: var(--footer-bg);
  color: #dbeafe;
  margin-top: 0;
  padding: 30px 0 18px;
  text-align: center;
}

.footer .support-btn {
  display: inline-block;
  margin-top: 8px;
  background: #16a34a;
  border-radius: 999px;
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
}

.footer-nav {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-en);
  font-size: 13px;
}

/* ===== BUYER NOTIFICATION POPUP ===== */
.buyer-popup { position: fixed; top: 90px; left: -340px; z-index: 500; max-width: 300px; background: #fff; border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: left .6s ease; }
.buyer-popup.show { left: 14px; }
.buyer-popup .thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e5e7eb; }
.buyer-popup .info b { display: block; font-size: .86rem; font-weight: 700; color: #1F2937; }
.buyer-popup .info span { display: block; font-size: .78rem; color: #6B7280; margin-top: 2px; }

/* ===== WHATSAPP POPUP ===== */
.wa-popup { position: fixed; bottom: 26px; left: -340px; z-index: 500; max-width: 280px; background: #fff; border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: left .6s ease; }
.wa-popup.show { left: 14px; }
.wa-popup .wa-icon { width: 40px; height: 40px; border-radius: 50%; background: #22C55E; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.wa-popup .wa-text b { display: block; font-size: .88rem; font-weight: 700; color: #1F2937; }
.wa-popup .wa-text span { display: block; font-size: .72rem; color: #16A34A; font-weight: 700; }
.wa-popup .wa-close { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #EF4444; color: #fff; border: none; font-size: .7rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.back-btn { display: inline-block; margin: 6px; padding: 11px 18px; border-radius: 10px; background: #2563eb; color: #fff; font-weight: 700; }
.back-btn.alt { background: #475569; }
.back-btn.wa { background: #16a34a; }

.order-layout {
  width: min(760px, 95%);
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 16px;
}

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 11px 12px;
  font-size: 15px;
}

.pay-methods { display: grid; gap: 8px; margin-bottom: 12px; }
.pay-card {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  cursor: pointer;
}

.pay-left { display: flex; align-items: center; gap: 8px; }
.pay-left img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; }

.pay-number {
  user-select: all;
  font-family: var(--font-en);
  font-weight: 700;
}

.copy-btn {
  border: 0;
  background: #e0ecff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 700;
}

.success-btn {
  width: 100%;
  border: 0;
  background: #16a34a;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.note {
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.note.warn { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.note.ok { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }

.status-card {
  width: min(680px, 95%);
  margin: 30px auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
  padding: 32px 16px;
}

.loader {
  width: 52px;
  height: 52px;
  border: 4px solid #bbf7d0;
  border-top-color: #16a34a;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { flex-wrap: wrap; }
  .social-buttons { width: 100%; }
}

@media (max-width: 768px) {
  .brand { font-size: 18px; }
  .notice-marquee { font-size: 14px; }
  .hero .title { font-size: 25px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .thumb-item { width: 200px; height: 200px; }
  .info-strips,
  .adv-grid { grid-template-columns: 1fr; }
  .p-name { min-height: 48px; font-size: 21px; }
}
