.block-product-card__quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 50%;
}

.block-product-card__quick-add svg {
  width: 17px;
  height: 17px;
  color: #29252c;
}

@media (max-width: 959px) {
  .block-product-card__quick-add {
    width: 32px;
    height: 32px;
    border: 1px solid rgb(var(--color-light-text) / 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;
}

/* Zenvorin homepage Products */
#shopline-section-template--index__featured-collection .section-featured-collection {
  background-color: #fff;
}

#shopline-section-template--index__featured-collection .section-featured-collection > .page-width {
  max-width: 1420px;
  margin-inline: auto;
}

#shopline-section-template--index__featured-collection .section-featured-collection h2 {
  width: 100%;
  color: #000;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

#shopline-section-template--index__featured-collection .featured-collection__tabs-header:not(:has(.featured-collection__tab, .featured-collection__carousel-indicator-progress)) {
  display: none;
}

#shopline-section-template--index__featured-collection .block-product-card-info {
  width: 100%;
  padding: 18px 10px 24px;
  gap: 8px;
  text-align: center;
}

#shopline-section-template--index__featured-collection .block-product-title {
  width: 100%;
  padding: 0;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

#shopline-section-template--index__featured-collection .block-product-price {
  width: 100%;
}

#shopline-section-template--index__featured-collection .block-product-price .product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
}

#shopline-section-template--index__featured-collection .block-product-price :is(.product-price__sale, .product-price__origin) {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

#shopline-section-template--index__featured-collection .block-product-price .product-price__sale {
  color: #1a1c1e;
}

#shopline-section-template--index__featured-collection .block-product-price .product-price__origin {
  color: rgba(0, 0, 0, 0.4);
  text-decoration: line-through;
}

#shopline-section-template--index__featured-collection .featured-collection__view-more {
  align-self: center;
}

#shopline-section-template--index__featured-collection .block-product-image__layer-wrapper
  > .block-product-card__layer:has(.block-product-card__discount-tag) {
  position: absolute;
  inset: 10px auto auto 10px;
  width: auto;
  padding: 0;
}

#shopline-section-template--index__featured-collection .block-product-card__discount-tag {
  padding: 6px 10px;
  border-radius: 2px;
  background: #c20000;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

@media (max-width: 959px), (hover: none), (pointer: coarse) {
  #shopline-section-template--index__featured-collection .block-product-card__quick-add {
    display: none;
  }
}

@media (max-width: 750px) {
  #shopline-section-template--index__featured-collection .section-featured-collection h2 { font-size: 20px; }
  #shopline-section-template--index__featured-collection .block-product-title { font-size: 12px; }
  #shopline-section-template--index__featured-collection .block-product-price .product-price__sale { font-size: 14px; }
  #shopline-section-template--index__featured-collection .block-product-price .product-price__origin { font-size: 12px; }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  #shopline-section-template--index__featured-collection .featured-collection__track:not([style*="--desktop-auto-flow: column"]) {
    overflow: visible;
  }

  #shopline-section-template--index__featured-collection .block-product-card {
    position: relative;
    background: #fff;
  }

  #shopline-section-template--index__featured-collection .block-product-card:is(:hover, :focus-within) {
    z-index: 1;
    box-shadow: 0 12px 24px rgb(0 0 0 / 5%), 0 24px 56px rgb(0 0 0 / 9%);
  }

  #shopline-section-template--index__featured-collection .block-product-image__layer-wrapper
    > .block-product-card__layer:has(.block-product-card__quick-add) {
    position: absolute;
    z-index: 2;
    inset: auto 10px 10px;
    display: block;
    box-sizing: border-box;
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0;
    transform: translateY(8px);
  }

  #shopline-section-template--index__featured-collection .block-product-card__layer:has(.block-product-card__quick-add)
    :is(theme-product-form, theme-quick-add-modal, form, details) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
  }

  #shopline-section-template--index__featured-collection .block-product-card__quick-add {
    display: flex;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0;
    height: 40px;
    border: 0;
    border-radius: 2px;
    background: #000;
    color: #fff;
    font-size: 13px;
    pointer-events: none;
  }

  #shopline-section-template--index__featured-collection .block-product-image__layer-image-wrapper:is(:hover, :focus-within)
    .block-product-card__layer:has(.block-product-card__quick-add) {
    opacity: 1;
    transform: none;
  }

  #shopline-section-template--index__featured-collection .block-product-image__layer-image-wrapper:is(:hover, :focus-within)
    .block-product-card__quick-add:not(.loading) {
    pointer-events: auto;
  }

  #shopline-section-template--index__featured-collection .block-product-card__quick-add .icon-quick-add,
  #shopline-section-template--index__featured-collection .block-product-card:has(.block-product-card__quick-add)
    .block-product-card-info .block-product-buy-button-wrapper {
    display: none;
  }

  #shopline-section-template--index__featured-collection .block-product-card__quick-add:not(.loading)::after {
    content: "ADD";
  }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #shopline-section-template--index__featured-collection .block-product-card__layer:has(.block-product-card__quick-add) {
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #shopline-section-template--index__featured-collection .block-product-image__image-wrapper {
    overflow: hidden;
  }

  #shopline-section-template--index__featured-collection .block-product-image__image-wrapper .block-product-image__image {
    transform-origin: center;
    transition: transform 0.45s ease, opacity 0.3s ease;
  }

  #shopline-section-template--index__featured-collection .block-product-image__layer-image-wrapper:hover
    .block-product-image__image {
    transform: scale(1.05);
  }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #shopline-section-template--index__featured-collection .block-product-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }

  #shopline-section-template--index__featured-collection .block-product-card:is(:hover, :focus-within) {
    transform: translateY(-2px);
  }
}
