.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__fabric-options {
  display: flex;
  column-gap: 4px;
  align-items: center;
}
.zg-product-card__fabric-options .more-icon {
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.zg-product-card__fabric-options .more-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px; /* 线条粗细 */
  background-color: #333;
}
.zg-product-card__fabric-options .more-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px; /* 线条粗细 */
  background-color: #000;
}

.zg-product-card__fabric-options .more-icon::before {
  transform: translateY(-50%);
}

.zg-product-card__fabric-options .more-icon::after {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.zg-product-card__clearance-tag {
  color: #c60000;
  font-size: 16px;
}
.zg-product-card__free-shipping-tag {
  font-family: Proxima Nova, Proxima Nova;
  font-weight: 600;
  font-size: 14px;
  color: #000000;
  line-height: 120%;
  text-align: left;
  font-style: normal;
  text-transform: none;
  padding: 0 5px 0 0;
}

/* 移动端样式（小于768px时生效） */
@media (max-width: 767px) {
  .zg-product-card__free-shipping-tag {
    font-size: 12px;
  }
}

.zg-product-card__add-to-cart {
  text-decoration: underline;
  font-family: Brandon-Grotesque,Proxima Nova,proxima-nova,Helvetica Neue,Helvetica,sans-serif;
  padding-left: 0px;
  margin-top: 0px;
  font-size: 16px;
  font-weight: 500;
  color: rgb(0, 0, 0);
}
/*组件支持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;
}

@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,
.zg-new-or-best-seller-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;
  font-weight: 500;
  letter-spacing: .25px;
  line-height: 26px;
  text-align: left;
  color: #000 !important;
  
}
.block-product-card-coustom_title {
  font-size: 16px;
  font-family: Brandon-Grotesque;
  max-width: 100%;
  overflow: hidden;
  padding-top: .78571rem;
  /* ！！！TODO:暂时关闭这个属性，这会导致页面布局错乱！！！ */
  /* white-space: nowrap; */
  text-overflow: ellipsis;
}
.block-product-card__layer-image-wrapper .custom-promotion-text-tag {
  span {
    font-family: Proxima Nova, proxima-nova, Helvetica Neue, Helvetica, sans-serif;
    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: none;
}
.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);
}

@media (max-width: 959px) {
  .block-product-card__discount-tag {
    padding: 2px 8px;
  }
  .block-product-card__title-new-tag {
    display: inline-block;
    opacity: .8;
    padding: 5px;
    font-size: 10px;
    color: #000;
    font-weight: 400;
    background-color: #f5f5f5;
    text-align: center;
    align-items: center;
    margin-top: .78571rem;
    width: fit-content;
  }
  .block-product-card__title-new-tag + .block-product-card__title {
    padding-top: 0;
  }
}
.block-product-card__sold-out {
  padding: 4px 12px;
  color: rgb(0 0 0 / 100%);
  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;
  }
}