.product-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  max-width: 375px;

  display: flex;
  row-gap: 15px;
  flex-direction: column;

  @container medium (min-width: 0) {
    row-gap: 8px;
  }
  @container small (min-width: 0) {
    max-width: none;
  }
}

.product-item__top {
  width: 100%;
  max-height: 485px;
  aspect-ratio: 168 / 247;
  position: relative;
  background-color: var(--primary-accent10);
}

.product-item__image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.product-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item__buy {
  z-index: 1;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;

  display: flex;
  column-gap: 0;
  align-items: center;
  justify-content: space-between;

  max-width: calc(100% - 36px);
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 7px;
  border-radius: 62px;
  background-color: var(--primary-color);
  transition: width .3s ease;

  @container medium (min-width: 0) {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: calc(100% - 20px);
  }
}
.product-item__buy:hover {
  width: 100%;
}
.product-item__sizes {
  opacity: 0;
  width: 0;
  padding-right: 0;
  overflow: hidden;
  transition: .3s ease, opacity .3s .2s ease;

  @container medium (min-width: 0) {
    opacity: 1;
    width: 100%;
    padding-right: 12px;
  }
}
.product-item__buy:hover .product-item__sizes {
  opacity: 1;
  width: 100%;
  padding-right: 24px;
}
.product-item__addcart {
  margin-left: auto;
}

.product-item__stiсkers {
  z-index: 1;
  position: absolute;
  left: 18px;
  top: 18px;

  @container medium (min-width: 0) {
    left: 10px;
    top: 10px;
  }
}

.product-item__buttons {
  z-index: 1;
  position: absolute;
  right: 18px;
  top: 18px;

  display: flex;
  column-gap: 8px;
  align-items: center;

  @container medium (min-width: 0) {
    right: 10px;
    top: 10px;
  }
}

.product-item .add-basket {
  --icon-size: 22px;
  --icon-fill: var(--primary-accent);
  --button-width: 32px;
  --button-height: 32px;
  --button-color: var(--primary-accent);
  --button-background: transparent;
  --button-background-hover: transparent;
}
.product-item .add-basket:hover {
  --icon-fill: var(--primary-accent2);
}
.product-item :is(.add-wishlist, .delete-wishlist) {
  --icon-size: 22px;
  --button-width: 40px;
  --button-height: 40px;
  
  @container medium (min-width: 0) {
    --icon-size: 16px;
    --button-width: 30px;
    --button-height: 30px;
  }
}
.product-item .delete-wishlist {
  --icon-fill: var(--primary-accent2);
  /* --button-background: var(--primary-accent2); */
}
.product-item :is(.add-wishlist, .delete-wishlist):hover {
  --icon-fill: var(--primary-accent);
}

.product-item__collection {
  --link-color: var(--primary-accent2);
  font-weight: 600;
  font-size: calc(12px + 0 * var(--window-resize));
  z-index: 1;
  position: relative;
}

.product-item__info {
  display: flex;
  column-gap: 15px;
  align-items: baseline;
  justify-content: space-between;
}
.product-item__name .link {
  font-weight: 600;
  font-size: calc(14px + 0 * var(--window-resize));
}
.product-item__name .link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.product-item__end {
  margin-top: auto;
}

.product-item__prices {
  display: flex;
  column-gap: 10px;
  align-items: center;
  white-space: nowrap;
  
  @container medium (min-width: 0) {
    flex-direction: column;
    align-items: start;
  }
}
.product-item__price {
  font-weight: 700;
  font-size: calc(18px + 5 * var(--window-resize));
  color: var(--primary-color);
}
.product-item__oldprice {
  font-weight: 600;
  font-size: calc(14px + 0 * var(--window-resize));
  color: var(--primary-accent4);
  text-decoration: line-through;
}
.product-item__discount {
  font-weight: 600;
  font-size: calc(14px + 0 * var(--window-resize));
  color: var(--primary-accent2);

  @container medium (min-width: 0) {
    display: none;
  }
}