.qd-promotion-card {
  position: relative;
  width: 100%;
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.qd-promotion-card__image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  flex-direction: column;
  cursor: pointer;
}


.qd-promotion-card__image-inn {
  position: relative;
}
/* .promotion-card__overlay-click-area {
  position: absolute;
  inset: 0; 
  z-index: 5; 
  cursor: pointer;
  background: transparent;
} */

.qd-promotion-card__button-wrapper {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

.qd-promotion-card__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background-color: rgba(var(--color-mask), var(--mask-opacity));
  padding: 59px;
  width: 100%;
}

.qd-promotion-card__content.left-top {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: start;
}

.qd-promotion-card__content.top {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.qd-promotion-card__content.right-top {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: end;
}

.qd-promotion-card__content.left {
  align-items: flex-start;
  justify-content: center;
  text-align: start;
}

.qd-promotion-card__content.center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qd-promotion-card__content.right {
  align-items: flex-end;
  justify-content: center;
  text-align: end;
}

.qd-promotion-card__content.left-bottom {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: start;
}

.qd-promotion-card__content.bottom {
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.qd-promotion-card__content.right-bottom {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: end;
}

.qd-promotion-card__title {
  font-weight: 700;
  font-family: var(--sort-title-font);
  font-weight: normal;
  font-size: 20px;
  color: #000000;
  line-height: 24px;
  letter-spacing: 1px;
  font-style: normal;
  text-transform: none;
}

.qd-promotion-card__desc {

  font-weight: normal;
  font-size: 18px;
  color: #000000;
  line-height: 22px;
  font-style: normal;
  text-transform: none;
}

.theme-video-media__play-button.right-bottom {
  width: 44px;
  height: 44px;
}

.qd-promotion-drawer__body {
  display: flex;
  flex-direction: column;
  width: 45%;
}
.qd-promotion-drawer-header-wrapper {
    position: relative;
    padding-inline: 32px;
}
.qd-promotion-drawer__inner {
    position: relative;
    flex: 1;
    padding-inline: 32px;
    overflow-y: scroll;
    background-color: #fff;
}
.qd-promotion-drawer__header {
    text-transform: uppercase;
    padding: 32px 0;
    text-align: center;
    font-size: 18px;
    line-height: 22px;
    font-weight: bold;
}
.qd-promotion-drawer__close {
    position: absolute;
    right: 20px;
    top: 20px;
}
.qd-promotion-drawer__close svg {
    width: 16px;
    height: 16px;
}
.qd-promotion-drawer__loading {
  position: sticky;
  inset: 0;
  z-index: var(--z-index-popover);
  width: 100%;
  height: 100%;
  text-align: center;
}
.qd-promotion-drawer__loading-inn .loading--rotator {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}
.qd-promotion-drawer__loading-inn {
  padding-block-start: 120px;
}
.qd-promotion-drawer__loading-inn .loading--rotator svg {
  width: 100%;
  height: 100%;
}
.qd-promotion-products-list {
  display: grid;
  gap: 3rem 1.5rem;
  grid-template-columns: repeat(2, calc((100% - 1.5rem * (2 - 1)) / 2));
  padding-bottom: 28px;
}

.qd-promotion-drawer .qd-custom-product-card .block-product-card .block-product-card__title {
  white-space: unset;
}

.qd-promotion-card__button-wrapper .promotion-card__button::after {
  box-shadow: unset;
}
.qd-promotion-card__button-wrapper .promotion-card__button {
  text-transform: uppercase;
  border-radius: 99px;
  padding: 10px 5px;
  display: flex;
  align-items: center;
  column-gap: 2px;
  z-index: 2;
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;
  color: #FFFFFF;
  box-shadow: unset;
  cursor: pointer;
}
.qd-promotion-card__button-wrapper .promotion-card__button svg {
  height: 26px;
}
.qd-promotion-card__button-wrapper .promotion-card__button.show {
  position: relative;
}
.qd-promotion-card__button-wrapper .promotion-card__button .promotion-card__button--text {
  white-space: nowrap;
}
.qd-promotion-card__button-wrapper .promotion-card__button.show .promotion-card__button--text {
  animation: textTransform 0.6s ease forwards, textFade 0.6s ease forwards;
}
.qd-promotion-card__button-wrapper .promotion-card__button.show::after {
  content: "";
  position: absolute;
  left: 0;
  top: 96%;
  height: 2px;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow 0.6s ease forwards;
  box-shadow: none;
}

.qd-promotion-card__button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}
.qd-promotion-card__button {
  font-weight: 300;
  font-size: 16px;
  color: #222222;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
  padding: 13px 80px;
  background: #fff;
}

@media (min-width: 960px) {
  .qd-promotion-card__content.hidden-mobile {
    display: block;
  }
  .qd-promotion-card__content.hidden-desktop {
    display: none;
  }
}

@media (max-width: 959px) {
  .qd-promotion-drawer__body {
    width: 100%;
  }
  .qd-promotion-card__content.hidden-mobile {
    display: none;
  }
  .qd-promotion-card__content.hidden-desktop {
    display: block;
  }
  .qd-promotion-card__button-group {
    margin-top: 10px;
    gap: 10px;
  }
  .qd-promotion-card__button {
    padding: 5px 40px;
    font-size: 13px;
  }
}

@media (min-width: 960px) and (max-width: 1799px) {
  .qd-promotion-drawer__body {
    width: 45%;
  }
}

@media (min-width: 1800px) {
  .qd-promotion-drawer__body {
    width: 35%;
  }
}

/* 线条展开 */
@keyframes textTransform {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes textFade {
  0% { opacity: 0; }
  80% { opacity: 0.2; }
  90% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* 线条展开 */
@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}