/* Products */

.products img {
  width: 100%;
  border-radius: 8px;
  height: 377px;
  -o-object-fit: cover;
  object-fit: cover;
}
/* review */
.custom-rating {
  display: flex;
  gap: 5.25px;
  align-items: center;
}
.star-wrap {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.star-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.star-base {
  color: var(--black1);
}

.star-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--black1);
}

.star-fill.full {
  -webkit-clip-path: none;
  clip-path: none;
}

.star-fill.half {
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
}

.star-fill svg path {
  fill: currentColor;
  stroke: none;
}

.rating-count {
  color: var(--grey1);
  margin-left: -1.25px;
}
/* title part*/
.products-title-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-end;
}
.products-title-wrapper a {
  padding: 12px 32px;
  text-decoration: underline;
  height: 45px;

  &:hover {
    color: var(--grey1);
  }
}
/* discount */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--brand1);
  z-index: 5;
}
/* Price */
.products .price {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.price del {
  color: var(--grey1);
  text-decoration: line-through;
}

.price ins {
  text-decoration: none;
  color: var(--black1);
}

.variation-button.selected {
  background-color: #333;
  color: #fff;
  border: 2px solid #000;
}

.added_to_cart.wc-forward {
  display: none;
}

/* hover */
.product-hover {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

li.product:hover .product-card-media img {
  opacity: 0;
}

li.product:hover .product-card-media img:has(.hover-image) {
  opacity: 0;
}

li.product:hover .product-card-media img:not(:has(video)):not(:has(img)) {
  opacity: 1;
}

li.product .product-card-media .hover-image {
  opacity: 0;
}

li.product:hover .product-card-media .hover-image {
  opacity: 1;
}

li.product:hover .product-card-media .product-video {
  opacity: 1;
}

.view-product {
  display: flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
}

.view-product:hover {
  color: var(--grey1);
}

/* Media */
.product-card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 377px;
  border-radius: 8px;
}

.product-card-media img,
.product-card-media .product-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* IMG default */
.product-card-media img {
  opacity: 1;
  z-index: 1;
}

.product-card-default {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* VIDEO default */
.product-card-media .product-video {
  opacity: 0;
  z-index: 2;
}

/* Bottom part  */
.product-card-bottom {
  position: relative;
  min-height: 78px;
}

.product-card-default,
.product-card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease;
}

.product-card-default {
  opacity: 1;
  z-index: 1;
}

.product-card-hover {
  opacity: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  align-self: stretch;
}

li.product:hover .product-card-default {
  opacity: 0;
}

li.product:hover .product-card-hover {
  opacity: 1;
}

.product-card-hover .black-btn {
  flex: 1 0 0;
}

.product-card-hover .border-btn {
  width: 100%;
  background-color: transparent;
}
.product-card-hover .border-btn:hover {
  background-color: var(--black1);
}
.product {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
}

.woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* responsive */
@media (min-width: 741px) {
  .product-card-hover {
    pointer-events: none;
  }

  li.product:hover .product-card-hover {
    pointer-events: auto;
  }
}
@media (max-width: 740px) {
  .products {
    -moz-column-gap: 12px;
    column-gap: 12px;
    row-gap: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .product {
    gap: 0;
  }

  .for-products-grid
    .products
    > li:nth-child(odd):last-of-type
    .product-card-media {
    height: 320px;
  }

  .for-products-grid
    .products
    > li:nth-child(odd):last-of-type
    .product-card-media
    img {
    height: 100%;
  }

  .product-card-media img {
    opacity: 1;
  }

  .product-card-media .hover-image,
  .product-card-media .product-video {
    display: none;
  }

  li.product:hover .product-card-media img,
  li.product:hover .product-card-default {
    opacity: 1;
  }

  li.product:hover .product-card-media .hover-image,
  li.product:hover .product-card-media .product-video {
    opacity: 0;
  }

  .product-card-hover {
    display: none;
  }

  li.product a.product-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
  }

  .product-card-media {
    height: 175px;
  }
}
