
.storyy_swiper .swiper {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.storyy_swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.storyy_swiper .swiper-button-next,
.storyy_swiper .swiper-button-prev {
    color: #333;
    background: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.storyy_swiper .swiper-button-next::after,
.storyy_swiper .swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

.storyy_swiper .swiper-button-disabled {
    visibility: hidden !important;
}

.storyy_swiper .story-con {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.storyy_swiper .story-con p {
      
   font-weight: normal;
    text-align: center;
    line-height: 1.3;
    color: #23254e;
    margin-top: 3px;
    font-weight: normal !important;
    padding-bottom: 5px;
    font-size: 13px;
    width: 95%;
    height: 35px;
    display: flex
;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.storyy_swiper .img-story {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(315deg, #e03d96, #7d4c9e) border-box;
    border: 2px solid transparent;
}

.storyy_swiper .img-story img {
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
}

.storyy_swiper .detail-story-con {
    width: 100%;
}

.storyy_swiper .detail-story {
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: 350px;
    position: fixed;
    height: 93vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: linear-gradient(0deg, rgb(0 0 0) 25%, rgba(0, 0, 0, 0) 130%);
    padding: 6px;justify-content: center;
}

.storyy_swiper .detail-story .detail {
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: center;
}

.storyy_swiper .detail-story .detail .story-detail-inner-con {
    position: absolute;
    width: 92%;
    color: #fff;
    bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;z-index:999999999
}

.storyy_swiper .detail-story .detail .detail-text .title {
    font-weight: 700;
    line-height: 2.1;
    font-size: 1.3rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);color:#fff!important
}

.storyy_swiper .detail-story .detail video,
.storyy_swiper .detail-story .detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storyy_swiper .story-detail-icon-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.storyy_swiper video{display:none!important}
 .storyy_swiper .detail {
  position: relative;
  overflow: hidden; /* اگر بخوای نوار محدود به داخل دایو باشه */
}

.storyy_swiper  .detail::after {
content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  pointer-events: none; /* تا روی محتوای اصلی کلیک‌پذیری رو خراب نکنه */
}
.storyy_swiper .title-pro-inner {
  display: flex
;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0;
    border-top: 1px solid transparent;
    margin-bottom: 8px;

}
.storyy_swiper  .btn-container{display:none!important}

.storyy_swiper .title-product {
   display: flex
;
    text-decoration: none;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    border-radius: 8px;
    padding: 2px;
    width: 75%;
    gap: 5px;
    margin-right: 10px;
}

.storyy_swiper .detail-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    justify-content: center;
}

.storyy_swiper .detail-text p,
.storyy_swiper .detail-text h4 {
    margin: 0;
}

.storyy_swiper .title-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.storyy_swiper .title-product p {
    line-height: 1.5;
    color: #000000cf;
    font-size: 14px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 2);text-align:justify
}

.storyy_swiper .detail-text p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 2);
	text-align: justify;
    font-size: 15px;
	line-height: 1.5;
}

.storyy_swiper .detail-story-con.active {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999999999999999999999999999999;
}

 .story-prev-btn,
  .story-next-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    border: 1px solid #00000012;z-index:999999999999999999999999999999
}

.story-prev-btn {
    right: calc(50% + 190px);
}

.story-next-btn {
    left: calc(50% + 190px);
}

.storyy_swiper video::-webkit-media-controls {
    display: flex !important;
}

.storyy_swiper video::-webkit-media-controls-panel {
    opacity: 1 !important;
}

.storyy_swiper .like-con,
.storyy_swiper .coment-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 12px;
}

.storyy_swiper .product-detail-story {
    display: none;
    width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    z-index: 10;
    border: 1px solid #919191;
    padding: 1rem;
    z-index: 30;
}

.storyy_swiper .product-detail-story img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.storyy_swiper .close-btn-prodetail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    border-bottom: 1px solid #e6e6e8;
    padding-bottom: 1rem;
}

.storyy_swiper .close-btn-prodetail svg {
    cursor: pointer;
}

.storyy_swiper .product-detail-story .title-pro {
    width: calc(100% - 2rem);
    background: #fef5f7;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

.storyy_swiper .see-pro {
    color: #ef4056;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid;
    border-radius: 8px;
    width: calc(100% - 2rem);
    text-align: center;
    padding: 1rem;
    margin: 2rem auto;
}

.storyy_swiper .see-pro::before {
    content: "";
    display: flex;
    width: calc(100% + 4rem);
    height: 1px;
    top: -2.3rem;
    left: 2rem;
    position: relative;
    background-color: #e6e6e8;
}

.storyy_swiper .sabad-con {
    display: flex;
    width: 100%;
    align-items: center;
    border-top: 1px solid #e6e6e8;
    justify-content: space-between;
    padding: 1rem 0;
}

.storyy_swiper .sabad-add {
    background: #ef4056;
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}

.storyy_swiper .sabad-con .price {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    gap: 8px;
}

.storyy_swiper .price .price-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.storyy_swiper .price .price-top p {
    color: #c0c2c5;
    font-size: 15px;
    text-decoration: line-through;
    font-weight: bold;
}

.storyy_swiper .price .price-top span {
    border-radius: 12px;
    padding: 5px;
    font-size: 14px;
    background: #ef4056;
    color: #fff;
}

.storyy_swiper .price .price-after {
    color: #23254e;
    font-size: 1.1rem;
    font-weight: bold;
}

.storyy_swiper .price .price-after span {
    font-size: 12px;
}

.storyy_swiper .plyr__control--overlaid {
    display: none !important;
}

.storyy_swiper .plyr--hide-controls .plyr__controls {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.storyy_swiper .top-profile-text {
    display: flex
;
    align-items: center;
    justify-content: space-between;
    width: 98%;
    padding: 10px 1%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
}

.storyy_swiper .top-profile-text .profile-right img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}


.storyy_swiper #close-stories {
    cursor: pointer;
}

.storyy_swiper .top-profile-text .profile-right p {
    color: #fff;
    font-size: 16px;
    text-align: justify;
}
.storyy_swiper .top-profile-text .profile-right {
    display: flex
;
    align-items: center;
    justify-content: center;
    gap: 5px;
}







.storyy_swiper video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

@media (max-width: 1024px) {
      .story-prev-btn,
      .story-next-btn {
        display: none !important;
    }

    .storyy_swiper .product-detail-story {
        width: 340px;
    }
}
.storyy_swiper{    width: 98%;
    float: right;
    padding: 10px 0px 4px 0px;
    MARGIN-RIGHT: 1%;}

@media (max-width: 768px) {
    .storyy_swiper .story-con p {
        font-size: 12px;
        width: 99%;
       
    }

    .storyy_swiper .img-story {
               width: 60px;
        height: 60px;
    }

    .storyy_swiper .swiper {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .storyy_swiper .detail-story {
        width: 100%;
    }
}

.storyy_swiper .your-video-element::-webkit-media-controls-start-playback-button {
    display: none;
}