/* type3 */
.price,
.sale {
  white-space: nowrap;
}

.on-sale {
  font-size: var(--fs-13);
  background: #f1206b;
  padding: 2px 6px 0px;
  border-radius: 15px;
  line-height: 1;
  margin-right: 6px;
  color: var(--c-neutral-000);
}

del.price {
  text-decoration: line-through;
  font-size: var(--fs-15);
  opacity: 0.8;
  width: 100%;
}

/* type2 */

.salewshop-wrapper {
  overflow: hidden;
  border-radius: 16px;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
  margin-bottom: 2rem;
}
.salewshop-wrapper a:hover {
  color: var(--c-secondary);
}
.salewshop-head {
  background-image: linear-gradient(89deg, var(--c-primary), #3a06c9db),
    url(../../imgs/pattern.svg);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: auto 100%;
  background-blend-mode: screen;
  padding: min(1rem, 4vw) min(2rem, 5vw);
  color: var(--c-neutral-000);
  position: relative;
  isolation: isolate;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.salewshop-head::before {
  content: "";
  position: absolute;
  /* opacity: 0.7; */
  background: linear-gradient(to top, #06c4c9a6 8%, transparent 37%);
  /* -webkit-filter: blur(65px); */
  -webkit-filter: blur(45px);
  filter: blur(45px);
  right: 0;
  bottom: -1rem;
  width: 53%;
  height: 15rem;
  z-index: -1;
  pointer-events: none;
}
.salewshop--title {
  display: flex;
  -moz-column-gap: min(1.6rem, 1vw);
  column-gap: min(1.6rem, 1vw);
}
.salewshop--title .sep {
  width: 1px;
  height: 2.3rem;
  background-color: var(--c-neutral-000);
}

.salewshop-body {
  background: var(--c-neutral-100);
  padding: 1.5rem min(2rem, 4vw);
  z-index: 2;
  position: relative;
}
.salewshop__title {
  font-size: var(--fs-18);
}
.salewshop__subtitle {
  font-size: var(--fs-14);
}
.salewshop-action {
  display: flex;
  background: rgb(var(--c-primary-rgb), 0.1);
  border-radius: 3.2rem;
  padding: 5px 2rem 5px 0.7rem;
  align-items: center;
  -moz-column-gap: 0.8rem;
  column-gap: 1.8rem;
  row-gap: 0;
  /* flex-wrap: wrap; */
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
}
.salewshop__btn {
  border-radius: 32px;
  background: var(--c-neutral-000);
  border: 1px solid transparent;
  font-size: var(--fs-13);
  color: var(--c-neutral-000);
  padding: 0.7rem 1.5rem;
  height: 3.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  min-width: 90px;
  justify-content: center;
}
.salewshop__btn::before {
  content: "";
  background: linear-gradient(90deg, #602ee1 0%, #3f1e94 100%);
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
  position: absolute;
  top: 0;
  height: 101%;
  z-index: -1;
}
.salewshop__btn:hover::before {
  transform: translate3d(100%, 0, 0);
}
.salewshop__btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary) !important;
}
.salewshop__btn i {
  font-size: 1.9rem;
}

.salewshop-price {
  display: flex;
  -moz-column-gap: 1rem;
  column-gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.salewshop-price span.price,
.salewshop-price .sale {
  color: var(--c-primary);
  font-size: var(--fs-18);
}
.salewshop-price del.price {
  color: var(--c-neutral-600);
  opacity: 0.8;
}
.salewshop-price b {
  font-size: var(--fs-12);
}
.salewshop-icons {
  display: flex;
  -moz-column-gap: 1.6rem;
  column-gap: 1.6rem;
  align-items: center;
  color: var(--c-primary);
  /* flex-wrap: wrap; */
  row-gap: 1rem;
}
.salewshop-icons li i {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 100vw;
  background-color: rgba(var(--c-primary-rgb), 10%);
  display: block;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.salewshop-icons li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-16);
  line-height: 1.5;
}
.salewshop-icons li b {
  font-size: var(--fs-12);
}
/* topics  */
.section-workshop {
  container-type: inline-size;
}
.wshop-row {
  display: grid;
  gap: 2.4rem;
}

.salewchapters-wrapper {
  background: var(--c-neutral-000);
  border-radius: 16px;
  padding: 2.4rem 1.8rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.salewchapters-wrapper::before {
  content: "";
  background-image: linear-gradient(to top, #fff, #ffffff00);
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -moz-user-select: none;
  height: 4rem;
  z-index: 3;
  border-radius: 0 0 16px 16px;
}
.salewchapters-wrapper::after {
  content: "";
  background-image: linear-gradient(to top, #fff, #ffffff00);
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -moz-user-select: none;
  height: 4rem;
  z-index: 3;
  border-radius: 0 0 16px 16px;
}
.salewchapters {
  height: 100%;
  padding-left: 1rem;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 4rem;
}
.salewchapters::-webkit-scrollbar {
  width: 5px;
}
.salewchapters::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border: 1.5px solid #eee3ff;
  box-shadow: none;
}
.salewchapters::-webkit-scrollbar-track {
  background: #7420f11f;
}
.salewchapters li {
  position: relative;
}
.salewchapters li:not(:last-child) {
  padding-bottom: 2.4rem;
}
.salewchapters li:not(:last-child):after {
  content: "";
  height: 100%;
  position: absolute;
  border: 0.5px dashed rgba(var(--c-secondary-rgb), 0.3);
  display: block;
  right: 12.5px;
  top: 0px;
  z-index: 0;
}
.salewchapter-item .count {
  width: 27px;
  height: 27px;
  flex: none;
  background: var(--c-primary);
  border-radius: 100vw;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-neutral-000);
  font-size: var(--fs-14);
  box-shadow: 0 0 0 1px rgba(var(--c-secondary-rgb), 0.6);
  z-index: 2;
}
.salewchapter-item__title strong {
  font-size: var(--fs-15);
  color: var(--c-neutral-700);
}
.salewchapter-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.salewchapter-item__title {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  line-height: 1.7;
  font-size: var(--fs-13);
  color: var(--c-neutral-400);
}

.salewchapters-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--c-primary);
}
.salewchapters-head a {
  display: flex;
  align-items: center;
  font-size: var(--fs-14-min);
  gap: 0.8rem;
  color: var(--c-primary);
  white-space: nowrap;
}
.salewchapters-head a > i {
  font-size: 12px;
}
.salewchapters-head a:is(:hover, :focus-visible) {
  color: var(--c-secondary);
}
.salewchapters-head {
  display: flex;
  align-items: center;
  padding-bottom: 3.2rem;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.salewchapters-title i {
  width: 3.2rem;
  height: 3.2rem;
  flex: none;
  background-color: rgba(var(--c-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-size: 1.5rem;
  border-radius: 100vw;
  transition: 0.3s;
}
/* main */
.add-to-cart {
  transition: 0.3s;
}
.shop-course .add-to-cart b::before {
  content: "خرید دوره";
  font-family: var(--ff-main);
}
.shop-course.active:not(.purchased) .add-to-cart b::before {
  content: "حذف دوره";
  font-family: var(--ff-main);
}

.shop-course.active:not(.purchased) .salewshop__btn::before {
  background: #b02828;
}
.shop-course.active .salewshop__btn:hover::before {
  transform: translate3d(0%, 0, 0);
}

.shop-course.active .salewshop__btn:hover {
  border-color: var(--c-neutral-000);
  color: var(--c-neutral-000) !important;
  background: #b02828;
  -webkit-filter: brightness(1.3);
  filter: brightness(1.3);
}
.salewchapters-wrapper,
.salewshop--media {
  margin-top: 2.4rem;
}

/* dropdown topics */
.salewshop-video--btn {
  border-radius: 32px;
  background: var(--c-neutral-000);
  border: 1px solid transparent;
  font-size: var(--fs-13);
  color: var(--c-primary);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  min-width: 12.5rem;
  transition: 0.3s;
  white-space: nowrap;
}
.mobile .salewshop-topics--btn,
.mobile .salewshop-video--btn {
  height: 4.5rem;
  border-radius: 32px;
}
.mobile .salewshop-video--btn {
  padding: 0.5rem 0.7rem 0.5rem 1.5rem;
}
.salewshop-video--btn i {
  font-size: 2.6rem;
  vertical-align: baseline;
}
.active.salewshop-video--btn,
.mobile .salewshop-video--btn:active,
.desktop .salewshop-video--btn:hover {
  background-color: var(--c-secondary);
  color: var(--c-neutral-000);
}
.salewshop-topics--btn {
  border-radius: 32px;
  background: rgb(var(--c-primary-rgb), 0.1);
  border: 1px solid transparent;
  font-size: var(--fs-13);
  color: var(--c-primary);
  padding: 0.5rem 2rem 0.5rem 2rem;
  height: 4.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  min-width: 14.7rem;
  transition: 0.3s;
  justify-content: center;
  white-space: nowrap;
}

.salewshop-topics--btn.active,
.mobile .salewshop-topics--btn:active,
.desktop .salewshop-topics--btn:hover {
  background-color: var(--c-primary);
  color: var(--c-neutral-000);
}
.salewshop-topics--btn .icon-menu {
  font-size: 1.8rem;
  vertical-align: baseline;
}
.salewshop-topics--btn .icon-arrow-down1 {
  font-size: 11px;
  transition: transform 0.3s;
  margin-right: auto;
}
.salewshop-topics--btn.active .icon-arrow-down1 {
  transform: rotateX(180deg);
}
.saleworkshops {
  display: flex;
  flex-direction: column;
}

.salewshop-purchased--title {
  font-size: var(--fs-18);
  margin: 3rem 0 1rem;
  color: var(--c-primary);
}
/* .coursetopics--dropdown button {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-neutral-000);
  padding: 0.8rem 1.5rem;
  font-size: var(--fs-14);
  width: 100%;
  justify-content: space-between;
  background: var(--c-primary);
} */
/* .coursetopics--dropdown button .icon-topic {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 100vw;
  background-color: var(--c-primary);
  color: var(--c-neutral-000);
  display: block;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
} */
/* .coursetopics--dropdown button i {
  font-size: 13px;
  transition: 0.3s;
}
.coursetopics--dropdown .salewchapters-wrapper {
  background: transparent;
}
.coursetopics--dropdown.active button i {
  transform: rotateX(180deg);
} */
.salewshop--items {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}




/* 
.salewshop-wrapper{
	font-family: var(--ff-main), Arial;
}
.salewshop-wrapper a:after{
	display: none;
}
.salewshop--title h2{
	margin: 0;
	line-height: unset;
}
.salewshop--title h2 a{
	color: var(--c-neutral-000);
}
.salewshop__subtitle {
  font-size: var(--fs-14) !important;
  line-height: unset !important;
  margin: 0 !important;
} 
.salewshop-action .salewshop__btn{
	display: flex;
	color: var(--c-neutral-000);
}
.salewshop-wrapper .salewchapters li,
.salewshop-wrapper .salewchapters p,
.salewshop-wrapper .salewshop-icons li{
	margin: 0;
} 
*/
/**************************/
/* BELOW 576px */
/**************************/
@media (width>= 36em) {
  /* .salewshop-head {
    background-image: url(../../imgs/pattern.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
  }
  .salewshop-head {
    background-size: auto 100%;
  } */

  .salewchapters {
    max-height: 27rem;
  }
}
/**************************/
/* ABOVE 768px */
/**************************/
@media (width>= 48em) {
  .salewshop--title {
    align-items: center;
  }
  .salewshop--items {
    align-items: center;
    grid-template-columns: 1fr auto auto;
  }
  .salewshop-action {
    grid-column: 3;
  }
}
/**************************/
/* ABOVE 992px */
/**************************/
@media (width>= 62em) {
}
/**************************/
/* ABOVE 1200px */
/**************************/
@media (width>= 75em) {
}

/**************************/
/* BELOW 1200px */
/**************************/
@media (max-width: 75em) {
}
/**************************/
/* BELOW 992px */
/**************************/
@media (max-width: 62em) {
}
/**************************/
/* BELOW 768px */
/**************************/
@media (max-width: 47.99em) {
  .salewshop--title .sep {
    display: none;
  }
  .salewshop--title {
    flex-direction: column;
  }
  .salewshop--media,
  .salewchapters-wrapper {
    width: calc(100% + 2 * min(1rem, 2vw));
    margin-right: calc(-1 * min(1rem, 2vw));
  }
  .salewchapters::-webkit-scrollbar {
    width: 0;
  }
  .salewshop-purchased--title {
    text-align: center;
  }
  .salewshop-topics--btn {
    border-radius: 16px;
    height: 100%;
  }
  .salewshop-action {
    border-radius: 16px;
  }

  .salewshop-icons {
    grid-column: 1/-1;
  }
}
/**************************/
/* BELOW 576px */
/**************************/
@media (max-width: 36em) {
  .salewshop-action {
    grid-column: 1/-1;
  }
}
