.btn-main {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  &:hover {
    img {
      animation: latidos 0.5s infinite;
    }
  }
  &.enviando{
    pointer-events: none;
    img{
      width: 25px;
      animation: latidos 0.5s infinite;
    }
  }
  &.error{
    pointer-events: none;
  }
  &.exito{
    pointer-events: none;
  }
  img {
    object-fit: contain;
    width: 15px;
    margin-right: 8px;
  }
  span {
    color: $color-black;
  }
}
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  color: $color-black;
  background-color: $color-yellow;
  padding: 12px 24px;
  @extend .text-btn-buy;
  position: relative;
  overflow: hidden;
  span {
    display: flex;
    z-index: 2;
    transition: all 500ms ease-in-out;
  }
  &:hover {
    span {
      color: $color-white;
    }
    &:before {
      transform: translate(-1%, 0);
    }
    &:after {
      transform: translate(0, -1%);
    }
  }
  &.black{
    background-color: $color-black;
    color: $color-white;
    &:before, &:after {
      background-color: $color-yellow;
    }
    &:hover {
      span {
        color: $color-black;
      }
    }
  }
  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 102%;
    height: 102%;
    background-color: #000000;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    transition: all 500ms ease-in-out;
    transform: translate(100%, -100%);
  }
  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 102%;
    height: 102%;
    background-color: #000000;
    clip-path: polygon(0 100%, 0 0, 100% 100%);
    transition: all 500ms ease-in-out;
    transform: translate(-100%, 100%);
  }
}

.quantity-parent{
  display: flex;
  flex-direction: column;
  label{
    color: #191919;
    margin-bottom: 12px;
    //movil
    @media (min-width: 320px) and (max-width: 480px) {
      margin-bottom: 8px;   
    }
  }
  .quantity {
    display: inline-flex;
    align-items: center;
    height: 40px;
    -moz-appearance: textfield;
    border: 1px solid #191919;
    width: max-content;
  
    input[type="number"] {
      -moz-appearance: textfield;
    }
  
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }
    .screen-reader-text {
      display: none;
    }
    .input-text {
      border: none;
      box-shadow: unset;
      width: 60px;
      height: 30px;
      padding: 0;
      text-align: center;
      margin-bottom: 0;
      margin: 0;
      background-color: transparent;
      @extend .text-cart-table-headers;
    }
    button {
      padding: 0;
      width: 36px;
      outline: none;
      cursor: pointer;
      border: none;
      background-color: transparent;
      line-height: normal;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      svg {
        vertical-align: middle;
      }
    }
  }  
}