/* ═══════════════════════════════════════════════════════════
   BPR — Popup demand avis + Vitrin
   ═══════════════════════════════════════════════════════════
   Tèm sit la mete pwòp estil li sou TOUT eleman <button> ak
   <textarea/input> (koulè wouj, background, fon sonb, elatriye).
   Pou popup nou an rete pwòp e prevwazib kèlkeswa tèm aktif la
   (klè oswa sonb), nou REYINISYALIZE eleman entèraktif yo
   (`all: unset`) anvan nou aplike pwòp estil nou ak `!important`,
   epi nou fikse koulè kadrayaj la ak `!important` tou pou li pa
   janm pran koulè tèm sonb la.
═══════════════════════════════════════════════════════════ */

.bpr-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999997 !important;
  background: rgba(15, 23, 42, .6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  color-scheme: light;
}
.bpr-overlay.bpr-open {
  opacity: 1;
  pointer-events: auto;
}
.bpr-overlay * { box-sizing: border-box; }

.bpr-box {
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  padding: 30px 24px 24px !important;
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  box-shadow: 0 30px 70px rgba(0,0,0,.4) !important;
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.bpr-overlay.bpr-open .bpr-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.bpr-close {
  all: unset !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 18px !important;
  line-height: 30px !important;
  text-align: center !important;
  cursor: pointer !important;
  display: block !important;
}
.bpr-close:hover { background: #e2e8f0 !important; }

.bpr-title {
  margin: 0 0 6px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  padding-right: 22px !important;
  line-height: 1.35 !important;
  font-family: inherit !important;
}
.bpr-subtitle {
  margin: 0 0 20px !important;
  font-size: 13.5px !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  font-family: inherit !important;
}

/* ── Zetwal ──────────────────────────────────────────────── */
.bpr-stars {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 4px 0 18px !important;
}
.bpr-star {
  all: unset !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 30px !important;
  line-height: 1 !important;
  color: #d8dde5 !important;      /* pa chwazi: gri pal, san bwat */
  cursor: pointer !important;
  transition: color .12s ease, transform .1s ease !important;
  -webkit-tap-highlight-color: transparent;
}
.bpr-star:hover,
.bpr-star.bpr-hover { transform: scale(1.1); }
.bpr-star.bpr-active,
.bpr-star.bpr-hover {
  color: #f5a524 !important;      /* chwazi (oswa apèsi): dore, ranpli */
}

.bpr-comment {
  all: unset !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  /* 16px minimum: anpeche Safari iOS zoome otomatikman sou fòm nan */
  font-size: 16px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  background: #fff !important;
  resize: vertical !important;
  min-height: 64px !important;
  margin-bottom: 14px !important;
}
.bpr-comment::placeholder { color: #94a3b8 !important; opacity: 1 !important; }
.bpr-comment:focus {
  outline: none !important;
  border-color: #1B3DE8 !important;
  box-shadow: 0 0 0 3px rgba(27,61,232,.14) !important;
}

.bpr-error {
  color: #dc2626 !important;
  font-size: 12.5px !important;
  margin: 0 0 10px !important;
  font-family: inherit !important;
}

.bpr-submit {
  all: unset !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  border-radius: 10px !important;
  background: #1B3DE8 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  cursor: pointer !important;
  transition: background .15s ease, opacity .15s ease !important;
}
.bpr-submit:hover { background: #1530c8 !important; }
.bpr-submit:disabled { opacity: .6 !important; cursor: default !important; }

.bpr-thanks {
  text-align: center !important;
  padding: 20px 4px 8px !important;
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
}
.bpr-thanks-ico { font-size: 40px !important; margin-bottom: 10px !important; }
.bpr-thanks > p { margin: 0 !important; font-size: 15px !important; font-weight: 600 !important; color: #0f172a !important; }

/* ── Nòt ba: bouton WhatsApp sipò ────────────────────────── */
.bpr-support {
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.bpr-support-msg {
  margin: 0 0 12px !important;
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}
.bpr-wa {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: #25D366 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 13px 18px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background .15s ease !important;
}
.bpr-wa:hover { background: #1ebe5a !important; }
.bpr-wa svg { flex: 0 0 auto; }

@media (max-width: 420px) {
  .bpr-box { max-width: 94vw !important; padding: 26px 18px 22px !important; border-radius: 16px !important; }
  .bpr-star { width: 36px !important; height: 36px !important; font-size: 27px !important; }
}

/* ═══════════════════════════════════════════════════════════
   BPR — Seksyon vitrin (avis apwouve sou paj akèy)

   Kontrèman ak popup la, seksyon sa a DWE swiv tèm sit la (klè
   oswa sonb) — sit la mete `.bp-theme-dark` sou <html> lè tèm
   sonb la aktif. Règ "klè" yo se default; règ anba yo (scope
   `html.bp-theme-dark ...`) ranplase yo lè tèm sonb la aktif.
═══════════════════════════════════════════════════════════ */

.bpr-showcase {
  display: block !important;
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  padding: 46px 20px 54px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  transition: background-color .2s ease;
}
.bpr-showcase * { box-sizing: border-box; }
.bpr-showcase-inner { width: 100%; }

.bpr-showcase-head {
  text-align: center !important;
  margin-bottom: 28px !important;
}
.bpr-showcase-title {
  font-size: clamp(1.2rem, 3.4vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
}
.bpr-showcase-stats {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  font-size: 14px !important;
  color: #475569 !important;
}
.bpr-avg { display: inline-flex !important; align-items: center !important; gap: 6px !important; font-weight: 700 !important; color: #0f172a !important; }
.bpr-avg-num { font-size: 18px !important; }
.bpr-star-row { color: #f5a524 !important; letter-spacing: 1px !important; font-size: 15px !important; }
.bpr-count { color: #64748b !important; }

/* ── Distribisyon nòt yo (5★ … 1★) ──────────────────────── */
.bpr-summary {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
}
.bpr-summary.bpr-has-dist .bpr-avg-num { font-size: 26px !important; }
@media (min-width: 640px) {
  .bpr-summary.bpr-has-dist {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 28px !important;
  }
  .bpr-summary.bpr-has-dist .bpr-showcase-stats {
    flex-direction: column !important;
    gap: 4px !important;
  }
}
.bpr-dist {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}
.bpr-dist-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.2 !important;
}
.bpr-dist-row::before, .bpr-dist-row::marker { content: none !important; }
.bpr-dist-label { flex: 0 0 24px !important; text-align: right !important; font-weight: 600 !important; }
.bpr-dist-bar {
  flex: 1 1 auto !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #eef0f5 !important;
  overflow: hidden !important;
}
.bpr-dist-fill {
  display: block !important;
  height: 100% !important;
  border-radius: 999px !important;
  background: #f5a524 !important;
}
.bpr-dist-n { flex: 0 0 28px !important; text-align: left !important; }

.bpr-carousel {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.bpr-track {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 12px !important;
  flex: 1 1 auto;
  min-width: 0;
  /* Kache bar defile a — rès nan navigatè yo respekte swipe/defile natirèl la kanmenm */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bpr-track::-webkit-scrollbar { display: none; }

.bpr-nav {
  all: unset !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 20px !important;
  line-height: 34px !important;
  text-align: center !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.08) !important;
  transition: background .15s ease, transform .1s ease !important;
}
.bpr-nav:hover { background: #f8fafc !important; }
.bpr-nav:active { transform: scale(.94); }

/* ── Kat "bwat mesaj" ────────────────────────────────────── */
.bpr-card {
  position: relative !important;
  flex: 0 0 270px !important;
  /* v2.0: wotè minimòm olye de wotè fiks — tout kat yo pran wotè pi gwo a
     nan ranje a (flex stretch), men kwapaj yo (kòmantè 4 liy, pwodwi 1 liy,
     repons 2 liy) anpeche yon sèl kat vin jeyan. */
  min-height: 232px !important;
  scroll-snap-align: start;
  background: #ffffff !important;
  border: 1px solid #eef0f5 !important;
  border-radius: 20px !important;
  border-top-left-radius: 6px !important; /* ti kwen sa a bay lè "bwat mesaj" la */
  padding: 20px 20px 16px !important;
  box-shadow: 0 6px 20px rgba(15,23,42,.07) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow: hidden !important;
  transition: background-color .2s ease, border-color .2s ease;
}
.bpr-quote {
  position: absolute !important;
  top: 8px !important;
  right: 16px !important;
  font-size: 46px !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  color: #1B3DE8 !important;
  opacity: .08 !important;
  line-height: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
}
.bpr-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.bpr-avatar {
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1B3DE8, #4f6bf0) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: .3px !important;
}
.bpr-card-who {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
.bpr-card-name {
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bpr-card-stars { font-size: 12px !important; }
.bpr-badge {
  margin-left: auto !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #047857 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}
.bpr-card-comment {
  margin: 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  word-wrap: break-word;
  position: relative !important;
  z-index: 1 !important;
  flex: 0 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  text-overflow: ellipsis !important;
}
/* Pwodwi achte a — 1 liy */
.bpr-card-products {
  margin: -2px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bpr-card-products strong { color: #334155 !important; font-weight: 600 !important; }

/* Repons Boutik Pam */
.bpr-card-reply {
  display: block !important;
  background: #f5f7ff !important;
  border-left: 3px solid #1B3DE8 !important;
  border-radius: 4px 10px 10px 4px !important;
  padding: 7px 10px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #334155 !important;
  position: relative !important;
  z-index: 1 !important;
}
.bpr-reply-who {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #1B3DE8 !important;
  margin-bottom: 2px !important;
}
.bpr-card .bpr-reply-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.bpr-read-reply .bpr-reply-text { white-space: pre-line !important; }
/* Lè gen yon repons, kòmantè a kwape a 3 liy pou kat la rete kontwole. */
.bpr-card.bpr-has-reply .bpr-card-comment { -webkit-line-clamp: 3 !important; }

.bpr-read-more {
  all: unset !important;
  display: inline-block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1B3DE8 !important;
  cursor: pointer !important;
  margin-top: -4px !important;
  padding: 2px 0 !important;
}
.bpr-read-more:hover { text-decoration: underline !important; }
.bpr-card-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 6px !important;
  border-top: 1px solid #f1f5f9 !important;
}
.bpr-card-orders {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #1B3DE8 !important;
  white-space: nowrap !important;
}
.bpr-card-date {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

@media (max-width: 480px) {
  .bpr-showcase { padding: 34px 16px 40px !important; }
  .bpr-card { flex-basis: 250px !important; }
  .bpr-nav { display: none !important; } /* sou mobil, swipe fè travay la — bouton yo pran plas pou anyen */
}

/* ── Modal "Li plis" (kòmantè konplè) ───────────────────────
   Menm mekanis ak popup demand avis la: rete BLAN toujou, ni
   nan tèm klè ni nan tèm sonb — fasil pou li ak fasil pou fèmen.
─────────────────────────────────────────────────────────── */
.bpr-read-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999996 !important;
  background: rgba(15, 23, 42, .6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  color-scheme: light;
}
.bpr-read-overlay.bpr-open { opacity: 1; pointer-events: auto; }
.bpr-read-overlay * { box-sizing: border-box; }

.bpr-read-box {
  position: relative !important;
  width: 100% !important;
  max-width: 400px !important;
  max-height: 82vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  padding: 26px 22px 22px !important;
  font-family: 'Poppins', Arial, Helvetica, sans-serif !important;
  box-shadow: 0 30px 70px rgba(0,0,0,.4) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .2s ease, opacity .2s ease;
}
.bpr-read-overlay.bpr-open .bpr-read-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.bpr-read-box .bpr-card-top { gap: 10px !important; }
.bpr-read-box .bpr-avatar { width: 42px !important; height: 42px !important; font-size: 14px !important; }
.bpr-read-box .bpr-card-name { font-size: 14.5px !important; }

.bpr-read-comment {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  white-space: pre-line !important;
}
.bpr-read-box .bpr-card-products { white-space: normal !important; margin: 0 !important; }
.bpr-read-box [hidden] { display: none !important; }
.bpr-read-box .bpr-card-foot {
  border-top: 1px solid #f1f5f9 !important;
}

/* ═══════════════════════════════════════════════════════════
   BPR — Vèsyon TÈM SONB (html.bp-theme-dark)
   Sèlman vitrin lan adapte — popup la rete blan toujou.
═══════════════════════════════════════════════════════════ */
html.bp-theme-dark .bpr-showcase-title,
html.bp-theme-dark .bpr-avg,
html.bp-theme-dark .bpr-card-name {
  color: #f1f5f9 !important;
}
html.bp-theme-dark .bpr-showcase-stats,
html.bp-theme-dark .bpr-count {
  color: #94a3b8 !important;
}
html.bp-theme-dark .bpr-nav {
  background: #1a2338 !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
}
html.bp-theme-dark .bpr-nav:hover { background: #212c47 !important; }

html.bp-theme-dark .bpr-card {
  background: #131b30 !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important;
}
html.bp-theme-dark .bpr-quote { color: #ffffff !important; opacity: .06 !important; }
html.bp-theme-dark .bpr-card-comment { color: #cbd5e1 !important; }
html.bp-theme-dark .bpr-card-foot { border-top-color: rgba(255,255,255,.08) !important; }
html.bp-theme-dark .bpr-card-orders { color: #7c93f5 !important; }
html.bp-theme-dark .bpr-card-date { color: #64748b !important; }
html.bp-theme-dark .bpr-card .bpr-card-products { color: #94a3b8 !important; }
html.bp-theme-dark .bpr-card .bpr-card-products strong { color: #cbd5e1 !important; }
html.bp-theme-dark .bpr-card .bpr-card-reply {
  background: rgba(124,147,245,.10) !important;
  border-left-color: #7c93f5 !important;
  color: #cbd5e1 !important;
}
html.bp-theme-dark .bpr-card .bpr-reply-who { color: #7c93f5 !important; }
html.bp-theme-dark .bpr-dist-row { color: #94a3b8 !important; }
html.bp-theme-dark .bpr-dist-bar { background: rgba(255,255,255,.10) !important; }
html.bp-theme-dark .bpr-badge {
  background: rgba(16,185,129,.14) !important;
  border-color: rgba(16,185,129,.35) !important;
  color: #34d399 !important;
}

/* Modal "Li plis" la rete BLAN nan tèm sonb tou: anile règ sonb kat yo. */
html.bp-theme-dark .bpr-read-box .bpr-card-name { color: #0f172a !important; }
html.bp-theme-dark .bpr-read-box .bpr-card-orders { color: #1B3DE8 !important; }
html.bp-theme-dark .bpr-read-box .bpr-card-date { color: #94a3b8 !important; }
html.bp-theme-dark .bpr-read-box .bpr-card-foot { border-top-color: #f1f5f9 !important; }
html.bp-theme-dark .bpr-card .bpr-read-more { color: #7c93f5 !important; }
