.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  z-index: 0;
    justify-content: space-between;
}

.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 .card__inner {
  /* position: relative; */
  background-color: rgba(var(--color-page-background));
}

.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)); */
  background-color: #fff;
}

.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;
  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) {
  --color-discount-tag-text: 255, 255, 255;
  z-index: 2;
  position: absolute;
  padding: 4px 12px;
  background-color: rgb(
    var(--card-badge-bg, var(--color-discount-tag-background))
  );
  color: rgb(var(--card-badge-text-color, var(--color-discount-tag-text)));
  border-radius: var(--badge-border-radius);
}

.card .card__badge.sold-out-message {
  --card-badge-text-color: var(--color-page-background);
  --card-badge-bg: var(--color-text);
}

.card .card__badge.left_top {
  top: 8px;
  left: 8px;
}

.card .card__badge.left_bottom {
  bottom: 8px;
  left: 8px;
}

.card .card__badge.right_top {
  top: 8px;
  right: 8px;
}

.card .card__badge.right_bottom {
  bottom: 8px;
  right: 8px;
}

.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;
}

@media (max-width: 959px) {
  .card .card__badge.left_top {
    top: 9px;
    left: 5px;
  }
  .card .card__badge.left_bottom {
    bottom: 9px;
    left: 5px;
  }
  .card .card__badge.right_top {
    top: 9px;
    right: 5px;
  }
  .card .card__badge.right_bottom {
    bottom: 9px;
    right: 5px;
  }
}

.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;
  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;
  right: 0;
  padding: 15px;
  z-index: 2;
}

@media (max-width: 959px) {
  .card .quick-add {
    padding: 10px;
  }
}
@media screen and (min-width: 960px) {
    .grid-cols-3-desktop>* {
        flex: 0 0 auto;
        width: calc((100% - 60px) / 3);
    }
    .grid-cols-3-desktop .product-list-content-item {
                min-height: 600px;
    }
}

.card .quick-add__opener {
  border-radius: 50px;
  padding: 2px;
  width: 40px;
  height: 40px;
  background-color: rgb(var(--color-button-secondary-background));
  color: rgb(var(--color-button-secondary-text));
  border: 1px solid rgb(var(--color-button-secondary-border));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.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 .product-card-block-item {
  margin: 0;
}

.card .product-card-block-item:not(:nth-child(2)) {
  /* margin-top: 8px; */
}
.price.product-card-block-item {
    margin-top: 8px;
}

@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);
  }
}

.display-1-row,
.display-2-rows {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  padding-right: 4px;
  -webkit-box-orient: vertical;
}

.display-1-row {
  -webkit-line-clamp: 1;
}

.display-2-rows {
  -webkit-line-clamp: 2;
}

/* 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 */
.product-list-content-item {
    padding: 24px 20px;
    position: relative;
    margin-top: 0px;
    background: #fff;
    border-radius: 10px;
} 
.product-card-wrapper .product-plugin-comment-rate-star {
    display: none!important;
}
.product-card-wrapper .new-product-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgb(var(--color-custom-theme));
    font-family: Poppins;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding: 2px 12px;
    background: #13B2BA1A;
    border-radius: 50px;
    /* background: linear-gradient(45deg, transparent 20px, #0A6C7E 0); */
    z-index:3;
}
.product-card-wrapper .custom_product_discount+.card__badge {
  display: none;
}
.product-card-wrapper .product-title {
    color: #00080B;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 4px 0;
} 
.product-card-wrapper .product-describe {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    padding-top: 4px;
}
.product-card-wrapper .custom_product_discount {
  position: absolute;
  width: 50px;
  top: 0;
  left: 2%;
  z-index: 2;
}
.product-card-wrapper .price__container .price-position-sale .price-item--sale {
    color: rgb(var( --color-custom-theme));
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin-right: 16px;
}
.product-card-wrapper .price__container .price-position-origin .itrans-money {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    /* text-decoration: line-through; */
    font-style: italic;
}
.product-card-wrapper .custom_product_discount img {
  width: 100%;
  height: auto;
}
.product-card-wrapper .product-card-block-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-card-wrapper .product-card-block-item .product-img-one , .product-img-two , .product-img-three {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}
.product-card-wrapper .product-card-block-item .media--hover-effect .product-img-one {
    z-index: 2;
}

.product-card-wrapper .product-card-block-item .media--hover-effect.is-img-two .product-img-one {
    opacity: 1;
    transition: 0.3s 0.3s ease;
}

.product-card-wrapper .product-card-block-item .media--hover-effect .product-img-two {
    z-index: 3;
    opacity: 0;
    transition: 0.3s 0.3s ease;
}

.product-card-wrapper .product-card-block-item .media--hover-effect .product-img-three {
    z-index: 1;
    opacity: 0;
    max-width: 50px;
    max-height: 50px;
    border-radius: 100px;
    overflow: hidden;
    transition: 0.3s ease;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.product-card-wrapper .product-card-block-item .media--hover-effect.is-img-two:hover .product-img-one {
    opacity: 0;
    transition: 0.3s ease;
}

.product-card-wrapper .product-card-block-item .media--hover-effect:hover .product-img-two {
    z-index: 3;
    opacity: 1;
    transition: 0.3s ease;
}

.product-card-wrapper .product-card-block-item .media--hover-effect:hover .product-img-three {
    z-index: 1;
    opacity: 1;
    max-width: 500px;
    max-height: 500px;
    border-radius: 0;
    transition: 1.5s ease;
}

.product-card-wrapper .product-card-block-item .media--hover-effect.is-img-two:hover .product-img-three {
    transition: 1.5s 0.3s ease;
}

.product-card-wrapper .custom_product_discount .discount_num {
  position: absolute;
  display: flex;
  flex-direction: column;
  left: 50%;
  top: 8%;
  color: #fff;
  transform: translateX(-50%);
  line-height: 1.2;
  font-weight: 600;
  align-items: center;
  font-size: 12px;
}
.product-card-wrapper .product-card-btn {
    font-size: 14px;
    padding: 10px 30px;
}
.product-card-wrapper .custom_product_discount .discount_num span {
  font-size: 1.4em;
}

.product-card-wrapper .custom_product_discount .discount_num span+span {
  font-size: 1em;
}

@media (max-width: 1599px) {
  .product-card-wrapper .custom_product_discount .discount_num {
    font-size: 11px;
  }

  .product-card-wrapper .custom_product_discount {
    width: 48px;
  }
}

@media (max-width: 958px) {
  .grid-cols-2 .product-card-wrapper .custom_product_discount {
    width: 50px;
  }

  .product-card-wrapper .custom_product_discount .discount_num {
    font-size: 12px;
  }
 
}

@media (max-width: 589px) {
  .grid-cols-2 .product-card-wrapper .custom_product_discount {
    width: 38px;
  }

  .product-card-wrapper .custom_product_discount .discount_num {
    font-size: 9px;
  }
}

@media (min-width: 769px) {
    .grid {
        margin-top: 0px;
    }
    .product-list-content-item {
        min-height: 500px;
    }
    .card .product-card-info-box .btn {
            /* padding-top: 14px; */
            transition: 0.3s ease;
            height: 0;
            overflow: hidden;
        }
    
    .card:hover .product-card-info-box .btn {
        padding-top: 14px;
        height: 36px;
        box-sizing: content-box;
    }
    .card-wrapper {
        min-height: 430px;
    }
}
@media (max-width: 768px) {
    .product-card-wrapper .new-product-card-tags {
        zoom: 0.8;
    }
    .product-card-info-box .product-card-block-item {
        margin-top: 24px!important;
    }
    .product-card-info-box  .btn {
        padding-top: 16px;
    }
    .product-card-wrapper .product-card-btn {
        width: 100%;
    }
    .grid-cols-2 .product-card-wrapper .product-title {
        font-size: 14px;
    }
    .grid-cols-2 .product-card-wrapper .product-describe {
        font-size: 12px;
    }
    .grid-cols-2 .product-card-wrapper .price__container .price-position-sale .price-item--sale {
        font-size: 20px;
    }
    .grid-cols-2 {
        font-size: 14px;
    }
}
       