:root{
  --pbcw-blue: #1d8aeb;
  --pbcw-navy: #163b57;
  --pbcw-border: #d7e3ee;
  --pbcw-text: #263544;
}

/* ===============================
   COEUR — bouton (verrouillé contre les styles par défaut
   de bouton du thème, qui donnaient une forme ovale)
=============================== */

.pbcw-heart{
  appearance: none !important;
  border: none !important;
  background: rgba(255,255,255,.9) !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22,59,87,.18);
  transition: transform .15s ease, background .2s ease;
  line-height: 1 !important;
}

.pbcw-heart:hover{
  transform: scale(1.08);
}

.pbcw-heart-icon{
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: var(--pbcw-navy) !important;
  stroke-width: 1.8 !important;
  transition: fill .2s ease, stroke .2s ease;
  pointer-events: none;
}

.pbcw-heart.is-active{
  background: var(--pbcw-blue) !important;
}

.pbcw-heart.is-active .pbcw-heart-icon{
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* ===============================
   COEUR — grille/liste catalogue
   En ligne juste après le titre (pas de superposition sur la photo,
   qui dépendait trop d'un contexte de positionnement fragile).
=============================== */

.pbcw-heart-wrap-loop{
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
  margin-left: 10px;
}

.pbcw-heart-tip{
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 13px;
  color: var(--pbcw-navy) !important;
  transition: max-width .25s ease, opacity .2s ease, margin-left .25s ease;
  margin-left: 0;
}

.pbcw-heart-wrap-loop:hover .pbcw-heart-tip{
  max-width: 220px;
  opacity: 1;
  margin-left: 9px;
}

/* ===============================
   COEUR — fiche produit
=============================== */

.pbcw-heart-wrap-single{
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
}

.pbcw-heart-wrap-single .pbcw-heart{
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  background: #eef5fb !important;
  box-shadow: none !important;
  border: 1.5px solid var(--pbcw-border) !important;
}

.pbcw-heart-wrap-single .pbcw-heart-icon{
  stroke: var(--pbcw-blue) !important;
}

.pbcw-heart-wrap-single .pbcw-heart.is-active{
  background: var(--pbcw-blue) !important;
  border-color: var(--pbcw-blue) !important;
}

.pbcw-heart-label{
  font-size: 14px;
  color: var(--pbcw-text) !important;
}

/* ===============================
   BOUTON FLOTTANT
=============================== */

.pbcw-float-btn{
  appearance: none !important;
  position: fixed !important;
  right: 22px;
  bottom: 22px;
  z-index: 999998;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  background: var(--pbcw-navy) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(22,59,87,.35);
  transition: transform .2s ease;
  line-height: 1 !important;
}

.pbcw-float-btn:hover{
  transform: scale(1.06);
}

.pbcw-float-icon{
  display: block !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 1.8 !important;
  width: 24px !important;
  height: 24px !important;
  pointer-events: none;
}

.pbcw-float-count{
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pbcw-blue);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.pbcw-float-count[hidden]{
  display: none !important;
}

/* ===============================
   PANNEAU (DRAWER) — contrôlé par classe .is-open,
   jamais par l'attribut hidden seul (qu'une règle display
   explicite ici pourrait annuler).
=============================== */

.pbcw-overlay{
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(22,59,87,.45);
  z-index: 999999;
}

.pbcw-overlay.is-open{
  display: block !important;
}

.pbcw-drawer{
  display: none !important;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: #ffffff;
  z-index: 1000000;
  box-shadow: -8px 0 30px rgba(22,59,87,.2);
  flex-direction: column;
  padding: 40px 24px 24px;
  overflow-y: auto;
  font-family: Georgia, 'Times New Roman', serif;
}

.pbcw-drawer.is-open{
  display: flex !important;
}

.pbcw-drawer-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pbcw-drawer-title{
  font-size: 22px;
  color: var(--pbcw-navy) !important;
  margin: 0;
}

.pbcw-close-btn{
  appearance: none !important;
  border: none !important;
  background: transparent !important;
  font-size: 26px;
  line-height: 1;
  color: var(--pbcw-navy) !important;
  cursor: pointer;
  padding: 4px 8px !important;
}

.pbcw-drawer-intro{
  font-size: 13px;
  color: #6b7680 !important;
  margin: 0 0 18px;
  font-style: italic;
}

.pbcw-items{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.pbcw-item{
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--pbcw-border);
  border-radius: 12px;
  padding: 8px 10px;
}

.pbcw-item img{
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.pbcw-item-info{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pbcw-item-title{
  font-size: 14px;
  color: var(--pbcw-text) !important;
  text-decoration: none;
}

.pbcw-item-title:hover{
  color: var(--pbcw-blue) !important;
}

.pbcw-item-price{
  font-size: 13px;
  font-weight: 700;
  color: var(--pbcw-blue) !important;
}

.pbcw-qty{
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.pbcw-qty-btn{
  appearance: none !important;
  border: 1.5px solid var(--pbcw-border) !important;
  background: #ffffff !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1 !important;
  color: var(--pbcw-navy) !important;
  cursor: pointer;
}

.pbcw-qty-btn:hover{
  background: #eef5fb !important;
  border-color: var(--pbcw-blue) !important;
}

.pbcw-qty-value{
  font-size: 13px;
  font-weight: 700;
  color: var(--pbcw-text) !important;
  min-width: 16px;
  text-align: center;
}

.pbcw-item-remove{
  appearance: none !important;
  border: none !important;
  background: transparent !important;
  font-size: 20px;
  color: #9aa3ab !important;
  cursor: pointer;
  padding: 4px 6px !important;
  flex: none;
}

.pbcw-item-remove:hover{
  color: #a3313a !important;
}

.pbcw-empty{
  display: none;
  text-align: center;
  padding: 30px 10px;
  color: #6b7680 !important;
}

.pbcw-empty.is-visible{
  display: block;
}

.pbcw-empty-icon{
  fill: none !important;
  stroke: var(--pbcw-border) !important;
  stroke-width: 1.5 !important;
  width: 44px !important;
  height: 44px !important;
  margin-bottom: 10px;
}

.pbcw-empty p{
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.pbcw-success{
  display: none;
  text-align: center;
  padding: 40px 10px;
}

.pbcw-success.is-visible{
  display: block;
}

.pbcw-success-icon{
  fill: none !important;
  stroke: var(--pbcw-blue) !important;
  stroke-width: 1.6 !important;
  margin-bottom: 14px;
}

.pbcw-success-icon path{
  stroke: var(--pbcw-blue) !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pbcw-success p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--pbcw-text) !important;
  margin: 0;
}

.pbcw-form{
  display: none;
  border-top: 1px solid var(--pbcw-border);
  padding-top: 18px;
  margin-top: auto;
  flex-direction: column;
  gap: 12px;
}

.pbcw-form.is-visible{
  display: flex;
}

.pbcw-form-title{
  font-size: 16px;
  font-weight: bold;
  color: var(--pbcw-navy) !important;
  margin: 0;
}

.pbcw-form-note{
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7680 !important;
  font-style: italic;
  margin: -4px 0 2px;
}

.pbcw-form label{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--pbcw-text) !important;
}

.pbcw-optional{
  color: #9aa3ab;
  font-weight: normal;
}

.pbcw-form input,
.pbcw-form textarea{
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--pbcw-border);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fbfbf8;
}

.pbcw-form input:focus,
.pbcw-form textarea:focus{
  border-color: var(--pbcw-blue);
  outline: none;
  background: #ffffff;
}

.pbcw-submit-btn{
  appearance: none !important;
  border: none !important;
  background: var(--pbcw-blue) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: background .2s ease;
}

.pbcw-submit-btn:hover:not(:disabled){
  background: var(--pbcw-navy) !important;
}

.pbcw-submit-btn:disabled{
  opacity: .6;
  cursor: default;
}

.pbcw-form-status{
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}

.pbcw-form-status.is-success{
  color: #2e6b3e !important;
}

.pbcw-form-status.is-error{
  color: #a3313a !important;
}

@media (max-width: 480px){
  .pbcw-drawer{
    width: 100vw;
    max-width: 100vw;
  }
}
