.story-shop {
  margin: 40px 0;
}
.story-shop .swiper-slide {
  width: auto;
}
@media only screen and (max-width: 575px) {
  .story-shop .swiper {
    overflow: visible;
  }
}
.story-shop__item {
  width: 84px;
}
.story-shop__item .image {
  background: #833AB4;
background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
  padding: 2px;
  width: 90px;
  height: 90px;
}
.story-shop__item .image span {
  background-color: #fff;
  width: 80px;
  height: 80px;
}
.story-shop__item .image span img {
  width: 68px;
  height: 68px;
}

.modal-story-shop {
  background-color: rgba(0, 0, 0, 0.5);
  display: block;
  opacity: 0;
  visibility: hidden;
}
.modal-story-shop.show {
  opacity: 1;
  visibility: visible;
}
.modal-story-shop .modal-dialog {
  max-width: 360px;
  height: calc(100% - 3.5rem);
}
.modal-story-shop .modal-content {
  background-color: transparent;
  border: 0;
  border-radius: 0;
}
.modal-story-shop .modal-body {
  padding: 0;
}
.modal-story-shop .modal-content, .modal-story-shop .modal-body {
  height: 100%;
  max-height: 720px;
}
.modal-story-shop .swiper-button-next, .modal-story-shop .swiper-button-prev {
  width: 42px;
  height: 42px;
}
.modal-story-shop .swiper-button-next::after, .modal-story-shop .swiper-button-prev::after {
  content: none !important;
}
.modal-story-shop .swiper-button-next {
  transform: translate(-102px, -50%);
}
.modal-story-shop .swiper-button-prev {
  transform: translate(102px, -50%);
}
.modal-story-shop .swiper-button-lock, .modal-story-shop .swiper-button-disabled {
  opacity: 0;
  visibility: hidden;
}
@media only screen and (max-width: 767px) {
  .modal-story-shop .modal-dialog {
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
  }
  .modal-story-shop .modal-content, .modal-story-shop .modal-body {
    max-height: 100%;
  }
}

.story-shop__story .video .icons li {
    padding: 7px 5px 0px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(7.7px);
    -webkit-backdrop-filter: blur(17.7px);
}   

.swiper-slide-active .story-shop__story{
  border: 15px solid #ffffff14;
    border-radius: 30px;
}

.story-shop__story .heading {
  padding: 16px 20px 0;
  gap: 20px;
  z-index: 20;
}
.story-shop__story .heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-image: linear-gradient(0deg, rgba(12, 12, 12, 0) 0, rgba(12, 12, 12, 0.6) 100%);
  z-index: -1;
  border-radius: 20px;
}
.video.position-relative img{
  border-radius: 20px;

}
.story-shop__story .heading .btn-follow {
  padding: 8px 12px;
}
.story-shop__story .video {
  max-height: calc(100% - 80px);
}
.story-shop__story .video .content__text,
.story-shop__story .video .icons {
  bottom: 40px;
  z-index: 20;
}
.story-shop__story .video .content__text {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 20px 40px 56px;
}
.story-shop__story .video .content__text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 170px;
  background-image: linear-gradient(180deg, rgba(12, 12, 12, 0), #0c0c0c);
  z-index: -1;
}
.story-shop__story .video .content__text .description:not(.show) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 60px;
}
.story-shop__story .video .icons {
  left: 20px;
}
.story-shop__story .video video {
  width: 100%;
  height: 100%;
}
.story-shop__story .video__box {
  position: relative;
}
.story-shop__story .video__box::before {
  content: "\e9e8";
  font-family: "icomoon";
  font-size: 56px;
  line-height: 1;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease-in-out;
  overflow: 0;
  visibility: hidden;
  z-index: 4;
}
.story-shop__story .video__box.muted::before {
  opacity: 1;
  visibility: visible;
}
.story-shop__story .video__box__control-bar {
  z-index: 30;
}
.story-shop__story .video__box__control-bar__current-time {
  min-width: 34px;
}
.story-shop__story .video__box__control-bar__progress {
  height: 6px;
}
.story-shop__story .video__box__control-bar__progress span::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  transform: translate(6px, -6px);
}
.story-shop__story .products {
  background-color: #0c0c0c;
      border-radius: 0px 0 20px 20px;
}

.story-shop__story__product {
  padding: 2px 2px 2px 10px;
  border-radius: 15px;
}
.story-shop__story__product img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
}
.story-shop__story__product .title {
  font-size: 13px;
}
.modal-comments-story {
  z-index: 10010;
}
.modal-comments-story .modal-dialog {
  max-width: 540px;
}
.modal-comments-story .modal-content {
  border-radius: 8px;
  border: 0;
}
.modal-comments-story .modal-header {
  padding: 20px 0;
  margin: 0 20px;
  border-bottom: 1px solid #e0e0e2;
}
.modal-comments-story .modal-body {
  padding: 0;
}
.modal-comments-story .comments-story {
  padding: 20px;
  overflow-y: auto;
  min-height: 320px;
  height: 100%;
  max-height: calc(100vh - 210px);
  scrollbar-width: 4px;
  scrollbar-color: #eb0404 rgba(255, 255, 255, 0);
}
.modal-comments-story .comments-story::-webkit-scrollbar {
  width: 4px;
  background-color: rgba(255, 255, 255, 0);
}
.modal-comments-story .comments-story::-webkit-scrollbar-thumb {
  background-color: #eb0404;
}
.modal-comments-story .comments-story__item .content .info img {
  width: 20px;
  height: 20px;
}
.modal-comments-story .comments-story__item .content .info > span {
  width: 6px;
  height: 6px;
  background-color: #e0e0e2;
}
.modal-comments-story .comments-story__item .reply {
  margin-right: 12px;
  padding-right: 16px;
  border-right: 1px solid #19bfd3;
}
.modal-comments-story .empty-comments-story {
  padding: 76px 20px;
}
.modal-comments-story .send-comment-story {
  padding: 16px 20px;
}
.modal-comments-story .send-comment-story__form img {
  right: 12px;
  width: 24px;
  height: 24px;
}
.modal-comments-story .send-comment-story__form .form-control {
  background-color: #f0f0f1;
  border-radius: 16px;
  padding: 0 44px 0 40px;
  font-size: 13px;
  color: #62666d;
  font-weight: 400;
}
.modal-comments-story .send-comment-story__form button {
  left: 12px;
  color: #19bfd3;
}
@media only screen and (max-width: 991px) {
  .modal-comments-story .modal-dialog {
    max-width: 100%;
  }
  .modal-comments-story .modal-header {
    margin: 0 12px;
  }
  .modal-comments-story .modal-body {
    height: 100%;
  }
  .modal-comments-story .comments-story {
    max-height: calc(100% - 147px);
    padding: 20px 12px;
  }
  .modal-comments-story .send-comment-story {
    padding: 12px;
  }
}

.modal-product-story .modal-dialog {
  max-width: 500px;
}
.modal-product-story .modal-content {
  border-radius: 8px;
  border: 0;
}
.modal-product-story .modal-header {
  padding: 16px 0;
  margin: 0 20px;
  border-bottom: 1px solid #e0e0e2;
}
.modal-product-story .modal-body {
  padding: 0;
}
.modal-product-story .product-story {
  padding: 16px 20px;
  max-height: calc(100vh - 200px);
  min-height: 400px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: 4px;
}
.modal-product-story .product-story::-webkit-scrollbar {
  width: 4px;
  background-color: rgba(255, 255, 255, 0);
}
.modal-product-story .product-story::-webkit-scrollbar-thumb {
  background-color: #eb0404;
}
.modal-product-story .product-story img {
  width: auto;
  max-height: 250px;
}
.modal-product-story .product-story .title {
  background-color: #fef5f7;
  padding: 20px 20px 20px 8px;
}
.modal-product-story .product-story .rate__buy {
  color: #c0c2c5;
}
.modal-product-story .product-story .rate .dot {
  width: 4px;
  height: 4px;
  background-color: #e0e0e2;
}
.modal-product-story .product-story .color__item {
  padding: 3px;
  background-color: #19bfd3;
}
.modal-product-story .product-story .color__item span {
  border: 2px solid #fff;
  background-color: #212121;
  width: 32px;
  height: 32px;
}
.modal-product-story .product-story .color__item span::before {
  content: "\e9e6";
  font-family: "icomoon";
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  color: #fff;
}
.modal-product-story .product-story .btn {
  padding: 10px 16px;
}
.modal-product-story .bottom {
  box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.14), 0 -2px 2px rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
}
.modal-product-story .bottom .btn {
  padding: 11px 16px;
}
.modal-product-story .bottom .off del {
  color: #c0c2c5;
}
.modal-product-story .bottom .off span {
  min-width: 34px;
  padding: 0 4px;
  background-color: #d32f2f;
}
.modal-product-story .bottom .price {
  color: #23254e;
}
@media only screen and (max-width: 991px) {
  .modal-product-story .modal-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 58px);
  }
  .modal-product-story .product-story {
    max-height: none;
    min-height: auto;
    height: auto;
  }
}

.story-like {
    transition: color 0.3s ease;
}

.story-like.liked i {
    color: #e74c3c !important;
}

.story-like.processing {
    opacity: 0.6;
    pointer-events: none;
}
.storyhoverimg{
    position: relative;
}
.storyhoverimg:hover img {
  filter: blur(2px) brightness(90%) !important;
}
.storyhoverimg svg {
    position: absolute;
    opacity: 0;
    top: 25px;
    left: 25px;
}

.storyhoverimg:hover svg{
    opacity: 1;
    transition: all 0.3s ease-in-out;
}
.upperstorytitle {
    color: #fff;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    text-align: center;
    font-size: 11px;
    margin: -20px auto 0 auto;
    display: block;
    border-radius: 8px;
    padding: 1px 7px;
    font-weight: 600;
}
.swiper.swiper-story-items .swiper-slide{
  opacity: 0 !important;
}
.swiper.swiper-story-items .swiper-slide.swiper-slide-active{
  opacity: 1 !important;
}

/* SVG Icon Styles */
.story-like svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.story-like.liked svg {
    fill: #ff0000;
}

.btn-comments-story svg {
    width: 24px;
    height: 24px;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    width: 20px;
    height: 20px;
}

.send-comment-story__btn svg {
    width: 18px;
    height: 18px;
}


/* Add hover effects */
.story-like:hover svg,
.btn-comments-story:hover svg,
.modal-close:hover svg,
.swiper-button-next:hover svg,
.swiper-button-prev:hover svg {
    opacity: 0.8;
}

/* Ensure proper alignment */
.modal-close,
.swiper-button-next,
.swiper-button-prev,
.send-comment-story__btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper.swiper-story-items .swiper-products-story .swiper-slide {
    opacity: 1 !important;
}