.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  z-index: 0;
}

.card-wrapper {
  color: inherit;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.card-wrapper .full-unstyled-link {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
}
.card-qv-button {
  position: absolute;
  z-index: 5;
  bottom: -100%;
  left: 0;
  right: 0;
  padding: 0 10px 10px;
  transition: bottom 0.3s ease;
}
.product-card-wrapper:hover .card-qv-button {
  bottom: 0;
}

.card-qv-button .button {
  --color-text: 0,0,0;
  --color-button-text: 0,0,0;
  --color-button-background: 255,255,255,0.85;
  --btn-shadow-opacity: 1;
  --btn-border-radius-outset: 6px;
  text-transform: uppercase;
  --btn-font-size: 14px;
  border-radius: 2px;
  overflow: hidden;
  --btn-border-thickness: -1px;
  /*box-shadow: 0 0 1px 1px rgba(var(--color-text), var(--btn-shadow-opacity));*/
}

.card .card__inner--wrapper {
  background-color: rgba(var(--color-image-background));
  padding: var(--card-image-padding, 0px);
}

.card.collection-card-wrapper .card__inner .card__media {
  border-radius: calc(
    var(--collection-card-border-radius) -
      var(--collection-card-border-thickness)
  );
}

.card.collection-card-wrapper .card__inner.card__inner--round .card__media {
  border-radius: 50%;
}

.card.collection-card-wrapper.collection-card-style-card {
  background-color: rgba(var(--color-card-background));
}

.card.collection-card-wrapper.collection-card-style-card .card__inner--wrapper {
  background-color: transparent;
}

.card.collection-card-wrapper.collection-card-style-card
  .card__inner--wrapper
  .card__inner.card__inner--round {
  margin: 8px;
}

@media (max-width: 959px) {
  .card.collection-card-wrapper.collection-card-style-card
    .card__inner--wrapper
    .card__inner.card__inner--round {
    margin: 4px;
  }
}

.card.collection-card-wrapper.collection-card-style-card
  .card__inner--wrapper
  .card__inner:not(.card__inner--round)
  .card__media {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.card.collection-card-wrapper.collection-card-style-card .card__content {
  padding: 8px;
  margin-top: 0;
}

@media (max-width: 959px) {
  .card.collection-card-wrapper.collection-card-style-card .card__content {
    padding-bottom: 4px;
  }
}

.card.collection-card-wrapper.collection-card-style-card
  .card__content.collection__item__name {
  color: rgba(var(--color-card-text));
}

.product-card-wrapper {
  cursor: pointer;
  /* 兼容 Recently Viewed Product item */
  width: 100%;
}

.card.product-card-wrapper .card__inner .card__media {
  border-radius: calc(
    var(--product-card-border-radius) - var(--product-card-border-thickness)
  );
}

.card.product-card-wrapper.product-card-style-card {
  background-color: rgba(var(--color-card-background));
}

.card.product-card-wrapper.product-card-style-card .card__media {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.card.product-card-wrapper.product-card-style-card .card__inner--wrapper {
  background-color: transparent;
}

.card.product-card-wrapper.product-card-style-card .card__block--wrapper {
  padding-bottom: 24px;
}

@media (max-width: 959px) {
  .card.product-card-wrapper.product-card-style-card .card__block--wrapper {
    padding-bottom: 8px;
  }
}

.card.product-card-wrapper.product-card-style-card
  .card__block--wrapper
  .product-card-block-item:not(.card__image) {
  margin-left: 24px;
  margin-right: 24px;
}

@media (max-width: 959px) {
  .card.product-card-wrapper.product-card-style-card
    .card__block--wrapper
    .product-card-block-item:not(.card__image) {
    margin-left: 8px;
    margin-right: 8px;
  }
}

.card.product-card-wrapper.product-card-style-card
  .card__block--wrapper
  .product-card-block-item:not(.price) {
  color: rgba(var(--color-card-text));
}

.card .card__media {
  position: absolute;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  z-index: 2;
  background-color: rgb(var(--color-image-background));
}

.card .card__media > img {
  height: 100%;
  object-fit: var(--image-fill-type, cover);
  object-position: var(--image-object-position, center center);
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  transition: opacity var(--duration-long) ease;
  transition-property: opacity, transform;
}

.card .card__media > .placeholder {
  width: 100%;
  height: 100%;
  background-color: rgb(var(--color-image-background));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .card__media.media--hover-effect > img + img {
  opacity: 0;
}

.card .card__badge:not(:empty) {
  z-index: 5;
}

.card .card__divider {
  height: 1px;
  background: rgb(var(--color-entry-line));
}

.card .card__highlight ul {
  list-style-type: disc;
  list-style-position: inside;
  padding: 0;
  margin: 0;
}

.card .card__highlight li {
  margin: 0;
}

.card .card__highlight li span {
  position: relative;
  left: -12px;
}

.card .card__content {
  margin-top: 8px;
  position: relative;
}

.card .card__content .product__title {
  margin: 0;
  margin-bottom: 8px;
}

.card .card__button {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  bottom: calc(100% + 8px);
  white-space: nowrap;
  overflow: hidden;
  padding: 20px;
}

.card .card__button.is-expanded {
  padding: 0;
}

.card .card__button.is-expanded .card__button-inner {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.6);
}

.card .card__button .card__button-inner {
  width: 100%;
  display: block;
}

.card .card__button .card__button-inner {
  width: 100%;
  transform: translateY(100%);
  opacity: 0;
  transition: color var(--duration-long) ease,
    transform var(--duration-default) ease, opacity var(--duration-default) ease;
  will-change: transform;
}

.card .quick-add {
  position: absolute;
  z-index: 2;
}

@media (max-width: 959px) {
  .card .quick-add {
    padding: 0;
    bottom: 10px;
    right: 10px;

  }

}

.card .quick-add__opener {
  border-radius: 50px;
  padding: 2px;
  width: 32px;
  height: 32px;
  background-color: #e5e5e5cc;
  color: #000000;
  border: 1px solid #e5e5e5cc;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.card .quick-add__opener i {
  line-height: 0;
}

.card .quick-add__opener .icon-add-cart {
  width: 18px;
  height: 18px;
}

.card .quick-add__opener.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.card .quick-add__opener.loading > .loading-hidden {
  display: none;
}

.card h5.product-card-block-item {
  margin-top: 10px;
  --title5-font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  padding-right: 4px;
  font-family: 'inter', sans-serif;
}

.card .price.product-card-block-item {
  font-size: 16px;
  line-height: 1.3;
  color: #000;
  font-weight: 600;
  font-family: 'inter', sans-serif;
  margin-top: 15px;
}

.card .product-card-block-item:first-child {
  margin-top: 0;
}

@media (max-width: 750px) {
  body .card h5.product-card-block-item {
    --title5-font-size: 12px;
    margin-top: 3px;
  }
  body .card .price.product-card-block-item {
    font-size: 13px;
    margin-top: 3px;
  }
}

@media (min-width: 960px) {
  .card__media.media--hover-effect:hover > img:first-child:not(:only-child) {
    opacity: 0;
  }
  .card__media.media--hover-effect:hover > img + img {
    opacity: 1;
    transform: scale(1.03);
  }

  .hover-effect-container .hover-effect-target {
    --duration-long: 400ms;
    transition: transform var(--duration-long) ease;
  }

  .hover-effect-container:hover .hover-effect-target {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (min-width: 960px) {
  .card__button {
    z-index: 2;
  }
  .card:hover .card__button .card__button-inner {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */

