/**
 * Bouton partage produit — cartes catalogue & admin
 */

.home-product-card,
.dash-prod-card,
.carousel,
.produit-gallery-main {
  position: relative;
}

.home-product-card > .pshare {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 15;
}

.dash-prod-card > .pshare {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  z-index: 15;
}

.carousel > .pshare {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 15;
}

.produit-gallery-main > .pshare {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 15;
}

.pshare__toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-orange, var(--couleur-dominante, #f25c19));
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.14);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pshare__toggle:hover,
.pshare__toggle:focus-visible {
  background: var(--color-orange, var(--couleur-dominante, #f25c19));
  color: var(--color-blanc, #fff);
  outline: none;
}

.pshare__toggle[aria-expanded="true"] {
  background: var(--color-orange, var(--couleur-dominante, #f25c19));
  color: var(--color-blanc, #fff);
}

.produit-gallery-main > .pshare .pshare__toggle {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .home-product-card > .pshare {
    top: 6px;
    left: 6px;
  }

  .dash-prod-card > .pshare {
    top: 8px;
    right: 8px;
  }

  .carousel > .pshare,
  .produit-gallery-main > .pshare {
    top: 10px;
    right: 10px;
  }

  .pshare__toggle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .produit-gallery-main > .pshare .pshare__toggle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}
