.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  height: 21rem;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__flag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 1;
  width: 4.8rem;
  height: 2.7rem;
  object-fit: cover;
  pointer-events: none;
}

.product-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2.4rem;
  min-width: 0;
  padding-top: 1.6rem;
}

.product-card__header {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.product-card__title {
  margin: 0;
}

.product-card__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.product-card__media .product-card__link {
  display: block;
  height: 100%;
}

.product-card__title .product-card__link:hover {
  color: var(--color-red);
}

.product-card__stock {
  font-size: 1.6rem;
  line-height: 1.2;
  color: #36973B;
}

.product-card__stock--order {
  color: var(--color-red);
}

.product-card__collections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card__collections-item {
  display: flex;
  min-width: 0;
}

.product-card__collection {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.8rem 1.4rem;
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.product-card__collection:hover {
  opacity: 0.6;
}

.product-card__collection--belarus {
  padding-left: 2.2rem;
  overflow: hidden;
  background: linear-gradient(to bottom, #E30816 70%, #36973B 70%) !important;
}

.product-card__collection--belarus .product-card__collection-icon {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: .8rem;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.product-card__specs-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.6rem;
  line-height: 1.2;
}

.product-card__spec {
  display: flex;
  gap: 0.4rem;
}

.product-card__spec-label {
  color: var(--color-black);
  opacity: 0.6;
}

.product-card__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--color-black);
  transition: color 0.2s;
}

.product-card__more:hover {
  color: var(--color-red);
}

.product-card__more-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: auto;
  padding-top: 1.6rem;
}

.product-card__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
}

.product-card__price {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
}

.product-card__price--sale {
  color: var(--color-red);
}

.product-card__price-old {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-black);
  opacity: 0.6;
  text-decoration: line-through;
}

.product-card__tools {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.product-card__compare,
.product-card__manager {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}

.product-card__compare-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-card__compare-box,
.product-card__manager-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--color-black);
  background-color: var(--color-gray);
  transition: background-color 0.2s, color 0.2s;
}

.product-card__compare-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.product-card__compare:hover .product-card__compare-box,
.product-card__compare-input:checked + .product-card__compare-box,
.product-card__manager:hover .product-card__manager-icon {
  background-color: var(--color-red);
  color: var(--color-white);
}

.product-card__compare-label,
.product-card__manager-label {
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--color-black);
}

.product-card__manager {
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
}

.product-card__manager-icon {
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 500;
}

.product-card__actions {
  display: flex;
  gap: 0.8rem;
}

.product-card__cart,
.product-card__buy {
  line-height: 1;
}

.product-card__pricing:has(.product-card__price--request) ~ .product-card__actions .product-card__buy {
  font-size: 0;
}

.product-card__pricing:has(.product-card__price--request) ~ .product-card__actions .product-card__buy::after {
  content: "Узнать стоимость";
  font-size: 1.6rem;
  line-height: 1.2;
}

.product-card__cart-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

@media (orientation: portrait) {
  .product-card__media {
    height: auto;
    aspect-ratio: 374 / 210;
  }

  .product-card__media .product-card__link {
    height: auto;
  }

  .product-card__image {
    height: auto;
  }

  .product-card__collections {
    gap: 0.4rem;
  }
}
