:root {
  --primary: #4b158d;
  --text-color: #333;
  --white: #fff;
  --black: #000;
  --body-bg: #fff;
  --transition-origin: all;
  --transition-duration: 0.3s;
  --transition-timing-function: ease-in-out;
  --prod-hover-bg: rgba(255, 255, 255, 0.55);
  --whatsapp: #1bda6f;
  --transition: var(--transition-origin) var(--transition-duration)
    var(--transition-timing-function);
}

.products-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.products-page .product-item {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
}

.products-page .product-item .product-image {
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.products-page .product-item .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  transition: filter 0.3s ease;
}

.products-page .product-item .product-detail {
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0px 3px 8px -3px rgba(0, 0, 0, 0.25);
  height: 118px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.products-page .product-item .product-detail .product-name {
  color: var(--text-color);
  font-size: 23px;
  font-weight: 300;
  line-height: normal;
}

.products-page .product-item .product-detail .product-price {
  color: var(--text-color);
  font-size: 28px;
  font-weight: 400;
  line-height: normal;
  text-wrap: nowrap;
}

.product-discounted-price {
  position: relative;
  display: inline-block;
  color: var(--text-color);
  font-size: 18px;
  margin-right: 10px;
  text-wrap: nowrap;
}

.product-discounted-price::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: translate(-50%, -50%) rotate(347deg);
}

@media (max-width: 567px) {
  .product-discounted-price {
    font-size: 14px;
  }
}

.hover-action-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  transition: var(--transition);
  visibility: hidden;
  opacity: 0;
}

.hover-action-button {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-basket {
  color: var(--text-color);
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  width: 166px;
  height: 49px;
  position: absolute;
  bottom: -50px;
  visibility: hidden;
  opacity: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.add-to-basket svg path {
  transition: fill 0.3s ease;
}

.products-page .product-item .product-image:hover img {
  filter: brightness(0.6);
}

.products-page .product-item .product-image:hover .add-to-basket {
  opacity: 1;
  visibility: visible;
  bottom: 0px;
}

.products-page .product-item .product-image:hover .hover-action-buttons {
  opacity: 1;
  visibility: visible;
}

.hover-action-button svg path {
  transition: fill 0.3s ease;
}

.add-to-basket:hover,
.hover-action-button:hover {
  color: var(--white);
  background-color: var(--primary);
}

.add-to-basket:hover svg path,
.hover-action-button:hover svg path {
  fill: var(--white);
}

@media (max-width: 1024px) {


  .products-page .product-item .product-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .products-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-page .product-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .products-page .product-item .product-image {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .products-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .products-page .product-item {
    margin-bottom: 20px;
    width: 100%;
  }

  .products-page .product-item .product-image {
    height: 275px;
  }

  .products-page .product-item .product-detail {
    height: 60px;
  }

  .products-page .product-item .product-detail .product-name {
    font-size: 14px;
  }

  .products-page .product-item .product-detail .product-price {
    font-size: 18px;
  }
}
