.product-container {
    padding-left: 20px;
    padding-right: 20px;
}
.product-box {
  user-select: none;
  padding: 0.6rem;
  margin-top: 0.5rem;
  background-color: var(--bg-box);
  border-radius: 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  column-gap: 1rem;
align-items: flex-start;
align-content: flex-start;
}
.product-box .right {
  width: 30%;
    /* min-width: 330px; */
    position: sticky;
    top: 140px;
}
.product-box .left {
  width: 70%;
}

.product-box .right .product-image img {
  border-radius: 1rem;
  width: 100%;
  object-fit: cover;
}

.product-box .right .box {
  background-color: var(--bg-box-1);
  border-radius: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  padding-bottom: 10px;
}
.no-select {
  -webkit-user-select: none; /* مرورگرهای WebKit */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge قدیمی */
  user-select: none; /* استاندارد */
}

.ellipsis {
  white-space: nowrap; /* متن در یک خط */
  overflow: hidden; /* هر چیزی که بیرون از باکس باشه مخفی می‌شه */
  text-overflow: ellipsis; /* اضافه متن را با … نمایش می‌ده */
}

/* copy to click */
#copy-toast {
  position: fixed; /* کنار موس قرار می‌گیرد */
  pointer-events: none; /* روی موس و کلیک اثر نگذارد */
  opacity: 0; /* مخفی پیش‌فرض */
  transition: opacity 0.5s ease; /* fade in / fade out */
  background-color: #333; /* رنگ پس‌زمینه */
  color: #fff; /* رنگ متن */
  padding: 6px 12px; /* فاصله داخلی */
  border-radius: 6px; /* گوشه‌های گرد */
  font-size: 12px; /* اندازه متن */
  z-index: 1000; /* روی همه المان‌ها */
  white-space: nowrap; /* متن یک خط */
  font-family: var(--main-font);
}
#copy-toast.show {
  opacity: 1; /* ظاهر شدن */
}

.product-box .left .galery {
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}
.product-box .left .myGallerySwiper,
.product-box .left .myGallerySwiper2 {
  direction: ltr !important; /* اجباری کردن جهت چپ به راست */
}
.product-box .left .swiper {
  width: 100%;
  height: 100%;
  -webkit-user-select: none; /* Chrome, Safari, Opera */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ / Edge Legacy */
  user-select: none; /* Standard */
}

.product-box .left .swiper-slide {
  text-align: center;
  font-size: 18px;
  /* background: #444; */
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-box .left .myGallerySwiper2 .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  max-height: 500px;
}
.product-box .left .myGallerySwiper .swiper-slide img {
  display: block;
  width: 100%;
  object-fit: cover;
  height: 100%;
}
.product-box .left .swiper-slide {
  background-size: cover;
  background-position: center;
}

.product-box .left .myGallerySwiper2 {
  height: 80%;
  width: 100%;
  border-radius: 1rem;
}

.product-box .left .myGallerySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0 0;
      height: 100px;
}

.product-box .left .myGallerySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  transition: filter 0.5s ease;
}

.product-box .left .myGallerySwiper .swiper-slide-thumb-active {
  opacity: 1;
}
.product-box .left .myGallerySwiper .no-active {
  animation: heartbeat-shrink 0.45s cubic-bezier(0.4, 0, 0.3, 1);
}
.product-box .left .swiper-scrollbar-drag {
  background: rgb(255 200 14) !important;
}
/* تعریف انیمیشن */
@keyframes heartbeat-shrink {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(0.87);
  } /* کمی کوچکتر */
  40% {
    transform: scale(0.94);
  } /* نزدیک به اندازه اصلی */
  60% {
    transform: scale(0.9);
  } /* کمی کوچک‌تر دوباره */
  80% {
    transform: scale(0.98);
  } /* نزدیک به اندازه اصلی */
  100% {
    transform: scale(1);
  } /* برگشت به اندازه اصلی */
}







/* از 1024px به پایین تک‌ستونه */
@media (max-width: 1023px){
    .main-container{
        max-width: 768px;
    }
    .product-box
    {
    flex-wrap: wrap;
    }

    .product-box .right {
    width: 100%;
    position: unset;
    top:0 ;
    }
    .product-box .left {
    width: 100%;
    margin-top: 20px;
    }
}



@media (max-width: 767px){
    .product-container {
        padding-left: 0;
        padding-right: 0;
    }
    .product-title{
        font-size: 17px;
    }
    .product-box .right{
        min-width: unset;
    }
}


.left .product-content{
  text-align: justify;
  line-height: 1.9;
  color: #d7d7d7;
  margin-top: 40px;
  font-size: 15px;
  padding-left: 20px;
  padding-right: 20px;
}
.left .product-content img{
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
}