.osc-upsell-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px;
    padding-bottom: 40px;
    overflow: hidden;
}

.osc-upsell-carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(.45,0,.55,1);
    gap: 16px;
    width: 1000%;
}

.osc-upsell-slide {
    padding: 10px;
    border-radius: 8px;
    background: #f7f7fb;
    gap: 10px;
    width: 207px;
    display: flex;
    align-items: center;
    position: relative;
}

.osc-upsell-carousel button.single_add_to_cart_button {
    padding: 0;
    height: 23px;
    width: 23px;
    text-align: center;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 60px;
    line-height: 25px;
    font-size: 21px;
    font-weight: 400;
    background-color: transparent!important;
    color: var(--e-global-color-primary);
}

.osc-upsell-carousel button.single_add_to_cart_button:hover {
    background-color: var(--e-global-color-primary)!important;
    color: #fff;
}

.osc-upsell-carousel button.single_add_to_cart_button.loading {
    border-color: transparent;
}

.osc-upsell-carousel button.single_add_to_cart_button::after {
    border-top-color: transparent !important;
    border: 2px solid var(--e-global-color-primary);
}

.osc-upsell-carousel button.single_add_to_cart_button.added {
    background-color: #4CAF50 !important;
    color: #fff !important;
    border-color: #4CAF50 !important;
    pointer-events: none;
}

.osc-upsell-image {
    height: 40px;
    width: 40px;
}

.osc-upsell-image img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.osc-upsell-title {
    font-family: "EB Garamond", Sans-serif;
    color: var(--e-global-color-primary);
    font-style: italic;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
}

.osc-upsell-price {
    font-size: 12px;
    color: var(--e-global-color-primary);
    font-weight: 500;
    margin-top: 5px;
}

.osc-upsell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.osc-upsell-top h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--e-global-color-primary);
}

.osc-upsell-bouttons {
    display: flex;
    gap: 5px;
}

.osc-upsell-prev,
.osc-upsell-next {
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    border-radius: 60px;
    height: 20px;
    width: 20px;
    padding: 0;
    background-color: #fff;
    border: 1px solid var(--e-global-color-primary);
    text-align: center;
    transition: .3s all;
    cursor: pointer;
}

.osc-upsell-prev:hover,
.osc-upsell-next:hover {
    color: #fff;
    background-color: var(--e-global-color-primary);
}

.osc-upsell-prev.disabled,
.osc-upsell-next.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

/* Styles pour les éléments cliquables */
.osc-product-clickable {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.osc-product-clickable:hover {
  opacity: 0.8;
}

/* Popup produit */
.osc-product-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.osc-product-popup.show {
  opacity: 1;
  visibility: visible;
}

.osc-product-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.osc-product-popup-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 800px;
  max-height: 90vh;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.osc-product-popup.show .osc-product-popup-content {
  transform: scale(1) translateY(0);
}


/* Le bouton de fermeture est maintenant directement dans le content */

.osc-product-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.osc-product-popup-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.osc-product-popup-close svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.osc-product-popup-body {
  display: flex;
  min-height: 400px;
}

.osc-product-popup-image {
  flex: 1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.osc-product-popup-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.osc-product-popup-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
}

/* Carousel galerie produit simple */
.osc-product-gallery-carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.osc-product-gallery-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.osc-product-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.osc-product-gallery-slide.active {
  opacity: 1;
}

.osc-product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  border-radius: 8px 0px 0px 8px;
}

/* Navigation */
.osc-product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
  z-index: 10;
}

.osc-product-gallery-prev {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.osc-product-gallery-next {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.osc-product-gallery-prev,
.osc-product-gallery-next {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.osc-product-gallery-prev:hover,
.osc-product-gallery-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.osc-product-gallery-prev svg,
.osc-product-gallery-next svg {
  color: #fff;
  width: 18px;
  height: 18px;
}

/* Bullets */
.osc-product-gallery-bullets {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.osc-product-gallery-bullet {
  width: 8px;
  height: 8px;
  padding: 0 !important;
  border-radius: 50% !important;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer !important;
  transition: all 0.3s ease;
}

.osc-product-gallery-bullet.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.osc-product-gallery-bullet:hover {
  background: rgba(255, 255, 255, 0.6);
}

.osc-product-popup-info {
  flex: 1;
  padding: 32px;
}

.osc-product-popup-title {
  font-family: "EB Garamond", Sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--e-global-color-primary, #2e5a2d);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.osc-product-popup-description {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 16px;
  flex-grow: 1;
}

.osc-product-popup-price {
  font-family: "El Messiri", Sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--e-global-color-secondary, #666);
  margin-bottom: 16px;
}

.osc-product-popup-categories {
  margin-bottom: 24px;
}

.osc-product-popup-categories .osc-item-label {
  display: inline-block;
  font-family: "Inter", sans-serif;
  color: #fff;
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  background: var(--e-global-color-primary, #2e5a2d);
  padding: 5px 10px;
  border-radius: 20px;
}

.osc-product-popup-add-button {
  background: var(--e-global-color-primary);
  color: white;
  border: none;
  padding: 16px 24px!important;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.osc-product-popup-add-button:hover {
  opacity: 0.8;
}

.osc-product-popup-add-button.loading {
  color: transparent;
}

.osc-product-popup-add-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: osc-spinner 0.6s linear infinite;
}

.osc-product-popup-add-button.added {
  background: #28a745;
}

.osc-product-popup-add-icon {
  display: none;
}

.osc-product-popup-add-button.added .osc-product-popup-add-text {
  display: none;
}

.osc-product-popup-add-button.added .osc-product-popup-add-icon {
  display: inline;
}

/* Responsive */
@media (max-width: 768px) {
  .osc-product-popup-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .osc-product-popup-body {
    flex-direction: column;
    min-height: auto;
  }
  
  .osc-product-popup-image {
    min-height: 250px;
    max-height: 250px;
  }
  
  .osc-product-popup-info {
    padding: 24px;
  }
  
  .osc-product-popup-title {
    font-size: 20px;
  }
  
  .osc-product-popup-description {
    font-size: 13px;
  }
  
  .osc-product-popup-price {
    font-size: 18px;
  }
  
  /* Carousel responsive */
  .osc-product-gallery-prev,
  .osc-product-gallery-next {
    width: 28px;
    height: 28px;
  }
  
  .osc-product-gallery-prev svg,
  .osc-product-gallery-next svg {
    width: 14px;
    height: 14px;
  }
  
  .osc-product-gallery-prev {
    left: 4px;
  }
  
  .osc-product-gallery-next {
    right: 4px;
  }
  
  .osc-product-gallery-bullet {
    width: 3px;
    height: 3px;
  }
}
