/* Bazarmela Multivendor — ক্রেতারা যা দেখে: নিবন্ধন, দোকানের পেজ, দোকান-তালিকা, বিক্রেতা কার্ড */
:root { --bm-primary: #0f766e; --bm-line: #e5e7eb; --bm-muted: #6b7280; }
.bm-reg *, .bm-store *, .bm-stores *, .bm-vbox * { box-sizing: border-box; }

/* ---------- নিবন্ধন ---------- */
.bm-reg, .bm-stores { width: min(1040px, calc(100vw - 32px)); max-width: none !important; margin-left: 50% !important; margin-right: 0 !important; transform: translateX(-50%); }
.bm-reg { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; margin-top: 20px; margin-bottom: 20px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(15, 23, 42, .1); background: #fff; }
.bm-reg__intro { background: linear-gradient(150deg, var(--bm-primary), #0b3b37); color: #e6fffb; padding: 44px 38px; }
.bm-reg__intro h2 { color: #fff; font-size: 28px; line-height: 1.3; margin: 0 0 12px; }
.bm-reg__intro p { opacity: .9; margin: 0 0 24px; }
.bm-reg__intro ul { list-style: none; margin: 0; padding: 0; }
.bm-reg__intro li { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-weight: 500; }
.bm-reg__intro li span { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 13px; flex: 0 0 24px; }
.bm-reg__card { padding: 40px 38px; }
.bm-reg__card h3 { font-size: 22px; margin: 0 0 18px; }
.bm-f { display: block; margin-bottom: 14px; }
.bm-f > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.bm-f input, .bm-vendor-fields input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 11px 12px; font: inherit; background: #fff; }
.bm-f input:focus { outline: none; border-color: var(--bm-primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.bm-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-slug-wrap { display: flex; flex-wrap: nowrap; align-items: stretch; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; background: #fff; }
.bm-slug-wrap small { background: #f8fafc; color: var(--bm-muted); padding: 11px 10px; white-space: nowrap; border-right: 1px solid #d1d5db; font-size: 12px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.bm-slug-wrap input { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; }
.bm-slug-msg { display: block; font-size: 13px; margin-top: 4px; }
.bm-slug-msg.ok { color: #15803d; } .bm-slug-msg.bad { color: #b91c1c; }
.bm-fcheck { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 18px; font-size: 14px; }
.bm-fcheck input { margin-top: 4px; accent-color: var(--bm-primary); }
.bm-fbtn, .bm-reg .bm-fbtn, .bm-reg button.bm-fbtn { display: block; width: 100%; text-align: center; background: var(--bm-primary); color: #fff !important; border: 0; border-radius: 10px; padding: 13px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none !important; background-color: var(--bm-primary) !important; color: #fff !important; }
.bm-fbtn:hover { filter: brightness(1.08); }
.bm-fnote { font-size: 14px; color: var(--bm-muted); margin: 14px 0 0; text-align: center; }
.bm-ferror { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.bm-reg__done { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #15803d; display: grid; place-items: center; font-size: 30px; margin-bottom: 16px; }

/* My Account ফর্মে ক্রেতা/বিক্রেতা */
.bm-role-switch { display: flex; gap: 10px; margin: 6px 0 16px; }
.bm-role-switch label { flex: 1; border: 1px solid var(--bm-line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.bm-role-switch label:has(input:checked) { border-color: var(--bm-primary); background: rgba(15, 118, 110, .06); }
.bm-vendor-fields { border-left: 3px solid var(--bm-primary); padding-left: 14px; margin-bottom: 14px; }

/* ---------- দোকানের পেজ ---------- */
.bm-store { max-width: 1200px; margin: 0 auto 40px; padding: 0 16px; }
.bm-store__hero { position: relative; min-height: 260px; border-radius: 0 0 18px 18px; background: linear-gradient(135deg, var(--bm-primary), #0b3b37) center/cover; display: flex; align-items: flex-end; overflow: hidden; }
.bm-store__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.65)); }
.bm-store__info { position: relative; display: flex; align-items: flex-end; gap: 20px; padding: 24px 28px; color: #fff; width: 100%; }
.bm-store__logo { width: 110px; height: 110px; border-radius: 20px; border: 4px solid #fff; object-fit: cover; background: #fff; flex: 0 0 110px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.bm-store__info h1 { color: #fff; margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.bm-verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 13px; vertical-align: middle; }
.bm-store__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; opacity: .95; }
.bm-store__meta a { color: #fff; }
.bm-store__meta .dashicons { font-size: 16px; width: 16px; height: 16px; vertical-align: -3px; }
.bm-store__vacation { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 12px 16px; margin-top: 16px; }
.bm-store__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--bm-line); margin: 10px 0 24px; }
.bm-store__bar nav { display: flex; gap: 4px; }
.bm-store__bar nav a { padding: 14px 16px; font-weight: 600; color: var(--bm-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.bm-store__bar nav a.is-active { color: var(--bm-primary); border-bottom-color: var(--bm-primary); }
.bm-store__bar form { display: flex; gap: 8px; padding: 8px 0; }
.bm-store__bar input, .bm-store__bar select { border: 1px solid var(--bm-line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; background: #fff; }
.bm-store__about { max-width: 760px; font-size: 16px; }
.bm-store__empty { text-align: center; color: var(--bm-muted); padding: 40px 0; }

/* ---------- দোকান-তালিকা ---------- */
.bm-stores__search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 10px; }
.bm-stores__search input { flex: 1; border: 1px solid var(--bm-line); border-radius: 10px; padding: 11px 14px; font: inherit; }
.bm-stores .bm-stores__search button { background: var(--bm-primary); color: #fff; border: 0; border-radius: 10px; padding: 0 20px; font: inherit; font-weight: 600; cursor: pointer; background-color: var(--bm-primary) !important; color: #fff !important; }
.bm-stores__count { text-align: center; color: var(--bm-muted); margin: 0 0 22px; }
.bm-stores__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.bm-scard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bm-line); border-radius: 14px; overflow: hidden; text-decoration: none !important; color: inherit; transition: transform .15s, box-shadow .15s; }
.bm-scard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 23, 42, .1); }
.bm-scard__banner { display: block; height: 110px; background: linear-gradient(135deg, var(--bm-primary), #0b3b37) center/cover; }
.bm-scard__logo { width: 72px; height: 72px; border-radius: 16px; border: 3px solid #fff; margin: -36px auto 0; object-fit: cover; background: #fff; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.bm-scard__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 16px 14px; gap: 2px; flex: 1; }
.bm-scard__body strong { font-size: 17px; color: #111827; }
.bm-scard__body small { color: var(--bm-muted); }
.bm-scard__body em { font-style: normal; font-size: 13px; background: #f1f5f9; border-radius: 99px; padding: 2px 10px; margin-top: 6px; color: #334155; }
.bm-scard__cta { border-top: 1px solid var(--bm-line); padding: 11px; text-align: center; font-weight: 600; color: var(--bm-primary); }
.bm-stores__pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.bm-stores__pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--bm-line); border-radius: 8px; text-decoration: none; color: inherit; }
.bm-stores__pager a.is-active { background: var(--bm-primary); color: #fff; border-color: var(--bm-primary); }

/* ---------- পণ্যের পাতায় বিক্রেতা ---------- */
.bm-vbox { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bm-line); border-radius: 12px; padding: 12px 14px; margin: 18px 0; background: #fafafa; }
.bm-vbox img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: 0 0 46px; }
.bm-vbox__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.bm-vbox__txt small { color: var(--bm-muted); font-size: 12px; }
.bm-vbox__txt a { font-weight: 700; color: #111827; text-decoration: none; }
.bm-vbox__btn { border: 1px solid var(--bm-primary); color: var(--bm-primary) !important; border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.bm-vbox__btn:hover { background: var(--bm-primary); color: #fff !important; }
.bm-vbox__vacation { background: #fffbeb; border-radius: 8px; padding: 8px 12px; color: #92400e; font-size: 14px; }
.bm-loop-vendor { font-size: 13px; color: var(--bm-muted); margin: 2px 0 6px; }
.bm-loop-vendor a { color: var(--bm-muted); text-decoration: none; }
.bm-loop-vendor .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: -2px; }

@media (max-width: 760px) {
	.bm-reg { grid-template-columns: 1fr; margin: 0; border-radius: 12px; }
	.bm-reg__intro, .bm-reg__card { padding: 28px 22px; }
	.bm-reg__intro h2 { font-size: 22px; }
	.bm-f2 { grid-template-columns: 1fr; gap: 0; }
	.bm-store { padding: 0; }
	.bm-store__hero { min-height: 220px; border-radius: 0; }
	.bm-store__info { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
	.bm-store__logo { width: 84px; height: 84px; flex-basis: 84px; }
	.bm-store__info h1 { font-size: 22px; }
	.bm-store__bar, .bm-store__body { padding: 0 16px; }
	.bm-store__bar form { width: 100%; }
	.bm-store__bar input { flex: 1; min-width: 0; }
}
.bm-slug-base { display: block; color: var(--bm-muted); font-size: 12px; margin: -2px 0 6px; word-break: break-all; }

/* v2.1 — দোকানের পেজে ফলো, রেটিং, ভাষা, রিটার্ন */
.bm-store__meta--stats { margin-top: 6px; font-weight: 500; }
.bm-store__meta--stats b { font-size: 16px; }
.bm-store__actions { position: relative; padding-bottom: 6px; }
.bm-follow { display: inline-block; background: #fff; color: var(--bm-primary) !important; border-radius: 999px; padding: 9px 20px; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0,0,0,.2); white-space: nowrap; }
.bm-follow.is-on { background: rgba(255,255,255,.2); color: #fff !important; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.bm-flang { margin-left: auto; margin-right: 12px; font-weight: 600; text-decoration: none; }
.bm-store__h { font-size: 20px; margin: 18px 0 10px; }
.bm-vbox__txt small { display: block; }
.bm-return-box { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--bm-line); border-radius: 12px; }
.bm-return-box h2 { margin-top: 0; font-size: 20px; }
.bm-return-box .bm-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: #f1f5f9; }
.bm-return-box .bm-badge--green { background: #dcfce7; color: #166534; } .bm-return-box .bm-badge--amber { background: #fef3c7; color: #92400e; } .bm-return-box .bm-badge--red { background: #fee2e2; color: #991b1b; } .bm-return-box .bm-badge--blue { background: #dbeafe; color: #1e40af; }
@media (max-width: 720px) { .bm-store__info { flex-wrap: wrap; } .bm-store__actions { width: 100%; } }
