/* ===========================================
   OVERLAY DE PARTAGE PRODUIT
   =========================================== */

.product-share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-share-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-share-overlay .overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
}

.product-share-overlay .overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-share-overlay.active .overlay-panel {
  transform: translateX(0);
}

.product-share-overlay .overlay-gradient {
  width: 40%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 1) 100%
  );
  cursor: pointer;
}

.product-share-overlay .overlay-panel-content {
  width: 60%;
  background: #fff;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow: hidden;
  height: 100vh;
}

.product-share-overlay .overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  height: 80px;
  padding: 0 120px 0 100px;
  text-transform: uppercase;
}

.product-share-overlay .overlay-header h3 {
  margin: 0;
  font-size: 1.3em;
  font-weight: 600;
  background-image: url("../assets/icons/icon-share.svg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 40px;
  padding-left: 60px;
}

.product-share-overlay .overlay-close {
  background: #000;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../assets/icons/icon-close-white.svg");
  background-size: 40px 40px;
  background-repeat: no-repeat;
  background-position: center center;
}

.product-share-overlay .overlay-close:hover {
  background-size: 30px 30px;
}

.product-share-overlay .overlay-body {
  flex: 1;
  padding: 50px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* AddToAny */
.product-share-overlay .a2a_kit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 520px;
  min-width: 300px;
}

.product-share-overlay .a2a_kit a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border: 2px solid #000;
  background: #fff !important;
  color: #000 !important;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-share-overlay .a2a_kit a:hover {
  background: #000 !important;
  color: #fff !important;
  transform: scale(1.02);
}

/* Bouton “plus” AddToAny (icône) */
.product-share-overlay .a2a_dd {
  justify-content: center;
}



/* Cibler uniquement l’overlay produit : en global, cela masquait les icônes AddToAny ailleurs (ex. single exposition). */
.product-share-overlay .a2a_default_style:not(.a2a_flex_style) a span {
  display: none !important;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1400px){}
@media (max-width: 1200px){

  .product-share-overlay .overlay-gradient{width:15%;background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgb(255, 255, 255) 100%);}
  .product-share-overlay .overlay-panel-content{width:85%;}

}

@media (max-width: 768px){

    .product-share-overlay .overlay-header{height:60px;}
    .product-share-overlay .overlay-close{width:60px;height:60px;}

    .product-share-overlay{height: 100vh;height: 100dvh;}

    .product-share-overlay .overlay-gradient{width:0%;display:none;}

    .product-share-overlay .overlay-panel-content{width:100%;height: 100vh;height: 100dvh;max-height: 100vh;max-height: 100dvh;}

    .product-share-overlay .overlay-header{
      width:100%;
      padding:0px 0px 0px 10px!important;
      margin: 0 auto;
      background:#000;
    }
    .product-share-overlay .overlay-header h3{
      color:#FFF;
      font-size:1em;
      padding-left: 40px;
      background-image: url("../assets/icons/white-share-icon.svg");
      background-size: 30px;
      padding-left: 50px;
    }
    .product-share-overlay .overlay-body{padding:7%;}

    
}
