.block-product-card.product-card-style--card {
  background-color: rgb(var(--color-background));
}
.block-product-card.product-card-style--normal {
  row-gap: 0 !important;
}

.block-product-card.unavailable:not([data-shopline-editor-block]) {
  display: none;
}

.block-product-card__layer-image-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  padding: var(--padding);
  overflow: hidden;
  aspect-ratio: 1;
}

.zg-product-card__add-to-cart, .zg-product-card__add-to-cart .zg-add-to-cart-toggler__text {
  padding-inline-start: 0px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  text-transform: capitalize;
}
.zg-product-card__add-to-cart:hover, .zg-product-card__add-to-cart .zg-add-to-cart-toggler__text:hover {
  text-decoration: underline;
  color: #222222;
}

/*组件支持PC/移动端隐藏*/
.zg-product-card__add-to-cart[data-pc-hide="false"] {
  display: block;
}
.zg-product-card__add-to-cart[data-pc-hide="true"] {
  display: none;
}
/*组件支持PC/移动端隐藏*/
.zg-product-card__add-to-cart[data-m-hide="false"] {
  display: block;
}
.zg-product-card__add-to-cart[data-m-hide="true"] {
  display: none;
}
.zg-add-to-cart-toggler,
.zg-quick-look-toggler {
  cursor: pointer;
}
.block-product-card .product-price__item--price {
  font-size: 18px;
  line-height: 22px;
}
.block-product-card .zg-sales-promotion-throughline-price .product-price__item--price {
  font-size: 15px;
  line-height:18px;
}

@media (min-width: 960px) {
  .block-product-card__layer-image-wrapper.hover:hover
    .block-product-card__image:nth-of-type(1) {
    opacity: 0;
  }

  .block-product-card__layer-image-wrapper.hover:hover
    .block-product-card__image:nth-of-type(2) {
    opacity: 1;
  }
}
.block-product-card__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  background-color: rgb(243 243 243 / 100%);
  border-radius: var(--border-radius);
}
.block-product-card__image-wrapper > svg {
  width: 100%;
  height: 100%;
}
.block-product-card__image-wrapper > .block-product-card__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
  transition: 1s;
}
.block-product-card__image-wrapper > .block-product-card__image:nth-of-type(1) {
  opacity: 1;
}
.block-product-card__image-wrapper > .block-product-card__image:nth-of-type(2) {
  opacity: 0;
}
.block-product-card__layer-wrapper {
  position: absolute;
  inset: 0;
}
  
custom-promotion-text-tag { cursor: text; }
/* TODO:!!!危险操作，标签的颜色可以配置，这只是临时解法 */
custom-promotion-text-tag:hover,
custom-promotion-text-tag.custom-promotion-text-tag span {
  color: #fff;
}
.block-product-card__quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: rgb(0 0 0 / 40%);
  border: 0;
  border-radius: 50%;
}
.block-product-card__quick-add:hover {
  background-color: rgb(0 0 0 / 60%);
}
.block-product-card__quick-add svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 959px) {
  .block-product-card__quick-add {
    width: 24px;
    height: 24px;
  }
}
.block-product-card__quick-add .icon-loading {
  display: none;
  margin: 8px;
  color: rgb(255 255 255 / 100%);
  animation: animation-button-loading linear 1.5s infinite;
}
.block-product-card__quick-add.loading {
  pointer-events: none;
}
.block-product-card__quick-add.loading .icon-quick-add {
  display: none;
}
.block-product-card__quick-add.loading .icon-loading {
  display: block;
}
.block-product-card__modal-content {
  width: 80vw;
  max-width: 1200px;
  max-height: 80vh;
  overflow-y: auto;
}
@media (max-width: 959px) {
  .block-product-card__modal-content {
    width: 100%;
  }
}
.block-product-card__modal-content .quick-add-hidden {
  display: none;
}
.block-product-card__modal-content theme-product-detail {
  --page-padding: 40px;
  --detail-padding-inline-start: 0px !important;
  --detail-padding-inline-end: 0px !important;
  --detail-padding-block-start: 0px !important;
  --detail-padding-block-end: 0px !important;

  padding: var(--page-padding);
}
@media (max-width: 959px) {
  .block-product-card__modal-content theme-product-detail {
    --page-padding: 20px;
  }

  .block-product-card__modal-content
    theme-product-detail
    theme-product-media-gallery[data-mobile-layout="fullscreen"] {
    margin-block-start: calc(-1 * var(--page-padding));
  }
}
.block-product-card__modal-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 15px;
  color: #fff;
  background: rgb(0 0 0 / 40%);
}
.block-product-card__title {
  font-size: 18px;
  letter-spacing: .25px;
  line-height: 26px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.block-product-card__title img {
  width: 20px;
  height: 24px;
}
.block-product-card-coustom_title {
  font-size: 15px;
  line-height: 20px;
  max-width: 100%;
  padding-top: .78571rem;
}
.block-product-card-coustom_title span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.block-product-card .product-price {
  margin-top: 8px;
}

.block-product-card__layer-image-wrapper .custom-promotion-text-tag {
  span {
  
    font-size: 18px;
    letter-spacing: 1px;
    font-feature-settings: "kern", "liga", "clig", "calt", "smcp";
    text-transform: lowercase;
    background-color: #bd3949!important;

  }
}
.block-product-card__title-new-tag {
  display: inline-block;
  opacity: .8;
  padding: 5px;
  font-size: 10px;
  font-weight: 400;
  background-color: #f5f5f5;
  text-align: center;
  align-items: center;
  width: fit-content;
}
.block-product-card__title.product-card-style--card {
  padding-inline: 8px;
}
.block-product-card__price.product-card-style--card {
  padding-inline: 8px;
}
.block-product-card__discount-tag {
  padding: 4px 12px;
  color: rgb(255 255 255 / 100%);
  background-color: rgb(227 38 25 / 100%);
  border-radius: var(--product-discount-radius);
}

.zg-list-card__option-color {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.zg-list-card__option-color li {
  line-height: 0;
}
.zg-list-card__option-color li img {
  width: 22px;
  aspect-ratio: 1;
  vertical-align: top;
}

.zg-list-card__fsc img {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .zg-product-card__add-to-cart, .zg-product-card__add-to-cart .zg-add-to-cart-toggler__text {
    margin-top: 10px;
    font-size: 14px;
    color: #222222;
    line-height: 17px;
    text-align: left;
    font-style: normal;
  }
  .qd-block-product-card .block-product-card__price,
  .qd-block-product-card .block-product-card-coustom_title,
  .qd-block-product-card .zg-product-card__add-to-cart,
  .qd-block-product-card .zg-list-card__option-color,
  .qd-block-product-card .zg-list-card__fsc {
    padding-inline: 10px;
  }
  .block-product-card .zg-add-to-cart-toggler,
  .block-product-card .zg-quick-look-toggler {
    text-decoration: underline;
  }
}
@media (max-width: 959px) {
  .block-product-card__discount-tag {
    padding: 2px 8px;
  }
}
.block-product-card__sold-out {
  padding: 4px 12px;
  background-color: rgb(255 255 255 / 100%);
  border-radius: var(--product-discount-radius);
}
@media (max-width: 959px) {
  .block-product-card__sold-out {
    padding: 2px 8px;
  }

  .block-product-card.product-card-style--normal {
    flex-direction: column;
  }

  .block-product-card .product-price__item--price {
    font-size: 16px;
    line-height: 18px;
  }
  .block-product-card .zg-sales-price.zg-sales-promotion-price .product-price__item--price {
    font-size: 16px;
    line-height: 18px;
  }
  .block-product-card .zg-sales-promotion-throughline-price .product-price__item--price {
    font-size: 13px;
    line-height: 16px;
  }

  .zg-list-card__option-color {
    margin-top: 8px;
  }
  .zg-list-card__option-color li img {
    width: 15px;
  }
}