:root {
  --swiper-theme-color: #ec2029;
}


/* tests tart */

.product-flex-container {
  width: 100%;
  background-color: #fffbfb;
  background-position: 120% 120%;
  height: 220px;
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 10px;
  flex-wrap: wrap;
  /* padding: 2rem; */
}

.related-product-flex-container {
  width: 100%;
  background-color: #fffbfb;
  background-position: 120% 120%;
  height: 220px;
  display: flex;
  align-items: center !important;
  border-radius: 10px;
  flex-wrap: wrap;
  /* padding: 2rem; */
}

.product-flex-item,
.related-product-flex-item {
  align-self: center;
  height: 140px;
  width: 140px;
  background-color: #fff;
  /* border: 1px solid black; */
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  ;
}

.product-flex-item img,
.related-product-flex-item img {
  width: 120px;
}



.swiper-button-prev::after, .swiper-button-next::after{
  font-size: small;
  transition: all .4s ease-in-out;
}

.navigation-button {
  opacity: calc(.5);
  font-size: 2px;
  background-color: #505050;
  color: var(--white);
  position: absolute;
  cursor: pointer;
  width: 45px;
  height: 45px;
  line-height: 5px;
  text-align: center;
  transition: all 0.4s ease-in-out;
  background-blend-mode: hard-light;
  border-radius: 50%;
  transition: all .4s ease-in-out;
  box-shadow: 0 4px 8px 0 rgba(253, 1, 1, 0.2), 0 6px 20px 0 rgba(255, 0, 0, 0.151);
}

.navigation-button:hover {
  background-color: var(--theme-red);
  opacity: calc(1);
}
.navigation-button:hover::after {
  font-weight: bolder;
  transform: scale(1.5);
}

.navigation-button-right {
  right: 0;
}
.navigation-button-left{
  left: 0;
}

/* related produt slider  */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 10px 40px;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding-bottom: 10px;
}

.carousel-item {
  min-width: 200px;
  flex: 0 0 auto;
}

.carousel-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: var(--boxes-bg);
  color: #333;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

@media (max-width: 768px) {
  .carousel-item {
      min-width: 150px;
  }
}



