:root {
  --promotion-default-background: #a96045;
  --promotion-default-text: #fffdf8;
}

.catalog-card-media,
.home-product-media,
.product-gallery > figure:first-child {
  position: relative;
}

.product-promo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  min-height: 32px;
  max-width: calc(100% - 28px);
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--promo-color, var(--promotion-default-text)) 28%, transparent);
  border-radius: 999px;
  padding: 7px 12px;
  overflow: hidden;
  color: var(--promo-color, var(--promotion-default-text));
  background: var(--promo-bg, var(--promotion-default-background));
  box-shadow: 0 10px 28px rgba(34, 26, 20, 0.2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.product-price-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.product-current-price {
  color: inherit;
  font: inherit;
}

.product-old-price {
  color: rgba(36, 32, 29, 0.48);
  font-size: 0.82em;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-summary .product-price.product-price-stack {
  gap: 8px 14px;
}

.product-summary .product-old-price {
  font-size: 0.64em;
}

.home-product-body h3 {
  display: -webkit-box;
  min-height: 2.36em;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-product-price {
  font-size: 15px;
}

@media (max-width: 560px) {
  .product-promo-badge {
    top: 10px;
    left: 10px;
    min-height: 28px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    font-size: 10px;
  }

  .home-product-body h3 {
    min-height: 2.4em;
    font-size: 18px;
  }

  .home-product-price {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-promo-badge {
    transition: none;
  }
}
