.attribute {
  margin-bottom: 1rem;

  .attribute-label {
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .attribute-option-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
  }

  input[type="radio"] {
    display: none;
  }

  input[type="radio"]:checked + .swatch,
  input[type="radio"]:checked + .text {
    border: 2px solid #007bff;
    font-weight: bold;
  }

  .swatch {
    width: 24px;
    height: 24px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  // Colores visuales específicos (ejemplo)
  .swatch--rojo {
    background-color: #d32f2f;
  }

  .swatch--negro {
    background-color: #212121;
  }

  .swatch--azul {
    background-color: #1976d2;
  }

  .swatch--blanco {
    background-color: #fff;
    border: 1px solid #999;
  }

  .text {
    display: inline-block;
    font-size: 0.9rem;
  }
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-to-cart button {
  background-color: #0045ff;
  border: none;
  padding: 0.75rem 2rem;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;

  &:hover {
    background-color: #002db3;
  }
}
