.product-card {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
}

.product-card__currency-list--desktop-only,
.product-card__divider--desktop-only {
  display: none
}

.product-card__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.product-card__divider {
  height: 12px;
  background-color: var(--color-gray5);
}

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

.product-card__image-wrapper {
  align-self: flex-start;
  border-radius: 10px;
  width: 100px;
  aspect-ratio: 100 / 141;
  flex-shrink: 0;
  overflow: hidden;
  align-self: flex-start;
  filter: drop-shadow(0px 8px 20px rgba(35, 41, 47, 0.08));
}

.product-card__info {
  display: flex;
  flex-direction: column;
}

.product-card__manufacturer-name {
  color: var(--color-gray3);
  font-size: var(--font-size-small);
  line-height: var(--font-line-height-small);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  margin-top: 4px;
}

.product-card__name {
  margin: 0;
  font-size: var(--font-size-medium);
  line-height: 18px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.product-card__pre-sale-price {
  display: block;
  color: var(--color-gray3);
  text-decoration-line: line-through;
  font-size: var(--font-size-small);
  line-height: var(--font-line-height-xs);
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-blue1);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-medium);
  letter-spacing: var(--font-letter-spacing-tight);
}

.product-card__price-group {
  display: flex;
  gap: 4px;
}

.product-card__price-reference {
  color: var(--color-gray3);
  font-size: var(--font-size-small);
  line-height: var(--font-line-height-small);
  text-align: left;
}

.product-card__prices {
  margin-top: auto;
  padding-top: 8px;
  text-align: left;
}

.product-card__sale-countdown {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;

  display: flex;
  align-items: center;
  padding: 4px 10px;

  max-width: calc(100% - 16px);

  border-radius: 40px;
  background: rgba(27, 31, 34, 0.6);
  color: var(--color-white);

  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-small);
  line-height: var(--font-line-height-small);
}

.product-card__sale-percentage-pill {
  flex-shrink: 0;
}

.product-card__simulator-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.product-card__simulator-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 30px;
  color: var(--color-blue1);
  background-color: #E7EBEE;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--font-line-height-small);
}

.product-card__simulator-pill--p3d5 {
  color: #8D5A2C;
  background-color: rgba(141, 90, 44, 0.10);
}

.product-card__simulator-pill--msfs-2024 {
  color: #008FAF;
  background-color: rgba(0, 143, 175, 0.10);
}

.product-card__simulator-pill--p3d6 {
  color: #BB5800;
  background-color: rgba(187, 88, 0, 0.10);
}

.product-card__simulator-pill--xplane {
  color: #2003C0;
  background-color: rgba(32, 3, 192, 0.10);
}

.product-card__tooltip-icon {
  color: var(--color-gray3);
}

.product-card__upcoming-badge {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;

  /* The design of the badge is based on a 45-degree rotated square of 48x48px */
  /* The badge itself it just half of the square */
  /* Therefore, the with and height of the badge are calculated based on the Pythagorean theorem */
  /* The square root of 48^2 + 48^2 is 67.88225099 – which we rounded to 68px */
  /* Since we just need half of the square, the height is: (square root of 48^2 + 48^2) / 2 = 33.941125495 – which we rounded to 34px */
  height: 34px;
  width: 68px;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;

  color: var(--color-white);
  background-color: #025FA2;

  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-small);
  line-height: var(--font-line-height-small);

  /* 33.941125495 is half of the square root of 48^2 + 48^2 – which is rounded to 34px */
  transform: rotate(-45deg) translate(-34px);
  transform-origin: top left;
}

.product-card--compact .product-card__details {
  flex-grow: 1;
}

.product-card--compact .product-card__info {
  flex-direction: row;
  flex-grow: 1;
  gap: 4px;
}

.product-card--compact .product-card__image-wrapper {
  border-radius: 4px;
  width: 42px;
}

.product-card--compact .product-card__manufacturer-name {
  margin-top: 0;
}

.product-card--compact .product-card__name {
  -webkit-line-clamp: 1;
}

.product-card--compact .product-card__prices {
  padding-top: 0;
  margin-top: 0;
}

.product-card--compact .product-card__simulator-pills {
  margin-top: 4px;
}

.product-card--small .product-card__image-wrapper {
  width: 63px;
  height: 89px;
}

.product-card--vertical {
  flex-direction: column;
  gap: 16px;
}

.product-card--vertical .product-card__image-wrapper {
  width: 100%;
}

@media (min-width: 480px) {
  .product-card__currency-list--desktop-only {
    display: flex;
  }

  .product-card__divider--desktop-only {
    display: block;
  }
}
