.product-item-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-item {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: 30px;
  height: 100%;
  background: var(--card, #FFF);
  border: 1px solid transparent;
  transition: border 0.3s ease;
}
.product-item:hover {
  border: 1px solid var(--primary-100);
}
.product-item:hover .product-item__name {
  color: var(--primary-100);
}
.product-item__wishlist {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 24px;
  height: 24px;
  z-index: 5;
}
.product-item__wishlist svg {
  object-fit: contain;
  display: block;
}
.product-item__wishlist svg path {
  transition: fill 0.3s ease;
}
@media (min-width: 992px) {
  .product-item__wishlist:hover svg path {
    fill: var(--primary-100);
  }
}
.product-item__wishlist.in-favorites svg path {
  fill: var(--primary-100);
}
.product-item__image {
  position: relative;
  padding-top: 100%;
  display: block;
}
.product-item__image img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  display: block;
  max-width: 100%;
  max-height: 100%;
}
.product-item__top {
  position: relative;
}
.product-item__bottom {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-item__name {
  font-weight: 800;
  color: var(--head);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}
.product-item__attrs {
  margin-bottom: 15px;
}
.product-item__attrs .attr-item {
  color: var(--main-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  justify-content: space-between;
  margin-bottom: 5px;
  padding-bottom: 5px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--bg-dark);
}
.product-item__attrs .attr-item:last-child {
  margin-bottom: 0px;
}
.product-item__attrs .attr-item__left {
  width: 48%;
  text-align: left;
}
.product-item__attrs .attr-item__right {
  width: 48%;
  text-align: right;
}
.product-item__offer {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  align-items: center;
}
.product-item__price {
  color: var(--head);
  font-size: 24px;
  font-weight: 800;
  line-height: 130%;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
}
.product-item__price .old {
  color: var(--stroke);
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
  text-decoration-line: line-through;
}
.product-item__price .po-z {
  font-size: 16px;
}
.product-item__add {
  margin-left: auto;
}
.product-item__add .btn {
  min-width: 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  transition: background 0.3s ease;
}
.product-item__add .btn:hover {
  background: var(--hover);
}
.product-item__tags {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  grid-column-gap: 5px;
  margin-top: 15px;
  z-index: 15;
}
.product-item__tags .tag-item {
  color: var(--primary-100);
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid var(--primary-100);
  background: var(--card);
  max-width: 100%;
}
.product-item__tags .tags-body .tags-count {
  color: var(--head);
  font-size: 14px;
  font-weight: 500;
  line-height: 130%;
  padding: 4px 12px;
  border-radius: 30px;
  border: 1px solid var(--head);
  background: var(--card);
  max-width: 100%;
  transition: border 0.3s, background 0.3s, color 0.3s ease;
  cursor: pointer;
}
.product-item__tags .tags-body .tags-count.active {
  background: var(--primary-100);
  border: 1px solid var(--primary-100);
  color: var(--card);
}
@media (min-width: 992px) {
  .product-item__tags .tags-body .tags-count:hover {
    background: var(--primary-100);
    border: 1px solid var(--primary-100);
    color: var(--card);
  }
}
.product-item__tags .tags-list {
  position: absolute;
  right: 0px;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  z-index: -1;
  visibility: hidden;
  transition: all 0.3s ease;
}
.product-item__tags .tags-list.active {
  z-index: 10;
  opacity: 1;
  visibility: visible;
}
.product-item__tags .tags-list .tag-item {
  margin-bottom: 5px;
}
.product-item__tags .tags-list .tag-item:last-child {
  margin-bottom: 0px;
}

@media (max-width: 1600px) {
  .product-item {
    padding: 10px;
    border-radius: 25px;
  }
  .product-item__tags .tag-item {
    border-radius: 25px;
  }
}
@media (max-width: 1200px) {
  .product-item {
    border-radius: 15px;
  }
  .product-item__price {
    font-size: 18px;
  }
  .product-item__price .old {
    font-size: 12px;
  }
  .product-item__tags .tag-item {
    border-radius: 15px;
  }
}
@media (max-width: 991px) {
  .product-item {
    border: 1px solid var(--bg-dark);
  }
}
@media (max-width: 480px) {
  .product-item__name {
    font-size: 14px;
  }
  .product-item__attrs .attr-item {
    font-size: 12px;
  }
  .product-item__add .btn {
    min-width: 40px;
    width: 40px;
    height: 40px;
  }
  .product-item__price {
    font-size: 16px;
  }
  .product-item__price .old {
    font-size: 10px;
  }
  .product-item__tags .tag-item {
    font-size: 10px;
  }
  .product-item__tags .tags-body {
    display: none;
  }
}