.sf-products-grid::before, .sf-products-grid::after {
    content: " ";
    display: none;
}

.woocommerce span.onsale {
    z-index: 1;
}

.sf-products-grid {
  display: grid;
  grid-template-rows: repeat(1, auto);
  grid-auto-flow: row dense;
  padding: 0;
  list-style-type: none;

                    li:hover .wc-card-arrow.is-disabled {
                        opacity: 0.4 !important;
                        visibility: visible !important;
                    }

li:hover .wc-card-arrow:not(.is-disabled) {
    opacity: 1 !important;
    visibility: visible !important;
}

  li {
    width: unset !important;
    float: unset !important;
    clear: unset !important;
    margin: unset !important;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5em;
    justify-content: space-between;

    .sf-product-card__body {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.2em;

      .sf-prod-item-rating {
          display: inline-flex;
          flex-direction: row;
          flex-wrap: nowrap;
          gap: 0.5em;
          margin: 0;
          width: fit-content;
          align-items: center;
          line-height: 1;

        .product-rating {
            position: relative;
            display: inline-flex;
            flex-direction: row;
            width: 100%;
            align-items: center;
            flex-wrap: nowrap;
            justify-content: flex-start;
            gap: 0.25em;
            color: #888888;
        }

        .average-rating {
            display: inline-flex;
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 0.25em;
            align-items: center;
        }

        .rating-icon {
            background-image: url(../images/stark-frame/a1-star-o.svg);
            background-size: contain;
            width: 18px;
            height: 18px;
        }

        .rating-count {
            position: relative;
            padding-left: 0.5em;
        }

        .rating-count::before {
            content: "·";
            color: #868695;
            width: 4px;
            height: 20px;
            position: absolute;
            left: 0px;
        }
      }

      .sf-prod-item-poster {
          position: relative;
          border-radius: 12px;

.sf-card-main-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  pointer-events: none;
  margin-bottom: 0.75em;
  border-radius: 12px;
}

.sf-card-main-video-overlay__video {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.wc-card-slider-wrap {
    position: relative;
    margin-bottom: 12px;

.wc-card-prev {
    transform: rotate(90deg);
    left: 8px;
}

.wc-card-next {
    transform: rotate(-90deg);
    right: 8px;
}

.wc-card-arrow:hover:not(.is-disabled) {
    background: #ffffff !important;
}

.wc-card-arrow:hover:not(.is-disabled)::before {
    content: '';
    background: url(../images/owl/dorange.svg);
    background-size: cover;
}

.wc-card-arrow::before {
    content: '';
    background: url(../images/owl/drop.svg);
    background-size: cover;
    width: 18px;
    height: 18px;
    position: absolute;
    top: 6px;
    right: 6px;
    transition: all 0.3s ease;
}

.wc-card-arrow {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    border-radius: 50%;
    border: 0;
    background: #ffffff92;
    backdrop-filter: blur(2px);
    width: 30px;
    height: 30px;
    bottom: 7px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.wc-card-bullets {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;

.wc-card-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgb(217 217 217);
    transition: all .2s ease;
    cursor: pointer;
}

.wc-card-bullet.is-active {
    background: #ffb471;
    transform: scale(1.3);
}
}

.wc-card-slider::-webkit-scrollbar{
  display:none;
}

.wc-card-slider{
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;

.wc-card-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
background-image: url(../images/unknown.svg);
                            background-size: contain;
                            background-position: center;

img, video {
                width: 100%;
                height: auto;
                object-fit: cover;
                padding: 0px;
                display: block;
                position: relative;
                aspect-ratio: 3 / 4 !important;
                margin: 0px !important;
                contain-intrinsic-size: unset !important;
            }
}
}
}
      }


            h2 {
                padding: 0px 0.25em;
                margin: 0px;
                font-size: 13px;
                font-weight: 100;
                white-space: nowrap;
                text-overflow: ellipsis;
                overflow: hidden;
                color: rgb(37, 36, 46);
                line-height: 1.25;

                .sf-product-card__title-link {
                    color: inherit;
                    text-decoration: none;
                }
            }


      .sf-prod-item-price {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5em;
        justify-content: space-between;
        align-items: center;

        .price {
            color: #25242e;
            display: flex;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none !important;
            font-family: 'DM Sans';
            flex-direction: column-reverse;
            align-items: flex-end;
            line-height: 1;

            .sf-price-wrap--from {
                display: flex;
                flex-direction: column;

                .sf-price-prefix {
                    font-size: 10px;
                    align-self: flex-end;
                }
            }

            del {
                font-size: 12px;
                text-align: end;
            }

            ins {
                text-decoration: none;
                color: #ff3a5e;
            }
        }

        .sf-prod-item-price-btns {
            display: inline-flex;
            flex-direction: row;
            flex-wrap: nowrap;
            gap: 0.125em;

          .sf-product-card__cart-action {
              position: relative;
              padding: 0;
              border: 0;
              background: transparent;
              color: var(--sf-color-icon-muted, #c4c7e1);
              cursor: pointer;
              height: 30px;
              width: 30px;
              display: block;
              box-sizing: border-box;
              -webkit-tap-highlight-color: transparent;
              transition: color 0.2s ease, opacity 0.2s ease;
          }

          .sf-product-card__cart-action::before {
              content: '';
              position: absolute;
              inset: 0;
              background-color: currentColor;
              -webkit-mask: url(../images/stark-frame/a-shopping-cart-1.svg) center / 28px 28px no-repeat;
              mask: url(../images/stark-frame/a-shopping-cart-1.svg) center / 28px 28px no-repeat;
              transition: transform 0.2s ease;
              user-select: none;
          }

          .sf-product-card__cart-action:hover::before {
              transform: scale(1.06);
          }

          .sf-product-card__cart-action:focus-visible {
              outline: none;
              border-radius: var(--sf-radius-sm, 8px);
              box-shadow: var(--sf-focus-ring, 0 0 0 3px rgb(255 173 105 / 38%));
          }

          .sf-product-card__cart-action.is-added {
              color: var(--sf-color-accent, #ffad69);
          }

          .sf-product-card__cart-action.is-loading,
          .sf-product-card__cart-action.is-unavailable {
              opacity: 0.45;
          }

          .sf-product-card__cart-action.is-unavailable {
              cursor: not-allowed;
          }
        }
      }
    }

    .onsale {
        background: #FF3A5E;
        border-radius: 4px;
        padding: 4px 12px;
        color: #fff;
        line-height: 1;
        font-size: 11px;
    }

    .sf-prod-item-butt {
        display: inline-flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .add_to_cart_button  {
        cursor: pointer;
        display: block;
        box-sizing: border-box;
        width: 100%;
        background: #3f3c5a;
        color: #fff;
        padding: 6px 12px;
        text-align: center;
        font-weight: 600;
        border-radius: 6px;
    }
  }
}

@container main (min-width: 1201px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sf-products-grid.grid-large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container main (min-width: 901px) and (max-width: 1200px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sf-products-grid.grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container main (min-width: 701px) and (max-width: 900px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sf-products-grid.grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container main (min-width: 461px) and (max-width: 700px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sf-products-grid.grid-large {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (min-width: 361px) and (max-width: 460px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-products-grid.grid-large {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (max-width: 360px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid,
  .sf-products-grid.grid-large {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (min-width: 461px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid,
  .sf-products-grid.grid-large {
    column-gap: 1.5em;
    row-gap: 0.75em;
  }
}

@container main (max-width: 460px) {
  .sf-products-grid.grid-normal,
  .sf-products-grid.product-grid,
  .sf-products-grid.grid-large {
    column-gap: 0.25em;
    row-gap: 0.25em;
  }
}

.sf-products-grid > .sf-no-products {
  grid-column: 1 / -1;
}

@container main (min-width: 901px) {

.sf-products-grid {
  margin: 1em 2em 0;
}

}

@container main (max-width: 900px) {

.sf-products-grid {
  margin: 0.5em 0.25em 0;
}

}

@container main (max-width: 600px){

.wc-card-arrow{
    display: none;
}
}
.sf-product-card__media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
