/* Up-Sells Products Carousel Styling */

/* Up-sells sectie - witte achtergrond in plaats van lichtblauw */
.tty-up-sells-wrapper {
  position: relative;
  width: 100%;
  padding: 100px 0px;
  max-width: 100%;
  overflow: hidden;
}

.carousel-item-action.tty-up-sell-button {
  display: none;
}

.tty-up-sells-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 30px; /* Meer padding om ruimte te maken voor de pijlen */
  position: relative;
}

.tty-up-sells-header {
  margin-bottom: 40px;
  text-align: center;
}

.tty-up-sells-header h2 {
  color: #121212;
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 40px;
  margin: 0;
}

.tty-up-sells-header p {
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* Product item styling voor up-sells */
.tty-up-sell-item {
  flex: 0 0 auto;
  width: calc((100% - (3 * 20px)) / 4); /* 4 items per rij met 20px gap */
  margin: 0 !important;
  border: 1px solid #edf4f6; /* Subtiele rand voor witte achtergrond */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Zachtere schaduw */
  overflow: hidden;
  opacity: 0; /* Standaard onzichtbaar */
  transition: all 0.3s ease;
}

.tty-up-sell-item.visible-slide {
  opacity: 1; /* Zichtbaar wanneer actief */
}

.tty-up-sell-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.tty-up-sell-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #121212;
}

.tty-up-sell-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background-color: #f9f9f9; /* Lichte achtergrond voor afbeeldingen */
}

.tty-up-sell-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tty-up-sell-item:hover .tty-up-sell-image img {
  transform: scale(1.05);
}

.tty-up-sell-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tty-up-sell-title {
font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #121212;
  display: block;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tty-up-sell-price {
  margin-bottom: 10px;
}

.tty-up-sell-price .price {
  font-size: 18px;
  font-weight: 600;
  color: #121212 !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -1px !important;
}

.tty-up-sell-price .price del {
  color: #999;
  font-size: 14px;
  margin-right: 5px;
}

.tty-up-sell-price .price ins {
  text-decoration: none;
  color: #005f5f;
}

.tty-up-sell-item .tty-variable-label {
  display: inline-block;
  font-size: 12px;
  background: #edf4f6;
  color: #005f5f;
  padding: 4px 10px;
  border-radius: 20px;
}

.tty-up-sell-button {
  display: inline-block;
  background: #dbe5e3;
  color: #121212;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: fit-content;
}

.tty-up-sell-button i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.tty-up-sell-item:hover .tty-up-sell-button {
  background: #005f5f;
  color: #fff;
}

.tty-up-sell-item:hover .tty-up-sell-button i {
  transform: translateX(3px);
}

/* Carousel specifieke styling */
.tty-up-sells-wrapper .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #121212;
  border: 1px solid #edf4f6; /* Subtiele rand */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20; /* Verhoogde z-index om boven content te blijven */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tty-up-sells-wrapper .carousel-nav:hover {
  background-color: #005f5f;
  color: #fff;
  border-color: #005f5f;
}

.tty-up-sells-wrapper .carousel-prev {
  left: 5px; /* Aangepast om binnen de container te blijven */
}

.tty-up-sells-wrapper .carousel-next {
  right: 5px; /* Aangepast om binnen de container te blijven */
}

.tty-up-sells-wrapper .carousel-item {
  border: none;
}

.tty-up-sells-header h2 {
  color: #121212;
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 40px;
  margin: 0;
  text-align: center;
}

.tty-up-sells-wrapper .tty-up-sells-grid {
  display: flex;
  transition: transform 0.5s ease;
  overflow: visible !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 !important;
  gap: 20px; /* Gebruik gap in plaats van margins voor consistentere spacing */
}

.tty-up-sells-wrapper .tty-up-sells-grid::-webkit-scrollbar {
  display: none;
}

/* Sale badge styling */
.tty-up-sell-image .onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e5924c;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 2;
}

/* Responsive styling */
@media (max-width: 1200px) {
  .tty-up-sell-item {
    width: calc((100% - (2 * 20px)) / 3); /* 3 items per rij op kleinere desktop */
  }
}

@media (max-width: 992px) {
  .tty-up-sell-item {
    width: calc((100% - 20px) / 2); /* 2 items per rij op tablet */
  }
  
  .tty-up-sells-content {
    padding: 0 20px;
  }
  
  .tty-up-sells-header h2 {
    font-size: 32px;
    line-height: 36px;
  }
}

@media (max-width: 768px) {
  .tty-up-sell-item {
    width: calc(100% - 40px); /* 1 item per rij op mobiel met marges */
    margin: 0 20px !important;
    scroll-snap-align: center;
  }
  
  .tty-up-sells-wrapper {
    padding: 30px 0 50px;
  }
  
  .tty-up-sells-wrapper .treatments-carousel-slider {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px; /* Ruimte voor scroll indicator */
  }
  
  .tty-up-sells-wrapper .carousel-nav {
    display: none; /* Verberg pijlen op mobiel */
  }
  
  .tty-up-sells-wrapper .carousel-progress-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .tty-up-sells-wrapper .carousel-progress-dots .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    transition: background-color 0.3s ease;
  }
  
  .tty-up-sells-wrapper .carousel-progress-dots .progress-dot.active {
    background-color: #005f5f;
  }
  
  .tty-up-sells-header h2 {
    font-size: 28px;
    line-height: 32px;
  }
  
  .tty-up-sells-header p {
    font-size: 15px;
  }
}