.block-product-card .product-card-style--card {
  background-color: rgb(var(--color-background));
}
  /* 加载提示样式（可自定义） */
  .loading-toast {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 12px 24px;
      background: rgba(0, 0, 0, 0.8);
      color: #fff;
      border-radius: 0px;
      font-size: 14px;
      z-index: 9999;
      display: none;
      /* 默认隐藏 */
  }
.block-product-card__layer-image-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  padding: var(--padding);
  overflow: hidden;
  margin-bottom: 10px;
  border: none;
}
.c-add-btn{
    display: none;
}
@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;
}
.block-product-card__quick-add {
  display: flex;
  align-items: center;
justify-content: center;
    /* width: 18px;
    height: 18px; */
        width: 30px;
        height: 30px;
  padding: 0;
  cursor: pointer;
  background-color: rgba(228, 228, 228, 0.4);
  border: 0;
  border-radius: 50%;
}
.block-product-card__quick-add:hover {
  background-color: rgba(228, 228, 228, 0.6);
}
.block-product-card__quick-add svg {
/* width: 100%;
    height: 100%; */
    width: 70%;
        height: 70%;
}
@media (max-width: 959px) {
  .block-product-card__quick-add {
    width: 24px;
    height: 24px;
  }
   .c-add-btn {
       display: block;
       position: absolute;
        right: 10px;
        bottom: 8px;
        /* transform: scale(1.8); */
   }
   .c-add-btn .block-product-card__quick-add {
       background-color: rgb(0 0 0 / 0%);
       width: 18px;
       height: 18px;
   }

   .c-add-btn .block-product-card__quick-add svg{
    width: 100%;
    height: 100%;
   }
   .hover-carousel__track >img{
    height: 100%;
   }
}
.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 {
    text-align: center;
    /* 1. 修正弹性盒模型属性，确保垂直排列 */
    display: -webkit-box;
    display: -ms-box;
    /* 补充IE/Edge兼容性（可选） */
    -webkit-box-orient: vertical;
    /* 关键：修正前缀，确保垂直排列 */
    -ms-box-orient: vertical;
    /* 补充兼容性（可选） */

    flex-shrink: 0;
    padding-inline-end: 4px;
    overflow: hidden;
    /* 2. 必须：隐藏超出内容 */
    color: rgb(var(--color-light-text));
    text-overflow: ellipsis;
    /* 3. 必须：超出部分显示省略号 */

    /* 4. 固定1行，无需变量（若要固定2行，直接改1为2） */
    -webkit-line-clamp: 1;
    -ms-line-clamp: 1;
    /* 补充兼容性（可选） */
    font-size: 12px;
}

.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);
}
 .main-collection .card-price {
     text-align: left;
    padding: 10px 15px 0px;
    /* padding: 0 15px 10px; */
 }
  .main-collection .card-price .product-price .product-price__item {
      font-size: 14px;
      color: #BF2829;

  }
  .main-collection .block-product-card__title {
    text-align: left;
    font-size: 12px;
    font-size:16px;
    padding: 10px 15px 0;
    color: #29252c;
    width: 100%;
  }
   .main-collection .block-product-card__size {
    width: 100%;
       text-align: left;
       padding: 0 15px 0;
   }
         .main-collection .block-product-card__size .product-size-item {
           font-size: 16px;
           padding-right: 20px;
           color: #5D5D5D;
           font-weight: 400;
       }
.card-price {
    width: 100%;
    text-align: center;
}
.card-price .product-price .product-price__item {
    font-size: 14px;
    font-weight: 400;
      color: #BF2829;
}
.card-price .product-price .product-price__item--compare {
    font-size: 12px;
    font-weight: 400;
}
  .section-dual-collection .block-product-card__size {
      display: none;

  }
@media (max-width: 959px) {
  .block-product-card__discount-tag {
    padding: 2px 8px;
  }
   .main-collection .card-price {
       padding:10px 9px 5px;

   }

   .main-collection .card-price .product-price .product-price__item {
       font-size: 13px;
       color: #29252c;

   }
  .main-collection .block-product-card__title {
      font-size: 13px;
      padding: 5px 9px 0;
  }

  .main-collection .block-product-card__size {
      padding: 0 9px 0;
  }

  .main-collection .block-product-card__size .product-size-item {
      font-size: 12px;
      padding-right: 10px;
  }

}
.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;
  }
  .card-price .product-price .product-price__item {
      font-size: 12px;
  }
}