/* Iconos decorativos para que los botones conserven su etiqueta de texto. */
:is(.product-card, .store-product, .barber-product, .product-related-card) .button[href*="/producto/"] {
  --product-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.button[data-add-to-cart] {
  --product-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3 2h2l2.4 9.2a2 2 0 0 0 1.9 1.5h7.8a2 2 0 0 0 1.8-1.1L22 6H6.1L5.6 4H3V2Z'/%3E%3C/svg%3E");
}

:is(.product-card, .store-product, .barber-product, .product-related-card) .button[href*="/producto/"]::before,
.button[data-add-to-cart]::before {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 1.15em;
  background-color: currentColor;
  content: "";
  font-size: 1em;
  -webkit-mask: var(--product-action-icon) center / contain no-repeat;
  mask: var(--product-action-icon) center / contain no-repeat;
}
