/* ===================================
   POPUP SLIDER - Produits en boutique
   =================================== */

/* Overlay limité au slider - hauteur du visuel uniquement */
.slider-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% - 114px);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .slider-popup-overlay {
    height: calc(100% - 50px);
  }
}

/* Popup centrée */
.slider-popup-content {
  background: #ffffffe0;
  padding: 20px 25px;
  text-align: center;
  max-width: 400px;
  width: calc(100% - 60px);
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  
  /* Styles du body */
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  line-height: 30px;
  color: #000;
  letter-spacing: 0.05em;
}

.slider-popup-content p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 30px;
  color: #000;
  letter-spacing: 0.05em;
  padding: 0 15px;
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .slider-popup-overlay {
    height: calc(100% - 50px);
  }
  
  .slider-popup-content {
    padding: 15px 35px 15px 25px;
    margin: 0 20px;
    width: calc(100% - 40px);
    max-width: 300px;
  }
  
  .slider-popup-content p {
    padding: 0 15px;
  }
}

/* Croix de fermeture */
.slider-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.slider-popup-close::before,
.slider-popup-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #000;
  transform-origin: center;
}

.slider-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.slider-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.slider-popup-close:hover::before,
.slider-popup-close:hover::after {
  background: #333;
}
